1 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
5 (hppa[12]*-*-hpux11*): Ditto.
6 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
7 * config/ia64/hpux-unix2003.h: New.
8 * config/pa/pa-hpux1131.opt: New.
9 * config/pa/pa-hpux1131.h: New.
10 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
11 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
12 config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
14 2011-05-05 Jakub Jelinek <jakub@redhat.com>
17 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
18 instead of mode as 3rd argument to recursive call.
19 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
20 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
22 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
23 don't give up if mode is Pmode and mem_mode is not VOIDmode.
24 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
25 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
27 2011-05-05 Julian Brown <julian@codesourcery.com>
29 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
30 parenthesis in D-register case.
32 2011-05-05 Joseph Myers <joseph@codesourcery.com>
34 * opt-functions.awk (var_type_struct): Handle Enum options.
35 * optc-gen.awk: Don't check range of variables of character type.
36 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
37 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
38 rs6000_sdata_name, rs6000_explicit_options): Remove.
39 (rs6000_option_override_internal): Check for -malign-power here.
40 Use global_options_set instead of rs6000_explicit_options.
41 (rs6000_parse_fpu_option): Remove.
42 (rs6000_handle_option): Access variables via opts and opts_set
43 pointers. Use error_at and warning_at. Add fall-through
44 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
45 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
46 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
47 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
48 here. Don't use rs6000_parse_fpu_option.
49 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
50 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
51 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
53 (mspe): Use Var and Save.
54 (mtraceback=): Use Enum and Var.
55 (rs6000_traceback_type): New Enum and EnumValue entries.
56 (mfloat-gprs=): Use Enum, Var and Save.
57 (rs6000_float_gprs): New Enum and EnumValue entries.
58 (mlong-double-): use Var and Save.
59 (msched-costly-dep=, minsert-sched-nops=): Use Var.
60 (malign-): Use Enum and Var.
61 (rs6000_alignment_flags): New Enum and EnumValue entries.
63 (fpu_type_t): New Enum and EnumValue entries.
64 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
65 global_options_set instead of rs6000_explicit_options.
66 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
67 global_options_set instead of rs6000_explicit_options.
68 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
69 global_options_set instead of rs6000_explicit_options.
70 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
71 global_options_set instead of rs6000_explicit_options.
72 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
73 global_options_set instead of rs6000_explicit_options.
74 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
75 global_options_set instead of rs6000_explicit_options.
76 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
78 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
79 global_options_set instead of rs6000_explicit_options.
80 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
81 (rs6000_cmodel): New Enum and EnumValue entries.
82 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
83 global_options_set instead of rs6000_explicit_options.
84 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
85 (mtls-size=): Use Enum and Var.
86 (rs6000_tls_size): New Enum and EnumValue entries.
88 2011-05-05 Michael Matz <matz@suse.de>
90 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
91 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
92 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
93 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
94 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
95 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
96 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
97 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
98 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
99 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
100 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
101 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
102 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
103 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
104 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
105 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
107 2011-05-05 Richard Guenther <rguenther@suse.de>
109 * expmed.c (expand_variable_shift): Rename to ...
110 (expand_shift_1): ... this. Take an expanded shift amount.
111 For rotates recurse directly not building trees for the shift amount.
112 (expand_variable_shift): Wrap around expand_shift_1.
113 (expand_shift): Adjust.
115 2011-05-05 Jakub Jelinek <jakub@redhat.com>
117 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
119 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
121 * tree.h (get_pending_sizes): Remove prototype.
122 (put_pending_size): Likewise.
123 (put_pending_sizes): Likewise.
124 * stor-layout.c (pending_sizes): Delete.
125 (get_pending_sizes): Likewise.
126 (put_pending_size): Likewise.
127 (put_pending_sizes): Likewise.
128 (variable_size): Do not call put_pending_size and tidy up.
129 * function.h (struct function): Remove dont_save_pending_sizes_p.
130 * lto-streamer-in.c (input_function): Do not stream it.
131 * lto-streamer-out.c (output_function): Likewise.
132 * tree-inline.c (initialize_cfun): Do not copy it.
133 * c-decl.c (store_parm_decls): Do not set it.
134 * omp-low.c (create_task_copyfn): Likewise.
135 * tree-optimize.c (tree_rest_of_compilation): Likewise.
137 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
139 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
141 (*movdf_internal): Ditto.
142 (*movdf_internal_nointeger): Ditto.
143 (*movsf_internal): Ditto.
145 2011-05-05 Joseph Myers <joseph@codesourcery.com>
147 * c-decl.c (finish_decl): Don't call get_pending_sizes.
148 (grokparm): Add parameter expr. Pass it to grokdeclarator.
149 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
150 (c_variable_size): Remove.
151 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
152 call put_pending_sizes.
153 (get_parm_info): Add parameter expr. Use it to set
154 arg_info->pending_sizes.
155 (store_parm_decls): Use arg_info->pending_sizes instead or calling
157 * c-parser.c (c_parser_parms_declarator): Update call to
158 c_parser_parms_list_declarator.
159 (c_parser_parms_list_declarator): Take parameter expr. Update
160 call to push_parm_decl. Update recursive call. Don't call
161 get_pending_sizes. Update calls to get_parm_info.
162 (c_parser_objc_method_definition): Update calls to
163 c_parser_objc_method_decl and objc_start_method_definition.
164 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
165 (c_parser_objc_method_decl): Add parameter expr. Update call to
167 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
168 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
169 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
171 2011-05-05 Michael Hope <michael.hope@linaro.org>
174 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
177 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
179 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
180 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
181 (spu_output_mi_thunk): New function.
183 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
185 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
186 targetm.asm_out.print_operand.
187 * config/sol2.c: Include target.h.
189 2011-05-04 Jan Hubicka <jh@suse.cz>
191 * ipa-inline.c (reset_edge_caches): New function.
192 (update_caller_keys): Add check_inlinablity_for; do not
193 reset edge caches; remove now unnecesary loop.
194 (update_callee_keys): Add comments; reset node_growth_cache of callee.
195 (update_all_callee_keys): Likewise.
196 (inline_small_functions): Sanity check cache; update code
199 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
201 PR rtl-optimization/47612
202 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
203 as the last insn of the sequence to be moved.
205 2011-05-04 Tobias Burnus <burnus@net-b.de>
208 * doc/invoke.texi (Ofast): Document that it
209 enables Fortran's -fno-protect-parens.
211 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
213 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
215 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
217 * stor-layout.c (variable_size): Do not issue errors.
219 2011-05-04 Richard Guenther <rguenther@suse.de>
221 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
222 for array-ref indices.
223 (tree_coverage_counter_addr): Likewise.
224 (build_fn_info_type): Use size_int for index types.
225 (build_gcov_info): Likewise.
227 2011-05-04 Richard Guenther <rguenther@suse.de>
229 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
231 * c-typeck.c (really_start_incremental_init): Use bitsize_int
232 for constructor indices.
233 (push_init_level): Likewise.
235 2011-05-04 Richard Guenther <rguenther@suse.de>
237 * explow.c (promote_mode): Move variable declarations before code.
239 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
241 * tree.h (build_function_type_array): Declare.
242 (build_varargs_function_type_array): Declare.
243 (build_function_type_vec, build_varargs_function_type_vec): Define.
244 * tree.c (build_function_type_array_1): New function.
245 (build_function_type_array): New function.
246 (build_varargs_function_type_array): New function.
248 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
250 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
251 before setting STMT_VINFO_TYPE.
253 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
255 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
256 instead of spu_pass_by_reference.
258 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
260 * calls.c (emit_library_call_value_1): Invoke
261 promote_function_mode hook on libcall arguments.
262 * explow.c (promote_function_mode, promote_mode): Handle TYPE
264 * targhooks.c (default_promote_function_mode): Lisewise.
265 * config/s390/s390.c (s390_promote_function_mode): Likewise.
266 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
268 * doc/tm.texi: Document that TYPE argument might be NULL.
270 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
272 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
274 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
277 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
279 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
281 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
282 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
284 * mips-tfile.c: ... here.
285 Don't include coretypes.h, tm.h, filenames.h.
286 (saber_stop): Remove definition and all calls.
288 (__LINE__): Remove default.
289 (Size_t, Ptrdiff_t): Remove definitions.
290 Replace by size_t, ptrdiff_t.
291 [!MIPS_DEBUGGING_INFO]: Remove.
292 (SHASH_SIZE, THASH_SIZE): Remove defaults.
293 (progname): Add const.
295 Replace all uses by static.
296 (ALIGN_SYMTABLE_OFFSET): Remove default.
297 * mips-tdump.c: Don't include coretypes.h, tm.h.
298 Remove !MIPS_IS_STAB guard.
299 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
300 $(TM_H), filenames.h dependencies.
301 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
303 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
306 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
307 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
309 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
312 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
313 account and save/restore RETS.
314 (PROFILE_BEFORE_PROLOGUE): Define.
315 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
316 the push insn to use predecrement.
318 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
321 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
323 2011-05-04 Nick Clifton <nickc@redhat.com>
325 * config/mn10300/mn10300.c: Include cfgloop.h.
327 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
328 Lcc or a FLcc insn into the instruction stream.
329 (mn10300_block_contains_call): New function. Returns true if the
330 given basic block contains a CALL insn.
331 (mn10300_loop_contains_call_insn): New function. Returns true if
332 the given loop contains a CALL insn.
333 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
334 to use the SETLB and Lcc or FLcc insns.
335 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
336 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
337 * config/mn10300/mn10300.opt (msetlb): New option. Used to
338 disable the SETLB optimization.
339 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
340 __SETLB__ or __NO_SETLB__.
341 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
342 (movsf_internal): Handle MDR register.
343 (cmpsi): Make visible.
344 (setlb): New pattern.
348 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
351 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
353 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
354 (vec_concatv2di_rex64_sse): Ditto.
355 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
356 (*vec_extractv2di_1_rex64): Ditto.
359 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
361 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
363 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
365 2011-05-04 Richard Guenther <rguenther@suse.de>
367 * tree.h (int_const_binop): Remove notrunc argument.
368 * fold-const.c (int_const_binop): Remove notrunc argument. Always
369 create integer constants that are properly truncated.
370 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
371 (const_binop): Remove zero notrunc argument to int_const_binop.
372 (size_binop_loc): Likewise.
373 (fold_div_compare): Likewise.
374 (maybe_canonicalize_comparison_1): Likewise.
375 (fold_comparison): Likewise.
376 (fold_binary_loc): Likewise.
377 (multiple_of_p): Likewise.
378 * expr.c (store_constructor): Likewise.
379 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
380 (maybe_fold_stmt_addition): Likewise.
381 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
382 * stor-layout.c (layout_type): Likewise.
383 * tree-data-ref.c (tree_fold_divides_p): Likewise.
384 * tree-sra.c (build_ref_for_offset): Likewise.
385 (build_user_friendly_ref_for_offset): Likewise.
386 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
387 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
388 * tree-ssa-loop-niter.c (inverse): Likewise.
389 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
390 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
391 * tree-switch-conversion.c (check_range): Likewise.
392 (build_constructors): Likewise.
393 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
394 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
395 (extract_range_from_assert): Likewise.
396 (vrp_int_const_binop): Likewise.
397 (extract_range_from_binary_expr): Likewise.
398 (extract_range_from_unary_expr): Likewise.
399 (check_array_ref): Likewise.
400 (find_case_label_range): Likewise.
401 (simplify_div_or_mod_using_ranges): Likewise.
402 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
403 comparing case labels for merging.
405 2011-05-03 Mark Wielaard <mjw@redhat.com>
407 * dwarf2out.c (debug_str_hash_forced): Removed.
408 (gen_label_for_indirect_string): Removed.
409 (get_debug_string_label): Removed.
410 (AT_string_form): Generate label directly.
411 (output_indirect_string): Test indirect_string_node for
412 DW_FORM_strp instead of checking label and refcount.
413 (prune_indirect_string): Removed.
414 (prune_unused_types): Don't check debug_str_hash_forced or
415 call prune_indirect_string.
417 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
420 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
422 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
426 * combine.c (try_combine): Skip debug insns at m_split tests.
428 2011-04-26 Mark Wielaard <mjw@redhat.com>
431 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
432 when info_section_emitted.
434 2011-05-03 Joseph Myers <joseph@codesourcery.com>
436 * config/mips/mips-opts.h: New.
437 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
439 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
440 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
441 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
443 * config/mips/mips.h (enum mips_code_readable_setting): Move to
445 (mips_abi, mips_code_readable): Don't declare.
446 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
447 (mabi=): Use Enum and Var.
448 (mips_abi): New Enum and EnumValue entries.
449 (mcode-readable=): Use Enum and Var.
450 (mips_code_readable_setting): New Enum and EnumValue entries.
451 (mr10k-cache-barrier=): Use Enum and Var.
452 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
454 2011-05-03 Jan Hubicka <jh@suse.cz>
456 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
457 replace hash by pointer map.
458 (cgraph_node_set_element_def, cgraph_node_set_element,
459 const_cgraph_node_set_element, varpool_node_set_element_def,
460 varpool_node_set_element, const_varpool_node_set_element): Remove.
461 (free_cgraph_node_set, free_varpool_node_set): New function.
462 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
463 * tree-emutls.c: Free varpool node set.
464 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
465 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
466 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
467 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
468 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
469 Move here from ipa.c; implement using pointer_map
470 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
471 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
472 debug_cgraph_node_set, varpool_node_set_new,
473 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
474 dump_varpool_node_set, debug_varpool_node_set):
476 * passes.c (ipa_write_summaries): Update.
478 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
481 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
482 bf542/bf544/bf547/bf548/bf549.
484 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
486 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
488 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
491 * config/bfin/bfin.md (MOVCC): New mode_macro.
492 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
493 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
494 comments from generated assembly.
496 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
499 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
500 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
501 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
502 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
503 * config/bfin/lib1funcs.asm (___muldi3): New function.
505 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
507 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
508 build_function_type_list instead of build_function_type.
509 Rearrange initialization of `args' to do so.
511 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
513 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
514 instead of build_function_type.
516 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
518 * config/rs6000/rs6000.c (spe_init_builtins): Call
519 build_function_type_list instead of build_function_type.
520 (paired_init_builtins, altivec_init_builtins): Likewise.
521 (builtin_function_type): Likewise.
523 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
525 * config/sh/sh.c (sh_media_init_builtins): Call
526 build_function_type_list instead of build_function_type.
528 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
530 * config/sparc/sparc.c (sparc_file_end): Call
531 build_function_type_list instead of build_function_type.
533 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
535 * config/alpha/alpha.c (alpha_init_builtins): Call
536 build_function_type_list instead of build_function_type.
538 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
540 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
541 build_function_type_list instead of build_function_type.
543 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
545 * config/iq2000/i2000.c (iq2000_init_builtins): Call
546 build_function_type_list instead of build_function_type.
547 Delete `endlink' variable.
549 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
551 * config/avr/avr.c (avr_init_builtins): Call
552 build_function_type_list instead of build_function_type.
554 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
556 * config/picochip/picochip.c (picochip_init_builtins): Call
557 build_function_type_list instead of build_function_type.
558 Delete `endlink' variable.
560 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
562 * config/bfin/bfin.c (bfin_init_builtins): Call
563 build_function_type_list instead of build_function_type.
565 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
568 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
569 that's not CONST_INT. Seemingly redundant check is due to PR39768.
571 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
574 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
575 libbffastfp overrides libgcc when -mfast-fp.
577 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
579 Originally from Bernd Schmidt
580 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
581 * config/bfin/bfin.c (override_options): Test it and error if
584 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
586 Originally From Bernd Schmidt
587 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
590 2011-05-03 Jeff Law <law@redhat.com>
592 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
593 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
594 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
595 than accessing AUX field directly. Free the AUX field before
597 (thread_block, thread_through_loop_header): Likewise.
598 (thread_single_edge, mark_threaded_blocks): Likewise.
599 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
600 (register_jump_thread): Do not attempt to thread to a NULL edge.
602 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
604 * function.c (init_function_start): Call decide_function_section.
605 * varasm.c (decide_function_section): New function.
606 (assemble_start_function): When not using
607 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
608 or first_function_block_is_cold.
609 * rtl.h (decide_function_section): Declare.
611 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
612 Jakub Jelinek <jakub@redhat.com>
615 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
616 only succeed if req_mode is the same as set_mode.
618 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
620 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
621 * genemit.c (gen_exp): Handle RETURN.
622 * emit-rtl.c (verify_rtx_sharing): Likewise.
623 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
624 * rtl.c (copy_rtx): RETURN is shared.
625 * rtl.h (enum global_rtl_index): Add GR_RETURN.
627 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
628 * config/s390/s390.c (s390_emit_epilogue): Likewise.
629 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
630 * config/cris/cris.c (cris_expand_return): Likewise.
631 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
632 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
633 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
634 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
635 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
637 * config/v850/v850.c (expand_epilogue): Likewise.
638 * config/bfin/bfin.c (bfin_expand_call): Likewise.
639 * config/arm/arm.md (epilogue): Likewise.
640 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
641 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
644 2011-05-03 Richard Guenther <rguenther@suse.de>
647 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
648 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
649 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
651 2011-05-03 Richard Guenther <rguenther@suse.de>
653 * c-decl.c (grokdeclarator): Instead of looking at
654 TREE_OVERFLOW check if the constant fits in the index type.
656 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
658 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
659 (vec_store_lanes<mode><mode>): Likewise.
661 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
663 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
664 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
665 convert_optab_index values.
666 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
667 * genopinit.c (optabs): Initialize the new optabs.
668 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
669 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
670 (expand_STORE_LANES): New functions.
671 * tree.h (build_array_type_nelts): Declare.
672 * tree.c (build_array_type_nelts): New function.
673 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
674 (vect_model_load_cost): Likewise.
675 (vect_store_lanes_supported, vect_load_lanes_supported)
676 (vect_record_strided_load_vectors): Declare.
677 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
678 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
679 (vect_transform_strided_load): Split out statement recording into...
680 (vect_record_strided_load_vectors): ...this new function.
681 * tree-vect-stmts.c (create_vector_array, read_vector_array)
682 (write_vector_array, create_array_ref): New functions.
683 (vect_model_store_cost): Add store_lanes_p argument.
684 (vect_model_load_cost): Add load_lanes_p argument.
685 (vectorizable_store): Try to use store-lanes functions for
687 (vectorizable_load): Likewise load-lanes and loads.
688 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
689 to vect_model_store_cost.
690 (vect_build_slp_tree): Likewise vect_model_load_cost.
692 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
694 * hooks.h (hook_bool_mode_uhwi_false): Declare.
695 * hooks.c (hook_bool_mode_uhwi_false): New function.
696 * target.def (array_mode_supported_p): New hook.
697 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
698 * doc/tm.texi: Regenerate.
699 * stor-layout.c (mode_for_array): New function.
700 (layout_type): Use it.
701 * config/arm/arm.c (arm_array_mode_supported_p): New function.
702 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
704 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
707 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
708 for -fstack-check if the size to allocate is negative.
710 2011-05-02 Lawrence Crowl <crowl@google.com>
712 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
713 (timevar_cond_start): New for starting a timer only when it is not
715 (timevar_cond_stop): New for stopping a timer when it was not already
718 * timevar.c (timevar_stop): Enable start/stop timers to start again.
719 (timevar_cond_start): New as above.
720 (timevar_cond_stop): New as above.
722 * timevar.def: Add start/stop timers for compiler phases,
723 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
724 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
725 and TV_PHASE_FINALIZE.
726 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
727 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
728 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
729 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
730 Make unused TV_OVERLOAD into a start/stop timer.
732 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
733 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
734 to indicate that they are start/stop timers.
736 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
737 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
738 Move initialization to do_compile.
739 (do_compile): Add initialization from above.
740 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
742 * c-decl.c (c_write_global_declarations): Add start/stop of
743 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
745 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
746 or TV_PARSE_INLINE, as appropriate.
747 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
748 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
750 2011-05-02 Jason Merrill <jason@redhat.com>
753 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
755 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
758 * c-decl.c (finish_decl): Only create a composite if the types are
761 2011-05-02 Joseph Myers <joseph@codesourcery.com>
763 * config/fr30/fr30-protos.h (Mmode): Don't define.
764 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
765 definition where used.
766 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
767 define. Expand definitions where used.
768 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
769 Expand definitions where used.
770 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
771 rx_function_arg, rx_function_arg_advance,
772 rx_function_arg_boundary): Expand definitions of those macros.
773 * config/v850/v850-protos.h (Mmode): Don't define. Expand
774 definition where used.
776 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
778 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
780 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
781 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
782 with *movv2sf_internal_rex64_avx.
783 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
784 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
785 Use %v prefix in insn mnemonic to handle TARGET_AVX.
786 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
787 "vex" in "prefix" attribute calculation.
788 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
790 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
793 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
794 inputs match the output.
796 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
799 * config/m68k/m68k.c (m68k_expand_prologue): Set
800 current_function_static_stack_size.
802 2011-05-02 Jan Hubicka <jh@suse.cz>
804 * lto-streamer.c (lto_streamer_cache_insert_1,
805 lto_streamer_cache_lookup, lto_streamer_cache_create,
806 lto_streamer_cache_delete): Use pointer map instead of hashtable.
807 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
809 2011-05-02 Joseph Myers <joseph@codesourcery.com>
811 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
812 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
813 config/m68k/t-opts: New files.
814 * config/m68k/m68k-tables.opt: New file (generated).
815 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
816 extra_options and m68k/t-opts to tmake_file.
817 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
818 (all_isas): Initialize using m68k-isas.def.
819 (all_microarchs): Initialize using m68k-microarchs.def.
820 (m68k_find_selection): Remove.
821 (m68k_handle_option): Don't assert that global structures are in
822 use. Use error_at. Access variables via opts pointer. Don't
823 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
824 directly for -m68020-40 and -m68020-60.
825 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
826 m68k_tune_entry here.
827 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
829 (m68k_library_id_string): Remove declaration.
830 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
831 (m68k_library_id_string): New Variable.
832 (march=, mcpu=, mtune=): Use Enum and Var.
834 2011-05-02 Richard Guenther <rguenther@suse.de>
836 * varasm.c (output_constructor_regular_field): Compute zero-based
837 index with double-ints. Make sure to ICE instead of producing
839 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
840 in asserts. Properly use a signed type.
842 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
844 * config/i386/sse.md (V): New mode iterator.
845 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
847 (V_256): Rename from AVX256MODE.
848 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
849 condition to all users.
851 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
852 condition to all users.
853 (VF_128): Make V4SF mode unconditional.
854 (VF_256): Rename from AVX256MODEF2P.
855 (VI4F_128): Rename from SSEMODE4S.
856 (VI8F_128): Rename from SSEMODE2D.
857 (VI4F_256): Rename from AVX256MODE8P.
858 (VI8F_256): Rename from AVX256MODE4P.
859 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
860 (ssescalarmodesuffix): Remove SF and DF modes.
861 (SSEMODE124): Remove.
862 (SSEMODE1248): Ditto.
867 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
869 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
871 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
872 xop_pcmov_<mode>256. Use V mode iterator.
874 Adjust RTX patterns globally for renamed mode attributes.
876 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
878 * haifa-sched.c (sched_emit_insn): Emit insn before first
879 non-scheduled insn. Inform back-end about new insn. Add
880 new insn to scheduled_insns list.
882 2011-05-02 Richard Guenther <rguenther@suse.de>
884 PR tree-optimization/48822
885 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
886 (process_scc): Indicate which iteration we start.
888 2011-05-02 Jan Hubicka <jh@suse.cz>
890 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
891 (lto_section_overrun): New.
892 * lto-section-out.c (append_block): Rename to ...
893 (lto_append_block): ... this one; export.
894 (lto_output_1_stream): Move lto lto-streamer.h
895 (lto_output_data_stream): Update.
896 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
897 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
900 2011-05-02 Richard Guenther <rguenther@suse.de>
902 * tree.c (tree_code_counts): New global array.
903 (record_node_allocation_statistics): Count individual tree codes.
904 (dump_tree_statistics): Dump individual code stats.
906 2011-05-01 Jan Hubicka <jh@suse.cz>
908 * ipa-inline.c (caller_growth_limits): Fix thinko when
909 looking for largest stack frame.
910 * ipa-inline.h (dump_inline_summary): Declare.
911 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
913 (dump_inline_summary): Export.
914 (debug_inline_summary): Declare as DEBUG_FUNCTION.
916 2011-05-01 Anatoly Sokolov <aesok@post.ru>
918 * reginfo.c (memory_move_cost): Change rclass argument type form
919 'enum reg_class' to reg_class_t.
920 * reload.h (memory_move_cost): Update prototype.
921 * postreload.c reload_cse_simplify_set): Change type dclass var to
923 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
925 (ira_allocate_and_set_costs): Change aclass argument type form
926 'enum reg_class' to reg_class_t.
927 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
928 Change aclass argument type to reg_class_t.
929 (update_conflict_hard_reg_costs): Change type aclass and pref vars
931 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
932 memory_move_cost call.
934 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
935 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
936 Change type tmp var to reg_class_t.
938 2011-04-30 Jan Hubicka <jh@suse.cz>
940 * ipa-inline.c (can_inline_edge_p): Disregard limits when
941 inlining into function with flatten attribute.
942 (want_inline_small_function_p): Be more realistic about inlining
943 cold calls where callee size grows.
945 2011-04-30 Jan Hubicka <jh@suse.cz>
947 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
950 2011-04-30 Anatoly Sokolov <aesok@post.ru>
952 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
953 PRINT_OPERAND_PUNCT_VALID_P): Remove.
954 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
955 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
956 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
957 (print_operand): Rename to...
958 (sparc_print_operand): ...this. Make static. Adjust
959 sparc_print_operand function call.
960 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
963 2011-04-30 Jan Hubicka <jh@suse.cz>
966 * ipa-inline.c (early_inliner): Disable when doing late
967 addition of function.
969 2011-04-30 Jakub Jelinek <jakub@redhat.com>
971 * dwarf2out.c (get_address_mode): New inline.
972 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
973 if not dwarf_strict emit
974 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
975 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
976 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
977 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
978 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
979 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
980 mem_loc_descriptor callers.
981 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
982 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
983 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
984 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
985 (base_types): New variable.
986 (get_base_type_offset, calc_base_type_die_sizes,
987 base_type_for_mode, mark_base_types, base_type_cmp,
988 move_marked_base_types): New functions.
989 (calc_die_sizes): Assert that die_offset is 0 or equal to
991 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
992 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
993 callers. If not dwarf_strict, call mem_loc_descriptor even for
994 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
995 (gen_subprogram_die): Don't give up on call site parameters
996 with non-integral or large integral modes. Adjust
997 mem_loc_descriptor callers.
998 (prune_unused_types): Call prune_unused_types_mark on base_types
1000 (resolve_addr): Call mark_base_types.
1001 (dwarf2out_finish): Call move_marked_base_types.
1003 PR tree-optimization/48809
1004 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1006 (gen_inbound_check): Don't compute index_expr - range_min in utype
1007 again, instead reuse SSA_NAME initialized in build_arrays.
1008 Remove two useless gsi_for_stmt calls.
1010 2011-04-29 Jeff Law <law@redhat.com>
1012 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1014 2011-04-29 Martin Jambor <mjambor@suse.cz>
1016 * cgraph.h (cgraph_postorder): Remove declaration.
1017 * ipa-utils.h (ipa_free_postorder_info): Declare.
1018 (ipa_reverse_postorder): Likewise.
1019 * cgraphunit.c: Include ipa-utils.h.
1020 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1021 * ipa-inline.c: Include ipa-utils.h.
1022 (ipa_inline): Update call to ipa_reverse_postorder.
1023 * ipa-pure-const.c (propagate_pure_const): Update call to
1024 ipa_reduced_postorder and ipa_print_order. Call
1025 ipa_free_postorder_info to clean up.
1026 (propagate_nothrow): Likewise.
1027 * ipa-reference.c (propagate): Removed a useless call to
1028 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1029 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1030 * ipa.c: Include ipa-utils.h.
1031 (ipa_profile): Update call to ipa_reverse_postorder.
1032 (cgraph_postorder): Moved to...
1033 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1034 (ipa_utils_print_order): Renamed to ipa_print_order.
1035 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1037 (ipa_free_postorder_info): New function.
1038 * passes.c: Include ipa-utils.h.
1039 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1040 (ipa_write_summaries): Likewise.
1041 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1042 (cgraphunit.o): Likewise.
1044 (ipa-inline.o): Likewise.
1046 2011-04-29 Jan Hubicka <jh@suse.cz>
1048 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1049 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1050 * ipa-inline.h (clause_t): Turn into unsigned int.
1051 * ipa-inline-analysis.c (add_clause): Do more simplification.
1052 (and_predicates): Shortcut more cases.
1053 (predicates_equal_p): Move forward; check that clauses are properly
1055 (or_predicates): Shortcut more cases.
1056 (edge_execution_predicate): Rewrite as...
1057 (set_cond_stmt_execution_predicate): ... this function; handle
1058 __builtin_constant_p.
1059 (set_switch_stmt_execution_predicate): New .
1060 (compute_bb_predicates): New.
1061 (will_be_nonconstant_predicate): Update TODO.
1062 (estimate_function_body_sizes): Use compute_bb_predicates
1063 and free them later, always try to estimate if stmt is constant.
1064 (estimate_time_after_inlining, estimate_size_after_inlining):
1065 Gracefully handle optimized out edges.
1066 (read_predicate): Fix off by one error.
1068 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1070 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1072 2011-04-27 Xinliang David Li <davidxl@google.com>
1074 * tree-profile.c (init_ic_make_global_vars): Set
1075 tls attribute on ic vars.
1076 * coverage.c (coverage_end_function): Initialize
1077 function_list with zero.
1079 2011-04-29 Richard Guenther <rguenther@suse.de>
1081 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1082 for the type of the result.
1083 (fold_builtin_isascii): Likewise.
1084 (fold_builtin_toascii): Use integer_type_node where appropriate.
1085 (fold_builtin_logb): Likewise.
1086 (fold_builtin_frexp): Likewise.
1087 (fold_builtin_strstr): Likewise.
1088 (fold_builtin_strpbrk): Likewise.
1089 (fold_builtin_fputs): Likewise.
1090 (fold_builtin_sprintf): Likewise.
1091 (fold_builtin_snprintf): Likewise.
1092 (fold_builtin_printf): Likewise.
1093 (do_mpfr_remquo): Use a proper type for the assigned constant.
1094 (do_mpfr_lgamma_r): Likewise.
1095 * dwarf2out.c (resolve_one_addr): Use size_int.
1096 * except.c (init_eh): Likewise.
1097 (assign_filter_values): Use integer_type_node for filter values.
1098 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1100 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1101 for EH region numbers.
1102 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1103 for the shift amount.
1105 2011-04-29 Richard Guenther <rguenther@suse.de>
1107 * expr.h (expand_shift): Rename to ...
1108 (expand_variable_shift): ... this.
1109 (expand_shift): Take a constant shift amount.
1110 * expmed.c (expand_shift): Rename to ...
1111 (expand_variable_shift): ... this.
1112 (expand_shift): New wrapper around expand_variable_shift.
1113 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1114 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1115 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1116 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1117 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1118 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1119 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1120 emit_store_flag_1, emit_store_flag): Likewise.
1121 * builtins.c (expand_builtin_signbit): Likewise.
1122 * calls.c (load_register_parameters): Likewise.
1123 * function.c (assign_parm_setup_block): Likewise.
1124 * lower-subreg.c (resolve_shift_zext): Likewise.
1125 * optabs.c (widen_bswap, expand_abs_nojump,
1126 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1127 * spu/spu.c (spu_expand_extv): Likewise.
1128 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1130 2011-04-29 Richard Guenther <rguenther@suse.de>
1132 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1133 for the remapped region number.
1134 * predict.c (build_predict_expr): Use integer_type_node for the
1136 * fold-const.c (fold_binary_loc): Use integer_type_node for
1137 the shift amount. Use a proper type for the PLUS_EXPR operand.
1139 2011-04-29 Michael Matz <matz@suse.de>
1141 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1142 other trees that just builtins.
1143 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1145 2011-04-29 Richard Guenther <rguenther@suse.de>
1147 * tree-nested.c (get_trampoline_type): Use size_int.
1148 (get_nl_goto_field): Likewise.
1149 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1151 (lower_eh_constructs_2): Likewise.
1152 (lower_resx): Likewise.
1153 (lower_eh_dispatch): Likewise.
1154 * tree-mudflap.c (mf_build_string): Use size_int.
1155 (mudflap_register_call): Use integer_type_node for the flag.
1156 (mudflap_enqueue_constant): Use size_int.
1157 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1158 instead of rebuilding it.
1160 2011-04-29 Richard Guenther <rguenther@suse.de>
1162 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1163 Handle OBJ_TYPE_REF.
1164 (find_func_aliases_for_call): Use it more consistently.
1166 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1168 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1169 (rank_for_schedule): Use it.
1170 (schedule_block): Set it.
1172 2011-04-28 David Li <davidxl@google.com>
1174 * tree.c (crc32_string): Use crc32_byte.
1175 (crc32_byte): New function.
1176 * tree.h (crc32_byte): New function.
1177 * gcov.c (read_graph_file): Handle new cfg_cksum.
1178 (read_count_file): Ditto.
1179 * profile.c (instrument_values): Ditto.
1180 (get_exec_counts): Ditto.
1181 (read_profile_edge_counts): Ditto.
1182 (compute_branch_probabilities): Ditto.
1183 (compute_value_histograms): Ditto.
1184 (branch_prob): Ditto.
1185 (end_branch_prob): Ditto.
1186 * coverage.c (read_counts_file): Ditto.
1187 (get_coverage_counts): Ditto.
1188 (tree_coverage_counter_addr): Ditto.
1189 (coverage_checksum_string): Ditto.
1190 (coverage_begin_output): Ditto.
1191 (coverage_end_function): Ditto.
1192 (build_fn_info_type): Ditto.
1193 (build_fn_info_value): Ditto.
1194 * libgcov.c (gcov_exit): Ditto.
1195 * gcov-dump.c (tag_function): Ditto.
1196 (compute_checksum): Remove.
1198 2011-04-29 Alan Modra <amodra@gmail.com>
1200 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1201 unspec plus offset. Tidy macho code.
1203 2011-04-29 Martin Jambor <mjambor@suse.cz>
1205 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1206 node instead of a decl. Update all callers.
1207 * cgraph.h: Update declaration.
1209 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1211 PR tree-optimization/48765
1212 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1213 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1214 to indicate if loop aware SLP is being used. Scan the statements
1215 and update the vectorization factor according to the type of
1216 vectorization before statement analysis.
1217 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1218 pass it to vect_analyze_loop_operations.
1219 (vectorizable_reduction): Set number of copies to 1 in case of pure
1221 * tree-vect-stmts.c (vectorizable_conversion,
1222 vectorizable_assignment, vectorizable_shift,
1223 vectorizable_operation, vectorizable_type_demotion,
1224 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1226 (vectorizable_condition): Move the check that it is not SLP
1227 vectorization before the number of copies check.
1228 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1229 to vectorize the loop using SLP.
1231 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1234 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1237 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1239 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1240 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1241 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1242 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1243 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1245 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1246 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1247 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1248 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1249 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1250 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1252 * config/i386/linux.h (REG_NAME): Don't define.
1253 * config/i386/linux64.h (REG_NAME): Don't define.
1254 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1255 Undefine before defining.
1257 2011-04-28 Jan Hubicka <jh@suse.cz>
1259 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1260 nonconstant_names array.
1261 (estimate_function_body_sizes): Build nonconstant_names array; handle
1262 BUILT_IN_CONSTANT_P.
1264 2011-04-28 Richard Guenther <rguenther@suse.de>
1268 2011-04-28 Richard Guenther <rguenther@suse.de>
1270 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1271 as late as possible.
1273 2011-04-28 Richard Guenther <rguenther@suse.de>
1275 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1276 (debug_constraint): Do it here.
1277 (dump_constraints): And here.
1278 (rewrite_constraints): And here.
1279 (dump_constraint_edge): Remove.
1280 (dump_constraint_graph): Rewrite to produce DOT output.
1281 (solve_constraints): Build succ graph as late as possible.
1282 Dump constraint graphs before and after solving.
1284 2011-04-28 Richard Guenther <rguenther@suse.de>
1286 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1287 New function split out from ...
1288 (find_func_aliases): ... here. Call it.
1289 (find_func_aliases_for_call): Likewise.
1291 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1293 * internal-fn.h (internal_fn_name_array): Declare.
1294 (internal_fn_flags_array): Likewise.
1296 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1298 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1299 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1301 (ssemodefsuffix): Remove.
1302 (ssevecmodesuffix): New mode attribute.
1303 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1304 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1305 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1306 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1307 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1308 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1309 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1310 ssemodesuffix mode attribute.
1311 (float splitters): Use ssevecmodesuffix mode attribute.
1312 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1313 (sseinsmode): Rename from avxvecmode.
1314 (avxsizesuffix): Rename from avxmodesuffix.
1315 (sseintvecmode): Rename from avxpermvecmode.
1316 (ssedoublevecmode): Rename from ssedoublesizemode.
1317 (ssehalfvecmode): Rename from avxhalfvecmode.
1318 (ssescalarmode): Rename from avxscalarmode.
1319 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1320 templates for ssemodesuffix mode attribute.
1321 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1324 Adjust RTX patterns globally for renamed mode attributes.
1326 2011-04-27 Jan Hubcika <jh@suse.cz>
1328 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1329 * ipa-inline-analysis.c: Include alloc-pool.h.
1330 (edge_predicate_pool): New.
1331 (trye_predicate_p): New function
1332 (false_predicate_p): New function.
1333 (add_clause): Sanity check that false clauses are "optimized";
1334 never add clauses to predicate that is already known to be false.
1335 (and_predicate): Use flase_predicate_p.
1336 (evaulate_predicate): Rename to ...
1337 (evaluate_predicate): ... this one; update all callers; assert
1338 that false is not listed among possible truths.
1339 (dump_predicate): Use true_predicate_p.
1340 (account_size_time): Use false_predicate_p.
1341 (evaulate_conditions_for_edge): Rename to ...
1342 (evaluate_conditions_for_edge) ... this one.
1343 (edge_set_predicate): New function.
1344 (inline_edge_duplication_hook): Duplicate edge predicates.
1345 (inline_edge_removal_hook): Free edge predicates.
1346 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1347 (dump_inline_summary): Update.
1348 (estimate_function_body_sizes): Set edge predicates.
1349 (estimate_calls_size_and_time): Handle predicates.
1350 (estimate_callee_size_and_time): Update.
1351 (remap_predicate): Add toplev_predicate; update comment.
1352 (remap_edge_predicates): New function.
1353 (inline_merge_summary): Compute toplev predicate; update.
1354 (read_predicate): New function.
1355 (read_inline_edge_summary): Use it.
1356 (inline_read_section): Likewise.
1357 (write_predicate): New function.
1358 (write_inline_edge_summary): Use it.
1359 (inline_write_summary): Likewise.
1360 (inline_free_summary): Free alloc pool and edge summary vec.
1362 2011-04-27 Richard Guenther <rguenther@suse.de>
1364 * tree-ssa-structalias.c (changed_count): Remove.
1365 (changed): Use a bitmap.
1366 (unify_nodes): Adjust.
1367 (do_sd_constraint): Likewise.
1368 (do_ds_constraint): Likewise.
1369 (do_complex_constraint): Likewise.
1370 (solve_graph): Likewise.
1372 2011-04-27 Jan Hubicka <jh@suse.cz>
1374 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1376 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1378 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1379 (avx_vperm2f128_*_operand): Ditto.
1380 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1381 Use avx_vpermilp_parallel in insn condition.
1382 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1383 Use avx_vperm2f128_parallel in insn condition.
1385 2011-04-27 Richard Guenther <rguenther@suse.de>
1387 * Makefile.in (tree-ssa-structalias.o): Remove
1388 gt-tree-ssa-structalias.h dependency.
1389 (GTFILES): Remove tree-ssa-structalias.c.
1390 * tree.c (allocate_decl_uid): New function.
1391 (make_node_stat): Use it.
1392 (copy_node_stat): Likewise.
1393 * tree.h (allocate_decl_uid): Declare.
1394 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1395 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1396 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1397 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1398 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1399 (struct heapvar_map): Likewise.
1400 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1401 heapvar_insert): Likewise.
1402 (make_heapvar_for): Rename to ...
1403 (make_heapvar): ... this. Simplify.
1404 (fake_var_decl_obstack): New global var.
1405 (build_fake_var_decl): New function.
1406 (make_constraint_from_heapvar): Adjust.
1407 (handle_lhs_call): Likewise.
1408 (create_function_info_for): Likewise.
1409 (intra_create_variable_infos): Likewise.
1410 (init_alias_vars): Allocate fake_var_decl_obstack.
1411 (init_alias_heapvars, delete_alias_heapvars): Remove.
1412 (compute_points_to_sets): Do not call init_alias_heapvars.
1413 (ipa_pta_execute): Likewise.
1414 (delete_points_to_sets): Free fake_var_decl_obstack.
1416 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1418 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1419 (si_from_UTItype, si_to_UTItype): New functions.
1420 (__udivmodti4): Use them to implement type-punning.
1421 * config/spu/multi3.c (union qword_TItype): New data type.
1422 (si_from_TItype, si_to_TItype): New functions.
1423 (__multi3): Use them to implement type-punning.
1425 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1427 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1429 2011-04-27 Jan Hubicka <jh@suse.cz>
1431 * ipa-prop.c (function_insertion_hook_holder): New holder.
1432 (ipa_add_new_function): New function.
1433 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1434 Register/deregister holder.
1436 2011-04-27 Richard Guenther <rguenther@suse.de>
1438 PR tree-optimization/48772
1439 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1441 2011-04-27 Richard Guenther <rguenther@suse.de>
1443 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1444 TARGET_MEM_REF handling.
1446 2011-04-27 Nick Clifton <nickc@redhat.com>
1448 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1449 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1450 (REG_CLASS_NAMES): Likewise.
1451 (REG_CLASS_CONTENTS): Likewise.
1452 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1453 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1454 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1455 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1456 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1457 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1458 duplicate register classes.
1459 (frv_class_likely_spilled_p): Likewise.
1460 (frv_register_move_cost): Likewise.
1462 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1463 end of the regno_reg_class array.
1465 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1468 * c-typeck.c (build_binary_op): Don't wrap arguments if
1469 int_operands is true.
1471 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1474 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1475 targetm.calls.must_pass_in_stack for void type.
1477 2011-04-26 Jan Hubicka <jh@suse.cz>
1479 * cgraphbuild.c (build_cgraph_edges): Update call
1480 of cgraph_create_edge and cgraph_create_indirect_edge.
1481 * cgraph.c (cgraph_create_edge_including_clones,
1482 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1483 cgraph_update_edges_for_call_stmt_node): Do not take nest
1484 argument; do not initialize call_stmt_size/time.
1485 (dump_cgraph_node): Do not dump nest.
1486 (cgraph_clone_edge): Do not take loop_nest argument;
1487 do not propagate it; do not clone call_stmt_size/time.
1488 (cgraph_clone_node): Likewise.
1489 (cgraph_create_virtual_clone): Update.
1490 * cgraph.h (struct cgraph_edge): Remove
1491 call_stmt_size/call_stmt_time/loop_nest.
1492 (cgraph_create_edge, cgraph_create_indirect_edge,
1493 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1495 * tree-emutls.c (gen_emutls_addr): Update.
1496 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1497 loop_nest; handle indirect calls, too.
1498 (clone_inlined_nodes): Do not care about updating inline summaries.
1499 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1500 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1501 stream call_stmt_size/call_stmt_time/loop_nest.
1502 * ipa-inline.c (edge_badness): Update.
1503 (ipa_inline): dump summaries after inlining.
1504 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1506 (inline_edge_summary): New function.
1507 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1508 (inline_edge_removal_hook): Handle edge summaries.
1509 (inline_edge_duplication_hook): New hook.
1510 (inline_summary_alloc): Alloc hooks.
1511 (initialize_growth_caches): Do not register removal hooks.
1512 (free_growth_caches); Do not free removal hook.
1513 (dump_inline_edge_summary): New function.
1514 (dump_inline_summary): Use it.
1515 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1516 (inline_update_callee_summaries): New function.
1517 (inline_merge_summary): Use it.
1518 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1519 (read_inline_edge_summary): New function.
1520 (inline_read_section): Use it.
1521 (write_inline_edge_summary): New function.
1522 (inline_write_summary): Use it.
1523 (inline_free_summary): Free edge new holders.
1524 * tree-inline.c (copy_bb): Update.
1526 2011-04-26 Jason Merrill <jason@redhat.com>
1528 * tree-eh.c (lower_try_finally_switch): Create the label along with
1529 the CASE_LABEL_EXPR.
1531 2011-04-26 David S. Miller <davem@davemloft.net>
1532 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1534 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1535 * configure: Regenerate.
1537 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1540 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1542 (VEC_reduc): New code iterator and splitters for vector reduction.
1543 (VEC_reduc_name): Ditto.
1544 (VEC_reduc_rtx): Ditto.
1545 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1546 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1548 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1549 support for extracting SF on VSX.
1551 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1552 generating xscvspdp.
1553 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1554 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1555 double add, minimum, maximum vector reduction.
1556 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1557 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1558 optimize double vector reduction.
1559 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1561 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1563 * config/fr30/fr30.h (inhibit_libc): Don't define.
1564 * config/m32r/m32r-protos.h: Correct comment.
1565 * config/v850/v850.h (GHS_default_section_names,
1566 GHS_current_section_names): Use tree, not union tree_node *.
1568 2011-04-26 Xinliang David Li <davidxl@google.com>
1570 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1571 * c-family/c-opts.c (c_common_handle_option): Set
1572 warn_maybe_uninitialized.
1573 * opts.c (common_handle_option): Ditto.
1574 * common.opt: New option.
1575 * tree-ssa.c (warn_uninit): Add one more parameter.
1576 (warn_uninitialized_var): Pass warning code.
1577 * tree-flow.h: Interface change.
1580 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1582 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1583 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1584 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1586 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1588 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1589 * config/mips/mips.opt (mmips-tfile): Remove.
1591 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1592 mips-tdump reference to ...
1593 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1594 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1595 reference by Tru64 UNIX.
1597 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1600 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1601 is error_mark_node, set value to NULL.
1603 PR tree-optimization/48734
1604 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1605 if return value from maybe_fold_*_comparsions isn't something
1606 the code is prepared to handle.
1608 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1610 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1612 (ext_QIreg_nomode_operands): Remove.
1613 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1617 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1619 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1621 2011-04-26 Richard Guenther <rguenther@suse.de>
1623 * c-typeck.c (build_unary_op): Do not expand array-refs via
1624 pointer arithmetic. Only adjust qualifiers for function types.
1626 2011-04-26 Richard Guenther <rguenther@suse.de>
1629 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1630 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1631 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1632 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1634 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1636 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1637 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1638 * doc/extend.texi: Document __underlying_type.
1640 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
1642 * config/rs6000/titan.md (automata_option "progress"): Remove.
1644 2011-04-25 Jeff Law <law@redhat.com>
1646 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1648 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1650 * system.h (ENUM_BITFIELD): Remove.
1652 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
1653 Eric Botcazou <ebotcazou@adacore.com>
1655 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1656 for STORE_FLAG_VALUE==-1 case.
1658 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
1661 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1662 LEGITIMATE_PIC_OPERAND_P.
1664 2011-04-24 Jan Hubicka <jh@suse.cz>
1666 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1668 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1669 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1670 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1671 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1672 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1673 Sanity check predicate length.
1674 (remap_predicate): Likewise; sanity check jump functions.
1675 (inline_read_section, inline_write_summary): Sanity check
1678 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1681 * doc/extend.texi (Type Traits): Document __is_standard_layout,
1682 __is_literal_type, and __is_trivial; update throughout about
1683 possibly cv-qualified void types.
1685 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
1687 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1688 testsuite and make it version agnostic.
1690 2011-04-22 Jan Hubicka <jh@suse.cz>
1692 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1694 2011-04-23 Jakub Jelinek <jakub@redhat.com>
1697 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1698 to VOID_TYPE even around MODIFY_EXPR.
1700 2011-04-22 Mike Stump <mikestump@comcast.net>
1702 * gensupport.c (read_md_rtx): Fix typo in comment.
1703 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1706 2011-04-22 Jan Hubicka <jh@suse.cz>
1708 * gengtype.c (open_base_files): Add ipa-inline.h include.
1709 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1710 ipa-prop.c; update all uses.
1711 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1712 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1713 merge summary of inlined function into former caller.
1714 * ipa-inline.c (max_benefit): Remove.
1715 (edge_badness): Compensate for removal of benefits.
1716 (update_caller_keys): Use
1717 reset_node_growth_cache/reset_edge_growth_cache.
1718 (update_callee_keys): Likewise.
1719 (update_all_callee_keys): Likewise.
1720 (inline_small_functions): Do not collect max_benefit; do not reset
1721 estimated_growth; call free_growth_caches and initialize_growth_caches.
1722 * ipa-inline.h (struct condition, type clause_t, struct predicate,
1723 struct size_time_entry): New structures.
1724 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1725 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1726 and estimated_growth.
1727 (edge_growth_cache_entry): New structure.
1728 (node_growth_cache, edge_growth_cache): New global vars.
1729 (estimate_growth): Turn into inline.
1730 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1731 initialize_growth_caches, free_growth_caches): Declare.
1732 (estimate_edge_growth): Rewrite.
1733 (estimate_edge_time): Implement as inline cache lookup.
1734 (reset_node_growth_cache, reset_edge_growth_cache): New inline
1736 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
1737 (NUM_CONDITIONS): New constant.
1738 (predicate_conditions): New enum.
1739 (IS_NOT_CONSTANT): New constant.
1740 (edge_removal_hook_holder): New var.
1741 (node_growth_cache, edge_growth_cache): New global vars.
1742 (true_predicate, single_cond_predicate, false_predicate,
1743 not_inlined_predicate, add_condition, add_clause, and_predicates,
1744 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
1745 dump_clause, dump_predicate, account_size_time,
1746 evaulate_conditions_for_edge): New functions.
1747 (inline_summary_alloc): Move to heap.
1748 (inline_node_removal_hook): Clear condition and entry vectors.
1749 (inline_edge_removal_hook): New function.
1750 (initialize_growth_caches, free_growth_caches): New function.
1751 (dump_inline_summary): Update.
1752 (edge_execution_predicate): New function.
1753 (will_be_nonconstant_predicate): New function.
1754 (estimate_function_body_sizes): Compute BB and constantness predicates.
1755 (compute_inline_parameters): Do not clear estimated_growth.
1756 (estimate_edge_size_and_time): New function.
1757 (estimate_calls_size_and_time): New function.
1758 (estimate_callee_size_and_time): New function.
1759 (remap_predicate): New function.
1760 (inline_merge_summary): New function.
1761 (do_estimate_edge_time): New function based on...
1762 (estimate_edge_time): ... this one.
1763 (do_estimate_edge_growth): New function.
1764 (do_estimate_growth): New function based on....
1765 (estimate_growth): ... this one.
1766 (inline_analyze_function): Analyze after deciding on jump functions.
1767 (inline_read_section): New function.
1768 (inline_read_summary): Use it.
1769 (inline_write_summary): Write all the new data.
1770 * ipa-prop.c (ipa_get_param_decl_index): Export.
1771 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
1772 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
1774 (ipa_get_lattice): Move here from ipa-cp.c
1775 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
1776 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
1777 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
1778 cgraph_edge_inlinable_p): Remove.
1779 * cgraphunit.c: Include ipainline.h
1780 (cgraph_process_new_functions): Update call of
1781 compute_inline_parameters.
1783 2011-04-22 Richard Guenther <rguenther@suse.de>
1785 * tree.c (build_int_cst): Properly create canonicalized integer
1787 (build_int_cst_type): Remove scary comments.
1789 2011-04-22 Xinliang David Li <davidxl@google.com>
1791 * toplev.c (process_options): Enable -Werror=coverage-mismatch
1792 by default when -Wno-error is not specified.
1793 * opts-global.c (decode_options): Remove call to
1794 control_warning_options.
1796 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1798 PR tree-optimization/48717
1799 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
1800 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
1802 2011-04-22 Joseph Myers <joseph@codesourcery.com>
1804 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
1805 definition where used.
1807 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1810 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
1811 TREE_STATIC variables declared inside of some OpenMP construct.
1813 2011-04-22 Martin Jambor <mjambor@suse.cz>
1816 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
1818 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
1821 * c-typeck.c (pop_init_level): Do not warn about initializing
1824 2011-04-22 Alan Modra <amodra@gmail.com>
1826 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
1827 when returning call_cookie.
1828 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
1829 pointers, to functions with no more vector args than the current
1830 function, and some non-local calls for ABI_V4.
1831 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
1832 sibcall_nonlocal_aix64): Combine to ..
1833 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
1834 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
1835 (sibcall_value_nonlocal_aix<mode>): ..likewise.
1836 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
1837 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
1839 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
1840 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
1841 sibcall_value_symbolic_64): Delete.
1843 2011-04-21 Xinliang David Li <davidxl@google.com>
1845 * cgraph.h: Remove pid.
1846 * cgraph.c: Remove pid.
1847 * value-prof.c (init_node_map): New function.
1848 (del_node_map): New function.
1849 (find_func_by_funcdef_no): New function.
1850 (gimple_ic_transform): Call new function.
1851 * cgraphunit.c (cgraph_finalize_function): Remove pid.
1852 * function.c (get_last_funcdef_no): New function.
1853 * function.h (get_last_funcdef_no): New function.
1854 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
1855 to libgcov function.
1856 (tree-profiling): Call node map init and delete function.
1858 2011-04-21 Ian Lance Taylor <iant@google.com>
1860 * godump.c (go_format_type): Use exported Go name for anonymous
1863 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1865 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
1866 Call builtin_function_type_list instead of builtin_function_type.
1867 (UNARY, BINARY, TRINARY, QUAD): Likewise.
1869 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1871 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
1872 build_function_type_list instead of build_function_type.
1873 Delete variable `endlink'.
1875 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1877 * config/s390/s390.c (s390_init_builtins): Call
1878 build_function_type_list instead of build_function_type.
1880 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1882 * config/ia64/ia64.c (ia64_init_builtins): Call
1883 build_function_type_list instead of builtin_function_type.
1885 2011-04-21 Easwaran Raman <eraman@google.com>
1887 * cfgexpand.c (stack_var): Remove OFFSET...
1888 (add_stack_var): ...and its reference here...
1889 (expand_stack_vars): ...and here.
1890 (stack_var_cmp): Sort by descending order of size.
1891 (partition_stack_vars): Change heuristic.
1892 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
1893 (dump_stack_var_partition): Add newline after each partition.
1895 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
1896 Jeff Law <law@redhat.com>
1898 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
1899 * gengtype.c (matching_file_name_substitute): Likewise.
1901 2011-04-21 Richard Guenther <rguenther@suse.de>
1904 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
1906 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
1908 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
1910 2011-04-21 Richard Guenther <rguenther@suse.de>
1912 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
1915 2011-04-21 Richard Guenther <rguenther@suse.de>
1917 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1918 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
1919 Use DECL_P, not SSA_VAR_P.
1920 (ptr_derefs_may_alias_p): Likewise.
1921 (ptr_deref_may_alias_ref_p_1): Likewise.
1922 (decl_refs_may_alias_p): Likewise.
1923 (refs_may_alias_p_1): Likewise.
1924 (ref_maybe_used_by_call_p_1): Likewise.
1925 (call_may_clobber_ref_p_1): Likewise.
1926 (indirect_ref_may_alias_decl_p): Assume indirect refrences
1927 are either MEM_REF or TARGET_MEM_REF.
1928 (indirect_refs_may_alias_p): Likewise.
1929 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
1930 for MEM_EXPR of indirect calls.
1932 2011-04-21 Tristan Gingold <gingold@adacore.com>
1934 * vmsdbgout.c (write_srccorr): Compute file length from the string.
1935 (dst_file_info_struct): Remove flen field.
1936 (lookup_filename): Remove code that set flen field.
1938 2011-04-21 Tristan Gingold <gingold@adacore.com>
1940 * config/ia64/ia64.c (ia64_start_function): Add a guard.
1942 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
1945 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
1946 vec_extract and vec_concat for non-SSE4_1 targets.
1948 2011-04-21 Richard Guenther <rguenther@suse.de>
1950 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
1953 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1955 * config/i386/cygming.h (union tree_node, TREE): Don't define or
1957 (FILE): Don't undefine.
1959 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1961 * config/alpha/alpha.c (struct machine_function): Use rtx, not
1963 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
1965 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
1966 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
1967 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
1969 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
1970 definitions where used.
1971 * config/microblaze/microblaze.h (struct microblaze_args): Use
1972 rtx, not struct rtx_def *.
1973 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
1975 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
1976 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
1977 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
1978 not struct rtx_def *.
1979 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
1981 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
1983 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
1985 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1987 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
1988 operand_equal_p to compare DR_BASE_ADDRESSes.
1989 (vect_check_interleaving): Likewise.
1991 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1994 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
1995 for all Neon struct constants.
1997 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1999 * target.def (legitimate_constant_p): New hook.
2000 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2001 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2002 * doc/tm.texi: Regenerate.
2003 * hooks.h (hook_bool_mode_rtx_true): Declare.
2004 * hooks.c (hook_bool_mode_rtx_true): Define.
2005 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2006 * calls.c (precompute_register_parameters): Replace uses of
2007 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2008 (emit_library_call_value_1): Likewise.
2009 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2010 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2011 * ira-costs.c (scan_one_insn): Likewise.
2012 * recog.c (general_operand, immediate_operand): Likewise.
2013 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2014 * reload1.c (init_eliminable_invariants): Likewise.
2016 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2018 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2019 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2021 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2022 * config/alpha/predicates.md (input_operand): Update call to
2023 alpha_legitimate_constant_p.
2025 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2026 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2027 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2028 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2029 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2030 (arm_legitimate_constant_p): New functions.
2031 (arm_cannot_force_const_mem): Make static.
2033 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2035 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2036 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2037 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2038 instead of bfin_legitimate_constant_p.
2039 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2040 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2042 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2044 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2046 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2047 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2048 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2049 (frv_legitimate_constant_p): Make static. Add a mode argument.
2051 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2052 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2053 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2055 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2056 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2057 * config/i386/i386.c (legitimate_constant_p): Rename to...
2058 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2060 (ix86_cannot_force_const_mem): Update accordingly.
2061 (ix86_legitimate_address_p): Likewise.
2062 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2063 * config/i386/i386.md: Update commentary.
2065 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2066 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2067 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2068 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2070 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2072 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2073 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2074 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2075 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2077 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2078 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2079 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2081 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2082 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2083 (m32r_legitimate_constant_p): New function.
2085 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2086 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2087 LEGITIMATE_CONSTANT_P.
2088 (LEGITIMATE_CONSTANT_P): Delete.
2089 * config/m68k/m68k.c (m68k_expand_prologue): Call
2090 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2091 (m68k_legitimate_constant_p): New function.
2092 * config/m68k/m68k.md: Update comments.
2094 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2095 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2096 (mcore_legitimate_constant_p): New function.
2098 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2099 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2100 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2101 Add a mode argument.
2102 (mep_legitimate_address): Update accordingly.
2103 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2105 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2107 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2108 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2109 static. Check OP's mode for VOIDmode.
2110 (microblaze_legitimate_constant_p): New function.
2111 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2113 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2114 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2115 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2116 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2117 * config/mips/predicates.md: Update comments.
2119 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2120 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2121 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2122 (mmix_legitimate_constant_p): Make static, return a bool, and take
2124 (mmix_print_operand_address): Update accordingly.
2126 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2128 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2129 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2130 static. Add a mode argument.
2131 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2133 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2135 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2136 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2137 (pa_legitimate_constant_p): New function.
2139 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2141 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2142 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2143 (pdp11_legitimate_constant_p): New function.
2145 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2146 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2147 (rs6000_legitimate_constant_p): New function.
2149 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2150 (rx_legitimate_constant_p): ...this.
2151 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2152 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2153 (rx_legitimate_constant_p): ...this.
2154 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2155 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2157 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2158 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2159 * config/s390/s390.c (legitimate_constant_p): Rename to...
2160 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2161 and add a mode argument.
2162 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2164 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2166 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2167 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2168 (sh_legitimate_constant_p): New function.
2170 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2171 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2172 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2173 (legitimate_constant_p): Rename to...
2174 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2176 (constant_address_p): Update accordingly.
2178 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2179 argument and return a bool.
2180 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2181 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2182 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2183 (spu_rtx_costs): Update accordingly.
2184 * config/spu/predicates.md (vec_imm_operand): Likewise.
2186 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2188 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2189 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2190 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2192 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2193 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2194 * config/vax/vax.c (legitimate_constant_p): Likewise.
2196 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2197 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2198 (xtensa_legitimate_constant_p): New function.
2200 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2202 * target.def (cannot_force_const_mem): Add a mode argument.
2203 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2204 * doc/tm.texi: Regenerate.
2205 * hooks.h (hook_bool_mode_rtx_false): Declare.
2206 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2207 (hook_bool_mode_const_rtx_true): Likewise.
2208 (hook_bool_mode_rtx_false): New function.
2209 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2210 to be non-VOID. Update call to cannot_force_const_mem.
2211 (find_reloads): Update accordingly.
2212 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2213 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2215 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2216 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2217 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2218 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2219 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2220 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2221 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2222 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2223 (m68k_cannot_force_const_mem): ...this new function.
2224 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2226 (mips_const_insns, mips_legitimize_const_move): Update calls.
2227 (mips_secondary_reload_class): Likewise.
2228 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2229 (pa_cannot_force_const_mem): ...this new function.
2230 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2231 (rs6000_cannot_force_const_mem): ...this new function.
2232 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2234 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2235 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2237 (xtensa_cannot_force_const_mem): ...this new function.
2239 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2241 * config/mips/mips.c (mips16_build_function_stub): Call
2242 build_function_type_list instead of build_function_type.
2243 (mips16_build_call_stub): Likewise.
2245 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2247 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2248 instead of build_function_type.
2250 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2252 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2253 instead of build_function_type.
2255 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2258 * config/i386/i386.md (insv): Change operand 0 constraint to
2259 "register_operand". Change operand 1 and 2 constraint to
2260 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2261 * config/i386/sse.md (sse4_1_pinsrb): Export.
2262 (sse2_pinsrw): Ditto.
2263 (sse4_1_pinsrd): Ditto.
2264 (sse4_1_pinsrq): Ditto.
2265 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2266 * config/i386/i386.c (ix86_expand_pinsr): New.
2268 2011-04-20 Easwaran Raman <eraman@google.com>
2270 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2271 containing union type only with -fstrict-aliasing.
2273 2011-04-20 Jim Meyering <meyering@redhat.com>
2275 Remove useless if-before-free tests.
2276 * calls.c (expand_call, save_area): Likewise.
2277 * cfgcleanup.c (try_forward_edges): Likewise.
2278 * collect2.c (collect_execute): Likewise.
2279 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2280 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2281 * coverage.c (coverage_checksum_string): Likewise.
2282 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2283 * cselib.c (cselib_init): Likewise.
2284 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2285 (df_set_clean_cfg): Likewise.
2286 * function.c (free_after_compilation): Likewise.
2287 * gcc.c (do_spec_1, main): Likewise.
2288 * gcov.c (create_file_names): Likewise.
2289 * gensupport.c (identify_predicable_attribute): Likewise.
2290 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2291 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2292 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2293 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2294 * ipa-pure-const.c (local_pure_const): Likewise.
2295 * ipa-reference.c (propagate): Likewise.
2296 * ira-costs.c (free_ira_costs): Likewise.
2297 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2298 * matrix-reorg.c (mat_free): Likewise.
2299 * prefix.c (get_key_value): Likewise.
2300 * profile.c (compute_value_histograms): Likewise.
2301 * reload1.c (free_reg_equiv): Likewise.
2302 * sched-deps.c (free_deps): Likewise.
2303 * sel-sched-ir.c (fence_clear): Likewise.
2304 * sese.c (set_rename, if_region_set_false_region): Likewise.
2305 * tree-data-ref.c (free_rdg): Likewise.
2306 * tree-eh.c (lower_try_finally): Likewise.
2307 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2308 * tree-ssa-live.c (delete_var_map): Likewise.
2309 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2310 * tree-ssa-pre.c (phi_trans_add): Likewise.
2312 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2314 PR tree-optimization/48611
2315 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2316 beyond ERT_MUST_NOT_THROW region.
2318 2011-04-20 Catherine Moore <clm@codesourcery.com>
2320 * config/mips/mips.opt (mfix-24k): New.
2321 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2322 * config/mips/mips.md (length): Increase by 4 for stores if
2324 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2325 all noreorder if fixing 24K errata.
2326 * doc/invoke.texi: Document mfix-24k.
2328 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2330 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2331 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2333 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2335 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2336 (const_ok_for_op): ... to here.
2338 2011-04-20 Kai Tietz <ktietz@redhat.com>
2340 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2341 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2343 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2345 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2347 2011-04-20 Richard Guenther <rguenther@suse.de>
2349 PR tree-optimization/47892
2350 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2353 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2355 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2357 2011-04-20 Tristan Gingold <gingold@adacore.com>
2359 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2361 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2365 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2366 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2367 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2368 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2369 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2371 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2374 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2375 (avr_asm_named_section, avr_asm_output_aligned_common,
2376 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2377 New functions to update...
2378 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2379 (avr_asm_init_sections): Overwrite section callbacks for
2380 data_section, bss_section.
2381 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2383 (avr_file_end): ...here.
2385 2011-04-20 Richard Guenther <rguenther@suse.de>
2388 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2389 objects and types here. Adjust for their offset before comparing.
2391 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2393 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2396 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2398 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2399 (GIMPLE_H): Include $(INTERNAL_FN_H).
2400 (OBJS-common): Add internal-fn.o.
2401 (internal-fn.o): New rule.
2402 * internal-fn.def: New file.
2403 * internal-fn.h: Likewise.
2404 * internal-fn.c: Likewise.
2405 * gimple.h: Include internal-fn.h.
2406 (GF_CALL_INTERNAL): New gf_mask.
2407 (gimple_statement_call): Put fntype into a union with a new
2409 (gimple_build_call_internal): Declare.
2410 (gimple_build_call_internal_vec): Likewise.
2411 (gimple_call_same_target_p): Likewise.
2412 (gimple_call_internal_p): New function.
2413 (gimple_call_internal_fn): Likewise.
2414 (gimple_call_fntype): Return null for internal calls.
2415 (gimple_call_set_fntype): Assert that the function is not internal.
2416 (gimple_call_set_fn): Likewise.
2417 (gimple_call_set_fndecl): Likewise.
2418 (gimple_call_set_internal_fn): New function.
2419 (gimple_call_addr_fndecl): Handle null functions.
2420 (gimple_call_return_type): Likewise null types.
2421 * gimple.c (gimple_build_call_internal_1): New function.
2422 (gimple_build_call_internal): Likewise.
2423 (gimple_build_call_internal_vec): Likewise.
2424 (gimple_call_same_target_p): Likewise.
2425 (gimple_call_flags): Handle calls to internal functions.
2426 (gimple_call_fnspec): New function.
2427 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2428 (gimple_has_side_effects): Handle null functions.
2429 (gimple_rhs_has_side_effects): Likewise.
2430 (gimple_call_copy_skip_args): Handle calls to internal functions.
2431 * cfgexpand.c (expand_call_stmt): Likewise.
2432 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2433 * gimple-fold.c (gimple_fold_call): Handle null functions.
2434 (gimple_fold_stmt_to_constant_1): Don't fold
2435 calls to internal functions.
2436 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2438 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2439 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2440 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2441 (do_warn_unused_result): Likewise.
2442 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2443 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2444 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2445 the target of a call.
2446 (initialize_hash_element): Update accordingly.
2447 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2448 (iterative_hash_hashable_expr): Handle calls to internal functions.
2449 (print_expr_hash_elt): Likewise.
2450 * tree-ssa-pre.c (can_value_number_call): Likewise.
2451 (eliminate): Handle null functions.
2452 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2453 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2454 (find_func_aliases): Likewise.
2455 * value-prof.c (gimple_ic_transform): Likewise.
2456 (gimple_indirect_call_to_profile): Likewise.
2457 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2458 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2460 2011-04-19 Jan Hubicka <jh@suse.cz>
2462 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2463 * ipa-inline.c (inline_small_functions): Compute summaries first,
2464 populate heap later.
2466 2011-04-19 Jan Hubicka <jh@suse.cz>
2468 * cgraph.h (save_inline_function_body): Remove.
2469 * ipa-inline-transform.c: New file, broke out of...
2470 * ipa-inline.c: ... this one; Update toplevel comment.
2471 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2473 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2474 (cgraph_mark_inline_edge): Rename to inline_call; move to
2475 ipa-inline-transform.c.
2476 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2477 move to ipa-inline-transform.c
2478 (recursive_inlining, inline_small_functions, flatten_function,
2479 ipa_inline, inline_always_inline_functions,
2480 early_inline_small_functions): Update.
2481 (inline_transform): Move to ipa-inline-transform.c.
2482 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2484 * Makefile.in (ipa-inline-transform.o): New file.
2485 * cgraphunit.c (save_inline_function_body): Move to
2486 ipa-inline-transform.c
2488 2011-04-19 DJ Delorie <dj@redhat.com>
2490 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2491 registers if we already know there aren't any.
2492 (m32c_emit_epilogue): Don't emit a barrier here.
2493 (m32c_emit_eh_epilogue): Likewise.
2494 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2495 operands at expand time.
2496 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2498 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2499 duplicates. Provide aliases instead.
2500 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2501 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2504 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2506 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2507 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2508 (general_or_i64_p, sparc_register_move_cost): New function.
2510 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2512 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2513 Add lynx, mipssde. Sort table.
2515 2011-04-19 Xinliang David Li <davidxl@google.com>
2517 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2520 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2523 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2524 is a SUBREG with non-MODE_INT mode inside of it.
2526 2011-04-19 Martin Jambor <mjambor@suse.cz>
2528 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2529 also according to actual contants.
2530 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2531 (gimple_fold_call): Use it.
2532 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2534 2011-04-19 Martin Jambor <mjambor@suse.cz>
2536 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2537 non-pointer assignments.
2539 2011-04-19 Martin Jambor <mjambor@suse.cz>
2541 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2542 account anc_offset and otr_type from the indirect edge info.
2543 * ipa-prop.c (get_ancestor_addr_info): New function.
2544 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2545 get_ancestor_addr_info, call it.
2546 (ipa_note_param_call): Do not initialize information about polymorphic
2547 calls, return the indirect call graph edge. Remove the last
2548 parameter, adjust all callers.
2549 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2550 parameters. Initialize polymorphic information in the indirect edge.
2552 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2555 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2556 the types if they have different enumeration identifiers.
2558 2011-04-19 Jan Hubicka <jh@suse.cz>
2560 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2561 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2562 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2563 (optimize_function_for_size_p) ... here.
2565 2011-04-19 Richard Guenther <rguenther@suse.de>
2568 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2571 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2573 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2574 if DECL_NO_INLINE_WARNING_P is set on the function.
2576 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2579 * reload1.c (inc_for_reload): Return void. All callers changed.
2580 (emit_input_reload_insns): Don't try to delete previous output
2581 reloads to a register, or record spill_reg_store for autoincs.
2583 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2585 * gengtype.h: Updated copyright year.
2586 (struct input_file_st): Add inpisplugin field.
2587 (type_fileloc): New function.
2589 (write_typed_struct_alloc_def): Add gcc_assert.
2590 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2591 (write_typed_alloc_defns): Don't output for plugin files.
2592 (input_file_by_name): Clear inpisplugin field.
2593 (main): Set inpisplugin field for plugin files.
2595 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2597 * gengtype-state.c (string_eq): New.
2598 (read_state): Use string_eq instead of strcmp when creating the
2601 2011-04-19 Wei Guozhi <carrot@google.com>
2604 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2605 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2607 * config/arm/constraints.md (Uu): New constraint.
2608 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2610 2011-04-19 Tristan Gingold <gingold@adacore.com>
2612 * config.gcc (-*-*-*vms): Added.
2613 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2615 * config/vms/vms-ld.c: New file.
2616 * config/vms/vms-ar.c: New file.
2617 * config/vms/t-vmsnative: New file.
2619 2011-04-18 Xinliang David Li <davidxl@google.com>
2621 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2623 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2626 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2627 if TREE_TYPE (v) is non-NULL.
2629 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2630 gimple_get_virt_mehtod_for_binfo.
2631 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2632 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2634 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2636 2011-04-18 Michael Matz <matz@suse.de>
2637 Steve Ellcey <sje@cup.hp.com>
2639 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2640 use its mode as source mode if it isn't VOIDmode.
2642 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2644 * doc/passes.texi: Fill crossref nodes.
2646 2011-04-18 Jim Meyering <meyering@redhat.com>
2648 Fix doubled-word typos in comments and strings
2649 * config/alpha/vms-unwind.h: s/for for/for/
2650 * config/arm/unwind-arm.h: Likewise.
2651 * config/microblaze/microblaze.c: Likewise.
2652 * config/sh/constraints.md: s/in in/in/
2653 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2655 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
2657 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2658 (AVX_FLOAT_MODE_P): Ditto.
2659 (AVX128_VEC_FLOAT_MODE_P): Ditto.
2660 (AVX256_VEC_FLOAT_MODE_P): Ditto.
2661 (AVX_VEC_FLOAT_MODE_P): Ditto.
2662 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2663 (UNSPEC_MASKSTORE): Ditto.
2664 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2665 Merge from <sse>_movmsk<ssemodesuffix> and
2666 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
2667 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
2669 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2670 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2671 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2673 2011-04-18 Jan Hubicka <jh@suse.cz>
2675 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2677 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2678 (want_inline_function_called_once_p): Break out the logic from
2680 (edge_badness): Ensure that profile is not misupdated.
2681 (lookup_recursive_calls): Prioritize by call frequencies.
2682 (inline_small_functions): Move program size estimates here;
2683 actually process whole queue even when unit growth has been
2684 met. (to properly compute inline_failed reasons and for the
2685 case unit size decrease.) Revisit comments on recursive inlining.
2686 (ipa_inline): Remove unit summary code; first inline hot calls
2687 of functions called once, cold calls next.
2688 (order, nnodes): Remove unused variables.
2689 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2690 (GTFILES): Remove ipa-inline.c
2691 * sel-sched.c (fill_insns): Silence uninitialized var warning.
2693 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2695 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2697 2011-04-18 Jie Zhang <jie@codesourcery.com>
2698 Richard Earnshaw <rearnsha@arm.com>
2700 * arm.c (neon_builtin_type_bits): Remove.
2701 (typedef enum neon_builtin_mode): New.
2702 (T_MAX): Don't define.
2703 (typedef enum neon_builtin_datum): Remove bits, codes[],
2704 num_vars and base_fcode. Add mode, code and fcode.
2705 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2706 VAR10): Change accordingly.
2707 (neon_builtin_data[]): Change accordingly
2708 (arm_init_neon_builtins): Change accordingly.
2709 (neon_builtin_compare): Remove.
2710 (locate_neon_builtin_icode): Remove.
2711 (arm_expand_neon_builtin): Change accordingly.
2713 * arm.h (enum arm_builtins): Move to ...
2714 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2716 * arm.c (arm_builtin_decl): Declare.
2717 (TARGET_BUILTIN_DECL): Define.
2718 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2719 (arm_builtin_decls[]): New.
2720 (arm_init_neon_builtins): Store builtin declarations in
2721 arm_builtin_decls[].
2722 (arm_init_tls_builtins): Likewise.
2723 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
2724 (arm_builtin_decl): New.
2726 2011-04-18 Richard Guenther <rguenther@suse.de>
2728 * tree.c (upper_bound_in_type): Build properly canonicalized
2730 (lower_bound_in_type): Likewise.
2732 2011-04-18 Richard Guenther <rguenther@suse.de>
2734 * gimple.h (gimple_call_addr_fndecl): New function.
2735 (gimple_call_fndecl): Use it.
2736 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
2738 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
2739 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
2741 2011-04-18 Richard Guenther <rguenther@suse.de>
2744 * tree.c (build_string): STRING_CST is now derived from tree_typed.
2746 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2749 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2750 DECL_IN_CONSTANT_POOL without RTL.
2752 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
2753 Ira Rosen <ira.rosen@linaro.org>
2756 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2757 to match neon_vzip/vuzp/vtrn_internal.
2758 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2759 outputs explicitly dependent on both inputs.
2760 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2762 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2764 PR tree-optimization/48616
2765 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2766 whether the shift is by scalar or vector based on whether all SLP
2767 scalar stmts have the same rhs.
2769 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
2771 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
2774 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2776 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2779 2011-04-17 Jan Hubicka <jh@suse.cz>
2781 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
2782 * cgrpahunit.c (cgraph_finalize_function): Do not set
2783 finalized_by_frontend.
2784 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2785 finalized_by_frontend.
2787 2011-04-17 Jan Hubicka <jh@suse.cz>
2789 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
2790 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
2791 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
2792 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
2794 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
2796 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
2798 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2801 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2802 is non-null before accessing it.
2803 (input_cgraph): Remove trailing spaces.
2805 2011-04-17 Revital Eres <revital.eres@linaro.org>
2807 * params.def (sms-min-sc): New param flag.
2808 * modulo-sched.c (sms_schedule): Use it.
2809 * doc/invoke.texi (sms-min-sc): Document it.
2811 2011-04-17 Jan Hubicka <jh@suse.cz>
2813 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
2814 present, also set gimple_call_set_cannot_inline.
2815 * ipa-inline.c: Update toplevel comment.
2817 (cgraph_clone_inlined_nodes): Fix linebreaks.
2818 (cgraph_check_inline_limits): Restructure to ...
2819 (caller_growth_limits): ... this one; be more tolerant
2820 on growth in nested inline chains; add explanatory comment;
2821 fix stack accounting thinko introduced by previous patch.
2822 (cgraph_default_inline_p): Remove.
2823 (report_inline_failed_reason): New function.
2824 (can_inline_edge_p): New function.
2825 (can_early_inline_edge_p): New function.
2826 (leaf_node_p): Move upwards in file.
2827 (want_early_inline_function_p): New function.
2828 (want_inline_small_function_p): New function.
2829 (want_inline_self_recursive_call_p): New function.
2830 (cgraph_edge_badness): Rename to ...
2831 (edge_badness) ... this one; fix linebreaks.
2832 (update_edge_key): Update call of edge_baddness; add
2833 detailed dump about queue updates.
2834 (update_caller_keys): Use can_inline_edge_p and
2835 want_inline_small_function_p.
2836 (cgraph_decide_recursive_inlining): Rename to...
2837 (recursive_inlining): Use can_inline_edge_p and
2838 want_inline_self_recursive_call_p; simplify and remove no longer
2840 (cgraph_set_inline_failed): Remove.
2841 (add_new_edges_to_heap): Use can_inline_edge_p and
2842 want_inline_small_function_p.
2843 (cgraph_decide_inlining_of_small_functions): Rename to ...
2844 (inline_small_functions): ... this one; cleanup; use
2845 can/want predicates; cleanup debug ouput; work edges till fibheap
2846 is exhausted and do not stop once unit growth is reached; remove
2847 later loop processing remaining edges.
2848 (cgraph_flatten): Rename to ...
2849 (flatten_function): ... this one; use can_inline_edge_p
2850 and can_early_inline_edge_p predicates.
2851 (cgraph_decide_inlining): Rename to ...
2852 (ipa_inline): ... this one; remove unreachable nodes before
2853 inlining functions called once; simplify the pass.
2854 (cgraph_perform_always_inlining): Rename to ...
2855 (inline_always_inline_functions): ... this one; use
2856 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
2857 (cgraph_decide_inlining_incrementally): Rename to ...
2858 (early_inline_small_functions): ... this one; simplify
2859 using new predicates; cleanup; make dumps prettier.
2860 (cgraph_early_inlining): Rename to ...
2861 (early_inliner): newer inline regular functions into always-inlines;
2862 fix updating of call stmt summaries.
2863 (pass_early_inline): Update for new names.
2864 (inline_transform): Fix formating.
2865 (gate_cgraph_decide_inlining): Rename to ...
2866 (pass_ipa_inline): ... this one.
2867 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
2868 * ipa-inline-analysis.c (dump_inline_summary): Update.
2869 (compute_inline_parameters): Do not compute disregard_inline_limits;
2870 look for mismatching arguments.
2871 (estimate_growth): Fix handlig of non-trivial self recursion.
2872 (inline_read_summary): Do not read info->disregard_inline_limits.
2873 (inline_write_summary): Do not write info->disregard_inline_limits.
2874 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
2875 and move all checks into can_inline_edge_p predicate; re-enable code
2876 comparing optimization levels.
2877 (expand_call_inline): Do not test inline_forbidden_into_p.
2878 * Makefile.in (ipa-inline.o): Update arguments.
2880 2011-04-17 Revital Eres <revital.eres@linaro.org>
2882 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
2884 2011-04-17 Revital Eres <revital.eres@linaro.org>
2886 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
2888 2011-04-17 Michael Matz <matz@suse.de>
2890 PR tree-optimization/48622
2892 * ipa-inline-analysis.c (inline_read_summary): Read size/time
2893 in same order as they're written.
2895 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2897 * config/pa/predicates.md: Reorganize and simplify predicates.
2898 Eliminate duplicate code checks.
2899 (arith_operand): Rename to arith14_operand
2900 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
2901 * config/pa/pa.md: Use renamed operands.
2902 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
2903 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
2904 arith11_operand, adddi3_operand, indexed_memory_operand,
2905 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
2906 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
2907 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
2908 move_dest_operand, move_src_operand, prefetch_cc_operand,
2909 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
2910 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
2911 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
2912 div_operand, int5_operand, movb_comparison_operator,
2913 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
2914 arith_double_operand, ireg_operand, lhs_lshift_operand,
2915 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
2916 integer_store_memory_operand): Likewise.
2917 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
2918 (integer_store_memory_operand, read_only_operand,
2919 function_label_operand, borx_reg_operand,
2920 non_hard_reg_operand): Likewise.
2921 (eq_neq_comparison_operator): Delete unused operator.
2922 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
2923 function_label_operand.
2924 (emit_move_sequence): Likewise.
2926 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2928 * config/i386/sse.md (sseunpackmode): New mode attribute.
2929 (ssepackmode): Ditto.
2930 (vec_pack_trunc_<mode>): Macroize expander from
2931 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
2932 (vec_unpacks_lo_<mode>): Macroize expander from
2933 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2934 (vec_unpacks_hi_<mode>): Macroize expander from
2935 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2936 (vec_unpacku_lo_<mode>): Macroize expander from
2937 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2938 (vec_unpacku_hi_<mode>): Macroize expander from
2939 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2940 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
2941 ix86_expand_sse4_unpack.
2942 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
2944 2011-04-16 Jan Hubicka <jh@suse.cz>
2946 * cgraphbuild.c: Include ipa-inline.h.
2947 (reset_inline_failed): Use initialize_inline_failed.
2948 * cgraph.c: Include ipa-inline.h.
2949 (cgraph_create_node_1): Do not initialize estimated_growth.
2950 (initialize_inline_failed): More to ipa-inline-analysis.c
2951 (dump_cgraph_node): Do not dump inline flags.
2952 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
2953 and disregard_inline_limits flags.
2954 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
2955 time, size, estimated_growth.
2956 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
2958 * cgraphunit.c (cgraph_decide_is_function_needed): Use
2959 DECL_DISREGARD_INLINE_LIMITS.
2960 (cgraph_analyze_function): Do not initialize
2961 node->local.disregard_inline_limits.
2962 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2963 inlinable, versionable and disregard_inline_limits.
2964 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
2965 cgraph_check_inline_limits, cgraph_default_inline_p,
2966 cgraph_edge_badness, update_caller_keys, update_callee_keys,
2967 add_new_edges_to_heap): Update.
2968 (cgraph_decide_inlining_of_small_function): Update; set
2969 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
2970 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
2971 cgraph_decide_inlining_incrementally): Update.
2972 * ipa-inline.h (inline_summary): Add inlinable, versionable,
2973 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
2974 time, size and estimated_growth parameters.
2975 (estimate_edge_growth): Update.
2976 (initialize_inline_failed): Declare.
2977 * ipa-split.c: Include ipa-inline.h
2978 (execute_split_functions): Update.
2979 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
2980 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
2981 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
2982 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
2983 estimated_growth to INT_MIN.
2984 (inline_node_duplication_hook): Likewise.
2985 (dump_inline_summary): Dump new fields.
2986 (compute_inline_parameters): Update.
2987 (estimate_edge_time, estimate_time_after_inlining,
2988 estimate_size_after_inlining, estimate_growth, inline_read_summary,
2989 inline_write_summary):
2990 (initialize_inline_failed): Move here from cgraph.c.
2991 * tree-sra.c: Include ipa-inline.h.
2992 (ipa_sra_preliminary_function_checks): Update.
2993 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
2996 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2998 * config/i386/sse.md (V16): New mode iterator.
3000 (AVXMODEQI, AVXMODEDI): Remove.
3001 (sse2, sse3): New mode attribute.
3002 (mov<mode>): Use V16 mode iterator.
3003 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3004 (push<mode>1): Use V16 mode iterator.
3005 (movmisalign<mode>): Ditto.
3006 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3007 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3008 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3009 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3010 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3011 avx_movdqu<avxmodesuffix>.
3012 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3013 *avx_movdqu<avxmodesuffix>.
3014 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3015 avx_lddqu<avxmodesuffix>.
3016 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3017 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3018 avx_movnt<AVXMODEDI:mode>.
3019 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3020 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3022 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3025 * haifa-sched.c (prune_ready_list, schedule_block): Use
3026 sched_pressure_p rather than flag_sched_pressure.
3028 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3030 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3031 cgraph_get_node instead of cgraph_get_create_node.
3033 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3035 * cfgexpand.c (expand_debug_expr): Use
3036 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3038 2011-04-15 Michael Matz <matz@suse.de>
3040 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3041 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3042 * function.c (gimplify_parameters): Ditto.
3043 * gimplify.c (gimplify_vla_decl): Ditto.
3045 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3046 (gimple_call_set_alloca_for_var): New inline function.
3047 (gimple_call_alloca_for_var_p): Ditto.
3048 * gimple.c (gimple_build_call_from_tree): Remember
3049 CALL_ALLOCA_FOR_VAR_P state.
3050 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3052 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3053 calls if they were for VLA objects.
3055 2011-04-15 Martin Jambor <mjambor@suse.cz>
3057 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3060 2011-04-15 Martin Jambor <mjambor@suse.cz>
3063 * tree-emutls.c (lower_emutls_function_body): Call
3064 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3067 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3069 * c-decl.c (detect_field_duplicates): Call
3070 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3072 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3074 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3075 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3076 * ipa-pure-const.c (check_stmt): Call it.
3077 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3079 2011-04-15 Richard Guenther <rguenther@suse.de>
3081 PR tree-optimization/48290
3082 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3083 Properly decide inhibiting propagation based on the valueized
3084 operand. Do loop-closed SSA form preserving here ...
3085 (init_copy_prop): ... not here.
3087 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3090 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3091 (*ieee_smax<mode>3): Likewise.
3093 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3095 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3096 Replace match_operand with match_dup for the third operand in
3099 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3101 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3102 to track processing of conditionals. Update all callers.
3103 (try_combine, simplify_if_then_else): Update.
3105 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3107 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3110 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3112 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3113 instead of match_operand for operand 3.
3115 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3117 * recog.h (insn_operand_data): Add an "allows_mem" field.
3118 * genoutput.c (output_operand_data): Initialize it.
3119 * optabs.c (maybe_legitimize_operand_same_code): New function.
3120 (maybe_legitimize_operand): Use it when matching the original
3123 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3125 * gimplify.c: Fix issues in comments throughout.
3126 (voidify_wrapper_expr): Fix long line.
3127 (build_stack_save_restore): Likewise.
3128 (gimplify_loop_expr): Likewise.
3129 (gimplify_compound_lval): Likewise.
3130 (gimplify_init_ctor_eval): Likewise.
3131 (gimplify_modify_expr_rhs): Likewise.
3132 (omp_notice_threadprivate_variable): Likewise.
3134 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3136 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3137 original one if this is not a builtin function.
3139 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3142 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3143 offset it as needed based on top 2 bits in operands[3], change
3144 MEM mode to SFmode and mask those 2 bits away from operands[3].
3146 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3148 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3149 change from objc_declare_protocols() to objc_declare_protocol().
3151 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3153 * config/i386/sse.md (sse4_1): New mode attribute.
3154 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3155 avx_blend<ssemodesuffix><avxmodesuffix> and
3156 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3157 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3158 avx_blendv<ssemodesuffix><avxmodesuffix> and
3159 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3160 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3161 avx_dp<ssemodesuffix><avxmodesuffix> and
3162 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3163 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3164 (sse4_1_packusdw): Merge with *avx_packusdw.
3165 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3166 (sse4_1_pblendw): Merge with *avx_pblendw.
3167 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3168 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3169 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3171 (sse4_1_round<ssescalarmodesuffix>): Merge with
3172 *avx_round<ssescalarmodesuffix>.
3173 (aesenc): Merge with *avx_aesenc.
3174 (aesenclast): Merge with *avx_aesenclast.
3175 (aesdec): Merge with *avx_aesdec.
3176 (aesdeclast): Merge with *avx_aesdeclast.
3177 (pclmulqdq): Merge with *pclmulqdq.
3178 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3180 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3182 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3185 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3186 (align_local_variable): This. Update DECL_ALIGN.
3187 (add_stack_var): Updated.
3188 (expand_one_stack_var): Likewise.
3190 2011-04-14 Richard Guenther <rguenther@suse.de>
3192 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3194 (dse_initialize_block_local_data, dse_leave_block,
3195 record_voperand_set, get_stmt_uid): Likewise.
3196 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3197 (dse_optimize_stmt): Remove voperand set handling code.
3198 Simplify and improve to handle any kind of killing stmt.
3199 (dse_record_phi): Remove.
3200 (dse_enter_block): Simplify.
3201 (tree_ssa_dse): Likewise.
3202 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3204 2011-04-14 Jan Hubicka <jh@suse.cz>
3206 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3207 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3208 (cgraph_local_info): Remove inline_summary.
3209 * ipa-cp.c: Include ipa-inline.h.
3210 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3211 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3213 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3214 (input_overwrite_node): Do not set inline summary.
3215 (input_node): Do not stream inline summary.
3216 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3217 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3218 growth; we do not have inline parameters computed for that anyway.
3219 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3220 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3221 (inline_summary_t): New type and VECtor.
3222 (debug_inline_summary, dump_inline_summaries): Declare.
3223 (inline_summary): Use VOCtor.
3224 (estimate_edge_growth): Kill hack computing call stmt size directly.
3225 * lto-section-in.c (lto_section_name): Add inline section.
3226 * ipa-inline-analysis.c: Include lto-streamer.h
3227 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3228 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3229 (inline_summary_vec): Define.
3230 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3231 dump_inline_summaries): New functions.
3232 (estimate_function_body_sizes): Properly compute size/time of outgoing
3234 (compute_inline_parameters): Alloc inline_summary; do not compute
3235 size/time of incomming calls.
3236 (estimate_edge_time): Avoid missing time summary hack.
3237 (inline_read_summary): Read inline summary info.
3238 (inline_write_summary): Write inline summary info.
3239 (inline_free_summary): Free all hooks and inline summary vector.
3240 * lto-streamer.h: Add LTO_section_inline_summary section.
3241 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3242 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3244 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3246 * tree-vectorizer.h (vect_strided_store_supported): Add a
3247 HOST_WIDE_INT argument.
3248 (vect_strided_load_supported): Likewise.
3249 (vect_permute_store_chain): Return void.
3250 (vect_transform_strided_load): Likewise.
3251 (vect_permute_load_chain): Delete.
3252 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3253 count argument. Check that the count is a power of two.
3254 (vect_strided_load_supported): Likewise.
3255 (vect_permute_store_chain): Return void. Update after above changes.
3256 Assert that the access is supported.
3257 (vect_permute_load_chain): Likewise.
3258 (vect_transform_strided_load): Return void.
3259 * tree-vect-stmts.c (vectorizable_store): Update calls after
3260 above interface changes.
3261 (vectorizable_load): Likewise.
3262 (vect_analyze_stmt): Don't check for strided powers of two here.
3264 2011-04-14 Richard Guenther <rguenther@suse.de>
3266 PR tree-optimization/48590
3267 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3268 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3269 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3270 BUILT_IN_STACK_SAVE.
3271 * tree-ssa-dce.c (propagate_necessity): Handle
3272 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3274 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3276 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3279 2011-04-14 Richard Guenther <rguenther@suse.de>
3281 * tree.h (get_object_alignment_1): Declare.
3282 * builtins.c (get_object_alignment_1): Split out worker from ...
3283 (get_object_alignment): ... here.
3284 * fold-const.c (get_pointer_modulus_and_residue): Use
3285 get_object_alignment_1.
3287 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3289 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3291 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3292 parameter. Generalise code to handle arrays as well as vectors.
3293 (vect_setup_realignment): Update accordingly.
3294 * tree-vect-stmts.c (vectorizable_store): Likewise.
3295 (vectorizable_load): Likewise.
3297 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3299 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3300 within the per-copy loop.
3302 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3304 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3307 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3309 * doc/options.texi (Negative): Explicitly mention that the
3310 Negative chain must be circular.
3312 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3314 * function.h (block_chainon): Declare.
3315 * function.c (block_chainon): Define.
3317 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3318 Eric Weddington <eric.weddington@atmel.com>
3319 Georg-Johann Lay <avr@gjlay.de>
3321 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3323 (avr_init_builtins, avr_expand_builtin,
3324 avr_expand_delay_cycles, avr_expand_unop_builtin,
3325 avr_expand_binop_builtin ): New functions.
3326 (avr_builtin_id): New enum
3327 (struct avr_builtin_description): New struct
3328 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3329 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3331 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3332 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3333 UNSPECV_DELAY_CYCLES): new enumeration values
3334 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3335 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3336 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3337 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3338 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3339 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3340 "fmulsu"): New insns
3342 * config/avr/avr-c.c: fix line endings
3343 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3344 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3345 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3346 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3347 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3349 * doc/extend.texi (AVR Built-in Functions): New node
3350 (Target Builtins): Add documentation of AVR
3353 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3356 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3357 alone. Error if non-const data has attribute progmem.
3359 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3361 * tree.h (struct tree_constructor): Include tree_typed instead of
3363 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3364 TS_TYPED instead of TS_COMMON.
3366 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3368 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3369 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3370 (sse2_psadbw): Merge with *avx_psadbw.
3371 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3372 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3373 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3374 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3375 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3376 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3377 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3378 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3379 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3380 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3381 (ssse3_palignrti): Merge with *avx_palignrti.
3383 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3385 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3386 * tree-ssanames.c (fini_ssanames): VEC_free it.
3387 (make_ssa_name_fn): Update for VECness of free_ssanames.
3388 (release_ssa_name, release_dead_ssa_names): Likewise.
3389 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3391 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3392 TS_TYPED instead of TS_COMMON.
3394 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3396 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3397 statistics_counter_event.
3398 * tree-ssa-copyrename.c (stats): Define.
3399 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3400 statistics_counter_event.
3401 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3402 (bswap_stats, widen_mul_stats): Define.
3403 (insert_reciprocals): Increment rdivs_inserted.
3404 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3405 rfuncs_inserted. Add calls to statistics_counter_event.
3406 (execute_cse_sincos_1): Increment inserted.
3407 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3408 statistics_counter_event.
3409 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3410 of bswap_stats. Add calls to statistics_counter_event.
3411 (convert_mult_to_widen): Increment widen_mults_inserted.
3412 (convert_plusminus_to_widen): Increment maccs_inserted.
3413 (convert_mult_to_fma): Increment fmas_inserted.
3414 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3415 calls to statistics_counter_event.
3417 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3419 PR rtl-optimization/48455
3420 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3421 `temp_costs->mem_cost'.
3423 2011-04-13 Jan Hubicka <jh@suse.cz>
3425 * ipa-inline.h: New file.
3426 * ipa-inline-analysis.c: New file. Broken out of ...
3427 * ipa-inline.c: ... this file; update toplevel comment;
3428 include ipa-inline.h
3429 (inline_summary): Move to ipa-inline.h
3430 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3431 ipa-inline-analysis.c.
3432 (cgraph_estimate_time_after_inlining): Rename to
3433 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3434 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3435 to estimate_edge_growth.
3436 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3437 rename to estimate_size_after_inlining.
3438 (cgraph_mark_inline_edge): Update for new naming convention.
3439 (cgraph_check_inline_limits): Likewise.
3440 (cgraph_edge_badness): Likewise.
3441 (cgraph_decide_recursive_inlining): Likewise.
3442 (cgraph_decide_inlining_of_small_functions): Likewise.
3443 (cgraph_decide_inlining_incrementally): Likewise.
3444 (cgraph_estimate_growth): Rename to estimate_growth; move to
3445 ipa-inline-analysis.c.
3446 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3447 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3448 (compute_inline_parameters): Likewise.
3449 (compute_inline_parameters_for_current): Likewise.
3450 (pass_inline_parameters): Likewise.
3451 (inline_indirect_intraprocedural_analysis): Likewise.
3452 (analyze_function): Rename to inline_analyze_function; likewise.
3453 (add_new_function): Move to ipa-inline-analysis.c.
3454 (inline_generate_summary): Likewise.
3455 (inline_read_summary): Likewise.
3456 (inline_write_summary): Likewise.
3457 * Makefile.in (ipa-inline-analysis.c): New file.
3459 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3461 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3462 * configure: Regenerate.
3464 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3466 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3467 instead of tree_common.
3468 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3470 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3471 TS_TYPED rather than TS_COMMON.
3472 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3474 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3477 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3478 r20 around calls of __tablejump_elpm__
3480 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3483 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3485 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3487 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3489 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3490 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3491 (cfi_vec): New typedef.
3492 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3493 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3494 (cie_cfi_vec): New static variable.
3495 (cie_cfi_head): Delete.
3496 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3497 declaration changed. Use vector rather than list operations.
3498 (new_cfi): Don't initialize the dw_cfi_next field.
3499 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3500 rather than list operations.
3501 (lookup_cfa): Use vector rather than list operations.
3502 (output_cfis): New argument upto. Accept a cfi_vec rather than
3503 a dw_cfi_ref list head as argument. All callers changed.
3504 Iterate over the vector using upto as a maximum index.
3505 (output_all_cfis): New static function.
3506 (output_fde): Use vector rather than list operations. Use the
3507 new upto argument for output_cfis rather than manipulating a
3509 (dwarf2out_begin_prologue): Change initializations to match
3511 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3512 from the vector length rather than searching for the end of a list.
3513 Use output_all_cfis.
3514 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3516 2011-04-13 Nick Clifton <nickc@redhat.com>
3518 * config/rx/rx.md (movmemsi): Do not use this pattern when
3519 volatile pointers are involved.
3521 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3523 * config/i386/sse.md (pinsrbits): Remove.
3524 (sse2_packsswb): Merge with *avx_packsswb.
3525 (sse2_packssdw): Merge with *avx_packssdw.
3526 (sse2_packuswb): Merge with *avx_packuswb.
3527 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3528 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3529 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3530 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3531 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3532 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3533 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3534 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3535 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3536 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3537 (sse2_loadld): Merge with *avx_loadld.
3538 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3539 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3540 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3541 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3542 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3544 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3546 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3548 * print-tree.c (print_node): Likewise.
3549 * tree-inline.c (copy_tree_r): Likewise.
3550 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3551 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3552 instead of TS_COMMON.
3553 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3554 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3555 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3556 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3557 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3559 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3561 (TREE_CHAIN): Check for a TS_COMMON structure.
3562 (TREE_TYPE): Check for a TS_TYPED structure.
3564 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3566 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3567 cgraph_get_create_node instead of cgraph_node.
3569 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3571 * c-parser.c (c_parser_initelt): Updated call to
3572 objc_build_message_expr.
3573 (c_parser_postfix_expression): Likewise.
3575 2011-04-12 Kai Tietz <ktietz@redhat.com>
3577 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3578 MASK_MS_BITFIELD_LAYOUT bit.
3580 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3582 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3583 assert it is always true.
3584 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3587 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3589 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3590 compiling Objective-C to be more efficient.
3592 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3594 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3597 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3599 * recog.h, genoutput.c, optabs.c: Revert last patch.
3601 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3604 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3606 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3608 * recog.h (insn_operand_data): Add an "allows_mem" field.
3609 * genoutput.c (output_operand_data): Initialize it.
3610 * optabs.c (maybe_legitimize_operand_same_code): New function.
3611 (maybe_legitimize_operand): Use it when matching the original
3614 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3616 * genpreds.c (process_define_predicate): Move most processing
3617 to gensupport.c. Continue to validate the expression.
3618 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3619 (process_define_predicate): Move processing to gensupport.c.
3620 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3621 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3622 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3624 (valid_predicate_name_p): New function, split out from old
3625 genpreds.c:process_define_predicate.
3626 (process_define_predicate): New function, combining code from
3627 old genpreds.c and genrecog.c functions.
3628 (process_rtx): Call it for DEFINE_PREDICATE and
3629 DEFINE_SPECIAL_PREDICATE.
3631 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3633 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3634 size of a '%A' memory reference.
3635 (T_DREG, T_QREG): New neon_builtin_type_bits.
3636 (arm_init_neon_builtins): Assert that the load and store operands
3637 are neon_struct_operands.
3638 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3639 (NEON_ARG_MEMORY): New builtin_arg.
3640 (neon_dereference_pointer): New function.
3641 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3642 Handle NEON_ARG_MEMORY.
3643 (arm_expand_neon_builtin): Update after above interface changes.
3644 Use NEON_ARG_MEMORY for loads and stores.
3645 * config/arm/predicates.md (neon_struct_operand): New predicate.
3646 * config/arm/iterators.md (V_two_elem): Tweak formatting.
3647 (V_three_elem): Use BLKmode for accesses that have no associated mode.
3648 (V_four_elem): Tweak formatting.
3649 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3650 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3651 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3652 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3653 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3654 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3655 (neon_vst4<mode>): Replace pointer operand with a memory operand.
3656 Use %A in the output template.
3657 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3658 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3659 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3660 the width of the memory access. Remove post-increment.
3661 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3663 2011-04-12 Nick Clifton <nickc@redhat.com>
3665 * config/v850/v850.c (expand_prologue): Do not use the CALLT
3666 instruction for interrupt handlers if the target is the basic V850
3668 (expand_epilogue): Likewise.
3670 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3672 PR rtl-optimization/48549
3673 * combine.c (propagate_for_debug): Also stop after BB_END of
3674 this_basic_block. Process LAST and just stop processing after it.
3675 (combine_instructions): If last_combined_insn has been deleted,
3676 set last_combined_insn to its PREV_INSN.
3678 2011-04-12 Richard Guenther <rguenther@suse.de>
3680 PR tree-optimization/46076
3681 * gimple.h (struct gimple_statement_call): Add fntype field.
3682 (gimple_call_fntype): Adjust.
3683 (gimple_call_set_fntype): New function.
3684 * gimple.c (gimple_build_call_1): Set the call function type.
3685 * gimplify.c (gimplify_call_expr): Preserve the function
3686 type the frontend used for the call.
3687 (gimplify_modify_expr): Likewise.
3688 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3690 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3692 * tree-ssa.c (useless_type_conversion_p): Function pointer
3693 conversions are useless.
3695 2011-04-12 Martin Jambor <mjambor@suse.cz>
3697 * cgraph.h (cgraph_node): Remove function declaration.
3698 (cgraph_create_node): Declare.
3699 (cgraph_get_create_node): Likewise.
3700 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3701 Updated all callers.
3702 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3703 the decl does not already exist. Call cgraph_get_create_node instead
3705 (cgraph_get_create_node): New function.
3706 (cgraph_same_body_alias): Update comment.
3707 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3708 assert it does not return NULL.
3709 (cgraph_update_edges_for_call_stmt): Likewise.
3710 (cgraph_clone_edge): Likewise.
3711 (cgraph_create_virtual_clone): Likewise.
3712 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3713 instead of cgraph_node.
3714 (cgraph_add_new_function): Call cgraph_create_node or
3715 cgraph_get_create_node instead of cgraph_node.
3716 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3717 instead of cgraph_node.
3718 (record_eh_tables): Likewise.
3719 (mark_address): Likewise.
3720 (mark_load): Likewise.
3721 (build_cgraph_edges): Call cgraph_get_create_node instead
3723 (rebuild_cgraph_edges): Likewise.
3724 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3725 instead of cgraph_node.
3726 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3728 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3729 cgraph_create_node instead of cgraph_node.
3730 * c-decl.c (finish_function): Call cgraph_get_create_node instead
3732 * lto-cgraph.c (input_node): Likewise.
3733 * lto-streamer-in.c (input_function): Likewise.
3734 * varasm.c (mark_decl_referenced): Likewise.
3735 (assemble_alias): Likewise.
3737 2011-04-12 Martin Jambor <mjambor@suse.cz>
3739 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
3740 instead of cgraph_node and assert it does not return NULL.
3741 * lto-streamer-in.c (lto_read_body): Likewise.
3742 * omp-low.c (new_omp_context): Likewise.
3743 (create_task_copyfn): Likewise.
3744 * tree-emutls.c (lower_emutls_function_body): Likewise.
3745 * matrix-reorg.c (transform_allocation_sites): Likewise.
3747 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3750 * c-typeck.c (build_asm_expr): Error out on attempts to use
3751 void type outputs or inputs for constraints that allow reg or
3754 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
3755 Richard Earnshaw <rearnsha@arm.com>
3758 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
3759 to use sign-magnitude offsets. Reject unsupported unaligned
3760 cases. Add detailed description in comments.
3761 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
3762 condition from TARGET_32BIT to TARGET_ARM.
3764 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
3766 * tree.h (struct typed_tree): New.
3767 (struct tree_common): Include it instead of tree_base.
3768 (TREE_TYPE): Update for new location of type field.
3769 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
3770 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
3771 (union tree_node): Add typed field.
3772 * treestruct.def (TS_TYPED): New.
3773 * lto-streamer.c (check_handled_ts_structures): Handle it.
3774 * tree.c (MARK_TS_TYPED): New macro.
3775 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
3777 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
3779 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
3780 (force_nonfallthru): Do not alter the loop nest if no basic block
3783 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3785 * config/i386/sse.md (VI): New mode iterator.
3787 (AVX256MODEI): Ditto.
3788 (AVXMODEF4P): Ditto.
3789 (avxvecpsmode): Ditto.
3790 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
3791 (sse2_andnot<mode>3): New expander.
3792 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
3793 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
3794 (<any_logic:code><mode>3): Use VI mode iterator.
3795 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
3796 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
3797 (*andnottf3): Handle AVX three-operand constraints.
3798 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
3800 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3801 Robert Millan <rmh@gnu.org>
3803 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
3804 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
3805 GNU_USER_DYNAMIC_LINKER64): Define.
3806 (REG_NAME): Don't undefine.
3807 (MD_UNWIND_SUPPORT): Undefine.
3808 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
3809 (REG_NAME): Don't undefine.
3810 (MD_UNWIND_SUPPORT): Undefine.
3811 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
3813 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3815 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
3816 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
3818 2011-04-11 Xinliang David Li <davidxl@google.com>
3820 * value-profile.c (check_ic_target): New function.
3821 (gimple_ic_transform): Sanity check indirect call target.
3822 * gimple-low.c (gimple_check_call_args): Interface change.
3823 (gimple_check_call_matching_types): New function.
3824 * tree-inline.c (tree_can_inline_p): Call new function.
3826 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
3828 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
3829 tree-pretty-print.h & realmpfr.h.
3831 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
3834 * ira.c (setup_pressure_classes): Fix typo in loop condition.
3835 (setup_allocno_and_important_classes): Ditto.
3837 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3839 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
3840 GNU_USER_DYNAMIC_LINKER.
3841 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
3842 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3843 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
3844 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3845 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3846 GNU_USER_TARGET_OS_CPP_BUILTINS.
3847 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
3848 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3849 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3850 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3851 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
3852 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3853 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3854 GNU_USER_TARGET_OS_CPP_BUILTINS.
3855 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3856 GNU_USER_DYNAMIC_LINKER.
3857 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3858 GNU_USER_TARGET_OS_CPP_BUILTINS.
3859 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
3860 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3861 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
3862 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3863 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
3864 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
3865 GNU_USER_DYNAMIC_LINKER64): Remove.
3866 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
3867 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3868 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3869 GNU_USER_DYNAMIC_LINKER.
3870 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3871 GNU_USER_TARGET_OS_CPP_BUILTINS.
3872 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3873 GNU_USER_TARGET_OS_CPP_BUILTINS.
3874 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
3875 to GNU_USER_TARGET_OS_CPP_BUILTINS.
3876 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3877 GNU_USER_TARGET_OS_CPP_BUILTINS.
3878 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
3879 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
3880 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3881 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
3882 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3883 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3884 GNU_USER_DYNAMIC_LINKER.
3885 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3886 GNU_USER_TARGET_OS_CPP_BUILTINS.
3887 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
3888 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3889 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3890 GNU_USER_DYNAMIC_LINKER.
3891 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3892 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3893 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
3894 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3895 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3896 GNU_USER_DYNAMIC_LINKER.
3897 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
3898 GNU_USER_DYNAMIC_LINKERN32.
3899 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
3900 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
3901 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
3902 GNU_USER_DYNAMIC_LINKER32.
3903 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
3904 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3905 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3906 GNU_USER_DYNAMIC_LINKER.
3907 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3908 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3909 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
3910 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3911 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3912 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
3913 GNU_USER_DYNAMIC_LINKER32.
3914 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3915 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
3916 GNU_USER_DYNAMIC_LINKER.
3917 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
3918 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3919 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3920 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
3921 GNU_USER_DYNAMIC_LINKER64.
3922 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
3923 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3924 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3925 GNU_USER_DYNAMIC_LINKER.
3926 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
3927 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3928 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3929 GNU_USER_DYNAMIC_LINKER.
3930 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
3931 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3932 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3933 GNU_USER_DYNAMIC_LINKER32.
3934 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3935 GNU_USER_DYNAMIC_LINKER64.
3936 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3937 GNU_USER_DYNAMIC_LINKER64.
3938 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
3939 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3940 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
3941 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3942 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3944 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3946 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
3947 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
3948 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
3949 GNU_USER_DYNAMIC_LINKER.
3950 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3951 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
3952 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
3953 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
3954 GNU_USER_DYNAMIC_LINKER64.
3955 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3956 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
3957 GNU_USER_LINK_EMULATION.
3958 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
3959 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
3960 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
3961 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
3962 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
3963 CPP_SPEC, CC1_SPEC): Remove.
3964 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
3965 (GNU_USER_DYNAMIC_LINKER): Define.
3966 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
3967 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
3968 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
3969 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
3970 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
3971 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
3972 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3973 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
3974 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
3975 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
3976 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
3977 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
3978 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
3979 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
3980 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
3981 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3982 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3983 GNU_USER_DYNAMIC_LINKER.
3984 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3985 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3986 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3987 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3988 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3989 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3990 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
3991 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
3992 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
3993 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
3995 2011-04-11 Kai Tietz <ktietz@redhat.com>
3999 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4000 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4002 (ix86_is_msabi_thiscall): Removed.
4003 (ix86_is_type_thiscall): Likewise.
4004 (ix86_get_callcvt): New function.
4005 (ix86_comp_type_attributes): Simplify check.
4006 (ix86_function_regparm): Use ix86_get_callcvt for calling
4007 convention attribute checks.
4008 (ix86_return_pops_args): Likewise.
4009 (ix86_static_chain): Likewise.
4010 (x86_this_parameter): Likewise.
4011 (x86_output_mi_thunk): Likewise.
4012 (ix86_function_type_abi): Optimize check for types without attributes.
4013 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4014 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4015 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4017 (IX86_BASE_CALLCVT): Helper macro.
4018 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4019 Use ix86_get_callcvt for calling convention attribute checks and avoid
4020 symbol-decoration for stdcall in TARGET_RTD case.
4021 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4023 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4026 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4028 * config/i386/sse.md (VI_128): New mode iterator.
4029 (VI12_128): Rename from SSEMODE12.
4030 (VI14_128): Rename from SSEMODE14.
4031 (VI124_128): New mode iterator.
4032 (VI24_128): Rename from SSEMODE248.
4033 (VI248_128): Rename from SSEMODE248.
4034 (SSEMODE124C8): Remove.
4035 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4036 (*sse2_<plusminus_insn><mode>3): Merge with
4037 *avx_<plusminus_insn><mode>3.
4038 (*mulv8hi3): Merge with *avx_mulv8hi3.
4039 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4040 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4041 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4042 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4043 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4044 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4045 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4046 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4047 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4048 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4049 (*<smaxmin:code>v8hi3): Ditto.
4050 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4051 (*<smaxmin:code>v16qi3): Ditto.
4052 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4053 (*sse2_eq<mode>3): Ditto.
4054 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4055 (*sse2_gt<mode>3): Ditto.
4056 (vcondv2di): Split out of vcond<mode>.
4057 (vconduv2di): Split out of vcondu<mode>.
4059 2011-04-11 Richard Guenther <rguenther@suse.de>
4061 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4062 before calling tree_low_cst.
4064 2011-04-11 Richard Guenther <rguenther@suse.de>
4066 * stor-layout.c (layout_type): Compute all array index size operations
4067 in the original type.
4068 (initialize_sizetypes): Add comment.
4069 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4071 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4073 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4075 2011-04-11 Martin Jambor <mjambor@suse.cz>
4077 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4078 of cgraph_node, handle NULL return value.
4079 (cgraph_global_info): Likewise.
4080 (cgraph_rtl_info): Likewise.
4081 * tree-inline.c (estimate_num_insns): Likewise.
4082 * gimplify.c (unshare_body): Likewise.
4083 (unvisit_body): Likewise.
4084 (gimplify_body): Likewise.
4085 * predict.c (optimize_function_for_size_p): Likewise.
4086 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4087 (call_may_clobber_ref_p_1): Likewise.
4088 * varasm.c (function_section_1): Likewise.
4089 (assemble_start_function): Likewise.
4091 2011-04-11 Martin Jambor <mjambor@suse.cz>
4093 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4095 * final.c (rest_of_clean_state): Likewise.
4096 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4097 * passes.c (pass_init_dump_file): Likewise.
4098 (execute_all_ipa_transforms): Likewise.
4099 (function_called_by_processed_nodes_p): Likewise.
4100 * predict.c (maybe_hot_frequency_p): Likewise.
4101 (probably_never_executed_bb_p): Likewise.
4102 (compute_function_frequency): Likewise.
4103 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4104 (unnest_nesting_tree_1): Likewise.
4105 (lower_nested_functions): Likewise.
4106 * tree-optimize.c (execute_fixup_cfg): Likewise.
4107 (tree_rest_of_compilation): Likewise.
4108 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4109 * tree-sra.c (ipa_early_sra): Likewise.
4110 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4111 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4112 * ipa.c (record_cdtor_fn): Likewise.
4113 * ipa-inline.c (cgraph_early_inlining): Likewise.
4114 (compute_inline_parameters_for_current): Likewise.
4115 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4116 * ipa-pure-const.c (local_pure_const): Likewise.
4117 * ipa-split.c (split_function): Likewise.
4118 (execute_split_functions): Likewise.
4119 * cgraphbuild.c (build_cgraph_edges): Likewise.
4120 (rebuild_cgraph_edges): Likewise.
4121 (cgraph_rebuild_references): Likewise.
4122 (remove_cgraph_callee_edges): Likewise.
4123 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4124 (verify_cgraph_node): Likewise.
4125 (cgraph_analyze_functions): Likewise.
4126 (cgraph_preserve_function_body_p): Likewise.
4127 (save_inline_function_body): Likewise.
4128 (save_inline_function_body): Likewise.
4129 * tree-inline.c (copy_bb): Likewise.
4130 (optimize_inline_calls): Likewise.
4132 2011-04-11 Martin Jambor <mjambor@suse.cz>
4134 PR tree-optimization/48195
4135 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4136 ipa_check_create_edge_args.
4137 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4138 ipa_check_create_edge_args.
4139 * ipa-inline.c (inline_generate_summary): Do not call
4140 ipa_check_create_node_params and ipa_check_create_edge_args.
4141 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4142 ipa_check_create_edge_args.
4144 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4146 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4148 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4149 * function.c (record_hard_reg_sets): Likewise.
4150 * ira.c (compute_regs_asm_clobbered): Likewise.
4151 * sched-deps.c (sched_analyze_1): Likewise.
4152 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4154 2011-04-09 Xinliang David Li <davidxl@google.com>
4156 PR tree-optimization/PR48484
4157 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4158 has_valid_pred lazily
4160 2011-04-09 Duncan Sands <baldrick@free.fr>
4162 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4164 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4166 * combine.c (combine_validate_cost): Adjust comments. Set registered
4167 cost of I0 to zero at the end, if any.
4169 2011-04-08 Xinliang David Li <davidxl@google.com>
4171 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4172 to insane profile data.
4174 2011-04-08 Xinliang David Li <davidxl@google.com>
4176 * ipa-cp.c (ipcp_update_profiling): Correct
4177 negative scale factor due to insane profile data.
4179 2011-04-08 Xinliang David Li <davidxl@google.com>
4181 * final.c (dump_basic_block_info): New function.
4182 (final): Dump basic block.
4183 (final_scan_insn): Remove old dump.
4185 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4188 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4191 2011-04-08 Michael Matz <matz@suse.de>
4194 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4196 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4197 * rtl.h (rebuild_jump_labels_chain): Declare.
4198 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4199 insns inserted on edges.
4201 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4203 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4204 * config/arm/arm-arches.def: New.
4205 * config/arm/arm-opts.h: New.
4206 * config/arm/genopt.sh: New.
4207 * config/arm/arm-tables.opt: New (generated).
4208 * config/arm/arm.c (arm_handle_option, arm_target_help,
4209 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4210 (all_architectures): Get most table contents from arm-arches.def.
4211 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4212 arm_selected_tune here.
4213 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4214 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4215 (march=, mcpu=, mtune=): Use Enum and Var.
4216 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4217 (arm.o): Update dependencies.
4219 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4221 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4223 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4224 (write_typed_alloc_defns): Likewise.
4225 (main): Calls write_typed_alloc_defns with output_header.
4227 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4230 * ira-color.c (setup_profitable_hard_regs): Add comments.
4231 Don't take prohibited hard regs into account.
4232 (setup_conflict_profitable_regs): Rename to
4233 get_conflict_profitable_regs.
4234 (check_hard_reg_p): Check prohibited hard regs.
4236 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4238 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4239 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4240 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4242 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4245 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4246 move from floating point to shift amount register.
4247 (emit_move_sequence): Remove secondary reload support for floating
4248 point to shift amount amount register copies.
4249 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4250 amount register copies.
4251 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4252 register, return false if mode isn't a scalar integer mode.
4253 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4255 2011-04-08 Richard Guenther <rguenther@suse.de>
4257 * gimple.c (gimple_call_flags): Remove kludge.
4259 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4261 * sel-sched.c (sel_region_init): Move call to
4262 sel_setup_region_sched_flags after setup_current_loop_nest.
4264 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4266 PR rtl-optimization/48272
4267 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4268 init_insn_reg_pressure_info. Adjust a caller.
4269 * sched-int.h (init_insn_reg_pressure_info): Declare.
4270 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4271 when sched-pressure is enabled.
4273 2011-04-08 Richard Guenther <rguenther@suse.de>
4275 * gimple.c (gimple_set_modified): Do not queue calls to
4276 MODIFIED_NORETURN_CALLS here ...
4277 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4279 2011-04-08 Richard Guenther <rguenther@suse.de>
4282 * toplev.c (lang_dependent_init): Do not open asm_out_file
4283 in WPA mode, nor perform debug machinery initialization.
4284 (finalize): Do not unlink asm_out_file in WPA mode.
4286 2011-04-08 Richard Guenther <rguenther@suse.de>
4288 * gimple.h (gimple_call_fntype): New function.
4289 (gimple_call_return_type): Use it.
4290 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4291 * gimple-low.c (gimple_check_call_args): Likewise.
4292 * gimple.c (gimple_call_flags): Likewise.
4293 (gimple_call_arg_flags): Likewise.
4294 (gimple_call_return_flags): Likewise.
4295 * tree-cfg.c (verify_gimple_call): Likewise.
4296 (do_warn_unused_result): Likewise.
4297 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4298 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4300 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4302 PR rtl-optimization/48235
4303 * sel-sched.c (code_motion_process_successors): Recompute the last
4304 insn in basic block if control flow changed.
4305 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4306 Update condition for ilist_remove.
4308 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4310 PR rtl-optimization/48302
4311 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4312 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4313 it to record added preheader blocks.
4314 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4315 on to sel_add_loop_preheaders.
4316 (sel_region_init): Move call to setup_current_loop_nest after
4319 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4322 * cfgloop.h (loop_has_exit_edges): New helper.
4323 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4325 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4326 that have no exit edges.
4328 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4330 PR rtl-optimization/48442
4331 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4332 all callers. Adjust assert.
4334 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4336 PR tree-optimization/48377
4337 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4338 is_packed to true even for types with smaller TYPE_ALIGN than
4341 2011-04-08 Richard Guenther <rguenther@suse.de>
4344 * doc/tm.texi: Re-generate.
4346 2011-04-08 Wei Guozhi <carrot@google.com>
4349 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4350 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4351 * config/arm/arm.md (*push_multi): Change the length computation to
4354 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4356 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4357 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4358 * doc/tm.texi: Regenerate.
4359 * system.h (ASM_OUTPUT_BSS): Poison.
4360 * varasm.c (asm_output_bss): Remove function.
4361 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4363 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4364 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4365 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4366 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4368 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4370 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4372 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4374 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4376 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4379 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4381 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4382 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4383 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4385 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4386 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4387 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4388 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4389 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4390 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4391 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4392 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4393 options. Don't map other m68k options manually. Don't handle
4394 old-style options as canonical.
4395 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4396 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4398 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4400 * basic-block.h (force_nonfallthru): Move to...
4401 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4402 (force_nonfallthru): ...here.
4403 * cfghooks.c (force_nonfallthru): New function.
4404 * cfgrtl.c (force_nonfallthru): Rename into...
4405 (rtl_force_nonfallthru): ...this.
4406 (commit_one_edge_insertion): Do not set AUX field.
4407 (commit_edge_insertions): Do not discover new basic blocks.
4408 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4409 (cfg_layout_rtl_cfg_hooks): Likewise.
4410 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4411 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4412 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4414 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4416 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4419 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4421 * config/i386/sse.md: Update copyright year.
4422 (avxcvtvecmode): Remove.
4423 (sse_movhlps): Merge with *avx_movhlps.
4424 (sse_movlhps): Merge with *avx_movlhps.
4425 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4426 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4427 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4428 (sse_loadhps): Merge with *avx_loadhps.
4429 (sse_storelps): Merge with *avx_storelps.
4430 (sse_loadlps): Merge with *avx_loadlps.
4431 (sse_movss): Merge with *avx_movss.
4432 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4433 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4434 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4435 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4436 (vec_set<mode>_0): Ditto.
4437 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4438 (sse4_1_insertps): Merge with *avx_insertps.
4439 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4440 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4441 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4442 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4443 (sse2_storehpd): Merge with *avx_storehpd.
4444 (sse2_loadhpd): Merge with *avx_loadhpd.
4445 (sse2_loadlpd): Merge with *avx_loadlpd.
4446 (sse2_movsd): Merge with *avx_movsd.
4447 (*vec_concatv2df): Merge with *vec_concatv2df.
4449 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4452 * combine.c (combine_instructions): Add last_combined_insn,
4453 update it if insn is after it, pass it to all try_combine calls.
4454 (try_combine): Add last_combined_insn parameter, pass it instead of
4455 i3 to propagate_for_debug.
4457 2011-04-07 Nick Clifton <nickc@redhat.com>
4459 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4460 to handle MDR <-> data register transfers.
4461 (movhi_internal): Likewise.
4463 2011-04-07 Alan Modra <amodra@gmail.com>
4465 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4466 previous stack info.
4468 2011-04-07 Tom de Vries <tom@codesourcery.com>
4471 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4472 flow_find_cross_jump. Swap variables to implement backward replacement.
4473 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4475 2011-04-07 Tom de Vries <tom@codesourcery.com>
4478 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4479 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4481 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4482 src1 or src2. Redirect edges to the last basic block. Update
4483 frequency and count on multiple basic blocks in case of fallthru.
4485 2011-04-07 Tom de Vries <tom@codesourcery.com>
4488 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4490 (old_insns_match_p): Change return type. Replace return false/true
4491 with return dir_none/dir_both. Use can_replace_by.
4492 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4493 direction from dir_p. Register replacement direction in dir, last_dir
4494 and afterlast_dir. Handle new return type of old_insns_match_p using
4495 merge_dir. Return replacement direction in dir_p.
4496 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4497 return type of old_insns_match_p.
4498 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4499 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4500 flow_find_cross_jump.
4501 * basic-block.h (enum replace_direction): New type.
4502 (flow_find_cross_jump): Add parameter to declaration.
4504 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4506 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4507 (AVXMODEDCVTPS2DQ): Ditto.
4508 (VEC_FLOAT_MODE): Ditto.
4509 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4510 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4511 (<any_logic:code><mode>3): Use VF mode iterator.
4512 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4513 Use VF mode iterator.
4514 (copysign<mode>3): Use VF mode iterator.
4515 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4516 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4517 (*<any_logic:code><MODEF:mode>3): Merge with
4518 *avx_<any_logic:code><MODEF:mode>3.
4519 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4520 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4521 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4522 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4523 (sse2_cvtdq2ps): Use %v modifier.
4524 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4525 (avx_cvtps2dq<avxmodesuffix>): Remove.
4526 (sse2_cvtps2dq): Use %v modifier.
4527 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4528 (avx_cvttps2dq<avxmodesuffix>): Remove.
4529 (sse2_cvttps2dq): Use %v modifier.
4530 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4531 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4532 (sse2_cvtsd2siq): Fix insn template.
4533 (sse2_cvtsd2siq_2): Ditto.
4534 (sse2_cvttsd2siq): Ditto.
4535 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4536 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4538 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4540 * gcov-io.c: Use GCC Runtime Library Exception.
4542 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4545 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4546 as base_reg whatever register reg has been eliminated to, instead
4547 of hardcoding STACK_POINTER_REGNUM.
4549 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4551 * doc/tm.texi.in: Document C target hooks as separate from general
4553 * doc/tm.texi: Regenerate.
4554 * genhooks.c (struct hook_desc): Add docname field.
4555 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4557 (hook_array): Include c-target.def.
4558 (emit_documentation): Use docname field in output.
4559 (emit_init_macros): Take docname argument. Only emit definitions
4560 for hooks matching docname.
4561 (main): Expect additional arguments in all cases. Pass argument
4562 to emit_init_macros.
4563 * target.def: Move initial macro definitions and comments to
4564 target-hooks-macros.h.
4565 (gcc_targetcm): Move to c-family/c-target.def.
4566 * target.h (targetcm): Move declaration to c-family/c-target.h.
4567 * targhooks.c (default_handle_c_option): Move to
4569 * targhooks.h (default_handle_c_option): Move declaration to
4570 c-family/c-common.h.
4571 * target-hooks-macros.h: New file.
4572 * config.gcc (target_has_targetcm): Define and use to add to
4573 c_target_objs and cxx_target_objs.
4574 * config/default-c.c: New file.
4575 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4576 of target.h and target-def.h.
4577 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4578 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4579 darwin_check_cfstring_format_arg): Make static.
4580 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4581 TARGET_STRING_OBJECT_REF_TYPE_P,
4582 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4583 * config/darwin-protos.h (darwin_objc_construct_string,
4584 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4586 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4587 TARGET_STRING_OBJECT_REF_TYPE_P,
4588 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4589 * config/t-darwin (darwin-c.o): Update dependencies.
4590 * system.h (TARGET_HAS_TARGETCM): Poison.
4591 * Makefile.in (TARGET_H): Update.
4592 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4593 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4594 (default-c.o): New target.
4595 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4596 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4597 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4599 (build/genhooks.o): Update dependencies.
4601 2011-04-06 Richard Guenther <rguenther@suse.de>
4603 * ipa-inline.c (enum inlining_mode): Remove.
4604 (cgraph_flatten): Use some other token.
4605 (cgraph_edge_early_inlinable_p): New function, split out from ...
4606 (cgraph_perform_always_inlining): New function, split out from ...
4607 (cgraph_decide_inlining_incrementally): ... here.
4608 (cgraph_mark_inline_edge): Adjust.
4609 (cgraph_early_inlining): Re-structure.
4610 (pass_early_inline): Require SSA form.
4612 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4613 Julian Brown <julian@codesourcery.com>
4614 Mark Shinwell <shinwell@codesourcery.com>
4616 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4617 LO_REGS only for Thumb-1.
4618 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4619 be used in short instructions when optimising for size on Thumb-2.
4621 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4623 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4624 associated with user returns to be preserved.
4626 2011-04-06 Tristan Gingold <gingold@adacore.com>
4628 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4629 symbol_queue_size, DBXOUT_DECR_NESTING,
4630 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4631 if XCOFF_DEBUGGING_INFO.
4633 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4635 * config/i386/i386.md (attribute isa): New.
4636 (attribute enabled): New.
4637 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4638 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4639 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4640 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4641 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4642 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4643 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4644 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4646 * config/i386/sse.md (VF): New mode iterator.
4650 (SSEMODEF4): Remove.
4651 (attribute sse): Handle V8SF and V4DF modes.
4652 (<absneg:code><mode>2): Use VF mode iterator.
4653 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
4655 (<plusminus_insn><mode>3): Use VF mode iterator.
4656 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4657 Use VF mode iterator.
4658 (<sse>_vm<plusminus_insn><mode>3): Merge with
4659 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
4660 (mul<mode>3): Use VF mode iterator.
4661 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
4662 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
4664 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4665 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4666 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
4667 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
4669 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4670 Use VF1 mode iterator.
4671 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4672 (sqrt<VF2:mode>2): New expander.
4673 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4674 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4675 and sqrtv2df2. Use VF mode iterator.
4676 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
4678 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4679 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4680 Use VF1 mode iterator.
4681 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4682 (<smaxmin:code><mode>3): Use VF mode iterator.
4683 (*<smaxmin:code><mode>3_finite): Merge with
4684 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
4685 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4686 (<sse>_vm<smaxmin:code><mode>2): Merge with
4687 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
4688 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
4690 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
4692 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4693 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4694 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4695 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4696 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
4698 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4699 Use VF_128 mode iterator.
4700 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
4702 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
4703 VF_128 mode iterator.
4704 (vcond<mode>): Use VF mode iterator.
4705 * config/i386/predicates.md (sse_comparison_operator): Merge with
4706 avx_comparison_float_operator. Do not declare as special_predicate.
4707 * config/i386/i386.c (struct builtin_description): Update for renamed
4709 (ix86_expand_args_builtin): Ditto.
4710 (ix86_expand_sse_compare_mask): Ditto.
4712 2011-04-06 Richard Guenther <rguenther@suse.de>
4714 * tree-inline.c (estimate_num_insns): For calls simply account
4715 for all passed arguments and a used return value.
4717 2011-04-06 Richard Guenther <rguenther@suse.de>
4719 PR tree-optimization/47663
4720 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4721 call_stmt_time fields.
4722 (cgraph_edge_inlinable_p): Declare.
4723 (cgraph_edge_recursive_p): New inline function.
4724 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4725 (cgraph_clone_edge): Copy it.
4726 * ipa-inline.c (cgraph_estimate_edge_time): New function.
4727 Account for call stmt time.
4728 (cgraph_estimate_time_after_inlining): Take edge argument.
4729 (cgraph_estimate_edge_growth): Account call stmt size.
4730 (cgraph_estimate_size_after_inlining): Take edge argument.
4731 (cgraph_mark_inline_edge): Adjust.
4732 (cgraph_check_inline_limits): Likewise.
4733 (cgraph_recursive_inlining_p): Remove.
4734 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
4735 (cgraph_decide_recursive_inlining): Take edge argument and
4737 (cgraph_decide_inlining_of_small_functions): Do not avoid
4738 diags for recursive inlining here.
4739 (cgraph_flatten): Adjust.
4740 (cgraph_decide_inlining_incrementally): Likewise.
4741 (estimate_function_body_sizes): Remove call cost handling.
4742 (compute_inline_parameters): Initialize caller edge call costs.
4743 (cgraph_estimate_edge_growth): New function.
4744 (cgraph_estimate_growth): Use it.
4745 (cgraph_edge_badness): Likewise.
4746 (cgraph_check_inline_limits): Take an edge argument.
4747 (cgraph_decide_inlining_of_small_functions): Adjust.
4748 (cgraph_decide_inlining): Likewise.
4749 * tree-inline.c (estimate_num_insns): Only account for call
4750 return value if it is used.
4751 (expand_call_inline): Avoid diagnostics on recursive inline
4753 * lto-cgraph.c (lto_output_edge): Output edge call costs.
4754 (input_edge): Input edge call costs.
4756 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4758 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
4760 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4762 * doc/invoke.texi (Spec Files): Fix typo.
4764 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4766 * profile.c (branch_prob): Move declaration of local variable. Remove
4767 obsolete ??? comment. Expand the location explicitly instead of using
4768 the LOCATION_FILE and LOCATION_LINE macros.
4770 2011-04-06 Wei Guozhi <carrot@google.com>
4773 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
4774 (arm_cond_branch): Likewise.
4775 (arm_cond_branch_reversed): Likewise.
4776 (arm_jump): Likewise.
4777 (push_multi): Likewise.
4778 * config/arm/constraints.md (Py): New constraint.
4780 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4783 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
4785 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
4786 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
4787 #ifdef DBX_DEBUGGING_INFO.
4789 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
4792 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
4793 if old and new states differ.
4795 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4797 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
4798 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
4799 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4800 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
4801 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
4803 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
4804 ColdFire options to -mcpu= options.
4806 2011-04-05 Jeff Law <law@redhat.com>
4808 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
4809 check if BB is a successor of LOOP->header and return
4810 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
4812 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4814 * cprop.c (struct reg_use): Remove.
4815 (reg_use_table): Make an array of RTX.
4816 (find_used_regs, constprop_register, local_cprop_pass,
4817 bypass_block): Simplify users of reg_use_table.
4818 (cprop_insn): Likewise. Iterate if copy propagation succeeded
4819 on one of the uses found by find_used_regs.
4821 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4824 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
4827 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4829 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
4831 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
4833 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4836 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
4838 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4840 * combine.c: Include obstack.h.
4841 (struct insn_link): Define.
4842 (uid_log_links): Adjust type.
4843 (FOR_EACH_LOG_LINK): New macro.
4844 (insn_link_obstack): Declare.
4845 (alloc_insn_link): Define.
4846 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
4847 type of link variables.
4848 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
4849 (try_combine, record_promoted_values, distribute_notes): Likewise.
4850 (distribute_links): Likewise. Tweak prototype.
4851 (clear_log_links): Delete.
4852 (adjust_for_new_dest): Call alloc_insn_link.
4853 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
4855 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4857 * gcse.c (modify_mem_list): Convert to an array of VECs.
4858 (canon_modify_mem_list, compute_transp): Tweak formatting.
4859 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
4860 (load_killed_in_block_p): Likewise.
4861 (record_last_mem_set_info): Likewise.
4862 (clear_modify_mem_tables): Likewise.
4864 2011-04-05 Tom de Vries <tom@codesourcery.com>
4867 * function.c (emit_use_return_register_into_block): Only define if
4870 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
4872 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
4874 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4876 * config/rx/rx-opts.h: New.
4877 * config/rx/rx.c (rx_cpu_type): Remove.
4878 (rx_handle_option): Don't assert that global structures are in
4879 use. Access variables via opts pointer. Defer most handling of
4880 OPT_mint_register_. Use error_at.
4881 (rx_option_override): Handle deferred OPT_mint_register_ here.
4882 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
4883 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
4884 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
4885 (rx_cpu_types): New Enum and EnumValue entries.
4886 (mint-register=): Use Defer and use Var accordingly.
4888 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4890 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
4891 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
4892 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
4894 (debug_free_queue, debug_nesting, symbol_queue_index):
4896 * dbxout.c: ...to here. Make static.
4898 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4900 * gcse.c (modify_pair): Define. Define a VEC of it.
4901 (canon_modify_mem_list): Convert to an array of VECs.
4902 (free_insn_expr_list_list): Delete.
4903 (clear_modify_mem_tables): Call VEC_free instead.
4904 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
4905 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
4906 (canon_list_insert, compute_transp): Likewise.
4908 2011-04-05 Tom de Vries <tom@codesourcery.com>
4911 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
4914 2011-04-05 Tom de Vries <tom@codesourcery.com>
4917 * function.c (emit_use_return_register_into_block): New function.
4918 (thread_prologue_and_epilogue_insns): Use
4919 emit_use_return_register_into_block.
4921 2011-04-05 Tom de Vries <tom@codesourcery.com>
4924 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
4927 2011-04-05 Tom de Vries <tom@codesourcery.com>
4929 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
4931 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
4933 * config/arm/arm.md (define_constants for unspec): Replace with
4935 (define_constants for unspecv): Replace with define_c_enum.
4936 * config/arm/neon.md (define_constants for unspec): Replace with
4939 2011-04-04 Richard Henderson <rth@redhat.com>
4942 * dwarf2out.c (output_line_info): Always emit line info from
4943 at least one section.
4944 (dwarf2out_init): Create text_section_line_info here ...
4945 (set_cur_line_info_table): ... not here.
4947 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
4950 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
4953 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
4955 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
4957 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
4958 (expr_equiv_p): Remove.
4959 (insert_set_in_table): Look at <dest, src> pair instead of expr.
4960 (hash_scan_set): Update call to insert_set_in_table.
4961 (dump_hash_table): Dump <dest, src> pair.
4962 (lookup_set): Simplify. Lookup <dest, src> pair.
4963 (compute_transp): Remove, fold heavily simplified code into...
4964 (compute_local_properties): ...here. Expect COMP and TRANSP
4966 (find_avail_set): Take set directly from struct expr.
4967 (find_bypass-set): Likewise.
4968 (bypass_block): Likewise.
4969 (cprop_insn): Likewise. Remove redundant INSN_P test.
4971 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
4972 checks on form of COND from find_implicit_sets to here.
4973 (find_implicit_sets): Cleanup control flow. Split critical edges
4974 if it exposes implicit sets. Allocate/resize implicit_sets as
4976 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
4977 changed something. Run df_analyze after find_implicit_sets if any
4978 edges were split. Do not allocate implicit_sets here.
4980 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
4981 (gcse_obstack): Renamed to cprop_obstack.
4982 (GNEW, GNEWVEC, GNEWVAR): Remove.
4984 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
4985 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
4986 (gcse_alloc): Likewise, and rename to cprop_alloc.
4987 (alloc_gcse_men, free_gcse_mem): Remove.
4988 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
4989 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
4990 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
4992 * cprop.c (oprs_not_set_p): Remove.
4993 (mark_set, mark_clobber): Remove.
4994 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
4995 (reg_not_set_p): New function.
4996 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
4997 (cprop_insn): Likewise.
4998 (cprop_jump): Use FOR_EACH_EDGE.
5000 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5003 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5004 (rank_for_schedule): Use scheduled_insns vector instead of
5005 last_scheduled_insn.
5006 (ok_for_early_queue_removal): Likewise.
5007 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5009 (choose_ready): Likewise.
5010 (commit_schedule): Use VEC_iterate.
5011 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5012 a dbg_cnt, use it and ensure the first insn is in the ready list.
5013 (haifa_sched_init): Allocate scheduled_insns.
5014 (sched_extend_ready_list): Don't allocate it; reserve space.
5015 (haifa_sched_finish): Free it.
5017 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5019 * optc-gen.awk: Always remove type from Variable entry before
5020 recording in var_seen.
5022 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5024 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5025 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5026 call to tidy_fallthru_edges.
5028 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5030 * doc/options.texi (ToLower): Document.
5031 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5032 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5033 * opts.h (cl_option): Add cl_tolower field.
5034 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5035 arguments with lowercase strings.
5036 * config/rx/rx.opt (mcpu=): Add ToLower.
5037 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5040 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5042 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5044 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5046 * config/vax/vax.c: Include reload.h.
5048 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5050 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5051 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5052 (sparc_preferred_reload_class): New function.
5054 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5057 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5058 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5060 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5062 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5063 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5065 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5067 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5068 (ASM_OUTPUT_ALIGNED_BSS): Define.
5070 2011-04-03 Michael Matz <matz@suse.de>
5072 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5073 and next_slot members.
5074 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5075 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5076 (lto_streamer_cache_append): Declare.
5077 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5078 unsigned index, remove offset parameter, ensure that we append
5079 or update existing entries.
5080 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5081 parameter, update next_slot for append.
5082 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5084 (lto_streamer_cache_insert_at): Likewise.
5085 (lto_streamer_cache_append): New function.
5086 (lto_streamer_cache_lookup): Use unsigned index.
5087 (lto_streamer_cache_get): Likewise.
5088 (lto_record_common_node): Don't test tree_node_can_be_shared.
5089 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5090 (lto_streamer_cache_delete): Don't free offsets member.
5091 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5092 (lto_output_string_with_length): Use lto_output_data_stream.
5093 (lto_output_tree_header): Remove ix parameter, don't write it.
5094 (lto_output_builtin_tree): Likewise.
5095 (lto_write_tree): Adjust callers to above, don't track and write
5096 offset, write unsigned index.
5097 (output_unreferenced_globals): Don't emit all global vars.
5098 (write_global_references): Use unsigned indices.
5099 (lto_output_decl_state_refs): Likewise.
5100 (write_symbol): Likewise.
5101 * lto-streamer-in.c (lto_input_chain): Move earlier.
5102 (input_function): Use unsigned index.
5103 (input_alias_pairs): Don't read and then ignore all global vars.
5104 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5105 don't pass it back, use lto_streamer_cache_append.
5106 (lto_register_var_decl_in_symtab): Use unsigned index.
5107 (lto_register_function_decl_in_symtab): Likewise.
5108 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5110 (lto_get_builtin_tree): Don't read index, use
5111 lto_streamer_cache_append.
5112 (lto_read_tree): Adjust call to lto_materialize_tree.
5114 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5115 don't use function calls in arguments to MIN.
5117 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5120 * gimple.c (gimple_type_leader_entry): Mark deletable.
5122 2011-04-03 Alan Modra <amodra@gmail.com>
5124 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5126 2011-04-03 Michael Matz <matz@suse.de>
5128 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5130 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5132 2011-04-03 Michael Matz <matz@suse.de>
5134 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5135 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5136 without function context.
5137 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5138 current_function_decl and cfun.
5140 2011-04-03 Michael Matz <matz@suse.de>
5142 * tree.c (decl_init_priority_insert): Don't create entry for
5144 (decl_fini_priority_insert): Ditto.
5145 (fields_compatible_p, find_compatible_field): Remove.
5146 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5147 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5149 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5151 * combine.c (try_combine): Remove useless local variable.
5153 2011-04-03 Richard Guenther <rguenther@suse.de>
5154 Ira Rosen <ira.rosen@linaro.org>
5156 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5157 non-variable offsets and compare the remaining bases of the two
5158 accesses instead of looking for exact same data-ref.
5160 2011-04-02 Kai Tietz <ktietz@redhat.com>
5163 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5165 * i386.c (ix86_is_msabi_thiscall): New helper function.
5166 (ix86_is_type_thiscall): New helper function.
5167 (ix86_comp_type_attributes): Handle thiscall for method-functions
5169 (init_cumulative_args): Likewise.
5170 (find_drap_reg): Likewise.
5171 (ix86_static_chain): Likewise.
5172 (x86_this_parameter): Likewise.
5173 (x86_output_mi_thunk): Likewise.
5175 2011-04-01 Olivier Hainque <hainque@adacore.com>
5176 Nicolas Setton <setton@adacore.com>
5177 Eric Botcazou <ebotcazou@adacore.com>
5179 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5180 (add_gnat_descriptive_type_attribute): New function.
5181 (gen_array_type_die): Call it.
5182 (gen_enumeration_type_die): Likewise.
5183 (gen_struct_or_union_type_die): Likewise.
5184 (modified_type_die): Likewise.
5185 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5186 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5187 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5189 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5192 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5193 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5196 2011-03-17 Richard Guenther <rguenther@suse.de>
5199 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5200 origin for decls in other ltrans units.
5201 (input_varpool_node): Likewise.
5203 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5206 * expr.c (expand_assignment): Handle all possibilities
5207 if TO_RTX is CONCAT.
5208 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5209 (store_split_bit_field): If SUBREG_REG (op0) or
5210 op0 itself has smaller mode than word, return it
5211 for offset 0 and const0_rtx for out-of-bounds stores.
5212 If word is const0_rtx, skip it.
5214 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5216 * config/h8300/h8300.c (print_operand_address): Rename to...
5217 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5218 Call h8300_print_operand and h8300_print_operand_address instead of
5219 print_operand and print_operand_address. Declare.
5220 (print_operand): Renake to...
5221 (h8300_print_operand): ...this. Make static. Adjust comments.
5222 Call h8300_print_operand instead of print_operand. Declare.
5223 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5224 (h8300_register_move_cost): Likewise.
5225 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5226 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5227 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5228 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5229 * config/h8300/h8300-protos.h (print_operand): Delete.
5230 (print_operand_address): Delete.
5232 2011-04-01 Richard Henderson <rth@redhat.com>
5235 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5236 in strict mode before dwarf4. Re-order tests to early out
5237 before switching sections.
5239 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5241 * config/h8300/constraints.md: New file.
5242 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5243 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5244 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5245 * config/h8300/predicates.md (bit_operand): Likewise.
5246 (incdec_operand): Use satisfies_constraint_M and
5247 satisfies_constraint_O. Don't use C code block.
5248 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5249 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5250 (compute_mov_length): Use satisfies_constraint_G.
5251 (fix_bit_operand): Use satisfies_constraint_U.
5252 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5253 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5254 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5255 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5256 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5257 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5258 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5259 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5260 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5261 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5262 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5263 (EXTRA_MEMORY_CONSTRAINT): Delete.
5265 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5266 Michael Meissner <meissner@linux.vnet.ibm.com>
5269 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5270 operands, as per the specifications.
5272 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5273 (vec_extract_evenv4sf): Ditto.
5274 (vec_extract_evenv8hi): Ditto.
5275 (vec_extract_evenv16qi): Ditto.
5276 (vec_extract_oddv4si): Ditto.
5278 2011-03-31 Mark Wielaard <mjw@redhat.com>
5280 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5281 high_pc attribute if the CU has no associated code. Only output
5282 DW_AT_entry_pc for CU if not generating strict dwarf and
5285 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5287 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5288 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5290 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5291 * final.c (final_start_function): Call the new function rather
5292 than using a NULL argument for dwarf2out_frame_debug.
5294 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5295 that contains the prologue.
5297 * haifa-sched.c (queue_insn): New arg REASON. All callers
5298 changed. Print it in debugging output.
5300 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5302 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5303 Split most of the code into...
5304 (begin_move_insn): ... here. New function.
5305 (ebb_sched_info): Add a pointer to it.
5306 * haifa-sched.c (scheduled_insns): New static variable.
5307 (sched_extend_ready_list): Allocate it.
5308 (schedule_block): Use it to record the order of scheduled insns.
5309 Perform RTL changes to move insns only after all scheduling
5310 decisions have been made.
5311 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5312 begin_move_insn field.
5313 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5314 * sched-int.h (struct haifa_sched_info): Remove second argument
5315 from begin_schedule_ready hook. Add new member begin_move_insn.
5316 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5317 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5319 * haifa-sched.c (prune_ready_list): New function, broken out of
5321 (schedule_block): Use it.
5323 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5325 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5327 2011-04-01 Kai Tietz <ktietz@redhat.com>
5329 * config.gcc (*-*-mingw*): Allow as option the
5330 posix threading model.
5331 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5332 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5334 (CPP_SPEC): Add pthread/no-pthread handling.
5335 (LIB_SPEC): Likewise.
5336 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5337 (LIB_SPEC): Likewise.
5338 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5339 flag to pass -pthread option for shared libgcc build.
5340 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5341 for shared libgcc build.
5342 * config/i386/t-mingw-pthread: New file.
5343 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5344 New define to enable use of library pthread by default.
5345 * config/i386/mingw.opt (pthread): New driver option.
5346 (no-pthread): New driver option.
5347 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5348 * config/i386/mingw-w64.opt: Likewise.
5350 2011-04-01 Gary Funck <gary@intrepid.com>
5352 * c-decl.c (grokdeclarator): Fix formatting.
5354 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5356 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5357 instead of n_operands.
5358 (set_storage_via_setmem): Likewise.
5359 * optabs.c (maybe_gen_insn): Likewise.
5360 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5361 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5362 (mips_expand_builtin_direct): Likewise.
5363 * config/spu/spu.c (expand_builtin_args): Likewise.
5365 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5367 * recog.h (insn_data_d): Add n_generator_args.
5368 * genoutput.c (data): Likewise.
5369 (output_insn_data): Print it.
5370 (max_opno, num_dups): Delete.
5371 (scan_operands): Just fill in "d->operand[...]".
5372 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5374 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5376 * gensupport.h (pattern_stats): New structure.
5377 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5378 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5379 (max_operand_1, max_operand_vec): Delete.
5380 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5382 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5384 * emit-rtl.c (emit_pattern_after_setloc): New function.
5385 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5386 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5387 (emit_pattern_after): New function.
5388 (emit_insn_after, emit_jump_insn_after): Call it.
5389 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5390 (emit_pattern_before_setloc): New function.
5391 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5392 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5394 (emit_pattern_before): New function.
5395 (emit_insn_before, emit_jump_insn_before): Call it.
5396 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5398 2011-03-31 Richard Henderson <rth@redhat.com>
5400 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5401 (dw_separate_line_info_entry): Remove.
5402 (enum dw_line_info_opcode): New.
5403 (dw_line_info_entry): Use it.
5404 (dw_line_info_table, dw_line_info_table_p): New.
5405 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5406 (line_info_table, line_info_label_num): Remove.
5407 (line_info_table_in_use): Remove.
5408 (separate_line_info_table): Remove.
5409 (separate_line_info_table_allocated): Remove.
5410 (separate_line_info_table_in_use): Remove.
5411 (LINE_INFO_TABLE_INCREMENT): Remove.
5412 (line_info_label_num): New.
5413 (cur_line_info_table): New.
5414 (text_section_line_info, cold_text_section_line_info): New.
5415 (separate_line_info): New.
5416 (SEPARATE_LINE_CODE_LABEL): Remove.
5417 (print_dwarf_line_table): Remove.
5418 (debug_dwarf): Don't dump it.
5419 (output_one_line_info_table): New.
5420 (output_line_info): Use it.
5421 (new_line_info_table): New.
5422 (set_cur_line_info_table): New.
5423 (dwarf2out_switch_text_section): Use it.
5424 (dwarf2out_begin_function): Likewise.
5425 (push_dw_line_info_entry): New.
5426 (dwarf2out_source_line): Rewrite for new line info tables.
5427 (dwarf2out_init): Remove dead initailizations.
5429 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5431 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5433 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5434 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5435 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5436 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5437 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5438 * opt-functions.awk (flag_init, switch_bit_fields): New.
5439 (switch_flags): Don't handle flags moved to bit-fields. Don't
5440 generate CL_MISSING_OK or CL_SAVE.
5441 * optc-gen.awk: Update to generate bit-field output as well as
5443 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5444 bit-field instead of CL_REJECT_DRIVER flag.
5445 * opts-common.c (generate_canonical_option,
5446 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5447 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5448 instead of CL_REJECT_NEGATIVE flag.
5449 * toplev.c (print_switch_values): Use cl_report bit-field instead
5452 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5454 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5455 a zero minimum index only if it is redundant.
5457 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5459 PR rtl-optimization/48381
5460 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5461 instead of ira_class_hard_reg_index for calculating conflicting
5464 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5466 * cprop.c: Clean up hash table building.
5467 (reg_avail_info): Remove.
5468 (oprs_available_p): Remove.
5469 (record_last_reg_set_info): Remove.
5470 (record_last_set_info): Remove.
5471 (reg_available_p): New function.
5472 (gcse_constant_p): Do not treat unfolded conditions as constants.
5473 (make_set_regs_unavailable): New function.
5474 (hash_scan_set): Simplify with new reg_available_p.
5475 (compute_hash_table_work): Traverse insns stream only once.
5476 Do not compute reg_avail_info. Traverse insns in reverse order.
5477 Record implicit sets after recording explicit sets from the block.
5479 2011-03-31 Michael Matz <matz@suse.de>
5481 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5483 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5485 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5486 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5487 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5488 (h8300_mode_dependent_address_p): New function.
5489 (h8300_get_index): Make static.
5491 2011-03-31 Jeff Law <law@redhat.com>
5493 * reload1.c (elimination_effects): Fix typo in recent change.
5495 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5496 typo potentially leading to null pointer dereference.
5498 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5499 (setup_save_areas): Corresponding changes to avoid useless
5502 * jump.c (reversed_comparison_code_parts): Avoid successive return
5503 statements when REVERSE_CONDITION is defined.
5505 * expr.c (expand_assignment): Avoid useless assignments.
5506 (expand_expr_real_1): Likewise.
5507 (expand_expr_real_2): Avoid useless statements.
5509 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5511 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5513 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5516 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5518 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5521 * doc/tm.texi.in (TARGET_VERSION): Remove.
5522 * doc/tm.texi: Regenerate.
5523 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5524 * collect2.c (main): Don't use TARGET_VERSION.
5525 * mips-tdump.c (main): Don't use TARGET_VERSION.
5526 * mips-tfile.c (main): Don't use TARGET_VERSION.
5527 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5528 * config/rs6000/vxworksae.h: Remove.
5529 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5530 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5531 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5532 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5533 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5534 * config/arm/arm.h (TARGET_VERSION): Remove.
5535 * config/arm/coff.h (TARGET_VERSION): Remove.
5536 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5537 * config/arm/elf.h (TARGET_VERSION): Remove.
5538 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5539 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5540 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5541 * config/arm/pe.h (TARGET_VERSION): Remove.
5542 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5543 * config/arm/semi.h (TARGET_VERSION): Remove.
5544 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5545 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5546 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5547 * config/avr/avr.h (TARGET_VERSION): Remove.
5548 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5549 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5550 * config/frv/frv.h (TARGET_VERSION): Remove.
5551 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5552 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5553 * config/i386/darwin.h (TARGET_VERSION): Remove.
5554 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5555 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5556 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5557 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5558 * config/i386/gnu.h (TARGET_VERSION): Remove.
5559 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5560 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5561 * config/i386/linux.h (TARGET_VERSION): Remove.
5562 * config/i386/linux64.h (TARGET_VERSION): Remove.
5563 * config/i386/lynx.h (TARGET_VERSION): Remove.
5564 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5565 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5566 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5567 * config/i386/netware.h (TARGET_VERSION): Remove.
5568 * config/i386/nto.h (TARGET_VERSION): Remove.
5569 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5570 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5571 * config/ia64/elf.h (TARGET_VERSION): Remove.
5572 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5573 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5574 * config/ia64/linux.h (TARGET_VERSION): Remove.
5575 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5576 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5577 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5578 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5579 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5580 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5581 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5582 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5583 * config/m68k/linux.h (TARGET_VERSION): Remove.
5584 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5585 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5586 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5587 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5588 * config/mep/mep.h (TARGET_VERSION): Remove.
5589 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5590 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5591 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5592 * config/mips/linux.h (TARGET_VERSION): Remove.
5593 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5594 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5595 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5596 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5597 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5598 * config/pa/pa.h (TARGET_VERSION): Remove.
5599 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5600 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5601 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5602 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5603 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5604 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5605 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5606 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5607 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5608 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5609 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5610 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5611 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5612 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5613 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5614 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5615 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5616 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5617 * config/s390/linux.h (TARGET_VERSION): Remove.
5618 * config/s390/s390.h (TARGET_VERSION): Remove.
5619 * config/s390/tpf.h (TARGET_VERSION): Remove.
5620 * config/score/score.h (TARGET_VERSION): Remove.
5621 * config/sh/linux.h (TARGET_VERSION): Remove.
5622 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5623 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5624 * config/sh/sh.h (TARGET_VERSION): Remove.
5625 * config/sh/sh64.h (TARGET_VERSION): Remove.
5626 * config/sh/superh.h (TARGET_VERSION): Remove.
5627 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5628 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5629 * config/sparc/linux.h (TARGET_VERSION): Remove.
5630 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5631 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5632 TARGET_NAME32, TARGET_NAME): Remove.
5633 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5634 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5635 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5636 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5637 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5638 * config/spu/spu.h (TARGET_VERSION): Remove.
5639 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5640 * config/v850/v850.h (TARGET_VERSION): Remove.
5641 * config/vax/linux.h (TARGET_VERSION): Remove.
5642 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5643 * config/xtensa/elf.h (TARGET_VERSION): Remove.
5644 * config/xtensa/linux.h (TARGET_VERSION): Remove.
5646 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5649 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5650 frame-related from frame-unrelated adjustments to the stack pointer.
5652 2011-03-31 Jakub Jelinek <jakub@redhat.com>
5654 * common.opt (fdebug-types-section): Move earlier.
5655 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5657 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
5659 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5662 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
5664 * tree.h (CASE_CHAIN): Define.
5665 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5666 (gimple_redirect_edge_and_branch): Likewise.
5668 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5671 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5674 2011-03-30 Jeff Law <law@redhat.com>
5676 * PR bootstrap/48371
5677 * reload1.c (reload): Fix botch in last change.
5679 * reload.h (struct reload): Fix typo introduced in last change.
5681 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5683 * config/arm/arm.opt (mhard-float, msoft-float): Mark
5684 Undocumented. Remove help text.
5685 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5688 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5690 * doc/options.texi (NegativeAlias): Document.
5691 (Alias): Mention NegativeAlias.
5692 * opt-functions.awk: Handle NegativeAlias.
5693 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5694 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5695 * opts.h (CL_NEGATIVE_ALIAS): Define.
5696 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5697 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5699 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5701 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5702 mno-spe and mno-isel instead of mspe=no and -misel=no.
5704 2011-03-29 Mark Wielaard <mjw@redhat.com>
5706 * common.opt (fdebug-types-section): New flag.
5707 * doc/invoke.texi: Document new -fno-debug-types-section flag.
5708 * dwarf2out.c (use_debug_types): New define.
5709 (struct die_struct): Mark die_id with GTY desc use_debug_types.
5710 (print_die): Guard output of type unit signatures using
5712 (build_abbrev_table): Replace assert of dwarf_version >= 4
5713 with assert on use_debug_types.
5714 (size_of_die): Likewise.
5715 (unmark_dies): Likewise.
5716 (value_format): Decide AT_ref_external form on use_debug_types.
5717 (output_die): Replace dwarf_version version check guard with
5718 use_debug_types where appropriate.
5719 (modified_type_die): Likewise.
5720 (gen_reference_type_die): Likewise.
5721 (dwarf2out_start_source_file): Likewise.
5722 (dwarf2out_end_source_file): Likewise.
5723 (prune_unused_types_walk_attribs): Likewise.
5724 (dwarf2out_finish): Likewise.
5726 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5728 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5730 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5732 PR rtl-optimization/48332
5733 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
5734 mode of input operand N and modeN to its actual mode.
5736 2011-03-30 Jeff Law <law@redhat.com>
5738 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
5739 define accessor macro.
5740 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
5741 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
5742 (reg_equiv_init): Likewise.
5743 (reg_equivs_size): New variable.
5744 (reg_equiv_init_size): Remove.
5745 (allocate_initial_values): Move prototype to here from....
5746 * integrate.h (allocate_initial_values): Remove prototype.
5747 * integrate.c: Include reload.h.
5748 (allocate_initial_values): Corresponding changes.
5749 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
5750 (fix_reg_equiv_init, no_equiv): Corresponding changes.
5751 (update_equiv_regs): Corresponding changes.
5752 (ira): Corresponding changes.
5753 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
5754 (push_secondary_reload): Corresponding changes.
5755 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
5756 (make_memloc, find_reloads_address): Corresponding changes.
5757 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
5758 (find_reloads_address_1): Corresponding changes.
5759 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
5760 (refers_to_regno_for_reload_p): Corresponding changes.
5761 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
5762 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
5763 * reload1.c: Include ggc.h.
5764 (grow_reg_equivs): New function.
5765 (replace_pseudos_in, reload): Corresponding changes.
5766 (calculate_needs_all_insns, alter_regs): Corresponding changes.
5767 (eliminate_regs_1, elimination_effects): Corresponding changes.
5768 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
5769 (delete_output_reload): Likewise.
5770 * caller-save.c (mark_referenced_regs): Corresponding changes.
5771 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
5772 * frv/predicates.md (frv_load_operand): Corresponding changes.
5773 * microblaze/microblaze.c (double_memory_operand): Corresponding
5775 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
5776 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
5777 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
5778 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
5779 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
5781 * pa/pa.c (emit_move_sequence): Corresponding changes.
5782 * vax/vax.c (nonindexed_address_p): Corresponding changes.
5784 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5787 * config/arm/arm.c (coproc_secondary_reload_class): Handle
5788 structure modes. Don't check neon_vector_mem_operand for
5789 vector or structure modes.
5791 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5792 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5795 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
5796 operand 1 and reshuffle the operands to match.
5797 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
5799 2011-03-30 Christian Schüler <cschueler@gmx.de>
5802 * config/c.opt (F): Added 'Driver' to -F option.
5805 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
5807 * config/darwin.opt: Added '-arch' option.
5809 2011-03-30 Nick Clifton <nickc@redhat.com>
5811 * config/rx/rx.md: Add peepholes and patterns to combine
5812 extending loads and simple arithmetic instructions.
5813 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
5814 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
5815 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
5816 modes to use pre-decrement and post-increment addressing.
5817 (rx_is_restricted_memory_address): Add range checking of REG+INT
5819 (rx_print_operand): Add support for %Q. Fix handling of %Q.
5820 (rx_memory_move_cost): Adjust cost of stores.
5821 (rx_adjust_insn_length): New function.
5823 2011-03-30 Jakub Jelinek <jakub@redhat.com>
5826 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5827 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
5828 matching arg00/arg01 types.
5830 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
5832 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
5833 last_location to UNKNOWN_LOCATION.
5835 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
5838 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
5841 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5842 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5845 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
5847 (sparc_cpu): Likewise.
5848 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
5851 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5855 PR rtl-optimization/48345
5856 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
5857 hard regs for given mode from profitable regs when doing secondary
5860 2011-03-29 Jeff Law <law@redhat.com>
5863 * tree-ssa-threadupdate.c (struct redirection_data): Remove
5864 do_not_duplicate field.
5865 (lookup_redirection_data): Corresponding changes.
5866 (create_duplicates): Always create a template block.
5867 (redirect_edges): Remove code which reused the original block
5868 when it was going to become unreachable code.
5869 (thread_block): Don't set do_not_duplicate field.
5871 2011-03-29 Joseph Myers <joseph@codesourcery.com>
5873 * lto-opts.c (register_user_option_p, lto_register_user_option):
5874 Make type argument unsigned.
5875 * lto-streamer.h (lto_register_user_option): Make type argument
5877 * opth-gen.awk: Make CL_* macros unsigned.
5878 * opts-common.c (find_opt): Make lang_mask argument unsigned.
5879 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
5880 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
5881 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
5882 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
5883 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
5884 (find_opt): Make lang_mask argument unsigned.
5886 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5888 PR rtl-optimization/48331
5889 PR rtl-optimization/48334
5890 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
5891 for any used algorithm.
5893 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5895 * ira-conflicts.c (build_object_conflicts): Add unused attribute
5898 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
5900 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
5901 (alpha_option_override): Don't set alpha_sr_alias_set.
5902 (emit_frame_store_1): Use gen_frame_mem rather than calling
5904 (alpha_expand_epilogue): Ditto.
5906 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
5908 PR tree-optimization/48290
5909 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
5910 vectorization, check that relevant phis in the basic block after
5911 the inner loop are really inner loop's exit phis.
5913 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
5916 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
5917 (cached_dw_loc_list_def): New structure.
5918 (cached_dw_loc_list): New typedef.
5919 (cached_dw_loc_list_table): New variable.
5920 (cached_dw_loc_list_table_hash): New function.
5921 (cached_dw_loc_list_table_eq): Likewise.
5922 (add_location_or_const_value_attribute): Take a bool cache_p.
5923 Cache the list when the parameter is true.
5924 (gen_formal_parameter_die): Update caller.
5925 (gen_variable_die): Likewise.
5926 (dwarf2out_finish): Likewise.
5927 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
5928 while generating debug info for the decl.
5929 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
5930 (dwarf2out_init): Initialize cached_dw_loc_list_table.
5931 (resolve_addr): Cache the result of resolving a chain of
5934 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
5936 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
5937 conflict object hard regset nodes have intersecting hard reg sets.
5939 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
5940 after regstat_init_n_sets_and_refs.
5942 * ira.c: Add more comments at the top.
5943 (setup_stack_reg_pressure_class, setup_pressure_classes):
5944 Add comments how we compute the register pressure classes.
5945 (setup_allocno_and_important_classes): Add more comments.
5946 (setup_class_translate_array, reorder_important_classes)
5947 (setup_reg_class_relations): Add comments.
5949 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
5952 * ira-color.c: Add 2011 to the Copyright line.
5953 (assign_hard_reg): Add more comments.
5954 (improve_allocation): Ditto.
5956 * ira-costs.c: Add 2011 to the Copyright line.
5957 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
5959 (setup_regno_cost_classes_by_mode): Ditto.
5961 Initial patches from ira-improv branch:
5963 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5965 * ira-build.c (ira_create_object): Remove initialization of
5966 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
5967 (ira_create_allocno): Remove initialization of
5968 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
5969 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
5970 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5971 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
5972 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
5973 Initialize ALLOCNO_ADD_DATA.
5974 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
5975 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
5977 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
5978 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
5980 * ira.c (ira_reallocate): Remove.
5981 (setup_pressure_classes): Call
5982 ira_init_register_move_cost_if_necessary. Use
5983 ira_register_move_cost instead of ira_get_register_move_cost.
5984 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
5985 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
5987 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
5988 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5989 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
5990 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
5991 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
5992 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
5994 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
5995 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5996 (struct allocno_color_data): New.
5997 (allocno_color_data_t): New typedef.
5998 (allocno_color_data): New definition.
5999 (ALLOCNO_COLOR_DATA): New macro.
6000 (struct object_color_data): New.
6001 (object_color_data_t): New typedef.
6002 (object_color_data): New definition.
6003 (OBJECT_COLOR_DATA): New macro.
6004 (update_copy_costs, calculate_allocno_spill_cost): Call
6005 ira_init_register_move_cost_if_necessary. Use
6006 ira_register_move_cost instead of ira_get_register_move_cost.
6007 (move_spill_restore, update_curr_costs): Ditto.
6008 (allocno_spill_priority): Make it inline.
6009 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6010 (struct coalesce_data, coalesce_data_t): New.
6011 (allocno_coalesce_data): New definition.
6012 (ALLOCNO_COALESCE_DATA): New macro.
6013 (merge_allocnos, coalesced_allocno_conflict_p): Use
6014 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6015 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6016 (coalesce_allocnos): Ditto.
6017 (setup_coalesced_allocno_costs_and_nums): Ditto.
6018 (collect_spilled_coalesced_allocnos): Ditto.
6019 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6020 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6021 (coalesce_spill_slots): Ditto.
6022 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6023 free allocno_coalesce_data.
6025 * ira-conflicts.c: Fix formatting.
6026 (process_regs_for_copy): Call
6027 ira_init_register_move_cost_if_necessary. Use
6028 ira_register_move_cost instead of ira_get_register_move_cost.
6029 (build_object_conflicts): Optimize.
6031 * ira-costs.c (record_reg_classes): Optimize. Call
6032 ira_init_register_move_cost_if_necessary. Use
6033 ira_register_move_cost, ira_may_move_in_cost, and
6034 ira_may_move_out_cost instead of ira_get_register_move_cost and
6035 ira_get_may_move_cost.
6036 (record_address_regs): Ditto.
6037 (scan_one_insn): Optimize.
6038 (find_costs_and_classes): Optimize.
6039 (process_bb_node_for_hard_reg_moves): Call
6040 ira_init_register_move_cost_if_necessary. Use
6041 ira_register_move_cost instead of ira_get_register_move_cost.
6043 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6044 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6045 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6046 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6048 (ira_initiate_emit_data, ira_finish_emit_data)
6049 (create_new_allocno): New functions.
6050 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6051 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6052 Use ira_register_move_cost instead of ira_get_register_move_cost.
6054 * ira-int.h: Fix some comments.
6055 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6056 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6057 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6058 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6060 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6061 bitfield after mode. Make hard_regno a short int. Make
6062 hard_regno short. Remove first_coalesced_allocno and
6063 next_coalesced_allocno. Move mem_optimized_dest_p,
6064 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6065 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6066 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6067 temp, colorable_p. Add new member add_data.
6068 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6069 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6070 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6071 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6072 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6073 (ALLOCNO_ADD_DATA): New macro.
6074 (ira_emit_data_t): New typedef.
6075 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6076 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6077 from struct ira_allocno.
6078 (ALLOCNO_EMIT_DATA): New macro.
6079 (ira_allocno_emit_data, allocno_emit_reg): New.
6080 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6081 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6082 (OBJECT_ADD_DATA): New macro.
6083 (ira_reallocate): Remove.
6084 (ira_initiate_emit_data, ira_finish_emit_data): New.
6085 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6086 (ira_init_register_move_cost_if_necessary): New.
6087 (ira_object_conflict_iter_next): Merge into
6088 ira_object_conflict_iter_cond.
6089 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6091 * ira-live.c (process_single_reg_class_operands): Call
6092 ira_init_register_move_cost_if_necessary. Use
6093 ira_register_move_cost instead of ira_get_register_move_cost.
6095 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6097 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6099 * ira-costs.c: Fix formatting.
6100 (cost_classes, cost_classes_num): Remove.
6101 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6102 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6103 (cost_classes_del, cost_classes_htab): New.
6104 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6105 (initiate_regno_cost_classes, setup_cost_classes): New.
6106 (setup_regno_cost_classes_by_aclass): New.
6107 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6108 (record_reg_classes): Use regno_cost_classes instead of
6109 cost_classes. Move checking opposite operand up.
6110 (record_address_regs): Use regno_cost_classes
6111 instead of cost_classes.
6112 (scan_one_insn): Ditto. Use always general register.
6113 (print_allocno_costs): Use regno_cost_classes instead of
6115 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6116 (find_costs_and_classes): Set up cost classes for each registers.
6117 Use also their mode for this. Use regno_cost_classes instead of
6119 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6121 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6122 (ira_costs, ira_set_pseudo_classes): Call
6123 initiate_regno_cost_classes and finish_regno_cost_classes.
6125 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6127 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6129 * target.def (ira_cover_classes): Remove.
6131 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6133 * doc/tm.texi.in: Ditto.
6135 * ira-conflicts.c: Remove mentioning cover classes from the file.
6136 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6137 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6139 * targhooks.c (default_ira_cover_classes): Remove.
6141 * targhooks.h (default_ira_cover_classes): Ditto.
6143 * haifa-sched.c: Remove mentioning cover classes from the file.
6144 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6145 ira_pressure_classes and ira_pressure_classes_num instead of
6146 ira_reg_class_cover_size and ira_reg_class_cover. Use
6147 sched_regno_pressure_class instead of sched_regno_cover_class.
6148 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6149 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6151 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6152 classes from the file.
6153 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6154 (struct object_hard_regs, struct object_hard_regs_node): New.
6155 (struct ira_object): New members profitable_hard_regs,
6156 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6157 (struct ira_allocno): Rename cover_class to aclass. Rename
6158 cover_class_cost and updated_cover_class_cost to class_cost and
6159 updated_class_cost. Remove splay_removed_p and
6160 left_conflict_size. Add new members colorable_p.
6161 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6162 (ALLOCNO_COLORABLE_P): New macro.
6163 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6164 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6165 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6166 (OBJECT_...): Rename parameter C to O.
6167 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6168 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6169 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6170 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6171 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6172 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6173 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6174 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6175 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6176 x_ira_reg_class_subunion.
6177 (ira_max_memory_move_cost, ira_max_register_move_cost)
6178 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6179 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6180 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6181 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6182 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6183 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6184 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6185 (ira_tune_allocno_costs_and_cover_classes): Rename to
6186 ira_tune_allocno_costs.
6187 (ira_debug_hard_regs_forest): New.
6188 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6189 (ira_object_conflict_iter_next): Fix comments.
6190 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6191 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6192 cover_class to aclass.
6193 (ira_allocate_and_accumulate_costs): Ditto.
6194 (ira_allocate_and_set_or_copy_costs): Ditto.
6196 * opts.c (decode_options): Remove ira_cover_class check.
6198 * ira-color.c: Remove mentioning cover classes from the file. Use
6199 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6200 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6201 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6202 (splay-tree.h): Remove include.
6203 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6204 before copy_freq_compare_func.
6205 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6206 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6208 (hard_regs_roots, hard_regs_node_vec): Ditto.
6209 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6210 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6211 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6212 (create_new_object_hard_regs_node): Ditto.
6213 (add_new_object_hard_regs_node_to_forest): Ditto.
6214 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6215 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6217 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6218 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6219 (remove_unused_object_hard_regs_nodes): Ditto.
6220 (enumerate_object_hard_regs_nodes): Ditto.
6221 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6222 (object_hard_regs_subnode_t): Ditto.
6223 (struct object_hard_regs_subnode): Ditto.
6224 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6225 (setup_object_hard_regs_subnode_index): Ditto.
6226 (get_object_hard_regs_subnodes_num): Ditto.
6227 (form_object_hard_regs_nodes_forest): Ditto.
6228 (finish_object_hard_regs_nodes_tree): Ditto.
6229 (finish_object_hard_regs_nodes_forest): Ditto.
6230 (allocnos_have_intersected_live_ranges_p): Rename to
6231 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6232 (pseudos_have_intersected_live_ranges_p): Rename to
6233 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6234 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6235 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6236 (update_copy_costs): Remove assert. Skip cost update if the hard
6237 reg does not belong the class.
6238 (assign_hard_reg): Process only profitable hard regs.
6239 (uncolorable_allocnos_num): Make it scalar.
6240 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6241 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6242 and ira_reg_class_max_nregs.
6243 (bucket_allocno_compare_func): Check frequency first.
6244 (sort_bucket): Add compare function as a parameter.
6245 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6246 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6247 (push_allocno_to_stack): Rewrite for checking new allocno
6249 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6250 (push_only_colorable): Pass new parameter to sort_bucket.
6251 (push_allocno_to_spill): Remove.
6252 (allocno_spill_priority_compare): Make it inline and rewrite.
6253 (splay_tree_allocate, splay_tree_free): Remove.
6254 (allocno_spill_sort_compare): New function.
6255 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6256 build and use splay tree. Choose first allocno in uncolorable
6257 allocno bucket to spill. Remove setting spill cost.
6258 (all_conflicting_hard_regs): Remove.
6259 (setup_allocno_available_regs_num): Check only profitable hard
6260 regs. Print info about hard regs nodes.
6261 (setup_allocno_left_conflicts_size): Remove.
6262 (put_allocno_into_bucket): Don't call
6263 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6264 (improve_allocation): New.
6265 (color_allocnos): Call setup_profitable_hard_regs,
6266 form_object_hard_regs_nodes_forest, improve_allocation,
6267 finish_object_hard_regs_nodes_forest. Setup spill cost.
6268 (print_loop_title): Use pressure classes.
6269 (color_allocnso): Ditto.
6270 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6271 and allocnos_for_spilling.
6272 (ira_sort_regnos_for_alter_reg): Don't setup members
6273 {first,next}_coalesced_allocno.
6274 (color): Remove allocating and freeing removed_splay_allocno_vec.
6275 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6276 prohibited_class_mode_regs.
6278 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6280 (update_allocno_pressure_excess_length): Use pressure classes.
6281 (inc_register_pressure, dec_register_pressure): Check for pressure
6283 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6284 pressure class. Use ira_reg_class_nregs instead of
6285 ira_reg_class_max_nregs.
6286 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6287 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6288 (single_reg_class): Use ira_reg_class_nregs instead of
6289 ira_reg_class_max_nregs.
6290 (process_bb_node_lives): Use pressure classes.
6292 * ira-emit.c: Remove mentioning cover classes from the file. Use
6293 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6294 (change_loop): Use pressure classes.
6295 (modify_move_list): Call ira_set_allocno_class instead of
6296 ira_set_allocno_cover_class.
6298 * ira-build.c: Remove mentioning cover classes from the file. Use
6299 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6300 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6301 ALLOCNO_UPDATED_CLASS_COST instead of
6302 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6303 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6304 (ira_create_allocno): Remove initialization of
6305 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6306 ALLOCNO_COLORABLE_P.
6307 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6308 Update conflict regs for the objects.
6309 (create_cap_allocno): Remove assert. Don't propagate
6310 ALLOCNO_AVAILABLE_REGS_NUM.
6311 (ira_free_allocno_costs): New function.
6312 (finish_allocno): Change a part of code into call of
6313 ira_free_allocno_costs.
6314 (low_pressure_loop_node_p): Use pressure classes.
6315 (object_range_compare_func): Don't compare classes.
6316 (setup_min_max_conflict_allocno_ids): Ditto.
6318 * loop-invariant.c: Remove mentioning cover classes from the file.
6319 Use ira_pressure_classes and ira_pressure_classes_num instead of
6320 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6321 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6322 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6323 Use reg_allocno_class instead of reg_cover_class.
6324 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6325 STACK_REG_COVER_CLASS.
6326 (get_regno_cover_class): Rename to get_regno_pressure_class.
6327 (move_loop_invariants): Initialize and finalize regstat.
6329 * ira.c: Remove mentioning cover classes from the file. Add
6330 comments about coloring without cover classes. Use ALLOCNO_CLASS
6331 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6332 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6333 setup_class_subset_and_memory_move_costs.
6334 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6335 (setup_cover_and_important_classes): Rename to
6336 setup_allocno_and_important_classes.
6337 (setup_class_translate_array): New.
6338 (setup_class_translate): Call it for allocno and pressure classes.
6339 (cover_class_order): Rename to allocno_class_order.
6340 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6341 of ira_class_translate.
6342 (reorder_important_classes): Set up ira_important_class_nums.
6343 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6344 (print_class_cover): Rename to print_classes. Add parameter.
6345 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6346 Print pressure classes too.
6347 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6348 setup_reg_subclasses.
6349 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6350 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6351 (setup_prohibited_class_mode_regs): Use
6352 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6353 (clarify_prohibited_class_mode_regs): New function.
6354 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6355 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6356 (ira_init_once): Initialize them.
6357 (free_register_move_costs): Process them.
6358 (ira_init): Move calls of find_reg_classes and
6359 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6360 Call clarify_prohibited_class_mode_regs.
6361 (ira_no_alloc_reg): Remove.
6362 (too_high_register_pressure_p): Use pressure classes.
6364 * sched-deps.c: Remove mentioning cover classes from the file.
6365 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6366 ira_pressure_classes and ira_pressure_classes_num instead of
6367 ira_reg_class_cover_size and ira_reg_class_cover.
6368 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6369 sched_regno_pressure_class instead of sched_regno_cover_class.
6370 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6371 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6373 * ira.h: Add 2010 to Copyright.
6374 (ira_no_alloc_reg): Remove external.
6375 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6376 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6377 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6378 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6379 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6380 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6381 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6382 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6383 x_ira_no_alloc_regs.
6384 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6385 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6386 ira_allocno_classes_num and ira_allocno_classes.
6387 (ira_class_translate): Rename to ira_allocno_class_translate.
6388 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6389 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6390 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6391 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6392 (ira_no_alloc_regs): New.
6394 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6395 classes from the file. Use ALLOCNO_CLASS instead of
6396 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6397 ALLOCNO_COVER_CLASS_COST.
6398 (regno_cover_class): Rename to regno_aclass.
6399 (record_reg_classes): Use ira_reg_class_subunion instead of
6400 ira_reg_class_union.
6401 (record_address_regs): Check overflow.
6402 (scan_one_insn): Ditto.
6403 (print_allocno_costs): Print total mem cost fore regional allocation.
6404 (print_pseudo_costs): Use REG_N_REFS.
6405 (find_costs_and_classes): Use classes intersected with them on the
6406 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6407 ira_reg_class_union. Use ira_allocno_class_translate and
6408 regno_aclass instead of ira_class_translate and regno_cover_class.
6409 Modify code for finding regno_aclass. Setup preferred classes for
6411 (setup_allocno_cover_class_and_costs): Rename to
6412 setup_allocno_class_and_costs. Use regno_aclass instead of
6413 regno_cover_class. Use ira_set_allocno_class instead of
6414 ira_set_allocno_cover_class.
6415 (init_costs, finish_costs): Use regno_aclass instead of
6417 (ira_costs): Use setup_allocno_class_and_costs instead of
6418 setup_allocno_cover_class_and_costs.
6419 (ira_tune_allocno_costs_and_cover_classes): Rename to
6420 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6421 by processing objects. Use ira_reg_class_max_nregs instead of
6422 ira_reg_class_nregs.
6424 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6426 * sched-int.h: Remove mentioning cover classes from the file.
6427 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6429 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6430 classes from the file.
6431 (struct reg_pref): Rename coverclass into allocnoclass.
6432 (reg_cover_class): Rename to reg_allocno_class.
6434 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6436 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6438 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6440 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6442 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6444 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6446 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6448 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6450 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6452 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6454 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6455 (i386_ira_cover_classes): Ditto.
6457 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6459 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6461 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6463 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6465 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6467 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6469 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6470 (mips_ira_cover_classes): Ditto.
6472 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6474 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6476 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6478 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6480 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6482 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6483 (IRA_COVER_CLASSES_VSX): Ditto.
6485 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6486 (rs6000_ira_cover_classes): Ditto.
6488 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6490 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6492 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6494 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6496 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6498 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6500 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6502 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6504 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6506 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6508 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6511 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6512 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6513 dw_fde_unlikely_section_end_label, cold_in_std_section,
6514 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6515 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6517 (output_fde): Use dw_fde_second_{begin,end} if second is
6518 true, otherwise dw_fde_{begin,end}.
6519 (output_call_frame_info): Test dw_fde_second_begin != NULL
6520 instead of dw_fde_switched_sections.
6521 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6522 fields, initialize new fields. Initialize in_std_section
6523 unconditionally from the first partition.
6524 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6525 dw_fde_second_begin is non-NULL.
6526 (dwarf2out_switch_text_section): Stop initializing removed
6527 dw_fde_struct fields, initialize new fields, initialize
6528 also dw_fde_end here. Set dw_fde_switch_cfi even when
6529 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6530 (struct var_loc_list_def): Add last_before_switch field.
6531 (arange_table, arange_table_allocated, arange_table_in_use,
6532 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6533 (size_of_aranges): Count !in_std_section and !second_in_std_section
6534 hunks in fdes, instead of looking at arange_table_in_use.
6535 (output_aranges): Add aranges_length argument, don't call
6536 size_of_aranges here. Instead of using aranges_table*
6537 emit ranges for fdes when !in_std_section resp.
6538 !second_in_std_section.
6539 (dw_loc_list): Break ranges crossing section switch.
6540 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6541 use dw_fde_second_end instead of dw_fde_end as end of last range.
6542 (gen_subprogram_die): Don't call add_arange. Use
6543 dw_fde_{begin,end} for first partition and if switched
6544 section dw_fde_second_{begin,end} for the second.
6545 (var_location_switch_text_section_1,
6546 var_location_switch_text_section): New functions.
6547 (dwarf2out_begin_function): Initialize cold_text_section even
6548 when function_section () isn't text_section.
6549 (prune_unused_types): Don't walk arange_table.
6550 (dwarf2out_finish): Don't needlessly test
6551 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6552 If info_section_emitted, call size_of_aranges and if it indicates
6553 non-empty .debug_aranges, call output_aranges with the computed
6554 size. Stop using removed dw_fde_struct fields, use
6555 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6559 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6560 create ENTRY_VALUE if incoming or address of incoming's MEM
6562 * dwarf2out.c (mem_loc_descriptor): Don't emit
6563 DW_OP_GNU_entry_value of DW_OP_fbreg.
6564 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6565 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6566 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6567 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6569 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6570 is a REG_P or MEM_P with REG_P address, compute hash directly
6571 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6572 (preserve_only_constants): Don't clear VALUES forwaring
6573 ENTRY_VALUE to some other VALUE.
6575 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6577 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6580 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6582 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6583 block before expanding the statement.
6584 (expand_gimple_stmt_1): Likewise. Set them here...
6585 (expand_gimple_stmt): ...and not here. Tidy.
6586 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6589 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6591 * Makefile.in: New rule for cprop.o.
6592 * gcse.c: Move constant/copy propagation to cprop.c.
6593 (compute_local_properties): Only handle expression tables.
6594 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6595 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6596 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6597 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6598 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6599 compute_cprop_data, find_used_regs, try_replace_reg,
6600 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6601 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6602 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6603 find_bypass_set, reg_killed_on_edge, bypass_block,
6604 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6605 execute_rtl_cprop, pass_rtl_cprop): Move to...
6606 * cprop.c: ...here. New file, constant/copy propagation for RTL
6607 moved from gcse.c to here with minor cleanups in duplicated code.
6609 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6611 * config/i386/i386.c (flag_opts): Fix a typo in
6612 -mavx256-split-unaligned-store.
6614 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6616 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6617 LIBCALL_VALUE): Remove macros.
6618 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6619 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6620 (h8300_function_value, h8300_libcall_value,
6621 h8300_function_value_regno_p): New functions.
6623 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6625 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6627 2011-03-28 Jeff Law <law@redhat.com>
6629 * tree-ssa-threadupdate.c (redirect_edges): Call
6630 create_edge_and_update_destination_phis as needed.
6631 (create_edge_and_update_destination_phis): Accept new BB argument.
6632 All callers updated.
6633 (thread_block): Do not update the profile when threading around
6634 intermediate blocks.
6635 (thread_single_edge): Likewise.
6636 (determine_bb_domination_status): If BB is not a successor of the
6637 loop header, return NONDOMINATING.
6638 (register_jump_thread): Note when we register a jump thread around
6639 an intermediate block.
6640 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6641 (thread_across_edge): Use it.
6643 2011-03-28 Tristan Gingold <gingold@adacore.com>
6645 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6646 when for_return is 2.
6648 2011-03-28 Jeff Law <law@redhat.com>
6650 * var-tracking.c (canonicalize_values_mark): Delete unused
6652 (canonicalize_values_star, set_variable_part): Likewise.
6653 (clobber_variable_part, delete_variable_part): Likewise.
6655 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6657 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6659 2011-03-28 Martin Jambor <mjambor@suse.cz>
6661 * tree-inline.c (expand_call_inline): Do not check that destination
6663 (optimize_inline_calls): Assert that destination node is analyzed.
6664 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6665 not call tree_lowering_passes.
6666 * cgraph.h (cgraph_analyze_function): Declare.
6667 * cgraphunit.c (cgraph_analyze_function): Make public.
6669 2011-03-28 Joseph Myers <joseph@codesourcery.com>
6671 * config/sparc/sparc-opts.h: New.
6672 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6673 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6674 (sparc_option_override): Store processor_type enumeration rather
6675 than string in cpu_default. Remove name and enumeration from
6676 cpu_table. Directly default -mcpu then default -mtune from -mcpu
6677 without using sparc_select. Use target_flags_explicit instead of
6679 * config/sparc/sparc.h (enum processor_type): Move to
6681 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6682 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6683 HeaderInclude entry.
6684 (mcpu=, mtune=): Use Var and Enum.
6685 (sparc_processor_type): New Enum and EnumValue entries.
6687 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6688 Iain Sandoe <iains@gcc.gnu.org>
6691 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6693 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6695 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6696 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6697 Insert new statements at it in lieu of STMT.
6698 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6699 * tree-vect-stmts.c (vectorizable_store): Likewise.
6700 (vectorizable_load): Likewise.
6702 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
6704 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6709 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6711 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6712 unaligned 256bit load/store.
6713 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6714 (*avx_movdqu<avxmodesuffix>): Likewise.
6716 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6719 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6720 * config/pa/pa.md (iordi3): Use new predicate in expander.
6723 2011-03-27 Anatoly Sokolov <aesok@post.ru>
6725 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6726 FUNCTION_VALUE_REGNO_P): Remove macros.
6727 * config/mips/mips-protos.h (mips_function_value): Remove.
6728 * config/mips/mips.c (mips_function_value): Rename to...
6729 (mips_function_value_1): ... this. Make static. Handle receiving
6730 the function type in 'fn_decl_or_type' argument.
6731 (mips_function_value, mips_libcall_value,
6732 mips_function_value_regno_p): New function.
6733 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6734 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6736 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6738 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
6739 and -mavx256-split-unaligned-store.
6740 (ix86_option_override_internal): Split 32-byte AVX unaligned
6741 load/store by default.
6742 (ix86_avx256_split_vector_move_misalign): New.
6743 (ix86_expand_vector_move_misalign): Use it.
6745 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
6746 -mavx256-split-unaligned-store.
6748 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
6749 256bit load/store. Generate unaligned store on misaligned memory
6751 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
6753 (*avx_movdqu<avxmodesuffix>): Likewise.
6755 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
6756 -mavx256-split-unaligned-store.
6758 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6761 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
6764 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6766 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
6767 opno arguments with an expand_operand. Use create_input_operand.
6768 (mips_prepare_builtin_target): Delete.
6769 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
6771 (mips_expand_builtin_direct): Use create_output_operand and
6772 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
6773 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
6774 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
6776 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
6778 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
6780 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6782 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
6784 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
6785 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
6786 basic blocks and call commit_edge_insertions directly.
6787 (fixup_abnormal_edges): Move from here to...
6788 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
6789 on the edges and return whether some have actually been inserted.
6790 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
6793 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
6795 PR rtl-optimization/48144
6796 * sel-sched-ir.c (merge_history_vect): Factor out from ...
6797 (merge_expr_data): ... here.
6798 (av_set_intersect): Rename to av_set_code_motion_filter.
6799 Update all callers. Call merge_history_vect when an expression
6800 is found in both sets.
6801 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
6803 2011-03-26 Alan Modra <amodra@gmail.com>
6805 * config/rs6000/predicates.md (word_offset_memref_op): Handle
6806 cmodel medium addresses.
6807 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
6808 64-bit gpr loads and stores.
6809 (rs6000_secondary_reload_ppc64): New function.
6810 * config/rs6000/rs6000-protos.h: Declare it.
6811 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
6813 2011-03-26 Alan Modra <amodra@gmail.com>
6816 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
6817 GNU Go in traceback table.
6819 2011-03-25 Richard Henderson <rth@redhat.com>
6821 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
6822 if there are exactly 6 operands.
6823 (set_storage_via_setmem): Similarly.
6825 2011-03-25 Kai Tietz <ktietz@redhat.com>
6827 * collect2.c (write_c_file_stat): Handle backslash
6828 as right-hand directory separator.
6829 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
6830 checking just for slash.
6831 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
6832 instead of checking for trailing slash.
6833 * gcc.c (record_temp_file): Use filename_cmp instead
6835 (do_spec_1): Likewise.
6836 (replace_outfile_spec_function): Likewise.
6837 (is_directory): Use filename_ncmp instead of strncmp.
6838 (print_multilib_info): Likewise.
6839 * gcov.c (find_source): Use filename_cmp instead
6841 (make_gcov_file_name): Fix order of slash/backslash
6843 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
6844 (add_standard_paths): Likewise.
6845 * mips-tfile.c (saber_stop): Handle backslash.
6846 * prefix.c (update_path): Use filename_ncmp instead of
6848 * profile.c (output_location): Use filename_cmp instead
6850 * read-md.c (handle_toplevel_file): Handle backslash.
6851 * tlink.c (frob_extension): Likewise.
6852 * tree-cfg.c (same_line_p): Use filename_cmp instead of
6854 * tree-dump.c (dequeue_and_dump): Handle backslash.
6855 * tree.c (get_file_function_name): Likewise.
6856 * gengtype.c (read_input_list): Likewise.
6857 (get_file_realbasename): Likewise.
6858 (get_output_file_with_visibility): Use filename_cmp
6861 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
6863 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
6866 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6868 * fold-const.c (expr_location_or): New function.
6869 (fold_truth_not_expr): Call it.
6871 2011-03-25 Jeff Law <law@redhat.com>
6873 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
6875 * c-family/c-common.c (def_fn_type): Likewise.
6876 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
6877 * emit-rtl.c (gen_rtvec): Likewise.
6878 * lto/lto-lang.c (def_fn_type): Likewise.
6880 2011-03-25 Richard Guenther <rguenther@suse.de>
6882 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
6883 also generate copies.
6884 (fini_copy_prop): Handle constant values properly.
6886 2011-03-25 Jakub Jelinek <jakub@redhat.com>
6888 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
6889 mode size instead of bitsize with DWARF2_ADDR_SIZE.
6890 (hash_loc_operands, compare_loc_operands): Handle
6891 DW_OP_GNU_entry_value.
6893 2011-03-25 Kai Tietz <ktietz@redhat.com>
6895 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
6896 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
6897 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
6898 comment and use macro TARGET_64BIT_MS_ABI instead.
6899 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
6900 and change default behavior for 32-bit MS_ABI.
6901 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
6902 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
6904 (ix86_cfun_abi): Likewise.
6905 (ix86_maybe_switch_abi): Adjust comment.
6906 (init_cumulative_args): Check for bit-ness in MS_ABI case.
6907 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
6908 instead of checking for SYSV_ABI.
6909 (ix86_nsaved_sseregs): Likewise.
6910 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
6912 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
6913 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
6914 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
6915 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
6916 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
6918 2011-03-25 Richard Guenther <rguenther@suse.de>
6920 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
6921 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6922 (verify_gimple): Remove.
6923 * tree-cfg.c (verify_gimple_call): Merge verification
6925 (verify_gimple_phi): Merge verification from verify_stmts.
6926 (verify_gimple_label): New function.
6927 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
6928 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6929 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
6930 (verify_stmts): Rename to verify_gimple_in_cfg.
6931 (verify_gimple_in_cfg): New function.
6932 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
6933 * tree-ssa.c (verify_ssa): Likewise.
6934 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
6936 2011-03-25 Richard Guenther <rguenther@suse.de>
6938 * passes.c (init_optimization_passes): Add FRE pass after
6941 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
6942 Andrew Stubbs <ams@codesourcery.com>
6944 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
6946 (arm_movdi_vfp_cortexa8): New pattern.
6947 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
6948 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
6949 instructions when tuning for Cortex-A8. Set attribute "arch".
6950 * config/arm/arm.md: Move include arm-tune.md up a bit.
6951 (define_attr "arch"): Add "onlya8" and "nota8" values.
6952 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
6954 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6958 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6960 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6961 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6962 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6963 * passes.c (init_optimization_passes): Move
6964 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6966 2011-03-25 Kai Tietz <ktietz@redhat.com>
6968 * c-typeck.c (comptypes_internal): Replace target
6969 hook call of comp_type_attributes by version in tree.c file.
6970 * gimple.c (gimple_types_compatible_p_1): Likewise.
6971 * tree-ssa.c (useless_type_conversion_p): Likewise.
6972 * tree.c (build_type_attribute_qual_variant): Likewise.
6973 (attribute_value_equal): New static helper function.
6974 (comp_type_attributes): New function.
6975 (merge_attributes): Use attribute_value_equal for comparison.
6976 (attribute_list_contained): Likewise.
6977 * tree.h (comp_type_attributes): New prototype.
6979 2011-03-25 Richard Guenther <rguenther@suse.de>
6981 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
6982 of complex types at -O0.
6983 (verify_gimple_assign_binary): Likewise.
6984 (verify_gimple_assign_ternary): Likewise.
6986 2011-03-24 Mark Wielaard <mjw@redhat.com>
6988 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
6989 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6991 2011-03-24 Mark Wielaard <mjw@redhat.com>
6994 * dwarf2out.c (output_abbrev_section): Only write table when
6995 abbrev_die_table_in_use > 1.
6997 2011-02-24 Richard Henderson <rth@redhat.com>
6999 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7000 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7001 (alpha_expand_unaligned_load_words): Use extql.
7002 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7003 (emit_insxl): Handle all modes for consistency.
7005 2011-02-24 Richard Henderson <rth@redhat.com>
7007 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7008 (alpha_expand_unaligned_load): Likewise.
7009 (alpha_expand_unaligned_store): Likewise.
7010 (alpha_expand_unaligned_load_words): Likewise.
7011 (alpha_expand_unaligned_store_words): Likewise.
7012 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7013 (alpha_split_lock_test_and_set_12): Likewise.
7014 (print_operand, alpha_fold_builtin_extxx): Likewise.
7015 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7016 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7017 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7018 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7019 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7020 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7021 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7022 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7023 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7024 (extwl, extll, extql): Similarly.
7025 (inswh, inslh, insqh): Similarly.
7026 (mskbl, mskwl, mskll, mskql): Similarly.
7027 (mskwh, msklh, mskqh): Similarly.
7029 2011-02-24 Richard Henderson <rth@redhat.com>
7031 * config/alpha/alpha.md (attribute isa): Add er, ner.
7032 (attribute enabled): Handle them.
7033 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7035 2011-02-24 Richard Henderson <rth@redhat.com>
7037 * config/alpha/alpha.md (attribute isa): Add vms.
7038 (attribute enabled): Handle it.
7039 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7040 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7041 (*movtf): Rename from *movtf_internal for consistency.
7042 (*movsi): Merge with *movsi_nt_vms.
7043 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7044 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7045 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7046 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7048 2011-02-24 Richard Henderson <rth@redhat.com>
7050 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7051 (extendqisi2, extendhisi2): Likewise.
7052 (extendqidi2): Simplify BWX/non-BWX expansions.
7053 (extendhidi2): Similarly.
7055 2011-02-24 Richard Henderson <rth@redhat.com>
7057 * config/alpha/alpha.md (attribute isa): New.
7058 (attribute enabled): New.
7059 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7060 (zero_extendqisi2, zero_extendqidi2): Similarly.
7061 (zero_extendhisi2, zero_extendhidi2): Similarly.
7062 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7064 2011-02-24 Richard Henderson <rth@redhat.com>
7066 * config/alpha/predicates.md (input_operand): Revert last change;
7067 update comment to mention 32-bit VMS rather than Windows.
7069 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7071 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7072 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7073 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7074 * passes.c (init_optimization_passes): Move
7075 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7077 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7079 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7081 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7083 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7086 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7089 * simplify-rtx.c (simplify_const_unary_operation): Call
7090 real_convert when changing mode class with FLOAT_EXTEND.
7092 2011-03-24 Nick Clifton <nickc@redhat.com>
7094 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7095 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7096 * config/rx/rx.c (rx_option_override): Set align_jumps,
7097 align_loops and align_labels if not set by the user.
7098 (rx_align_for_label): New function.
7099 (rx_max_skip_for_label): New function.
7100 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7101 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7102 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7103 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7104 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7106 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7108 PR rtl-optimization/48263
7109 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7110 and original commutative_p handling. Use maybe_gen_insn.
7112 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7114 * reload.c (find_reloads_subreg_address): Add address_reloaded
7115 parameter and return true there if the full address has been
7117 (find_reloads_toplev): Pass address_reloaded flag.
7118 (find_reloads_address_1): Don't use address_reloaded parameter.
7120 2011-03-24 Jeff Law <law@redhat.com>
7122 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7123 unused variable "ann".
7124 (remove_unused_locals): Likewise.
7126 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7129 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7132 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7134 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7135 for invalid symbolic addresses.
7136 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7139 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7141 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7142 the argument in calls to fold_truth_not_expr.
7144 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7146 * tree.c (record_node_allocation_statistics): New function.
7147 (make_node_stat, copy_node_stat, build_string): Call it.
7148 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7149 (build1_stat, build_omp_clause): Likewise.
7151 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7153 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7156 2011-03-24 Richard Guenther <rguenther@suse.de>
7158 PR tree-optimization/48271
7159 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7160 blocks that still exist.
7162 2011-03-24 Richard Guenther <rguenther@suse.de>
7164 PR tree-optimization/48270
7165 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7166 not free datarefs before ddrs.
7168 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7170 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7171 from the address built for a reference with variable offset.
7173 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7176 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7177 alternatives that can be handled with movq or movabsq insn.
7178 (*movdf_internal): Disable for !TARGET_64BIT.
7179 (*movdf_internal_nointeger): Ditto.
7180 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7182 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7184 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7185 (FUNCTION_ARG_ADVANCE): Likewise.
7186 * tm.texi.in: Change references to them to hook references.
7187 * tm.texi: Regenerate.
7188 * targhooks.c (default_function_arg): Eliminate check for target macro.
7189 (default_function_incoming_arg): Likewise.
7190 (default_function_arg_advance): Likewise.
7191 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7192 (function_arg_advance): Likewise.
7193 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7195 2011-03-24 Richard Guenther <rguenther@suse.de>
7198 * tree-object-size.c (addr_object_size): Do not double-account
7199 for MEM_REF offsets.
7201 2011-03-24 Diego Novillo <dnovillo@google.com>
7203 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7204 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7205 (lto_input_data_block): Move from lto-opts.c. Make extern.
7207 (lto_input_string): Rename from input_string. Make extern.
7209 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7210 output_string_with_length.
7211 Output 0 to indicate a non-NULL string. Update all callers to
7213 (lto_output_string): Rename from output_string. Make extern.
7215 (lto_output_decl_state_streams): Make extern.
7216 (lto_output_decl_state_refs): Make extern.
7217 * lto-streamer.h (lto_input_string): Declare.
7218 (lto_input_data_block): Declare.
7219 (lto_output_string): Declare.
7220 (lto_output_string_with_length): Declare.
7221 (lto_output_decl_state_streams): Declare.
7222 (lto_output_decl_state_refs): Declare.
7224 2011-03-24 Richard Guenther <rguenther@suse.de>
7226 PR tree-optimization/46562
7227 * tree.c (build_invariant_address): New function.
7228 * tree.h (build_invariant_address): Declare.
7229 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7230 a renamed function moved ...
7231 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7232 Take valueization callback parameter.
7233 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7234 * gimple-fold.h: New file.
7235 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7236 (ccp_fold, fold_const_aggregate_ref,
7237 fold_ctor_reference, fold_nonarray_ctor_reference,
7238 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7239 get_base_constructor): Move ...
7240 * gimple-fold.c: ... here.
7241 (gimple_fold_stmt_to_constant_1): New function
7242 split out from ccp_fold. Take a valueization callback parameter.
7243 Valueize all operands.
7244 (gimple_fold_stmt_to_constant): New wrapper function.
7245 (fold_const_aggregate_ref_1): New function split out from
7246 fold_const_aggregate_ref. Take a valueization callback parameter.
7247 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7248 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7249 invariant POINTER_PLUS_EXPRs to invariant form.
7250 (vn_valueize): New function.
7251 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7252 * tree-vrp.c (vrp_valueize): New function.
7253 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7254 to fold statements to constants.
7255 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7256 function declarations.
7257 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7258 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7260 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7262 * config/h8300/predicates.md (jump_address_operand): Fix register
7265 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7267 * doc/invoke.texi (max-stores-to-sink): Document.
7268 * params.h (MAX_STORES_TO_SINK): Define.
7269 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7270 if either vectorization or if-conversion is disabled.
7271 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7272 tree-vect-data-refs.c vect_equal_offsets.
7273 (dr_equal_offsets_p): New function.
7274 (find_data_references_in_bb): Remove static.
7275 * tree-data-ref.h (find_data_references_in_bb): Declare.
7276 (dr_equal_offsets_p): Likewise.
7277 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7278 (vect_drs_dependent_in_basic_block): Update calls to
7280 (vect_check_interleaving): Likewise.
7281 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7282 (cond_if_else_store_replacement): Rename to...
7283 (cond_if_else_store_replacement_1): ... this. Change arguments and
7285 (cond_if_else_store_replacement): New function.
7286 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7287 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7289 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7292 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7293 to subtract lower bound instead of GEN_INT().
7295 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7300 * doc/extend.texi (Alignment): Move section to match order in TOC.
7301 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7302 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7304 2011-03-23 Jeff Law <law@redhat.com>
7306 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7307 before removing the edge.
7309 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7310 it may have been freed by redirect_branch_edge or
7311 redirect_edge_succ_nodup.
7313 2011-03-23 Richard Guenther <rguenther@suse.de>
7315 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7316 (check_va_list_escapes): Likewise.
7317 (check_all_va_list_escapes): Likewise.
7319 2011-03-23 Richard Guenther <rguenther@suse.de>
7321 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7322 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7323 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7324 (alias.o): Likewise.
7325 (ipa-type-escape.o): Remove.
7326 (ipa-struct-reorg.o): Likewise.
7327 (GTFILES): Remove ipa-struct-reorg.c.
7328 * alias.c: Do not include ipa-type-escape.h.
7329 * tree-ssa-alias.c: Likewise.
7330 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7331 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7332 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7333 and ipa-type-escape passes.
7334 * tree-pass.h (pass_ipa_type_escape): Remove.
7335 (pass_ipa_struct_reorg): Likewise.
7336 * ipa-struct-reorg.h: Remove.
7337 * ipa-struct-reorg.c: Likewise.
7338 * ipa-type-escape.h: Likewise.
7339 * ipa-type-escape.c: Likewise.
7340 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7341 (--param struct-reorg-cold-struct-ratio): Likewise.
7342 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7343 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7344 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7346 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7348 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7349 cpu attribute value.
7350 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7351 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7352 * config/s390/s390.c (processor_flags_table): New constant array.
7353 (s390_handle_arch_option): Remove.
7354 (s390_handle_option): Remove s390_handle_arch_option invocations
7355 and OPT_mwarn_framesize_ handling.
7356 (s390_option_override): Remove s390_handle_arch_option invocation.
7357 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7359 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7360 * config/s390/s390.opt (s390_tune, s390_arch)
7361 (march=): Replace s390_arch_option enum and values with
7362 processor_type. Set variable name to s390_arch. Set
7363 initialization value.
7364 (mtune=): Replace s390_arch_option with processor_type. Set
7365 variable name to s390_tune. Set initialization value.
7367 2011-03-23 Julian Brown <julian@codesourcery.com>
7369 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7370 accesses which are not naturally aligned.
7372 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7375 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7377 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7379 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7380 parameter from "int" to "enum insn_code".
7381 (expand_operand_type): New enum.
7382 (expand_operand): New structure.
7383 (create_expand_operand): New function.
7384 (create_fixed_operand, create_output_operand): Likewise
7385 (create_input_operand, create_convert_operand_to): Likewise.
7386 (create_convert_operand_from, create_address_operand): Likewise.
7387 (create_integer_operand): Likewise.
7388 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7389 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7390 (expand_insn, expand_jump_insn): Likewise.
7391 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7392 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7393 (expand_movstr, expand_builtin___clear_cache): Likewise.
7394 (expand_builtin_lock_release): Likewise.
7395 * explow.c (allocate_dynamic_stack_space): Likewise.
7396 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7397 and use the default handling in that case.
7398 * expmed.c (check_predicate_volatile_ok): Delete.
7399 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7400 (emit_cstore): Likewise.
7401 * expr.c (emit_block_move_via_movmem): Likewise.
7402 (set_storage_via_setmem, expand_assignment): Likewise.
7403 (emit_storent_insn, try_casesi): Likewise.
7404 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7405 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7406 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7407 (expand_twoval_unop, expand_twoval_binop): Likewise.
7408 (expand_unop_direct, emit_indirect_jump): Likewise.
7409 (emit_conditional_move, vector_compare_rtx): Likewise.
7410 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7411 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7412 (expand_sync_lock_test_and_set): Likewise.
7413 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7414 (emit_unop_insn): Likewise.
7415 (expand_copysign_absneg): Change icode to an insn_code.
7416 (create_convert_operand_from_type): New function.
7417 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7418 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7419 (expand_insn, expand_jump_insn): Likewise.
7420 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7421 than const_int_operand for operand 2.
7423 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7425 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7428 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7430 * emit-rtl.c (emit_pattern_before_noloc): New function.
7431 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7432 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7433 (emit_pattern_after_noloc): New function.
7434 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7435 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7437 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7439 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7440 (__ffsDI2): Likewise.
7442 2011-03-22 Richard Henderson <rth@redhat.com>
7444 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7445 of !TARGET_ABI_OPEN_VMS.
7446 (alpha_trampoline_init, alpha_start_function): Likewise.
7447 (alpha_expand_epilogue, alpha_file_start): Likewise.
7448 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7449 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7450 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7451 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7452 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7454 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7456 * config/s390/s390-opts.h: New.
7457 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7458 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7459 s390_stack_guard): Remove.
7460 (s390_handle_arch_option): Return void. Take enum
7461 s390_arch_option value instead of string and searching array.
7462 (s390_handle_option): Don't assert that global structures are in
7463 use. Access variables via opts pointer. Use error_at. Don't use
7464 sscanf for -mstack-guard= or -mstack-size=. Update call to
7465 s390_handle_arch_option.
7466 (s390_option_override): Update call to s390_handle_arch_option.
7467 (s390_emit_prologue): Use %d format for s390_stack_size in
7468 diagnostic. Use %wd for HOST_WIDE_INT.
7469 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7470 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7471 * config/s390/s390.opt (config/s390/s390-opts.h): New
7472 HeaderInclude entry.
7473 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7474 s390_arch_flags, s390_warn_framesize): New Variable entries.
7475 (s390_arch_option): New Enum and EnumValue entries.
7476 (march=): Use Enum instead of Var.
7477 (mstack-guard=, mstack-size=): Use UInteger and Var.
7480 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7482 * config/score/score.c (score_handle_option): Don't assert that
7483 global structures are in use. Access target_flags via opts
7484 pointer. Use value of -march= option to determine target_flags
7486 * config/score/score.opt (march=): Use Enum.
7487 (score_arch): New Enum and EnumValue entries.
7489 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7491 * config/mep/mep.c (option_mtiny_specified): Remove.
7492 (mep_option_override): Move register handling for -mivc2 from
7493 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7494 instead of option_mtiny_specified.
7495 (mep_handle_option): Access target_flags via opts pointer. Don't
7496 assert that global structures are in use. Defer part of -mivc2
7497 handling and move it to mep_option_override.
7498 * config/mep/mep.opt (IVC2): New Mask entry.
7499 (mivc2): Use Var and Defer instead of Mask.
7501 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7503 * config/v850/v850-opts.h: New.
7504 * config/v850/v850.c (small_memory): Replace with
7505 small_memory_physical_max array. Make that array static const.
7506 (v850_handle_memory_option): Take integer value of argument. Take
7507 gcc_options pointer, option text and location. Return void.
7508 Update for changes to small memory structures.
7509 (v850_handle_option): Access target_flags via opts pointer. Don't
7510 assert that global structures are in use. Update calls to
7511 v850_handle_memory_option.
7512 (v850_encode_data_area): Update references to small memory settings.
7513 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7514 (enum small_memory_type): Move to v850-opts.h.
7515 * config/v850/v850.opt (config/v850/v850-opts.h): New
7516 HeaderInclude entry.
7517 (small_memory_max): New Variable entry.
7518 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7519 (mtda, mzda): Likewise.
7521 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7523 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7524 pointer. Don't assert that global structures are in use.
7526 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7528 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7529 via opts pointer. Don't assert that global structures are in use.
7531 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7533 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7534 (munix=93): Use Var.
7535 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7536 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7537 * config/pa/pa-opts.h: New.
7538 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7539 (pa_handle_option): Don't assert that global structures are in
7540 use. Access target_flags via opts pointer. Don't handle
7541 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7543 (pa_option_override): Handle deferred OPT_mfixed_range_.
7545 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7547 * config/mn10300/mn10300-opts.h: New.
7548 * config/mn10300/mn10300.c (mn10300_processor,
7549 mn10300_tune_string): Remove.
7550 (mn10300_handle_option): Don't assert that global structures are
7551 in use. Access mn10300_processor via opts pointer. Don't handle
7553 * config/mn10300/mn10300.h (enum processor_type): Move to
7555 (mn10300_processor): Remove.
7556 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7557 HeaderInclude entry.
7558 (mn10300_processor): New Variable entry.
7561 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7563 * config/microblaze/microblaze.c: Don't include opts.h.
7564 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7565 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7566 (mno-clearbss): Use Var and Warn.
7568 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7570 * config/m32r/m32r-opts.h: New.
7571 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7572 (m32r_handle_option): Don't assert that global structures are in
7573 use. Access target_flags and m32r_cache_flush_func via opts
7574 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7575 OPT_mno_flush_trap here.
7576 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7577 include of m32r-opts.h.
7578 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7579 HeaderInclude entry.
7580 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7581 (mmodel=): Use Enum and Var.
7582 (m32r_model): New Enum and EnumValue entries.
7583 (mno-flush-trap): Use Var.
7584 (msdata=): Use Enum and Var.
7585 (m32r_sdata): New Enum and EnumValue entries.
7587 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7589 * config/m32c/m32c.c: Don't include opts.h.
7590 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7591 m32c_handle_option): Remove.
7592 (m32c_option_override): Check global_options_set.x_target_memregs
7593 instead of target_memregs_set.
7594 * config/m32c/m32c.h (target_memregs): Remove.
7595 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7598 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7600 * config/iq2000/iq2000-opts.h: New.
7601 * config/iq2000/iq2000.c: Don't include opts.h.
7602 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7603 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7604 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7605 HeaderInclude entry.
7606 (iq2000_tune): New Variable entry.
7607 (march=): Add comment. Use Enum.
7608 (iq2000_arch): New Enum and EnumValue entries.
7609 (mcpu=): Use Enum and Var.
7610 (iq2000_tune): New Enum and EnumValue entries.
7612 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7614 * config/ia64/ia64-opts.h: New.
7615 * config/ia64/ia64.c (ia64_tune): Remove.
7616 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7618 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7619 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7620 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7621 HeaderInclude entry.
7622 (ia64_tune): New Variable entry.
7623 (mfixed-range=): Use Defer and Var.
7624 (mtune=): Use Enum and Var.
7625 (ia64_tune): New Enum and EnumValue entries.
7627 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7629 * config/frv/frv-opts.h: New.
7630 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7632 (frv_cpu_type): Remove.
7633 * config/frv/frv.c: Don't include opts.h.
7634 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7635 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7636 (frv_cpu_type): New Variable entry.
7637 (frv_cpu): New Enum and EnumValue entries.
7639 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7641 * config/cris/cris.c (cris_handle_option): Access target_flags via
7642 opts pointer. Don't assert that global structures are in use.
7643 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7644 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7646 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7648 * config/bfin/bfin-opts.h: New.
7649 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7650 bfin_si_revision, bfin_workarounds): Remove.
7651 (bfin_cpus): Make static const.
7652 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7653 not bfin_lib_id_given.
7654 (bfin_handle_option): Don't set bfin_lib_id_given. Access
7655 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7656 pointer. Use error_at. Don't assert that global structures are in use.
7657 * config/bfin/bfin.h: Include bfin-opts.h.
7658 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7659 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7660 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7661 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7664 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7666 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7667 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7668 or -msoft-float here.
7669 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7670 -msoft-float and -mhard-float.
7671 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7672 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7674 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7676 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7677 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7679 (LIBGCC_SPEC): Don't handle -msoft-float.
7680 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7682 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7684 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7685 -mfloat-abi=*, not -msoft-float and -mhard-float.
7686 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7688 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7689 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7690 mhard-float and msoft-float.
7691 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7692 mfloat-abi=soft in comments, not mhard-float and msoft-float.
7693 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7694 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7696 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7697 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7699 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7701 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7704 2011-03-22 Richard Henderson <rth@redhat.com>
7706 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7707 TARGET_ABI_WINDOWS_NT.
7708 (alpha_output_function_end_prologue): Likewise.
7709 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7710 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7711 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7712 (trap, *movsi_nt_vms): Likewise.
7713 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7714 (*tablejump_osf_nt_internal): Remove.
7715 * config/alpha/predicates.md (input_operand): Only test Pmode.
7717 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7719 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7720 via opts pointer. Use error_at. Don't assert that global
7721 structures are in use.
7723 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7725 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7726 (ix86_handle_option): Access ix86_isa_flags and
7727 ix86_isa_flags_explicit via opts pointer. Don't assert that
7728 global structures are in use.
7729 (ix86_function_specific_save, ix86_function_specific_restore):
7730 Update ix86_isa_flags_explicit field name.
7731 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
7732 (ix86_isa_flags_explicit): Rename TargetSave entry to
7733 x_ix86_isa_flags_explicit.
7735 2011-03-22 Richard Henderson <rth@redhat.com>
7737 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
7738 (alpha_option_override, direct_return): Likewise.
7739 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
7740 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
7741 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
7742 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7743 (alpha_expand_epilogue, alpha_end_function): Likewise.
7744 (alpha_init_libfuncs): Likewise.
7745 (struct machine_function): Remove unicosmk members.
7746 (print_operand) ['t']: Remove.
7747 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
7748 unicosmk_output_module_name, unicosmk_output_common,
7749 current_section_align, unicosmk_output_text_section_asm_op,
7750 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
7751 unicosmk_section_type_flags, unicosmk_unique_section,
7752 unicosmk_asm_named_section, unicosmk_insert_attributes,
7753 unicosmk_output_align, unicosmk_defer_case_vector,
7754 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
7755 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
7756 unicosmk_output_ssib, unicosmk_add_call_info_word,
7757 unicosmk_extern_head, unicosmk_output_default_externs,
7758 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
7759 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
7760 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
7761 * config/alpha/alpha-protos.h: Update.
7762 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
7763 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
7764 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
7765 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
7766 (*mulsi_se, mulvsi3): Likewise.
7767 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
7768 (*divmodsi_internal, call, call_value, realign): Likewise.
7769 (moddi3, umoddi3): Likewise; remove duplicate expander.
7770 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
7771 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
7772 (*movdi_nofix): Remove r/U alternative.
7773 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
7774 * config/alpha/constraints.md ("U"): Remove.
7775 * config/alpha/predicates.md (call_operand"): Don't test
7776 TARGET_ABI_UNICOSMK.
7778 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7780 * target.def (handle_option): Take gcc_options and
7781 cl_decoded_option pointers and location_t.
7782 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
7783 * doc/tm.texi: Regenerate.
7784 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
7785 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
7786 * lto-opts.c (lto_reissue_options): Generate option structure for
7787 targetm.handle_option call.
7788 * opts.c (target_handle_option): Update call to
7789 targetm.handle_option. Remove assertions about values now passed
7791 * targhooks.c (default_target_handle_option): New.
7792 * targhooks.h (default_target_handle_option): Declare.
7793 * config/alpha/alpha.c: Include opts.h.
7794 (alpha_handle_option): Update to new hook interface.
7795 * config/arm/arm.c: Include opts.h.
7796 (arm_handle_option): Update to new hook interface.
7797 * config/arm/t-arm (arm.o): Update dependencies.
7798 * config/bfin/bfin.c: Include opts.h.
7799 (bfin_handle_option): Update to new hook interface.
7800 * config/cris/cris.c: Include opts.h.
7801 (cris_handle_option): Update to new hook interface.
7802 * config/frv/frv.c: Include opts.h.
7803 (frv_handle_option): Update to new hook interface.
7804 * config/i386/i386.c: Include opts.h.
7805 (ix86_handle_option): Update to new hook interface.
7806 (ix86_valid_target_attribute_inner_p): Generate option structure
7807 for call to ix86_handle_option.
7808 * config/i386/t-i386 (i386.o): Update dependencies.
7809 * config/ia64/ia64.c: Include opts.h.
7810 (ia64_handle_option): Update to new hook interface.
7811 * config/ia64/t-ia64 (ia64.o): Update dependencies.
7812 * config/iq2000/iq2000.c: Include opts.h.
7813 (iq2000_handle_option): Update to new hook interface.
7814 * config/m32c/m32c.c: Include opts.h.
7815 (m32c_handle_option): Update to new hook interface.
7816 * config/m32r/m32r.c: Include opts.h.
7817 (m32r_handle_option): Update to new hook interface.
7818 * config/m68k/m68k.c: Include opts.h.
7819 (m68k_handle_option): Update to new hook interface.
7820 * config/mep/mep.c: Include opts.h.
7821 (mep_handle_option): Update to new hook interface.
7822 * config/microblaze/microblaze.c: Include opts.h.
7823 (microblaze_handle_option): Update to new hook interface.
7824 * config/mips/mips.c: Include opts.h.
7825 (mips_handle_option): Update to new hook interface.
7826 * config/mn10300/mn10300.c: Include opts.h.
7827 (mn10300_handle_option): Update to new hook interface.
7828 * config/pa/pa.c: Include opts.h.
7829 (pa_handle_option): Update to new hook interface.
7830 * config/pdp11/pdp11.c: Include opts.h.
7831 (pdp11_handle_option): Update to new hook interface.
7832 * config/rs6000/rs6000.c: Include opts.h.
7833 (rs6000_handle_option): Update to new hook interface.
7834 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
7835 * config/rx/rx.c: Include opts.h.
7836 (rx_handle_option): Update to new hook interface.
7837 * config/s390/s390.c: Include opts.h.
7838 (s390_handle_option): Update to new hook interface.
7839 * config/score/score.c: Include opts.h.
7840 (score_handle_option): Update to new hook interface.
7841 * config/sh/sh.c: Include opts.h.
7842 (sh_handle_option): Update to new hook interface.
7843 * config/sparc/sparc.c: Include opts.h.
7844 (sparc_handle_option): Update to new hook interface.
7845 * config/v850/v850.c: Include opts.h.
7846 (v850_handle_option): Update to new hook interface.
7848 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7850 * gcc.c (driver_unknown_option_callback): Only permit and save
7851 unknown -Wno- options.
7852 (driver_wrong_lang_callback): Save options directly instead of via
7853 driver_unknown_option_callback.
7855 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7857 * combine.c (simplify_set): Try harder to find the best CC mode when
7858 simplifying a nested COMPARE on the RHS.
7860 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7862 * config/alpha/gnu.h: Remove.
7863 * config/arc: Remove directory.
7864 * config/arm/netbsd.h: Remove.
7865 * config/arm/t-pe: Remove.
7866 * config/crx: Remove directory.
7867 * config/i386/netbsd.h: Remove.
7868 * config/m68hc11: Remove directory.
7869 * config/m68k/uclinux-oldabi.h: Remove.
7870 * config/mcore/mcore-pe.h: Remove.
7871 * config/mcore/t-mcore-pe: Remove.
7872 * config/netbsd-aout.h: Remove.
7873 * config/rs6000/gnu.h: Remove.
7874 * config/sh/sh-symbian.h: Remove.
7875 * config/sh/symbian-base.c: Remove.
7876 * config/sh/symbian-c.c: Remove.
7877 * config/sh/symbian-cxx.c: Remove.
7878 * config/sh/symbian-post.h: Remove.
7879 * config/sh/symbian-pre.h: Remove.
7880 * config/sh/t-symbian: Remove.
7881 * config/svr3.h: Remove.
7882 * config/vax/netbsd.h: Remove.
7883 * config.build: Don't handle i[34567]86-*-pe.
7884 * config.gcc: Remove handling of deprecations for most deprecated
7886 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
7887 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
7888 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
7889 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
7890 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
7891 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
7893 * config.host: Don't handle i[34567]86-*-pe.
7894 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
7895 (ASM_SPEC32): Don't handle -mcall-gnu.
7896 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
7898 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
7899 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
7900 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7901 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
7902 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
7903 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
7904 conditional on SYMBIAN.
7905 * configure.ac: Don't handle powerpc*-*-gnu*.
7906 * configure: Regenerate.
7907 * doc/extend.texi (interrupt attribute): Don't mention CRX.
7908 * doc/install-old.texi (m6811, m6812): Don't mention.
7909 * doc/install.texi (arc-*-elf*): Don't document multilib option.
7910 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
7911 (m68k-uclinuxoldabi): Don't mention.
7912 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
7914 (-mcall-gnu): Remove.
7915 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
7916 families): Remove constraint documentation.
7918 2011-03-22 Marius Strobl <marius@FreeBSD.org>
7920 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
7921 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
7922 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7924 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7927 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
7928 vector when peeking at the next token for vector, don't expand the
7931 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
7933 * config/avr/avr-protos.h (expand_epilogue): Change prototype
7934 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
7935 * config/avr/avr.c (init_cumulative_args)
7936 (avr_function_arg_advance): Use it.
7937 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
7939 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
7940 (avr_function_ok_for_sibcall): ...this new function.
7941 (avr_lookup_function_attribute1): New static Function.
7942 (avr_naked_function_p, interrupt_function_p)
7943 (signal_function_p, avr_OS_task_function_p)
7944 (avr_OS_main_function_p): Use it.
7945 * config/avr/avr.md ("sibcall", "sibcall_value")
7946 ("sibcall_epilogue"): New expander.
7947 ("*call_insn", "*call_value_insn"): New insn.
7948 ("call_insn", "call_value_insn"): Remove
7949 ("call", "call_value", "epilogue"): Change expander to handle
7952 2011-03-21 Nick Clifton <nickc@redhat.com>
7954 * doc/invoke.texi (Overall Options): Move closing brace to end of
7956 (Optimization Options): Add missing @gol.
7957 (Directory Options): Likewise.
7958 (i386 and x86-64 Options): Likewise.
7959 (RS6000 and PowerPC Options): Likewise.
7960 (i386 and x86-64 Windows Options): Likewise.
7961 (V850 Options): Add text missing from descriptions.
7963 2011-03-22 Richard Henderson <rth@redhat.com>
7965 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
7966 (avr_incoming_return_addr_rtx): New.
7967 (emit_push_byte): New.
7968 (expand_prologue): Use it. Remove incorrect dwarf annotation for
7969 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
7970 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
7971 (emit_pop_byte): New.
7972 (expand_epilogue): Use it. Pop frame pointer by bytes.
7973 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
7974 (INCOMING_RETURN_ADDR_RTX): New.
7975 (INCOMING_FRAME_SP_OFFSET): New.
7976 (ARG_POINTER_CFA_OFFSET): New.
7977 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
7978 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
7981 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
7983 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7985 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7986 (FUNCTION_ARG_ADVANCE): Likewise.
7987 * tm.texi.in: Change references to them to hook references.
7988 * tm.texi: Regenerate.
7989 * targhooks.c (default_function_arg): Eliminate check for target
7991 (default_function_incoming_arg): Likewise.
7992 (default_function_arg_advance): Likewise.
7993 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7994 (function_arg_advance): Likewise.
7995 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7997 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7999 * tree.c (build_call_1): New function.
8000 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8002 2011-03-22 Richard Guenther <rguenther@suse.de>
8004 PR tree-optimization/48228
8005 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8006 for single-arg PHIs.
8008 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8010 PR rtl-optimization/48143
8011 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8012 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8013 sse2_cvtps2pd): Likewise.
8015 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8017 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8019 2011-03-22 Richard Guenther <rguenther@suse.de>
8021 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8022 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8023 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8024 and REALIGN_LOAD_EXPR.
8025 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8026 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8027 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8028 DOT_PROD_EXPR case ...
8029 (expand_expr_real_2): ... here.
8030 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8031 and REALIGN_LOAD_EXPR.
8032 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8033 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8034 (vect_create_epilog_for_reduction): Likewise.
8035 (vectorizable_reduction): Likewise.
8036 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8037 * tree-vect-stmts.c (vectorizable_load): Likewise.
8039 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8041 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8043 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8045 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8046 handling for PLTOFF/GOTOFF.
8048 2011-03-22 Nick Clifton <nickc@redhat.com>
8050 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8051 trailing backslash from the end of the macro definition.
8053 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8055 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8058 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8060 * expr.h (prepare_operand): Move to...
8061 * optabs.h (prepare_operand): ...here and change the insn code
8062 parameter from "int" to "enum insn_code".
8063 (insn_operand_matches): Declare.
8064 * expr.c (init_expr_target): Use insn_operand_matches.
8065 (compress_float_constant): Likewise.
8066 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8067 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8068 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8069 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8071 (gen_cond_trap): Likewise.
8072 (prepare_operand): Likewise. Change icode to an insn_code.
8073 (insn_operand_matches): New function.
8074 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8075 * reload1.c (gen_reload): Likewise.
8076 * targhooks.c (default_secondary_reload): Likewise.
8078 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8080 * config/alpha/alpha.md (unspec): New define_c_enum.
8083 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8086 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8087 between a call and its CALL_ARG_LOCATION note.
8089 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8091 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8093 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8097 * c-common.c (shorten_compare): If primopN is first sign-extended
8098 to opN and then zero-extended to result type, set primopN to opN.
8100 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8102 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8103 for barrier handlers.
8105 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8107 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8108 UNSPEC constants to be in the unspec enumeration, and redefine
8109 all UNSPECV constants to be in the unspecv enumeration, so that
8110 dumps print which unspec/unspec_volatile this is.
8111 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8112 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8113 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8114 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8115 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8117 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8118 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8119 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8120 * config/rs6000/sync.md (isync, lwsync): Ditto.
8122 2011-03-21 Richard Guenther <rguenther@suse.de>
8124 * params.def (lto-min-partition): Fix typo.
8126 2011-03-21 Richard Guenther <rguenther@suse.de>
8129 * c-decl.c (grokdeclarator): Drop to the main variant only
8130 for array types. Drop flag_gen_aux_info check.
8132 2011-03-21 Richard Guenther <rguenther@suse.de>
8134 PR translation/47911
8135 * params.def (lto-partitions): Fix typo.
8136 (lto-min-partition): Fix wording.
8138 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8140 * config/rs6000/t-freebsd: Remove duplication from file.
8142 2011-03-21 Richard Guenther <rguenther@suse.de>
8145 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8147 2011-03-21 Richard Guenther <rguenther@suse.de>
8150 * params.def (lto-partitions): Require at least 1 partition.
8152 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8154 * gthr-solaris.h: Remove.
8155 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8156 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8157 (LIB_SPEC): Likewise.
8158 * config/sol2.opt (threads): Remove.
8159 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8160 (sparc*-*-solaris2*): Likewise.
8161 * configure.ac (enable_threads): Enable solaris support.
8162 * configure: Regenerate.
8163 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8164 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8167 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8169 * config.gcc: Obsolete *-*-solaris2.8*.
8170 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8172 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8175 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8176 reference. Solaris 8 perl works.
8178 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8181 * doc/install.texi (Prerequisites): Move jar etc. up.
8182 Explain support library version requirements.
8184 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8187 * doc/install.texi (Prerequisites): Move Perl to build
8188 requirements. Always necessary on Solaris 2 with Sun ld.
8190 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8192 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8194 (Specific, i?86-*-solaris2.[89]): Likewise.
8195 (Specific, i?86-*-solaris2.10): Likewise.
8196 (Specific, mips-sgi-irix6): Likewise.
8197 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8198 Update for binutils 2.21.
8200 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8202 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8203 Allow -fuse-linker-plugin for non-default plugin linker.
8204 * configure: Regenerate.
8206 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8209 * gengtype.c (files_rules): Added rule for cp/parser.h.
8211 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8214 * config/s390/s390.c (s390_delegitimize_address): Don't call
8215 lowpart_subreg if orig_x has BLKmode.
8217 2011-03-21 Kai Tietz <ktietz@redhat.com>
8220 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8221 * tree.h (attribute_spec): Add new member affects_type_identity.
8222 * attribs.c (empty_attribute_table): Adjust attribute_spec
8224 * config/alpha/alpha.c: Likewise.
8225 * config/arc/arc.c: Likewise.
8226 * config/arm/arm.c: Likewise.
8227 * config/avr/avr.c: Likewise.
8228 * config/bfin/bfin.c: Likewise.
8229 * config/crx/crx.c: Likewise.
8230 * config/darwin.h: Likewise.
8231 * config/h8300/h8300.c: Likewise.
8232 * config/i386/cygming.h: Likewise.
8233 * config/i386/i386.c: Likewise.
8234 * config/ia64/ia64.c: Likewise.
8235 * config/m32c/m32c.c: Likewise.
8236 * config/m32r/m32r.c: Likewise.
8237 * config/m68hc11/m68hc11.c: Likewise.
8238 * config/m68k/m68k.c: Likewise.
8239 * config/mcore/mcore.c: Likewise.
8240 * config/mep/mep.c: Likewise.
8241 * config/microblaze/microblaze.c: Likewise.
8242 * config/mips/mips.c: Likewise.
8243 * config/rs6000/rs6000.c: Likewise.
8244 * config/rx/rx.c: Likewise.
8245 * config/sh/sh.c: Likewise.
8246 * config/sol2.h: Likewise.
8247 * config/sparc/sparc.c: Likewise.
8248 * config/spu/spu.c: Likewise.
8249 * config/stormy16/stormy16.c: Likewise.
8250 * config/v850/v850.c: Likewise.
8252 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8254 * simplify-rtx.c (simplify_binary_operation_1): Handle
8255 (xor (and A B) C) case when B and C are both constants.
8257 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8259 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8261 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8264 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8266 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8268 PR rtl-optimization/48156
8269 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8270 assume df and df_lr are not NULL.
8272 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8275 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8276 between a call and its CALL_ARG_LOCATION note.
8278 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8281 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8282 between a call and its corresponding CALL_ARG_LOCATION note.
8284 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8286 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8287 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8288 * haifa-sched.c (setup_ref_regs): Ditto.
8289 * caller-save.c (add_used_regs_1): Ditto.
8290 * dse.c (look_for_hardregs): Ditto.
8291 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8292 * sched-rgn.c (check_live_1): Ditto.
8294 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8296 * c-decl.c (diagnose_mismatched_decls): Give an error for
8297 redefining a typedef with variably modified type.
8299 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8301 * c-decl.c (grokfield): Don't allow typedefs for structures or
8302 unions with no tag by default.
8303 * doc/extend.texi (Unnamed Fields): Update.
8305 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8307 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8308 Rewrite using indirect functions.
8309 (lwp_slwpcb): Ditto.
8310 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8311 (avx_vinsertf128<mode>): Ditto.
8313 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8315 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8318 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8320 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8321 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8323 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8325 PR rtl-optimization/48170
8326 * gcse.c (hoist_code): Remove bogus asserts.
8328 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8330 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8331 computation for prologue/epilogue.
8333 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8335 * Makefile.in (check-consistency): Remove.
8337 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8340 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8341 arange_table_in_use is 0, but either text_section_used or
8342 cold_text_section_used is true. Don't call it if
8343 !info_section_emitted.
8345 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8347 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8348 FUNCTION_VALUE_REGNO_P): Remove.
8349 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8351 * config/avr/avr.c (avr_ret_register): Make static inline.
8352 (avr_function_value_regno_p): New function.
8353 (avr_libcall_value): Make static. Add 'func' argument.
8354 (avr_function_value): Make static. Rename 'func' argument to
8355 'fn_decl_or_type', forward it to avr_libcall_value. Call
8356 avr_ret_register function instead of RET_REGISTER macro.
8357 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8359 2011-03-18 Jason Merrill <jason@redhat.com>
8362 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8364 2011-03-18 Richard Guenther <rguenther@suse.de>
8366 * doc/install.texi (--enable-gold): Remove.
8367 (--with-plugin-ld): Document.
8368 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8370 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8373 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8374 again after expansion changes.
8376 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8378 * combine.c (try_combine): Do simplification only call of
8379 subst() on i2 even when i1 is present. Update comments.
8381 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8383 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8384 and UNSPEC_PCREL_SYMOFF.
8386 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8388 * config/s390/s390.md: Use define_c_enum for the unspec constant
8391 2011-03-18 Richard Henderson <rth@redhat.com>
8392 Jakub Jelinek <jakub@redhat.com>
8395 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8396 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8398 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8401 * combine.c (cant_combine_insn_p): Don't check zero/sign
8402 extended hard registers.
8404 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8407 * combine.c (cant_combine_insn_p): Check zero/sign extended
8410 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8412 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8413 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8414 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8415 Change return type to bool.
8416 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8418 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8421 * var-tracking.c (prepare_call_arguments): If CALL target
8422 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8423 pc instead of looking it up using cselib_lookup and use
8424 Pmode for it if x has VOIDmode.
8425 * dwarf2out.c (gen_subprogram_die): If also both first and
8426 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8429 * function.c (assign_parms): For data.passed_pointer parms
8430 use MEM of data.entry_parm instead of data.entry_parm itself
8431 as DECL_INCOMING_RTL.
8432 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8433 also when passed and declared mode is the same, DECL_RTL
8434 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8437 2011-03-16 Jeff Law <law@redhat.com>
8439 PR rtl-optimization/37273
8440 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8441 handle them like argument loads from stack slots. Do not double
8442 count memory for memory constants and argument loads from stack slots.
8444 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8447 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8449 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8452 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8454 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8457 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8459 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8460 Clear call_arg_locations and call_arg_loc_last always.
8463 * var-tracking.c (prepare_call_arguments): If argument needs to be
8464 passed by reference, adjust argtype and mode.
8466 2011-03-17 Richard Guenther <rguenther@suse.de>
8469 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8470 a value make sure to fold the statement.
8472 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8475 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8476 return condition with !cfun->calls_alloca.
8478 2011-03-17 Richard Guenther <rguenther@suse.de>
8481 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8482 origin for decls in other ltrans units.
8483 (input_varpool_node): Likewise.
8485 2011-03-17 Richard Guenther <rguenther@suse.de>
8488 * tree-object-size.c (compute_object_offset): Properly return
8489 the offset operand of MEM_REFs as sizetype.
8491 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8493 PR rtl-optimization/48141
8494 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8495 * dse.c: Include params.h.
8496 (active_local_stores_len): New variable.
8497 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8499 (record_store, check_mem_read_rtx): Decrease it when removing
8501 (scan_insn): Likewise. Increase it when adding to chain, if it
8502 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8503 set active_local_stores to NULL before the addition.
8504 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8506 PR rtl-optimization/48141
8507 * dse.c (record_store): If no positions are needed in an insn
8508 that cannot be deleted, at least unchain it from active_local_stores.
8510 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8513 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8514 (lookup_type_die_strip_naming_typedef): ... here.
8515 (get_context_die): Use it.
8516 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8517 the anonymous struct named by the naming typedef.
8519 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8522 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8523 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8525 2011-03-16 Jeff Law <law@redhat.com>
8527 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8528 check for operands of conditional. Allow type to be a pointer.
8530 2011-03-16 Richard Guenther <rguenther@suse.de>
8532 PR tree-optimization/48149
8533 * fold-const.c (fold_binary_loc): Fold
8534 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8536 2011-03-16 Richard Guenther <rguenther@suse.de>
8538 PR tree-optimization/26134
8539 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8540 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8541 (non_rewritable_mem_ref_base): Handle complex type component
8542 accesses, constrain offsets for vector and complex extracts
8545 2011-03-16 Richard Guenther <rguenther@suse.de>
8547 PR tree-optimization/48146
8548 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8549 operands avoiding the need for renaming.
8551 2011-03-16 Richard Guenther <rguenther@suse.de>
8553 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8554 constant folding. Move MEM_REF canonicalization first.
8555 Rely on fold_const_aggregate_ref for initializer folding.
8556 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8558 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8561 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8562 arg0/arg1 or their arguments are always fold converted to matching
8565 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8568 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8571 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8572 Handle in-tree gold.
8573 (ld_vers): Extract binutils version for gold.
8574 (gcc_cv_ld_hidden): Handle gold here.
8575 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8576 * configure: Regenerate.
8577 * config.in: Regenerate.
8578 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8579 -fuse-linker-plugin otherwise.
8580 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8581 (LINK_COMMAND_SPEC): Use it.
8582 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8584 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8586 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8587 * calls.c: Remove debug.h include.
8588 (emit_call_1): Don't call virtual_call_token debug hook.
8589 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8590 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8591 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8592 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8593 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8594 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8595 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8596 dwarf2out_virtual_call): Remove.
8597 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8598 copy_call_info and virtual_call hooks.
8599 (dwarf2out_init): Don't initialize vcall_insn_table,
8600 debug_dcall_section and debug_vcall_section.
8601 (prune_unused_types): Don't mark nodes from dcall_table.
8602 (dwarf2out_finish): Don't output dcall or vcall tables.
8603 * final.c (final_scan_insn): Don't call direct_call or
8604 virtual_call debug hooks.
8605 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8606 virtual_call_token, copy_call_info and virtual_call hooks.
8607 (debug_nothing_uid): Remove prototype.
8608 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8609 copy_call_info and virtual_call hooks.
8610 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8611 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8612 * debug.c (do_nothing_debug_hooks): Likewise.
8613 (debug_nothing_uid): Remove.
8614 * doc/invoke.texi (-fenable-icf-debug): Remove.
8615 * common.opt (-fenable-icf-debug): Likewise.
8617 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8618 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8619 call's MEM. Handle functions returning aggregate through a hidden
8620 first pointer. For virtual calls add clobbered pc to call arguments
8622 * dwarf2out.c (gen_subprogram_die): Emit
8623 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8627 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8628 * rtl.h (ENTRY_VALUE_EXP): Define.
8629 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8630 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8631 * print-rtl.c (print_rtx): Likewise.
8632 * gengtype.c (adjust_field_rtx_def): Likewise.
8633 * var-tracking.c (vt_add_function_parameter): Adjust
8634 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8635 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8636 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8637 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8638 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8640 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8641 Call var_location debug hook even on CALL_INSNs.
8642 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8643 * rtl.def (ENTRY_VALUE): New.
8644 * dwarf2out.c: Include cfglayout.h.
8645 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8646 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8647 (struct call_arg_loc_node): New type.
8648 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8649 tail_call_site_count): New variables.
8650 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8651 DW_TAG_GNU_call_site_parameter.
8652 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8653 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8654 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8655 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8656 and DW_AT_GNU_all_source_call_sites.
8657 (mem_loc_descriptor): Handle ENTRY_VALUE.
8658 (add_src_coords_attributes): Don't add enything if
8659 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8660 (dwarf2out_abstract_function): Save and clear call_arg_location,
8661 call_site_count and tail_call_site_count around dwarf2out_decl call.
8662 (gen_call_site_die): New function.
8663 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8664 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8665 (dwarf2out_function_decl): Clear call_arg_locations,
8666 call_arg_loc_last, set call_site_count and tail_call_site_count
8667 to -1 and free block_map.
8668 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8669 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
8670 followed by any real instructions.
8671 (dwarf2out_begin_function): Set call_site_count and
8672 tail_call_site_count to 0.
8673 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8674 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8675 attempt to force a DIE for it and worst case remove the attribute.
8676 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8677 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8679 * var-tracking.c: Include tm_p.h.
8680 (vt_stack_adjustments): For calls call note_register_arguments.
8681 (argument_reg_set): New variable.
8682 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8683 ensure the VALUE is resolved.
8684 (call_arguments): New variable.
8685 (prepare_call_arguments): New function.
8686 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8687 (struct expand_loc_callback_data): Add ignore_cur_loc field.
8688 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8689 always use the best expression.
8690 (vt_expand_loc): Add ignore_cur_loc argument.
8691 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8692 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8693 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8695 (vt_add_function_parameter): Use cselib_lookup_from_insn.
8696 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8697 argument. Don't call cselib_preserve_only_values and
8699 (note_register_arguments): New function.
8700 (vt_initialize): Compute argument_reg_set. Call
8701 vt_add_function_parameters before processing basic blocks instead of
8702 afterwards. For calls call prepare_call_arguments before calling
8703 cselib_process_insn.
8704 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8705 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8706 (var-tracking.o): Depend on $(TM_P_H).
8707 * cfglayout.h (insn_scope): New prototype.
8708 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8709 * cfglayout.c (insn_scope): No longer static.
8710 * insn-notes.def (CALL_ARG_LOCATION): New.
8711 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8712 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8713 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8714 nothing for DECL_EXTERNAL BLOCK_VARS.
8716 2011-03-16 Alan Modra <amodra@gmail.com>
8719 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8720 create invalid offset address for vsx splat insn.
8721 * config/rs6000/predicates.md (splat_input_operand): New.
8722 * config/rs6000/vsx.md (vsx_splat_*): Use it.
8724 2011-03-15 Xinliang David Li <davidxl@google.com>
8727 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8728 (normalize_preds): New function.
8729 (is_use_properly_guarded): Normalize def predicates.
8731 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8734 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
8735 in the output template.
8737 2011-03-15 Richard Guenther <rguenther@suse.de>
8740 * tree-pretty-print.c (dump_function_declaration): Properly
8741 dump unprototyped and varargs function types.
8743 2011-03-15 Richard Guenther <rguenther@suse.de>
8745 PR tree-optimization/13954
8746 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
8749 2011-03-15 Richard Guenther <rguenther@suse.de>
8751 PR tree-optimization/48037
8752 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
8753 selects into BIT_FIELD_REFs.
8754 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
8757 2011-03-15 Jakub Jelinek <jakub@redhat.com>
8759 PR tree-optimization/48129
8760 * builtins.c (fold_builtin_snprintf): Convert to type of
8761 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
8762 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
8764 2011-03-15 Richard Guenther <rguenther@suse.de>
8766 PR tree-optimization/41490
8767 * tree-ssa-dce.c (propagate_necessity): Handle returns without
8768 value but with VUSE.
8769 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
8771 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
8772 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
8773 * tree-tailcall.c (find_tail_calls): Ignore returns.
8775 2011-03-15 Richard Guenther <rguenther@suse.de>
8778 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
8779 or variable-indexed array accesses when in gimple form.
8781 2011-03-15 Richard Guenther <rguenther@suse.de>
8783 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
8785 2011-03-15 Alan Modra <amodra@gmail.com>
8788 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
8789 presume symbol_refs without a symbol_ref_decl are suitably
8790 aligned, nor other trees we may see here. Handle anchor symbols.
8791 (legitimate_constant_pool_address_p): Comment. Add mode param.
8792 Check cmodel=medium addresses. Adjust all calls.
8793 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
8794 creating cmodel=medium optimized access to locals.
8795 * config/rs6000/constraints.md (R): Pass QImode to
8796 legitimate_constant_pool_address_p.
8797 * config/rs6000/predicates.md (input_operand): Pass mode to
8798 legitimate_constant_pool_address_p.
8799 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
8802 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8805 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
8806 64-bit constants being loaded into registers other than GPRs such
8807 as loading 0 into a VSX register.
8809 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8811 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
8813 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8816 * builtins.c (fold_builtin_snprintf): New function.
8817 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
8818 (fold_builtin_4): Likewise.
8821 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
8822 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
8823 and C - X == X also strip nops from +/-/p+ operand.
8824 When optimizing -X == C, fold C to arg0's type.
8827 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
8828 emit it as add_AT_int instead of add_AT_unsigned.
8830 2011-03-14 Tom Tromey <tromey@redhat.com>
8832 * unwind-dw2.c: Include sys/sdt.h if it exists.
8833 (_Unwind_DebugHook): Use STAP_PROBE2.
8834 * config.in, configure: Rebuild.
8835 * configure.ac: Check for sys/sdt.h.
8837 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
8839 * config/i386/i386.md (ROUND_FLOOR): New constant.
8840 (ROUND_CEIL): Ditto.
8841 (ROUND_TRUNC): Ditto.
8842 (ROUND_MXCSR): Ditto.
8843 (ROUND_NO_EXC): Ditto.
8844 (rint<mode>2): Use new defines instead of numerical constants.
8845 (floor<mode>2): Ditto.
8846 (ceil<mode>2): Ditto.
8847 (btrunc<mode>2): Ditto.
8848 * config/i386/i386-builtin-types.def: Define ROUND function type
8850 * config/i386/i386.c (enum ix86_builtins): Add
8851 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
8852 (struct builtin_description): Add
8853 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
8854 (ix86_expand_sse_round): New static function.
8855 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
8857 (ix86_builtin_vectorized_function): Handle
8858 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8860 2011-03-14 Tom Tromey <tromey@redhat.com>
8862 * c-parser.c (c_parser_asm_string_literal): Clear
8863 warn_overlength_strings.
8865 2011-03-14 Tom Tromey <tromey@redhat.com>
8867 * c-parser.c (disable_extension_diagnostics): Save
8868 warn_overlength_strings.
8869 (restore_extension_diagnostics): Restore warn_overlength_strings.
8871 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8873 * BASE-VER: Change to 4.7.0.
8875 2011-03-14 Richard Guenther <rguenther@suse.de>
8878 * tree.c (build_vector_from_val): Adjust assert to requirements
8881 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8884 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
8886 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
8888 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
8889 terms of target_flags_explicit. Adjust copyright year.
8891 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
8892 * config/rs6000/t-freebsd: New file. Add override for
8895 2011-03-13 Chris Demetriou <cgd@google.com>
8897 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
8898 (-fno-diagnostics-show-option): this, to reflect current default.
8899 (-Werror=): Update text about -fno-diagnostics-show-option.
8901 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
8904 * config/rs6000/predicates.md (easy_vector_constant_add_self,
8905 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
8906 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
8907 mode is not V2DImode or V2DFmode.
8908 (vspltis_constant): Do not handle V2DImode and V2DFmode.
8909 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
8910 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
8912 (movdi_internal64): Likewise.
8914 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
8916 PR tree-optimization/47127
8917 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
8919 (set_cloog_options): Same.
8920 (scop_to_clast): Same.
8921 (print_clast_stmt): Do not call cloog_state_malloc and
8923 (print_generated_program): Same.
8925 * graphite-clast-to-gimple.h (cloog_state): Declared.
8926 (scop_to_clast): Adjust declaration.
8927 * graphite.c (cloog_state): Defined here.
8928 (graphite_initialize): Call cloog_state_malloc.
8929 (graphite_finalize): Call cloog_state_free.
8931 2011-03-11 Jason Merrill <jason@redhat.com>
8933 * attribs.c (lookup_attribute_spec): Take const_tree.
8936 2011-03-11 Joseph Myers <joseph@codesourcery.com>
8938 * config/sparc/sparc.c (sparc_option_override): Use
8939 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
8941 2011-03-11 Richard Guenther <rguenther@suse.de>
8943 PR tree-optimization/48067
8944 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
8945 multiplication result will be only used once on the target
8948 2011-03-11 Richard Guenther <rguenther@suse.de>
8950 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
8952 2011-03-11 Richard Guenther <rguenther@suse.de>
8955 * tree.c (find_decls_types_r): Do not walk types only reachable
8956 from IDENTIFIER_NODEs.
8958 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8961 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
8962 all vnode->force_output nodes as needed.
8964 2011-03-11 Jason Merrill <jason@redhat.com>
8967 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
8968 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
8970 2011-03-11 Martin Jambor <mjambor@suse.cz>
8972 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
8975 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8977 PR tree-optimization/48063
8978 * ipa-inline.c (cgraph_decide_inlining): Don't try to
8979 inline functions called once if !tree_can_inline_p (node->callers).
8981 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
8983 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
8985 * config/score/score3.c: Delete.
8986 * config/score/score3.h: Delete.
8987 * config/score/mul-div.S: Delete.
8988 * config/score/sfp-machine.h: Add new file.
8989 * config/score/constraints.md: Add new file.
8990 * config/score/t-score-softfp: Add new file.
8991 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
8992 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
8993 (score7_extra_constraint): Delete.
8994 (score7_option_override): Remove unused code.
8995 * config/score/score.c: Remove score3 and score5 define and code.
8996 * config/score/score.h: Remove score3 and score5 define and code.
8997 * config/score/score.md: Remove score3 template and unusual insn.
8998 * config/score/score.opt: Remove score3 and score5 options.
9000 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9002 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9003 when _HPUX_SOURCE is defined.
9004 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9006 2011-03-10 Jason Merrill <jason@redhat.com>
9009 * stor-layout.c (layout_type): Don't set structural equality
9010 on arrays of incomplete type.
9011 * tree.c (type_hash_eq): Handle comparing them properly.
9013 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9016 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9017 result mode matches original rtl mode.
9019 2011-03-10 Nick Clifton <nickc@redhat.com>
9021 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9022 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9024 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9026 PR rtl-optimization/47866
9027 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9028 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9029 if target wasn't scalar.
9030 * function.c (assign_stack_temp_for_type): Assert that neither
9031 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9032 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9034 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9036 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9038 * config/s390/s390-protos.h (s390_label_align): New prototype.
9039 * config/s390/s390.c (s390_label_align): New function.
9040 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9042 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9045 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9046 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9047 (output_vec_const_move): Ditto.
9049 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9051 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9052 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9053 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9054 Change 'rclass' argument and result type to reg_class_t.
9055 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9057 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9059 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9060 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9061 (TARGET_MEMORY_MOVE_COST): Define.
9062 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9064 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9067 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9070 PR tree-optimization/48022
9071 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9074 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9077 * var-tracking.c (find_use_val): Return NULL for
9078 cui->sets && cui->store_p BLKmode MEMs.
9080 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9082 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9084 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9085 xstormy16_print_operand_address): Remove.
9086 * config/stormy16/stormy16.c (xstormy16_print_operand,
9087 xstormy16_print_operand_address): Make static.
9088 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9090 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9093 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9094 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9097 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9100 * cfgloopmanip.c (fix_bb_placements): Return immediately
9101 if FROM is BASE_LOOP's header.
9103 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9105 * gimplify.c (gimplify_function_tree): Fix building calls
9106 to __builtin_return_address.
9108 2011-03-07 Alan Modra <amodra@gmail.com>
9110 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9111 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9112 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9113 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9115 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9116 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9117 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9118 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9119 * config/rs6000/rs6000.c
9120 (rs6000_elf_end_indicate_exec_stack): Rename to..
9121 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9122 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9123 (rs6000_file_start): ..here.
9124 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9125 file scope variables.
9126 (call_ABI_of_interest): New function.
9127 (init_cumulative_args): Set above vars when function return value
9128 is a float, vector, or small struct.
9129 (rs6000_function_arg_advance_1): Likewise for function args.
9130 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9131 references float args.
9133 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9135 * doc/cfg.texi: Remove "See" before @ref.
9136 * doc/invoke.texi: Likewise.
9138 2011-03-05 Jason Merrill <jason@redhat.com>
9140 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9142 2011-03-05 Anthony Green <green@moxielogic.com>
9144 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9146 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9148 PR rtl-optimization/47899
9149 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9150 to flow_loop_nested_p when moving the loop upward.
9152 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9155 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9157 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9159 PR tree-optimization/47967
9160 * ipa-cp.c (build_const_val): Return NULL instead of creating
9161 VIEW_CONVERT_EXPR for mismatching sizes.
9162 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9163 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9164 give up on versioning.
9166 2011-03-05 Alan Modra <amodra@gmail.com>
9169 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9170 full cmodel medium/large lo_sum + high addresses.
9172 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9174 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9175 pool references in UNSPEC_LTREL_OFFSET.
9177 2011-03-04 Jan Hubicka <jh@suse.cz>
9180 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9181 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9182 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9184 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9185 cgraph_add_thunk): Add node pointers.
9186 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9187 associated to right node.
9188 (input_node): Update use of cgraph_same_body_alias
9189 and cgraph_add_thunk.
9191 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9193 * config/i386/i386.opt (mprefer-avx128): New flag.
9194 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9195 modes when the flag -mprefer-avx128 is on.
9197 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9199 * dwarf2out.c (compare_loc_operands): Fix address handling.
9201 2011-03-04 Alan Modra <amodra@gmail.com>
9203 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9205 2011-03-04 Richard Guenther <rguenther@suse.de>
9208 * expmed.c (extract_bit_field_1): Prefer vector modes that
9209 vec_extract patterns can handle.
9211 2011-03-04 Richard Guenther <rguenther@suse.de>
9214 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9216 2011-03-04 Richard Henderson <rth@redhat.com>
9218 * explow.c (emit_stack_save): Remove 'after' parameter.
9219 (emit_stack_restore): Likewise.
9220 * expr.h: Update to match.
9221 * builtins.c, calls.c, stmt.c: Likewise.
9222 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9223 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9224 * function.c (expand_function_end): Insert the emit_stack_save
9225 sequence before parm_birth_insn instead of after.
9227 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9229 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9230 (ssse3_pmaddubsw128): Ditto.
9231 (ssse3_pmaddubsw): Ditto.
9233 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9235 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9237 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9240 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9241 on TYPE_SIZE_UNIT if it is a DECL.
9244 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9245 first operand is not is_gimple_mem_ref_addr, try to fold it.
9246 If the operand still isn't is_gimple_mem_ref_addr, clear
9249 2011-03-03 Richard Guenther <rguenther@suse.de>
9252 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9254 (refs_may_alias_p_1): For release branches return true if
9255 we are confused by our input.
9257 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9259 * config/s390/s390.c (s390_function_value): Rename to ...
9260 (s390_function_and_libcall_value): ... this.
9261 (s390_function_value): New function.
9262 (s390_libcall_value): New function.
9263 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9264 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9265 target macro definitions.
9266 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9268 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9270 * config/i386/freebsd64.h (CC1_SPEC): Define.
9271 * config/i386/linux64.h (CC1_SPEC): Define.
9272 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9274 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9276 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9278 * config/stormy16/stormy16.c: Include reload.h.
9279 (xstormy16_memory_move_cost): New function.
9280 (TARGET_MEMORY_MOVE_COST): Define.
9282 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9284 PR rtl-optimization/47925
9285 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9286 with side effects. Remove the more-specific check for volatile asms.
9288 2011-03-02 Alan Modra <amodra@gmail.com>
9291 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9292 toc relative addresses for valid offsets.
9294 2011-03-01 Richard Guenther <rguenther@suse.de>
9296 PR tree-optimization/47890
9297 * tree-vect-loop.c (get_initial_def_for_induction): Set
9298 related stmt properly.
9300 2011-03-01 Richard Guenther <rguenther@suse.de>
9303 * lto-streamer.c (lto_record_common_node): Also register
9306 2011-03-01 Richard Guenther <rguenther@suse.de>
9309 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9310 Do not stream DECL_ABSTRACT_ORIGIN.
9311 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9312 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9313 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9314 Do not stream DECL_ABSTRACT_ORIGIN.
9315 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9316 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9318 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9320 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9321 FUNCTION_VALUE_REGNO_P): Remove.
9322 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9323 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9324 Add 'outgoing' argument.
9325 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9327 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9328 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9330 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9333 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9334 (lookup_filename): Likewise.
9335 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9337 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9338 Jakub Jelinek <jakub@redhat.com>
9341 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9342 (assign_stack_local_1): Change last argument type to int.
9343 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9344 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9345 don't record padding space into frame_space_list nor use those areas.
9346 (assign_stack_local): Adjust caller.
9347 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9348 of assign_stack_local, pass 0 as last argument.
9349 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9352 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9355 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9356 Use target address_mode and pointer_mode hooks instead of hardcoded
9357 Pmode and ptr_mode. Handle some simple cases of extending if
9358 POINTERS_EXTEND_UNSIGNED < 0.
9359 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9360 Call convert_debug_memory_address.
9361 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9362 convert_debug_memory_address.
9365 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9366 * configure: Regenerated.
9367 * config.in: Regenerated.
9368 * varasm.c (default_function_section): Return NULL
9369 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9371 2011-02-28 Martin Jambor <mjambor@suse.cz>
9373 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9374 the description to match the printed values.
9376 2011-02-28 Richard Guenther <rguenther@suse.de>
9378 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9379 of the copied scope tree.
9381 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9383 * doc/extend.texi (Function Attributes): Avoid deeply (and
9384 wrongly) nested tables.
9386 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9389 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9390 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9391 r isn't op0 nor op1.
9393 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9395 * config/avr/avr.md: Remove magic comment for emacs.
9397 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9400 * config/avr/avr.c (avr_option_override): Use error on bad options.
9401 (avr_help): New function.
9402 (TARGET_HELP): Define.
9404 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9407 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9408 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9410 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9412 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9413 (ARM Options): Ditto.
9414 (i386 and x86-64 Options): Ditto.
9415 (RX Options): Ditto.
9416 (SPARC Options): Ditto.
9418 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9420 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9421 FreeBSD 6 and later. Generally use cpu generic.
9423 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9425 * doc/cpp.texi: Update copyright years.
9427 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9430 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9432 2011-02-25 Jon Beniston <jon@beniston.com>
9435 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9436 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9437 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9438 (lm32_block_move_inline): Add type cast to remove warning.
9439 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9440 (gen_int_relational): Move declarations to start of function.
9442 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9444 PR tree-optimization/45470
9445 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9446 can throw internally only.
9447 * tree-vect-stmts.c (vectorizable_call): Likewise.
9449 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9451 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9452 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9453 * config/stormy16/stormy16-protos.h
9454 (xstormy16_preferred_reload_class): Remove.
9455 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9456 static. Change 'rclass' argument and return type to reg_class_t.
9457 (TARGET_PREFERRED_RELOAD_CLASS,
9458 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9460 2011-02-24 Richard Guenther <rguenther@suse.de>
9462 * lto-streamer-in.c (input_bb): Do not find referenced vars
9463 in debug statements.
9465 2011-02-23 Jason Merrill <jason@redhat.com>
9467 * common.opt (fabi-version): Document v5 and v6.
9469 2011-02-23 Richard Guenther <rguenther@suse.de>
9471 PR tree-optimization/47849
9472 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9474 2011-02-23 Jie Zhang <jie@codesourcery.com>
9476 * opts-common.c (decode_cmdline_option): Print empty string
9477 argument as "" in decoded->orig_option_with_args_text.
9478 * gcc.c (execute): Print empty string argument as ""
9479 in the verbose output.
9480 (do_spec_1): Keep empty string argument.
9482 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9484 * config.gcc: Declare score-* and crx-* obsolete.
9486 2011-02-23 Jie Zhang <jie@codesourcery.com>
9488 PR rtl-optimization/47763
9489 * web.c (web_main): Ignore naked clobber when replacing register.
9491 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9493 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9496 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9499 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9501 2011-02-22 Mike Stump <mikestump@comcast.net>
9503 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9505 * configure: Regenerate.
9507 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9509 PR rtl-optimization/46002
9510 * ira-color.c (update_copy_costs): Change class intersection
9511 test to reg_class_contents[] test of 'hard_regno'.
9513 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9515 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9517 * config/hpux11.opt (mt): Likewise.
9518 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9519 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9520 * config/vax/elf.opt (mno-asm-pic): Likewise.
9521 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9523 2011-02-21 Mike Stump <mikestump@comcast.net>
9526 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9527 tree so we can get save the type.
9528 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9529 for CFString instead of trying to use past the end of the builtins.
9530 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9531 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9532 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9533 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9534 Rename to darwin_builtin_cfstring.
9535 (darwin_init_cfstring_builtins): Return the built type.
9537 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9540 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9541 (_mm256_insert_epi64): Use _mm_insert_epi64.
9543 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9545 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9546 * config/stormy16/stormy16-protos.h
9547 (xstormy16_mode_dependent_address_p): Remove.
9548 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9549 Make static. Change return type to bool. Change argument type to
9550 const_rtx. Remove dead code.
9551 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9553 2011-02-21 Richard Guenther <rguenther@suse.de>
9556 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9557 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9558 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9560 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9561 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9563 2011-02-20 Richard Guenther <rguenther@suse.de>
9566 * tree.c (free_lang_data_in_decl): Clean builtins from
9567 the TU decl BLOCK_VARS.
9569 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9573 * haifa-sched.c (fix_tick_ready): Skip tick computation
9576 2011-02-19 Richard Guenther <rguenther@suse.de>
9579 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9580 Remove lazy BLOCK_VARS streaming.
9581 (lto_input_ts_block_tree_pointers): Likewise.
9582 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9584 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9586 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9588 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9590 * config/i386/biarch32.h, config/i386/mach.h,
9591 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9593 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9596 * config/i386/i386.md (peephole2 for shift and plus): Use
9597 operands[1] original mode in the first insn.
9599 2011-02-18 Mike Stump <mikestump@comcast.net>
9601 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9603 2011-02-18 Jan Hubicka <jh@suse.cz>
9606 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9607 to zero when the function is not inlinable at all.
9609 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9611 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9612 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9613 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9614 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9615 * config/pa/t-pa64: Likewise.
9616 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9618 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9621 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9623 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9626 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9628 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9630 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9631 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9632 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9633 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9634 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9635 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9636 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9637 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9638 m32r_legitimate_address_p): New functions.
9639 * config/m32r/constraints.md (constraint "S"): Don't use
9640 STORE_PREINC_PREDEC_P.
9641 (constraint "U"): Don't use LOAD_POSTINC_P.
9643 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
9645 PR rtl-optimization/46178
9646 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9647 compute ira_hard_regno_cover_class[].
9649 2011-02-18 Richard Guenther <rguenther@suse.de>
9652 * lto-streamer.h (lto_global_var_decls): Declare.
9653 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9654 statics for global var processing.
9656 2011-02-18 Richard Guenther <rguenther@suse.de>
9658 PR tree-optimization/47737
9659 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9660 edge dominance check.
9662 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9665 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9666 avoid invalid rtx sharing.
9668 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
9670 * doc/cpp.texi (Obsolete Features): Add background on the
9671 origin of assertions.
9673 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9675 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9677 * config/darwin.c (output_objc_section_asm_op): Added support for
9679 (is_objc_metadata): New.
9680 (darwin_objc2_section): New.
9681 (darwin_objc1_section): New.
9682 (machopic_select_section): Added support for ABI v1 and v2.
9683 (darwin_emit_objc_zeroed): New.
9684 (darwin_output_aligned_bss): Detect objc metadata and treat it
9686 (darwin_asm_output_aligned_decl_common): Same.
9687 (darwin_asm_output_aligned_decl_local): Same.
9688 * config/darwin-sections.def: Updated for ABI v1 and v2.
9689 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9690 compiling Objective-C code for the NeXT runtime, default to using
9691 ABI version 0 for 32-bit, and version 2 for 64-bit.
9693 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9695 * common.opt (optimize_fast): New Variable.
9696 * opts.c (default_options_optimization): Use opts->x_optimize_fast
9697 instead of local variable ofast.
9699 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
9701 * doc/invoke.texi (fobjc-abi-version): Documented.
9702 (fobjc-nilcheck): Documented.
9703 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9706 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9709 * common.opt (export-dynamic): New Driver option.
9710 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9712 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9714 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9716 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
9717 Jan Hubicka <jh@suse.cz>
9721 * cfgexpand.c (account_used_vars_for_block): Remove.
9722 (estimated_stack_frame_size): Use referenced vars.
9723 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9724 that were referenced in the original function. Test src_fn
9725 rather than cfun. Drop redundant get_var_ann.
9726 (setup_one_parameter): Drop redundant get_var_ann.
9727 (declare_return_variable): Likewise.
9728 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9729 (copy_arguments_for_versioning): Drop redundant get_var_ann.
9730 * ipa-inline.c (compute_inline_parameters): Do not compute
9731 disregard_inline_limits here.
9732 (compute_inlinable_for_current, pass_inlinable): New.
9733 (pass_inline_parameters): Require PROP_referenced_vars.
9734 * cgraphunit.c (cgraph_process_new_functions): Don't run
9735 compute_inline_parameters explicitly unless function is in SSA form.
9736 (cgraph_analyze_function): Set .disregard_inline_limits.
9737 * tree-sra.c (convert_callers): Compute inliner parameters
9738 only for functions already in SSA form.
9740 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9742 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
9743 -mlittle-endian-data.
9745 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9747 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
9748 -mno-fpu, not -fpu and -no-fpu.
9749 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
9750 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
9752 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
9755 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
9756 input reload with PLUS RTX.
9758 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9760 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
9761 of InverseVar(MDMX).
9763 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9765 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
9768 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9770 * config/mn10300/mn10300.opt (mno-crt0): New.
9772 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9774 * config/m68k/uclinux.opt (static-libc): New Driver option.
9776 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9778 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
9780 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9782 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
9783 %{muser-extend-enabled}.
9785 2011-02-16 Richard Guenther <rguenther@suse.de>
9787 PR tree-optimization/47738
9788 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
9789 the TODO from tree_predictive_commoning.
9791 2011-02-15 Jeff Law <law@redhat.com>
9794 2011-01-25 Jeff Law <law@redhat.com>
9796 PR rtl-optimization/37273
9797 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9798 handle them like argument loads from stack slots. Do not double
9799 count memory for memory constants and argument loads from stack slots.
9801 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9804 * combine.c (cant_combine_insn_p): Revert the last change.
9806 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
9809 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
9810 mode for vector constants. Remove code that checks for TImode.
9812 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9816 * cgraph.h (compute_inline_parameters): Return void.
9817 * ipa-inline.c (compute_inline_parameters): Adjust.
9819 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9823 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
9825 * cfgexpand.c (estimated_stack_frame_size): Likewise.
9826 * ipa-inline.c (compute_inline_parameters): Adjust.
9828 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9832 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
9833 Adjust all users. Pass FN to...
9834 * tree-flow-inline.h (first_referenced_var): ... this. Add
9836 * ipa-struct-reorg.c: Adjust.
9837 * tree-dfa.c: Adjust.
9838 * tree-into-ssa.c: Adjust.
9839 * tree-sra.c: Adjust.
9840 * tree-ssa-alias.c: Adjust.
9841 * tree-ssa-live.c: Adjust.
9842 * tree-ssa.c: Adjust.
9843 * tree-ssanames.c: Adjust.
9844 * tree-tailcall.c: Adjust.
9846 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9850 * tree-flow.h (referenced_var_lookup): Add fn parameter.
9852 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
9853 * tree-flow-inline.h: Adjust.
9854 * gimple-pretty-print.c: Adjust.
9855 * tree-into-ssa.c: Adjust.
9856 * tree-ssa.c: Adjust.
9857 * cfgexpand.c: Adjust.
9859 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9861 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
9862 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9863 (EXTRA_CONSTRAINT): Delete.
9864 * config/iq2000/constraints.md: New file.
9865 * config/iq2000/iq2000.md: Include it.
9866 (define_insn ""): Delete.
9867 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
9868 unsupported constraint letters from patterns.
9869 (call_value, call_value_internal1): Likewise.
9870 (call_value_multiple_internal1): Likewise.
9872 2011-02-15 Nick Clifton <nickc@redhat.com>
9874 * config/mn10300/mn10300.c: Include tm-constrs.h.
9875 (struct liw_data): New data structure describing an LIW candidate
9877 (extract_bundle): Use struct liw_data. Allow small integer
9878 operands for some instructions.
9879 (check_liw_constraints): Use struct liw_data. Remove swapped
9880 parameter. Add comments describing the checks. Fix bug when
9881 assigning the source of liw1 to the source of liw2.
9882 (liw_candidate): Delete. Code moved into extract_bundle.
9883 (mn10300_bundle_liw): Use struct liw_data. Check constraints
9885 * config/mn10300/predicates.md (liw_operand): New predicate.
9886 Allows registers and small integer constants.
9887 * config/mn10300/constraints.md (O): New constraint. Accetps
9888 integers in the range -8 to +7 inclusive.
9889 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
9890 for moving a small integer into a register. Give this alternative
9892 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
9893 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
9894 using the J,K,L and M constraints,
9895 (liw): Remove SI mode on second operands to allow for HI and QI
9897 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
9900 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9903 * combine.c (cant_combine_insn_p): Check zero/sign extended
9906 2011-02-15 Richard Guenther <rguenther@suse.de>
9908 PR tree-optimization/47743
9909 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
9910 for a non-type-compatible VN lookup bail out.
9912 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9914 * config/fr30/constraints.md: New file.
9915 * config/fr30/fr30.md: Include it.
9916 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
9917 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9918 (EXTRA_CONSTRAINT): Delete.
9920 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9922 * config/frv/constraints.md: New file.
9923 * config/frv/predicates.md: Include it.
9924 * config/frv/frv.c (reg_class_from_letter): Delete.
9925 (frv_option_override): Don't initialize it.
9926 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
9927 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
9928 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
9929 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9930 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
9931 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9932 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
9933 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
9934 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
9935 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
9936 (REG_CLASS_FROM_CONSTRAINT): Delete.
9938 2011-02-15 Jakub Jelinek <jakub@redhat.com>
9941 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
9942 if frame size is 0 in a leaf function.
9944 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9947 * config/alpha/host-osf.c: New file.
9948 * config/alpha/x-osf: New file.
9949 * config.host (alpha*-dec-osf*): Use it.
9951 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9953 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9954 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
9955 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
9956 (rx_mode_dependent_address_p): ...this. Make static. Change argument
9958 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9960 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9962 * config/stormy16/constraints.md: New file.
9963 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
9964 Use satisfies_constraint_Q and satisfies_constraint_R.
9965 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
9967 (xstormy16_legitiamte_address_p): Declare.
9968 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
9969 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9970 (EXTRA_CONSTRAINT): Delete.
9971 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
9973 (xstormy16_extra_constraint_p): Delete.
9975 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
9977 PR tree-optimization/46494
9978 * loop-unroll.c (split_edge_and_insert): Adjust comment.
9979 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
9980 (pass_rtl_loop_done): Add TODO_verify_flow.
9981 * fwprop.c (pass_rtl_fwprop): Likewise.
9982 * modulo-sched.c (pass_sms): Likewise.
9983 * tree-ssa-dom.c (pass_dominator): Likewise.
9984 * tree-ssa-loop-ch.c (pass_ch): Likewise.
9985 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
9986 (pass_tree_loop_done): Likewise.
9987 * tree-ssa-pre.c (execute_pre): Likewise.
9988 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9989 * tree-ssa-sink.c (pass_sink_code): Likewise.
9990 * tree-vrp.c (pass_vrp): Likewise.
9992 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9994 * config/v850/constraints.md: New file.
9995 * config/v850/v850.md: Include it.
9996 * config/v850/predicates.md (reg_or_0_operand): Use
9997 satisfies_constraint_G.
9998 (special_symbolref_operand): Use satisfies_constraint_K.
9999 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10000 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10001 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10002 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10003 (EXTRA_CONSTRAINT): Delete.
10004 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10005 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10006 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10008 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10011 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10014 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10016 * config/mcore/constraints.md: New file.
10017 * config/mcore/mcore.md: Include it.
10018 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10019 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10020 (REG_CLASS_FROM_LETTER): Delete.
10021 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10022 insn_const_int_ok_for_constraint.
10023 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10024 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10025 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10026 (EXTRA_CONSTRAINT): Delete.
10028 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10031 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10032 (IS_SIGHANDLER): Define.
10033 (sparc64_is_sighandler): New function, split off from
10034 sparc64_fallback_frame_state.
10035 (sparc_is_sighandler): New function, split off from
10036 sparc_fallback_frame_state.
10037 (sparc64_fallback_frame_state): Merge with ...
10038 (sparc_fallback_frame_state): ... this into ...
10039 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10040 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10041 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10042 stack instead of hardcoded offsets.
10044 2011-02-14 Andriy Gapon <avg@freebsd.org>
10047 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10049 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10051 * configure: Regenerate.
10053 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10056 * gcc.c (asm_options): Correct spec matching --target-help.
10058 2011-02-12 Martin Jambor <mjambor@suse.cz>
10060 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10061 to gimple call error.
10063 2011-02-12 Mike Stump <mikestump@comcast.net>
10065 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10066 comments in backslash regions.
10068 2011-02-12 Mike Stump <mikestump@comcast.net>
10069 Jakub Jelinek <jakub@redhat.com>
10070 Iain Sandoe <iains@gcc.gnu.org>
10073 * dwarf2out.c (output_cfa_loc): When required, apply the
10074 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10075 (output_loc_sequence): Likewise.
10076 (output_loc_operands_raw): Likewise.
10077 (output_loc_sequence_raw): Likewise.
10078 (output_cfa_loc): Likewise.
10079 (output_loc_list): Suppress register number adjustment when
10080 calling output_loc_sequence()
10081 (output_die): Likewise.
10083 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10085 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10087 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10088 xtensa_memory_move_cost): New functions.
10089 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10091 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10094 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10095 in the current directory.
10096 * configure: Rebuilt.
10098 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10100 * config/darwin.c (darwin_override_options): Add a hunk missed
10101 from the commit of r168571. Trim comment line lengths and
10102 correct indents of the preceding block.
10104 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10106 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10109 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10111 * common.opt (nostartfiles): New Driver option.
10113 2011-02-11 Xinliang David Li <davidxl@google.com>
10115 PR tree-optimization/47707
10116 * tree-chrec.c (convert_affine_scev): Keep type precision.
10118 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10120 PR tree-optimization/47420
10121 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10123 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10125 PR rtl-optimization/47614
10126 * rtl.h (check_for_inc_dec): Declare.
10127 * dse.c (check_for_inc_dec): Externalize...
10128 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10129 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10131 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10134 * gcc.c (main): Do not compile inputs if there were errors in
10136 * opts-common.c (read_cmdline_option): Check for wrong language
10137 after other error checks.
10139 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10141 * cgraph.c: Fix comment typos.
10142 * cgraph.h: Likewise.
10143 * cgraphunit.c: Likewise.
10144 * ipa-cp.c: Likewise.
10145 * ipa-inline.c: Likewise.
10146 * ipa-prop.c: Likewise.
10147 * ipa-pure-const.c: Likewise.
10148 * ipa-ref.c: Likewise.
10149 * ipa-reference.c: Likewise.
10151 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10154 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10156 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10159 * doc/sourcebuild.texi (Require Support): Document
10160 dg-require-ascii-locale.
10162 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10164 * doc/lto.texi (Write summary): Fix missing parentheses.
10166 2011-02-10 DJ Delorie <dj@redhat.com>
10168 * config/m32c/m32c.c (m32c_option_override): Disable
10169 -fcombine-stack-adjustments until flag value tracking and compare
10170 optimization can be rewritten.
10172 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10174 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10176 (PROCESSOR_DEFAULT64): Likewise.
10178 2011-02-10 Richard Henderson <rth@redhat.com>
10180 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10181 change from 2011-02-03.
10182 * config/rx/rx.c (flags_from_code): Likewise.
10183 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10184 is valid, n/pz otherwise.
10185 (rx_select_cc_mode): Return CCmode if Y is not zero.
10187 2011-02-10 Richard Guenther <rguenther@suse.de>
10189 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10191 2011-02-10 Richard Guenther <rguenther@suse.de>
10193 PR tree-optimization/47677
10194 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10196 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10199 * combine.c (make_compound_operation): Only change shifts into
10200 multiplication for SCALAR_INT_MODE_P.
10202 2011-02-10 Jie Zhang <jie@codesourcery.com>
10206 2011-02-05 Jie Zhang <jie@codesourcery.com>
10208 * web.c (entry_register): Don't clobber the number of the
10209 first uninitialized reference in used[].
10211 2011-02-09 Richard Guenther <rguenther@suse.de>
10213 PR tree-optimization/47664
10214 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10217 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10221 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10223 (PROCESSOR_DEFAULT64): Same.
10224 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10226 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10228 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10230 2011-02-09 Martin Jambor <mjambor@suse.cz>
10232 PR middle-end/45505
10233 * tree-sra.c (struct access): New flags grp_scalar_read and
10234 grp_scalar_write. Changed description of assignment read and write
10236 (dump_access): Dump new flags, reorder all of them.
10237 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10238 to detect multiple scalar reads.
10239 (analyze_access_subtree): Use the new scalar read write flags instead
10240 of the old flags. Adjusted comments.
10242 2011-02-08 DJ Delorie <dj@redhat.com>
10245 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10248 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10250 * config/m68k/uclinux.opt: New.
10251 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10253 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10255 * config/cris/elf.opt (sim): New Driver option.
10257 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10259 * config/xtensa/elf.opt: New.
10260 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10262 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10264 * config/vax/elf.opt: New.
10265 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10267 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10269 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10271 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10273 * config/gnu-user.opt: New.
10274 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10275 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10276 *-*-uclinux*): Use gnu-user.opt.
10278 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10280 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10281 * config/i386/gnu.h (CPP_SPEC): Likewise.
10283 2011-02-08 Ian Lance Taylor <iant@google.com>
10285 * common.opt (fcx-limited-range): Add SetByCombined flag.
10286 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10287 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10288 (fassociative-math, freciprocal-math): Likewise.
10289 (funsafe-math-optimizations): Likewise.
10290 * opth-gen.awk: Handle SetByCombined.
10291 * optc-gen.awk: Likewise.
10292 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10293 (set_unsafe_math_optimizations_flags): Likewise.
10294 * doc/options.texi (Option properties): Document SetByCombined.
10296 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10298 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10299 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10300 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10301 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10302 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10304 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10306 PR tree-optimization/46834
10307 PR tree-optimization/46994
10308 PR tree-optimization/46995
10309 * graphite-sese-to-poly.c (used_outside_reduction): New.
10310 (detect_commutative_reduction): Call used_outside_reduction.
10311 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10312 translate_scalar_reduction_to_array only when at least one
10313 loop-phi/close-phi tuple has been detected.
10315 2011-02-08 Richard Guenther <rguenther@suse.de>
10317 PR middle-end/47639
10318 * tree-vect-generic.c (expand_vector_operations_1): Update
10320 (expand_vector_operations): ... not here. Cleanup EH info
10321 and the CFG if required.
10323 2011-02-08 Richard Guenther <rguenther@suse.de>
10325 PR tree-optimization/47641
10326 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10327 require type compatibility.
10329 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10331 * gimple-low.c (lower_function_body): Don't remove the location of
10332 the return statement here.
10333 (lower_gimple_return): Do it here instead but only if the return
10334 statement is actually used twice.
10336 2011-02-08 Richard Guenther <rguenther@suse.de>
10338 PR tree-optimization/47632
10339 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10340 unused up_to_stmt parameter, return whether cfg-cleanup is
10341 necessary, remove EH info properly.
10342 (forward_propagate_into_gimple_cond): Adjust caller.
10343 (forward_propagate_into_cond): Likewise.
10344 (forward_propagate_comparison): Likewise.
10345 (tree_ssa_forward_propagate_single_use_vars): Make
10346 forward_propagate_comparison case similar to the two others.
10348 2011-02-08 Nick Clifton <nickc@redhat.com>
10350 * config/mn10300/mn10300.opt (mliw): New command line option.
10351 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10352 (liw_bundling): New automaton.
10353 (liw): New attribute.
10354 (liw_op): New attribute.
10355 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10356 (movsi_internal): Add LIW attributes.
10357 (andsi3): Likewise.
10358 (iorsi3): Likewise.
10359 (xorsi3): Likewise.
10360 (addsi3): Separate register and immediate alternatives.
10361 Add LIW attributes.
10362 (subsi3): Likewise.
10364 (aslsi3): Likewise.
10365 (lshrsi3): Likewise.
10366 (ashrsi3): Likewise.
10367 (liw): New pattern.
10368 * config/mn10300/mn10300.c (liw_op_names): New
10369 (mn10300_print_operand): Handle 'W' operand descriptor.
10370 (extract_bundle): New function.
10371 (check_liw_constraints): New function.
10372 (liw_candidate): New function.
10373 (mn10300_bundle_liw): New function.
10374 (mn10300_reorg): New function.
10375 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10376 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10377 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10378 __LIW__ or __NO_LIW__.
10379 * doc/invoke.texi: Describe the -mliw command line option.
10381 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10383 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10384 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10385 pthread_mutex_unlock): Remove.
10386 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10387 * config/pa/t-pa64: Likewise.
10388 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10389 shared libc if not linking against libpthread.
10390 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10392 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10395 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10396 on 10.6 and later to ensure that we always use the unwinder from
10397 the system. Only add -no_compact_unwind when tarteting darwin
10400 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10403 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10404 (vec_interleave_lowv2sf): Ditto.
10405 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10406 (vec_extract_oddv2sf): Ditto.
10408 2011-02-07 Mike Stump <mikestump@comcast.net>
10411 Add __ieee_divdc3 entry point.
10412 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10414 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10415 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10416 * config/darwin.c (darwin_rename_builtins): Add.
10417 * config/darwin-protos.h (darwin_rename_builtins): Add.
10419 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10422 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10425 2011-02-07 Mike Stump <mikestump@comcast.net>
10427 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10429 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10432 * config/avr/libgcc.S (exit): Move .endfunc
10434 2011-02-07 Richard Guenther <rguenther@suse.de>
10436 PR tree-optimization/47615
10437 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10438 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10439 (run_scc_vn): Initialize it.
10440 (visit_reference_op_load): Use it.
10441 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10443 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10445 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10446 DImode trapping arithmetic libfuncs.
10448 2011-02-07 Richard Guenther <rguenther@suse.de>
10450 PR tree-optimization/47621
10451 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10453 (execute_update_addresses_taken): ... here. Make it more
10454 conservative in what we accept.
10456 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10458 * config/sparc/freebsd.h (ASM_SPEC): Define.
10459 * config/sparc/vxworks.h (ASM_SPEC): Define.
10461 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10463 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10465 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10467 * doc/invoke.texi: Remove reference to compiler internals from
10468 user documentation.
10470 * reg-notes.def: Remove REG_VALUE_PROFILE.
10471 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10473 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10475 PR middle-end/47610
10476 * varasm.c (default_section_type_flags): If decl is NULL,
10477 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10479 2011-02-05 Jie Zhang <jie@codesourcery.com>
10482 * web.c (entry_register): Don't clobber the number of the
10483 first uninitialized reference in used[].
10485 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10487 PR tree-optimization/46194
10488 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10489 (build_classic_dist_vector_1): Do not represent classic distance
10490 vectors when the access functions are variating in different loops.
10492 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10494 * config/mips/iris6.opt: New.
10495 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10497 2011-02-04 Richard Henderson <rth@redhat.com>
10498 Steve Ellcey <sje@cup.hp.com>
10501 * config/ia64/predicates.md (mux1_brcst_element): New.
10502 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10503 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10504 (ia64_unpack_sign): New.
10505 (ia64_expand_unpack): Rewrite using new routines.
10506 (ia64_expand_widen_sum): Ditto.
10507 (ia64_expand_dot_prod_v8qi): Ditto.
10508 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10509 routines, add endian check.
10510 (pmpy2_even): Rename from pmpy2_r, add endian check.
10511 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10512 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10513 (vec_widen_smult_hi_v4hi): Ditto.
10514 (vec_widen_umult_lo_v4hi): Ditto.
10515 (vec_widen_umult_hi_v4hi): Ditto.
10516 (mulv2si3): Change endian checks.
10517 (sdot_prodv4hi): Rewrite with new calls.
10518 (udot_prodv4hi): New.
10519 (vec_pack_ssat_v4hi): Add endian check.
10520 (vec_pack_usat_v4hi): Ditto.
10521 (vec_pack_ssat_v2si): Ditto.
10522 (max1_even): Rename from max1_r, add endian check.
10523 (max1_odd): Rename from max1_l, add endian check.
10524 (*mux1_rev): Format change.
10525 (*mux1_mix): Ditto.
10526 (*mux1_shuf): Ditto.
10527 (*mux1_alt): Ditto.
10528 (*mux1_brcst_v8qi): Use new predicate.
10529 (vec_extract_evenv8qi): Remove endian check.
10530 (vec_extract_oddv8qi): Ditto.
10531 (vec_interleave_lowv4hi): Format change.
10532 (vec_interleave_highv4hi): Ditto.
10533 (mix2_even): Rename from mix2_r, add endian check.
10534 (mix2_odd): Rename from mux2_l, add endian check.
10535 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10536 (vec_extract_evenodd_helper): Format change.
10537 (vec_extract_evenv4hi): Remove endian check.
10538 (vec_extract_oddv4hi): Remove endian check.
10539 (vec_interleave_lowv2si): Format change.
10540 (vec_interleave_highv2si): Format change.
10541 (vec_initv2si): Remove endian check.
10542 (vecinit_v2si): Add endian check.
10543 (reduc_splus_v2sf): Add endian check.
10544 (reduc_smax_v2sf): Ditto.
10545 (reduc_smin_v2sf): Ditto.
10546 (vec_initv2sf): Remove endian check.
10547 (fpack): Add endian check.
10548 (fswap): Add endian check.
10549 (vec_interleave_highv2sf): Add endian check.
10550 (vec_interleave_lowv2sf): Add endian check.
10551 (fmix_lr): Add endian check.
10552 (vec_setv2sf): Format change.
10553 (*vec_extractv2sf_0_be): Use shift to extract operand.
10554 (*vec_extractv2sf_1_be): New.
10555 (vec_pack_trunc_v4hi): Add endian check.
10556 (vec_pack_trunc_v2si): Format change.
10558 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10560 PR inline-asm/23200
10561 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10562 do bb, locus and block comparison and disallow loads if it is not set.
10563 (stmt_is_replaceable_p): New function.
10564 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10566 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10567 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10569 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10571 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10573 * config/rs6000/xilinx.opt: New.
10574 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10576 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10578 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10580 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10582 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10583 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10584 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10585 secondary_reload_info, xtensa_secondary_reload): Remove.
10586 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10587 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10588 (xtensa_preferred_reload_class): Make static. Change return and
10589 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10590 Use CONST_DOUBLE_P predicate.
10591 (xtensa_preferred_output_reload_class): New function.
10592 (xtensa_secondary_reload): Make static.
10594 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10596 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10597 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10598 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10600 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10602 PR middle-end/31490
10603 * output.h (SECTION_RELRO): Define.
10604 (SECTION_MACH_DEP): Adjust.
10605 (get_variable_section): New prototype.
10606 * varpool.c (varpool_finalize_named_section_flags): New function.
10607 (varpool_assemble_pending_decls): Call it.
10608 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10609 * cgraphunit.c (cgraph_output_in_order): Call
10610 varpool_finalize_named_section_flags.
10611 * varasm.c (get_section): Allow section flags conflicts between
10612 relro and read-only sections if the section hasn't been declared yet.
10613 Set SECTION_OVERRIDE after diagnosing section type conflict.
10614 (get_variable_section): No longer static.
10615 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10616 readonly sections that need relocations.
10617 (decl_readonly_section_1): New function.
10618 (decl_readonly_section): Use it.
10621 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10622 Steve Ellcey <sje@cup.hp.com>
10624 PR middle-end/31490
10625 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10626 if section attribute used.
10628 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10630 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10631 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10632 (darwin_init_sections): Remove assertion.
10634 2011-02-03 Nick Clifton <nickc@redhat.com>
10636 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10638 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10639 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10640 instead of "n" and "pz".
10641 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10644 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10647 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10648 fma, expand FMA_EXPR as fma{,f,l} call.
10651 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10652 copy them into a unsigned char variable and pass address of it to
10653 lto_output_data_stream.
10656 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10657 around backend_init_target and lang_dependent_init_target calls.
10658 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10659 (verify_cgraph_node): Don't call set_cfun here. Use
10660 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10661 Set error_found for incorrectly represented calls to thunks.
10663 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10666 PR rtl-optimization/43494
10667 * rtl.h (for_each_inc_dec_fn): New type.
10668 (for_each_inc_dec): Declare.
10669 * rtlanal.c (struct for_each_inc_dec_ops): New type.
10670 (for_each_inc_dec_find_inc_dec): New fn.
10671 (for_each_inc_dec_find_mem): New fn.
10672 (for_each_inc_dec): New fn.
10673 * dse.c (struct insn_size): Remove.
10674 (replace_inc_dec, replace_inc_dec_mem): Remove.
10675 (emit_inc_dec_insn_before): New fn.
10676 (check_for_inc_dec): Use it, along with for_each_inc_dec.
10677 (canon_address): Pass mem modes to cselib_lookup.
10678 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
10679 (cselib_lookup_from_insn): Likewise.
10680 (cselib_subst_to_values): Likewise.
10681 * cselib.c (find_slot_memmode): New var.
10682 (cselib_find_slot): New fn. Use it instead of
10683 htab_find_slot_with_hash everywhere.
10684 (entry_and_rtx_equal_p): Use find_slot_memmode.
10685 (autoinc_split): New fn.
10686 (rtx_equal_for_cselib_p): Rename and implement in terms of...
10687 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
10688 Deal with autoinc. Special-case recursion into MEMs.
10689 (cselib_hash_rtx): Likewise.
10690 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
10691 address and MEM modes.
10692 (cselib_subst_to_values): Add memmode, pass it on.
10694 (cselib_lookup): Add memmode argument, pass it on.
10695 (cselib_lookup_from_insn): Add memmode.
10696 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10697 (struct cselib_record_autoinc_data): New.
10698 (cselib_record_autoinc_cb): New fn.
10699 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
10700 mode to cselib_lookup. Reset autoinced REGs here instead of...
10701 (cselib_process_insn): ... here.
10702 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10704 (add_uses): Likewise, also to cselib_subst_to_values.
10705 (add_stores): Likewise.
10706 * sched-deps.c (add_insn_mem_dependence): Pass mode to
10707 cselib_subst_to_values.
10708 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
10709 * gcse.c (do_local_cprop): Adjusted.
10710 * postreload.c (reload_cse_simplify_set): Adjusted.
10711 (reload_cse_simplify_operands): Adjusted.
10712 * sel-sched-dump (debug_mem_addr_value): Pass mode.
10714 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10716 PR tree-optimization/45122
10717 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10718 unsafe assumptions when there's more than one loop exit.
10720 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10723 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10724 Document using vector double with the load/store builtins, and
10725 that the load/store builtins always use Altivec instructions.
10727 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10728 to use altivec memory instructions, even on VSX.
10729 (vector_altivec_store_<mode>): Ditto.
10731 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
10734 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10735 V2DF, V2DI support to load/store overloaded builtins.
10737 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
10738 altivec load/store builtins for V2DF/V2DI types.
10740 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10741 set avoid indexed addresses on power6 if -maltivec.
10742 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
10743 vector_altivec_load/vector_altivec_store builtins.
10744 (altivec_expand_st_builtin): Ditto.
10745 (altivec_expand_builtin): Add VSX memory builtins.
10746 (rs6000_init_builtins): Add V2DI types to internal types.
10747 (altivec_init_builtins): Add support for V2DF/V2DI altivec
10748 load/store builtins.
10749 (rs6000_address_for_altivec): Insure memory address is appropriate
10752 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
10753 vec_vsx_ld and vec_vsx_st.
10754 (vsx_store_<mode>): Ditto.
10756 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
10757 variables to hold long long types for VSX vector memory builtins.
10758 (RS6000_BTI_unsigned_long_long): Ditto.
10759 (long_long_integer_type_internal_node): Ditti.
10760 (long_long_unsigned_type_internal_node): Ditti.
10762 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
10763 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
10764 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
10766 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
10768 (vec_vsx_st): Ditto.
10770 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10772 * config/pa/pa-hpux10.opt: New.
10773 * config/hpux11.opt (pthread): New Driver option.
10774 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
10775 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
10777 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10779 * config/ia64/vms.opt: New.
10780 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
10782 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10785 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
10786 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
10787 generator functions.
10788 (vsx_floatuns<VSi><mode>2): Ditto.
10789 (vsx_fix_trunc<mode><VSi>2): Ditto.
10790 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
10792 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10794 * config/i386/djgpp.opt (posix): New Driver option.
10796 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
10798 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
10799 Move to the unsupported targets list.
10801 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
10803 PR rtl-optimization/47525
10804 * df-scan.c: Update copyright years.
10805 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
10806 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
10808 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10810 * config/i386/sysv4.h (TARGET_VERSION): Remove.
10811 (SUBTARGET_RETURN_IN_MEMORY): Remove.
10812 (ASM_OUTPUT_ASCII): Remove.
10813 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
10815 2011-02-02 Jeff Law <law@redhat.com>
10817 PR middle-end/47543
10818 * reload.c (find_reloads_address): Handle reg+d address where both
10819 components are invalid by reloading the entire address.
10821 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10822 Richard Guenther <rguenther@suse.de>
10824 PR tree-optimization/40979
10826 * passes.c (init_optimization_passes): After LIM call copy_prop
10827 and DCE to clean up.
10828 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
10830 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10832 PR tree-optimization/47576
10833 PR tree-optimization/47555
10834 * doc/invoke.texi (scev-max-expr-complexity): Documented.
10835 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10836 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
10837 * tree-scalar-evolution.c (follow_ssa_edge): Use
10838 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
10840 2011-02-02 Richard Guenther <rguenther@suse.de>
10842 PR tree-optimization/47566
10843 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
10845 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10849 * tree-inline.c (declare_return_variable): Remove unused caller
10854 * tree-flow-inline.h (clear_is_used, is_used_p): New.
10855 * cfgexpand.c (account_used_vars_for_block): Use them.
10856 * tree-nrv.c (tree_nrv): Likewise.
10857 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
10858 (dump_scope_block): Likewise.
10859 (remove_unused_locals): Likewise.
10863 * tree-inline.c (declare_return_variable): Add result decl to
10864 local decls only once.
10865 * gimple-low.c (record_vars_into): Mark newly-created variables
10868 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10874 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10876 (no_real_insns_p, schedule_block, set_priorities): Drop special
10877 treatment of boundary debug insns.
10878 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10879 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
10880 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10881 (BOUNDARY_DEBUG_INSN_P): Likewise.
10882 (SCHEDULE_DEBUG_INSN_P): Likewise.
10883 * sched-rgn.c (init_ready_list): Drop special treatment of
10884 boundary debug insns.
10885 * final.c (rest_of_clean_state): Clear notes' BB.
10887 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10889 * config/openbsd.opt (assert=): New Driver option.
10891 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10893 * config/i386/nto.opt: New.
10894 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
10896 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10898 * config/i386/netware.opt: New.
10899 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
10901 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10903 * config/interix.opt (posix): New Driver option.
10905 2011-02-01 DJ Delorie <dj@redhat.com>
10907 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
10909 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
10912 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
10914 PR tree-optimization/47561
10915 * toplev.c (process_options): Print the Graphite flags. Add
10916 flag_loop_flatten to the list of options requiring Graphite.
10918 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10920 * config/i386/cygming.opt (posix): New Driver option.
10922 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10924 * config/arm/vxworks.opt: New.
10925 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
10927 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10929 * config/alpha/elf.opt: New.
10930 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
10931 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
10933 2011-02-01 Richard Guenther <rguenther@suse.de>
10935 PR tree-optimization/47559
10936 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
10937 store-motion on references that can throw.
10939 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
10941 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
10942 * tree-pass.h (TDF_CSELIB): New macro.
10943 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
10944 cselib_lookup): Check for it rather than for TDF_DETAILS.
10946 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
10949 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
10950 is HOST_BIT_BUCKET.
10952 * opts.c (finish_options): Don't add x_aux_base_name if it is
10955 2011-02-01 Richard Guenther <rguenther@suse.de>
10957 PR tree-optimization/47555
10959 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
10961 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10963 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
10966 * config/lm32/t-lm32: Add multilib for all CPU options.
10968 2011-02-01 Richard Guenther <rguenther@suse.de>
10970 PR tree-optimization/47541
10971 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
10972 sure to have a field at offset zero.
10974 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10976 * config/arc/arc.opt (EB, EL): New Driver options.
10978 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10980 * config/alpha/osf5.opt: New.
10981 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
10983 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10985 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
10987 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
10989 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
10990 -floop-interchange.
10991 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
10992 is an alias of -floop-interchange and that it requires the
10993 Graphite infrastructure.
10994 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
10995 flag_loop_interchange based on the value of flag_tree_loop_linear.
10997 2011-01-31 Jakub Jelinek <jakub@redhat.com>
10998 Richard Guenther <rguenther@suse.de>
11000 PR tree-optimization/47538
11001 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11002 type instead of r1type, except for comparisons. For right
11003 shifts and comparisons punt if there are mismatches in
11004 sizetype vs. non-sizetype types.
11006 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11008 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11011 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11013 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11015 * configure: Regenerate.
11017 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11019 * configure.ac (gcc_cv_ld_static_option): Define.
11020 (gcc_cv_ld_dynamic_option): Define.
11021 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11023 (HAVE_LD_STATIC_DYNAMIC): Update message.
11024 (LD_STATIC_OPTION): Define.
11025 (LD_DYNAMIC_OPTION): Define.
11026 * configure: Regenerate.
11027 * config.in: Regenerate.
11028 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11029 HAVE_LD_STATIC_DYNAMIC]: Use them.
11031 2011-01-31 Nick Clifton <nickc@redhat.com>
11033 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11034 registers inside interrupt handlers if the handler is not a leaf
11037 2011-01-31 Nick Clifton <nickc@redhat.com>
11039 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11040 reg_renumber returning an INVALID_REGNUM.
11042 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11045 * doc/install.texi: Document host options discarded when cross
11046 configuring target libraries.
11048 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11051 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11054 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11056 (no_real_insns_p, schedule_block, set_priorities): Drop special
11057 treatment of boundary debug insns.
11058 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11059 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11060 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11061 (BOUNDARY_DEBUG_INSN_P): Likewise.
11062 (SCHEDULE_DEBUG_INSN_P): Likewise.
11063 * sched-rgn.c (init_ready_list): Drop special treatment of
11064 boundary debug insns.
11065 * final.c (rest_of_clean-state): Clear notes' BB.
11067 2011-01-31 Alan Modra <amodra@gmail.com>
11069 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11070 toc relative expressions as we do in print_operand_address.
11072 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11074 * doc/extend.texi: Follow spelling conventions.
11075 * doc/invoke.texi: Fix a typo.
11077 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11079 * config/hpux11.opt: New.
11080 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11081 ia64*-*-hpux*): Use hpux11.opt.
11083 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11085 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11088 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11090 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11093 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11095 * doc/install.texi (Binaries): Remove outdated reference for
11096 Motorola 68HC11/68HC12 downloads.
11098 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11100 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11103 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11106 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11109 2011-01-28 Ahmad Sharif <asharif@google.com>
11111 * value-prof.c (check_counter): Corrected error message.
11113 2011-01-29 Jie Zhang <jie@codesourcery.com>
11115 * config/arm/arm.c (arm_legitimize_reload_address): New.
11116 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11117 arm_legitimize_reload_address.
11118 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11120 2011-01-28 Ian Lance Taylor <iant@google.com>
11122 * godump.c (go_define): Ignore macros whose definitions include
11123 two adjacent operands.
11125 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11128 * varasm.c (force_const_mem): Store copy of x in desc->constant
11129 instead of x itself.
11130 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11131 itself into REG_EQUAL note.
11133 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11135 * config/freebsd.opt (posix, rdynamic): New Driver options.
11137 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11139 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11140 -Bstatic/-Bdynamic.
11141 * configure: Regenerate.
11143 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11145 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11146 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11148 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11150 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11151 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11152 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11153 (s390_preferred_reload_class): Make static. Change return and
11154 'rclass' argument type to reg_class_t.
11156 2011-01-27 Jan Hubicka <jh@suse.cz>
11158 PR middle-end/46949
11159 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11160 (process_function_and_variable_attributes): Check defined weakrefs.
11162 2011-01-27 Martin Jambor <mjambor@suse.cz>
11164 PR tree-optimization/47228
11165 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11166 build_ref_for_offset.
11168 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11170 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11172 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11174 PR rtl-optimization/46856
11175 * postreload.c (reload_combine_recognize_const_pattern): Do not
11176 separate cc0 setter and user on cc0 targets.
11178 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11181 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11182 passed a VOID_TYPE expression, immediately emit an error and
11183 return error_mark_node.
11185 2011-01-26 Jeff Law <law@redhat.com>
11187 PR rtl-optimization/47464
11188 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11189 rather than may_trap_p as needed.
11191 2011-01-26 DJ Delorie <dj@redhat.com>
11193 PR rtl-optimization/46878
11194 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11195 setter/user dependency as well.
11197 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11199 PR rtl-optimization/44469
11200 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11201 after removing trivially dead basic blocks.
11203 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11205 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11206 * config/frv/frv.h (LINK_SPEC): Likewise.
11207 * config/i386/netware.h (LINK_SPEC): Likewise.
11208 * config/m68k/linux.h (ASM_SPEC): Likewise.
11209 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11210 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11211 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11212 * config/sparc/linux.h (ASM_SPEC): Likewise.
11213 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11214 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11216 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11218 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11219 * config/frv/frv.h (ASM_SPEC): Likewise.
11220 * config/m68k/linux.h (ASM_SPEC): Likewise.
11221 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11222 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11223 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11224 * config/sparc/linux.h (ASM_SPEC): Likewise.
11225 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11226 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11228 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11230 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11231 * config/frv/frv.h (LINK_SPEC): Likewise.
11232 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11234 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11236 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11237 * config/frv/frv.h (ASM_SPEC): Likewise.
11238 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11239 * config/m68k/linux.h (ASM_SPEC): Likewise.
11240 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11241 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11242 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11243 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11244 * config/sparc/linux.h (ASM_SPEC): Likewise.
11245 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11246 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11247 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11249 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11252 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11254 (vec_extract_evenodd_help): Ditto.
11255 (vec_extract_evenv4hi): Ditto.
11256 (vec_extract_oddv4hi): Ditto.
11257 (vec_interleave_lowv2si): Ditto.
11258 (vec_interleave_highv2si): Ditto.
11259 (vec_extract_evenv2si): Ditto.
11260 (vec_extract_oddv2si: Ditto.
11261 (vec_pack_trunc_v2si): Ditto.
11263 2011-01-22 Jan Hubicka <jh@suse.cz>
11266 * cgraph.h (cgraph_local_info): New field can_change_signature.
11267 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11268 signature can change.
11269 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11271 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11272 (cgraph_function_versioning): We can not change signature of functions
11273 that don't allow that.
11274 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11275 (lto_input_node): Likewise.
11276 * ipa-inline.c (compute_inline_parameters): Compute
11277 local.can_change_signature.
11278 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11279 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11280 functions that can not change signature.
11281 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11282 init_cumulative_args): Do not use local calling conventions
11283 for functions that can not change signature.
11285 2011-01-22 Jan Hubicka <jh@suse.cz>
11287 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11289 2011-01-26 Richard Guenther <rguenther@suse.de>
11291 PR tree-optimization/47190
11292 * cgraphunit.c (process_common_attributes): New function.
11293 (process_function_and_variable_attributes): Use it.
11295 2011-01-26 Richard Guenther <rguenther@suse.de>
11298 * cgraphbuild.c (record_eh_tables): Record reference to personality
11301 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11304 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11305 non-debug insns from moving up.
11307 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11310 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11311 t-dlldir{,-x} fragment for build and add it to tmake_file.
11312 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11313 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11314 * config/i386/t-dlldir: New file.
11315 (SHLIB_DLLDIR): Define.
11316 * config/i386/t-dlldir-x: New file.
11317 (SHLIB_DLLDIR): Define.
11318 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11319 (SHLIB_INSTALL): Use it.
11321 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11324 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11325 lower bound of the allowed Thumb-2 coprocessor load/store
11326 index range to -256. Add explaining comment.
11328 2011-01-25 Ian Lance Taylor <iant@google.com>
11330 * godump.c (go_define): Improve lexing of macro expansion to only
11331 accept expressions which match Go spec.
11333 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11336 * tree.c (handle_dll_attribute): Handle it.
11337 * doc/extend.texi (@item dllexport): Mention it.
11338 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11340 2011-01-25 Ian Lance Taylor <iant@google.com>
11342 PR tree-optimization/26854
11343 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11344 (decl_jump_unsafe): Move higher in file, with no other change.
11345 (bind): Set has_jump_unsafe_decl if appropriate.
11346 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11347 (check_earlier_gotos): Likewise.
11348 (c_check_switch_jump_warnings): Likewise.
11350 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11352 * doc/invoke.texi (Warning Options): Add missing hyphen.
11353 (-fprofile-dir): Minor grammatical fixes.
11354 (-fbranch-probabilities): Likewise.
11356 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11360 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11362 (no_real_insns_p, schedule_block, set_priorities): Drop special
11363 treatment of boundary debug insns.
11364 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11365 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11366 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11367 (BOUNDARY_DEBUG_INSN_P): Likewise.
11368 (SCHEDULE_DEBUG_INSN_P): Likewise.
11369 * sched-rgn.c (init_ready_list): Drop special treatment of
11370 boundary debug insns.
11371 * final.c (rest_of_clean-state): Clear notes' BB.
11373 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11375 * Makefile.in (LAMBDA_H): Removed.
11376 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11377 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11378 lambda-trans.o, and tree-loop-linear.o.
11379 (lto-symtab.o): Remove dependence on LAMBDA_H.
11380 (tree-loop-linear.o): Remove rule.
11381 (lambda-mat.o): Same.
11382 (lambda-trans.o): Same.
11383 (lambda-code.o): Same.
11384 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11385 (tree-vect-slp.o): Same.
11386 * hwint.h (gcd): Moved here.
11387 (least_common_multiple): Same.
11388 * lambda-code.c: Removed.
11389 * lambda-mat.c: Removed.
11390 * lambda-trans.c: Removed.
11391 * lambda.h: Removed.
11392 * tree-loop-linear.c: Removed.
11393 * lto-symtab.c: Do not include lambda.h.
11394 * omega.c (gcd): Removed.
11395 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11396 * tree-data-ref.c (print_lambda_vector): Moved here.
11397 (lambda_vector_copy): Same.
11398 (lambda_matrix_copy): Same.
11399 (lambda_matrix_id): Same.
11400 (lambda_vector_first_nz): Same.
11401 (lambda_matrix_row_add): Same.
11402 (lambda_matrix_row_exchange): Same.
11403 (lambda_vector_mult_const): Same.
11404 (lambda_vector_negate): Same.
11405 (lambda_matrix_row_negate): Same.
11406 (lambda_vector_equal): Same.
11407 (lambda_matrix_right_hermite): Same.
11408 * tree-data-ref.h: Do not include lambda.h.
11409 (lambda_vector): Moved here.
11410 (lambda_matrix): Same.
11411 (dependence_level): Same.
11412 (lambda_transform_legal_p): Removed declaration.
11413 (lambda_collect_parameters): Same.
11414 (lambda_compute_access_matrices): Same.
11415 (lambda_vector_gcd): Same.
11416 (lambda_vector_new): Same.
11417 (lambda_vector_clear): Same.
11418 (lambda_vector_lexico_pos): Same.
11419 (lambda_vector_zerop): Same.
11420 (lambda_matrix_new): Same.
11421 * tree-flow.h (least_common_multiple): Removed declaration.
11422 * tree-parloops.c (lambda_trans_matrix): Moved here.
11423 (LTM_MATRIX): Same.
11424 (LTM_ROWSIZE): Same.
11425 (LTM_COLSIZE): Same.
11426 (LTM_DENOMINATOR): Same.
11427 (lambda_trans_matrix_new): Same.
11428 (lambda_matrix_vector_mult): Same.
11429 (lambda_transform_legal_p): Same.
11430 * tree-pass.h (pass_linear_transform): Removed declaration.
11431 * tree-ssa-loop.c (tree_linear_transform): Removed.
11432 (gate_tree_linear_transform): Removed.
11433 (pass_linear_transform): Removed.
11434 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11435 flag_loop_interchange.
11437 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11439 PR tree-optimization/47265
11440 PR tree-optimization/47443
11441 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11442 if name still has some uses.
11444 2011-01-25 Martin Jambor <mjambor@suse.cz>
11446 PR tree-optimization/47382
11447 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11448 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11450 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11452 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11453 sjlj_except_unwind_info.
11455 2011-01-25 Richard Guenther <rguenther@suse.de>
11457 PR tree-optimization/47426
11458 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11459 visible functions results escape.
11461 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11464 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11465 (arm_get_frame_offsets): Use it.
11467 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11468 Jakub Jelinek <jakub@redhat.com>
11470 PR tree-optimization/47271
11471 * tree-if-conv.c (bb_postdominates_preds): New.
11472 (if_convertible_bb_p): Call bb_postdominates_preds.
11473 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11474 (predicate_scalar_phi): Call bb_postdominates_preds.
11476 2011-01-25 Nick Clifton <nickc@redhat.com>
11478 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11479 * config/rx/rx.c (rx_function_value): Likewise.
11480 (rx_promote_function_mode): Likewise.
11481 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11482 in order to make it legitimate.
11483 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11484 make sure that the first operand is the same as the result register.
11485 (addsi3_unspec): Delete.
11486 (subdi3): Do not accept immediate operands.
11487 (subdi3_internal): Likewise.
11489 2011-01-25 Jeff Law <law@redhat.com>
11491 PR rtl-optimization/37273
11492 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11493 handle them like argument loads from stack slots. Do not double
11494 count memory for memory constants and argument loads from stack slots.
11496 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11498 PR tree-optimization/47427
11499 PR tree-optimization/47428
11500 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11501 coalesce if the new root var would be TREE_READONLY.
11503 2011-01-25 Richard Guenther <rguenther@suse.de>
11505 PR middle-end/47414
11506 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11507 correct type for TBAA.
11509 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11511 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11512 (close_phi_written_to_memory): Call for_each_index with
11513 dr_indices_valid_in_loop.
11515 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11517 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11518 when it is initialized.
11520 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11522 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11523 call to graphite_find_data_references_in_stmt.
11524 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11525 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11526 call to graphite_find_data_references_in_stmt.
11527 (analyze_drs_in_stmts): Same.
11528 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11529 in which the scalar analysis of indices is performed.
11530 (create_data_ref): Same. Update call to dr_analyze_indices.
11531 (find_data_references_in_stmt): Update call to create_data_ref.
11532 (graphite_find_data_references_in_stmt): Same.
11533 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11535 (create_data_ref): Same.
11536 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11537 call to create_data_ref.
11539 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11541 * graphite-sese-to-poly.c (build_poly_scop): Move
11542 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11544 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11546 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11547 VAR_DECL, PARM_DECL, and RESULT_DECL.
11549 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11551 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11552 in a reduction PBB.
11553 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11554 that have already been marked as PBB_IS_REDUCTION.
11556 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11558 * graphite-scop-detection.c (same_close_phi_node): New.
11559 (remove_duplicate_close_phi): New.
11560 (make_close_phi_nodes_unique): New.
11561 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11563 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11565 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11566 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11567 of both data references to be the same.
11569 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11571 * graphite-dependences.c (build_lexicographical_constraint): Remove
11572 the gdim parameter.
11573 (build_lexicographical_constraint): Adjust call to
11574 ppl_powerset_is_empty.
11575 (dependence_polyhedron): Same.
11576 (graphite_legal_transform_dr): Same.
11577 (graphite_carried_dependence_level_k): Same.
11578 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11580 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11582 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11584 * graphite-sese-to-poly.c
11585 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11586 (close_phi_written_to_memory): New.
11587 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11590 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11592 * doc/install.texi: Update the expected version number of PPL to 0.11.
11593 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11594 #if PPL_VERSION_MINOR < 11.
11596 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11598 * graphite-dependences.c: Include graphite-cloog-util.h.
11599 (new_poly_ddr): Inlined into dependence_polyhedron.
11600 (free_poly_ddr): Moved close by new_poly_ddr.
11601 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11602 Early return NULL when ppl_powerset_is_empty returns true.
11603 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11604 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11605 (graphite_legal_transform_dr): Call new_poly_ddr.
11606 (graphite_carried_dependence_level_k): Same.
11607 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11608 (dot_transformed_deps_stmt_1): Removed.
11609 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11610 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11611 (dot_deps_1): Call dot_deps_2.
11612 * Makefile.in (graphite-dependences.o): Add missing dependence on
11613 graphite-cloog-util.h.
11615 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11617 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11618 (build_lexicographical_constraint): Same.
11619 (dependence_polyhedron_1): Same.
11620 (graphite_legal_transform_dr): Same.
11621 (graphite_carried_dependence_level_k): Same.
11622 * graphite-ppl.c (ppl_powerset_is_empty): New.
11623 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11624 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11626 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11628 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11629 the "a followed by b" relation and document it.
11631 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11633 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11634 iteration when the bag of constraints is empty.
11636 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11638 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11640 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11642 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11643 nest and two loop depths as parameters.
11644 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11645 lst_perfect_nestify.
11647 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11649 * graphite-dependences.c (print_pddr): Call
11650 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11652 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11654 * graphite-ppl.c (debug_gmp_value): New.
11655 * graphite-ppl.h (debug_gmp_value): Declared.
11657 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
11659 * doc/install.texi: Document availability of cloog-0.16.
11661 2011-01-25 Vladimir Kargov <kargov@gmail.com>
11663 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11664 invalid postdominance info.
11666 2011-01-24 Jan Hubicka <jh@suse.cz>
11669 * doc/extend.texi (weak pragma): Drop claim that it must
11670 appear before definition.
11671 * varasm.c (merge_weak, declare_weak): Only sanity check
11672 that DECL is not output at a time it is declared weak.
11674 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
11676 * machmode.def: Fixed comments.
11678 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
11680 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11682 2011-01-24 Paul Koning <ni1d@arrl.net>
11684 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11687 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
11690 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11691 (block_info): Add scanned and prev.
11692 (move_or_delete_vzeroupper_2): Return if the basic block
11693 has been scanned and the upper 128bit state is unchanged
11694 from the last scan.
11695 (move_or_delete_vzeroupper_1): Return true if the exit
11697 (move_or_delete_vzeroupper): Visit basic blocks using the
11698 work-list based algorithm based on vt_find_locations in
11701 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11703 2011-01-24 Nick Clifton <nickc@redhat.com>
11705 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11706 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11707 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
11708 then define __v850e1__.
11709 * doc/invoke.texi: Document -mv850es.
11711 2011-01-24 Richard Henderson <rth@redhat.com>
11713 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11714 compound unordered comparisons.
11715 * config/rx/rx.c (rx_split_fp_compare): Remove.
11716 * config/rx/rx-protos.h: Update.
11717 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11718 (cbranchsf4): Don't call rx_split_fp_compare.
11719 (*cbranchsf4): Use rx_split_cbranch.
11720 (*cmpsf): Don't accept "i" constraint.
11721 (*conditional_branch): Only valid after reload.
11722 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
11724 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11727 * config/rs6000/altivec.md (vector constant splitters): Add
11728 support for creating vector single precision constants if -mvsx is
11729 used and we would create the constant using Altivec primitives.
11731 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
11732 Richard Sandiford <rdsandiford@googlemail.com>
11734 PR rtl-optimization/47166
11735 * reload1.c (emit_reload_insns): Disable the spill_reg_store
11736 mechanism for PRE_MODIFY and POST_MODIFY.
11737 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
11740 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
11742 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
11744 2011-01-22 Jan Hubicka <jh@suse.cz>
11747 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
11749 2011-01-22 Jan Hubicka <jh@suse.cz>
11751 PR tree-optimization/43884
11753 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
11754 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
11756 2011-01-22 Anatoly Sokolov <aesok@post.ru>
11758 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11759 * config/s390/s390.c (s390_register_move_cost,
11760 s390_memory_move_cost): New.
11761 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11763 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11765 PR middle-end/47401
11766 * except.c (sjlj_assign_call_site_values): Move setting the
11767 crtl->uses_eh_lsda flag to ...
11768 (sjlj_mark_call_sites): ... here.
11769 (sjlj_emit_function_enter): Support NULL dispatch label.
11770 (sjlj_build_landing_pads): In a function with no landing pads
11771 that still has must-not-throw regions, generate code to register
11772 a personality function with empty LSDA.
11774 2011-01-21 Richard Henderson <rth@redhat.com>
11776 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
11778 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
11780 * compare-elim.c: New file.
11781 * Makefile.in (OBJS-common): Add it.
11782 (compare-elim.o): New.
11783 * common.opt (fcompare-elim): New.
11784 * opts.c (default_options_table): Add OPT_fcompare_elim.
11785 * tree-pass.h (pass_compare_elim_after_reload): New.
11786 * passes.c (init_optimization_passes): Add it.
11787 * recog.h: Protect against re-inclusion.
11788 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
11789 * doc/invoke.texi (-fcompare-elim): Document it.
11790 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
11791 * doc/tm.texi: Rebuild.
11793 2011-01-22 Nick Clifton <nickc@redhat.com>
11795 * config/rx/rx.md (cstoresf4): Pass comparison operator to
11796 rx_split_fp_compare.
11798 2011-01-22 Nick Clifton <nickc@redhat.com>
11800 * config/rx/rx.md (UNSPEC_CONST): New.
11801 (deallocate_and_return): Wrap the amount popped off the stack in
11802 an UNSPEC_CONST in order to stop it being rejected by
11803 -mmax-constant-size.
11804 (pop_and_return): Add a "(return)" rtx.
11805 (call): Drop the immediate operand.
11806 (call_internal): Likewise.
11807 (call_value): Likewise.
11808 (call_value_internal): Likewise.
11809 (sibcall_internal): Likewise.
11810 (sibcall_value_internal): Likewise.
11811 (sibcall): Likewise. Generate an explicit call using
11813 (sibcall_value): Likewise.
11814 (mov<>): FAIL if a constant operand is not legitimate.
11815 (addsi3_unpsec): New pattern.
11817 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
11818 (ok_for_max_constant): New function.
11819 (gen_safe_add): New function.
11820 (rx_expand_prologue): Use gen_safe_add.
11821 (rx_expand_epilogue): Likewise.
11822 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
11825 2011-01-21 Jeff Law <law@redhat.com>
11827 PR tree-optimization/47053
11828 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
11829 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
11830 statements are deleted.
11831 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
11832 is nonempty, then purge dead edges and cleanup the CFG.
11834 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11837 Temporarily revert:
11838 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11840 * tree-dfa.c (create_var_ann): Mark variable as used.
11842 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11844 PR middle-end/45566
11845 * except.c (convert_to_eh_region_ranges): Emit queued no-region
11846 notes from other section in hot/cold partitioning even if
11847 last_action is -3. Increment call_site_base.
11849 PR rtl-optimization/47366
11850 * fwprop.c (forward_propagate_into): Return bool. If
11851 any changes are made, -fnon-call-exceptions is used and
11852 REG_EH_REGION note is present, call purge_dead_edges
11853 and return true if it purged anything.
11854 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
11855 any EH edges were purged.
11857 2011-01-21 Jeff Law <law@redhat.com>
11859 PR rtl-optimization/41619
11860 * caller-save.c (setup_save_areas): Break out code to determine
11861 which hard regs are live across calls by examining the reload chains
11862 so that it is always used.
11863 Eliminate code which checked REG_N_CALLS_CROSSED.
11865 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11867 PR tree-optimization/47355
11868 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
11869 NOP has non-debug uses beyond PHIs in new_bb.
11871 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11874 * cfgexpand.c (account_used_vars_for_block): Only account vars
11875 that are annotated as used.
11876 (estimated_stack_frame_size): Don't set TREE_USED.
11877 * tree-dfa.c (create_var_ann): Mark variable as used.
11879 2011-01-21 Richard Guenther <rguenther@suse.de>
11881 PR middle-end/47395
11882 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
11884 2011-01-21 Richard Guenther <rguenther@suse.de>
11886 PR tree-optimization/47365
11887 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
11888 (vn_reference_lookup_pieces): Adjust.
11889 (vn_reference_lookup): Likewise.
11890 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
11891 (vn_reference_lookup_3): Only look through kills if in
11892 VN_WALKREWRITE mode.
11893 (vn_reference_lookup_pieces): Adjust.
11894 (vn_reference_lookup): Likewise.
11895 (visit_reference_op_load): Likewise.
11896 (visit_reference_op_store): Likewise.
11897 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
11898 (compute_avail): Likewise.
11899 (eliminate): Likewise.
11901 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11903 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
11904 DECL_IGNORED_P non-reg vars if they are used.
11906 PR tree-optimization/47391
11907 * varpool.c (const_value_known_p): Return false if
11910 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
11913 * config/i386/i386.c (ix86_local_alignment): Handle
11914 case for va_list_type_node is nil.
11915 (ix86_canonical_va_list_type): Likewise.
11917 2011-01-21 Alan Modra <amodra@gmail.com>
11919 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
11920 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
11922 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11924 * config/arm/arm.md (define_attr type): Rename f_load
11925 and f_store to f_fpa_load and f_fpa_store. Update.
11926 (write_conflict): Deal with rename fallout.
11927 (*push_fp_multi): Likewise.
11928 * config/arm/fpa.md (f_load): Use f_fpa_load.
11929 (f_store): Use f_fpa_store.
11930 (*movsf_fpa): Likewise.
11931 (*movdf_fpa): Likewise.
11932 (*movxf_fpa): Likewise.
11933 (*thumb2_movsf_fpa): Likewise.
11934 (*thumb2_movdf_fpa): Likewise.
11935 (*thumb2_movxf_fpa): Likewise.
11936 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
11937 f_loadd and f_stored.
11938 (*thumb2_movdi_vfp): Likewise.
11939 (*thumb2_movsf_vfp): Fix attribute to f_loads.
11940 (*thumb2_movsi_vfp): Likewise.
11941 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
11942 Use f_loads instead of f_load.
11943 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
11945 2011-01-20 Anatoly Sokolov <aesok@post.ru>
11947 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11948 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
11949 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11950 (xtensa_mode_dependent_address_p): New function.
11951 (constantpool_address_p): Make static. Change return type to bool.
11952 Change argument type to const_rtx. Use CONST_INT_P predicate.
11954 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
11957 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
11959 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11962 * cfgexpand.c (expand_debug_expr): Instead of generating
11963 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
11966 2011-01-20 Richard Guenther <rguenther@suse.de>
11968 PR middle-end/47370
11969 * tree-inline.c (remap_gimple_op_r): Recurse manually for
11970 the pointer operand of MEM_REFs.
11972 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11974 PR tree-optimization/46130
11975 * ipa-split.c (consider_split): If return_bb contains non-virtual
11976 PHIs other than for retval or if split_function would not adjust it,
11979 2011-01-20 Richard Guenther <rguenther@suse.de>
11981 PR tree-optimization/47167
11982 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
11983 Revert previous change, only avoid enumeral type changes.
11985 2011-01-19 Mike Stump <mikestump@comcast.net>
11987 * doc/tm.texi.in (BRANCH_COST): Englishify.
11988 * doc/tm.texi (BRANCH_COST): Likewise.
11990 2011-01-19 Dodji Seketeli <dodji@redhat.com>
11993 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
11994 (gen_scheduled_generic_parms_dies): New functions.
11995 (gen_struct_or_union_type_die): Schedule template parameters DIEs
11996 generation for the end of CU compilation.
11997 (dwarf2out_finish): Generate template parameters DIEs here.
11999 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12002 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12003 debug bind stmt on merge edges.
12005 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12009 * function.c (instantiate_expr): Instantiate incoming rtl of
12010 implicit arguments, and recurse on VALUE_EXPRs.
12011 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12012 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12014 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12016 * c-parser.c (c_parser_for_statement): Initialize
12017 collection_expression.
12019 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12021 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12023 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12025 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12026 (LINK_SHLIB_SPEC): Don't use %(link_path).
12027 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12029 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12031 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12032 (NO_SHARED_LIB_SUPPORT): Remove.
12033 (LINK_SHLIB_SPEC): Remove one conditional definition.
12035 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12037 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12039 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12040 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12041 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12042 %{call_shared} and conditionals on these options not being passed.
12043 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12046 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12048 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12051 * ipa-split.c: Spelling fixes.
12053 2011-01-19 Richard Henderson <rth@redhat.com>
12055 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12056 (*mulsi3): Likewise.
12058 * longlong.h [__mn10300__] (count_leading_zeros): New.
12059 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12060 [__mn10300__] (add_ssaaaa, subddmmss): New.
12061 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12062 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12064 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12066 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12068 2011-01-19 Richard Henderson <rth@redhat.com>
12070 * config/mn10300/mn10300.md (addsi3_flags): New.
12071 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12072 (subsi3_flags, subc_internal, subdi3): New.
12073 (subdi3_internal, *subdi3_degenerate): New.
12074 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12076 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12077 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12078 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12079 * config/mn10300/mn10300-protos.h: Update.
12080 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12081 (return_ret): Likewise. Rename from return_internal_regs.
12082 (return_internal): Remove.
12084 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12085 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12086 (mn10300_legitimate_constant_p): Likewise.
12087 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12088 (mn10300_frame_size): New.
12089 (mn10300_expand_prologue): Use it.
12090 (mn10300_expand_epilogue): Likewise.
12091 (mn10300_initial_offset): Likewise.
12092 * config/mn10300/mn10300-protos.h: Update.
12093 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12094 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12095 (prologue, epilogue, return_internal): Tidy output code.
12096 (mn10300_store_multiple_operation, return): Likewise.
12097 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12098 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12099 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12100 (load_pic, am33_load_pic): New.
12101 (mn10300_load_pic0, mn10300_load_pic1): New.
12103 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12104 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12105 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12106 (cc_flags_for_mode, cc_flags_for_code): New.
12107 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12108 overflow flag is not valid. Validate that the flags we need
12109 for the comparison are valid.
12110 (mn10300_output_cmp): Remove.
12111 (mn10300_output_add): New.
12112 (mn10300_select_cc_mode): Use cc_flags_for_code.
12113 (mn10300_split_cbranch): New.
12114 (mn10300_match_ccmode): New.
12115 (mn10300_split_and_operand_count): New.
12116 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12118 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12119 (addsi3): ... here. Use mn10300_output_add.
12120 (*addsi3_flags): New.
12121 (*am33_subsi3, *mn10300_subsi3): Merge...
12122 (subsi3): ... here. Use attribute isa.
12123 (*subsi3_flags): New.
12124 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12126 (*am33_andsi3, *mn10300_andsi3): Merge...
12127 (andsi3): ... here.
12128 (*andsi3_flags): New.
12129 (andsi3 splitters): New.
12130 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12131 (iorsi3): ... here.
12132 (*iorsi3_flags): New.
12133 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12134 (xorsi3): ... here.
12135 (*xorsi3_flags): New.
12136 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12137 (one_cmplsi2): ... here.
12138 (*one_cmplsi2_flags): New.
12139 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12140 instead of "dax" in constraints. Use mn10300_split_cbranch.
12141 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12142 use matching constraints to eliminate a self-comparison.
12143 (*integer_conditional_branch): Rename from integer_conditional_branch.
12144 Use int_mode_flags to match CC_REG.
12145 (*cbranchsi4_btst, *btstsi): New.
12146 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12147 mn10300_split_cbranch.
12148 (*am33_cmpsf): Rename from am33_cmpsf.
12149 (*float_conditional_branch): Rename from float_conditional_branch.
12150 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12151 (zero_extendqisi2): ... here.
12152 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12153 (zero_extendhisi2): ... here.
12154 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12155 (extendqisi2): ... here.
12156 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12157 (extendhisi2): ... here.
12158 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12159 (ashlsi3): ... here.
12160 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12161 (lshrsi3): ... here.
12162 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12163 (ashrsi3): ... here.
12164 (consecutive add peephole): Remove.
12165 * config/mn10300/predicates.md (label_ref_operand): New.
12166 (int_mode_flags): New.
12167 (CCZN_comparison_operator): New.
12169 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12170 (throughput_42_latency_43): New reservation.
12171 (mulsidi3, umulsidi3): New expanders.
12172 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12173 the MDR register to allocation; separately allocate the low and
12174 high parts of the DImode result.
12175 (umulsidi3_internal): Similarly.
12176 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12177 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12178 (udivsi3, umodsi3): Remove.
12179 (udivmodsi4, divmodsi4): New expanders.
12180 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12181 (*divmodsi4): Simiarly.
12182 (ext_internal): New.
12184 * config/mn10300/constraints.md ("z"): New constraint.
12185 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12186 (FIXED_REGISTERS): Don't fix MDR.
12187 (CALL_USED_REGSITERS): Reformat nicely.
12188 (REG_ALLOC_ORDER): Add MDR.
12189 (enum regclass): Add MDR_REGS.
12190 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12191 (IRA_COVER_CLASSES): Add MDR_REGS.
12192 (REGNO_REG_CLASS): Handle MDR_REG.
12193 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12194 (mn10300_register_move_cost): Likewise.
12195 * config/mn10300/mn10300.md (MDR_REG): New.
12196 (*movsi_internal): Handle moves to/from MDR_REGS.
12198 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12200 (mn10300_secondary_reload): Tidy combination reload classes.
12201 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12202 addresses for AM33. Allow symbolic offsets for reg+imm.
12203 (mn10300_regno_in_class_p): New.
12204 (mn10300_legitimize_reload_address): New.
12205 * config/mn10300/mn10300.h (enum reg_class): Remove
12206 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12207 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12208 SP_OR_GENERAL_REGS.
12209 (REG_CLASS_NAMES): Update to match.
12210 (REG_CLASS_CONTENTS): Likewise.
12211 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12212 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12213 (REGNO_IN_RANGE_P): Remove.
12214 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12215 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12216 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12217 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12218 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12219 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12220 (REGNO_GENERAL_P): New.
12221 (HAVE_POST_MODIFY_DISP): New.
12222 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12223 (LEGITIMIZE_RELOAD_ADDRESS): New.
12224 * config/mn10300/mn10300-protos.h: Update.
12226 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12227 DATA_REGS for AM33 stack-pointer destination.
12228 (mn10300_preferred_output_reload_class): Likewise.
12229 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12230 into a form appropriate for ...
12231 (TARGET_SECONDARY_RELOAD): New.
12232 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12233 * config/mn10300/mn10300-protos.h: Update.
12234 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12235 reload_insi; use the "A" constraint for the scratch; handle AM33
12236 moves of sp to non-address registers.
12238 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12239 (*movqi_internal): ... here.
12240 (*am33_movhi, *mn10300_movhi): Merge into...
12241 (*movhi_internal): ... here.
12242 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12243 as the source/destination of moves from/to SP.
12244 (movsf): Only allow for AM33-2.
12245 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12246 any integer constant constraint. Only allow for AM33-2. Tidy
12247 all of the alternative outputs.
12248 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12249 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12251 (udivsi3, umodsi3): New patterns for MN103 only.
12253 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12255 * doc/tm.texi.in: Spell out that a lack of register class unions
12257 * doc/tm.texi: Regenerate.
12259 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12261 PR rtl-optimization/47337
12262 * dce.c (check_argument_store): New function.
12263 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12265 PR tree-optimization/47290
12266 * tree-eh.c (infinite_empty_loop_p): New function.
12267 (cleanup_empty_eh): Use it.
12269 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12272 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12273 (a64_expand_widen_sum): Ditto.
12274 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12275 (vec_extract_evenodd_help): Ditto.
12276 (vec_extract_evenv4hi): Ditto.
12277 (vec_extract_oddv4hi): Ditto.
12278 (vec_extract_evenv2si): Ditto.
12279 (vec_extract_oddv2si): Ditto.
12280 (vec_extract_evenv2sf): Ditto.
12281 (vec_extract_oddv2sf): Ditto.
12282 (vec_pack_trunc_v4hi: Ditto.
12283 (vec_pack_trunc_v2si): Ditto.
12284 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12285 (vec_interleave_highv8qi): Ditto.
12287 (vec_extract_oddv8qi): Ditto.
12288 (vec_interleave_lowv4hi): Ditto.
12289 (vec_interleave_highv4hi): Ditto.
12290 (vec_interleave_lowv2si): Ditto.
12291 (vec_interleave_highv2si): Ditto.
12293 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12295 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12296 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12297 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12298 (pa_c_mode_for_suffix): New.
12299 (TARGET_EXPAND_BUILTIN): Define.
12300 (TARGET_C_MODE_FOR_SUFFIX): Define.
12301 (pa_builtins): Define.
12302 (pa_init_builtins): Register __float128 type and init new support
12304 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12305 * config/pa/quadlib.c (_U_Qfcopysign): New.
12307 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12309 PR middle-end/46894
12310 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12311 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12314 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12316 PR tree-optimization/47179
12317 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12318 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12320 2011-01-18 Richard Guenther <rguenther@suse.de>
12322 PR rtl-optimization/47216
12323 * emit-rtl.c: Include tree-flow.h.
12324 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12325 of replicating it with different semantics.
12326 * Makefile.in (emit-rtl.o): Adjust.
12328 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12330 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12331 (cortex_a9_dp): Handle neon types correctly.
12333 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12335 PR rtl-optimization/47299
12336 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12337 subtarget. Use normal multiplication if both operands are constants.
12338 * expmed.c (expand_widening_mult): Don't try to optimize constant
12339 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12342 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12344 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12345 spacing after 'e.g.', typos, comma, hyphenation.
12347 2011-01-17 Richard Henderson <rth@redhat.com>
12349 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12350 (rx_restricted_mem_operand): New.
12351 (rx_shift_operand): Use register_operand.
12352 (rx_source_operand, rx_compare_operand): Likewise.
12353 * config/rx/rx.md (addsi3_flags): New expander.
12354 (adddi3): Rewrite as expander.
12355 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12356 (subsi3_flags): New expander.
12357 (subdi3): Rewrite as expander.
12358 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12360 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12361 (rx_init_builtins): Remove sat builtin.
12362 (rx_expand_builtin): Likewise.
12363 * config/rx/rx.md (ssaddsi3): New.
12364 (*sat): Rename from sat. Represent the CC_REG input.
12366 * config/rx/predicates.md (rshift_operator): New.
12367 * config/rx/rx.c (rx_expand_insv): Remove.
12368 * config/rx/rx-protos.h: Update.
12369 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12370 operand to the canonical position.
12371 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12372 (*bitclr, *bitclr_in_memory): Similarly.
12373 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12374 (insv): Retain the zero_extract in the expansion.
12376 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12377 (bswaphi2, bitinvert, revw): Likewise.
12379 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12380 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12381 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12382 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12383 (bitset, bitset_in_memory): Likewise.
12384 (bitinvert, bitinvert_in_memory): Likewise.
12385 (bitclr, bitclr_in_memory): Likewise.
12386 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12387 (rx_strend, rx_cmpstrn): Likewise.
12388 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12389 (bitop peep2 patterns): Remove.
12391 * config/rx/rx.c (rx_match_ccmode): New.
12392 * config/rx/rx-protos.h: Update.
12393 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12394 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12395 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12396 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12397 (fix_truncsfsi2, floatsisf2): Likewise.
12398 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12399 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12400 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12401 (*subsi3_flags, *xorsi3_flags): New.
12403 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12405 * config/rx/rx.c (rx_print_operand): Remove workaround for
12406 unsplit comparison operations.
12408 * config/rx/rx.md (movsicc): Split after reload.
12409 (*movsicc): Merge *movsieq and *movsine via match_operator.
12410 (*stcc): New pattern.
12412 * config/rx/rx.c (rx_float_compare_mode): Remove.
12413 * config/rx/rx.h (rx_float_compare_mode): Remove.
12414 * config/rx/rx.md (cstoresi4): Split after reload.
12415 (*sccc): New pattern.
12417 * config/rx/predicates.md (label_ref_operand): New.
12418 (rx_z_comparison_operator): New.
12419 (rx_zs_comparison_operator): New.
12420 (rx_fp_comparison_operator): New.
12421 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12422 Validate that the flags are set properly for the comparison.
12423 (rx_gen_cond_branch_template): Remove.
12424 (rx_cc_modes_compatible): Remove.
12425 (mode_from_flags): New.
12426 (flags_from_code): Rename from flags_needed_for_conditional.
12427 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12428 (rx_select_cc_mode): Likewise.
12429 (rx_split_fp_compare): New.
12430 (rx_split_cbranch): New.
12431 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12432 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12433 (*cbranchsf4): Similarly.
12434 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12435 match_operator and rx_split_cbranch.
12436 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12437 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12438 (*cmpsi): Rename from cmpsi.
12439 (*tstsi): Rename from tstsi.
12440 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12441 (*conditional_branch): Rename from conditional_branch.
12442 (*reveresed_conditional_branch): Remove.
12443 (b<code>): Remove expander.
12444 * config/rx/rx-protos.h: Update.
12446 * config/rx/rx.c (rx_compare_redundant): Remove.
12447 * config/rx/rx.md (cmpsi): Don't use it.
12448 * config/rx/rx-protos.h: Update.
12450 * config/rx/rx-modes.def (CC_F): New mode.
12451 * config/rx/rx.c (rx_select_cc_mode): New.
12452 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12453 * config/rx/rx-protos.h: Update.
12455 2011-01-17 Richard Henderson <rth@redhat.com>
12457 * except.c (dump_eh_tree): Fix stray ; after for statement.
12459 2011-01-17 Richard Guenther <rguenther@suse.de>
12461 PR tree-optimization/47313
12462 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12463 handling before copying the body. Properly deal with
12464 by-reference result in SSA form.
12466 2011-01-17 Ian Lance Taylor <iant@google.com>
12469 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12470 (struct_value_alias_set): Don't define.
12471 (sparc_option_override): Don't set sparc_sr_alias_set and
12472 struct_value_alias_set.
12473 (save_or_restore_regs): Use gen_frame_mem rather than calling
12475 (sparc_struct_value_rtx): Likewise.
12477 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12480 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12481 (_mm_maskstore_pd): Likewise.
12482 (_mm_maskload_ps): Likewise.
12483 (_mm_maskstore_ps): Likewise.
12484 (_mm256_maskload_pd): Change mask to __m256i.
12485 (_mm256_maskstore_pd): Likewise.
12486 (_mm256_maskload_ps): Likewise.
12487 (_mm256_maskstore_ps): Likewise.
12489 * config/i386/i386-builtin-types.def: Updated.
12490 (ix86_expand_special_args_builtin): Likewise.
12492 * config/i386/i386.c (bdesc_special_args): Update
12493 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12494 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12495 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12496 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12498 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12499 Use <avxpermvecmode> on mask register.
12500 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12502 2011-01-17 Olivier Hainque <hainque@adacore.com>
12503 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12504 Eric Botcazou <ebotcazou@adacore.com>
12507 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12508 if <= USHRT_MAX in 32-bit mode.
12510 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12512 * doc/install.texi (Configuration, Specific): Wrap long
12513 lines in examples. Allow line wrapping in long options
12514 and URLs where beneficial for PDF output.
12516 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12518 * config/mips/mips.c (mips_classify_symbol): Don't return
12519 SYMBOL_PC_RELATIVE for nonlocal labels.
12521 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12523 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12525 2011-01-15 Jan Hubicka <jh@suse.cz>
12527 PR tree-optimization/47276
12528 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12529 declarations as needed.
12531 2011-01-15 Martin Jambor <mjambor@suse.cz>
12533 * common.opt (fdevirtualize): New flag.
12534 * doc/invoke.texi (Option Summary): Document it.
12535 * opts.c (default_options_table): Add devirtualize flag.
12536 * ipa-prop.c (detect_type_change): Return immediately if
12537 devirtualize flag is not set.
12538 (detect_type_change_ssa): Likewise.
12539 (compute_known_type_jump_func): Likewise.
12540 (ipa_analyze_virtual_call_uses): Likewise.
12542 2011-01-14 Martin Jambor <mjambor@suse.cz>
12544 PR tree-optimization/45934
12545 PR tree-optimization/46302
12546 * ipa-prop.c (type_change_info): New type.
12547 (stmt_may_be_vtbl_ptr_store): New function.
12548 (check_stmt_for_type_change): Likewise.
12549 (detect_type_change): Likewise.
12550 (detect_type_change_ssa): Likewise.
12551 (compute_complex_assign_jump_func): Check for dynamic type change.
12552 (compute_complex_ancestor_jump_func): Likewise.
12553 (compute_known_type_jump_func): Likewise.
12554 (compute_scalar_jump_functions): Likewise.
12555 (ipa_analyze_virtual_call_uses): Likewise.
12556 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12558 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12560 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12561 * config/i386/i386.opt (msse5): New Alias.
12563 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12565 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12566 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12567 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12568 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12570 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12572 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12574 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12575 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12576 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12577 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12579 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12581 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12583 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12585 2011-01-14 Mike Stump <mikestump@comcast.net>
12587 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12588 * config/fr30/fr30.md: Likweise
12589 (movsi_push): Likewise.
12590 (movsi_pop): Likewise.
12591 (enter_func): Likewise.
12592 * config/moxie/moxie.md (movsi_push): Likewise.
12593 (movsi_pop): Likewise.
12595 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12597 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12598 %{no_archive} %{exact_version}.
12599 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12600 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12601 %{no_archive} %{exact_version}.
12602 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12603 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12604 * config/mips/vxworks.h: Likewise.
12606 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12608 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12610 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12612 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12613 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12615 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12617 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12620 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12622 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12624 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12625 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12627 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12628 Don't handle -shlib.
12630 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12632 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12633 (CC1_SPEC): Don't handle -profile.
12635 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12637 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12638 * config/mips/mips.h (CC1_SPEC): Likewise.
12640 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12642 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12643 * config/mips/mips.h (CC1_SPEC): Likewise.
12645 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12647 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12648 * config/m32r/linux.h (LINK_SPEC): Likewise.
12649 * config/mips/linux.h (LINK_SPEC): Likewise.
12650 * config/mips/linux64.h (LINK_SPEC): Likewise.
12651 * config/sparc/linux.h (LINK_SPEC): Likewise.
12652 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12653 LINK_SPEC): Likewise.
12654 * config/xtensa/linux.h (LINK_SPEC): Likewise.
12656 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12658 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12660 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12662 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12664 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12665 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12667 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12669 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12671 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12673 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12674 supports -Bstatic/-Bdynamic.
12675 * configure: Regenerate.
12677 2011-01-14 Jan Hubicka <jh@suse.cz>
12678 Jack Howarth <howarth@bromo.med.uc.edu>
12681 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12682 when checking debug_info_level. Test write_symbols instead of
12683 debug_hooks->var_location when setting flag_var_tracking_uninit.
12685 2011-01-14 Richard Guenther <rguenther@suse.de>
12687 PR tree-optimization/47179
12688 * target.def (ref_may_alias_errno): New target hook.
12689 * targhooks.h (default_ref_may_alias_errno): Declare.
12690 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12691 (default_ref_may_alias_errno): New function.
12692 * target.h (struct ao_ref_s): Declare.
12693 * tree-ssa-alias.c: Include target.h.
12694 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12695 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12696 (targhooks.o): Likewise.
12697 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12698 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12700 2011-01-14 Richard Guenther <rguenther@suse.de>
12702 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
12704 2011-01-14 Richard Guenther <rguenther@suse.de>
12706 PR tree-optimization/47280
12707 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12708 return CFG changes.
12709 (tree_ssa_forward_propagate_single_use_vars): Deal with
12710 CFG changes from associate_plusminus.
12712 2011-01-14 Richard Guenther <rguenther@suse.de>
12714 PR middle-end/47281
12716 2011-01-11 Richard Guenther <rguenther@suse.de>
12718 PR tree-optimization/46076
12719 * tree-ssa.c (useless_type_conversion_p): Conversions from
12720 unprototyped to empty argument list function types are useless.
12722 2011-01-14 Richard Guenther <rguenther@suse.de>
12724 PR tree-optimization/47286
12725 * tree-ssa-structalias.c (new_var_info): Register variables are global.
12727 2011-01-14 Martin Jambor <mjambor@suse.cz>
12729 PR middle-end/46823
12730 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12732 2011-01-13 Anatoly Sokolov <aesok@post.ru>
12734 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
12735 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12736 * config/xtensa/xtensa.c (xtensa_libcall_value,
12737 xtensa_function_value_regno_p): New functions.
12738 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12740 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
12743 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
12745 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
12746 New function prototype.
12747 * config/i386/winnt.c (i386_pe_assemble_visibility):
12748 Warn only if attribute was specified by user.
12750 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12753 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
12755 (floatunsdidf2_fcfidu): Ditto.
12757 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12759 * config/s390/s390.c (print_operand_address): Replace 'error' with
12760 'output_operand_lossage'.
12761 (print_operand): Likewise.
12763 2011-01-13 Jeff Law <law@redhat.com>
12765 PR rtl-optimization/39077
12766 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
12767 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
12768 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
12769 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
12770 * gcse.c (prune_insertions_deletions): New function.
12771 (compute_pre_data): Use it.
12773 2011-01-13 Dodji Seketeli <dodji@redhat.com>
12776 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
12778 (prune_unused_types_mark): Use it.
12780 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
12782 PR rtl-optimization/45352
12783 * sel-sched.c: Update copyright years.
12784 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
12785 in the advancing loop when we have issued issue_rate insns.
12787 2011-01-12 Richard Henderson <rth@redhat.com>
12789 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
12790 (TARGET_MD_ASM_CLOBBERS): New.
12792 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
12793 (TARGET_DELEGITIMIZE_ADDRESS): New.
12795 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
12796 (clzsi2, *bsch): New patterns.
12798 * config/mn10300/mn10300.md (INT): New mode iterator.
12799 (*mov<INT>_clr): New pattern, and peep2 to generate it.
12801 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
12802 flag_split_wide_types.
12804 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
12805 (mn10300_trampoline_init): Rewrite without a template, an immediate
12806 load and a direct branch.
12807 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
12809 2011-01-12 Anatoly Sokolov <aesok@post.ru>
12811 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12812 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
12813 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
12814 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12816 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
12819 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
12822 2011-01-12 Jan Hubicka <jh@suse.cz>
12825 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
12826 (PLUGIN_COND_CLOSE): New macro.
12827 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
12829 2011-01-12 Richard Guenther <rguenther@suse.de>
12832 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
12833 register variables in a MEM_REF.
12835 2011-01-12 Joseph Myers <joseph@codesourcery.com>
12837 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
12838 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
12839 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
12840 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12841 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12842 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
12843 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
12844 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
12845 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
12846 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
12847 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
12848 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
12849 * config/gnu-user.h: New. Copied from linux.h.
12850 (LINUX_TARGET_STARTFILE_SPEC): Rename to
12851 GNU_USER_TARGET_STARTFILE_SPEC.
12852 (LINUX_TARGET_ENDFILE_SPEC): Rename to
12853 GNU_USER_TARGET_ENDFILE_SPEC.
12854 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
12855 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
12856 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
12857 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
12858 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
12859 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
12860 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
12861 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
12862 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
12863 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
12864 * config/arm/linux-eabi.h (CC1_SPEC): Use
12865 GNU_USER_TARGET_CC1_SPEC.
12866 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
12867 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
12868 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
12869 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
12870 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
12871 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
12872 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
12873 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
12875 2011-01-12 Richard Guenther <rguenther@suse.de>
12878 * doc/invoke.texi (ffast-math): Document it is turned on
12881 2011-01-12 Jan Hubicka <jh@suse.cz>
12883 PR tree-optimization/47233
12884 * opts.c (common_handle_option): Disable ipa-reference with profile
12887 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12889 * c-parser.c (c_parser_objc_at_property_declaration): Improved
12892 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12894 * c-parser.c (c_lex_one_token): Updated and reindented some
12895 comments. No changes in code.
12897 2011-01-11 Ian Lance Taylor <iant@google.com>
12899 * godump.c (go_output_var): Don't output the variable if there is
12900 already a type with the same name.
12902 2011-01-11 Ian Lance Taylor <iant@google.com>
12904 * godump.c (go_format_type): Don't generate float80.
12906 2011-01-11 Richard Henderson <rth@redhat.com>
12908 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
12909 declaration. Rewrite for both speed and size.
12910 (mn10300_address_cost_1): Remove.
12911 (mn10300_register_move_cost): New.
12912 (mn10300_memory_move_cost): New.
12913 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
12914 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
12915 extensions, shifts, BSWAP, CLZ.
12916 (mn10300_wide_const_load_uses_clr): Remove.
12917 (TARGET_REGISTER_MOVE_COST): New.
12918 (TARGET_MEMORY_MOVE_COST): New.
12919 * config/mn10300/mn10300-protos.h: Update.
12920 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
12922 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
12923 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
12924 * config/mn10300/mn10300-protos.h: Update.
12925 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
12926 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
12927 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
12928 (*test_int_bitfield, *test_byte_bitfield): Remove.
12929 (*bit_test, *subreg_bit_test): Remove.
12930 * config/mn10300/predicates.md (const_8bit_operand): Remove.
12932 * config/mn10300/constraints.md ("c"): Rename from "A".
12933 ("A", "D"): New constraint letters.
12934 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
12935 (fmssf4, fnmasf4, fnmssf4): Likewise.
12937 * config/mn10300/mn10300.md (isa): New attribute.
12938 (enabled): New attribute.
12940 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
12941 (abssf2, negsf2): Define only for hardware fp.
12942 (sqrtsf2): Reformat.
12943 (addsf3, subsf3, mulsf3): Merge expander and insn.
12945 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
12946 (DEBUGGER_AUTO_OFFSET): Remove.
12947 (DEBUGGER_ARG_OFFSET): Remove.
12949 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
12950 Emit register stores with the same offsets as the hardware.
12951 (mn10300_store_multiple_operation): Don't check that the register
12952 save offsets are monotonic.
12953 * config/mn10300/mn10300-protos.h: Update.
12955 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
12957 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
12958 in terms of the value on the stack, not the MDR register.
12960 2011-01-11 Jan Hubicka <jh@suse.cz>
12964 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
12965 (symbol_alias_set_destroy, symbol_alias_set_contains,
12966 propagate_aliases_backward): Declare.
12967 * lto-streamer-out.c (struct sets): New sturcture.
12968 (trivally_defined_alias): New function.
12969 (output_alias_pair_p): Rewrite.
12970 (output_unreferenced_globals): Fix output of alias pairs.
12971 (produce_symtab): Likewise.
12972 * ipa.c (function_and_variable_visibility): Set weak alias destination
12974 * varasm.c (symbol_alias_set_t): Remove.
12975 (symbol_alias_set_destroy): Export.
12976 (propagate_aliases_forward, propagate_aliases_backward): New functions
12978 (compute_visible_aliases): ... this one; remove.
12979 (trivially_visible_alias): New
12980 (trivially_defined_alias): New.
12981 (remove_unreachable_alias_pairs): Rewrite.
12982 (finish_aliases_1): Reorganize code checking if alias is defined.
12983 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
12986 2011-01-11 Richard Guenther <rguenther@suse.de>
12988 PR tree-optimization/46076
12989 * tree-ssa.c (useless_type_conversion_p): Conversions from
12990 unprototyped to empty argument list function types are useless.
12992 2011-01-11 Richard Guenther <rguenther@suse.de>
12994 PR middle-end/45235
12995 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
12996 volatile MEMs as MEM_READONLY_P.
12998 2011-01-11 Richard Guenther <rguenther@suse.de>
13000 PR tree-optimization/47239
13001 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13003 2011-01-11 Jeff Law <law@redhat.com>
13005 PR tree-optimization/47086
13006 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13007 IVs from statements that might throw.
13009 2011-01-10 Jan Hubicka <jh@suse.cz>
13012 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13014 2011-01-10 Jan Hubicka <jh@suse.cz>
13017 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13018 when correcting profile.
13020 2011-01-10 Jan Hubicka <jh@suse.cz>
13023 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13024 DECL_FINI_PRIORITY.
13025 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13026 Restore DECL_FINI_PRIORITY.
13028 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13030 * doc/gimple.texi: Fix quoting of multi-word return values in
13031 @deftypefn statements. Ensure presence of return value. Wrap
13032 overlong @deftypefn lines.
13033 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13034 descriptions of removed functions.
13035 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13036 of multi-word return value in @deftypefn statement.
13038 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13040 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13041 (Conditional Expressions, Logical Operators)
13042 (Statement and operand traversals): Do not indent smallexample
13043 code. Fix duplicate function argument in example.
13045 2011-01-10 Jeff Law <law@redhat.com>
13047 PR tree-optimization/47141
13048 * ipa-split.c (split_function): Handle case where we are
13049 returning a value and the return block has a virtual operand phi.
13051 2011-01-10 Jan Hubicka <jh@suse.cz>
13053 PR tree-optimization/47234
13054 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13055 (pass_feedback_split_functions): Declare.
13056 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13058 * ipa-split.c (gate_split_functions): Update comments; disable
13059 split-functions for profile_arc_flag and branch_probabilities.
13060 (gate_feedback_split_functions): New function.
13061 (execute_feedback_split_functions): New function.
13062 (pass_feedback_split_functions): New global var.
13064 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13067 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13068 calling gimple_call_set_cannot_inline.
13070 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13072 * config/darwin-sections.def: Remove unused section.
13074 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13077 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13079 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13082 * c-parser.c (c_parser_declaration_or_fndef): Improved
13085 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13087 * config/i386/winnt.c (i386_pe_start_function): Make sure
13088 to switch back to function's section.
13090 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13094 * plugin.c: Move include of dlfcn.h from here...
13095 * system.h: ... to here.
13097 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13099 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13101 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13102 two extra empty pages in PDF output.
13104 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13107 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13108 for error recovery purposes behave as if it was not specified so
13109 that the default type is usd.
13111 2011-01-07 Jan Hubicka <jh@suse.cz>
13113 PR tree-optmization/46469
13114 * ipa.c (function_and_variable_visibility): Clear needed flags on
13115 nodes with external decls; handle weakrefs merging correctly.
13117 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13119 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13122 2011-01-07 Jan Hubicka <jh@suse.cz>
13124 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13125 and no longer claim that gold is required for linker plugin.
13126 * configure: Regenerate.
13127 * gcc.c (PLUGIN_COND): New macro.
13128 (LINK_COMMAND_SPEC): Use it.
13129 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13130 * config.in (HAVE_LTO_PLUGIN): New.
13131 * configure.ac (--with-lto-plugin): New parameter; autodetect
13134 2011-01-07 Jan Hubicka <jh@suse.cz>
13136 PR tree-optimization/46367
13137 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13138 when we can update original.
13139 (cgraph_mark_inline_edge): Sanity check.
13140 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13142 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13144 * config/spu/spu.h (ASM_COMMENT_START): Define.
13146 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13149 * gcc.c (%>S): New.
13150 (SWITCH_KEEP_FOR_GCC): Likewise.
13151 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13152 (do_spec_1): Handle "%>".
13154 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13156 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13159 * config/i386/i386.c (ix86_delegitimize_address): If
13160 simplify_gen_subreg fails, return orig_x.
13163 * value-prof.c (gimple_stringop_fixed_value): Handle
13164 lhs of the call properly.
13166 2011-01-07 Jan Hubicka <jh@suse.cz>
13169 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13171 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13173 * target.def (function_switched_text_sections): New hook.
13174 * doc/tm.texi: Regenerated.
13175 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13176 * final.c (default_function_switched_text_sections): New.
13177 (final_scan_insn): Call function_switched_text_sections when a
13178 mid-function section change occurs.
13179 * output.h (default_function_switched_text_sections): Declare.
13180 * config/darwin-protos.h (darwin_function_switched_text_sections):
13182 * config/darwin.c (darwin_function_switched_text_sections): New.
13183 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13185 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13187 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13188 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13189 the secondary code fragment when outputting for DWARF == 2.
13191 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13193 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13194 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13196 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13197 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13199 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13202 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13203 when it is not empty.
13205 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13208 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13209 (case ${target}): Add btver1.
13210 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13211 -march=native recognize btver1 processors.
13212 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13213 btver1 def_and_undef
13214 * config/i386/i386.c (struct processor_costs btver1_cost): New
13216 (m_BTVER1): New definition.
13217 (m_AMD_MULTIPLE): Includes m_BTVER1.
13218 (initial_ix86_tune_features): Add btver1 tune.
13219 (processor_target_table): Add btver1 entry.
13220 (static const char *const cpu_names): Add btver1 entry.
13221 (software_prefetching_beneficial_p): Add btver1.
13222 (ix86_option_override_internal): Add btver1 instruction sets.
13223 (ix86_issue_rate): Add btver1.
13224 (ix86_adjust_cost): Add btver1.
13225 * config/i386/i386.h (TARGET_BTVER1): New definition.
13226 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13227 (enum processor_type): Add PROCESSOR_BTVER1.
13228 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13230 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13233 * config/i386/i386.c (legitimize_tls_address)
13234 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13235 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13236 (tls_initial_exec_64_sun): New pattern.
13238 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13240 * doc/invoke.texi (Overall Options): Improve wording and markup
13241 of the description of -wrapper.
13243 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13245 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13246 rdynamic, threads): New Driver options.
13248 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13251 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13252 if coming from .tdata.
13253 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13255 2011-01-06 Jan Hubicka <jh@suse.cz>
13258 * collect2.c (main): Do not enable LTOmode when plugin is active.
13260 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13263 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13264 --version output if supported.
13265 * configure: Regenerate.
13267 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13269 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13272 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13275 * c-convert.c (convert): When converting a complex expression
13276 other than COMPLEX_EXPR to a different complex type, ensure
13277 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13278 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13279 when converting COMPLEX_TYPE.
13281 2011-01-06 Ira Rosen <irar@il.ibm.com>
13283 PR tree-optimization/47139
13284 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13285 only the last reduction value is used outside the loop. Update
13288 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13290 * config/rtems.opt: New.
13291 * config.gcc (*-*-rtems*): Use rtems.opt.
13293 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13295 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13296 processors do not support 3DNow instructions.
13298 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13300 * config/spu/spu.c (spu_option_override): Set parameter
13301 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13303 2011-01-05 Jan Hubicka <jh@suse.cz>
13305 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13306 at the command line.
13308 2011-01-05 Martin Jambor <mjambor@suse.cz>
13311 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13312 deltas on streamed outgoing edges.
13313 (output_node_opt_summary): Output info for outgoing edges only when
13314 the node is in new parameter set.
13315 (output_cgraph_opt_summary): New parameter set, passed to the two
13316 aforementioned functions. Update its forward declaration and its
13319 2011-01-05 Tom Tromey <tromey@redhat.com>
13321 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13322 operator to c_finish_omp_atomic.
13323 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13324 (build_unary_op): Update.
13325 (build_modify_expr): Update.
13326 (build_asm_expr): Update.
13328 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13330 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13331 newly inserted insns.
13332 (pad_bb): Likewise.
13333 (spu_emit_branch_hint): Likewise.
13334 (insert_hbrp_for_ilb_runout): Likewise.
13335 (spu_machine_dependent_reorg): Call df_finish_pass after
13336 schedule_insns returns.
13338 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13340 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13342 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13344 PR tree-optimization/47005
13345 * tree-sra.c (struct access): Add 'non_addressable' bit.
13346 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13347 (decide_one_param_reduction): Return 0 if the parameter is passed by
13348 reference and one of the accesses in the group is non_addressable.
13350 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13352 PR tree-optimization/47056
13353 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13354 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13355 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13357 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13359 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13360 initializer. Skip view conversions from aggregate types.
13362 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13365 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13367 2011-01-04 Philipp Thomas <pth@suse.de>
13369 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13372 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13374 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13375 on empty epilogue sequences.
13377 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13379 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13380 non-static): New Driver options.
13382 2011-01-04 Jie Zhang <jie@codesourcery.com>
13385 * gcc.c (default_compilers[]): Set combinable field to 0
13386 for all assembly languages.
13388 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13390 * config/mips/loongson3a.md: New file.
13391 * config/mips/mips.md: Include loongson3a.md.
13392 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13395 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13397 PR middle-end/47017
13398 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13399 instead of convert_memory_address_addr_space on the base expression.
13401 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13403 * config/spu/spu.c (spu_option_override): Update error text
13404 for bad -march= / -mtune= values.
13406 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13408 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13409 if branch-hint optimization will be performed.
13411 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13413 PR tree-optimization/47148
13414 * ipa-split.c (split_function): Convert arguments to
13415 DECL_ARG_TYPE if possible.
13417 PR tree-optimization/47155
13418 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13419 when computing uns.
13421 PR rtl-optimization/47157
13422 * combine.c (try_combine): If undobuf.other_insn becomes
13423 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13424 and set *new_direct_jump_p too.
13426 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13428 PR tree-optimization/47021
13429 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13431 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13433 * gcc.c (process_command): Update copyright notice dates.
13434 * gcov.c (print_version): Likewise.
13435 * gcov-dump.c (print_version): Likewise.
13436 * mips-tfile.c (main): Likewise.
13437 * mips-tdump.c (main): Likewise.
13439 2011-01-03 Martin Jambor <mjambor@suse.cz>
13441 PR tree-optimization/46801
13442 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13443 aggregate fields start at byte boundary instead of the bit-field flag.
13445 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13448 * gcc.c (main): Revert revision 168407.
13450 2011-01-03 Martin Jambor <mjambor@suse.cz>
13452 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13454 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13456 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13457 vector optab to expand vector/scalar shift, update gimple to vector.
13459 2011-01-03 Martin Jambor <mjambor@suse.cz>
13461 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13464 2011-01-03 Martin Jambor <mjambor@suse.cz>
13466 PR tree-optimization/46984
13467 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13469 (cgraph_create_indirect_edge): Fixed line length.
13470 (cgraph_indirect_call_info): Declare.
13471 (cgraph_make_edge_direct) Update declaration.
13472 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13473 (cgraph_create_indirect_edge): Use it.
13474 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13476 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13477 the new thunk_delta representation.
13478 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13480 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13481 (ipa_read_indirect_edge_info): Likewise.
13482 * lto-cgraph.c (output_edge_opt_summary): New function.
13483 (output_node_opt_summary): Call it on all outgoing edges.
13484 (input_edge_opt_summary): New function.
13485 (input_node_opt_summary): Call it on all outgoing edges.
13487 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13490 * gcc.c (main): Don't check have_o when settting combine_inputs.
13492 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13494 * regrename.c: Add general comment describing the pass.
13495 (struct du_head): Remove 'length' field.
13496 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13497 (regrename_optimize): Do not sort chains. Rework comments, add others.
13498 Force renaming to the preferred class (if any) in the first pass and do
13499 not consider registers that belong to it in the second pass.
13500 (create_new_chain): Do not set 'length' field.
13501 (scan_rtx_reg): Likewise.
13503 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13505 PR tree-optimization/47140
13506 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13507 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13508 to bit_value_binop.
13510 PR rtl-optimization/47028
13511 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13512 parm_birth_insn instead of at the beginning of first bb.
13514 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13516 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13517 Remove the word "see" before "@pxref".
13518 * doc/rtl.texi: Remove the word "see" before "@pxref".
13520 2011-01-01 Jan Hubicka <jh@suse.cz>
13522 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13525 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13528 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13531 Copyright (C) 2011 Free Software Foundation, Inc.
13533 Copying and distribution of this file, with or without modification,
13534 are permitted in any medium without royalty provided the copyright
13535 notice and this notice are preserved.