2011-05-06 Gary Funck <gary@intrepid.com>
[official-gcc.git] / gcc / ChangeLog
blobb98ce8901c77a4ac16b041fe7d250110834e3474
1 2011-05-06  Tristan Gingold  <gingold@adacore.com>
3         PR target/48895
4         * config/vms/vms-ar.c (main): Remove cwd variable.
6 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
8         PR debug/48902
9         * var-tracking.c (prepare_call_arguments): Move else before #endif.
11 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
13         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
14         * gimplify.c (gimplify_switch_expr): Likewise.
15         * omp-low.c (expand_omp_sections): Likewise.
16         * tree-eh.c (lower_try_finally_switch): Likewise.
17         (lower_eh_dispatch): Likewise.
18         * tree.h (build_case_label): Declare.
19         * tree.c (build_case_label): Define.
21 2011-05-05  Jason Merrill  <jason@redhat.com>
23         PR c++/40975
24         * tree-inline.c (copy_tree_r): Use copy_statement_list.
25         (copy_statement_list): Don't recurse.
26         * stor-layout.c (copy_self_referential_tree_r): Don't allow
27         STATEMENT_LIST.
29 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
31         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
32         through from -mfpu= handling.
33         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
35 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
37         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
38         POST_MODIFY.
40 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
42         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
43         for 11.31.
44         (hppa[12]*-*-hpux11*): Ditto.
45         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
46         * config/ia64/hpux-unix2003.h: New.
47         * config/pa/pa-hpux1131.opt: New.
48         * config/pa/pa-hpux1131.h: New.
49         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
50         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
51         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
53 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
55         PR debug/48853
56         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
57         instead of mode as 3rd argument to recursive call.
58         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
59         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
60         VOIDmode.
61         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
62         don't give up if mode is Pmode and mem_mode is not VOIDmode.
63         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
64         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
66 2011-05-05  Julian Brown  <julian@codesourcery.com>
68         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
69         parenthesis in D-register case.
71 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
73         * opt-functions.awk (var_type_struct): Handle Enum options.
74         * optc-gen.awk: Don't check range of variables of character type.
75         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
76         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
77         rs6000_sdata_name, rs6000_explicit_options): Remove.
78         (rs6000_option_override_internal): Check for -malign-power here.
79         Use global_options_set instead of rs6000_explicit_options.
80         (rs6000_parse_fpu_option): Remove.
81         (rs6000_handle_option): Access variables via opts and opts_set
82         pointers.  Use error_at and warning_at.  Add fall-through
83         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
84         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
85         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
86         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
87         here.  Don't use rs6000_parse_fpu_option.
88         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
89         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
90         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
91         (mrecip=): Use Var.
92         (mspe): Use Var and Save.
93         (mtraceback=): Use Enum and Var.
94         (rs6000_traceback_type): New Enum and EnumValue entries.
95         (mfloat-gprs=): Use Enum, Var and Save.
96         (rs6000_float_gprs): New Enum and EnumValue entries.
97         (mlong-double-): use Var and Save.
98         (msched-costly-dep=, minsert-sched-nops=): Use Var.
99         (malign-): Use Enum and Var.
100         (rs6000_alignment_flags): New Enum and EnumValue entries.
101         (mfpu=): Use Enum.
102         (fpu_type_t): New Enum and EnumValue entries.
103         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
104         global_options_set instead of rs6000_explicit_options.
105         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
106         global_options_set instead of rs6000_explicit_options.
107         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
108         global_options_set instead of rs6000_explicit_options.
109         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
110         global_options_set instead of rs6000_explicit_options.
111         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
112         global_options_set instead of rs6000_explicit_options.
113         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
114         global_options_set instead of rs6000_explicit_options.
115         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
116         definition.
117         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
118         global_options_set instead of rs6000_explicit_options.
119         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
120         (rs6000_cmodel): New Enum and EnumValue entries.
121         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
122         global_options_set instead of rs6000_explicit_options.
123         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
124         (mtls-size=): Use Enum and Var.
125         (rs6000_tls_size): New Enum and EnumValue entries.
127 2011-05-05  Michael Matz  <matz@suse.de>
129         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
130         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
131         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
132         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
133         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
134         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
135         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
136         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
137         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
138         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
139         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
140         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
141         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
142         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
143         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
144         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
146 2011-05-05  Richard Guenther  <rguenther@suse.de>
148         * expmed.c (expand_variable_shift): Rename to ...
149         (expand_shift_1): ... this.  Take an expanded shift amount.
150         For rotates recurse directly not building trees for the shift amount.
151         (expand_variable_shift): Wrap around expand_shift_1.
152         (expand_shift): Adjust.
154 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
156         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
158 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
160         * tree.h (get_pending_sizes): Remove prototype.
161         (put_pending_size): Likewise.
162         (put_pending_sizes): Likewise.
163         * stor-layout.c (pending_sizes): Delete.
164         (get_pending_sizes): Likewise.
165         (put_pending_size): Likewise.
166         (put_pending_sizes): Likewise.
167         (variable_size): Do not call put_pending_size and tidy up.
168         * function.h (struct function): Remove dont_save_pending_sizes_p.
169         * lto-streamer-in.c (input_function): Do not stream it.
170         * lto-streamer-out.c (output_function): Likewise.
171         * tree-inline.c (initialize_cfun): Do not copy it.
172         * c-decl.c (store_parm_decls): Do not set it.
173         * omp-low.c (create_task_copyfn): Likewise.
174         * tree-optimize.c (tree_rest_of_compilation): Likewise.
176 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
178         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
179         conditions.
180         (*movdf_internal): Ditto.
181         (*movdf_internal_nointeger): Ditto.
182         (*movsf_internal): Ditto.
184 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
186         * c-decl.c (finish_decl): Don't call get_pending_sizes.
187         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
188         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
189         (c_variable_size): Remove.
190         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
191         call put_pending_sizes.
192         (get_parm_info): Add parameter expr.  Use it to set
193         arg_info->pending_sizes.
194         (store_parm_decls): Use arg_info->pending_sizes instead or calling
195         get_pending_sizes.
196         * c-parser.c (c_parser_parms_declarator): Update call to
197         c_parser_parms_list_declarator.
198         (c_parser_parms_list_declarator): Take parameter expr.  Update
199         call to push_parm_decl.  Update recursive call.  Don't call
200         get_pending_sizes.  Update calls to get_parm_info.
201         (c_parser_objc_method_definition): Update calls to
202         c_parser_objc_method_decl and objc_start_method_definition.
203         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
204         (c_parser_objc_method_decl): Add parameter expr.  Update call to
205         grokparm.
206         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
207         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
208         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
210 2011-05-05  Michael Hope  <michael.hope@linaro.org>
212         PR pch/45979
213         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
214         __ARM_EABI__ hosts.
216 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
218         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
219         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
220         (spu_output_mi_thunk): New function.
222 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
224         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
225         targetm.asm_out.print_operand.
226         * config/sol2.c: Include target.h.
228 2011-05-04  Jan Hubicka  <jh@suse.cz>
230         * ipa-inline.c (reset_edge_caches): New function.
231         (update_caller_keys): Add check_inlinablity_for; do not
232         reset edge caches; remove now unnecesary loop.
233         (update_callee_keys): Add comments; reset node_growth_cache of callee.
234         (update_all_callee_keys): Likewise.
235         (inline_small_functions): Sanity check cache; update code
236         recomputing it.
238 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
240         PR rtl-optimization/47612
241         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
242         as the last insn of the sequence to be moved.
244 2011-05-04  Tobias Burnus  <burnus@net-b.de>
246         PR fortran/48864
247         * doc/invoke.texi (Ofast): Document that it
248         enables Fortran's -fno-protect-parens.
250 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
252         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
254 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
256         * stor-layout.c (variable_size): Do not issue errors.
258 2011-05-04  Richard Guenther  <rguenther@suse.de>
260         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
261         for array-ref indices.
262         (tree_coverage_counter_addr): Likewise.
263         (build_fn_info_type): Use size_int for index types.
264         (build_gcov_info): Likewise.
266 2011-05-04  Richard Guenther  <rguenther@suse.de>
268         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
269         to build_int_cst.
270         * c-typeck.c (really_start_incremental_init): Use bitsize_int
271         for constructor indices.
272         (push_init_level): Likewise.
274 2011-05-04  Richard Guenther  <rguenther@suse.de>
276         * explow.c (promote_mode): Move variable declarations before code.
278 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
280         * tree.h (build_function_type_array): Declare.
281         (build_varargs_function_type_array): Declare.
282         (build_function_type_vec, build_varargs_function_type_vec): Define.
283         * tree.c (build_function_type_array_1): New function.
284         (build_function_type_array): New function.
285         (build_varargs_function_type_array): New function.
287 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
289         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
290         before setting STMT_VINFO_TYPE.
292 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
294         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
295         instead of spu_pass_by_reference.
297 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
299         * calls.c (emit_library_call_value_1): Invoke
300         promote_function_mode hook on libcall arguments.
301         * explow.c (promote_function_mode, promote_mode): Handle TYPE
302         argument being NULL.
303         * targhooks.c (default_promote_function_mode): Lisewise.
304         * config/s390/s390.c (s390_promote_function_mode): Likewise.
305         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
307         * doc/tm.texi: Document that TYPE argument might be NULL.
309 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
311         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
313 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
315         From Bernd Schmidt
316         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
318 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
320         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
321         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
322         Move ...
323         * mips-tfile.c: ... here.
324         Don't include coretypes.h, tm.h, filenames.h.
325         (saber_stop): Remove definition and all calls.
326         [__SABER__]: Remove.
327         (__LINE__): Remove default.
328         (Size_t, Ptrdiff_t): Remove definitions.
329         Replace by size_t, ptrdiff_t.
330         [!MIPS_DEBUGGING_INFO]: Remove.
331         (SHASH_SIZE, THASH_SIZE): Remove defaults.
332         (progname): Add const.
333         (STATIC): Remove.
334         Replace all uses by static.
335         (ALIGN_SYMTABLE_OFFSET): Remove default.
336         * mips-tdump.c: Don't include coretypes.h, tm.h.
337         Remove !MIPS_IS_STAB guard.
338         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
339         $(TM_H), filenames.h dependencies.
340         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
342 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
344         From Jie Zhang
345         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
346         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
348 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
350         From Bernd Schmidt
351         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
352         account and save/restore RETS.
353         (PROFILE_BEFORE_PROLOGUE): Define.
354         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
355         the push insn to use predecrement.
357 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
359         From Jie Zhang
360         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
362 2011-05-04  Nick Clifton  <nickc@redhat.com>
364         * config/mn10300/mn10300.c: Include cfgloop.h.
365         (DUMP): New macro.
366         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
367         Lcc or a FLcc insn into the instruction stream.
368         (mn10300_block_contains_call): New function.  Returns true if the
369         given basic block contains a CALL insn.
370         (mn10300_loop_contains_call_insn): New function.  Returns true if
371         the given loop contains a CALL insn.
372         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
373         to use the SETLB and Lcc or FLcc insns.
374         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
375         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
376         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
377         disable the SETLB optimization.
378         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
379         __SETLB__ or __NO_SETLB__.
380         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
381         (movsf_internal): Handle MDR register.
382         (cmpsi): Make visible.
383         (setlb): New pattern.
384         (Lcc): New pattern.
385         (FLcc): New pattern.
387 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
389         PR target/48860
390         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
391         for reg<->xmm moves.
392         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
393         (vec_concatv2di_rex64_sse): Ditto.
394         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
395         (*vec_extractv2di_1_rex64): Ditto.
397         Revert:
398         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
400         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
401         reg<->xmm moves.
402         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
404 2011-05-04  Richard Guenther  <rguenther@suse.de>
406         * tree.h (int_const_binop): Remove notrunc argument.
407         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
408         create integer constants that are properly truncated.
409         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
410         (const_binop): Remove zero notrunc argument to int_const_binop.
411         (size_binop_loc): Likewise.
412         (fold_div_compare): Likewise.
413         (maybe_canonicalize_comparison_1): Likewise.
414         (fold_comparison): Likewise.
415         (fold_binary_loc): Likewise.
416         (multiple_of_p): Likewise.
417         * expr.c (store_constructor): Likewise.
418         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
419         (maybe_fold_stmt_addition): Likewise.
420         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
421         * stor-layout.c (layout_type): Likewise.
422         * tree-data-ref.c (tree_fold_divides_p): Likewise.
423         * tree-sra.c (build_ref_for_offset): Likewise.
424         (build_user_friendly_ref_for_offset): Likewise.
425         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
426         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
427         * tree-ssa-loop-niter.c (inverse): Likewise.
428         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
429         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
430         * tree-switch-conversion.c (check_range): Likewise.
431         (build_constructors): Likewise.
432         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
433         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
434         (extract_range_from_assert): Likewise.
435         (vrp_int_const_binop): Likewise.
436         (extract_range_from_binary_expr): Likewise.
437         (extract_range_from_unary_expr): Likewise.
438         (check_array_ref): Likewise.
439         (find_case_label_range): Likewise.
440         (simplify_div_or_mod_using_ranges): Likewise.
441         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
442         comparing case labels for merging.
444 2011-05-03  Mark Wielaard  <mjw@redhat.com>
446         * dwarf2out.c (debug_str_hash_forced): Removed.
447         (gen_label_for_indirect_string): Removed.
448         (get_debug_string_label): Removed.
449         (AT_string_form): Generate label directly.
450         (output_indirect_string): Test indirect_string_node for
451         DW_FORM_strp instead of checking label and refcount.
452         (prune_indirect_string): Removed.
453         (prune_unused_types): Don't check debug_str_hash_forced or
454         call prune_indirect_string.
456 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
458         PR other/48093
459         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
461 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
463         PR debug/47994
464         PR debug/47919
465         * combine.c (try_combine): Skip debug insns at m_split tests.
467 2011-04-26  Mark Wielaard  <mjw@redhat.com>
469         PR42288
470         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
471         when info_section_emitted.
473 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
475         * config/mips/mips-opts.h: New.
476         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
477         to mips-opts.h.
478         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
479         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
480         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
481         via opts pointer.
482         * config/mips/mips.h (enum mips_code_readable_setting): Move to
483         mips-opts.h.
484         (mips_abi, mips_code_readable): Don't declare.
485         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
486         (mabi=): Use Enum and Var.
487         (mips_abi): New Enum and EnumValue entries.
488         (mcode-readable=): Use Enum and Var.
489         (mips_code_readable_setting): New Enum and EnumValue entries.
490         (mr10k-cache-barrier=): Use Enum and Var.
491         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
493 2011-05-03  Jan Hubicka  <jh@suse.cz>
495         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
496         replace hash by pointer map.
497         (cgraph_node_set_element_def, cgraph_node_set_element,
498         const_cgraph_node_set_element, varpool_node_set_element_def,
499         varpool_node_set_element, const_varpool_node_set_element): Remove.
500         (free_cgraph_node_set, free_varpool_node_set): New function.
501         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
502         * tree-emutls.c: Free varpool node set.
503         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
504         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
505         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
506         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
507         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
508         Move here from ipa.c; implement using pointer_map
509         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
510         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
511         debug_cgraph_node_set, varpool_node_set_new,
512         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
513         dump_varpool_node_set, debug_varpool_node_set):
514         Move to ipa-uitls.c.
515         * passes.c (ipa_write_summaries): Update.
517 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
519         From Mike Frysinger:
520         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
521         bf542/bf544/bf547/bf548/bf549.
523 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
525         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
527 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
529         From Bernd Schmidt:
530         * config/bfin/bfin.md (MOVCC): New mode_macro.
531         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
532         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
533         comments from generated assembly.
535 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
537         From Bernd Schmidt
538         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
539         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
540         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
541         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
542         * config/bfin/lib1funcs.asm (___muldi3): New function.
544 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
546         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
547         build_function_type_list instead of build_function_type.
548         Rearrange initialization of `args' to do so.
550 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
552         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
553         instead of build_function_type.
555 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
557         * config/rs6000/rs6000.c (spe_init_builtins): Call
558         build_function_type_list instead of build_function_type.
559         (paired_init_builtins, altivec_init_builtins): Likewise.
560         (builtin_function_type): Likewise.
562 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
564         * config/sh/sh.c (sh_media_init_builtins): Call
565         build_function_type_list instead of build_function_type.
567 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
569         * config/sparc/sparc.c (sparc_file_end): Call
570         build_function_type_list instead of build_function_type.
572 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
574         * config/alpha/alpha.c (alpha_init_builtins): Call
575         build_function_type_list instead of build_function_type.
577 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
579         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
580         build_function_type_list instead of build_function_type.
582 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
584         * config/iq2000/i2000.c (iq2000_init_builtins): Call
585         build_function_type_list instead of build_function_type.
586         Delete `endlink' variable.
588 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
590         * config/avr/avr.c (avr_init_builtins): Call
591         build_function_type_list instead of build_function_type.
593 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
595         * config/picochip/picochip.c (picochip_init_builtins): Call
596         build_function_type_list instead of build_function_type.
597         Delete `endlink' variable.
599 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
601         * config/bfin/bfin.c (bfin_init_builtins): Call
602         build_function_type_list instead of build_function_type.
604 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
606         From Bernd Schmidt
607         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
608         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
610 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
612         From Jie Zhang:
613         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
614         libbffastfp overrides libgcc when -mfast-fp.
616 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
618         Originally from Bernd Schmidt
619         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
620         * config/bfin/bfin.c (override_options): Test it and error if
621         TARGET_FDPIC.
623 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
625         Originally From Bernd Schmidt
626         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
627         FD-PIC.
629 2011-05-03  Jeff Law  <law@redhat.com>
631         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
632         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
633         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
634         than accessing AUX field directly.  Free the AUX field before
635         clearing it.
636         (thread_block, thread_through_loop_header): Likewise.
637         (thread_single_edge, mark_threaded_blocks): Likewise.
638         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
639         (register_jump_thread): Do not attempt to thread to a NULL edge.
641 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
643         * function.c (init_function_start): Call decide_function_section.
644         * varasm.c (decide_function_section): New function.
645         (assemble_start_function): When not using
646         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
647         or first_function_block_is_cold.
648         * rtl.h (decide_function_section): Declare.
650 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
651             Jakub Jelinek  <jakub@redhat.com>
653         PR target/48774
654         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
655         only succeed if req_mode is the same as set_mode.
657 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
659         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
660         * genemit.c (gen_exp): Handle RETURN.
661         * emit-rtl.c (verify_rtx_sharing): Likewise.
662         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
663         * rtl.c (copy_rtx): RETURN is shared.
664         * rtl.h (enum global_rtl_index): Add GR_RETURN.
665         (ret_rtx): New.
666         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
667         * config/s390/s390.c (s390_emit_epilogue): Likewise.
668         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
669         * config/cris/cris.c (cris_expand_return): Likewise.
670         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
671         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
672         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
673         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
674         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
675         Likewise.
676         * config/v850/v850.c (expand_epilogue): Likewise.
677         * config/bfin/bfin.c (bfin_expand_call): Likewise.
678         * config/arm/arm.md (epilogue): Likewise.
679         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
680         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
681         variable to ret_reg.
683 2011-05-03  Richard Guenther  <rguenther@suse.de>
685         PR lto/48846
686         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
687         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
688         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
690 2011-05-03  Richard Guenther  <rguenther@suse.de>
692         * c-decl.c (grokdeclarator): Instead of looking at
693         TREE_OVERFLOW check if the constant fits in the index type.
695 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
697         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
698         (vec_store_lanes<mode><mode>): Likewise.
700 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
702         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
703         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
704         convert_optab_index values.
705         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
706         * genopinit.c (optabs): Initialize the new optabs.
707         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
708         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
709         (expand_STORE_LANES): New functions.
710         * tree.h (build_array_type_nelts): Declare.
711         * tree.c (build_array_type_nelts): New function.
712         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
713         (vect_model_load_cost): Likewise.
714         (vect_store_lanes_supported, vect_load_lanes_supported)
715         (vect_record_strided_load_vectors): Declare.
716         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
717         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
718         (vect_transform_strided_load): Split out statement recording into...
719         (vect_record_strided_load_vectors): ...this new function.
720         * tree-vect-stmts.c (create_vector_array, read_vector_array)
721         (write_vector_array, create_array_ref): New functions.
722         (vect_model_store_cost): Add store_lanes_p argument.
723         (vect_model_load_cost): Add load_lanes_p argument.
724         (vectorizable_store): Try to use store-lanes functions for
725         interleaved stores.
726         (vectorizable_load): Likewise load-lanes and loads.
727         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
728         to vect_model_store_cost.
729         (vect_build_slp_tree): Likewise vect_model_load_cost.
731 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
733         * hooks.h (hook_bool_mode_uhwi_false): Declare.
734         * hooks.c (hook_bool_mode_uhwi_false): New function.
735         * target.def (array_mode_supported_p): New hook.
736         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
737         * doc/tm.texi: Regenerate.
738         * stor-layout.c (mode_for_array): New function.
739         (layout_type): Use it.
740         * config/arm/arm.c (arm_array_mode_supported_p): New function.
741         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
743 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
745         PR target/48723
746         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
747         for -fstack-check if the size to allocate is negative.
749 2011-05-02  Lawrence Crowl  <crowl@google.com>
751         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
752         (timevar_cond_start): New for starting a timer only when it is not
753         already running.
754         (timevar_cond_stop): New for stopping a timer when it was not already
755         running.
757         * timevar.c (timevar_stop): Enable start/stop timers to start again.
758         (timevar_cond_start): New as above.
759         (timevar_cond_stop): New as above.
761         * timevar.def: Add start/stop timers for compiler phases,
762         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
763         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
764         and TV_PHASE_FINALIZE.
765         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
766         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
767         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
768         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
769         Make unused TV_OVERLOAD into a start/stop timer.
771         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
772         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
773         to indicate that they are start/stop timers.
775         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
776         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
777         Move initialization to do_compile.
778         (do_compile): Add initialization from above.
779         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
781         * c-decl.c (c_write_global_declarations): Add start/stop of
782         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
784         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
785         or TV_PARSE_INLINE, as appropriate.
786         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
787         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
789 2011-05-02  Jason Merrill  <jason@redhat.com>
791         PR c++/40975
792         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
794 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
796         PR c/35445
797         * c-decl.c (finish_decl): Only create a composite if the types are
798         compatible.
800 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
802         * config/fr30/fr30-protos.h (Mmode): Don't define.
803         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
804         definition where used.
805         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
806         define.  Expand definitions where used.
807         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
808         Expand definitions where used.
809         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
810         rx_function_arg, rx_function_arg_advance,
811         rx_function_arg_boundary): Expand definitions of those macros.
812         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
813         definition where used.
815 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
817         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
818         reg<->xmm moves.
819         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
820         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
821         with *movv2sf_internal_rex64_avx.
822         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
823         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
824         Use %v prefix in insn mnemonic to handle TARGET_AVX.
825         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
826         "vex" in "prefix" attribute calculation.
827         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
829 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
831         PR target/47951
832         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
833         inputs match the output.
835 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
837         PR target/47955
838         * config/m68k/m68k.c (m68k_expand_prologue): Set
839         current_function_static_stack_size.
841 2011-05-02   Jan Hubicka  <jh@suse.cz>
843         * lto-streamer.c (lto_streamer_cache_insert_1,
844         lto_streamer_cache_lookup, lto_streamer_cache_create,
845         lto_streamer_cache_delete): Use pointer map instead of hashtable.
846         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
848 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
850         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
851         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
852         config/m68k/t-opts: New files.
853         * config/m68k/m68k-tables.opt: New file (generated).
854         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
855         extra_options and m68k/t-opts to tmake_file.
856         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
857         (all_isas): Initialize using m68k-isas.def.
858         (all_microarchs): Initialize using m68k-microarchs.def.
859         (m68k_find_selection): Remove.
860         (m68k_handle_option): Don't assert that global structures are in
861         use.  Use error_at.  Access variables via opts pointer.  Don't
862         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
863         directly for -m68020-40 and -m68020-60.
864         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
865         m68k_tune_entry here.
866         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
867         to m68k-opts.h.
868         (m68k_library_id_string): Remove declaration.
869         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
870         (m68k_library_id_string): New Variable.
871         (march=, mcpu=, mtune=): Use Enum and Var.
873 2011-05-02  Richard Guenther  <rguenther@suse.de>
875         * varasm.c (output_constructor_regular_field): Compute zero-based
876         index with double-ints.  Make sure to ICE instead of producing
877         wrong code.
878         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
879         in asserts.  Properly use a signed type.
881 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
883         * config/i386/sse.md (V): New mode iterator.
884         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
885         TARGET_SSE2.
886         (V_256): Rename from AVX256MODE.
887         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
888         condition to all users.
889         (VF1): Ditto.
890         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
891         condition to all users.
892         (VF_128): Make V4SF mode unconditional.
893         (VF_256): Rename from AVX256MODEF2P.
894         (VI4F_128): Rename from SSEMODE4S.
895         (VI8F_128): Rename from SSEMODE2D.
896         (VI4F_256): Rename from AVX256MODE8P.
897         (VI8F_256): Rename from AVX256MODE4P.
898         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
899         (ssescalarmodesuffix): Remove SF and DF modes.
900         (SSEMODE124): Remove.
901         (SSEMODE1248): Ditto.
902         (SSEMODEF2P): Ditto.
903         (AVXMODEF2P): Ditto.
904         (AVXMODEFDP): Ditto.
905         (AVXMODEFSP): Ditto.
906         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
907         unconditional.
908         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
909         unconditional.
910         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
911         xop_pcmov_<mode>256.  Use V mode iterator.
913         Adjust RTX patterns globally for renamed mode attributes.
915 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
917         * haifa-sched.c (sched_emit_insn): Emit insn before first
918         non-scheduled insn.  Inform back-end about new insn.  Add
919         new insn to scheduled_insns list.
921 2011-05-02  Richard Guenther  <rguenther@suse.de>
923         PR tree-optimization/48822
924         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
925         (process_scc): Indicate which iteration we start.
927 2011-05-02  Jan Hubicka  <jh@suse.cz>
929         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
930         (lto_section_overrun): New.
931         * lto-section-out.c (append_block): Rename to ...
932         (lto_append_block): ... this one; export.
933         (lto_output_1_stream): Move lto lto-streamer.h
934         (lto_output_data_stream): Update.
935         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
936         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
937         functions.
939 2011-05-02  Richard Guenther  <rguenther@suse.de>
941         * tree.c (tree_code_counts): New global array.
942         (record_node_allocation_statistics): Count individual tree codes.
943         (dump_tree_statistics): Dump individual code stats.
945 2011-05-01  Jan Hubicka  <jh@suse.cz>
947         * ipa-inline.c (caller_growth_limits): Fix thinko when
948         looking for largest stack frame.
949         * ipa-inline.h (dump_inline_summary): Declare.
950         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
951         on stack usage.
952         (dump_inline_summary): Export.
953         (debug_inline_summary): Declare as DEBUG_FUNCTION.
955 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
957         * reginfo.c (memory_move_cost): Change rclass argument type form
958         'enum reg_class' to reg_class_t.
959         * reload.h (memory_move_cost): Update prototype.
960         * postreload.c reload_cse_simplify_set): Change type dclass var to
961         reg_class_t.
962         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
963         Update prototype.
964         (ira_allocate_and_set_costs): Change aclass argument type form
965         'enum reg_class' to reg_class_t.
966         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
967         Change aclass argument type to reg_class_t.
968         (update_conflict_hard_reg_costs): Change type aclass and pref vars
969         to reg_class_t.
970         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
971         memory_move_cost call.
973         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
974         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
975         Change type tmp var to reg_class_t.
977 2011-04-30  Jan Hubicka  <jh@suse.cz>
979         * ipa-inline.c (can_inline_edge_p): Disregard limits when
980         inlining into function with flatten attribute.
981         (want_inline_small_function_p): Be more realistic about inlining
982         cold calls where callee size grows.
984 2011-04-30  Jan Hubicka  <jh@suse.cz>
986         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
987         flags.
989 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
991         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
992         PRINT_OPERAND_PUNCT_VALID_P): Remove.
993         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
994         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
995         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
996         (print_operand): Rename to...
997         (sparc_print_operand): ...this. Make static. Adjust
998         sparc_print_operand function call.
999         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1000         functions.
1002 2011-04-30  Jan Hubicka  <jh@suse.cz>
1004         PR middle-end/48752
1005         * ipa-inline.c (early_inliner): Disable when doing late
1006         addition of function.
1008 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1010         * dwarf2out.c (get_address_mode): New inline.
1011         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1012         if not dwarf_strict emit
1013         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1014         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1015         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1016         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1017         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1018         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1019         mem_loc_descriptor callers.
1020         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1021         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1022         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1023         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1024         (base_types): New variable.
1025         (get_base_type_offset, calc_base_type_die_sizes,
1026         base_type_for_mode, mark_base_types, base_type_cmp,
1027         move_marked_base_types): New functions.
1028         (calc_die_sizes): Assert that die_offset is 0 or equal to
1029         next_die_offset.
1030         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1031         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1032         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1033         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1034         (gen_subprogram_die): Don't give up on call site parameters
1035         with non-integral or large integral modes.  Adjust
1036         mem_loc_descriptor callers.
1037         (prune_unused_types): Call prune_unused_types_mark on base_types
1038         vector entries.
1039         (resolve_addr): Call mark_base_types.
1040         (dwarf2out_finish): Call move_marked_base_types.
1042         PR tree-optimization/48809
1043         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1044         type.
1045         (gen_inbound_check): Don't compute index_expr - range_min in utype
1046         again, instead reuse SSA_NAME initialized in build_arrays.
1047         Remove two useless gsi_for_stmt calls.
1049 2011-04-29  Jeff Law  <law@redhat.com>
1051         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1053 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1055         * cgraph.h (cgraph_postorder): Remove declaration.
1056         * ipa-utils.h (ipa_free_postorder_info): Declare.
1057         (ipa_reverse_postorder): Likewise.
1058         * cgraphunit.c: Include ipa-utils.h.
1059         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1060         * ipa-inline.c: Include ipa-utils.h.
1061         (ipa_inline): Update call to ipa_reverse_postorder.
1062         * ipa-pure-const.c (propagate_pure_const): Update call to
1063         ipa_reduced_postorder and ipa_print_order.  Call
1064         ipa_free_postorder_info to clean up.
1065         (propagate_nothrow): Likewise.
1066         * ipa-reference.c (propagate): Removed a useless call to
1067         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1068         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1069         * ipa.c: Include ipa-utils.h.
1070         (ipa_profile): Update call to ipa_reverse_postorder.
1071         (cgraph_postorder): Moved to...
1072         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1073         (ipa_utils_print_order): Renamed to ipa_print_order.
1074         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1075         comments.
1076         (ipa_free_postorder_info): New function.
1077         * passes.c: Include ipa-utils.h.
1078         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1079         (ipa_write_summaries): Likewise.
1080         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1081         (cgraphunit.o): Likewise.
1082         (ipa.o): Likewise.
1083         (ipa-inline.o): Likewise.
1085 2011-04-29  Jan Hubicka  <jh@suse.cz>
1087         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1088         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1089         * ipa-inline.h (clause_t): Turn into unsigned int.
1090         * ipa-inline-analysis.c (add_clause): Do more simplification.
1091         (and_predicates): Shortcut more cases.
1092         (predicates_equal_p): Move forward; check that clauses are properly
1093         ordered.
1094         (or_predicates): Shortcut more cases.
1095         (edge_execution_predicate): Rewrite as...
1096         (set_cond_stmt_execution_predicate): ... this function; handle
1097         __builtin_constant_p.
1098         (set_switch_stmt_execution_predicate): New .
1099         (compute_bb_predicates): New.
1100         (will_be_nonconstant_predicate): Update TODO.
1101         (estimate_function_body_sizes): Use compute_bb_predicates
1102         and free them later, always try to estimate if stmt is constant.
1103         (estimate_time_after_inlining, estimate_size_after_inlining):
1104         Gracefully handle optimized out edges.
1105         (read_predicate): Fix off by one error.
1107 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1109         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1111 2011-04-27  Xinliang David Li  <davidxl@google.com>
1113         * tree-profile.c (init_ic_make_global_vars): Set
1114         tls attribute on ic vars.
1115         * coverage.c (coverage_end_function): Initialize
1116         function_list with zero.
1118 2011-04-29  Richard Guenther  <rguenther@suse.de>
1120         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1121         for the type of the result.
1122         (fold_builtin_isascii): Likewise.
1123         (fold_builtin_toascii): Use integer_type_node where appropriate.
1124         (fold_builtin_logb): Likewise.
1125         (fold_builtin_frexp): Likewise.
1126         (fold_builtin_strstr): Likewise.
1127         (fold_builtin_strpbrk): Likewise.
1128         (fold_builtin_fputs): Likewise.
1129         (fold_builtin_sprintf): Likewise.
1130         (fold_builtin_snprintf): Likewise.
1131         (fold_builtin_printf): Likewise.
1132         (do_mpfr_remquo): Use a proper type for the assigned constant.
1133         (do_mpfr_lgamma_r): Likewise.
1134         * dwarf2out.c (resolve_one_addr): Use size_int.
1135         * except.c (init_eh): Likewise.
1136         (assign_filter_values): Use integer_type_node for filter values.
1137         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1138         indices.
1139         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1140         for EH region numbers.
1141         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1142         for the shift amount.
1144 2011-04-29  Richard Guenther  <rguenther@suse.de>
1146         * expr.h (expand_shift): Rename to ...
1147         (expand_variable_shift): ... this.
1148         (expand_shift): Take a constant shift amount.
1149         * expmed.c (expand_shift): Rename to ...
1150         (expand_variable_shift): ... this.
1151         (expand_shift): New wrapper around expand_variable_shift.
1152         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1153         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1154         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1155         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1156         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1157         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1158         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1159         emit_store_flag_1, emit_store_flag): Likewise.
1160         * builtins.c (expand_builtin_signbit): Likewise.
1161         * calls.c (load_register_parameters): Likewise.
1162         * function.c (assign_parm_setup_block): Likewise.
1163         * lower-subreg.c (resolve_shift_zext): Likewise.
1164         * optabs.c (widen_bswap, expand_abs_nojump,
1165         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1166         * spu/spu.c (spu_expand_extv): Likewise.
1167         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1169 2011-04-29  Richard Guenther  <rguenther@suse.de>
1171         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1172         for the remapped region number.
1173         * predict.c (build_predict_expr): Use integer_type_node for the
1174         predict kind.
1175         * fold-const.c (fold_binary_loc): Use integer_type_node for
1176         the shift amount.  Use a proper type for the PLUS_EXPR operand.
1178 2011-04-29  Michael Matz  <matz@suse.de>
1180         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1181         other trees that just builtins.
1182         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1184 2011-04-29  Richard Guenther  <rguenther@suse.de>
1186         * tree-nested.c (get_trampoline_type): Use size_int.
1187         (get_nl_goto_field): Likewise.
1188         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1189         for all indexes.
1190         (lower_eh_constructs_2): Likewise.
1191         (lower_resx): Likewise.
1192         (lower_eh_dispatch): Likewise.
1193         * tree-mudflap.c (mf_build_string): Use size_int.
1194         (mudflap_register_call): Use integer_type_node for the flag.
1195         (mudflap_enqueue_constant): Use size_int.
1196         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1197         instead of rebuilding it.
1199 2011-04-29  Richard Guenther  <rguenther@suse.de>
1201         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1202         Handle OBJ_TYPE_REF.
1203         (find_func_aliases_for_call): Use it more consistently.
1205 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
1207         * haifa-sched.c (last_nondebug_scheduled_insn): New.
1208         (rank_for_schedule): Use it.
1209         (schedule_block): Set it.
1211 2011-04-28  David Li  <davidxl@google.com>
1213         * tree.c (crc32_string): Use crc32_byte.
1214         (crc32_byte): New function.
1215         * tree.h (crc32_byte): New function.
1216         * gcov.c (read_graph_file): Handle new cfg_cksum.
1217         (read_count_file): Ditto.
1218         * profile.c (instrument_values): Ditto.
1219         (get_exec_counts): Ditto.
1220         (read_profile_edge_counts): Ditto.
1221         (compute_branch_probabilities): Ditto.
1222         (compute_value_histograms): Ditto.
1223         (branch_prob): Ditto.
1224         (end_branch_prob): Ditto.
1225         * coverage.c (read_counts_file): Ditto.
1226         (get_coverage_counts): Ditto.
1227         (tree_coverage_counter_addr): Ditto.
1228         (coverage_checksum_string): Ditto.
1229         (coverage_begin_output): Ditto.
1230         (coverage_end_function): Ditto.
1231         (build_fn_info_type): Ditto.
1232         (build_fn_info_value): Ditto.
1233         * libgcov.c (gcov_exit): Ditto.
1234         * gcov-dump.c (tag_function): Ditto.
1235         (compute_checksum): Remove.
1237 2011-04-29  Alan Modra  <amodra@gmail.com>
1239         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1240         unspec plus offset.  Tidy macho code.
1242 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1244         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1245         node instead of a decl.  Update all callers.
1246         * cgraph.h: Update declaration.
1248 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
1250         PR tree-optimization/48765
1251         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1252         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1253         to indicate if loop aware SLP is being used.  Scan the statements
1254         and update the vectorization factor according to the type of
1255         vectorization before statement analysis.
1256         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1257         pass it to vect_analyze_loop_operations.
1258         (vectorizable_reduction): Set number of copies to 1 in case of pure
1259         SLP statement.
1260         * tree-vect-stmts.c (vectorizable_conversion,
1261         vectorizable_assignment, vectorizable_shift,
1262         vectorizable_operation, vectorizable_type_demotion,
1263         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1264         Likewise.
1265         (vectorizable_condition): Move the check that it is not SLP
1266         vectorization before the number of copies check.
1267         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1268         to vectorize the loop using SLP.
1270 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
1272         PR middle-end/48597
1273         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1274         inline asm.
1276 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
1278         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1279         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1280         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1281         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1282         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1283         linux*.h headers.
1284         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1285         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1286         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1287         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1288         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1289         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1290         REG_NAME.
1291         * config/i386/linux.h (REG_NAME): Don't define.
1292         * config/i386/linux64.h (REG_NAME): Don't define.
1293         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1294         Undefine before defining.
1296 2011-04-28  Jan Hubicka  <jh@suse.cz>
1298         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1299         nonconstant_names array.
1300         (estimate_function_body_sizes): Build nonconstant_names array; handle
1301         BUILT_IN_CONSTANT_P.
1303 2011-04-28  Richard Guenther  <rguenther@suse.de>
1305         PR bootstrap/48804
1306         Revert
1307         2011-04-28  Richard Guenther  <rguenther@suse.de>
1309         * tree-ssa-structalias.c (solve_constraints): Build succ graph
1310         as late as possible.
1312 2011-04-28  Richard Guenther  <rguenther@suse.de>
1314         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1315         (debug_constraint): Do it here.
1316         (dump_constraints): And here.
1317         (rewrite_constraints): And here.
1318         (dump_constraint_edge): Remove.
1319         (dump_constraint_graph): Rewrite to produce DOT output.
1320         (solve_constraints): Build succ graph as late as possible.
1321         Dump constraint graphs before and after solving.
1323 2011-04-28  Richard Guenther  <rguenther@suse.de>
1325         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1326         New function split out from ...
1327         (find_func_aliases): ... here.  Call it.
1328         (find_func_aliases_for_call): Likewise.
1330 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1332         * internal-fn.h (internal_fn_name_array): Declare.
1333         (internal_fn_flags_array): Likewise.
1335 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1337         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
1338         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1339         Move from sse.md.
1340         (ssemodefsuffix): Remove.
1341         (ssevecmodesuffix): New mode attribute.
1342         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1343         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1344         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1345         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1346         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1347         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1348         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1349         ssemodesuffix mode attribute.
1350         (float splitters): Use ssevecmodesuffix mode attribute.
1351         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1352         (sseinsmode): Rename from avxvecmode.
1353         (avxsizesuffix): Rename from avxmodesuffix.
1354         (sseintvecmode): Rename from avxpermvecmode.
1355         (ssedoublevecmode): Rename from ssedoublesizemode.
1356         (ssehalfvecmode): Rename from avxhalfvecmode.
1357         (ssescalarmode): Rename from avxscalarmode.
1358         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1359         templates for ssemodesuffix mode attribute.
1360         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1361         mode attribute.
1363         Adjust RTX patterns globally for renamed mode attributes.
1365 2011-04-27  Jan Hubcika  <jh@suse.cz>
1367         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1368         * ipa-inline-analysis.c: Include alloc-pool.h.
1369         (edge_predicate_pool): New.
1370         (trye_predicate_p): New function
1371         (false_predicate_p): New function.
1372         (add_clause): Sanity check that false clauses are "optimized";
1373         never add clauses to predicate that is already known to be false.
1374         (and_predicate): Use flase_predicate_p.
1375         (evaulate_predicate): Rename to ...
1376         (evaluate_predicate): ... this one; update all callers; assert
1377         that false is not listed among possible truths.
1378         (dump_predicate): Use true_predicate_p.
1379         (account_size_time): Use false_predicate_p.
1380         (evaulate_conditions_for_edge): Rename to ...
1381         (evaluate_conditions_for_edge) ... this one.
1382         (edge_set_predicate): New function.
1383         (inline_edge_duplication_hook): Duplicate edge predicates.
1384         (inline_edge_removal_hook): Free edge predicates.
1385         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1386         (dump_inline_summary): Update.
1387         (estimate_function_body_sizes): Set edge predicates.
1388         (estimate_calls_size_and_time): Handle predicates.
1389         (estimate_callee_size_and_time): Update.
1390         (remap_predicate): Add toplev_predicate; update comment.
1391         (remap_edge_predicates): New function.
1392         (inline_merge_summary): Compute toplev predicate; update.
1393         (read_predicate): New function.
1394         (read_inline_edge_summary): Use it.
1395         (inline_read_section): Likewise.
1396         (write_predicate): New function.
1397         (write_inline_edge_summary): Use it.
1398         (inline_write_summary): Likewise.
1399         (inline_free_summary): Free alloc pool and edge summary vec.
1401 2011-04-27  Richard Guenther  <rguenther@suse.de>
1403         * tree-ssa-structalias.c (changed_count): Remove.
1404         (changed): Use a bitmap.
1405         (unify_nodes): Adjust.
1406         (do_sd_constraint): Likewise.
1407         (do_ds_constraint): Likewise.
1408         (do_complex_constraint): Likewise.
1409         (solve_graph): Likewise.
1411 2011-04-27  Jan Hubicka  <jh@suse.cz>
1413         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1415 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1417         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1418         (avx_vperm2f128_*_operand): Ditto.
1419         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1420         Use avx_vpermilp_parallel in insn condition.
1421         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1422         Use avx_vperm2f128_parallel in insn condition.
1424 2011-04-27  Richard Guenther  <rguenther@suse.de>
1426         * Makefile.in (tree-ssa-structalias.o): Remove
1427         gt-tree-ssa-structalias.h dependency.
1428         (GTFILES): Remove tree-ssa-structalias.c.
1429         * tree.c (allocate_decl_uid): New function.
1430         (make_node_stat): Use it.
1431         (copy_node_stat): Likewise.
1432         * tree.h (allocate_decl_uid): Declare.
1433         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1434         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1435         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1436         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1437         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1438         (struct heapvar_map): Likewise.
1439         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1440         heapvar_insert): Likewise.
1441         (make_heapvar_for): Rename to ...
1442         (make_heapvar): ... this.  Simplify.
1443         (fake_var_decl_obstack): New global var.
1444         (build_fake_var_decl): New function.
1445         (make_constraint_from_heapvar): Adjust.
1446         (handle_lhs_call): Likewise.
1447         (create_function_info_for): Likewise.
1448         (intra_create_variable_infos): Likewise.
1449         (init_alias_vars): Allocate fake_var_decl_obstack.
1450         (init_alias_heapvars, delete_alias_heapvars): Remove.
1451         (compute_points_to_sets): Do not call init_alias_heapvars.
1452         (ipa_pta_execute): Likewise.
1453         (delete_points_to_sets): Free fake_var_decl_obstack.
1455 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1457         * config/spu/divmovti4.c (union qword_UTItype): New data type.
1458         (si_from_UTItype, si_to_UTItype): New functions.
1459         (__udivmodti4): Use them to implement type-punning.
1460         * config/spu/multi3.c (union qword_TItype): New data type.
1461         (si_from_TItype, si_to_TItype): New functions.
1462         (__multi3): Use them to implement type-punning.
1464 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1466         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1468 2011-04-27  Jan Hubicka  <jh@suse.cz>
1470         * ipa-prop.c (function_insertion_hook_holder): New holder.
1471         (ipa_add_new_function): New function.
1472         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1473         Register/deregister holder.
1475 2011-04-27  Richard Guenther  <rguenther@suse.de>
1477         PR tree-optimization/48772
1478         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1480 2011-04-27  Richard Guenther  <rguenther@suse.de>
1482         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1483         TARGET_MEM_REF handling.
1485 2011-04-27  Nick Clifton  <nickc@redhat.com>
1487         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1488         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1489         (REG_CLASS_NAMES): Likewise.
1490         (REG_CLASS_CONTENTS): Likewise.
1491         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1492         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1493         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
1494         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
1495         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
1496         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1497         duplicate register classes.
1498         (frv_class_likely_spilled_p): Likewise.
1499         (frv_register_move_cost): Likewise.
1501         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1502         end of the regno_reg_class array.
1504 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
1506         PR c/48742
1507         * c-typeck.c (build_binary_op): Don't wrap arguments if
1508         int_operands is true.
1510 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
1512         PR target/48767
1513         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1514         targetm.calls.must_pass_in_stack for void type.
1516 2011-04-26  Jan Hubicka  <jh@suse.cz>
1518         * cgraphbuild.c (build_cgraph_edges): Update call
1519         of cgraph_create_edge and cgraph_create_indirect_edge.
1520         * cgraph.c (cgraph_create_edge_including_clones,
1521         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1522         cgraph_update_edges_for_call_stmt_node): Do not take nest
1523         argument; do not initialize call_stmt_size/time.
1524         (dump_cgraph_node): Do not dump nest.
1525         (cgraph_clone_edge): Do not take loop_nest argument;
1526         do not propagate it; do not clone call_stmt_size/time.
1527         (cgraph_clone_node): Likewise.
1528         (cgraph_create_virtual_clone): Update.
1529         * cgraph.h (struct cgraph_edge): Remove
1530         call_stmt_size/call_stmt_time/loop_nest.
1531         (cgraph_create_edge, cgraph_create_indirect_edge,
1532         cgraph_create_edge_including_clones, cgraph_clone_node): Update
1533         prototype.
1534         * tree-emutls.c (gen_emutls_addr): Update.
1535         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1536         loop_nest; handle indirect calls, too.
1537         (clone_inlined_nodes): Do not care about updating inline summaries.
1538         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1539         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1540         stream call_stmt_size/call_stmt_time/loop_nest.
1541         * ipa-inline.c (edge_badness): Update.
1542         (ipa_inline): dump summaries after inlining.
1543         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1544         New.
1545         (inline_edge_summary): New function.
1546         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1547         (inline_edge_removal_hook): Handle edge summaries.
1548         (inline_edge_duplication_hook): New hook.
1549         (inline_summary_alloc): Alloc hooks.
1550         (initialize_growth_caches): Do not register removal hooks.
1551         (free_growth_caches); Do not free removal hook.
1552         (dump_inline_edge_summary): New function.
1553         (dump_inline_summary): Use it.
1554         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1555         (inline_update_callee_summaries): New function.
1556         (inline_merge_summary): Use it.
1557         (do_estimate_edge_time, do_estimate_edge_growth): Update.
1558         (read_inline_edge_summary): New function.
1559         (inline_read_section): Use it.
1560         (write_inline_edge_summary): New function.
1561         (inline_write_summary): Use it.
1562         (inline_free_summary): Free edge new holders.
1563         * tree-inline.c (copy_bb): Update.
1565 2011-04-26  Jason Merrill  <jason@redhat.com>
1567         * tree-eh.c (lower_try_finally_switch): Create the label along with
1568         the CASE_LABEL_EXPR.
1570 2011-04-26  David S. Miller  <davem@davemloft.net>
1571             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1573         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1574         * configure: Regenerate.
1576 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1578         PR target/48258
1579         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1580         reduction.
1581         (VEC_reduc): New code iterator and splitters for vector reduction.
1582         (VEC_reduc_name): Ditto.
1583         (VEC_reduc_rtx): Ditto.
1584         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1585         (reduc_<VEC_reduc_name>_v4sf): Ditto.
1587         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1588         support for extracting SF on VSX.
1590         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1591         generating xscvspdp.
1592         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1593         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1594         double add, minimum, maximum vector reduction.
1595         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1596         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1597         optimize double vector reduction.
1598         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1600 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
1602         * config/fr30/fr30.h (inhibit_libc): Don't define.
1603         * config/m32r/m32r-protos.h: Correct comment.
1604         * config/v850/v850.h (GHS_default_section_names,
1605         GHS_current_section_names): Use tree, not union tree_node *.
1607 2011-04-26  Xinliang David Li  <davidxl@google.com>
1609         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1610         * c-family/c-opts.c (c_common_handle_option): Set
1611         warn_maybe_uninitialized.
1612         * opts.c (common_handle_option): Ditto.
1613         * common.opt:  New option.
1614         * tree-ssa.c (warn_uninit): Add one more parameter.
1615         (warn_uninitialized_var): Pass warning code.
1616         * tree-flow.h: Interface change.
1619 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1621         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1622         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1623         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1625 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1627         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1628         * config/mips/mips.opt (mmips-tfile): Remove.
1630         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1631         mips-tdump reference to ...
1632         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
1633         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1634         reference by Tru64 UNIX.
1636 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
1638         PR debug/48768
1639         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1640         is error_mark_node, set value to NULL.
1642         PR tree-optimization/48734
1643         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1644         if return value from maybe_fold_*_comparsions isn't something
1645         the code is prepared to handle.
1647 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
1649         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1650         mode check.
1651         (ext_QIreg_nomode_operands): Remove.
1652         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1653         (*andsi_1): Ditto.
1654         (*andhi_1): Ditto.
1656 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
1658         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1660 2011-04-26  Richard Guenther  <rguenther@suse.de>
1662         * c-typeck.c (build_unary_op): Do not expand array-refs via
1663         pointer arithmetic.  Only adjust qualifiers for function types.
1665 2011-04-26  Richard Guenther  <rguenther@suse.de>
1667         PR middle-end/48694
1668         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1669         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1670         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
1671         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1673 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
1675         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1676         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1677         * doc/extend.texi: Document __underlying_type.
1679 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
1681         * config/rs6000/titan.md (automata_option "progress"): Remove.
1683 2011-04-25  Jeff Law  <law@redhat.com>
1685         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1687 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1689         * system.h (ENUM_BITFIELD): Remove.
1691 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
1692             Eric Botcazou  <ebotcazou@adacore.com>
1694         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1695         for STORE_FLAG_VALUE==-1 case.
1697 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
1699         PR target/43804
1700         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1701         LEGITIMATE_PIC_OPERAND_P.
1703 2011-04-24  Jan Hubicka  <jh@suse.cz>
1705         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1706         WPA hack.
1707         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1708         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1709         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1710         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1711         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1712         Sanity check predicate length.
1713         (remap_predicate): Likewise; sanity check jump functions.
1714         (inline_read_section, inline_write_summary): Sanity check
1715         predicate length.
1717 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1719         PR other/48748
1720         * doc/extend.texi (Type Traits): Document __is_standard_layout,
1721         __is_literal_type, and __is_trivial; update throughout about
1722         possibly cv-qualified void types.
1724 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
1726         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1727         testsuite and make it version agnostic.
1729 2011-04-22  Jan Hubicka  <jh@suse.cz>
1731         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1733 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
1735         PR c/48685
1736         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1737         to VOID_TYPE even around MODIFY_EXPR.
1739 2011-04-22  Mike Stump  <mikestump@comcast.net>
1741         * gensupport.c (read_md_rtx): Fix typo in comment.
1742         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1743         comment.
1745 2011-04-22  Jan Hubicka  <jh@suse.cz>
1747         * gengtype.c (open_base_files): Add ipa-inline.h include.
1748         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1749         ipa-prop.c; update all uses.
1750         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1751         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1752         merge summary of inlined function into former caller.
1753         * ipa-inline.c (max_benefit): Remove.
1754         (edge_badness): Compensate for removal of benefits.
1755         (update_caller_keys): Use
1756         reset_node_growth_cache/reset_edge_growth_cache.
1757         (update_callee_keys): Likewise.
1758         (update_all_callee_keys): Likewise.
1759         (inline_small_functions): Do not collect max_benefit; do not reset
1760         estimated_growth; call free_growth_caches and initialize_growth_caches.
1761         * ipa-inline.h (struct condition, type clause_t, struct predicate,
1762         struct size_time_entry): New structures.
1763         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1764         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1765         and estimated_growth.
1766         (edge_growth_cache_entry): New structure.
1767         (node_growth_cache, edge_growth_cache): New global vars.
1768         (estimate_growth): Turn into inline.
1769         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1770         initialize_growth_caches, free_growth_caches): Declare.
1771         (estimate_edge_growth): Rewrite.
1772         (estimate_edge_time): Implement as inline cache lookup.
1773         (reset_node_growth_cache, reset_edge_growth_cache): New inline
1774         functions.
1775         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
1776         (NUM_CONDITIONS): New constant.
1777         (predicate_conditions): New enum.
1778         (IS_NOT_CONSTANT): New constant.
1779         (edge_removal_hook_holder): New var.
1780         (node_growth_cache, edge_growth_cache): New global vars.
1781         (true_predicate, single_cond_predicate, false_predicate,
1782         not_inlined_predicate, add_condition, add_clause, and_predicates,
1783         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
1784         dump_clause, dump_predicate, account_size_time,
1785         evaulate_conditions_for_edge): New functions.
1786         (inline_summary_alloc): Move to heap.
1787         (inline_node_removal_hook): Clear condition and entry vectors.
1788         (inline_edge_removal_hook): New function.
1789         (initialize_growth_caches, free_growth_caches): New function.
1790         (dump_inline_summary): Update.
1791         (edge_execution_predicate): New function.
1792         (will_be_nonconstant_predicate): New function.
1793         (estimate_function_body_sizes): Compute BB and constantness predicates.
1794         (compute_inline_parameters): Do not clear estimated_growth.
1795         (estimate_edge_size_and_time): New function.
1796         (estimate_calls_size_and_time): New function.
1797         (estimate_callee_size_and_time): New function.
1798         (remap_predicate): New function.
1799         (inline_merge_summary): New function.
1800         (do_estimate_edge_time): New function based on...
1801         (estimate_edge_time): ... this one.
1802         (do_estimate_edge_growth): New function.
1803         (do_estimate_growth): New function based on....
1804         (estimate_growth): ... this one.
1805         (inline_analyze_function): Analyze after deciding on jump functions.
1806         (inline_read_section): New function.
1807         (inline_read_summary): Use it.
1808         (inline_write_summary): Write all the new data.
1809         * ipa-prop.c (ipa_get_param_decl_index): Export.
1810         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
1811         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
1812         Declare.
1813         (ipa_get_lattice): Move here from ipa-cp.c
1814         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
1815         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
1816         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
1817         cgraph_edge_inlinable_p): Remove.
1818         * cgraphunit.c: Include ipainline.h
1819         (cgraph_process_new_functions): Update call of
1820         compute_inline_parameters.
1822 2011-04-22  Richard Guenther  <rguenther@suse.de>
1824         * tree.c (build_int_cst): Properly create canonicalized integer
1825         constants.
1826         (build_int_cst_type): Remove scary comments.
1828 2011-04-22  Xinliang David Li  <davidxl@google.com>
1830         * toplev.c (process_options): Enable -Werror=coverage-mismatch
1831         by default when -Wno-error is not specified.
1832         * opts-global.c (decode_options): Remove call to
1833         control_warning_options.
1835 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
1837         PR tree-optimization/48717
1838         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
1839         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
1841 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
1843         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
1844         definition where used.
1846 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
1848         PR c/48716
1849         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
1850         TREE_STATIC variables declared inside of some OpenMP construct.
1852 2011-04-22  Martin Jambor  <mjambor@suse.cz>
1854         PR middle-end/48585
1855         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
1857 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
1859         PR c/36750
1860         * c-typeck.c (pop_init_level): Do not warn about initializing
1861         with ` = {0}'.
1863 2011-04-22  Alan Modra  <amodra@gmail.com>
1865         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
1866         when returning call_cookie.
1867         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
1868         pointers, to functions with no more vector args than the current
1869         function, and some non-local calls for ABI_V4.
1870         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
1871         sibcall_nonlocal_aix64): Combine to ..
1872         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
1873         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
1874         (sibcall_value_nonlocal_aix<mode>): ..likewise.
1875         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
1876         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
1877         operand.
1878         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
1879         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
1880         sibcall_value_symbolic_64): Delete.
1882 2011-04-21  Xinliang David Li  <davidxl@google.com>
1884         * cgraph.h: Remove pid.
1885         * cgraph.c: Remove pid.
1886         * value-prof.c (init_node_map): New function.
1887         (del_node_map): New function.
1888         (find_func_by_funcdef_no): New function.
1889         (gimple_ic_transform): Call new function.
1890         * cgraphunit.c (cgraph_finalize_function): Remove pid.
1891         * function.c (get_last_funcdef_no): New function.
1892         * function.h (get_last_funcdef_no): New function.
1893         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
1894         to libgcov function.
1895         (tree-profiling): Call node map init and delete function.
1897 2011-04-21  Ian Lance Taylor  <iant@google.com>
1899         * godump.c (go_format_type): Use exported Go name for anonymous
1900         field name.
1902 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
1904         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
1905         Call builtin_function_type_list instead of builtin_function_type.
1906         (UNARY, BINARY, TRINARY, QUAD): Likewise.
1908 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
1910         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
1911         build_function_type_list instead of build_function_type.
1912         Delete variable `endlink'.
1914 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
1916         * config/s390/s390.c (s390_init_builtins): Call
1917         build_function_type_list instead of build_function_type.
1919 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
1921         * config/ia64/ia64.c (ia64_init_builtins): Call
1922         build_function_type_list instead of builtin_function_type.
1924 2011-04-21  Easwaran Raman  <eraman@google.com>
1926         * cfgexpand.c (stack_var): Remove OFFSET...
1927         (add_stack_var): ...and its reference here...
1928         (expand_stack_vars): ...and here.
1929         (stack_var_cmp): Sort by descending order of size.
1930         (partition_stack_vars): Change heuristic.
1931         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
1932         (dump_stack_var_partition): Add newline after each partition.
1934 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
1935             Jeff Law  <law@redhat.com>
1937         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
1938         * gengtype.c (matching_file_name_substitute): Likewise.
1940 2011-04-21  Richard Guenther  <rguenther@suse.de>
1942         PR lto/48703
1943         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
1945 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
1947         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
1949 2011-04-21  Richard Guenther  <rguenther@suse.de>
1951         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
1952         file name.
1954 2011-04-21  Richard Guenther  <rguenther@suse.de>
1956         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1957         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
1958         Use DECL_P, not SSA_VAR_P.
1959         (ptr_derefs_may_alias_p): Likewise.
1960         (ptr_deref_may_alias_ref_p_1): Likewise.
1961         (decl_refs_may_alias_p): Likewise.
1962         (refs_may_alias_p_1): Likewise.
1963         (ref_maybe_used_by_call_p_1): Likewise.
1964         (call_may_clobber_ref_p_1): Likewise.
1965         (indirect_ref_may_alias_decl_p): Assume indirect refrences
1966         are either MEM_REF or TARGET_MEM_REF.
1967         (indirect_refs_may_alias_p): Likewise.
1968         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
1969         for MEM_EXPR of indirect calls.
1971 2011-04-21  Tristan Gingold  <gingold@adacore.com>
1973         * vmsdbgout.c (write_srccorr): Compute file length from the string.
1974         (dst_file_info_struct): Remove flen field.
1975         (lookup_filename): Remove code that set flen field.
1977 2011-04-21  Tristan Gingold  <gingold@adacore.com>
1979         * config/ia64/ia64.c (ia64_start_function): Add a guard.
1981 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
1983         PR target/48708
1984         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
1985         vec_extract and vec_concat for non-SSE4_1 targets.
1987 2011-04-21  Richard Guenther  <rguenther@suse.de>
1989         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
1990         return statements.
1992 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
1994         * config/i386/cygming.h (union tree_node, TREE): Don't define or
1995         undefine.
1996         (FILE): Don't undefine.
1998 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2000         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2001         struct rtx_def *.
2002         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2003         struct rtx_def *.
2004         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2005         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2006         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2007         rtx_def *.
2008         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2009         definitions where used.
2010         * config/microblaze/microblaze.h (struct microblaze_args): Use
2011         rtx, not struct rtx_def *.
2012         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2013         rtx_def *.
2014         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2015         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2016         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2017         not struct rtx_def *.
2018         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2019         struct rtx_def *.
2020         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2021         rtx_def *.
2022         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2024 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2026         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2027         operand_equal_p to compare DR_BASE_ADDRESSes.
2028         (vect_check_interleaving): Likewise.
2030 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2032         PR target/46329
2033         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2034         for all Neon struct constants.
2036 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2038         * target.def (legitimate_constant_p): New hook.
2039         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2040         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2041         * doc/tm.texi: Regenerate.
2042         * hooks.h (hook_bool_mode_rtx_true): Declare.
2043         * hooks.c (hook_bool_mode_rtx_true): Define.
2044         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2045         * calls.c (precompute_register_parameters): Replace uses of
2046         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2047         (emit_library_call_value_1): Likewise.
2048         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2049         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2050         * ira-costs.c (scan_one_insn): Likewise.
2051         * recog.c (general_operand, immediate_operand): Likewise.
2052         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2053         * reload1.c (init_eliminable_invariants): Likewise.
2055         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2056         mode argument.
2057         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2058         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2059         argument.
2060         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2061         * config/alpha/predicates.md (input_operand): Update call to
2062         alpha_legitimate_constant_p.
2064         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2065         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2066         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2067         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2068         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2069         (arm_legitimate_constant_p): New functions.
2070         (arm_cannot_force_const_mem): Make static.
2072         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2074         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2075         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2076         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2077         instead of bfin_legitimate_constant_p.
2078         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2079         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2081         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2083         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2085         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2086         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2087         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2088         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2090         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2091         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2092         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2094         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2095         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2096         * config/i386/i386.c (legitimate_constant_p): Rename to...
2097         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2098         argument.
2099         (ix86_cannot_force_const_mem): Update accordingly.
2100         (ix86_legitimate_address_p): Likewise.
2101         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2102         * config/i386/i386.md: Update commentary.
2104         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2105         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2106         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2107         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2109         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2111         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2112         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2113         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2114         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2116         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2117         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2118         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2120         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2121         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2122         (m32r_legitimate_constant_p): New function.
2124         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2125         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2126         LEGITIMATE_CONSTANT_P.
2127         (LEGITIMATE_CONSTANT_P): Delete.
2128         * config/m68k/m68k.c (m68k_expand_prologue): Call
2129         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2130         (m68k_legitimate_constant_p): New function.
2131         * config/m68k/m68k.md: Update comments.
2133         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2134         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2135         (mcore_legitimate_constant_p): New function.
2137         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2138         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2139         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2140         Add a mode argument.
2141         (mep_legitimate_address): Update accordingly.
2142         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2144         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2145         Delete.
2146         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2147         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2148         static.  Check OP's mode for VOIDmode.
2149         (microblaze_legitimate_constant_p): New function.
2150         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2152         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2153         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2154         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2155         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2156         * config/mips/predicates.md: Update comments.
2158         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2159         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2160         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2161         (mmix_legitimate_constant_p): Make static, return a bool, and take
2162         a mode argument.
2163         (mmix_print_operand_address): Update accordingly.
2165         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2166         Delete.
2167         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2168         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2169         static.  Add a mode argument.
2170         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2172         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2174         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2175         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2176         (pa_legitimate_constant_p): New function.
2178         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2180         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2181         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2182         (pdp11_legitimate_constant_p): New function.
2184         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2185         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2186         (rs6000_legitimate_constant_p): New function.
2188         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2189         (rx_legitimate_constant_p): ...this.
2190         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2191         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2192         (rx_legitimate_constant_p): ...this.
2193         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2194         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2196         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2197         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2198         * config/s390/s390.c (legitimate_constant_p): Rename to...
2199         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
2200         and add a mode argument.
2201         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2203         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2205         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2206         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2207         (sh_legitimate_constant_p): New function.
2209         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2210         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2211         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2212         (legitimate_constant_p): Rename to...
2213         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
2214         argument.
2215         (constant_address_p): Update accordingly.
2217         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2218         argument and return a bool.
2219         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2220         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2221         (spu_legitimate_constant_p): Add a mode argument and return a bool.
2222         (spu_rtx_costs): Update accordingly.
2223         * config/spu/predicates.md (vec_imm_operand): Likewise.
2225         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2227         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2228         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2229         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2231         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2232         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2233         * config/vax/vax.c (legitimate_constant_p): Likewise.
2235         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2236         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2237         (xtensa_legitimate_constant_p): New function.
2239 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2241         * target.def (cannot_force_const_mem): Add a mode argument.
2242         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2243         * doc/tm.texi: Regenerate.
2244         * hooks.h (hook_bool_mode_rtx_false): Declare.
2245         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2246         (hook_bool_mode_const_rtx_true): Likewise.
2247         (hook_bool_mode_rtx_false): New function.
2248         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2249         to be non-VOID.  Update call to cannot_force_const_mem.
2250         (find_reloads): Update accordingly.
2251         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2252         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2253         argument.
2254         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2255         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2256         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2257         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2258         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2259         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2260         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2261         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2262         (m68k_cannot_force_const_mem): ...this new function.
2263         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2264         argument.
2265         (mips_const_insns, mips_legitimize_const_move): Update calls.
2266         (mips_secondary_reload_class): Likewise.
2267         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2268         (pa_cannot_force_const_mem): ...this new function.
2269         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2270         (rs6000_cannot_force_const_mem): ...this new function.
2271         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2272         argument.
2273         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2274         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2275         to...
2276         (xtensa_cannot_force_const_mem): ...this new function.
2278 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2280         * config/mips/mips.c (mips16_build_function_stub): Call
2281         build_function_type_list instead of build_function_type.
2282         (mips16_build_call_stub): Likewise.
2284 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2286         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2287         instead of build_function_type.
2289 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2291         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2292         instead of build_function_type.
2294 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
2296         PR target/48678
2297         * config/i386/i386.md (insv): Change operand 0 constraint to
2298         "register_operand".  Change operand 1 and 2 constraint to
2299         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
2300         * config/i386/sse.md (sse4_1_pinsrb): Export.
2301         (sse2_pinsrw): Ditto.
2302         (sse4_1_pinsrd): Ditto.
2303         (sse4_1_pinsrq): Ditto.
2304         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2305         * config/i386/i386.c (ix86_expand_pinsr): New.
2307 2011-04-20  Easwaran Raman  <eraman@google.com>
2309         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2310         containing union type only with -fstrict-aliasing.
2312 2011-04-20  Jim Meyering  <meyering@redhat.com>
2314         Remove useless if-before-free tests.
2315         * calls.c (expand_call, save_area): Likewise.
2316         * cfgcleanup.c (try_forward_edges): Likewise.
2317         * collect2.c (collect_execute): Likewise.
2318         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2319         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2320         * coverage.c (coverage_checksum_string): Likewise.
2321         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2322         * cselib.c (cselib_init): Likewise.
2323         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2324         (df_set_clean_cfg): Likewise.
2325         * function.c (free_after_compilation): Likewise.
2326         * gcc.c (do_spec_1, main): Likewise.
2327         * gcov.c (create_file_names): Likewise.
2328         * gensupport.c (identify_predicable_attribute): Likewise.
2329         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2330         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2331         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2332         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2333         * ipa-pure-const.c (local_pure_const): Likewise.
2334         * ipa-reference.c (propagate): Likewise.
2335         * ira-costs.c (free_ira_costs): Likewise.
2336         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2337         * matrix-reorg.c (mat_free): Likewise.
2338         * prefix.c (get_key_value): Likewise.
2339         * profile.c (compute_value_histograms): Likewise.
2340         * reload1.c (free_reg_equiv): Likewise.
2341         * sched-deps.c (free_deps): Likewise.
2342         * sel-sched-ir.c (fence_clear): Likewise.
2343         * sese.c (set_rename, if_region_set_false_region): Likewise.
2344         * tree-data-ref.c (free_rdg): Likewise.
2345         * tree-eh.c (lower_try_finally): Likewise.
2346         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2347         * tree-ssa-live.c (delete_var_map): Likewise.
2348         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2349         * tree-ssa-pre.c (phi_trans_add): Likewise.
2351 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
2353         PR tree-optimization/48611
2354         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2355         beyond ERT_MUST_NOT_THROW region.
2357 2011-04-20  Catherine Moore  <clm@codesourcery.com>
2359         * config/mips/mips.opt (mfix-24k): New.
2360         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2361         * config/mips/mips.md (length): Increase by 4 for stores if
2362         fixing 24K errata.
2363         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2364         all noreorder if fixing 24K errata.
2365         * doc/invoke.texi: Document mfix-24k.
2367 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
2369         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2370         quad-word modes, reduce to 9-bit index range when above 1016 limit.
2372 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2374         * config/arm/arm.c (arm_gen_constant): Move movw support ....
2375         (const_ok_for_op): ... to here.
2377 2011-04-20  Kai Tietz  <ktietz@redhat.com>
2379         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2380         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2382 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2384         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2386 2011-04-20  Richard Guenther  <rguenther@suse.de>
2388         PR tree-optimization/47892
2389         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2390         are if-convertible.
2392 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2394         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2396 2011-04-20  Tristan Gingold  <gingold@adacore.com>
2398         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2400 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
2402         PR target/18145
2404         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2405         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2406         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2407         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2408         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2410         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2411         New prototype.
2413         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2414         (avr_asm_named_section, avr_asm_output_aligned_common,
2415         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2416         New functions to update...
2417         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2418         (avr_asm_init_sections): Overwrite section callbacks for
2419         data_section, bss_section.
2420         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2421         from here to...
2422         (avr_file_end): ...here.
2424 2011-04-20  Richard Guenther  <rguenther@suse.de>
2426         PR middle-end/48695
2427         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2428         objects and types here.  Adjust for their offset before comparing.
2430 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2432         * tree-vect-stmts.c (vectorizable_store): Only chain one related
2433         statement per copy.
2435 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2437         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2438         (GIMPLE_H): Include $(INTERNAL_FN_H).
2439         (OBJS-common): Add internal-fn.o.
2440         (internal-fn.o): New rule.
2441         * internal-fn.def: New file.
2442         * internal-fn.h: Likewise.
2443         * internal-fn.c: Likewise.
2444         * gimple.h: Include internal-fn.h.
2445         (GF_CALL_INTERNAL): New gf_mask.
2446         (gimple_statement_call): Put fntype into a union with a new
2447         internal_fn field.
2448         (gimple_build_call_internal): Declare.
2449         (gimple_build_call_internal_vec): Likewise.
2450         (gimple_call_same_target_p): Likewise.
2451         (gimple_call_internal_p): New function.
2452         (gimple_call_internal_fn): Likewise.
2453         (gimple_call_fntype): Return null for internal calls.
2454         (gimple_call_set_fntype): Assert that the function is not internal.
2455         (gimple_call_set_fn): Likewise.
2456         (gimple_call_set_fndecl): Likewise.
2457         (gimple_call_set_internal_fn): New function.
2458         (gimple_call_addr_fndecl): Handle null functions.
2459         (gimple_call_return_type): Likewise null types.
2460         * gimple.c (gimple_build_call_internal_1): New function.
2461         (gimple_build_call_internal): Likewise.
2462         (gimple_build_call_internal_vec): Likewise.
2463         (gimple_call_same_target_p): Likewise.
2464         (gimple_call_flags): Handle calls to internal functions.
2465         (gimple_call_fnspec): New function.
2466         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2467         (gimple_has_side_effects): Handle null functions.
2468         (gimple_rhs_has_side_effects): Likewise.
2469         (gimple_call_copy_skip_args): Handle calls to internal functions.
2470         * cfgexpand.c (expand_call_stmt): Likewise.
2471         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2472         * gimple-fold.c (gimple_fold_call): Handle null functions.
2473         (gimple_fold_stmt_to_constant_1): Don't fold
2474         calls to internal functions.
2475         * gimple-low.c (gimple_check_call_args): Handle calls to internal
2476         functions.
2477         * gimple-pretty-print.c (dump_gimple_call): Likewise.
2478         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2479         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2480         (do_warn_unused_result): Likewise.
2481         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2482         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2483         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2484         the target of a call.
2485         (initialize_hash_element): Update accordingly.
2486         (hashable_expr_equal_p): Use gimple_call_same_target_p.
2487         (iterative_hash_hashable_expr): Handle calls to internal functions.
2488         (print_expr_hash_elt): Likewise.
2489         * tree-ssa-pre.c (can_value_number_call): Likewise.
2490         (eliminate): Handle null functions.
2491         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2492         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2493         (find_func_aliases): Likewise.
2494         * value-prof.c (gimple_ic_transform): Likewise.
2495         (gimple_indirect_call_to_profile): Likewise.
2496         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2497         * lto-streamer-out.c (output_gimple_stmt): Likewise.
2499 2011-04-19  Jan Hubicka  <jh@suse.cz>
2501         * ipa-inline-transform.c (save_inline_function_body): Add comments.
2502         * ipa-inline.c (inline_small_functions): Compute summaries first,
2503         populate heap later.
2505 2011-04-19  Jan Hubicka  <jh@suse.cz>
2507         * cgraph.h (save_inline_function_body): Remove.
2508         * ipa-inline-transform.c: New file, broke out of...
2509         * ipa-inline.c: ... this one; Update toplevel comment.
2510         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2511         make global.
2512         (update_noncloned_frequencies): Move to ipa-inline-transform.c
2513         (cgraph_mark_inline_edge): Rename to inline_call; move to
2514         ipa-inline-transform.c.
2515         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2516         move to ipa-inline-transform.c
2517         (recursive_inlining, inline_small_functions, flatten_function,
2518         ipa_inline, inline_always_inline_functions,
2519         early_inline_small_functions): Update.
2520         (inline_transform): Move to ipa-inline-transform.c.
2521         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2522         Declare.
2523         * Makefile.in (ipa-inline-transform.o): New file.
2524         * cgraphunit.c (save_inline_function_body): Move to
2525         ipa-inline-transform.c
2527 2011-04-19  DJ Delorie  <dj@redhat.com>
2529         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2530         registers if we already know there aren't any.
2531         (m32c_emit_epilogue): Don't emit a barrier here.
2532         (m32c_emit_eh_epilogue): Likewise.
2533         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2534         operands at expand time.
2535         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2536         int" wchar type.
2537         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2538         duplicates.  Provide aliases instead.
2539         * config/m32c/prologue.md (eh_return): Emit a barrier here.
2540         (eh_epilogue): Add a "(return)" here as a hint to other parts of
2541         the compiler.
2543 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
2545         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2546         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2547         (general_or_i64_p, sparc_register_move_cost): New function.
2549 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2551         * doc/install.texi (Configuration, --enable-threads): Remove mach.
2552         Add lynx, mipssde.  Sort table.
2554 2011-04-19  Xinliang David Li  <davidxl@google.com>
2556         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2557         not negative.
2559 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
2561         PR target/48678
2562         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2563         is a SUBREG with non-MODE_INT mode inside of it.
2565 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2567         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2568         also according to actual contants.
2569         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2570         (gimple_fold_call): Use it.
2571         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2573 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2575         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2576         non-pointer assignments.
2578 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2580         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2581         account anc_offset and otr_type from the indirect edge info.
2582         * ipa-prop.c (get_ancestor_addr_info): New function.
2583         (compute_complex_ancestor_jump_func): Assignment analysis moved to
2584         get_ancestor_addr_info, call it.
2585         (ipa_note_param_call): Do not initialize information about polymorphic
2586         calls, return the indirect call graph edge.  Remove the last
2587         parameter, adjust all callers.
2588         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2589         parameters.  Initialize polymorphic information in the indirect edge.
2591 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2593         PR lto/48148
2594         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2595         the types if they have different enumeration identifiers.
2597 2011-04-19  Jan Hubicka  <jh@suse.cz>
2599         * cgraph.h (cgraph_optimize_for_size_p): Declare.
2600         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2601         * predict.c (cgraph_optimize_for_size_p): Break out from ...
2602         (optimize_function_for_size_p) ... here.
2604 2011-04-19  Richard Guenther  <rguenther@suse.de>
2606         PR lto/48207
2607         * tree.c (free_lang_data): Do not reset the decl-assembler-name
2608         langhook.
2610 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2612         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2613         if DECL_NO_INLINE_WARNING_P is set on the function.
2615 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
2617         PR fortran/47976
2618         * reload1.c (inc_for_reload): Return void. All callers changed.
2619         (emit_input_reload_insns): Don't try to delete previous output
2620         reloads to a register, or record spill_reg_store for autoincs.
2622 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
2624         * gengtype.h: Updated copyright year.
2625         (struct input_file_st): Add inpisplugin field.
2626         (type_fileloc): New function.
2627         * gengtype.c
2628         (write_typed_struct_alloc_def): Add gcc_assert.
2629         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2630         (write_typed_alloc_defns): Don't output for plugin files.
2631         (input_file_by_name): Clear inpisplugin field.
2632         (main): Set inpisplugin field for plugin files.
2634 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2636         * gengtype-state.c (string_eq): New.
2637         (read_state): Use string_eq instead of strcmp when creating the
2638         state_ident_tab.
2640 2011-04-19  Wei Guozhi  <carrot@google.com>
2642         PR target/47855
2643         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2644         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2645         linkage.
2646         * config/arm/constraints.md (Uu): New constraint.
2647         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2649 2011-04-19  Tristan Gingold  <gingold@adacore.com>
2651         * config.gcc (-*-*-*vms): Added.
2652         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2653         definitions moved.
2654         * config/vms/vms-ld.c: New file.
2655         * config/vms/vms-ar.c: New file.
2656         * config/vms/t-vmsnative: New file.
2658 2011-04-18  Xinliang David Li  <davidxl@google.com>
2660         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2662 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
2664         PR middle-end/48661
2665         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2666         if TREE_TYPE (v) is non-NULL.
2668         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2669         gimple_get_virt_mehtod_for_binfo.
2670         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2671         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2672         callers.
2673         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2675 2011-04-18  Michael Matz  <matz@suse.de>
2676             Steve Ellcey  <sje@cup.hp.com>
2678         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2679         use its mode as source mode if it isn't VOIDmode.
2681 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
2683         * doc/passes.texi: Fill crossref nodes.
2685 2011-04-18  Jim Meyering  <meyering@redhat.com>
2687         Fix doubled-word typos in comments and strings
2688         * config/alpha/vms-unwind.h: s/for for/for/
2689         * config/arm/unwind-arm.h: Likewise.
2690         * config/microblaze/microblaze.c: Likewise.
2691         * config/sh/constraints.md: s/in in/in/
2692         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2694 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
2696         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2697         (AVX_FLOAT_MODE_P): Ditto.
2698         (AVX128_VEC_FLOAT_MODE_P): Ditto.
2699         (AVX256_VEC_FLOAT_MODE_P): Ditto.
2700         (AVX_VEC_FLOAT_MODE_P): Ditto.
2701         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2702         (UNSPEC_MASKSTORE): Ditto.
2703         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2704         Merge from <sse>_movmsk<ssemodesuffix> and
2705         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
2706         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
2707         iterator.
2708         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2709         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2710         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2712 2011-04-18  Jan Hubicka  <jh@suse.cz>
2714         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2716         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2717         (want_inline_function_called_once_p): Break out the logic from
2718         ipa_inline.
2719         (edge_badness): Ensure that profile is not misupdated.
2720         (lookup_recursive_calls): Prioritize by call frequencies.
2721         (inline_small_functions): Move program size estimates here;
2722         actually process whole queue even when unit growth has been
2723         met. (to properly compute inline_failed reasons and for the
2724         case unit size decrease.) Revisit comments on recursive inlining.
2725         (ipa_inline): Remove unit summary code; first inline hot calls
2726         of functions called once, cold calls next.
2727         (order, nnodes): Remove unused variables.
2728         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2729         (GTFILES): Remove ipa-inline.c
2730         * sel-sched.c (fill_insns): Silence uninitialized var warning.
2732 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2734         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2736 2011-04-18  Jie Zhang  <jie@codesourcery.com>
2737             Richard Earnshaw  <rearnsha@arm.com>
2739         * arm.c (neon_builtin_type_bits): Remove.
2740         (typedef enum neon_builtin_mode): New.
2741         (T_MAX): Don't define.
2742         (typedef enum neon_builtin_datum): Remove bits, codes[],
2743         num_vars and base_fcode.  Add mode, code and fcode.
2744         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2745         VAR10): Change accordingly.
2746         (neon_builtin_data[]): Change accordingly
2747         (arm_init_neon_builtins): Change accordingly.
2748         (neon_builtin_compare): Remove.
2749         (locate_neon_builtin_icode): Remove.
2750         (arm_expand_neon_builtin): Change accordingly.
2752         * arm.h (enum arm_builtins): Move to ...
2753         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2755         * arm.c (arm_builtin_decl): Declare.
2756         (TARGET_BUILTIN_DECL): Define.
2757         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2758         (arm_builtin_decls[]): New.
2759         (arm_init_neon_builtins): Store builtin declarations in
2760         arm_builtin_decls[].
2761         (arm_init_tls_builtins): Likewise.
2762         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
2763         (arm_builtin_decl): New.
2765 2011-04-18  Richard Guenther  <rguenther@suse.de>
2767         * tree.c (upper_bound_in_type): Build properly canonicalized
2768         INTEGER_CSTs.
2769         (lower_bound_in_type): Likewise.
2771 2011-04-18  Richard Guenther  <rguenther@suse.de>
2773         * gimple.h (gimple_call_addr_fndecl): New function.
2774         (gimple_call_fndecl): Use it.
2775         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
2776         for direct calls.
2777         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
2778         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
2780 2011-04-18  Richard Guenther  <rguenther@suse.de>
2782         PR middle-end/48650
2783         * tree.c (build_string): STRING_CST is now derived from tree_typed.
2785 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2787         PR lto/48492
2788         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2789         DECL_IN_CONSTANT_POOL without RTL.
2791 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
2792             Ira Rosen  <ira.rosen@linaro.org>
2794         PR target/48252
2795         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2796         to match neon_vzip/vuzp/vtrn_internal.
2797         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2798         outputs explicitly dependent on both inputs.
2799         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2801 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
2803         PR tree-optimization/48616
2804         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2805         whether the shift is by scalar or vector based on whether all SLP
2806         scalar stmts have the same rhs.
2808 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
2810         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
2811         memory operands.
2813 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
2815         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2816         registers.
2818 2011-04-17  Jan Hubicka  <jh@suse.cz>
2820         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
2821         * cgrpahunit.c (cgraph_finalize_function): Do not set
2822         finalized_by_frontend.
2823         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2824         finalized_by_frontend.
2826 2011-04-17  Jan Hubicka  <jh@suse.cz>
2828         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
2829         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
2830         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
2831         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
2832         method.
2833         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
2834         gimple-fold.c
2835         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
2837 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2839         PR lto/48538
2840         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2841         is non-null before accessing it.
2842         (input_cgraph): Remove trailing spaces.
2844 2011-04-17  Revital Eres  <revital.eres@linaro.org>
2846         * params.def (sms-min-sc): New param flag.
2847         * modulo-sched.c (sms_schedule): Use it.
2848         * doc/invoke.texi (sms-min-sc): Document it.
2850 2011-04-17  Jan Hubicka  <jh@suse.cz>
2852         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
2853         present, also set gimple_call_set_cannot_inline.
2854         * ipa-inline.c: Update toplevel comment.
2855         (MAX_TIME): Remove.
2856         (cgraph_clone_inlined_nodes): Fix linebreaks.
2857         (cgraph_check_inline_limits): Restructure to ...
2858         (caller_growth_limits): ... this one; be more tolerant
2859         on growth in nested inline chains; add explanatory comment;
2860         fix stack accounting thinko introduced by previous patch.
2861         (cgraph_default_inline_p): Remove.
2862         (report_inline_failed_reason): New function.
2863         (can_inline_edge_p): New function.
2864         (can_early_inline_edge_p): New function.
2865         (leaf_node_p): Move upwards in file.
2866         (want_early_inline_function_p): New function.
2867         (want_inline_small_function_p): New function.
2868         (want_inline_self_recursive_call_p): New function.
2869         (cgraph_edge_badness): Rename to ...
2870         (edge_badness) ... this one; fix linebreaks.
2871         (update_edge_key): Update call of edge_baddness; add
2872         detailed dump about queue updates.
2873         (update_caller_keys): Use can_inline_edge_p and
2874         want_inline_small_function_p.
2875         (cgraph_decide_recursive_inlining): Rename to...
2876         (recursive_inlining): Use can_inline_edge_p and
2877         want_inline_self_recursive_call_p; simplify and remove no longer
2878         valid FIXME.
2879         (cgraph_set_inline_failed): Remove.
2880         (add_new_edges_to_heap): Use can_inline_edge_p and
2881         want_inline_small_function_p.
2882         (cgraph_decide_inlining_of_small_functions): Rename to ...
2883         (inline_small_functions): ... this one; cleanup; use
2884         can/want predicates; cleanup debug ouput; work edges till fibheap
2885         is exhausted and do not stop once unit growth is reached; remove
2886         later loop processing remaining edges.
2887         (cgraph_flatten): Rename to ...
2888         (flatten_function): ... this one; use can_inline_edge_p
2889         and can_early_inline_edge_p predicates.
2890         (cgraph_decide_inlining): Rename to ...
2891         (ipa_inline): ... this one; remove unreachable nodes before
2892         inlining functions called once; simplify the pass.
2893         (cgraph_perform_always_inlining): Rename to ...
2894         (inline_always_inline_functions): ... this one; use
2895         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
2896         (cgraph_decide_inlining_incrementally): Rename to ...
2897         (early_inline_small_functions): ... this one; simplify
2898         using new predicates; cleanup; make dumps prettier.
2899         (cgraph_early_inlining): Rename to ...
2900         (early_inliner): newer inline regular functions into always-inlines;
2901         fix updating of call stmt summaries.
2902         (pass_early_inline): Update for new names.
2903         (inline_transform): Fix formating.
2904         (gate_cgraph_decide_inlining): Rename to ...
2905         (pass_ipa_inline): ... this one.
2906         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
2907         * ipa-inline-analysis.c (dump_inline_summary): Update.
2908         (compute_inline_parameters): Do not compute disregard_inline_limits;
2909         look for mismatching arguments.
2910         (estimate_growth): Fix handlig of non-trivial self recursion.
2911         (inline_read_summary): Do not read info->disregard_inline_limits.
2912         (inline_write_summary): Do not write info->disregard_inline_limits.
2913         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
2914         and move all checks into can_inline_edge_p predicate; re-enable code
2915         comparing optimization levels.
2916         (expand_call_inline): Do not test inline_forbidden_into_p.
2917         * Makefile.in (ipa-inline.o): Update arguments.
2919 2011-04-17  Revital Eres  <revital.eres@linaro.org>
2921         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
2923 2011-04-17  Revital Eres  <revital.eres@linaro.org>
2925         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
2927 2011-04-17  Michael Matz  <matz@suse.de>
2929         PR tree-optimization/48622
2930         PR lto/48645
2931         * ipa-inline-analysis.c (inline_read_summary): Read size/time
2932         in same order as they're written.
2934 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2936         * config/pa/predicates.md: Reorganize and simplify predicates.
2937         Eliminate duplicate code checks.
2938         (arith_operand): Rename to arith14_operand
2939         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
2940         * config/pa/pa.md: Use renamed operands.
2941         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
2942         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
2943         arith11_operand, adddi3_operand, indexed_memory_operand,
2944         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
2945         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
2946         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
2947         move_dest_operand, move_src_operand, prefetch_cc_operand,
2948         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
2949         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
2950         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
2951         div_operand, int5_operand, movb_comparison_operator,
2952         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
2953         arith_double_operand, ireg_operand, lhs_lshift_operand,
2954         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
2955         integer_store_memory_operand): Likewise.
2956         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
2957         (integer_store_memory_operand, read_only_operand,
2958         function_label_operand, borx_reg_operand,
2959         non_hard_reg_operand): Likewise.
2960         (eq_neq_comparison_operator): Delete unused operator.
2961         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
2962         function_label_operand.
2963         (emit_move_sequence): Likewise.
2965 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
2967         * config/i386/sse.md (sseunpackmode): New mode attribute.
2968         (ssepackmode): Ditto.
2969         (vec_pack_trunc_<mode>): Macroize expander from
2970         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
2971         (vec_unpacks_lo_<mode>): Macroize expander from
2972         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2973         (vec_unpacks_hi_<mode>): Macroize expander from
2974         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2975         (vec_unpacku_lo_<mode>): Macroize expander from
2976         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2977         (vec_unpacku_hi_<mode>): Macroize expander from
2978         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2979         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
2980         ix86_expand_sse4_unpack.
2981         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
2983 2011-04-16  Jan Hubicka  <jh@suse.cz>
2985         * cgraphbuild.c: Include ipa-inline.h.
2986         (reset_inline_failed): Use initialize_inline_failed.
2987         * cgraph.c: Include ipa-inline.h.
2988         (cgraph_create_node_1): Do not initialize estimated_growth.
2989         (initialize_inline_failed): More to ipa-inline-analysis.c
2990         (dump_cgraph_node): Do not dump inline flags.
2991         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
2992         and disregard_inline_limits flags.
2993         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
2994         time, size, estimated_growth.
2995         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
2996         Update.
2997         * cgraphunit.c (cgraph_decide_is_function_needed): Use
2998         DECL_DISREGARD_INLINE_LIMITS.
2999         (cgraph_analyze_function): Do not initialize
3000         node->local.disregard_inline_limits.
3001         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3002         inlinable, versionable and disregard_inline_limits.
3003         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3004         cgraph_check_inline_limits, cgraph_default_inline_p,
3005         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3006         add_new_edges_to_heap): Update.
3007         (cgraph_decide_inlining_of_small_function): Update; set
3008         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3009         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3010         cgraph_decide_inlining_incrementally): Update.
3011         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3012         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3013         time, size and estimated_growth parameters.
3014         (estimate_edge_growth): Update.
3015         (initialize_inline_failed): Declare.
3016         * ipa-split.c: Include ipa-inline.h
3017         (execute_split_functions): Update.
3018         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3019         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3020         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3021         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3022         estimated_growth to INT_MIN.
3023         (inline_node_duplication_hook): Likewise.
3024         (dump_inline_summary): Dump new fields.
3025         (compute_inline_parameters): Update.
3026         (estimate_edge_time, estimate_time_after_inlining,
3027         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3028         inline_write_summary):
3029         (initialize_inline_failed): Move here from cgraph.c.
3030         * tree-sra.c: Include ipa-inline.h.
3031         (ipa_sra_preliminary_function_checks): Update.
3032         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3033         ipa-inline.h.
3035 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3037         * config/i386/sse.md (V16): New mode iterator.
3038         (VI1, VI8): Ditto.
3039         (AVXMODEQI, AVXMODEDI): Remove.
3040         (sse2, sse3): New mode attribute.
3041         (mov<mode>): Use V16 mode iterator.
3042         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3043         (push<mode>1): Use V16 mode iterator.
3044         (movmisalign<mode>): Ditto.
3045         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3046         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3047         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3048         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3049         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3050         avx_movdqu<avxmodesuffix>.
3051         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3052         *avx_movdqu<avxmodesuffix>.
3053         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3054         avx_lddqu<avxmodesuffix>.
3055         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3056         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3057         avx_movnt<AVXMODEDI:mode>.
3058         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3059         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3061 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3063         PR target/48629
3064         * haifa-sched.c (prune_ready_list, schedule_block): Use
3065         sched_pressure_p rather than flag_sched_pressure.
3067 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3069         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3070         cgraph_get_node instead of cgraph_get_create_node.
3072 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3074         * cfgexpand.c (expand_debug_expr): Use
3075         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3077 2011-04-15  Michael Matz  <matz@suse.de>
3079         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3080         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3081         * function.c (gimplify_parameters): Ditto.
3082         * gimplify.c (gimplify_vla_decl): Ditto.
3084         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3085         (gimple_call_set_alloca_for_var): New inline function.
3086         (gimple_call_alloca_for_var_p): Ditto.
3087         * gimple.c (gimple_build_call_from_tree): Remember
3088         CALL_ALLOCA_FOR_VAR_P state.
3089         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3091         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3092         calls if they were for VLA objects.
3094 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3096         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3097         of ADR_EXPRs.
3099 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3101         PR middle-end/48601
3102         * tree-emutls.c (lower_emutls_function_body): Call
3103         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3104         result is non-NULL.
3106 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3108         * c-decl.c (detect_field_duplicates): Call
3109         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3111 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3113         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3114         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3115         * ipa-pure-const.c (check_stmt): Call it.
3116         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3118 2011-04-15  Richard Guenther  <rguenther@suse.de>
3120         PR tree-optimization/48290
3121         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3122         Properly decide inhibiting propagation based on the valueized
3123         operand.  Do loop-closed SSA form preserving here ...
3124         (init_copy_prop): ... not here.
3126 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3128         PR target/48612
3129         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3130         (*ieee_smax<mode>3): Likewise.
3132 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3134         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3135         Replace match_operand with match_dup for the third operand in
3136         these expanders.
3138 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3140         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3141         to track processing of conditionals.  Update all callers.
3142         (try_combine, simplify_if_then_else): Update.
3144 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3146         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3147         -fsched-pressure.
3149 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3151         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3152         instead of match_operand for operand 3.
3154 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3156         * recog.h (insn_operand_data): Add an "allows_mem" field.
3157         * genoutput.c (output_operand_data): Initialize it.
3158         * optabs.c (maybe_legitimize_operand_same_code): New function.
3159         (maybe_legitimize_operand): Use it when matching the original
3160         op->value.
3162 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3164         * gimplify.c: Fix issues in comments throughout.
3165         (voidify_wrapper_expr): Fix long line.
3166         (build_stack_save_restore): Likewise.
3167         (gimplify_loop_expr): Likewise.
3168         (gimplify_compound_lval): Likewise.
3169         (gimplify_init_ctor_eval): Likewise.
3170         (gimplify_modify_expr_rhs): Likewise.
3171         (omp_notice_threadprivate_variable): Likewise.
3173 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3175         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3176         original one if this is not a builtin function.
3178 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
3180         PR target/48605
3181         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3182         offset it as needed based on top 2 bits in operands[3], change
3183         MEM mode to SFmode and mask those 2 bits away from operands[3].
3185 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3187         * c-parser.c (c_parser_objc_protocol_definition): Updated for
3188         change from objc_declare_protocols() to objc_declare_protocol().
3190 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
3192         * config/i386/sse.md (sse4_1): New mode attribute.
3193         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3194         avx_blend<ssemodesuffix><avxmodesuffix> and
3195         sse4_1_blend<ssemodesuffix> using VF mode iterator.
3196         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3197         avx_blendv<ssemodesuffix><avxmodesuffix> and
3198         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3199         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3200         avx_dp<ssemodesuffix><avxmodesuffix> and
3201         sse4_1_dp<ssemodesuffix> using VF mode iterator.
3202         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3203         (sse4_1_packusdw): Merge with *avx_packusdw.
3204         (sse4_1_pblendvb): Merge with *avx_pblendvb.
3205         (sse4_1_pblendw): Merge with *avx_pblendw.
3206         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3207         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3208         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3209         VF mode iterator.
3210         (sse4_1_round<ssescalarmodesuffix>): Merge with
3211         *avx_round<ssescalarmodesuffix>.
3212         (aesenc): Merge with *avx_aesenc.
3213         (aesenclast): Merge with *avx_aesenclast.
3214         (aesdec): Merge with *avx_aesdec.
3215         (aesdeclast): Merge with *avx_aesdeclast.
3216         (pclmulqdq): Merge with *pclmulqdq.
3217         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3218         New predicate.
3219         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3221 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3223         PR middle-end/48608
3224         * cfgexpand.c (get_decl_align_unit): Renamed to ...
3225         (align_local_variable): This.  Update DECL_ALIGN.
3226         (add_stack_var): Updated.
3227         (expand_one_stack_var): Likewise.
3229 2011-04-14  Richard Guenther  <rguenther@suse.de>
3231         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3232         Remove.
3233         (dse_initialize_block_local_data, dse_leave_block,
3234         record_voperand_set, get_stmt_uid): Likewise.
3235         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3236         (dse_optimize_stmt): Remove voperand set handling code.
3237         Simplify and improve to handle any kind of killing stmt.
3238         (dse_record_phi): Remove.
3239         (dse_enter_block): Simplify.
3240         (tree_ssa_dse): Likewise.
3241         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3243 2011-04-14  Jan Hubicka  <jh@suse.cz>
3245         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3246         * cgraph.h (struct inline_summary): Move to ipa-inline.h
3247         (cgraph_local_info): Remove inline_summary.
3248         * ipa-cp.c: Include ipa-inline.h.
3249         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3250         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3251         accesor.
3252         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3253         (input_overwrite_node): Do not set inline summary.
3254         (input_node): Do not stream inline summary.
3255         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3256         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3257         growth; we do not have inline parameters computed for that anyway.
3258         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3259         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3260         (inline_summary_t): New type and VECtor.
3261         (debug_inline_summary, dump_inline_summaries): Declare.
3262         (inline_summary): Use VOCtor.
3263         (estimate_edge_growth): Kill hack computing call stmt size directly.
3264         * lto-section-in.c (lto_section_name): Add inline section.
3265         * ipa-inline-analysis.c: Include lto-streamer.h
3266         (node_removal_hook_holder, node_duplication_hook_holder): New holders
3267         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3268         (inline_summary_vec): Define.
3269         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3270         dump_inline_summaries): New functions.
3271         (estimate_function_body_sizes): Properly compute size/time of outgoing
3272         calls.
3273         (compute_inline_parameters): Alloc inline_summary; do not compute
3274         size/time of incomming calls.
3275         (estimate_edge_time): Avoid missing time summary hack.
3276         (inline_read_summary): Read inline summary info.
3277         (inline_write_summary): Write inline summary info.
3278         (inline_free_summary): Free all hooks and inline summary vector.
3279         * lto-streamer.h: Add LTO_section_inline_summary section.
3280         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3281         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3283 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3285         * tree-vectorizer.h (vect_strided_store_supported): Add a
3286         HOST_WIDE_INT argument.
3287         (vect_strided_load_supported): Likewise.
3288         (vect_permute_store_chain): Return void.
3289         (vect_transform_strided_load): Likewise.
3290         (vect_permute_load_chain): Delete.
3291         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3292         count argument.  Check that the count is a power of two.
3293         (vect_strided_load_supported): Likewise.
3294         (vect_permute_store_chain): Return void.  Update after above changes.
3295         Assert that the access is supported.
3296         (vect_permute_load_chain): Likewise.
3297         (vect_transform_strided_load): Return void.
3298         * tree-vect-stmts.c (vectorizable_store): Update calls after
3299         above interface changes.
3300         (vectorizable_load): Likewise.
3301         (vect_analyze_stmt): Don't check for strided powers of two here.
3303 2011-04-14  Richard Guenther  <rguenther@suse.de>
3305         PR tree-optimization/48590
3306         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3307         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3308         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3309         BUILT_IN_STACK_SAVE.
3310         * tree-ssa-dce.c (propagate_necessity): Handle
3311         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3313 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3315         * c-parser.c (c_parser_objc_class_declaration): Updated call to
3316         objc_declare_class.
3318 2011-04-14  Richard Guenther  <rguenther@suse.de>
3320         * tree.h (get_object_alignment_1): Declare.
3321         * builtins.c (get_object_alignment_1): Split out worker from ...
3322         (get_object_alignment): ... here.
3323         * fold-const.c (get_pointer_modulus_and_residue): Use
3324         get_object_alignment_1.
3326 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3328         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3329         type parameter.
3330         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3331         parameter.  Generalise code to handle arrays as well as vectors.
3332         (vect_setup_realignment): Update accordingly.
3333         * tree-vect-stmts.c (vectorizable_store): Likewise.
3334         (vectorizable_load): Likewise.
3336 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3338         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3339         within the per-copy loop.
3341 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3343         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3344         in the dump file.
3346 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3348         * doc/options.texi (Negative): Explicitly mention that the
3349         Negative chain must be circular.
3351 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
3353         * function.h (block_chainon): Declare.
3354         * function.c (block_chainon): Define.
3356 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
3357             Eric Weddington  <eric.weddington@atmel.com>
3358             Georg-Johann Lay <avr@gjlay.de>
3360         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3361         New Includes
3362         (avr_init_builtins, avr_expand_builtin,
3363         avr_expand_delay_cycles, avr_expand_unop_builtin,
3364         avr_expand_binop_builtin ): New functions.
3365         (avr_builtin_id): New enum
3366         (struct avr_builtin_description): New struct
3367         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3368         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3370         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3371         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3372         UNSPECV_DELAY_CYCLES): new enumeration values
3373         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3374         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3375         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3376         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3377         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3378         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3379         "fmulsu"): New insns
3381         * config/avr/avr-c.c: fix line endings
3382         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3383         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3384         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3385         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3386         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3388         * doc/extend.texi (AVR Built-in Functions): New node
3389         (Target Builtins): Add documentation of AVR
3390         built-in functions.
3392 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
3394         PR target/44643
3395         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3396         alone. Error if non-const data has attribute progmem.
3398 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3400         * tree.h (struct tree_constructor): Include tree_typed instead of
3401         tree_common.
3402         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3403         TS_TYPED instead of TS_COMMON.
3405 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3407         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3408         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3409         (sse2_psadbw): Merge with *avx_psadbw.
3410         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3411         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3412         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3413         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3414         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3415         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3416         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3417         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3418         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3419         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3420         (ssse3_palignrti): Merge with *avx_palignrti.
3422 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3424         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3425         * tree-ssanames.c (fini_ssanames): VEC_free it.
3426         (make_ssa_name_fn): Update for VECness of free_ssanames.
3427         (release_ssa_name, release_dead_ssa_names): Likewise.
3428         * tree.h (struct tree_ssa_name): Include tree_typed instead of
3429         tree_common.
3430         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3431         TS_TYPED instead of TS_COMMON.
3433 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3435         * postreload-gcse.c (gcse_after_reload_main): Add calls to
3436         statistics_counter_event.
3437         * tree-ssa-copyrename.c (stats): Define.
3438         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
3439         statistics_counter_event.
3440         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3441         (bswap_stats, widen_mul_stats): Define.
3442         (insert_reciprocals): Increment rdivs_inserted.
3443         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
3444         rfuncs_inserted.  Add calls to statistics_counter_event.
3445         (execute_cse_sincos_1): Increment inserted.
3446         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
3447         statistics_counter_event.
3448         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
3449         of bswap_stats.  Add calls to statistics_counter_event.
3450         (convert_mult_to_widen): Increment widen_mults_inserted.
3451         (convert_plusminus_to_widen): Increment maccs_inserted.
3452         (convert_mult_to_fma): Increment fmas_inserted.
3453         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
3454         calls to statistics_counter_event.
3456 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3458         PR rtl-optimization/48455
3459         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3460         `temp_costs->mem_cost'.
3462 2011-04-13  Jan Hubicka  <jh@suse.cz>
3464         * ipa-inline.h: New file.
3465         * ipa-inline-analysis.c: New file. Broken out of ...
3466         * ipa-inline.c: ... this file; update toplevel comment;
3467         include ipa-inline.h
3468         (inline_summary): Move to ipa-inline.h
3469         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3470         ipa-inline-analysis.c.
3471         (cgraph_estimate_time_after_inlining): Rename to
3472         estiamte_time_after_inlining; move to ipa-inline-analysis.c
3473         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3474         to estimate_edge_growth.
3475         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3476         rename to estimate_size_after_inlining.
3477         (cgraph_mark_inline_edge): Update for new naming convention.
3478         (cgraph_check_inline_limits): Likewise.
3479         (cgraph_edge_badness): Likewise.
3480         (cgraph_decide_recursive_inlining): Likewise.
3481         (cgraph_decide_inlining_of_small_functions): Likewise.
3482         (cgraph_decide_inlining_incrementally): Likewise.
3483         (cgraph_estimate_growth): Rename to estimate_growth; move to
3484         ipa-inline-analysis.c.
3485         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3486         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3487         (compute_inline_parameters): Likewise.
3488         (compute_inline_parameters_for_current): Likewise.
3489         (pass_inline_parameters): Likewise.
3490         (inline_indirect_intraprocedural_analysis): Likewise.
3491         (analyze_function): Rename to inline_analyze_function; likewise.
3492         (add_new_function): Move to ipa-inline-analysis.c.
3493         (inline_generate_summary): Likewise.
3494         (inline_read_summary): Likewise.
3495         (inline_write_summary): Likewise.
3496         * Makefile.in (ipa-inline-analysis.c): New file.
3498 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3500         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3501         * configure: Regenerate.
3503 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3505         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3506         instead of tree_common.
3507         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3508         Likewise.
3509         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3510         TS_TYPED rather than TS_COMMON.
3511         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3513 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
3515         PR target/45263
3516         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3517         r20 around calls of __tablejump_elpm__
3519 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
3521         PR middle-end/48591
3522         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3523         NULL.
3524         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3526 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
3528         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3529         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3530         (cfi_vec): New typedef.
3531         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3532         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3533         (cie_cfi_vec): New static variable.
3534         (cie_cfi_head): Delete.
3535         (add_cfi): Accept a cfi_vec * as first argument. All callers and
3536         declaration changed. Use vector rather than list operations.
3537         (new_cfi): Don't initialize the dw_cfi_next field.
3538         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3539         rather than list operations.
3540         (lookup_cfa): Use vector rather than list operations.
3541         (output_cfis): New argument upto. Accept a cfi_vec rather than
3542         a dw_cfi_ref list head as argument. All callers changed.
3543         Iterate over the vector using upto as a maximum index.
3544         (output_all_cfis): New static function.
3545         (output_fde): Use vector rather than list operations. Use the
3546         new upto argument for output_cfis rather than manipulating a
3547         list.
3548         (dwarf2out_begin_prologue): Change initializations to match
3549         new struct members.
3550         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3551         from the vector length rather than searching for the end of a list.
3552         Use output_all_cfis.
3553         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3555 2011-04-13  Nick Clifton  <nickc@redhat.com>
3557         * config/rx/rx.md (movmemsi): Do not use this pattern when
3558         volatile pointers are involved.
3560 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3562         * config/i386/sse.md (pinsrbits): Remove.
3563         (sse2_packsswb): Merge with *avx_packsswb.
3564         (sse2_packssdw): Merge with *avx_packssdw.
3565         (sse2_packuswb): Merge with *avx_packuswb.
3566         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3567         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3568         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3569         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3570         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3571         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3572         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3573         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3574         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3575         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3576         (sse2_loadld): Merge with *avx_loadld.
3577         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3578         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3579         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3580         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3581         (vec_concatv2di): Merge with *vec_concatv2di_avx.
3583 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3585         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3586         calling TREE_CHAIN.
3587         * print-tree.c (print_node): Likewise.
3588         * tree-inline.c (copy_tree_r): Likewise.
3589         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3590         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3591         instead of TS_COMMON.
3592         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3593         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3594         (copy_node_stat): Zero TREE_CHAIN only if necessary.
3595         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3596         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3597         ...and these...
3598         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3599         * tree.h: ...here.
3600         (TREE_CHAIN): Check for a TS_COMMON structure.
3601         (TREE_TYPE): Check for a TS_TYPED structure.
3603 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
3605         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3606         cgraph_get_create_node instead of cgraph_node.
3608 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3610         * c-parser.c (c_parser_initelt): Updated call to
3611         objc_build_message_expr.
3612         (c_parser_postfix_expression): Likewise.
3614 2011-04-12  Kai Tietz  <ktietz@redhat.com>
3616         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3617         MASK_MS_BITFIELD_LAYOUT bit.
3619 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3621         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3622         assert it is always true.
3623         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3624         moves.
3626 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3628         * c-parser.c (c_lex_one_token): Rewritten conditional used when
3629         compiling Objective-C to be more efficient.
3631 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
3633         * opts-common.c (decode_cmdline_options_to_array): Remove variable
3634         argv_copied.
3636 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3638         * recog.h, genoutput.c, optabs.c: Revert last patch.
3640 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3642         PR target/48090
3643         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3645 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3647         * recog.h (insn_operand_data): Add an "allows_mem" field.
3648         * genoutput.c (output_operand_data): Initialize it.
3649         * optabs.c (maybe_legitimize_operand_same_code): New function.
3650         (maybe_legitimize_operand): Use it when matching the original
3651         op->value.
3653 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3655         * genpreds.c (process_define_predicate): Move most processing
3656         to gensupport.c.  Continue to validate the expression.
3657         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3658         (process_define_predicate): Move processing to gensupport.c.
3659         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3660         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3661         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
3662         argument.
3663         (valid_predicate_name_p): New function, split out from old
3664         genpreds.c:process_define_predicate.
3665         (process_define_predicate): New function, combining code from
3666         old genpreds.c and genrecog.c functions.
3667         (process_rtx): Call it for DEFINE_PREDICATE and
3668         DEFINE_SPECIAL_PREDICATE.
3670 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3672         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3673         size of a '%A' memory reference.
3674         (T_DREG, T_QREG): New neon_builtin_type_bits.
3675         (arm_init_neon_builtins): Assert that the load and store operands
3676         are neon_struct_operands.
3677         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3678         (NEON_ARG_MEMORY): New builtin_arg.
3679         (neon_dereference_pointer): New function.
3680         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3681         Handle NEON_ARG_MEMORY.
3682         (arm_expand_neon_builtin): Update after above interface changes.
3683         Use NEON_ARG_MEMORY for loads and stores.
3684         * config/arm/predicates.md (neon_struct_operand): New predicate.
3685         * config/arm/iterators.md (V_two_elem): Tweak formatting.
3686         (V_three_elem): Use BLKmode for accesses that have no associated mode.
3687         (V_four_elem): Tweak formatting.
3688         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3689         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3690         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3691         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3692         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3693         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3694         (neon_vst4<mode>): Replace pointer operand with a memory operand.
3695         Use %A in the output template.
3696         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3697         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3698         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3699         the width of the memory access.  Remove post-increment.
3700         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3702 2011-04-12  Nick Clifton  <nickc@redhat.com>
3704         * config/v850/v850.c (expand_prologue): Do not use the CALLT
3705         instruction for interrupt handlers if the target is the basic V850
3706         architecture.
3707         (expand_epilogue): Likewise.
3709 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3711         PR rtl-optimization/48549
3712         * combine.c (propagate_for_debug): Also stop after BB_END of
3713         this_basic_block.  Process LAST and just stop processing after it.
3714         (combine_instructions): If last_combined_insn has been deleted,
3715         set last_combined_insn to its PREV_INSN.
3717 2011-04-12  Richard Guenther  <rguenther@suse.de>
3719         PR tree-optimization/46076
3720         * gimple.h (struct gimple_statement_call): Add fntype field.
3721         (gimple_call_fntype): Adjust.
3722         (gimple_call_set_fntype): New function.
3723         * gimple.c (gimple_build_call_1): Set the call function type.
3724         * gimplify.c (gimplify_call_expr): Preserve the function
3725         type the frontend used for the call.
3726         (gimplify_modify_expr): Likewise.
3727         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3728         function type.
3729         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3730         function type.
3731         * tree-ssa.c (useless_type_conversion_p): Function pointer
3732         conversions are useless.
3734 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3736         * cgraph.h (cgraph_node): Remove function declaration.
3737         (cgraph_create_node): Declare.
3738         (cgraph_get_create_node): Likewise.
3739         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3740         Updated all callers.
3741         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3742         the decl does not already exist.  Call cgraph_get_create_node instead
3743         of cgraph_node.
3744         (cgraph_get_create_node): New function.
3745         (cgraph_same_body_alias): Update comment.
3746         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3747         assert it does not return NULL.
3748         (cgraph_update_edges_for_call_stmt): Likewise.
3749         (cgraph_clone_edge): Likewise.
3750         (cgraph_create_virtual_clone): Likewise.
3751         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3752         instead of cgraph_node.
3753         (cgraph_add_new_function): Call cgraph_create_node or
3754         cgraph_get_create_node instead of cgraph_node.
3755         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3756         instead of cgraph_node.
3757         (record_eh_tables): Likewise.
3758         (mark_address): Likewise.
3759         (mark_load): Likewise.
3760         (build_cgraph_edges): Call cgraph_get_create_node instead
3761         of cgraph_node.
3762         (rebuild_cgraph_edges): Likewise.
3763         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3764         instead of cgraph_node.
3765         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3766         cgraph_node.
3767         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3768         cgraph_create_node instead of cgraph_node.
3769         * c-decl.c (finish_function): Call cgraph_get_create_node instead
3770         of cgraph_node.
3771         * lto-cgraph.c (input_node): Likewise.
3772         * lto-streamer-in.c (input_function): Likewise.
3773         * varasm.c (mark_decl_referenced): Likewise.
3774         (assemble_alias): Likewise.
3776 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3778         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
3779         instead of cgraph_node and assert it does not return NULL.
3780         * lto-streamer-in.c (lto_read_body): Likewise.
3781         * omp-low.c (new_omp_context): Likewise.
3782         (create_task_copyfn): Likewise.
3783         * tree-emutls.c (lower_emutls_function_body): Likewise.
3784         * matrix-reorg.c (transform_allocation_sites): Likewise.
3786 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3788         PR c/48552
3789         * c-typeck.c (build_asm_expr): Error out on attempts to use
3790         void type outputs or inputs for constraints that allow reg or
3791         don't allow memory.
3793 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
3794             Richard Earnshaw  <rearnsha@arm.com>
3796         PR target/48250
3797         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
3798         to use sign-magnitude offsets. Reject unsupported unaligned
3799         cases. Add detailed description in comments.
3800         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
3801         condition from TARGET_32BIT to TARGET_ARM.
3803 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
3805         * tree.h (struct typed_tree): New.
3806         (struct tree_common): Include it instead of tree_base.
3807         (TREE_TYPE): Update for new location of type field.
3808         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
3809         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
3810         (union tree_node): Add typed field.
3811         * treestruct.def (TS_TYPED): New.
3812         * lto-streamer.c (check_handled_ts_structures): Handle it.
3813         * tree.c (MARK_TS_TYPED): New macro.
3814         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
3816 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3818         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
3819         (force_nonfallthru): Do not alter the loop nest if no basic block
3820         was created.
3822 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
3824         * config/i386/sse.md (VI): New mode iterator.
3825         (SSEMODEI): Remove.
3826         (AVX256MODEI): Ditto.
3827         (AVXMODEF4P): Ditto.
3828         (avxvecpsmode): Ditto.
3829         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
3830         (sse2_andnot<mode>3): New expander.
3831         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
3832         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
3833         (<any_logic:code><mode>3): Use VI mode iterator.
3834         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
3835         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
3836         (*andnottf3): Handle AVX three-operand constraints.
3837         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
3839 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
3840             Robert Millan  <rmh@gnu.org>
3842         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
3843         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
3844         GNU_USER_DYNAMIC_LINKER64): Define.
3845         (REG_NAME): Don't undefine.
3846         (MD_UNWIND_SUPPORT): Undefine.
3847         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
3848         (REG_NAME): Don't undefine.
3849         (MD_UNWIND_SUPPORT): Undefine.
3850         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
3852 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
3854         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
3855         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
3857 2011-04-11  Xinliang David Li  <davidxl@google.com>
3859         * value-profile.c (check_ic_target): New function.
3860         (gimple_ic_transform): Sanity check indirect call target.
3861         * gimple-low.c (gimple_check_call_args): Interface change.
3862         (gimple_check_call_matching_types): New function.
3863         * tree-inline.c (tree_can_inline_p): Call new function.
3865 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
3867         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
3868         tree-pretty-print.h & realmpfr.h.
3870 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
3872         PR middle-end/48464
3873         * ira.c (setup_pressure_classes): Fix typo in loop condition.
3874         (setup_allocno_and_important_classes): Ditto.
3876 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
3878         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
3879         GNU_USER_DYNAMIC_LINKER.
3880         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
3881         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3882         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
3883         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3884         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3885         GNU_USER_TARGET_OS_CPP_BUILTINS.
3886         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
3887         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3888         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3889         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3890         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
3891         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3892         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3893         GNU_USER_TARGET_OS_CPP_BUILTINS.
3894         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3895         GNU_USER_DYNAMIC_LINKER.
3896         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3897         GNU_USER_TARGET_OS_CPP_BUILTINS.
3898         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
3899         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3900         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
3901         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3902         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
3903         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
3904         GNU_USER_DYNAMIC_LINKER64): Remove.
3905         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
3906         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3907         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3908         GNU_USER_DYNAMIC_LINKER.
3909         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3910         GNU_USER_TARGET_OS_CPP_BUILTINS.
3911         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3912         GNU_USER_TARGET_OS_CPP_BUILTINS.
3913         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
3914         to GNU_USER_TARGET_OS_CPP_BUILTINS.
3915         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3916         GNU_USER_TARGET_OS_CPP_BUILTINS.
3917         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
3918         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
3919         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3920         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
3921         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3922         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3923         GNU_USER_DYNAMIC_LINKER.
3924         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3925         GNU_USER_TARGET_OS_CPP_BUILTINS.
3926         * config/m68k/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/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3931         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3932         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
3933         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3934         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3935         GNU_USER_DYNAMIC_LINKER.
3936         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
3937         GNU_USER_DYNAMIC_LINKERN32.
3938         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
3939         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
3940         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
3941         GNU_USER_DYNAMIC_LINKER32.
3942         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
3943         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3944         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3945         GNU_USER_DYNAMIC_LINKER.
3946         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3947         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3948         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
3949         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3950         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3951         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
3952         GNU_USER_DYNAMIC_LINKER32.
3953         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3954         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
3955         GNU_USER_DYNAMIC_LINKER.
3956         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
3957         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3958         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3959         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
3960         GNU_USER_DYNAMIC_LINKER64.
3961         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
3962         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3963         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3964         GNU_USER_DYNAMIC_LINKER.
3965         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
3966         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3967         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3968         GNU_USER_DYNAMIC_LINKER.
3969         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
3970         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3971         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3972         GNU_USER_DYNAMIC_LINKER32.
3973         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3974         GNU_USER_DYNAMIC_LINKER64.
3975         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3976         GNU_USER_DYNAMIC_LINKER64.
3977         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
3978         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3979         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
3980         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3981         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3983 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
3985         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
3986         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
3987         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
3988         GNU_USER_DYNAMIC_LINKER.
3989         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3990         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
3991         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
3992         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
3993         GNU_USER_DYNAMIC_LINKER64.
3994         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3995         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
3996         GNU_USER_LINK_EMULATION.
3997         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
3998         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
3999         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4000         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4001         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4002         CPP_SPEC, CC1_SPEC): Remove.
4003         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4004         (GNU_USER_DYNAMIC_LINKER): Define.
4005         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4006         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4007         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4008         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4009         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4010         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4011         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4012         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4013         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4014         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4015         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4016         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4017         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4018         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4019         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4020         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4021         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4022         GNU_USER_DYNAMIC_LINKER.
4023         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4024         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4025         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4026         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4027         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4028         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4029         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4030         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4031         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4032         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4034 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4036         PR target/9601
4037         PR target/11772
4038         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4039         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4040         comment.
4041         (ix86_is_msabi_thiscall): Removed.
4042         (ix86_is_type_thiscall): Likewise.
4043         (ix86_get_callcvt): New function.
4044         (ix86_comp_type_attributes): Simplify check.
4045         (ix86_function_regparm): Use ix86_get_callcvt for calling
4046         convention attribute checks.
4047         (ix86_return_pops_args): Likewise.
4048         (ix86_static_chain): Likewise.
4049         (x86_this_parameter): Likewise.
4050         (x86_output_mi_thunk): Likewise.
4051         (ix86_function_type_abi): Optimize check for types without attributes.
4052         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4053         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4054         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4055         by flag-values.
4056         (IX86_BASE_CALLCVT): Helper macro.
4057         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4058         Use ix86_get_callcvt for calling convention attribute checks and avoid
4059         symbol-decoration for stdcall in TARGET_RTD case.
4060         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4061         Likewise.
4062         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4063         for declaration.
4065 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4067         * config/i386/sse.md (VI_128): New mode iterator.
4068         (VI12_128): Rename from SSEMODE12.
4069         (VI14_128): Rename from SSEMODE14.
4070         (VI124_128): New mode iterator.
4071         (VI24_128): Rename from SSEMODE248.
4072         (VI248_128): Rename from SSEMODE248.
4073         (SSEMODE124C8): Remove.
4074         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4075         (*sse2_<plusminus_insn><mode>3): Merge with
4076         *avx_<plusminus_insn><mode>3.
4077         (*mulv8hi3): Merge with *avx_mulv8hi3.
4078         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4079         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4080         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4081         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4082         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4083         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4084         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4085         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4086         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4087         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4088         (*<smaxmin:code>v8hi3): Ditto.
4089         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4090         (*<smaxmin:code>v16qi3): Ditto.
4091         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4092         (*sse2_eq<mode>3): Ditto.
4093         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4094         (*sse2_gt<mode>3): Ditto.
4095         (vcondv2di): Split out of vcond<mode>.
4096         (vconduv2di): Split out of vcondu<mode>.
4098 2011-04-11  Richard Guenther  <rguenther@suse.de>
4100         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4101         before calling tree_low_cst.
4103 2011-04-11  Richard Guenther  <rguenther@suse.de>
4105         * stor-layout.c (layout_type): Compute all array index size operations
4106         in the original type.
4107         (initialize_sizetypes): Add comment.
4108         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4110 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4112         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4114 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4116         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4117         of cgraph_node, handle NULL return value.
4118         (cgraph_global_info): Likewise.
4119         (cgraph_rtl_info): Likewise.
4120         * tree-inline.c (estimate_num_insns): Likewise.
4121         * gimplify.c (unshare_body): Likewise.
4122         (unvisit_body): Likewise.
4123         (gimplify_body): Likewise.
4124         * predict.c (optimize_function_for_size_p): Likewise.
4125         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4126         (call_may_clobber_ref_p_1): Likewise.
4127         * varasm.c (function_section_1): Likewise.
4128         (assemble_start_function): Likewise.
4130 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4132         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4133         of cgraph_node.
4134         * final.c (rest_of_clean_state): Likewise.
4135         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4136         * passes.c (pass_init_dump_file): Likewise.
4137         (execute_all_ipa_transforms): Likewise.
4138         (function_called_by_processed_nodes_p): Likewise.
4139         * predict.c (maybe_hot_frequency_p): Likewise.
4140         (probably_never_executed_bb_p): Likewise.
4141         (compute_function_frequency): Likewise.
4142         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4143         (unnest_nesting_tree_1): Likewise.
4144         (lower_nested_functions): Likewise.
4145         * tree-optimize.c (execute_fixup_cfg): Likewise.
4146         (tree_rest_of_compilation): Likewise.
4147         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4148         * tree-sra.c (ipa_early_sra): Likewise.
4149         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4150         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4151         * ipa.c (record_cdtor_fn): Likewise.
4152         * ipa-inline.c (cgraph_early_inlining): Likewise.
4153         (compute_inline_parameters_for_current): Likewise.
4154         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4155         * ipa-pure-const.c (local_pure_const): Likewise.
4156         * ipa-split.c (split_function): Likewise.
4157         (execute_split_functions): Likewise.
4158         * cgraphbuild.c (build_cgraph_edges): Likewise.
4159         (rebuild_cgraph_edges): Likewise.
4160         (cgraph_rebuild_references): Likewise.
4161         (remove_cgraph_callee_edges): Likewise.
4162         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4163         (verify_cgraph_node): Likewise.
4164         (cgraph_analyze_functions): Likewise.
4165         (cgraph_preserve_function_body_p): Likewise.
4166         (save_inline_function_body): Likewise.
4167         (save_inline_function_body): Likewise.
4168         * tree-inline.c (copy_bb): Likewise.
4169         (optimize_inline_calls): Likewise.
4171 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4173         PR tree-optimization/48195
4174         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4175         ipa_check_create_edge_args.
4176         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4177         ipa_check_create_edge_args.
4178         * ipa-inline.c (inline_generate_summary): Do not call
4179         ipa_check_create_node_params and ipa_check_create_edge_args.
4180         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4181         ipa_check_create_edge_args.
4183 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
4185         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4186         instead of loop.
4187         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4188         * function.c (record_hard_reg_sets): Likewise.
4189         * ira.c (compute_regs_asm_clobbered): Likewise.
4190         * sched-deps.c (sched_analyze_1): Likewise.
4191         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4193 2011-04-09  Xinliang David Li  <davidxl@google.com>
4195         PR tree-optimization/PR48484
4196         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4197         has_valid_pred lazily
4199 2011-04-09  Duncan Sands  <baldrick@free.fr>
4201         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4203 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4205         * combine.c (combine_validate_cost): Adjust comments.  Set registered
4206         cost of I0 to zero at the end, if any.
4208 2011-04-08  Xinliang David Li  <davidxl@google.com>
4210         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4211         to insane profile data.
4213 2011-04-08  Xinliang David Li  <davidxl@google.com>
4215         * ipa-cp.c (ipcp_update_profiling): Correct
4216          negative scale factor due to insane profile data.
4218 2011-04-08  Xinliang David Li  <davidxl@google.com>
4220         * final.c (dump_basic_block_info): New function.
4221         (final): Dump basic block.
4222         (final_scan_insn): Remove old dump.
4224 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4226         PR target/47829
4227         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4228         crtbegin/crtend.
4230 2011-04-08  Michael Matz  <matz@suse.de>
4232         PR middle-end/48389
4233         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4234         functions.
4235         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4236         * rtl.h (rebuild_jump_labels_chain): Declare.
4237         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4238         insns inserted on edges.
4240 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
4242         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4243         * config/arm/arm-arches.def: New.
4244         * config/arm/arm-opts.h: New.
4245         * config/arm/genopt.sh: New.
4246         * config/arm/arm-tables.opt: New (generated).
4247         * config/arm/arm.c (arm_handle_option, arm_target_help,
4248         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4249         (all_architectures): Get most table contents from arm-arches.def.
4250         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4251         arm_selected_tune here.
4252         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4253         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4254         (march=, mcpu=, mtune=): Use Enum and Var.
4255         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4256         (arm.o): Update dependencies.
4258 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
4260         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4261         of header_file.
4262         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4263         (write_typed_alloc_defns): Likewise.
4264         (main): Calls write_typed_alloc_defns with output_header.
4266 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4268         PR inline-asm/48435
4269         * ira-color.c (setup_profitable_hard_regs): Add comments.
4270         Don't take prohibited hard regs into account.
4271         (setup_conflict_profitable_regs): Rename to
4272         get_conflict_profitable_regs.
4273         (check_hard_reg_p): Check prohibited hard regs.
4275 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4277         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4278         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4279         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4281 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4283         PR target/48366
4284         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4285         move from floating point to shift amount register.
4286         (emit_move_sequence): Remove secondary reload support for floating
4287         point to shift amount amount register copies.
4288         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4289         amount register copies.
4290         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4291         register, return false if mode isn't a scalar integer mode.
4292         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4294 2011-04-08  Richard Guenther  <rguenther@suse.de>
4296         * gimple.c (gimple_call_flags): Remove kludge.
4298 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4300         * sel-sched.c (sel_region_init): Move call to
4301         sel_setup_region_sched_flags after setup_current_loop_nest.
4303 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
4305         PR rtl-optimization/48272
4306         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4307         init_insn_reg_pressure_info.  Adjust a caller.
4308         * sched-int.h (init_insn_reg_pressure_info): Declare.
4309         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4310         when sched-pressure is enabled.
4312 2011-04-08  Richard Guenther  <rguenther@suse.de>
4314         * gimple.c (gimple_set_modified): Do not queue calls to
4315         MODIFIED_NORETURN_CALLS here ...
4316         * tree-ssa-operands.c (update_stmt_operands): ... but here.
4318 2011-04-08  Richard Guenther  <rguenther@suse.de>
4320         PR lto/48467
4321         * toplev.c (lang_dependent_init): Do not open asm_out_file
4322         in WPA mode, nor perform debug machinery initialization.
4323         (finalize): Do not unlink asm_out_file in WPA mode.
4325 2011-04-08  Richard Guenther  <rguenther@suse.de>
4327         * gimple.h (gimple_call_fntype): New function.
4328         (gimple_call_return_type): Use it.
4329         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4330         * gimple-low.c (gimple_check_call_args): Likewise.
4331         * gimple.c (gimple_call_flags): Likewise.
4332         (gimple_call_arg_flags): Likewise.
4333         (gimple_call_return_flags): Likewise.
4334         * tree-cfg.c (verify_gimple_call): Likewise.
4335         (do_warn_unused_result): Likewise.
4336         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4337         * value-prof.c (gimple_ic_transform): Fix fndecl check.
4339 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
4341         PR rtl-optimization/48235
4342         * sel-sched.c (code_motion_process_successors): Recompute the last
4343         insn in basic block if control flow changed.
4344         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
4345         Update condition for ilist_remove.
4347 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4349         PR rtl-optimization/48302
4350         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4351         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
4352         it to record added preheader blocks.
4353         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
4354         on to sel_add_loop_preheaders.
4355         (sel_region_init): Move call to setup_current_loop_nest after
4356         sel_init_bbs.
4358 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4360         PR target/48273
4361         * cfgloop.h (loop_has_exit_edges): New helper.
4362         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4363         non-clonable.
4364         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4365         that have no exit edges.
4367 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4369         PR rtl-optimization/48442
4370         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
4371         all callers.  Adjust assert.
4373 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
4375         PR tree-optimization/48377
4376         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4377         is_packed to true even for types with smaller TYPE_ALIGN than
4378         TYPE_SIZE.
4380 2011-04-08  Richard Guenther  <rguenther@suse.de>
4382         PR bootstrap/48513
4383         * doc/tm.texi: Re-generate.
4385 2011-04-08  Wei Guozhi  <carrot@google.com>
4387         PR target/47855
4388         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4389         * config/arm/arm.c (arm_attr_length_push_multi): New function.
4390         * config/arm/arm.md (*push_multi): Change the length computation to
4391         call a C function.
4393 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
4395         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4396         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4397         * doc/tm.texi: Regenerate.
4398         * system.h (ASM_OUTPUT_BSS): Poison.
4399         * varasm.c (asm_output_bss): Remove function.
4400         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4402         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4403         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4404         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4405         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4406         Likewise.
4407         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4408         Likewise.
4409         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4410         Likewise.
4411         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4413 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4415         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4416         EnumValue lines.
4418 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4420         * config/m68k/m68k.c (m68k_handle_option): Don't handle
4421         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4422         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4423         OPT_mcpu32.
4424         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4425         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4426         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4427         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4428         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4429         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4430         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4431         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4432         options.  Don't map other m68k options manually.  Don't handle
4433         old-style options as canonical.
4434         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4435         * doc/install.texi (m68k-*-*): Document binutils version requirement.
4437 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4439         * basic-block.h (force_nonfallthru): Move to...
4440         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4441         (force_nonfallthru): ...here.
4442         * cfghooks.c (force_nonfallthru): New function.
4443         * cfgrtl.c (force_nonfallthru): Rename into...
4444         (rtl_force_nonfallthru): ...this.
4445         (commit_one_edge_insertion): Do not set AUX field.
4446         (commit_edge_insertions): Do not discover new basic blocks.
4447         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4448         (cfg_layout_rtl_cfg_hooks): Likewise.
4449         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4450         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
4451         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4453 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
4455         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4456         Remove macros.
4458 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
4460         * config/i386/sse.md: Update copyright year.
4461         (avxcvtvecmode): Remove.
4462         (sse_movhlps): Merge with *avx_movhlps.
4463         (sse_movlhps): Merge with *avx_movlhps.
4464         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4465         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4466         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4467         (sse_loadhps): Merge with *avx_loadhps.
4468         (sse_storelps): Merge with *avx_storelps.
4469         (sse_loadlps): Merge with *avx_loadlps.
4470         (sse_movss): Merge with *avx_movss.
4471         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4472         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4473         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4474         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4475         (vec_set<mode>_0): Ditto.
4476         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4477         (sse4_1_insertps): Merge with *avx_insertps.
4478         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4479         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4480         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4481         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4482         (sse2_storehpd): Merge with *avx_storehpd.
4483         (sse2_loadhpd): Merge with *avx_loadhpd.
4484         (sse2_loadlpd): Merge with *avx_loadlpd.
4485         (sse2_movsd): Merge with *avx_movsd.
4486         (*vec_concatv2df): Merge with *vec_concatv2df.
4488 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
4490         PR debug/48343
4491         * combine.c (combine_instructions): Add last_combined_insn,
4492         update it if insn is after it, pass it to all try_combine calls.
4493         (try_combine): Add last_combined_insn parameter, pass it instead of
4494         i3 to propagate_for_debug.
4496 2011-04-07  Nick Clifton  <nickc@redhat.com>
4498         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4499         to handle MDR <-> data register transfers.
4500         (movhi_internal): Likewise.
4502 2011-04-07  Alan Modra  <amodra@gmail.com>
4504         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4505         previous stack info.
4507 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4509         PR target/43920
4510         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
4511         flow_find_cross_jump.  Swap variables to implement backward replacement.
4512         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4514 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4516         PR target/43920
4517         * cfgcleanup.c (walk_to_nondebug_insn): New function.
4518         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
4519         and bb2.
4520         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4521         src1 or src2.  Redirect edges to the last basic block.  Update
4522         frequency and count on multiple basic blocks in case of fallthru.
4524 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4526         PR target/43920
4527         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4528         function.
4529         (old_insns_match_p): Change return type.  Replace return false/true
4530         with return dir_none/dir_both.  Use can_replace_by.
4531         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
4532         direction from dir_p.  Register replacement direction in dir, last_dir
4533         and afterlast_dir.  Handle new return type of old_insns_match_p using
4534         merge_dir.  Return replacement direction in dir_p.
4535         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4536         return type of old_insns_match_p.
4537         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4538         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4539         flow_find_cross_jump.
4540         * basic-block.h (enum replace_direction): New type.
4541         (flow_find_cross_jump): Add parameter to declaration.
4543 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4545         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4546         (AVXMODEDCVTPS2DQ): Ditto.
4547         (VEC_FLOAT_MODE): Ditto.
4548         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
4549         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4550         (<any_logic:code><mode>3): Use VF mode iterator.
4551         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4552         Use VF mode iterator.
4553         (copysign<mode>3): Use VF mode iterator.
4554         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
4555         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4556         (*<any_logic:code><MODEF:mode>3): Merge with
4557         *avx_<any_logic:code><MODEF:mode>3.
4558         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4559         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4560         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4561         (avx_cvtdq2ps<avxmodesuffix>): Remove.
4562         (sse2_cvtdq2ps): Use %v modifier.
4563         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4564         (avx_cvtps2dq<avxmodesuffix>): Remove.
4565         (sse2_cvtps2dq): Use %v modifier.
4566         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4567         (avx_cvttps2dq<avxmodesuffix>): Remove.
4568         (sse2_cvttps2dq): Use %v modifier.
4569         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4570         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4571         (sse2_cvtsd2siq): Fix insn template.
4572         (sse2_cvtsd2siq_2): Ditto.
4573         (sse2_cvttsd2siq): Ditto.
4574         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4575         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4577 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4579         * gcov-io.c: Use GCC Runtime Library Exception.
4581 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
4583         PR debug/48466
4584         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4585         as base_reg whatever register reg has been eliminated to, instead
4586         of hardcoding STACK_POINTER_REGNUM.
4588 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4590         * doc/tm.texi.in: Document C target hooks as separate from general
4591         target hooks.
4592         * doc/tm.texi: Regenerate.
4593         * genhooks.c (struct hook_desc): Add docname field.
4594         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
4595         docname field.
4596         (hook_array): Include c-target.def.
4597         (emit_documentation): Use docname field in output.
4598         (emit_init_macros): Take docname argument.  Only emit definitions
4599         for hooks matching docname.
4600         (main): Expect additional arguments in all cases.  Pass argument
4601         to emit_init_macros.
4602         * target.def: Move initial macro definitions and comments to
4603         target-hooks-macros.h.
4604         (gcc_targetcm): Move to c-family/c-target.def.
4605         * target.h (targetcm): Move declaration to c-family/c-target.h.
4606         * targhooks.c (default_handle_c_option): Move to
4607         c-family/c-opts.c.
4608         * targhooks.h (default_handle_c_option): Move declaration to
4609         c-family/c-common.h.
4610         * target-hooks-macros.h: New file.
4611         * config.gcc (target_has_targetcm): Define and use to add to
4612         c_target_objs and cxx_target_objs.
4613         * config/default-c.c: New file.
4614         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4615         of target.h and target-def.h.
4616         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4617         (darwin_objc_construct_string, darwin_cfstring_ref_p,
4618         darwin_check_cfstring_format_arg): Make static.
4619         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4620         TARGET_STRING_OBJECT_REF_TYPE_P,
4621         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4622         * config/darwin-protos.h (darwin_objc_construct_string,
4623         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4624         declare.
4625         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4626         TARGET_STRING_OBJECT_REF_TYPE_P,
4627         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4628         * config/t-darwin (darwin-c.o): Update dependencies.
4629         * system.h (TARGET_HAS_TARGETCM): Poison.
4630         * Makefile.in (TARGET_H): Update.
4631         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4632         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4633         (default-c.o): New target.
4634         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4635         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4636         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
4637         c-target.def.
4638         (build/genhooks.o): Update dependencies.
4640 2011-04-06  Richard Guenther  <rguenther@suse.de>
4642         * ipa-inline.c (enum inlining_mode): Remove.
4643         (cgraph_flatten): Use some other token.
4644         (cgraph_edge_early_inlinable_p): New function, split out from ...
4645         (cgraph_perform_always_inlining): New function, split out from ...
4646         (cgraph_decide_inlining_incrementally): ... here.
4647         (cgraph_mark_inline_edge): Adjust.
4648         (cgraph_early_inlining): Re-structure.
4649         (pass_early_inline): Require SSA form.
4651 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
4652             Julian Brown  <julian@codesourcery.com>
4653             Mark Shinwell  <shinwell@codesourcery.com>
4655         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4656         LO_REGS only for Thumb-1.
4657         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4658         be used in short instructions when optimising for size on Thumb-2.
4660 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
4662         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4663         associated with user returns to be preserved.
4665 2011-04-06  Tristan Gingold  <gingold@adacore.com>
4667         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4668         symbol_queue_size, DBXOUT_DECR_NESTING,
4669         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4670         if XCOFF_DEBUGGING_INFO.
4672 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4674         * config/i386/i386.md (attribute isa): New.
4675         (attribute enabled): New.
4676         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4677         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4678         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4679         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4680         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4681         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4682         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4683         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4685         * config/i386/sse.md (VF): New mode iterator.
4686         (VF1): Ditto.
4687         (VF2): Ditto.
4688         (VF_128): Ditto.
4689         (SSEMODEF4): Remove.
4690         (attribute sse): Handle V8SF and V4DF modes.
4691         (<absneg:code><mode>2): Use VF mode iterator.
4692         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
4693         mode iterator.
4694         (<plusminus_insn><mode>3): Use VF mode iterator.
4695         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4696         Use VF mode iterator.
4697         (<sse>_vm<plusminus_insn><mode>3): Merge with
4698         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
4699         (mul<mode>3): Use VF mode iterator.
4700         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
4701         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
4702         mode iterator.
4703         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4704         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4705         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
4706         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
4707         mode iterator.
4708         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4709         Use VF1 mode iterator.
4710         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4711         (sqrt<VF2:mode>2): New expander.
4712         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4713         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4714         and sqrtv2df2.  Use VF mode iterator.
4715         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
4716         mode iterator.
4717         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4718         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4719         Use VF1 mode iterator.
4720         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4721         (<smaxmin:code><mode>3): Use VF mode iterator.
4722         (*<smaxmin:code><mode>3_finite): Merge with
4723         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
4724         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4725         (<sse>_vm<smaxmin:code><mode>2): Merge with
4726         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
4727         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
4728         mode iterator.
4729         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
4730         mode iterator.
4731         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4732         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4733         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4734         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4735         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
4736         VF mode iterator.
4737         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4738         Use VF_128 mode iterator.
4739         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
4740         mode iterator.
4741         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
4742         VF_128 mode iterator.
4743         (vcond<mode>): Use VF mode iterator.
4744         * config/i386/predicates.md (sse_comparison_operator): Merge with
4745         avx_comparison_float_operator.  Do not declare as special_predicate.
4746         * config/i386/i386.c (struct builtin_description): Update for renamed
4747         compare patterns.
4748         (ix86_expand_args_builtin): Ditto.
4749         (ix86_expand_sse_compare_mask): Ditto.
4751 2011-04-06  Richard Guenther  <rguenther@suse.de>
4753         * tree-inline.c (estimate_num_insns): For calls simply account
4754         for all passed arguments and a used return value.
4756 2011-04-06  Richard Guenther  <rguenther@suse.de>
4758         PR tree-optimization/47663
4759         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4760         call_stmt_time fields.
4761         (cgraph_edge_inlinable_p): Declare.
4762         (cgraph_edge_recursive_p): New inline function.
4763         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4764         (cgraph_clone_edge): Copy it.
4765         * ipa-inline.c (cgraph_estimate_edge_time): New function.
4766         Account for call stmt time.
4767         (cgraph_estimate_time_after_inlining): Take edge argument.
4768         (cgraph_estimate_edge_growth): Account call stmt size.
4769         (cgraph_estimate_size_after_inlining): Take edge argument.
4770         (cgraph_mark_inline_edge): Adjust.
4771         (cgraph_check_inline_limits): Likewise.
4772         (cgraph_recursive_inlining_p): Remove.
4773         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
4774         (cgraph_decide_recursive_inlining): Take edge argument and
4775         adjust.
4776         (cgraph_decide_inlining_of_small_functions): Do not avoid
4777         diags for recursive inlining here.
4778         (cgraph_flatten): Adjust.
4779         (cgraph_decide_inlining_incrementally): Likewise.
4780         (estimate_function_body_sizes): Remove call cost handling.
4781         (compute_inline_parameters): Initialize caller edge call costs.
4782         (cgraph_estimate_edge_growth): New function.
4783         (cgraph_estimate_growth): Use it.
4784         (cgraph_edge_badness): Likewise.
4785         (cgraph_check_inline_limits): Take an edge argument.
4786         (cgraph_decide_inlining_of_small_functions): Adjust.
4787         (cgraph_decide_inlining): Likewise.
4788         * tree-inline.c (estimate_num_insns): Only account for call
4789         return value if it is used.
4790         (expand_call_inline): Avoid diagnostics on recursive inline
4791         functions here.
4792         * lto-cgraph.c (lto_output_edge): Output edge call costs.
4793         (input_edge): Input edge call costs.
4795 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4797         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
4799 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
4801         * doc/invoke.texi (Spec Files): Fix typo.
4803 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
4805         * profile.c (branch_prob): Move declaration of local variable.  Remove
4806         obsolete ??? comment.  Expand the location explicitly instead of using
4807         the LOCATION_FILE and LOCATION_LINE macros.
4809 2011-04-06  Wei Guozhi  <carrot@google.com>
4811         PR target/47855
4812         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
4813         (arm_cond_branch): Likewise.
4814         (arm_cond_branch_reversed): Likewise.
4815         (arm_jump): Likewise.
4816         (push_multi): Likewise.
4817         * config/arm/constraints.md (Py): New constraint.
4819 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4821         PR bootstrap/48471
4822         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
4823         Move these...
4824         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
4825         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
4826         #ifdef DBX_DEBUGGING_INFO.
4828 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
4830         PR bootstrap/48403
4831         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
4832         if old and new states differ.
4834 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
4836         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
4837         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
4838         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4839         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
4840         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
4841         mcfv4e): Use Alias.
4842         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
4843         ColdFire options to -mcpu= options.
4845 2011-04-05  Jeff Law  <law@redhat.com>
4847         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
4848         check if BB is a successor of LOOP->header and return
4849         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
4851 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
4853         * cprop.c (struct reg_use): Remove.
4854         (reg_use_table): Make an array of RTX.
4855         (find_used_regs, constprop_register, local_cprop_pass,
4856         bypass_block): Simplify users of reg_use_table.
4857         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
4858         on one of the uses found by find_used_regs.
4860 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4862         PR bootstrap/48469
4863         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
4864         declaration.
4866 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4868         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
4869         as an rtx.
4870         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
4872 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
4874         PR middle-end/48441
4875         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
4877 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4879         * combine.c: Include obstack.h.
4880         (struct insn_link): Define.
4881         (uid_log_links): Adjust type.
4882         (FOR_EACH_LOG_LINK): New macro.
4883         (insn_link_obstack): Declare.
4884         (alloc_insn_link): Define.
4885         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
4886         type of link variables.
4887         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
4888         (try_combine, record_promoted_values, distribute_notes): Likewise.
4889         (distribute_links): Likewise.  Tweak prototype.
4890         (clear_log_links): Delete.
4891         (adjust_for_new_dest): Call alloc_insn_link.
4892         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
4894 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4896         * gcse.c (modify_mem_list): Convert to an array of VECs.
4897         (canon_modify_mem_list, compute_transp): Tweak formatting.
4898         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
4899         (load_killed_in_block_p): Likewise.
4900         (record_last_mem_set_info): Likewise.
4901         (clear_modify_mem_tables): Likewise.
4903 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4905         PR middle-end/48461
4906         * function.c (emit_use_return_register_into_block): Only define if
4907         HAVE_return.
4909 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
4911         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
4913 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
4915         * config/rx/rx-opts.h: New.
4916         * config/rx/rx.c (rx_cpu_type): Remove.
4917         (rx_handle_option): Don't assert that global structures are in
4918         use.  Access variables via opts pointer.  Defer most handling of
4919         OPT_mint_register_.  Use error_at.
4920         (rx_option_override): Handle deferred OPT_mint_register_ here.
4921         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
4922         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
4923         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
4924         (rx_cpu_types): New Enum and EnumValue entries.
4925         (mint-register=): Use Defer and use Var accordingly.
4927 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4929         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
4930         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
4931         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
4932         Move these...
4933         (debug_free_queue, debug_nesting, symbol_queue_index):
4934         ...and these...
4935         * dbxout.c: ...to here.  Make static.
4937 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4939         * gcse.c (modify_pair): Define.  Define a VEC of it.
4940         (canon_modify_mem_list): Convert to an array of VECs.
4941         (free_insn_expr_list_list): Delete.
4942         (clear_modify_mem_tables): Call VEC_free instead.
4943         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
4944         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
4945         (canon_list_insert, compute_transp): Likewise.
4947 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4949         PR target/43920
4950         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
4951         for size.
4953 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4955         PR target/43920
4956         * function.c (emit_use_return_register_into_block): New function.
4957         (thread_prologue_and_epilogue_insns): Use
4958         emit_use_return_register_into_block.
4960 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4962         PR target/43920
4963         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
4964         insn.
4966 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4968         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
4970 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
4972         * config/arm/arm.md (define_constants for unspec): Replace with
4973         define_c_enum.
4974         (define_constants for unspecv): Replace with define_c_enum.
4975         * config/arm/neon.md (define_constants for unspec): Replace with
4976         define_c_enum.
4978 2011-04-04  Richard Henderson  <rth@redhat.com>
4980         PR bootstrap/48400
4981         * dwarf2out.c (output_line_info): Always emit line info from
4982         at least one section.
4983         (dwarf2out_init): Create text_section_line_info here ...
4984         (set_cur_line_info_table): ... not here.
4986 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
4988         PR target/48380
4989         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
4990         not called.
4992         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
4994 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
4996         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
4997         (expr_equiv_p): Remove.
4998         (insert_set_in_table): Look at <dest, src> pair instead of expr.
4999         (hash_scan_set): Update call to insert_set_in_table.
5000         (dump_hash_table): Dump <dest, src> pair.
5001         (lookup_set): Simplify.  Lookup <dest, src> pair.
5002         (compute_transp): Remove, fold heavily simplified code into...
5003         (compute_local_properties): ...here.  Expect COMP and TRANSP
5004         unconditionally.
5005         (find_avail_set): Take set directly from struct expr.
5006         (find_bypass-set): Likewise.
5007         (bypass_block): Likewise.
5008         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5010         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5011         checks on form of COND from find_implicit_sets to here.
5012         (find_implicit_sets): Cleanup control flow. Split critical edges
5013         if it exposes implicit sets.  Allocate/resize implicit_sets as
5014         necessary.
5015         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5016         changed something.  Run df_analyze after find_implicit_sets if any
5017         edges were split.  Do not allocate implicit_sets here.
5019         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5020         (gcse_obstack): Renamed to cprop_obstack.
5021         (GNEW, GNEWVEC, GNEWVAR): Remove.
5022         (gmalloc): Remove.
5023         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5024         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5025         (gcse_alloc): Likewise, and rename to cprop_alloc.
5026         (alloc_gcse_men, free_gcse_mem): Remove.
5027         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5028         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5029         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5031         * cprop.c (oprs_not_set_p): Remove.
5032         (mark_set, mark_clobber): Remove.
5033         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5034         (reg_not_set_p): New function.
5035         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5036         (cprop_insn): Likewise.
5037         (cprop_jump): Use FOR_EACH_EDGE.
5039 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5041         PR bootstrap/48403
5042         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5043         (rank_for_schedule): Use scheduled_insns vector instead of
5044         last_scheduled_insn.
5045         (ok_for_early_queue_removal): Likewise.
5046         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5047         we have a dbg_cnt.
5048         (choose_ready): Likewise.
5049         (commit_schedule): Use VEC_iterate.
5050         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5051         a dbg_cnt, use it and ensure the first insn is in the ready list.
5052         (haifa_sched_init): Allocate scheduled_insns.
5053         (sched_extend_ready_list): Don't allocate it; reserve space.
5054         (haifa_sched_finish): Free it.
5056 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5058         * optc-gen.awk: Always remove type from Variable entry before
5059         recording in var_seen.
5061 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5063         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5064         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5065         call to tidy_fallthru_edges.
5067 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5069         * doc/options.texi (ToLower): Document.
5070         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5071         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5072         * opts.h (cl_option): Add cl_tolower field.
5073         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5074         arguments with lowercase strings.
5075         * config/rx/rx.opt (mcpu=): Add ToLower.
5076         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5077         argument.
5079 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5081         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5083 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5085         * config/vax/vax.c: Include reload.h.
5087 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5089         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5090         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5091         (sparc_preferred_reload_class): New function.
5093 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5095         PR debug/48401
5096         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5097         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5099 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5101         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5102         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5104 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5106         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5107         (ASM_OUTPUT_ALIGNED_BSS): Define.
5109 2011-04-03  Michael Matz  <matz@suse.de>
5111         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5112         and next_slot members.
5113         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5114         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5115         (lto_streamer_cache_append): Declare.
5116         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5117         unsigned index, remove offset parameter, ensure that we append
5118         or update existing entries.
5119         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5120         parameter, update next_slot for append.
5121         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5122         parameter.
5123         (lto_streamer_cache_insert_at): Likewise.
5124         (lto_streamer_cache_append): New function.
5125         (lto_streamer_cache_lookup): Use unsigned index.
5126         (lto_streamer_cache_get): Likewise.
5127         (lto_record_common_node): Don't test tree_node_can_be_shared.
5128         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5129         (lto_streamer_cache_delete): Don't free offsets member.
5130         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5131         (lto_output_string_with_length): Use lto_output_data_stream.
5132         (lto_output_tree_header): Remove ix parameter, don't write it.
5133         (lto_output_builtin_tree): Likewise.
5134         (lto_write_tree): Adjust callers to above, don't track and write
5135         offset, write unsigned index.
5136         (output_unreferenced_globals): Don't emit all global vars.
5137         (write_global_references): Use unsigned indices.
5138         (lto_output_decl_state_refs): Likewise.
5139         (write_symbol): Likewise.
5140         * lto-streamer-in.c (lto_input_chain): Move earlier.
5141         (input_function): Use unsigned index.
5142         (input_alias_pairs): Don't read and then ignore all global vars.
5143         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5144         don't pass it back, use lto_streamer_cache_append.
5145         (lto_register_var_decl_in_symtab): Use unsigned index.
5146         (lto_register_function_decl_in_symtab): Likewise.
5147         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5148         index.
5149         (lto_get_builtin_tree): Don't read index, use
5150         lto_streamer_cache_append.
5151         (lto_read_tree): Adjust call to lto_materialize_tree.
5153         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5154         don't use function calls in arguments to MIN.
5156         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5157         twice.
5159         * gimple.c (gimple_type_leader_entry): Mark deletable.
5161 2011-04-03  Alan Modra  <amodra@gmail.com>
5163         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5165 2011-04-03  Michael Matz  <matz@suse.de>
5167         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5168         an integer.
5169         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5171 2011-04-03  Michael Matz  <matz@suse.de>
5173         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5174         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5175         without function context.
5176         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5177         current_function_decl and cfun.
5179 2011-04-03  Michael Matz  <matz@suse.de>
5181         * tree.c (decl_init_priority_insert): Don't create entry for
5182         default priority.
5183         (decl_fini_priority_insert): Ditto.
5184         (fields_compatible_p, find_compatible_field): Remove.
5185         * tree.h (fields_compatible_p, find_compatible_field): Remove.
5186         * gimple.c (gimple_compare_field_offset): Adjust block comment.
5188 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5190         * combine.c (try_combine): Remove useless local variable.
5192 2011-04-03  Richard Guenther  <rguenther@suse.de>
5193             Ira Rosen  <ira.rosen@linaro.org>
5195         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5196         non-variable offsets and compare the remaining bases of the two
5197         accesses instead of looking for exact same data-ref.
5199 2011-04-02  Kai Tietz  <ktietz@redhat.com>
5201         PR target/48416
5202         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5204         * i386.c (ix86_is_msabi_thiscall): New helper function.
5205         (ix86_is_type_thiscall): New helper function.
5206         (ix86_comp_type_attributes): Handle thiscall for method-functions
5207         special.
5208         (init_cumulative_args): Likewise.
5209         (find_drap_reg): Likewise.
5210         (ix86_static_chain): Likewise.
5211         (x86_this_parameter): Likewise.
5212         (x86_output_mi_thunk): Likewise.
5214 2011-04-01  Olivier Hainque  <hainque@adacore.com>
5215             Nicolas Setton  <setton@adacore.com>
5216             Eric Botcazou  <ebotcazou@adacore.com>
5218         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5219         (add_gnat_descriptive_type_attribute): New function.
5220         (gen_array_type_die): Call it.
5221         (gen_enumeration_type_die): Likewise.
5222         (gen_struct_or_union_type_die): Likewise.
5223         (modified_type_die): Likewise.
5224         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5225         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5226         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5228 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5230         PR bootstrap/48148
5231         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5232         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5234         Revert:
5235         2011-03-17  Richard Guenther  <rguenther@suse.de>
5237         PR bootstrap/48148
5238         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5239         origin for decls in other ltrans units.
5240         (input_varpool_node): Likewise.
5242 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5244         PR middle-end/48335
5245         * expr.c (expand_assignment): Handle all possibilities
5246         if TO_RTX is CONCAT.
5247         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5248         (store_split_bit_field): If SUBREG_REG (op0) or
5249         op0 itself has smaller mode than word, return it
5250         for offset 0 and const0_rtx for out-of-bounds stores.
5251         If word is const0_rtx, skip it.
5253 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
5255         * config/h8300/h8300.c (print_operand_address): Rename to...
5256         (h8300_print_operand_address): ...this. Make static. Adjust comments.
5257         Call h8300_print_operand and h8300_print_operand_address instead of
5258         print_operand and print_operand_address. Declare.
5259         (print_operand): Renake to...
5260         (h8300_print_operand): ...this. Make static. Adjust comments.
5261         Call h8300_print_operand instead of print_operand. Declare.
5262         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5263         (h8300_register_move_cost): Likewise.
5264         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5265         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5266         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5267         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5268         * config/h8300/h8300-protos.h (print_operand): Delete.
5269         (print_operand_address): Delete.
5271 2011-04-01  Richard Henderson  <rth@redhat.com>
5273         PR 48400
5274         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5275         in strict mode before dwarf4.  Re-order tests to early out
5276         before switching sections.
5278 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
5280         * config/h8300/constraints.md: New file.
5281         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
5282         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5283         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5284         * config/h8300/predicates.md (bit_operand): Likewise.
5285         (incdec_operand): Use satisfies_constraint_M and
5286         satisfies_constraint_O.  Don't use C code block.
5287         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5288         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5289         (compute_mov_length): Use satisfies_constraint_G.
5290         (fix_bit_operand): Use satisfies_constraint_U.
5291         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5292         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5293         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5294         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5295         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5296         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5297         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5298         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5299         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5300         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5301         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5302         (EXTRA_MEMORY_CONSTRAINT): Delete.
5304 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
5305             Michael Meissner  <meissner@linux.vnet.ibm.com>
5307         PR target/48262
5308         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5309         operands, as per the specifications.
5311         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5312         (vec_extract_evenv4sf): Ditto.
5313         (vec_extract_evenv8hi): Ditto.
5314         (vec_extract_evenv16qi): Ditto.
5315         (vec_extract_oddv4si): Ditto.
5317 2011-03-31  Mark Wielaard  <mjw@redhat.com>
5319         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5320         high_pc attribute if the CU has no associated code. Only output
5321         DW_AT_entry_pc for CU if not generating strict dwarf and
5322         dwarf_version < 4.
5324 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
5326         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5327         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5328         out of ...
5329         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5330         * final.c (final_start_function): Call the new function rather
5331         than using a NULL argument for dwarf2out_frame_debug.
5333         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5334         that contains the prologue.
5336         * haifa-sched.c (queue_insn): New arg REASON.  All callers
5337         changed.  Print it in debugging output.
5339         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5341         * sched-ebb.c (begin_schedule_ready): Remove second argument.
5342         Split most of the code into...
5343         (begin_move_insn): ... here.  New function.
5344         (ebb_sched_info): Add a pointer to it.
5345         * haifa-sched.c (scheduled_insns): New static variable.
5346         (sched_extend_ready_list): Allocate it.
5347         (schedule_block): Use it to record the order of scheduled insns.
5348         Perform RTL changes to move insns only after all scheduling
5349         decisions have been made.
5350         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5351         begin_move_insn field.
5352         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5353         * sched-int.h (struct haifa_sched_info): Remove second argument
5354         from begin_schedule_ready hook.  Add new member begin_move_insn.
5355         * sched-rgn.c (begin_schedule_ready): Remove second argument.
5356         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5358         * haifa-sched.c (prune_ready_list): New function, broken out of
5359         schedule_block.
5360         (schedule_block): Use it.
5362 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5364         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5366 2011-04-01  Kai Tietz  <ktietz@redhat.com>
5368         * config.gcc (*-*-mingw*): Allow as option the
5369         posix threading model.
5370         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
5371         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5372         definition.
5373         (CPP_SPEC): Add pthread/no-pthread handling.
5374         (LIB_SPEC): Likewise.
5375         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5376         (LIB_SPEC): Likewise.
5377         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5378         flag to pass -pthread option for shared libgcc build.
5379         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5380         for shared libgcc build.
5381         * config/i386/t-mingw-pthread: New file.
5382         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5383         New define to enable use of library pthread by default.
5384         * config/i386/mingw.opt (pthread): New driver option.
5385         (no-pthread): New driver option.
5386         * config/i386/cygming.opt: Make sure trailing empty line is retained.
5387         * config/i386/mingw-w64.opt: Likewise.
5389 2011-04-01  Gary Funck <gary@intrepid.com>
5391         * c-decl.c (grokdeclarator): Fix formatting.
5393 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5395         * expr.c (emit_block_move_via_movmem): Use n_generator_args
5396         instead of n_operands.
5397         (set_storage_via_setmem): Likewise.
5398         * optabs.c (maybe_gen_insn): Likewise.
5399         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5400         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5401         (mips_expand_builtin_direct): Likewise.
5402         * config/spu/spu.c (expand_builtin_args): Likewise.
5404 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5406         * recog.h (insn_data_d): Add n_generator_args.
5407         * genoutput.c (data): Likewise.
5408         (output_insn_data): Print it.
5409         (max_opno, num_dups): Delete.
5410         (scan_operands): Just fill in "d->operand[...]".
5411         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5413 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5415         * gensupport.h (pattern_stats): New structure.
5416         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5417         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5418         (max_operand_1, max_operand_vec): Delete.
5419         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5421 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
5423         * emit-rtl.c (emit_pattern_after_setloc): New function.
5424         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5425         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5426         (emit_pattern_after): New function.
5427         (emit_insn_after, emit_jump_insn_after): Call it.
5428         (emit_call_insn_after, emit_debug_insn_after): Likewise.
5429         (emit_pattern_before_setloc): New function.
5430         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5431         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5432         Likewise.
5433         (emit_pattern_before): New function.
5434         (emit_insn_before, emit_jump_insn_before): Call it.
5435         (emit_call_insn_before, emit_debug_insn_before): Likewise.
5437 2011-03-31  Richard Henderson  <rth@redhat.com>
5439         * dwarf2out.c (dw_separate_line_info_ref): Remove.
5440         (dw_separate_line_info_entry): Remove.
5441         (enum dw_line_info_opcode): New.
5442         (dw_line_info_entry): Use it.
5443         (dw_line_info_table, dw_line_info_table_p): New.
5444         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5445         (line_info_table, line_info_label_num): Remove.
5446         (line_info_table_in_use): Remove.
5447         (separate_line_info_table): Remove.
5448         (separate_line_info_table_allocated): Remove.
5449         (separate_line_info_table_in_use): Remove.
5450         (LINE_INFO_TABLE_INCREMENT): Remove.
5451         (line_info_label_num): New.
5452         (cur_line_info_table): New.
5453         (text_section_line_info, cold_text_section_line_info): New.
5454         (separate_line_info): New.
5455         (SEPARATE_LINE_CODE_LABEL): Remove.
5456         (print_dwarf_line_table): Remove.
5457         (debug_dwarf): Don't dump it.
5458         (output_one_line_info_table): New.
5459         (output_line_info): Use it.
5460         (new_line_info_table): New.
5461         (set_cur_line_info_table): New.
5462         (dwarf2out_switch_text_section): Use it.
5463         (dwarf2out_begin_function): Likewise.
5464         (push_dw_line_info_entry): New.
5465         (dwarf2out_source_line): Rewrite for new line info tables.
5466         (dwarf2out_init): Remove dead initailizations.
5468 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5470         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
5471         various flags.
5472         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5473         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5474         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5475         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5476         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5477         * opt-functions.awk (flag_init, switch_bit_fields): New.
5478         (switch_flags): Don't handle flags moved to bit-fields.  Don't
5479         generate CL_MISSING_OK or CL_SAVE.
5480         * optc-gen.awk: Update to generate bit-field output as well as
5481         flags field.
5482         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5483         bit-field instead of CL_REJECT_DRIVER flag.
5484         * opts-common.c (generate_canonical_option,
5485         decode_cmdline_option): Use bit-fields instead of CL_* flags.
5486         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5487         instead of CL_REJECT_NEGATIVE flag.
5488         * toplev.c (print_switch_values): Use cl_report bit-field instead
5489         of CL_REPORT flag.
5491 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5493         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5494         a zero minimum index only if it is redundant.
5496 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5498         PR rtl-optimization/48381
5499         * ira-color.c (assign_hard_reg): Use hard reg set intersection
5500         instead of ira_class_hard_reg_index for calculating conflicting
5501         hard registers.
5503 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
5505         * cprop.c: Clean up hash table building.
5506         (reg_avail_info): Remove.
5507         (oprs_available_p): Remove.
5508         (record_last_reg_set_info): Remove.
5509         (record_last_set_info): Remove.
5510         (reg_available_p): New function.
5511         (gcse_constant_p): Do not treat unfolded conditions as constants.
5512         (make_set_regs_unavailable): New function.
5513         (hash_scan_set): Simplify with new reg_available_p.
5514         (compute_hash_table_work): Traverse insns stream only once.
5515         Do not compute reg_avail_info. Traverse insns in reverse order.
5516         Record implicit sets after recording explicit sets from the block.
5518 2011-03-31  Michael Matz  <matz@suse.de>
5520         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5522 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
5524         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5525         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5526         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5527         (h8300_mode_dependent_address_p): New function.
5528         (h8300_get_index): Make static.
5530 2011-03-31  Jeff Law  <law@redhat.com>
5532         * reload1.c (elimination_effects): Fix typo in recent change.
5534         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5535         typo potentially leading to null pointer dereference.
5537         * caller-save.c (new_saved_hard_reg): Eliminate return value.
5538         (setup_save_areas): Corresponding changes to avoid useless
5539         assignments.
5541         * jump.c (reversed_comparison_code_parts): Avoid successive return
5542         statements when REVERSE_CONDITION is defined.
5544         * expr.c (expand_assignment): Avoid useless assignments.
5545         (expand_expr_real_1): Likewise.
5546         (expand_expr_real_2): Avoid useless statements.
5548         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5550         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5552         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5553         statements.
5555         * stmt.c (expand_expr_stmt): Avoid useless assignment.
5557 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5559         PR target/47109
5560         * doc/tm.texi.in (TARGET_VERSION): Remove.
5561         * doc/tm.texi: Regenerate.
5562         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5563         * collect2.c (main): Don't use TARGET_VERSION.
5564         * mips-tdump.c (main): Don't use TARGET_VERSION.
5565         * mips-tfile.c (main): Don't use TARGET_VERSION.
5566         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5567         * config/rs6000/vxworksae.h: Remove.
5568         * config/alpha/alpha.h (TARGET_VERSION): Remove.
5569         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5570         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5571         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5572         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5573         * config/arm/arm.h (TARGET_VERSION): Remove.
5574         * config/arm/coff.h (TARGET_VERSION): Remove.
5575         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5576         * config/arm/elf.h (TARGET_VERSION): Remove.
5577         * config/arm/freebsd.h (TARGET_VERSION): Remove.
5578         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5579         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5580         * config/arm/pe.h (TARGET_VERSION): Remove.
5581         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5582         * config/arm/semi.h (TARGET_VERSION): Remove.
5583         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5584         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5585         * config/arm/vxworks.h (TARGET_VERSION): Remove.
5586         * config/avr/avr.h (TARGET_VERSION): Remove.
5587         * config/bfin/bfin.h (TARGET_VERSION): Remove.
5588         * config/fr30/fr30.h (TARGET_VERSION): Remove.
5589         * config/frv/frv.h (TARGET_VERSION): Remove.
5590         * config/h8300/h8300.h (TARGET_VERSION): Remove.
5591         * config/i386/cygwin.h (TARGET_VERSION): Remove.
5592         * config/i386/darwin.h (TARGET_VERSION): Remove.
5593         * config/i386/darwin64.h (TARGET_VERSION): Remove.
5594         * config/i386/djgpp.h (TARGET_VERSION): Remove.
5595         * config/i386/freebsd.h (TARGET_VERSION): Remove.
5596         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5597         * config/i386/gnu.h (TARGET_VERSION): Remove.
5598         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5599         * config/i386/i386elf.h (TARGET_VERSION): Remove.
5600         * config/i386/linux.h (TARGET_VERSION): Remove.
5601         * config/i386/linux64.h (TARGET_VERSION): Remove.
5602         * config/i386/lynx.h (TARGET_VERSION): Remove.
5603         * config/i386/mingw32.h (TARGET_VERSION): Remove.
5604         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5605         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5606         * config/i386/netware.h (TARGET_VERSION): Remove.
5607         * config/i386/nto.h (TARGET_VERSION): Remove.
5608         * config/i386/openbsd.h (TARGET_VERSION): Remove.
5609         * config/i386/vxworks.h (TARGET_VERSION): Remove.
5610         * config/ia64/elf.h (TARGET_VERSION): Remove.
5611         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5612         * config/ia64/hpux.h (TARGET_VERSION): Remove.
5613         * config/ia64/linux.h (TARGET_VERSION): Remove.
5614         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5615         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5616         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5617         * config/lm32/lm32.h (TARGET_VERSION): Remove.
5618         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5619         * config/m32c/m32c.h (TARGET_VERSION): Remove.
5620         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5621         * config/m32r/m32r.h (TARGET_VERSION): Remove.
5622         * config/m68k/linux.h (TARGET_VERSION): Remove.
5623         * config/m68k/m68k.h (TARGET_VERSION): Remove.
5624         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5625         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5626         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5627         * config/mep/mep.h (TARGET_VERSION): Remove.
5628         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5629         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5630         * config/mips/iris6.h (MACHINE_TYPE): Remove.
5631         * config/mips/linux.h (TARGET_VERSION): Remove.
5632         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5633         * config/mips/vxworks.h (TARGET_VERSION): Remove.
5634         * config/mmix/mmix.h (TARGET_VERSION): Remove.
5635         * config/mn10300/linux.h (TARGET_VERSION): Remove.
5636         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5637         * config/pa/pa.h (TARGET_VERSION): Remove.
5638         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5639         * config/picochip/picochip.h (TARGET_VERSION): Remove.
5640         * config/rs6000/aix.h (TARGET_VERSION): Remove.
5641         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5642         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5643         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5644         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5645         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5646         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5647         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5648         * config/rs6000/linux.h (TARGET_VERSION): Remove.
5649         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5650         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5651         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5652         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5653         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5654         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5655         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5656         * config/s390/linux.h (TARGET_VERSION): Remove.
5657         * config/s390/s390.h (TARGET_VERSION): Remove.
5658         * config/s390/tpf.h (TARGET_VERSION): Remove.
5659         * config/score/score.h (TARGET_VERSION): Remove.
5660         * config/sh/linux.h (TARGET_VERSION): Remove.
5661         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5662         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5663         * config/sh/sh.h (TARGET_VERSION): Remove.
5664         * config/sh/sh64.h (TARGET_VERSION): Remove.
5665         * config/sh/superh.h (TARGET_VERSION): Remove.
5666         * config/sh/vxworks.h (TARGET_VERSION): Remove.
5667         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5668         * config/sparc/linux.h (TARGET_VERSION): Remove.
5669         * config/sparc/linux64.h (TARGET_VERSION): Remove.
5670         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5671         TARGET_NAME32, TARGET_NAME): Remove.
5672         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5673         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5674         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5675         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5676         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5677         * config/spu/spu.h (TARGET_VERSION): Remove.
5678         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5679         * config/v850/v850.h (TARGET_VERSION): Remove.
5680         * config/vax/linux.h (TARGET_VERSION): Remove.
5681         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5682         * config/xtensa/elf.h (TARGET_VERSION): Remove.
5683         * config/xtensa/linux.h (TARGET_VERSION): Remove.
5685 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5687         PR target/48142
5688         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5689         frame-related from frame-unrelated adjustments to the stack pointer.
5691 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
5693         * common.opt (fdebug-types-section): Move earlier.
5694         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5696 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
5698         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5699         var.
5701 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
5703         * tree.h (CASE_CHAIN): Define.
5704         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5705         (gimple_redirect_edge_and_branch): Likewise.
5707 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5709         PR middle-end/48367
5710         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5711         calculation.
5713 2011-03-30  Jeff Law  <law@redhat.com>
5715         * PR bootstrap/48371
5716         * reload1.c (reload): Fix botch in last change.
5718         * reload.h (struct reload): Fix typo introduced in last change.
5720 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5722         * config/arm/arm.opt (mhard-float, msoft-float): Mark
5723         Undocumented.  Remove help text.
5724         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5725         -mhard-float.
5727 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5729         * doc/options.texi (NegativeAlias): Document.
5730         (Alias): Mention NegativeAlias.
5731         * opt-functions.awk: Handle NegativeAlias.
5732         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5733         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5734         * opts.h (CL_NEGATIVE_ALIAS): Define.
5735         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5736         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5737         OPT_mspe_.
5738         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5739         Alias entries.
5740         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5741         mno-spe and mno-isel instead of mspe=no and -misel=no.
5743 2011-03-29  Mark Wielaard  <mjw@redhat.com>
5745         * common.opt (fdebug-types-section): New flag.
5746         * doc/invoke.texi: Document new -fno-debug-types-section flag.
5747         * dwarf2out.c (use_debug_types): New define.
5748         (struct die_struct): Mark die_id with GTY desc use_debug_types.
5749         (print_die): Guard output of type unit signatures using
5750         use_debug_types.
5751         (build_abbrev_table): Replace assert of dwarf_version >= 4
5752         with assert on use_debug_types.
5753         (size_of_die): Likewise.
5754         (unmark_dies): Likewise.
5755         (value_format): Decide AT_ref_external form on use_debug_types.
5756         (output_die): Replace dwarf_version version check guard with
5757         use_debug_types where appropriate.
5758         (modified_type_die): Likewise.
5759         (gen_reference_type_die): Likewise.
5760         (dwarf2out_start_source_file): Likewise.
5761         (dwarf2out_end_source_file): Likewise.
5762         (prune_unused_types_walk_attribs): Likewise.
5763         (dwarf2out_finish): Likewise.
5765 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5767         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5769 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
5771         PR rtl-optimization/48332
5772         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
5773         mode of input operand N and modeN to its actual mode.
5775 2011-03-30  Jeff Law  <law@redhat.com>
5777         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
5778         define accessor macro.
5779         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
5780         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
5781         (reg_equiv_init): Likewise.
5782         (reg_equivs_size): New variable.
5783         (reg_equiv_init_size): Remove.
5784         (allocate_initial_values): Move prototype to here from....
5785         * integrate.h (allocate_initial_values): Remove prototype.
5786         * integrate.c: Include reload.h.
5787         (allocate_initial_values): Corresponding changes.
5788         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
5789         (fix_reg_equiv_init, no_equiv): Corresponding changes.
5790         (update_equiv_regs): Corresponding changes.
5791         (ira): Corresponding changes.
5792         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
5793         (push_secondary_reload): Corresponding changes.
5794         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
5795         (make_memloc, find_reloads_address): Corresponding changes.
5796         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
5797         (find_reloads_address_1): Corresponding changes.
5798         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
5799         (refers_to_regno_for_reload_p): Corresponding changes.
5800         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
5801         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
5802         * reload1.c: Include ggc.h.
5803         (grow_reg_equivs): New function.
5804         (replace_pseudos_in, reload): Corresponding changes.
5805         (calculate_needs_all_insns, alter_regs): Corresponding changes.
5806         (eliminate_regs_1, elimination_effects): Corresponding changes.
5807         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
5808         (delete_output_reload): Likewise.
5809         * caller-save.c (mark_referenced_regs): Corresponding changes.
5810         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
5811         * frv/predicates.md (frv_load_operand): Corresponding changes.
5812         * microblaze/microblaze.c (double_memory_operand): Corresponding
5813         changes.
5814         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
5815         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
5816         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
5817         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
5818         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
5819         changes.
5820         * pa/pa.c (emit_move_sequence): Corresponding changes.
5821         * vax/vax.c (nonindexed_address_p): Corresponding changes.
5823 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
5825         PR target/47551
5826         * config/arm/arm.c (coproc_secondary_reload_class): Handle
5827         structure modes.  Don't check neon_vector_mem_operand for
5828         vector or structure modes.
5830 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
5831             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5833         PR target/43590
5834         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
5835         operand 1 and reshuffle the operands to match.
5836         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
5838 2011-03-30  Christian Schüler  <cschueler@gmx.de>
5840         PR driver/48208
5841         * config/c.opt (F): Added 'Driver' to -F option.
5843         PR driver/48260
5844         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
5845           handler function.
5846         * config/darwin.opt: Added '-arch' option.
5848 2011-03-30  Nick Clifton  <nickc@redhat.com>
5850         * config/rx/rx.md: Add peepholes and patterns to combine
5851         extending loads and simple arithmetic instructions.
5852         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
5853         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
5854         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
5855         modes to use pre-decrement and post-increment addressing.
5856         (rx_is_restricted_memory_address): Add range checking of REG+INT
5857         addresses.
5858         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
5859         (rx_memory_move_cost): Adjust cost of stores.
5860         (rx_adjust_insn_length): New function.
5862 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
5864         PR c/48305
5865         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5866         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
5867         matching arg00/arg01 types.
5869 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
5871         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
5872         last_location to UNKNOWN_LOCATION.
5874 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
5876         PR target/48349
5877         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
5878         FLOAT_SSE_REGS.
5880 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5881             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5883         PR bootstrap/48337
5884         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
5885         Init(PROCESSOR_V7).
5886         (sparc_cpu): Likewise.
5887         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
5888         PROCESSOR_V7.
5890 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5892         PR target/48336
5893         PR middle-end/48342
5894         PR rtl-optimization/48345
5895         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
5896         hard regs for given mode from profitable regs when doing secondary
5897         allocation.
5899 2011-03-29  Jeff Law  <law@redhat.com>
5901         PR bootstrap/48327
5902         * tree-ssa-threadupdate.c (struct redirection_data): Remove
5903         do_not_duplicate field.
5904         (lookup_redirection_data): Corresponding changes.
5905         (create_duplicates): Always create a template block.
5906         (redirect_edges): Remove code which reused the original block
5907         when it was going to become unreachable code.
5908         (thread_block): Don't set do_not_duplicate field.
5910 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
5912         * lto-opts.c (register_user_option_p, lto_register_user_option):
5913         Make type argument unsigned.
5914         * lto-streamer.h (lto_register_user_option): Make type argument
5915         unsigned.
5916         * opth-gen.awk: Make CL_* macros unsigned.
5917         * opts-common.c (find_opt): Make lang_mask argument unsigned.
5918         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
5919         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
5920         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
5921         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
5922         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
5923         (find_opt): Make lang_mask argument unsigned.
5925 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5927         PR rtl-optimization/48331
5928         PR rtl-optimization/48334
5929         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
5930         for any used algorithm.
5932 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5934         * ira-conflicts.c (build_object_conflicts): Add unused attribute
5935         to parent_max.
5937 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
5939         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
5940         (alpha_option_override): Don't set alpha_sr_alias_set.
5941         (emit_frame_store_1): Use gen_frame_mem rather than calling
5942         set_mem_alias_set.
5943         (alpha_expand_epilogue): Ditto.
5945 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
5947         PR tree-optimization/48290
5948         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
5949         vectorization, check that relevant phis in the basic block after
5950         the inner loop are really inner loop's exit phis.
5952 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
5954         PR debug/48190
5955         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
5956         (cached_dw_loc_list_def): New structure.
5957         (cached_dw_loc_list): New typedef.
5958         (cached_dw_loc_list_table): New variable.
5959         (cached_dw_loc_list_table_hash): New function.
5960         (cached_dw_loc_list_table_eq): Likewise.
5961         (add_location_or_const_value_attribute): Take a bool cache_p.
5962         Cache the list when the parameter is true.
5963         (gen_formal_parameter_die): Update caller.
5964         (gen_variable_die): Likewise.
5965         (dwarf2out_finish): Likewise.
5966         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
5967         while generating debug info for the decl.
5968         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
5969         (dwarf2out_init): Initialize cached_dw_loc_list_table.
5970         (resolve_addr): Cache the result of resolving a chain of
5971         location lists.
5973 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
5975         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
5976         conflict object hard regset nodes have intersecting hard reg sets.
5978         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
5979         after regstat_init_n_sets_and_refs.
5981         * ira.c: Add more comments at the top.
5982         (setup_stack_reg_pressure_class, setup_pressure_classes):
5983         Add comments how we compute the register pressure classes.
5984         (setup_allocno_and_important_classes): Add more comments.
5985         (setup_class_translate_array, reorder_important_classes)
5986         (setup_reg_class_relations): Add comments.
5988         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
5989         start of the file.
5991         * ira-color.c: Add 2011 to the Copyright line.
5992         (assign_hard_reg):  Add more comments.
5993         (improve_allocation): Ditto.
5995         * ira-costs.c: Add 2011 to the Copyright line.
5996         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
5997         comments.
5998         (setup_regno_cost_classes_by_mode): Ditto.
6000         Initial patches from ira-improv branch:
6002         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6004         * ira-build.c (ira_create_object): Remove initialization of
6005         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6006         (ira_create_allocno): Remove initialization of
6007         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6008         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6009         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6010         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6011         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6012         Initialize ALLOCNO_ADD_DATA.
6013         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6014         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6015         ALLOCNO_REG.
6016         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6017         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6019         * ira.c (ira_reallocate): Remove.
6020         (setup_pressure_classes): Call
6021         ira_init_register_move_cost_if_necessary.  Use
6022         ira_register_move_cost instead of ira_get_register_move_cost.
6023         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6024         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6026         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6027         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6028         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6029         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6030         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6031         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6032         Fix formatting.
6033         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6034         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6035         (struct allocno_color_data): New.
6036         (allocno_color_data_t): New typedef.
6037         (allocno_color_data): New definition.
6038         (ALLOCNO_COLOR_DATA): New macro.
6039         (struct object_color_data): New.
6040         (object_color_data_t): New typedef.
6041         (object_color_data): New definition.
6042         (OBJECT_COLOR_DATA): New macro.
6043         (update_copy_costs, calculate_allocno_spill_cost): Call
6044         ira_init_register_move_cost_if_necessary.  Use
6045         ira_register_move_cost instead of ira_get_register_move_cost.
6046         (move_spill_restore, update_curr_costs): Ditto.
6047         (allocno_spill_priority): Make it inline.
6048         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6049         (struct coalesce_data, coalesce_data_t): New.
6050         (allocno_coalesce_data): New definition.
6051         (ALLOCNO_COALESCE_DATA): New macro.
6052         (merge_allocnos, coalesced_allocno_conflict_p): Use
6053         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6054         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6055         (coalesce_allocnos): Ditto.
6056         (setup_coalesced_allocno_costs_and_nums): Ditto.
6057         (collect_spilled_coalesced_allocnos): Ditto.
6058         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6059         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6060         (coalesce_spill_slots): Ditto.
6061         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6062         free allocno_coalesce_data.
6064         * ira-conflicts.c: Fix formatting.
6065         (process_regs_for_copy): Call
6066         ira_init_register_move_cost_if_necessary.  Use
6067         ira_register_move_cost instead of ira_get_register_move_cost.
6068         (build_object_conflicts): Optimize.
6070         * ira-costs.c (record_reg_classes): Optimize.  Call
6071         ira_init_register_move_cost_if_necessary.  Use
6072         ira_register_move_cost, ira_may_move_in_cost, and
6073         ira_may_move_out_cost instead of ira_get_register_move_cost and
6074         ira_get_may_move_cost.
6075         (record_address_regs): Ditto.
6076         (scan_one_insn): Optimize.
6077         (find_costs_and_classes): Optimize.
6078         (process_bb_node_for_hard_reg_moves): Call
6079         ira_init_register_move_cost_if_necessary.  Use
6080         ira_register_move_cost instead of ira_get_register_move_cost.
6082         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6083         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6084         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6085         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6086         definitions.
6087         (ira_initiate_emit_data, ira_finish_emit_data)
6088         (create_new_allocno): New functions.
6089         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6090         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6091         Use ira_register_move_cost instead of ira_get_register_move_cost.
6093         * ira-int.h: Fix some comments.
6094         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6095         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6096         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6097         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6098         add_data.
6099         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6100         bitfield after mode.  Make hard_regno a short int.  Make
6101         hard_regno short.  Remove first_coalesced_allocno and
6102         next_coalesced_allocno.  Move mem_optimized_dest_p,
6103         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6104         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6105         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6106         temp, colorable_p.  Add new member add_data.
6107         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6108         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6109         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6110         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6111         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6112         (ALLOCNO_ADD_DATA): New macro.
6113         (ira_emit_data_t): New typedef.
6114         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6115         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6116         from struct ira_allocno.
6117         (ALLOCNO_EMIT_DATA): New macro.
6118         (ira_allocno_emit_data, allocno_emit_reg): New.
6119         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6120         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6121         (OBJECT_ADD_DATA): New macro.
6122         (ira_reallocate): Remove.
6123         (ira_initiate_emit_data, ira_finish_emit_data): New.
6124         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6125         (ira_init_register_move_cost_if_necessary): New.
6126         (ira_object_conflict_iter_next): Merge into
6127         ira_object_conflict_iter_cond.
6128         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6130         * ira-live.c (process_single_reg_class_operands): Call
6131         ira_init_register_move_cost_if_necessary.  Use
6132         ira_register_move_cost instead of ira_get_register_move_cost.
6134         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6136         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6138         * ira-costs.c: Fix formatting.
6139         (cost_classes, cost_classes_num): Remove.
6140         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6141         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6142         (cost_classes_del, cost_classes_htab): New.
6143         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6144         (initiate_regno_cost_classes, setup_cost_classes): New.
6145         (setup_regno_cost_classes_by_aclass): New.
6146         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6147         (record_reg_classes): Use regno_cost_classes instead of
6148         cost_classes.  Move checking opposite operand up.
6149         (record_address_regs): Use regno_cost_classes
6150         instead of cost_classes.
6151         (scan_one_insn): Ditto.  Use always general register.
6152         (print_allocno_costs): Use regno_cost_classes instead of
6153         cost_classes.
6154         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6155         (find_costs_and_classes): Set up cost classes for each registers.
6156         Use also their mode for this.  Use regno_cost_classes instead of
6157         cost_classes.
6158         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6159         cost_classes.
6160         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6161         (ira_costs, ira_set_pseudo_classes): Call
6162         initiate_regno_cost_classes and finish_regno_cost_classes.
6164         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6166         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6168         * target.def (ira_cover_classes): Remove.
6170         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6172         * doc/tm.texi.in: Ditto.
6174         * ira-conflicts.c: Remove mentioning cover classes from the file.
6175         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6176         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
6178         * targhooks.c (default_ira_cover_classes): Remove.
6180         * targhooks.h (default_ira_cover_classes): Ditto.
6182         * haifa-sched.c: Remove mentioning cover classes from the file.
6183         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6184         ira_pressure_classes and ira_pressure_classes_num instead of
6185         ira_reg_class_cover_size and ira_reg_class_cover.  Use
6186         sched_regno_pressure_class instead of sched_regno_cover_class.
6187         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6188         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6190         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
6191         classes from the file.
6192         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6193         (struct object_hard_regs, struct object_hard_regs_node): New.
6194         (struct ira_object): New members profitable_hard_regs,
6195         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6196         (struct ira_allocno): Rename cover_class to aclass.  Rename
6197         cover_class_cost and updated_cover_class_cost to class_cost and
6198         updated_class_cost.  Remove splay_removed_p and
6199         left_conflict_size.  Add new members colorable_p.
6200         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6201         (ALLOCNO_COLORABLE_P): New macro.
6202         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6203         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6204         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6205         (OBJECT_...): Rename parameter C to O.
6206         (OBJECT_PROFITABLE_HARD_REGS): New macro.
6207         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6208         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6209         (struct target_ira_int): New members x_ira_max_memory_move_cost,
6210         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6211         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6212         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6213         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
6214         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
6215         x_ira_reg_class_subunion.
6216         (ira_max_memory_move_cost, ira_max_register_move_cost)
6217         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6218         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6219         (ira_important_class_nums, ira_reg_class_superunion): New macros.
6220         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6221         (ira_reg_class_union): Rename to ira_reg_class_subunion.
6222         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6223         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6224         (ira_tune_allocno_costs_and_cover_classes): Rename to
6225         ira_tune_allocno_costs.
6226         (ira_debug_hard_regs_forest): New.
6227         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6228         (ira_object_conflict_iter_next): Fix comments.
6229         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6230         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6231         cover_class to aclass.
6232         (ira_allocate_and_accumulate_costs): Ditto.
6233         (ira_allocate_and_set_or_copy_costs): Ditto.
6235         * opts.c (decode_options): Remove ira_cover_class check.
6237         * ira-color.c: Remove mentioning cover classes from the file.  Use
6238         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6239         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6240         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6241         (splay-tree.h): Remove include.
6242         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6243         before copy_freq_compare_func.
6244         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6245         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6246         New definitions.
6247         (hard_regs_roots, hard_regs_node_vec): Ditto.
6248         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6249         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6250         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6251         (create_new_object_hard_regs_node): Ditto.
6252         (add_new_object_hard_regs_node_to_forest): Ditto.
6253         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6254         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6255         Ditto.
6256         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6257         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6258         (remove_unused_object_hard_regs_nodes): Ditto.
6259         (enumerate_object_hard_regs_nodes): Ditto.
6260         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6261         (object_hard_regs_subnode_t): Ditto.
6262         (struct object_hard_regs_subnode): Ditto.
6263         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6264         (setup_object_hard_regs_subnode_index): Ditto.
6265         (get_object_hard_regs_subnodes_num): Ditto.
6266         (form_object_hard_regs_nodes_forest): Ditto.
6267         (finish_object_hard_regs_nodes_tree): Ditto.
6268         (finish_object_hard_regs_nodes_forest): Ditto.
6269         (allocnos_have_intersected_live_ranges_p): Rename to
6270         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6271         (pseudos_have_intersected_live_ranges_p): Rename to
6272         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6273         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6274         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6275         (update_copy_costs): Remove assert.  Skip cost update if the hard
6276         reg does not belong the class.
6277         (assign_hard_reg): Process only profitable hard regs.
6278         (uncolorable_allocnos_num): Make it scalar.
6279         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6280         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6281         and ira_reg_class_max_nregs.
6282         (bucket_allocno_compare_func): Check frequency first.
6283         (sort_bucket): Add compare function as a parameter.
6284         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6285         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6286         (push_allocno_to_stack): Rewrite for checking new allocno
6287         colorability.
6288         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
6289         (push_only_colorable): Pass new parameter to sort_bucket.
6290         (push_allocno_to_spill): Remove.
6291         (allocno_spill_priority_compare): Make it inline and rewrite.
6292         (splay_tree_allocate, splay_tree_free): Remove.
6293         (allocno_spill_sort_compare): New function.
6294         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
6295         build and use splay tree.  Choose first allocno in uncolorable
6296         allocno bucket to spill.  Remove setting spill cost.
6297         (all_conflicting_hard_regs): Remove.
6298         (setup_allocno_available_regs_num): Check only profitable hard
6299         regs.  Print info about hard regs nodes.
6300         (setup_allocno_left_conflicts_size): Remove.
6301         (put_allocno_into_bucket): Don't call
6302         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
6303         (improve_allocation): New.
6304         (color_allocnos): Call setup_profitable_hard_regs,
6305         form_object_hard_regs_nodes_forest, improve_allocation,
6306         finish_object_hard_regs_nodes_forest.  Setup spill cost.
6307         (print_loop_title): Use pressure classes.
6308         (color_allocnso): Ditto.
6309         (do_coloring): Remove allocation and freeing splay_tree_node_pool
6310         and allocnos_for_spilling.
6311         (ira_sort_regnos_for_alter_reg): Don't setup members
6312         {first,next}_coalesced_allocno.
6313         (color): Remove allocating and freeing removed_splay_allocno_vec.
6314         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6315         prohibited_class_mode_regs.
6317         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
6318         formatting.
6319         (update_allocno_pressure_excess_length): Use pressure classes.
6320         (inc_register_pressure, dec_register_pressure): Check for pressure
6321         class.
6322         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6323         pressure class.  Use ira_reg_class_nregs instead of
6324         ira_reg_class_max_nregs.
6325         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6326         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6327         (single_reg_class): Use ira_reg_class_nregs instead of
6328         ira_reg_class_max_nregs.
6329         (process_bb_node_lives): Use pressure classes.
6331         * ira-emit.c: Remove mentioning cover classes from the file.  Use
6332         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6333         (change_loop): Use pressure classes.
6334         (modify_move_list): Call ira_set_allocno_class instead of
6335         ira_set_allocno_cover_class.
6337         * ira-build.c: Remove mentioning cover classes from the file.  Use
6338         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6339         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
6340         ALLOCNO_UPDATED_CLASS_COST instead of
6341         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6342         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6343         (ira_create_allocno): Remove initialization of
6344         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
6345         ALLOCNO_COLORABLE_P.
6346         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6347         Update conflict regs for the objects.
6348         (create_cap_allocno): Remove assert.  Don't propagate
6349         ALLOCNO_AVAILABLE_REGS_NUM.
6350         (ira_free_allocno_costs): New function.
6351         (finish_allocno): Change a part of code into call of
6352         ira_free_allocno_costs.
6353         (low_pressure_loop_node_p): Use pressure classes.
6354         (object_range_compare_func): Don't compare classes.
6355         (setup_min_max_conflict_allocno_ids): Ditto.
6357         * loop-invariant.c: Remove mentioning cover classes from the file.
6358         Use ira_pressure_classes and ira_pressure_classes_num instead of
6359         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
6360         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6361         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6362         Use reg_allocno_class instead of reg_cover_class.
6363         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6364         STACK_REG_COVER_CLASS.
6365         (get_regno_cover_class): Rename to get_regno_pressure_class.
6366         (move_loop_invariants): Initialize and finalize regstat.
6368         * ira.c: Remove mentioning cover classes from the file.  Add
6369         comments about coloring without cover classes.  Use ALLOCNO_CLASS
6370         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6371         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6372         setup_class_subset_and_memory_move_costs.
6373         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6374         (setup_cover_and_important_classes): Rename to
6375         setup_allocno_and_important_classes.
6376         (setup_class_translate_array): New.
6377         (setup_class_translate): Call it for allocno and pressure classes.
6378         (cover_class_order): Rename to allocno_class_order.
6379         (comp_reg_classes_func): Use ira_allocno_class_translate instead
6380         of ira_class_translate.
6381         (reorder_important_classes): Set up ira_important_class_nums.
6382         (setup_reg_class_relations): Set up ira_reg_class_superunion.
6383         (print_class_cover): Rename to print_classes.  Add parameter.
6384         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6385         Print pressure classes too.
6386         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
6387         setup_reg_subclasses.
6388         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6389         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6390         (setup_prohibited_class_mode_regs): Use
6391         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6392         (clarify_prohibited_class_mode_regs): New function.
6393         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6394         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6395         (ira_init_once): Initialize them.
6396         (free_register_move_costs): Process them.
6397         (ira_init): Move calls of find_reg_classes and
6398         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6399         Call clarify_prohibited_class_mode_regs.
6400         (ira_no_alloc_reg): Remove.
6401         (too_high_register_pressure_p): Use pressure classes.
6403         * sched-deps.c: Remove mentioning cover classes from the file.
6404         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6405         ira_pressure_classes and ira_pressure_classes_num instead of
6406         ira_reg_class_cover_size and ira_reg_class_cover.
6407         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6408         sched_regno_pressure_class instead of sched_regno_cover_class.
6409         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
6410         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6412         * ira.h: Add 2010 to Copyright.
6413         (ira_no_alloc_reg): Remove external.
6414         (struct target_ira): Rename x_ira_hard_regno_cover_class,
6415         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6416         x_ira_class_translate to x_ira_hard_regno_allocno_class,
6417         x_ira_allocno_classes_num, x_ira_allocno_classes, and
6418         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
6419         x_ira_pressure_classes, x_ira_pressure_class_translate, and
6420         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
6421         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
6422         x_ira_no_alloc_regs.
6423         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6424         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6425         ira_allocno_classes_num and ira_allocno_classes.
6426         (ira_class_translate): Rename to ira_allocno_class_translate.
6427         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6428         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6429         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6430         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6431         (ira_no_alloc_regs): New.
6433         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
6434         classes from the file.  Use ALLOCNO_CLASS instead of
6435         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
6436         ALLOCNO_COVER_CLASS_COST.
6437         (regno_cover_class): Rename to regno_aclass.
6438         (record_reg_classes): Use ira_reg_class_subunion instead of
6439         ira_reg_class_union.
6440         (record_address_regs): Check overflow.
6441         (scan_one_insn): Ditto.
6442         (print_allocno_costs): Print total mem cost fore regional allocation.
6443         (print_pseudo_costs): Use REG_N_REFS.
6444         (find_costs_and_classes): Use classes intersected with them on the
6445         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
6446         ira_reg_class_union.  Use ira_allocno_class_translate and
6447         regno_aclass instead of ira_class_translate and regno_cover_class.
6448         Modify code for finding regno_aclass.  Setup preferred classes for
6449         the next pass.
6450         (setup_allocno_cover_class_and_costs): Rename to
6451         setup_allocno_class_and_costs.  Use regno_aclass instead of
6452         regno_cover_class.  Use ira_set_allocno_class instead of
6453         ira_set_allocno_cover_class.
6454         (init_costs, finish_costs): Use regno_aclass instead of
6455         regno_cover_class.
6456         (ira_costs): Use setup_allocno_class_and_costs instead of
6457         setup_allocno_cover_class_and_costs.
6458         (ira_tune_allocno_costs_and_cover_classes): Rename to
6459         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
6460         by processing objects.  Use ira_reg_class_max_nregs instead of
6461         ira_reg_class_nregs.
6463         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6465         * sched-int.h: Remove mentioning cover classes from the file.
6466         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6468         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
6469         classes from the file.
6470         (struct reg_pref): Rename coverclass into allocnoclass.
6471         (reg_cover_class): Rename to reg_allocno_class.
6473         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6475         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6477         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6479         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6481         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6483         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6485         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6487         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6489         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6491         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6493         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6494         (i386_ira_cover_classes): Ditto.
6496         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6498         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6500         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6502         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6504         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6506         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6508         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6509         (mips_ira_cover_classes): Ditto.
6511         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6513         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6515         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6517         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6519         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6521         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6522         (IRA_COVER_CLASSES_VSX): Ditto.
6524         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6525         (rs6000_ira_cover_classes): Ditto.
6527         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6529         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6531         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6533         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6535         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6537         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6539         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6541         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6543         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6545         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6547 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
6549         PR debug/48253
6550         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6551         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6552         dw_fde_unlikely_section_end_label, cold_in_std_section,
6553         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6554         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6555         fields.
6556         (output_fde): Use dw_fde_second_{begin,end} if second is
6557         true, otherwise dw_fde_{begin,end}.
6558         (output_call_frame_info): Test dw_fde_second_begin != NULL
6559         instead of dw_fde_switched_sections.
6560         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6561         fields, initialize new fields.  Initialize in_std_section
6562         unconditionally from the first partition.
6563         (dwarf2out_end_epilogue): Don't override dw_fde_end when
6564         dw_fde_second_begin is non-NULL.
6565         (dwarf2out_switch_text_section): Stop initializing removed
6566         dw_fde_struct fields, initialize new fields, initialize
6567         also dw_fde_end here.  Set dw_fde_switch_cfi even when
6568         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
6569         (struct var_loc_list_def): Add last_before_switch field.
6570         (arange_table, arange_table_allocated, arange_table_in_use,
6571         ARANGE_TABLE_INCREMENT, add_arange): Removed.
6572         (size_of_aranges): Count !in_std_section and !second_in_std_section
6573         hunks in fdes, instead of looking at arange_table_in_use.
6574         (output_aranges): Add aranges_length argument, don't call
6575         size_of_aranges here.  Instead of using aranges_table*
6576         emit ranges for fdes when !in_std_section resp.
6577         !second_in_std_section.
6578         (dw_loc_list): Break ranges crossing section switch.
6579         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
6580         use dw_fde_second_end instead of dw_fde_end as end of last range.
6581         (gen_subprogram_die): Don't call add_arange.  Use
6582         dw_fde_{begin,end} for first partition and if switched
6583         section dw_fde_second_{begin,end} for the second.
6584         (var_location_switch_text_section_1,
6585         var_location_switch_text_section): New functions.
6586         (dwarf2out_begin_function): Initialize cold_text_section even
6587         when function_section () isn't text_section.
6588         (prune_unused_types): Don't walk arange_table.
6589         (dwarf2out_finish): Don't needlessly test
6590         flag_reorder_blocks_and_partition when testing cold_text_section_used.
6591         If info_section_emitted, call size_of_aranges and if it indicates
6592         non-empty .debug_aranges, call output_aranges with the computed
6593         size.  Stop using removed dw_fde_struct fields, use
6594         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6595         for second.
6597         PR debug/48203
6598         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6599         create ENTRY_VALUE if incoming or address of incoming's MEM
6600         is a hard REG.
6601         * dwarf2out.c (mem_loc_descriptor): Don't emit
6602         DW_OP_GNU_entry_value of DW_OP_fbreg.
6603         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6604         on ENTRY_VALUE is able to find the canonical parameter VALUE.
6605         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6606         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6607         ENTRY_VALUE_EXPs.
6608         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6609         is a REG_P or MEM_P with REG_P address, compute hash directly
6610         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6611         (preserve_only_constants): Don't clear VALUES forwaring
6612         ENTRY_VALUE to some other VALUE.
6614 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
6616         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6617         instead of GEN_INT.
6619 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
6621         * cfgexpand.c (expand_gimple_cond): Always set the source location and
6622         block before expanding the statement.
6623         (expand_gimple_stmt_1): Likewise.  Set them here...
6624         (expand_gimple_stmt): ...and not here.  Tidy.
6625         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6626         unknown.
6628 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
6630         * Makefile.in: New rule for cprop.o.
6631         * gcse.c: Move constant/copy propagation to cprop.c.
6632         (compute_local_properties): Only handle expression tables.
6633         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6634         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6635         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6636         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6637         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6638         compute_cprop_data, find_used_regs, try_replace_reg,
6639         find_avail_set, cprop_jump, constprop_register, cprop_insn,
6640         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6641         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6642         find_bypass_set, reg_killed_on_edge, bypass_block,
6643         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6644         execute_rtl_cprop, pass_rtl_cprop): Move to...
6645         * cprop.c: ...here.  New file, constant/copy propagation for RTL
6646         moved from gcse.c to here with minor cleanups in duplicated code.
6648 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
6650         * config/i386/i386.c (flag_opts): Fix a typo in
6651         -mavx256-split-unaligned-store.
6653 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
6655         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6656         LIBCALL_VALUE): Remove macros.
6657         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6658         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6659         (h8300_function_value, h8300_libcall_value,
6660         h8300_function_value_regno_p): New functions.
6662 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
6664         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6666 2011-03-28  Jeff Law  <law@redhat.com>
6668         * tree-ssa-threadupdate.c (redirect_edges): Call
6669         create_edge_and_update_destination_phis as needed.
6670         (create_edge_and_update_destination_phis): Accept new BB argument.
6671         All callers updated.
6672         (thread_block): Do not update the profile when threading around
6673         intermediate blocks.
6674         (thread_single_edge): Likewise.
6675         (determine_bb_domination_status): If BB is not a successor of the
6676         loop header, return NONDOMINATING.
6677         (register_jump_thread): Note when we register a jump thread around
6678         an intermediate block.
6679         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6680         (thread_across_edge): Use it.
6682 2011-03-28  Tristan Gingold  <gingold@adacore.com>
6684         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6685         when for_return is 2.
6687 2011-03-28  Jeff Law  <law@redhat.com>
6689         * var-tracking.c (canonicalize_values_mark): Delete unused
6690         lhs assignment.
6691         (canonicalize_values_star, set_variable_part): Likewise.
6692         (clobber_variable_part, delete_variable_part): Likewise.
6694 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
6696         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6698 2011-03-28  Martin Jambor  <mjambor@suse.cz>
6700         * tree-inline.c (expand_call_inline): Do not check that destination
6701         node is analyzed.
6702         (optimize_inline_calls): Assert that destination node is analyzed.
6703         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6704         not call tree_lowering_passes.
6705         * cgraph.h (cgraph_analyze_function): Declare.
6706         * cgraphunit.c (cgraph_analyze_function): Make public.
6708 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
6710         * config/sparc/sparc-opts.h: New.
6711         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6712         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6713         (sparc_option_override): Store processor_type enumeration rather
6714         than string in cpu_default.  Remove name and enumeration from
6715         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
6716         without using sparc_select.  Use target_flags_explicit instead of
6717         fpu_option_set.
6718         * config/sparc/sparc.h (enum processor_type): Move to
6719         sparc-opts.h.
6720         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6721         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6722         HeaderInclude entry.
6723         (mcpu=, mtune=): Use Var and Enum.
6724         (sparc_processor_type): New Enum and EnumValue entries.
6726 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6727             Iain Sandoe  <iains@gcc.gnu.org>
6729         PR target/48245
6730         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6732 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
6734         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6735         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6736         Insert new statements at it in lieu of STMT.
6737         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6738         * tree-vect-stmts.c (vectorizable_store): Likewise.
6739         (vectorizable_load): Likewise.
6741 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
6743         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6744         (divtf3): Ditto.
6745         (multf3): Ditto.
6746         (subtf3): Ditto.
6748 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6750         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6751         unaligned 256bit load/store.
6752         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6753         (*avx_movdqu<avxmodesuffix>): Likewise.
6755 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6757         PR target/48288
6758         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6759         * config/pa/pa.md (iordi3): Use new predicate in expander.
6760         (iorsi3): Likewise.
6762 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
6764         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6765         FUNCTION_VALUE_REGNO_P): Remove macros.
6766         * config/mips/mips-protos.h (mips_function_value): Remove.
6767         * config/mips/mips.c (mips_function_value): Rename to...
6768         (mips_function_value_1): ... this. Make static.  Handle receiving
6769         the function type in 'fn_decl_or_type' argument.
6770         (mips_function_value, mips_libcall_value,
6771         mips_function_value_regno_p): New function.
6772         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6773         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6775 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6777         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
6778         and -mavx256-split-unaligned-store.
6779         (ix86_option_override_internal): Split 32-byte AVX unaligned
6780         load/store by default.
6781         (ix86_avx256_split_vector_move_misalign): New.
6782         (ix86_expand_vector_move_misalign): Use it.
6784         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
6785         -mavx256-split-unaligned-store.
6787         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
6788         256bit load/store.  Generate unaligned store on misaligned memory
6789         operand.
6790         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
6791         256bit load/store.
6792         (*avx_movdqu<avxmodesuffix>): Likewise.
6794         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
6795         -mavx256-split-unaligned-store.
6797 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
6799         PR target/38598
6800         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
6801         Update commentary.
6803 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
6805         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
6806         opno arguments with an expand_operand.  Use create_input_operand.
6807         (mips_prepare_builtin_target): Delete.
6808         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
6809         functions.
6810         (mips_expand_builtin_direct): Use create_output_operand and
6811         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
6812         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
6813         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
6815 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
6817         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
6818         function.
6819         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6821 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
6823         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
6824         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
6825         basic blocks and call commit_edge_insertions directly.
6826         (fixup_abnormal_edges): Move from here to...
6827         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
6828         on the edges and return whether some have actually been inserted.
6829         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
6830         compensation code.
6832 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
6834         PR rtl-optimization/48144
6835         * sel-sched-ir.c (merge_history_vect): Factor out from ...
6836         (merge_expr_data): ... here.
6837         (av_set_intersect): Rename to av_set_code_motion_filter.
6838         Update all callers.  Call merge_history_vect when an expression
6839         is found in both sets.
6840         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
6842 2011-03-26  Alan Modra  <amodra@gmail.com>
6844         * config/rs6000/predicates.md (word_offset_memref_op): Handle
6845         cmodel medium addresses.
6846         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
6847         64-bit gpr loads and stores.
6848         (rs6000_secondary_reload_ppc64): New function.
6849         * config/rs6000/rs6000-protos.h: Declare it.
6850         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
6852 2011-03-26  Alan Modra  <amodra@gmail.com>
6854         PR target/47487
6855         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
6856         GNU Go in traceback table.
6858 2011-03-25  Richard Henderson  <rth@redhat.com>
6860         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
6861         if there are exactly 6 operands.
6862         (set_storage_via_setmem): Similarly.
6864 2011-03-25  Kai Tietz  <ktietz@redhat.com>
6866         * collect2.c (write_c_file_stat): Handle backslash
6867         as right-hand directory separator.
6868         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
6869         checking just for slash.
6870         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
6871         instead of checking for trailing slash.
6872         * gcc.c (record_temp_file): Use filename_cmp instead
6873         of strcmp.
6874         (do_spec_1): Likewise.
6875         (replace_outfile_spec_function): Likewise.
6876         (is_directory): Use filename_ncmp instead of strncmp.
6877         (print_multilib_info): Likewise.
6878         * gcov.c (find_source): Use filename_cmp instead
6879         instead of strcmp.
6880         (make_gcov_file_name): Fix order of slash/backslash
6881         checks.
6882         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
6883         (add_standard_paths): Likewise.
6884         * mips-tfile.c (saber_stop): Handle backslash.
6885         * prefix.c (update_path): Use filename_ncmp instead of
6886         strncmp.
6887         * profile.c (output_location): Use filename_cmp instead
6888         of strcmp.
6889         * read-md.c (handle_toplevel_file): Handle backslash.
6890         * tlink.c (frob_extension):  Likewise.
6891         * tree-cfg.c (same_line_p): Use filename_cmp instead of
6892         strcmp.
6893         * tree-dump.c (dequeue_and_dump): Handle backslash.
6894         * tree.c (get_file_function_name): Likewise.
6895         * gengtype.c (read_input_list): Likewise.
6896         (get_file_realbasename): Likewise.
6897         (get_output_file_with_visibility): Use filename_cmp
6898         instead of strcmp.
6900 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
6902         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
6903         case to VFPv1.
6905 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
6907         * fold-const.c (expr_location_or): New function.
6908         (fold_truth_not_expr): Call it.
6910 2011-03-25  Jeff Law  <law@redhat.com>
6912         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
6913         va_end.
6914         * c-family/c-common.c (def_fn_type): Likewise.
6915         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
6916         * emit-rtl.c (gen_rtvec): Likewise.
6917         * lto/lto-lang.c (def_fn_type): Likewise.
6919 2011-03-25  Richard Guenther  <rguenther@suse.de>
6921         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
6922         also generate copies.
6923         (fini_copy_prop): Handle constant values properly.
6925 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
6927         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
6928         mode size instead of bitsize with DWARF2_ADDR_SIZE.
6929         (hash_loc_operands, compare_loc_operands): Handle
6930         DW_OP_GNU_entry_value.
6932 2011-03-25  Kai Tietz  <ktietz@redhat.com>
6934         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
6935         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
6936         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
6937         comment and use macro TARGET_64BIT_MS_ABI instead.
6938         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
6939         and change default behavior for 32-bit MS_ABI.
6940         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
6941         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
6942         32-bit, too.
6943         (ix86_cfun_abi): Likewise.
6944         (ix86_maybe_switch_abi): Adjust comment.
6945         (init_cumulative_args): Check for bit-ness in MS_ABI case.
6946         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
6947         instead of checking for SYSV_ABI.
6948         (ix86_nsaved_sseregs): Likewise.
6949         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
6950         to 16 bytes.
6951         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
6952         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
6953         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
6954         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
6955         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
6957 2011-03-25  Richard Guenther  <rguenther@suse.de>
6959         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
6960         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6961         (verify_gimple): Remove.
6962         * tree-cfg.c (verify_gimple_call): Merge verification
6963         from verify_stmts.
6964         (verify_gimple_phi): Merge verification from verify_stmts.
6965         (verify_gimple_label): New function.
6966         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
6967         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6968         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
6969         (verify_stmts): Rename to verify_gimple_in_cfg.
6970         (verify_gimple_in_cfg): New function.
6971         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
6972         * tree-ssa.c (verify_ssa): Likewise.
6973         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
6975 2011-03-25  Richard Guenther  <rguenther@suse.de>
6977         * passes.c (init_optimization_passes): Add FRE pass after
6978         early SRA.
6980 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
6981             Andrew Stubbs  <ams@codesourcery.com>
6983         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
6984         for Cortex-A8.
6985         (arm_movdi_vfp_cortexa8): New pattern.
6986         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
6987         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
6988         instructions when tuning for Cortex-A8.  Set attribute "arch".
6989         * config/arm/arm.md: Move include arm-tune.md up a bit.
6990         (define_attr "arch"): Add "onlya8" and "nota8" values.
6991         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
6993 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
6995         PR bootstrap/48282
6996         Revert:
6997         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
6999         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7000         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7001         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7002         * passes.c (init_optimization_passes): Move
7003         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7005 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7007         * c-typeck.c (comptypes_internal): Replace target
7008         hook call of comp_type_attributes by version in tree.c file.
7009         * gimple.c (gimple_types_compatible_p_1): Likewise.
7010         * tree-ssa.c (useless_type_conversion_p): Likewise.
7011         * tree.c (build_type_attribute_qual_variant): Likewise.
7012         (attribute_value_equal): New static helper function.
7013         (comp_type_attributes): New function.
7014         (merge_attributes): Use attribute_value_equal for comparison.
7015         (attribute_list_contained): Likewise.
7016         * tree.h (comp_type_attributes): New prototype.
7018 2011-03-25  Richard Guenther  <rguenther@suse.de>
7020         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7021         of complex types at -O0.
7022         (verify_gimple_assign_binary): Likewise.
7023         (verify_gimple_assign_ternary): Likewise.
7025 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7027         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7028         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7030 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7032         PR debug/48041
7033         * dwarf2out.c (output_abbrev_section): Only write table when
7034         abbrev_die_table_in_use > 1.
7036 2011-02-24  Richard Henderson  <rth@redhat.com>
7038         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7039         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7040         (alpha_expand_unaligned_load_words): Use extql.
7041         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7042         (emit_insxl): Handle all modes for consistency.
7044 2011-02-24  Richard Henderson  <rth@redhat.com>
7046         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7047         (alpha_expand_unaligned_load): Likewise.
7048         (alpha_expand_unaligned_store): Likewise.
7049         (alpha_expand_unaligned_load_words): Likewise.
7050         (alpha_expand_unaligned_store_words): Likewise.
7051         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7052         (alpha_split_lock_test_and_set_12): Likewise.
7053         (print_operand, alpha_fold_builtin_extxx): Likewise.
7054         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7055         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7056         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7057         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7058         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7059         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7060         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7061         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7062         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7063         (extwl, extll, extql): Similarly.
7064         (inswh, inslh, insqh): Similarly.
7065         (mskbl, mskwl, mskll, mskql): Similarly.
7066         (mskwh, msklh, mskqh): Similarly.
7068 2011-02-24  Richard Henderson  <rth@redhat.com>
7070         * config/alpha/alpha.md (attribute isa): Add er, ner.
7071         (attribute enabled): Handle them.
7072         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7074 2011-02-24  Richard Henderson  <rth@redhat.com>
7076         * config/alpha/alpha.md (attribute isa): Add vms.
7077         (attribute enabled): Handle it.
7078         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7079         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7080         (*movtf): Rename from *movtf_internal for consistency.
7081         (*movsi): Merge with *movsi_nt_vms.
7082         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7083         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7084         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7085         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7087 2011-02-24  Richard Henderson  <rth@redhat.com>
7089         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7090         (extendqisi2, extendhisi2): Likewise.
7091         (extendqidi2): Simplify BWX/non-BWX expansions.
7092         (extendhidi2): Similarly.
7094 2011-02-24  Richard Henderson  <rth@redhat.com>
7096         * config/alpha/alpha.md (attribute isa): New.
7097         (attribute enabled): New.
7098         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7099         (zero_extendqisi2, zero_extendqidi2): Similarly.
7100         (zero_extendhisi2, zero_extendhidi2): Similarly.
7101         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7103 2011-02-24  Richard Henderson  <rth@redhat.com>
7105         * config/alpha/predicates.md (input_operand): Revert last change;
7106         update comment to mention 32-bit VMS rather than Windows.
7108 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7110         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7111         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7112         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7113         * passes.c (init_optimization_passes): Move
7114         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7116 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7118         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7120 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7122         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7123         correctly.
7125 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7127         PR debug/48204
7128         * simplify-rtx.c (simplify_const_unary_operation): Call
7129         real_convert when changing mode class with FLOAT_EXTEND.
7131 2011-03-24  Nick Clifton  <nickc@redhat.com>
7133         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7134         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7135         * config/rx/rx.c (rx_option_override): Set align_jumps,
7136         align_loops and align_labels if not set by the user.
7137         (rx_align_for_label): New function.
7138         (rx_max_skip_for_label): New function.
7139         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7140         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7141         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7142         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7143         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7145 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7147         PR rtl-optimization/48263
7148         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7149         and original commutative_p handling.  Use maybe_gen_insn.
7151 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7153         * reload.c (find_reloads_subreg_address): Add address_reloaded
7154         parameter and return true there if the full address has been
7155         reloaded.
7156         (find_reloads_toplev): Pass address_reloaded flag.
7157         (find_reloads_address_1): Don't use address_reloaded parameter.
7159 2011-03-24  Jeff Law  <law@redhat.com>
7161         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7162         unused variable "ann".
7163         (remove_unused_locals): Likewise.
7165         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7166         statement.
7168         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7169         after it is freed.
7171 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7173         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7174         for invalid symbolic addresses.
7175         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7176         larl operands.
7178 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7180         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7181         the argument in calls to fold_truth_not_expr.
7183 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7185         * tree.c (record_node_allocation_statistics): New function.
7186         (make_node_stat, copy_node_stat, build_string): Call it.
7187         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7188         (build1_stat, build_omp_clause): Likewise.
7190 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7192         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7193         last commit.
7195 2011-03-24  Richard Guenther  <rguenther@suse.de>
7197         PR tree-optimization/48271
7198         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7199         blocks that still exist.
7201 2011-03-24  Richard Guenther  <rguenther@suse.de>
7203         PR tree-optimization/48270
7204         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7205         not free datarefs before ddrs.
7207 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7209         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7210         from the address built for a reference with variable offset.
7212 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7214         PR target/48237
7215         * config/i386/i386.md (*movdf_internal_rex64): Do not split
7216         alternatives that can be handled with movq or movabsq insn.
7217         (*movdf_internal): Disable for !TARGET_64BIT.
7218         (*movdf_internal_nointeger): Ditto.
7219         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7221 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7223         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7224         (FUNCTION_ARG_ADVANCE): Likewise.
7225         * tm.texi.in: Change references to them to hook references.
7226         * tm.texi: Regenerate.
7227         * targhooks.c (default_function_arg): Eliminate check for target macro.
7228         (default_function_incoming_arg): Likewise.
7229         (default_function_arg_advance): Likewise.
7230         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7231         (function_arg_advance): Likewise.
7232         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7234 2011-03-24  Richard Guenther  <rguenther@suse.de>
7236         PR middle-end/48269
7237         * tree-object-size.c (addr_object_size): Do not double-account
7238         for MEM_REF offsets.
7240 2011-03-24  Diego Novillo  <dnovillo@google.com>
7242         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7243         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7244         (lto_input_data_block): Move from lto-opts.c.  Make extern.
7245         Update all users.
7246         (lto_input_string): Rename from input_string.  Make extern.
7247         Update all users.
7248         * lto-streamer-out.c (lto_output_string_with_length): Rename from
7249         output_string_with_length.
7250         Output 0 to indicate a non-NULL string.  Update all callers to
7251         not emit 0.
7252         (lto_output_string): Rename from output_string.  Make extern.
7253         Update all users.
7254         (lto_output_decl_state_streams): Make extern.
7255         (lto_output_decl_state_refs): Make extern.
7256         * lto-streamer.h (lto_input_string): Declare.
7257         (lto_input_data_block): Declare.
7258         (lto_output_string): Declare.
7259         (lto_output_string_with_length): Declare.
7260         (lto_output_decl_state_streams): Declare.
7261         (lto_output_decl_state_refs): Declare.
7263 2011-03-24  Richard Guenther  <rguenther@suse.de>
7265         PR tree-optimization/46562
7266         * tree.c (build_invariant_address): New function.
7267         * tree.h (build_invariant_address): Declare.
7268         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7269         a renamed function moved ...
7270         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7271         Take valueization callback parameter.
7272         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7273         * gimple-fold.h: New file.
7274         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7275         (ccp_fold, fold_const_aggregate_ref,
7276         fold_ctor_reference, fold_nonarray_ctor_reference,
7277         fold_array_ctor_reference, fold_string_cst_ctor_reference,
7278         get_base_constructor): Move ...
7279         * gimple-fold.c: ... here.
7280         (gimple_fold_stmt_to_constant_1): New function
7281         split out from ccp_fold.  Take a valueization callback parameter.
7282         Valueize all operands.
7283         (gimple_fold_stmt_to_constant): New wrapper function.
7284         (fold_const_aggregate_ref_1): New function split out from
7285         fold_const_aggregate_ref.  Take a valueization callback parameter.
7286         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7287         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7288         invariant POINTER_PLUS_EXPRs to invariant form.
7289         (vn_valueize): New function.
7290         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7291         * tree-vrp.c (vrp_valueize): New function.
7292         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7293         to fold statements to constants.
7294         * tree-ssa-pre.c (eliminate): Properly guard propagation of
7295         function declarations.
7296         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7297         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7299 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7301         * config/h8300/predicates.md (jump_address_operand): Fix register
7302         mode check.
7304 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
7306         * doc/invoke.texi (max-stores-to-sink): Document.
7307         * params.h (MAX_STORES_TO_SINK): Define.
7308         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7309         if either vectorization or if-conversion is disabled.
7310         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7311         tree-vect-data-refs.c vect_equal_offsets.
7312         (dr_equal_offsets_p): New function.
7313         (find_data_references_in_bb): Remove static.
7314         * tree-data-ref.h (find_data_references_in_bb): Declare.
7315         (dr_equal_offsets_p): Likewise.
7316         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7317         (vect_drs_dependent_in_basic_block): Update calls to
7318         vect_equal_offsets.
7319         (vect_check_interleaving): Likewise.
7320         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7321         (cond_if_else_store_replacement): Rename to...
7322         (cond_if_else_store_replacement_1): ... this.  Change arguments and
7323         documentation.
7324         (cond_if_else_store_replacement): New function.
7325         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7326         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7328 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
7330         PR target/46934
7331         * config/arm/arm.md (casesi): Use the gen_int_mode() function
7332         to subtract lower bound instead of GEN_INT().
7334 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
7336         PR other/48179
7337         PR other/48221
7338         PR other/48234
7339         * doc/extend.texi (Alignment): Move section to match order in TOC.
7340         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7341         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7343 2011-03-23  Jeff Law  <law@redhat.com>
7345         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7346         before removing the edge.
7348         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7349         it may have been freed by redirect_branch_edge or
7350         redirect_edge_succ_nodup.
7352 2011-03-23  Richard Guenther  <rguenther@suse.de>
7354         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7355         (check_va_list_escapes): Likewise.
7356         (check_all_va_list_escapes): Likewise.
7358 2011-03-23  Richard Guenther  <rguenther@suse.de>
7360         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7361         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7362         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7363         (alias.o): Likewise.
7364         (ipa-type-escape.o): Remove.
7365         (ipa-struct-reorg.o): Likewise.
7366         (GTFILES): Remove ipa-struct-reorg.c.
7367         * alias.c: Do not include ipa-type-escape.h.
7368         * tree-ssa-alias.c: Likewise.
7369         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7370         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7371         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7372         and ipa-type-escape passes.
7373         * tree-pass.h (pass_ipa_type_escape): Remove.
7374         (pass_ipa_struct_reorg): Likewise.
7375         * ipa-struct-reorg.h: Remove.
7376         * ipa-struct-reorg.c: Likewise.
7377         * ipa-type-escape.h: Likewise.
7378         * ipa-type-escape.c: Likewise.
7379         * doc/invoke.texi (-fipa-struct-reorg): Remove.
7380         (--param struct-reorg-cold-struct-ratio): Likewise.
7381         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7382         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7383         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7385 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7387         * config/s390/2084.md: Enable all insn reservations also for z9_ec
7388         cpu attribute value.
7389         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7390         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7391         * config/s390/s390.c (processor_flags_table): New constant array.
7392         (s390_handle_arch_option): Remove.
7393         (s390_handle_option): Remove s390_handle_arch_option invocations
7394         and OPT_mwarn_framesize_ handling.
7395         (s390_option_override): Remove s390_handle_arch_option invocation.
7396         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7397         warnings.
7398         * config/s390/s390.md (cpu attribute): Add z9_ec value.
7399         * config/s390/s390.opt (s390_tune, s390_arch)
7400         (march=): Replace s390_arch_option enum and values with
7401         processor_type.  Set variable name to s390_arch.  Set
7402         initialization value.
7403         (mtune=): Replace s390_arch_option with processor_type.  Set
7404         variable name to s390_tune.  Set initialization value.
7406 2011-03-23  Julian Brown  <julian@codesourcery.com>
7408         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7409         accesses which are not naturally aligned.
7411 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7413         PR target/47553
7414         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7416 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7418         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7419         parameter from "int" to "enum insn_code".
7420         (expand_operand_type): New enum.
7421         (expand_operand): New structure.
7422         (create_expand_operand): New function.
7423         (create_fixed_operand, create_output_operand): Likewise
7424         (create_input_operand, create_convert_operand_to): Likewise.
7425         (create_convert_operand_from, create_address_operand): Likewise.
7426         (create_integer_operand): Likewise.
7427         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7428         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7429         (expand_insn, expand_jump_insn): Likewise.
7430         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7431         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7432         (expand_movstr, expand_builtin___clear_cache): Likewise.
7433         (expand_builtin_lock_release): Likewise.
7434         * explow.c (allocate_dynamic_stack_space): Likewise.
7435         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
7436         and use the default handling in that case.
7437         * expmed.c (check_predicate_volatile_ok): Delete.
7438         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7439         (emit_cstore): Likewise.
7440         * expr.c (emit_block_move_via_movmem): Likewise.
7441         (set_storage_via_setmem, expand_assignment): Likewise.
7442         (emit_storent_insn, try_casesi): Likewise.
7443         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
7444         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7445         (expand_vec_shift_expr, expand_binop_directly): Likewise.
7446         (expand_twoval_unop, expand_twoval_binop): Likewise.
7447         (expand_unop_direct, emit_indirect_jump): Likewise.
7448         (emit_conditional_move, vector_compare_rtx): Likewise.
7449         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7450         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7451         (expand_sync_lock_test_and_set): Likewise.
7452         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
7453         (emit_unop_insn): Likewise.
7454         (expand_copysign_absneg): Change icode to an insn_code.
7455         (create_convert_operand_from_type): New function.
7456         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7457         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7458         (expand_insn, expand_jump_insn): Likewise.
7459         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7460         than const_int_operand for operand 2.
7462 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7464         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7465         if possible.
7467 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7469         * emit-rtl.c (emit_pattern_before_noloc): New function.
7470         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7471         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7472         (emit_pattern_after_noloc): New function.
7473         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7474         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7476 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7478         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7479         (__ffsDI2): Likewise.
7481 2011-03-22  Richard Henderson  <rth@redhat.com>
7483         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7484         of !TARGET_ABI_OPEN_VMS.
7485         (alpha_trampoline_init, alpha_start_function): Likewise.
7486         (alpha_expand_epilogue, alpha_file_start): Likewise.
7487         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7488         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7489         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7490         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7491         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7493 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7495         * config/s390/s390-opts.h: New.
7496         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7497         s390_arch_flags, s390_warn_framesize, s390_stack_size,
7498         s390_stack_guard): Remove.
7499         (s390_handle_arch_option): Return void.  Take enum
7500         s390_arch_option value instead of string and searching array.
7501         (s390_handle_option): Don't assert that global structures are in
7502         use.  Access variables via opts pointer.  Use error_at.  Don't use
7503         sscanf for -mstack-guard= or -mstack-size=.  Update call to
7504         s390_handle_arch_option.
7505         (s390_option_override): Update call to s390_handle_arch_option.
7506         (s390_emit_prologue): Use %d format for s390_stack_size in
7507         diagnostic.  Use %wd for HOST_WIDE_INT.
7508         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7509         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7510         * config/s390/s390.opt (config/s390/s390-opts.h): New
7511         HeaderInclude entry.
7512         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7513         s390_arch_flags, s390_warn_framesize): New Variable entries.
7514         (s390_arch_option): New Enum and EnumValue entries.
7515         (march=): Use Enum instead of Var.
7516         (mstack-guard=, mstack-size=): Use UInteger and Var.
7517         (mtune=): Use Enum.
7519 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7521         * config/score/score.c (score_handle_option): Don't assert that
7522         global structures are in use.  Access target_flags via opts
7523         pointer.  Use value of -march= option to determine target_flags
7524         settings.
7525         * config/score/score.opt (march=): Use Enum.
7526         (score_arch): New Enum and EnumValue entries.
7528 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7530         * config/mep/mep.c (option_mtiny_specified): Remove.
7531         (mep_option_override): Move register handling for -mivc2 from
7532         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
7533         instead of option_mtiny_specified.
7534         (mep_handle_option): Access target_flags via opts pointer.  Don't
7535         assert that global structures are in use.  Defer part of -mivc2
7536         handling and move it to mep_option_override.
7537         * config/mep/mep.opt (IVC2): New Mask entry.
7538         (mivc2): Use Var and Defer instead of Mask.
7540 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7542         * config/v850/v850-opts.h: New.
7543         * config/v850/v850.c (small_memory): Replace with
7544         small_memory_physical_max array.  Make that array static const.
7545         (v850_handle_memory_option): Take integer value of argument.  Take
7546         gcc_options pointer, option text and location.  Return void.
7547         Update for changes to small memory structures.
7548         (v850_handle_option): Access target_flags via opts pointer.  Don't
7549         assert that global structures are in use.  Update calls to
7550         v850_handle_memory_option.
7551         (v850_encode_data_area): Update references to small memory settings.
7552         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7553         (enum small_memory_type): Move to v850-opts.h.
7554         * config/v850/v850.opt (config/v850/v850-opts.h): New
7555         HeaderInclude entry.
7556         (small_memory_max): New Variable entry.
7557         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
7558         (mtda, mzda): Likewise.
7560 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7562         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7563         pointer.  Don't assert that global structures are in use.
7565 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7567         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7568         via opts pointer.  Don't assert that global structures are in use.
7570 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7572         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7573         (munix=93): Use Var.
7574         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7575         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7576         * config/pa/pa-opts.h: New.
7577         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7578         (pa_handle_option): Don't assert that global structures are in
7579         use.  Access target_flags via opts pointer.  Don't handle
7580         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7581         OPT_munix_98 here.
7582         (pa_option_override): Handle deferred OPT_mfixed_range_.
7584 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7586         * config/mn10300/mn10300-opts.h: New.
7587         * config/mn10300/mn10300.c (mn10300_processor,
7588         mn10300_tune_string): Remove.
7589         (mn10300_handle_option): Don't assert that global structures are
7590         in use.  Access mn10300_processor via opts pointer.  Don't handle
7591         OPT_mtune_ here.
7592         * config/mn10300/mn10300.h (enum processor_type): Move to
7593         mn10300-opts.h.
7594         (mn10300_processor): Remove.
7595         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7596         HeaderInclude entry.
7597         (mn10300_processor): New Variable entry.
7598         (mtune=): Use Var.
7600 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7602         * config/microblaze/microblaze.c: Don't include opts.h.
7603         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7604         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7605         (mno-clearbss): Use Var and Warn.
7607 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7609         * config/m32r/m32r-opts.h: New.
7610         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7611         (m32r_handle_option): Don't assert that global structures are in
7612         use.  Access target_flags and m32r_cache_flush_func via opts
7613         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
7614         OPT_mno_flush_trap here.
7615         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7616         include of m32r-opts.h.
7617         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7618         HeaderInclude entry.
7619         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7620         (mmodel=): Use Enum and Var.
7621         (m32r_model): New Enum and EnumValue entries.
7622         (mno-flush-trap): Use Var.
7623         (msdata=): Use Enum and Var.
7624         (m32r_sdata): New Enum and EnumValue entries.
7626 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7628         * config/m32c/m32c.c: Don't include opts.h.
7629         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7630         m32c_handle_option): Remove.
7631         (m32c_option_override): Check global_options_set.x_target_memregs
7632         instead of target_memregs_set.
7633         * config/m32c/m32c.h (target_memregs): Remove.
7634         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7635         variable.
7637 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7639         * config/iq2000/iq2000-opts.h: New.
7640         * config/iq2000/iq2000.c: Don't include opts.h.
7641         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7642         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7643         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7644         HeaderInclude entry.
7645         (iq2000_tune): New Variable entry.
7646         (march=): Add comment.  Use Enum.
7647         (iq2000_arch): New Enum and EnumValue entries.
7648         (mcpu=): Use Enum and Var.
7649         (iq2000_tune): New Enum and EnumValue entries.
7651 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7653         * config/ia64/ia64-opts.h: New.
7654         * config/ia64/ia64.c (ia64_tune): Remove.
7655         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7656         here.  Use error_at.
7657         (ia64_option_override): Handle deferred OPT_mfixed_range_.
7658         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7659         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7660         HeaderInclude entry.
7661         (ia64_tune): New Variable entry.
7662         (mfixed-range=): Use Defer and Var.
7663         (mtune=): Use Enum and Var.
7664         (ia64_tune): New Enum and EnumValue entries.
7666 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7668         * config/frv/frv-opts.h: New.
7669         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7670         frv-opts.h.
7671         (frv_cpu_type): Remove.
7672         * config/frv/frv.c: Don't include opts.h.
7673         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7674         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7675         (frv_cpu_type): New Variable entry.
7676         (frv_cpu): New Enum and EnumValue entries.
7678 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7680         * config/cris/cris.c (cris_handle_option): Access target_flags via
7681         opts pointer.  Don't assert that global structures are in use.
7682         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7683         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7685 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7687         * config/bfin/bfin-opts.h: New.
7688         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7689         bfin_si_revision, bfin_workarounds): Remove.
7690         (bfin_cpus): Make static const.
7691         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7692         not bfin_lib_id_given.
7693         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
7694         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7695         pointer. Use error_at.  Don't assert that global structures are in use.
7696         * config/bfin/bfin.h: Include bfin-opts.h.
7697         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7698         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7699         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7700         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7701         entries.
7703 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7705         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7706         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7707         or -msoft-float here.
7708         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7709         -msoft-float and -mhard-float.
7710         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7711         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7712         msoft-float.
7713         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7714         -msoft-float.
7715         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7716         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7717         not mhard-float.
7718         (LIBGCC_SPEC): Don't handle -msoft-float.
7719         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7720         -mhard-float.
7721         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7722         msoft-float.
7723         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7724         -mfloat-abi=*, not -msoft-float and -mhard-float.
7725         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7726         -msoft-float.
7727         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7728         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7729         mhard-float and msoft-float.
7730         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7731         mfloat-abi=soft in comments, not mhard-float and msoft-float.
7732         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7733         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7734         mhard-float.
7735         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7736         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7737         msoft-float.
7738         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7739         not mhard-float.
7740         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7741         not msoft-float.
7743 2011-03-22  Richard Henderson  <rth@redhat.com>
7745         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7746         TARGET_ABI_WINDOWS_NT.
7747         (alpha_output_function_end_prologue): Likewise.
7748         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7749         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7750         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7751         (trap, *movsi_nt_vms): Likewise.
7752         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7753         (*tablejump_osf_nt_internal): Remove.
7754         * config/alpha/predicates.md (input_operand): Only test Pmode.
7756 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7758         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7759         via opts pointer.  Use error_at.  Don't assert that global
7760         structures are in use.
7762 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7764         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7765         (ix86_handle_option): Access ix86_isa_flags and
7766         ix86_isa_flags_explicit via opts pointer.  Don't assert that
7767         global structures are in use.
7768         (ix86_function_specific_save, ix86_function_specific_restore):
7769         Update ix86_isa_flags_explicit field name.
7770         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
7771         (ix86_isa_flags_explicit): Rename TargetSave entry to
7772         x_ix86_isa_flags_explicit.
7774 2011-03-22  Richard Henderson  <rth@redhat.com>
7776         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
7777         (alpha_option_override, direct_return): Likewise.
7778         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
7779         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
7780         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
7781         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7782         (alpha_expand_epilogue, alpha_end_function): Likewise.
7783         (alpha_init_libfuncs): Likewise.
7784         (struct machine_function): Remove unicosmk members.
7785         (print_operand) ['t']: Remove.
7786         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
7787         unicosmk_output_module_name, unicosmk_output_common,
7788         current_section_align, unicosmk_output_text_section_asm_op,
7789         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
7790         unicosmk_section_type_flags, unicosmk_unique_section,
7791         unicosmk_asm_named_section, unicosmk_insert_attributes,
7792         unicosmk_output_align, unicosmk_defer_case_vector,
7793         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
7794         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
7795         unicosmk_output_ssib, unicosmk_add_call_info_word,
7796         unicosmk_extern_head, unicosmk_output_default_externs,
7797         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
7798         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
7799         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
7800         * config/alpha/alpha-protos.h: Update.
7801         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
7802         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
7803         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
7804         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
7805         (*mulsi_se, mulvsi3): Likewise.
7806         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
7807         (*divmodsi_internal, call, call_value, realign): Likewise.
7808         (moddi3, umoddi3): Likewise; remove duplicate expander.
7809         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
7810         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
7811         (*movdi_nofix): Remove r/U alternative.
7812         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
7813         * config/alpha/constraints.md ("U"): Remove.
7814         * config/alpha/predicates.md (call_operand"): Don't test
7815         TARGET_ABI_UNICOSMK.
7817 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7819         * target.def (handle_option): Take gcc_options and
7820         cl_decoded_option pointers and location_t.
7821         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
7822         * doc/tm.texi: Regenerate.
7823         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
7824         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
7825         * lto-opts.c (lto_reissue_options): Generate option structure for
7826         targetm.handle_option call.
7827         * opts.c (target_handle_option): Update call to
7828         targetm.handle_option.  Remove assertions about values now passed
7829         down to hook.
7830         * targhooks.c (default_target_handle_option): New.
7831         * targhooks.h (default_target_handle_option): Declare.
7832         * config/alpha/alpha.c: Include opts.h.
7833         (alpha_handle_option): Update to new hook interface.
7834         * config/arm/arm.c: Include opts.h.
7835         (arm_handle_option): Update to new hook interface.
7836         * config/arm/t-arm (arm.o): Update dependencies.
7837         * config/bfin/bfin.c: Include opts.h.
7838         (bfin_handle_option): Update to new hook interface.
7839         * config/cris/cris.c: Include opts.h.
7840         (cris_handle_option): Update to new hook interface.
7841         * config/frv/frv.c: Include opts.h.
7842         (frv_handle_option): Update to new hook interface.
7843         * config/i386/i386.c: Include opts.h.
7844         (ix86_handle_option): Update to new hook interface.
7845         (ix86_valid_target_attribute_inner_p): Generate option structure
7846         for call to ix86_handle_option.
7847         * config/i386/t-i386 (i386.o): Update dependencies.
7848         * config/ia64/ia64.c: Include opts.h.
7849         (ia64_handle_option): Update to new hook interface.
7850         * config/ia64/t-ia64 (ia64.o): Update dependencies.
7851         * config/iq2000/iq2000.c: Include opts.h.
7852         (iq2000_handle_option): Update to new hook interface.
7853         * config/m32c/m32c.c: Include opts.h.
7854         (m32c_handle_option): Update to new hook interface.
7855         * config/m32r/m32r.c: Include opts.h.
7856         (m32r_handle_option): Update to new hook interface.
7857         * config/m68k/m68k.c: Include opts.h.
7858         (m68k_handle_option): Update to new hook interface.
7859         * config/mep/mep.c: Include opts.h.
7860         (mep_handle_option): Update to new hook interface.
7861         * config/microblaze/microblaze.c: Include opts.h.
7862         (microblaze_handle_option): Update to new hook interface.
7863         * config/mips/mips.c: Include opts.h.
7864         (mips_handle_option): Update to new hook interface.
7865         * config/mn10300/mn10300.c: Include opts.h.
7866         (mn10300_handle_option): Update to new hook interface.
7867         * config/pa/pa.c: Include opts.h.
7868         (pa_handle_option): Update to new hook interface.
7869         * config/pdp11/pdp11.c: Include opts.h.
7870         (pdp11_handle_option): Update to new hook interface.
7871         * config/rs6000/rs6000.c: Include opts.h.
7872         (rs6000_handle_option): Update to new hook interface.
7873         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
7874         * config/rx/rx.c: Include opts.h.
7875         (rx_handle_option): Update to new hook interface.
7876         * config/s390/s390.c: Include opts.h.
7877         (s390_handle_option): Update to new hook interface.
7878         * config/score/score.c: Include opts.h.
7879         (score_handle_option): Update to new hook interface.
7880         * config/sh/sh.c: Include opts.h.
7881         (sh_handle_option): Update to new hook interface.
7882         * config/sparc/sparc.c: Include opts.h.
7883         (sparc_handle_option): Update to new hook interface.
7884         * config/v850/v850.c: Include opts.h.
7885         (v850_handle_option): Update to new hook interface.
7887 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7889         * gcc.c (driver_unknown_option_callback): Only permit and save
7890         unknown -Wno- options.
7891         (driver_wrong_lang_callback): Save options directly instead of via
7892         driver_unknown_option_callback.
7894 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
7896         * combine.c (simplify_set): Try harder to find the best CC mode when
7897         simplifying a nested COMPARE on the RHS.
7899 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7901         * config/alpha/gnu.h: Remove.
7902         * config/arc: Remove directory.
7903         * config/arm/netbsd.h: Remove.
7904         * config/arm/t-pe: Remove.
7905         * config/crx: Remove directory.
7906         * config/i386/netbsd.h: Remove.
7907         * config/m68hc11: Remove directory.
7908         * config/m68k/uclinux-oldabi.h: Remove.
7909         * config/mcore/mcore-pe.h: Remove.
7910         * config/mcore/t-mcore-pe: Remove.
7911         * config/netbsd-aout.h: Remove.
7912         * config/rs6000/gnu.h: Remove.
7913         * config/sh/sh-symbian.h: Remove.
7914         * config/sh/symbian-base.c: Remove.
7915         * config/sh/symbian-c.c: Remove.
7916         * config/sh/symbian-cxx.c: Remove.
7917         * config/sh/symbian-post.h: Remove.
7918         * config/sh/symbian-pre.h: Remove.
7919         * config/sh/t-symbian: Remove.
7920         * config/svr3.h: Remove.
7921         * config/vax/netbsd.h: Remove.
7922         * config.build: Don't handle i[34567]86-*-pe.
7923         * config.gcc: Remove handling of deprecations for most deprecated
7924         targets.
7925         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
7926         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
7927         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
7928         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
7929         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
7930         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
7931         Remove cases.
7932         * config.host: Don't handle i[34567]86-*-pe.
7933         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
7934         (ASM_SPEC32): Don't handle -mcall-gnu.
7935         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
7936         -mcall-gnu.
7937         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
7938         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
7939         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7940         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
7941         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
7942         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
7943         conditional on SYMBIAN.
7944         * configure.ac: Don't handle powerpc*-*-gnu*.
7945         * configure: Regenerate.
7946         * doc/extend.texi (interrupt attribute): Don't mention CRX.
7947         * doc/install-old.texi (m6811, m6812): Don't mention.
7948         * doc/install.texi (arc-*-elf*): Don't document multilib option.
7949         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
7950         (m68k-uclinuxoldabi): Don't mention.
7951         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
7952         Remove.
7953         (-mcall-gnu): Remove.
7954         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
7955         families): Remove constraint documentation.
7957 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
7959         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
7960         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
7961         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7963 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7965         PR target/48226
7966         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
7967         vector when peeking at the next token for vector, don't expand the
7968         keywords.
7970 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
7972         * config/avr/avr-protos.h (expand_epilogue): Change prototype
7973         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
7974         * config/avr/avr.c (init_cumulative_args)
7975         (avr_function_arg_advance): Use it.
7976         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
7977         sibcall epilogues.
7978         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
7979         (avr_function_ok_for_sibcall): ...this new function.
7980         (avr_lookup_function_attribute1): New static Function.
7981         (avr_naked_function_p, interrupt_function_p)
7982         (signal_function_p, avr_OS_task_function_p)
7983         (avr_OS_main_function_p): Use it.
7984         * config/avr/avr.md ("sibcall", "sibcall_value")
7985         ("sibcall_epilogue"): New expander.
7986         ("*call_insn", "*call_value_insn"): New insn.
7987         ("call_insn", "call_value_insn"): Remove
7988         ("call", "call_value", "epilogue"): Change expander to handle
7989         sibling calls.
7991 2011-03-21  Nick Clifton  <nickc@redhat.com>
7993         * doc/invoke.texi (Overall Options): Move closing brace to end of
7994         options list.
7995         (Optimization Options): Add missing @gol.
7996         (Directory Options): Likewise.
7997         (i386 and x86-64 Options): Likewise.
7998         (RS6000 and PowerPC Options): Likewise.
7999         (i386 and x86-64 Windows Options): Likewise.
8000         (V850 Options): Add text missing from descriptions.
8002 2011-03-22  Richard Henderson  <rth@redhat.com>
8004         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8005         (avr_incoming_return_addr_rtx): New.
8006         (emit_push_byte): New.
8007         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8008         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8009         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8010         (emit_pop_byte): New.
8011         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8012         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8013         (INCOMING_RETURN_ADDR_RTX): New.
8014         (INCOMING_FRAME_SP_OFFSET): New.
8015         (ARG_POINTER_CFA_OFFSET): New.
8016         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8017         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8018         (pophi): Remove.
8020         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8022 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8024         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8025         (FUNCTION_ARG_ADVANCE): Likewise.
8026         * tm.texi.in: Change references to them to hook references.
8027         * tm.texi: Regenerate.
8028         * targhooks.c (default_function_arg): Eliminate check for target
8029         macro.
8030         (default_function_incoming_arg): Likewise.
8031         (default_function_arg_advance): Likewise.
8032         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8033         (function_arg_advance): Likewise.
8034         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8036 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8038         * tree.c (build_call_1): New function.
8039         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8041 2011-03-22  Richard Guenther  <rguenther@suse.de>
8043         PR tree-optimization/48228
8044         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8045         for single-arg PHIs.
8047 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8049         PR rtl-optimization/48143
8050         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8051         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8052         sse2_cvtps2pd): Likewise.
8054 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8056         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8058 2011-03-22  Richard Guenther  <rguenther@suse.de>
8060         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8061         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8062         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8063         and REALIGN_LOAD_EXPR.
8064         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8065         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8066         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8067         DOT_PROD_EXPR case ...
8068         (expand_expr_real_2): ... here.
8069         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8070         and REALIGN_LOAD_EXPR.
8071         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8072         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8073         (vect_create_epilog_for_reduction): Likewise.
8074         (vectorizable_reduction): Likewise.
8075         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8076         * tree-vect-stmts.c (vectorizable_load): Likewise.
8078 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8080         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8082 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8084         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8085         handling for PLTOFF/GOTOFF.
8087 2011-03-22  Nick Clifton  <nickc@redhat.com>
8089         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8090         trailing backslash from the end of the macro definition.
8092 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8094         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8095         and PLT unspecs.
8097 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8099         * expr.h (prepare_operand): Move to...
8100         * optabs.h (prepare_operand): ...here and change the insn code
8101         parameter from "int" to "enum insn_code".
8102         (insn_operand_matches): Declare.
8103         * expr.c (init_expr_target): Use insn_operand_matches.
8104         (compress_float_constant): Likewise.
8105         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8106         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8107         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8108         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8109         Likewise.
8110         (gen_cond_trap): Likewise.
8111         (prepare_operand): Likewise.  Change icode to an insn_code.
8112         (insn_operand_matches): New function.
8113         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8114         * reload1.c (gen_reload): Likewise.
8115         * targhooks.c (default_secondary_reload): Likewise.
8117 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8119         * config/alpha/alpha.md (unspec): New define_c_enum.
8120         (unspecv): Ditto.
8122 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8124         PR debug/48214
8125         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8126         between a call and its CALL_ARG_LOCATION note.
8128 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8130         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8132 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8134         PR c/42544
8135         PR c/48197
8136         * c-common.c (shorten_compare): If primopN is first sign-extended
8137         to opN and then zero-extended to result type, set primopN to opN.
8139 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8141         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8142         for barrier handlers.
8144 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8146         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8147         UNSPEC constants to be in the unspec enumeration, and redefine
8148         all UNSPECV constants to be in the unspecv enumeration, so that
8149         dumps print which unspec/unspec_volatile this is.
8150         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8151         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8152         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8153         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8154         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8156         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8157         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8158         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8159         * config/rs6000/sync.md (isync, lwsync): Ditto.
8161 2011-03-21  Richard Guenther  <rguenther@suse.de>
8163         * params.def (lto-min-partition): Fix typo.
8165 2011-03-21  Richard Guenther  <rguenther@suse.de>
8167         PR c/47939
8168         * c-decl.c (grokdeclarator): Drop to the main variant only
8169         for array types.  Drop flag_gen_aux_info check.
8171 2011-03-21  Richard Guenther  <rguenther@suse.de>
8173         PR translation/47911
8174         * params.def (lto-partitions): Fix typo.
8175         (lto-min-partition): Fix wording.
8177 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
8179         * config/rs6000/t-freebsd: Remove duplication from file.
8181 2011-03-21  Richard Guenther  <rguenther@suse.de>
8183         PR middle-end/47661
8184         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8186 2011-03-21  Richard Guenther  <rguenther@suse.de>
8188         PR lto/48210
8189         * params.def (lto-partitions): Require at least 1 partition.
8191 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8193         * gthr-solaris.h: Remove.
8194         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8195         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8196         (LIB_SPEC): Likewise.
8197         * config/sol2.opt (threads): Remove.
8198         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8199         (sparc*-*-solaris2*): Likewise.
8200         * configure.ac (enable_threads): Enable solaris support.
8201         * configure: Regenerate.
8202         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8203         * doc/install.texi (Configuration, --enable-threads=lib): Remove
8204         solaris.
8206 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8208         * config.gcc: Obsolete *-*-solaris2.8*.
8209         * doc/install.texi (Specific, *-*-solaris2*): Document it.
8211 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8213         PR bootstrap/48135
8214         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8215         reference.  Solaris 8 perl works.
8217 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8219         PR bootstrap/48135
8220         * doc/install.texi (Prerequisites): Move jar etc. up.
8221         Explain support library version requirements.
8223 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8225         PR bootstrap/48135
8226         * doc/install.texi (Prerequisites): Move Perl to build
8227         requirements.  Always necessary on Solaris 2 with Sun ld.
8229 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8231         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8232         binutils 2.21.
8233         (Specific, i?86-*-solaris2.[89]): Likewise.
8234         (Specific, i?86-*-solaris2.10): Likewise.
8235         (Specific, mips-sgi-irix6): Likewise.
8236         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8237         Update for binutils 2.21.
8239 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8241         * configure.ac (gcc_cv_lto_plugin): Fix typo.
8242         Allow -fuse-linker-plugin for non-default plugin linker.
8243         * configure: Regenerate.
8245 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8247         PR bootstrap/48167
8248         * gengtype.c (files_rules): Added rule for cp/parser.h.
8250 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8252         PR target/48213
8253         * config/s390/s390.c (s390_delegitimize_address): Don't call
8254         lowpart_subreg if orig_x has BLKmode.
8256 2011-03-21  Kai Tietz  <ktietz@redhat.com>
8258         PR target/12171
8259         * doc/plugins.texi: Adjust documentation for plugin register_callback.
8260         * tree.h (attribute_spec): Add new member affects_type_identity.
8261         * attribs.c (empty_attribute_table): Adjust attribute_spec
8262         initializers.
8263         * config/alpha/alpha.c: Likewise.
8264         * config/arc/arc.c: Likewise.
8265         * config/arm/arm.c: Likewise.
8266         * config/avr/avr.c: Likewise.
8267         * config/bfin/bfin.c: Likewise.
8268         * config/crx/crx.c: Likewise.
8269         * config/darwin.h: Likewise.
8270         * config/h8300/h8300.c: Likewise.
8271         * config/i386/cygming.h: Likewise.
8272         * config/i386/i386.c: Likewise.
8273         * config/ia64/ia64.c: Likewise.
8274         * config/m32c/m32c.c: Likewise.
8275         * config/m32r/m32r.c: Likewise.
8276         * config/m68hc11/m68hc11.c: Likewise.
8277         * config/m68k/m68k.c: Likewise.
8278         * config/mcore/mcore.c: Likewise.
8279         * config/mep/mep.c: Likewise.
8280         * config/microblaze/microblaze.c: Likewise.
8281         * config/mips/mips.c: Likewise.
8282         * config/rs6000/rs6000.c: Likewise.
8283         * config/rx/rx.c: Likewise.
8284         * config/sh/sh.c: Likewise.
8285         * config/sol2.h: Likewise.
8286         * config/sparc/sparc.c: Likewise.
8287         * config/spu/spu.c: Likewise.
8288         * config/stormy16/stormy16.c: Likewise.
8289         * config/v850/v850.c: Likewise.
8291 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
8293         * simplify-rtx.c (simplify_binary_operation_1): Handle
8294         (xor (and A B) C) case when B and C are both constants.
8296 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
8298         * tree-dfa.c (add_referenced_var): Fix typo in comment.
8300 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
8302         PR bootstrap/48168
8303         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8305 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
8307         PR rtl-optimization/48156
8308         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8309         assume df and df_lr are not NULL.
8311 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8313         PR debug/48023
8314         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8315         between a call and its CALL_ARG_LOCATION note.
8317 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8319         PR debug/48178
8320         * config/sh/sh.c (find_barrier): Don't emit a constant pool
8321         between a call and its corresponding CALL_ARG_LOCATION note.
8323 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
8325         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8326         instead of loop. Use HARD_REGISTER_NUM_P predicate.
8327         * haifa-sched.c (setup_ref_regs): Ditto.
8328         * caller-save.c (add_used_regs_1): Ditto.
8329         * dse.c (look_for_hardregs): Ditto.
8330         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8331         * sched-rgn.c (check_live_1): Ditto.
8333 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8335         * c-decl.c (diagnose_mismatched_decls): Give an error for
8336         redefining a typedef with variably modified type.
8338 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8340         * c-decl.c (grokfield): Don't allow typedefs for structures or
8341         unions with no tag by default.
8342         * doc/extend.texi (Unnamed Fields): Update.
8344 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
8346         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8347         Rewrite using indirect functions.
8348         (lwp_slwpcb): Ditto.
8349         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8350         (avx_vinsertf128<mode>): Ditto.
8352 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8354         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8355         unspecs.
8357 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8359         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8360         splitting between a call and its corresponding CALL_ARG_LOCATION note.
8362 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8364         PR rtl-optimization/48170
8365         * gcse.c (hoist_code): Remove bogus asserts.
8367 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
8369         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8370         computation for prologue/epilogue.
8372 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8374         * Makefile.in (check-consistency): Remove.
8376 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
8378         PR debug/48176
8379         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8380         arange_table_in_use is 0, but either text_section_used or
8381         cold_text_section_used is true.  Don't call it if
8382         !info_section_emitted.
8384 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
8386         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8387         FUNCTION_VALUE_REGNO_P): Remove.
8388         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8389         Remove.
8390         * config/avr/avr.c (avr_ret_register): Make static inline.
8391         (avr_function_value_regno_p): New function.
8392         (avr_libcall_value): Make static. Add 'func' argument.
8393         (avr_function_value): Make static. Rename 'func' argument to
8394         'fn_decl_or_type', forward it to avr_libcall_value. Call
8395         avr_ret_register function instead of RET_REGISTER macro.
8396         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8398 2011-03-18  Jason Merrill  <jason@redhat.com>
8400         PR c++/23372
8401         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8403 2011-03-18  Richard Guenther  <rguenther@suse.de>
8405         * doc/install.texi (--enable-gold): Remove.
8406         (--with-plugin-ld): Document.
8407         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8409 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
8411         PR middle-end/47790
8412         * expr.c (optimize_bitfield_assignment_op): Revamp to work
8413         again after expansion changes.
8415 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
8417         * combine.c (try_combine): Do simplification only call of
8418         subst() on i2 even when i1 is present. Update comments.
8420 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8422         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8423         and UNSPEC_PCREL_SYMOFF.
8425 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8427         * config/s390/s390.md: Use define_c_enum for the unspec constant
8428         definitions.
8430 2011-03-18  Richard Henderson  <rth@redhat.com>
8431             Jakub Jelinek  <jakub@redhat.com>
8433         PR bootstrap/48161
8434         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8435         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8437 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8439         PR middle-end/47725
8440         * combine.c (cant_combine_insn_p): Don't check zero/sign
8441         extended hard registers.
8443 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8445         PR middle-end/47725
8446         * combine.c (cant_combine_insn_p): Check zero/sign extended
8447         hard registers.
8449 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
8451         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8452         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8453         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8454         Change return type to bool.
8455         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8457 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8459         PR debug/48163
8460         * var-tracking.c (prepare_call_arguments): If CALL target
8461         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8462         pc instead of looking it up using cselib_lookup and use
8463         Pmode for it if x has VOIDmode.
8464         * dwarf2out.c (gen_subprogram_die): If also both first and
8465         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8467         PR debug/48163
8468         * function.c (assign_parms): For data.passed_pointer parms
8469         use MEM of data.entry_parm instead of data.entry_parm itself
8470         as DECL_INCOMING_RTL.
8471         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8472         also when passed and declared mode is the same, DECL_RTL
8473         is a MEM with pseudo as address and DECL_INCOMING_RTL is
8474         a MEM too.
8476 2011-03-16  Jeff Law  <law@redhat.com>
8478         PR rtl-optimization/37273
8479         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8480         handle them like argument loads from stack slots.  Do not double
8481         count memory for memory constants and argument loads from stack slots.
8483 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8485         PR debug/48160
8486         * var-tracking.c (prepare_call_arguments): Check SUBREG.
8488 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8490         PR target/48171
8491         * config/i386/i386.opt: Add Save to -mavx and -mfma.
8493 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8495         PR bootstrap/48153
8496         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8497         if dwarf_strict.
8498         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8499         Clear call_arg_locations and call_arg_loc_last always.
8501         PR middle-end/48152
8502         * var-tracking.c (prepare_call_arguments): If argument needs to be
8503         passed by reference, adjust argtype and mode.
8505 2011-03-17  Richard Guenther  <rguenther@suse.de>
8507         PR middle-end/48134
8508         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8509         a value make sure to fold the statement.
8511 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
8513         PR target/43872
8514         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8515         return condition with !cfun->calls_alloca.
8517 2011-03-17  Richard Guenther  <rguenther@suse.de>
8519         PR bootstrap/48148
8520         * lto-cgraph.c (input_overwrite_node): Clear the abstract
8521         origin for decls in other ltrans units.
8522         (input_varpool_node): Likewise.
8524 2011-03-17  Richard Guenther  <rguenther@suse.de>
8526         PR middle-end/48165
8527         * tree-object-size.c (compute_object_offset): Properly return
8528         the offset operand of MEM_REFs as sizetype.
8530 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8532         PR rtl-optimization/48141
8533         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8534         * dse.c: Include params.h.
8535         (active_local_stores_len): New variable.
8536         (add_wild_read, dse_step1): Clear it when setting active_local_stores
8537         to NULL.
8538         (record_store, check_mem_read_rtx): Decrease it when removing
8539         from the chain.
8540         (scan_insn): Likewise.  Increase it when adding to chain, if it
8541         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8542         set active_local_stores to NULL before the addition.
8543         * Makefile.in (dse.o): Depend on $(PARAMS_H).
8545         PR rtl-optimization/48141
8546         * dse.c (record_store): If no positions are needed in an insn
8547         that cannot be deleted, at least unchain it from active_local_stores.
8549 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
8551         PR debug/47510
8552         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8553         (lookup_type_die_strip_naming_typedef): ... here.
8554         (get_context_die): Use it.
8555         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8556         the anonymous struct named by the naming typedef.
8558 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8560         PR target/48154
8561         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8562         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8564 2011-03-16  Jeff Law  <law@redhat.com>
8566         * tree-vrp.c (identify_jump_threads): Slightly simplify type
8567         check for operands of conditional.  Allow type to be a pointer.
8569 2011-03-16  Richard Guenther  <rguenther@suse.de>
8571         PR tree-optimization/48149
8572         * fold-const.c (fold_binary_loc): Fold
8573         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8575 2011-03-16  Richard Guenther  <rguenther@suse.de>
8577         PR tree-optimization/26134
8578         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8579         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8580         (non_rewritable_mem_ref_base): Handle complex type component
8581         accesses, constrain offsets for vector and complex extracts
8582         more properly.
8584 2011-03-16  Richard Guenther  <rguenther@suse.de>
8586         PR tree-optimization/48146
8587         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8588         operands avoiding the need for renaming.
8590 2011-03-16  Richard Guenther  <rguenther@suse.de>
8592         * gimple-fold.c (maybe_fold_reference): Open-code relevant
8593         constant folding.  Move MEM_REF canonicalization first.
8594         Rely on fold_const_aggregate_ref for initializer folding.
8595         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8597 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
8599         PR middle-end/48136
8600         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8601         arg0/arg1 or their arguments are always fold converted to matching
8602         types.
8604         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8605         to nargs.
8607 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8609         PR lto/46944
8610         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8611         Handle in-tree gold.
8612         (ld_vers): Extract binutils version for gold.
8613         (gcc_cv_ld_hidden): Handle gold here.
8614         (gcc_cv_lto_plugin): Determine level of linker plugin support.
8615         * configure: Regenerate.
8616         * config.in: Regenerate.
8617         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8618         -fuse-linker-plugin otherwise.
8619         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
8620         (LINK_COMMAND_SPEC): Use it.
8621         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8623 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
8625         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8626         * calls.c: Remove debug.h include.
8627         (emit_call_1): Don't call virtual_call_token debug hook.
8628         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8629         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8630         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8631         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8632         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8633         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8634         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8635         dwarf2out_virtual_call): Remove.
8636         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8637         copy_call_info and virtual_call hooks.
8638         (dwarf2out_init): Don't initialize vcall_insn_table,
8639         debug_dcall_section and debug_vcall_section.
8640         (prune_unused_types): Don't mark nodes from dcall_table.
8641         (dwarf2out_finish): Don't output dcall or vcall tables.
8642         * final.c (final_scan_insn): Don't call direct_call or
8643         virtual_call debug hooks.
8644         * debug.h (struct gcc_debug_hooks): Remove direct_call,
8645         virtual_call_token, copy_call_info and virtual_call hooks.
8646         (debug_nothing_uid): Remove prototype.
8647         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8648         copy_call_info and virtual_call hooks.
8649         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8650         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8651         * debug.c (do_nothing_debug_hooks): Likewise.
8652         (debug_nothing_uid): Remove.
8653         * doc/invoke.texi (-fenable-icf-debug): Remove.
8654         * common.opt (-fenable-icf-debug): Likewise.
8656         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8657         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8658         call's MEM.  Handle functions returning aggregate through a hidden
8659         first pointer.  For virtual calls add clobbered pc to call arguments
8660         chain.
8661         * dwarf2out.c (gen_subprogram_die): Emit
8662         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8663         can't be emitted.
8665         PR debug/45882
8666         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8667         * rtl.h (ENTRY_VALUE_EXP): Define.
8668         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8669         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8670         * print-rtl.c (print_rtx): Likewise.
8671         * gengtype.c (adjust_field_rtx_def): Likewise.
8672         * var-tracking.c (vt_add_function_parameter): Adjust
8673         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8674         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8675         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8676         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8677         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8679         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8680         Call var_location debug hook even on CALL_INSNs.
8681         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8682         * rtl.def (ENTRY_VALUE): New.
8683         * dwarf2out.c: Include cfglayout.h.
8684         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8685         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8686         (struct call_arg_loc_node): New type.
8687         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8688         tail_call_site_count): New variables.
8689         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8690         DW_TAG_GNU_call_site_parameter.
8691         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8692         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8693         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8694         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8695         and DW_AT_GNU_all_source_call_sites.
8696         (mem_loc_descriptor): Handle ENTRY_VALUE.
8697         (add_src_coords_attributes): Don't add enything if
8698         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8699         (dwarf2out_abstract_function): Save and clear call_arg_location,
8700         call_site_count and tail_call_site_count around dwarf2out_decl call.
8701         (gen_call_site_die): New function.
8702         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8703         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8704         (dwarf2out_function_decl): Clear call_arg_locations,
8705         call_arg_loc_last, set call_site_count and tail_call_site_count
8706         to -1 and free block_map.
8707         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8708         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
8709         followed by any real instructions.
8710         (dwarf2out_begin_function): Set call_site_count and
8711         tail_call_site_count to 0.
8712         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8713         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8714         attempt to force a DIE for it and worst case remove the attribute.
8715         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8716         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8717         the decl itself.
8718         * var-tracking.c: Include tm_p.h.
8719         (vt_stack_adjustments): For calls call note_register_arguments.
8720         (argument_reg_set): New variable.
8721         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8722         ensure the VALUE is resolved.
8723         (call_arguments): New variable.
8724         (prepare_call_arguments): New function.
8725         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8726         (struct expand_loc_callback_data): Add ignore_cur_loc field.
8727         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8728         always use the best expression.
8729         (vt_expand_loc): Add ignore_cur_loc argument.
8730         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8731         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8732         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8733         note for all calls.
8734         (vt_add_function_parameter): Use cselib_lookup_from_insn.
8735         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8736         argument.  Don't call cselib_preserve_only_values and
8737         cselib_reset_table.
8738         (note_register_arguments): New function.
8739         (vt_initialize): Compute argument_reg_set.  Call
8740         vt_add_function_parameters before processing basic blocks instead of
8741         afterwards.  For calls call prepare_call_arguments before calling
8742         cselib_process_insn.
8743         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8744         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8745         (var-tracking.o): Depend on $(TM_P_H).
8746         * cfglayout.h (insn_scope): New prototype.
8747         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8748         * cfglayout.c (insn_scope): No longer static.
8749         * insn-notes.def (CALL_ARG_LOCATION): New.
8750         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8751         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8752         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8753         nothing for DECL_EXTERNAL BLOCK_VARS.
8755 2011-03-16  Alan Modra  <amodra@gmail.com>
8757         PR target/45844
8758         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8759         create invalid offset address for vsx splat insn.
8760         * config/rs6000/predicates.md (splat_input_operand): New.
8761         * config/rs6000/vsx.md (vsx_splat_*): Use it.
8763 2011-03-15  Xinliang David Li  <davidxl@google.com>
8765         PR c/47837
8766         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8767         (normalize_preds): New function.
8768         (is_use_properly_guarded): Normalize def predicates.
8770 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8772         PR target/46788
8773         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
8774         in the output template.
8776 2011-03-15  Richard Guenther  <rguenther@suse.de>
8778         PR middle-end/47650
8779         * tree-pretty-print.c (dump_function_declaration): Properly
8780         dump unprototyped and varargs function types.
8782 2011-03-15  Richard Guenther  <rguenther@suse.de>
8784         PR tree-optimization/13954
8785         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
8786         and friends.
8788 2011-03-15  Richard Guenther  <rguenther@suse.de>
8790         PR tree-optimization/48037
8791         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
8792         selects into BIT_FIELD_REFs.
8793         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
8794         vector select.
8796 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
8798         PR tree-optimization/48129
8799         * builtins.c (fold_builtin_snprintf): Convert to type of
8800         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
8801         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
8803 2011-03-15  Richard Guenther  <rguenther@suse.de>
8805         PR tree-optimization/41490
8806         * tree-ssa-dce.c (propagate_necessity): Handle returns without
8807         value but with VUSE.
8808         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
8809         return statements.
8810         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
8811         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
8812         * tree-tailcall.c (find_tail_calls): Ignore returns.
8814 2011-03-15  Richard Guenther  <rguenther@suse.de>
8816         PR middle-end/48031
8817         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
8818         or variable-indexed array accesses when in gimple form.
8820 2011-03-15  Richard Guenther  <rguenther@suse.de>
8822         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
8824 2011-03-15  Alan Modra  <amodra@gmail.com>
8826         PR target/48032
8827         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
8828         presume symbol_refs without a symbol_ref_decl are suitably
8829         aligned, nor other trees we may see here.  Handle anchor symbols.
8830         (legitimate_constant_pool_address_p): Comment.  Add mode param.
8831         Check cmodel=medium addresses.  Adjust all calls.
8832         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
8833         creating cmodel=medium optimized access to locals.
8834         * config/rs6000/constraints.md (R): Pass QImode to
8835         legitimate_constant_pool_address_p.
8836         * config/rs6000/predicates.md (input_operand): Pass mode to
8837         legitimate_constant_pool_address_p.
8838         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
8839         Update prototype.
8841 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8843         PR target/48053
8844         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
8845         64-bit constants being loaded into registers other than GPRs such
8846         as loading 0 into a VSX register.
8848 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8850         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
8852 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
8854         PR middle-end/47917
8855         * builtins.c (fold_builtin_snprintf): New function.
8856         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
8857         (fold_builtin_4): Likewise.
8859         PR middle-end/38878
8860         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
8861         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
8862         and C - X == X also strip nops from +/-/p+ operand.
8863         When optimizing -X == C, fold C to arg0's type.
8865         PR debug/47946
8866         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
8867         emit it as add_AT_int instead of add_AT_unsigned.
8869 2011-03-14  Tom Tromey  <tromey@redhat.com>
8871         * unwind-dw2.c: Include sys/sdt.h if it exists.
8872         (_Unwind_DebugHook): Use STAP_PROBE2.
8873         * config.in, configure: Rebuild.
8874         * configure.ac: Check for sys/sdt.h.
8876 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
8878         * config/i386/i386.md (ROUND_FLOOR): New constant.
8879         (ROUND_CEIL): Ditto.
8880         (ROUND_TRUNC): Ditto.
8881         (ROUND_MXCSR): Ditto.
8882         (ROUND_NO_EXC): Ditto.
8883         (rint<mode>2): Use new defines instead of numerical constants.
8884         (floor<mode>2): Ditto.
8885         (ceil<mode>2): Ditto.
8886         (btrunc<mode>2): Ditto.
8887         * config/i386/i386-builtin-types.def: Define ROUND function type
8888         aliases.
8889         * config/i386/i386.c (enum ix86_builtins): Add
8890         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
8891         (struct builtin_description): Add
8892         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
8893         (ix86_expand_sse_round): New static function.
8894         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
8895         function types.
8896         (ix86_builtin_vectorized_function): Handle
8897         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8899 2011-03-14  Tom Tromey  <tromey@redhat.com>
8901         * c-parser.c (c_parser_asm_string_literal): Clear
8902         warn_overlength_strings.
8904 2011-03-14  Tom Tromey  <tromey@redhat.com>
8906         * c-parser.c (disable_extension_diagnostics): Save
8907         warn_overlength_strings.
8908         (restore_extension_diagnostics): Restore warn_overlength_strings.
8910 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
8912         * BASE-VER: Change to 4.7.0.
8914 2011-03-14  Richard Guenther  <rguenther@suse.de>
8916         PR middle-end/48098
8917         * tree.c (build_vector_from_val): Adjust assert to requirements
8918         and reality.
8920 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
8922         PR bootstrap/48102
8923         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
8925 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
8927         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
8928         terms of target_flags_explicit. Adjust copyright year.
8930         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
8931         * config/rs6000/t-freebsd: New file. Add override for
8932         LIB2FUNCS_EXTRA.
8934 2011-03-13  Chris Demetriou  <cgd@google.com>
8936         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
8937         (-fno-diagnostics-show-option): this, to reflect current default.
8938         (-Werror=): Update text about -fno-diagnostics-show-option.
8940 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
8942         PR target/48053
8943         * config/rs6000/predicates.md (easy_vector_constant_add_self,
8944         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
8945         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
8946         mode is not V2DImode or V2DFmode.
8947         (vspltis_constant): Do not handle V2DImode and V2DFmode.
8948         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
8949         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
8950         registers to 0.
8951         (movdi_internal64): Likewise.
8953 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
8955         PR tree-optimization/47127
8956         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
8957         parameter.
8958         (set_cloog_options): Same.
8959         (scop_to_clast): Same.
8960         (print_clast_stmt): Do not call cloog_state_malloc and
8961         cloog_state_free.
8962         (print_generated_program): Same.
8963         (gloog): Same.
8964         * graphite-clast-to-gimple.h (cloog_state): Declared.
8965         (scop_to_clast): Adjust declaration.
8966         * graphite.c (cloog_state): Defined here.
8967         (graphite_initialize): Call cloog_state_malloc.
8968         (graphite_finalize): Call cloog_state_free.
8970 2011-03-11  Jason Merrill  <jason@redhat.com>
8972         * attribs.c (lookup_attribute_spec): Take const_tree.
8973         * tree.h: Adjust.
8975 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
8977         * config/sparc/sparc.c (sparc_option_override): Use
8978         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
8980 2011-03-11  Richard Guenther  <rguenther@suse.de>
8982         PR tree-optimization/48067
8983         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
8984         multiplication result will be only used once on the target
8985         stmt.
8987 2011-03-11  Richard Guenther  <rguenther@suse.de>
8989         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
8991 2011-03-11  Richard Guenther  <rguenther@suse.de>
8993         PR lto/48073
8994         * tree.c (find_decls_types_r): Do not walk types only reachable
8995         from IDENTIFIER_NODEs.
8997 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
8999         PR middle-end/48044
9000         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9001         all vnode->force_output nodes as needed.
9003 2011-03-11  Jason Merrill  <jason@redhat.com>
9005         PR c++/48069
9006         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9007         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9009 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9011         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9012         cgraph_node.
9014 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9016         PR tree-optimization/48063
9017         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9018         inline functions called once if !tree_can_inline_p (node->callers).
9020 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9022         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9023         extra_objs.
9024         * config/score/score3.c: Delete.
9025         * config/score/score3.h: Delete.
9026         * config/score/mul-div.S: Delete.
9027         * config/score/sfp-machine.h: Add new file.
9028         * config/score/constraints.md: Add new file.
9029         * config/score/t-score-softfp: Add new file.
9030         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9031         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9032         (score7_extra_constraint): Delete.
9033         (score7_option_override): Remove unused code.
9034         * config/score/score.c: Remove score3 and score5 define and code.
9035         * config/score/score.h: Remove score3 and score5 define and code.
9036         * config/score/score.md: Remove score3 template and unusual insn.
9037         * config/score/score.opt: Remove score3 and score5 options.
9039 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9041         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9042         when _HPUX_SOURCE is defined.
9043         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9045 2011-03-10  Jason Merrill  <jason@redhat.com>
9047         PR c++/48029
9048         * stor-layout.c (layout_type): Don't set structural equality
9049         on arrays of incomplete type.
9050         * tree.c (type_hash_eq): Handle comparing them properly.
9052 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9054         PR debug/48043
9055         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9056         result mode matches original rtl mode.
9058 2011-03-10  Nick Clifton  <nickc@redhat.com>
9060         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9061         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9063 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9065         PR rtl-optimization/47866
9066         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9067         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9068         if target wasn't scalar.
9069         * function.c (assign_stack_temp_for_type): Assert that neither
9070         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9071         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9072         macro.
9073         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9075 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9077         * config/s390/s390-protos.h (s390_label_align): New prototype.
9078         * config/s390/s390.c (s390_label_align): New function.
9079         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9081 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9083         PR target/47755
9084         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9085         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9086         (output_vec_const_move): Ditto.
9088 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9090         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9091         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9092         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9093         Change 'rclass' argument and result type to reg_class_t.
9094         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9096 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9098         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9099         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9100         (TARGET_MEMORY_MOVE_COST): Define.
9101         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9103 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9105         PR debug/47881
9106         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9107         removed anything.
9109         PR tree-optimization/48022
9110         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9111         for EQ/NE_EXPR.
9113 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9115         PR debug/47991
9116         * var-tracking.c (find_use_val): Return NULL for
9117         cui->sets && cui->store_p BLKmode MEMs.
9119 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9121         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9122         Remove.
9123         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9124         xstormy16_print_operand_address): Remove.
9125         * config/stormy16/stormy16.c (xstormy16_print_operand,
9126         xstormy16_print_operand_address): Make static.
9127         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9129 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9131         PR target/47862
9132         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9133         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9134         before definition.
9136 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9138         PR bootstrap/48000
9139         * cfgloopmanip.c (fix_bb_placements): Return immediately
9140         if FROM is BASE_LOOP's header.
9142 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9144         * gimplify.c (gimplify_function_tree): Fix building calls
9145         to __builtin_return_address.
9147 2011-03-07  Alan Modra  <amodra@gmail.com>
9149         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9150         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9151         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9152         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9153         return_mode args.
9154         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9155         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9156         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9157         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9158         * config/rs6000/rs6000.c
9159         (rs6000_elf_end_indicate_exec_stack): Rename to..
9160         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9161         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9162         (rs6000_file_start): ..here.
9163         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9164         file scope variables.
9165         (call_ABI_of_interest): New function.
9166         (init_cumulative_args): Set above vars when function return value
9167         is a float, vector, or small struct.
9168         (rs6000_function_arg_advance_1): Likewise for function args.
9169         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9170         references float args.
9172 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9174         * doc/cfg.texi: Remove "See" before @ref.
9175         * doc/invoke.texi: Likewise.
9177 2011-03-05  Jason Merrill  <jason@redhat.com>
9179         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9181 2011-03-05  Anthony Green  <green@moxielogic.com>
9183         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9185 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
9187         PR rtl-optimization/47899
9188         * cfgloopmanip.c (fix_bb_placements): Fix first argument
9189         to flow_loop_nested_p when moving the loop upward.
9191 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
9193         PR target/47719
9194         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
9196 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
9198         PR tree-optimization/47967
9199         * ipa-cp.c (build_const_val): Return NULL instead of creating
9200         VIEW_CONVERT_EXPR for mismatching sizes.
9201         (ipcp_create_replace_map): Return NULL if build_const_val failed.
9202         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9203         give up on versioning.
9205 2011-03-05  Alan Modra  <amodra@gmail.com>
9207         PR target/47986
9208         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9209         full cmodel medium/large lo_sum + high addresses.
9211 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9213         * config/s390/s390.c (s390_decompose_address): Reject non-literal
9214         pool references in UNSPEC_LTREL_OFFSET.
9216 2011-03-04  Jan Hubicka  <jh@suse.cz>
9218         PR lto/47497
9219         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9220         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9221         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9222         Add node pointers.
9223         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9224         cgraph_add_thunk): Add node pointers.
9225         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9226         associated to right node.
9227         (input_node): Update use of cgraph_same_body_alias
9228         and cgraph_add_thunk.
9230 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9232         * config/i386/i386.opt (mprefer-avx128): New flag.
9233         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9234         modes when the flag -mprefer-avx128 is on.
9236 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9238         * dwarf2out.c (compare_loc_operands): Fix address handling.
9240 2011-03-04  Alan Modra  <amodra@gmail.com>
9242         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9244 2011-03-04  Richard Guenther  <rguenther@suse.de>
9246         PR middle-end/47968
9247         * expmed.c (extract_bit_field_1): Prefer vector modes that
9248         vec_extract patterns can handle.
9250 2011-03-04  Richard Guenther  <rguenther@suse.de>
9252         PR middle-end/47975
9253         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9255 2011-03-04  Richard Henderson  <rth@redhat.com>
9257         * explow.c (emit_stack_save): Remove 'after' parameter.
9258         (emit_stack_restore): Likewise.
9259         * expr.h: Update to match.
9260         * builtins.c, calls.c, stmt.c: Likewise.
9261         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9262         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9263         * function.c (expand_function_end): Insert the emit_stack_save
9264         sequence before parm_birth_insn instead of after.
9266 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
9268         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9269         (ssse3_pmaddubsw128): Ditto.
9270         (ssse3_pmaddubsw): Ditto.
9272 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
9274         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9276 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
9278         PR c/47963
9279         * gimplify.c (omp_add_variable): Only call omp_notice_variable
9280         on TYPE_SIZE_UNIT if it is a DECL.
9282         PR debug/47283
9283         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9284         first operand is not is_gimple_mem_ref_addr, try to fold it.
9285         If the operand still isn't is_gimple_mem_ref_addr, clear
9286         MEM_EXPR on op0.
9288 2011-03-03  Richard Guenther  <rguenther@suse.de>
9290         PR middle-end/47283
9291         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9292         match comment.
9293         (refs_may_alias_p_1): For release branches return true if
9294         we are confused by our input.
9296 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9298         * config/s390/s390.c (s390_function_value): Rename to ...
9299         (s390_function_and_libcall_value): ... this.
9300         (s390_function_value): New function.
9301         (s390_libcall_value): New function.
9302         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9303         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9304         target macro definitions.
9305         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9307 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
9309         * config/i386/freebsd64.h (CC1_SPEC): Define.
9310         * config/i386/linux64.h (CC1_SPEC): Define.
9311         * config/i386/x86-64.h (CC1_SPEC): Don't define.
9313 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
9315         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9316         Remove.
9317         * config/stormy16/stormy16.c: Include reload.h.
9318         (xstormy16_memory_move_cost): New function.
9319         (TARGET_MEMORY_MOVE_COST): Define.
9321 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
9323         PR rtl-optimization/47925
9324         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9325         with side effects.  Remove the more-specific check for volatile asms.
9327 2011-03-02  Alan Modra  <amodra@gmail.com>
9329         PR target/47935
9330         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9331         toc relative addresses for valid offsets.
9333 2011-03-01  Richard Guenther  <rguenther@suse.de>
9335         PR tree-optimization/47890
9336         * tree-vect-loop.c (get_initial_def_for_induction): Set
9337         related stmt properly.
9339 2011-03-01  Richard Guenther  <rguenther@suse.de>
9341         PR lto/47924
9342         * lto-streamer.c (lto_record_common_node): Also register
9343         the canonical type.
9345 2011-03-01  Richard Guenther  <rguenther@suse.de>
9347         PR lto/46911
9348         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9349         Do not stream DECL_ABSTRACT_ORIGIN.
9350         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9351         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9352         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9353         Do not stream DECL_ABSTRACT_ORIGIN.
9354         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9355         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9357 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
9359         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9360         FUNCTION_VALUE_REGNO_P): Remove.
9361         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9362         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9363         Add 'outgoing' argument.
9364         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9365         function.
9366         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9367         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9369 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
9371         PR debug/28047
9372         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9373         (lookup_filename): Likewise.
9374         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9376 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
9377             Jakub Jelinek  <jakub@redhat.com>
9379         PR middle-end/47893
9380         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9381         (assign_stack_local_1): Change last argument type to int.
9382         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9383         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
9384         don't record padding space into frame_space_list nor use those areas.
9385         (assign_stack_local): Adjust caller.
9386         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9387         of assign_stack_local, pass 0 as last argument.
9388         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9389         callers.
9391 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
9393         PR debug/47283
9394         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9395         Use target address_mode and pointer_mode hooks instead of hardcoded
9396         Pmode and ptr_mode.  Handle some simple cases of extending if
9397         POINTERS_EXTEND_UNSIGNED < 0.
9398         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9399         Call convert_debug_memory_address.
9400         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9401         convert_debug_memory_address.
9403         PR middle-end/46790
9404         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9405         * configure: Regenerated.
9406         * config.in: Regenerated.
9407         * varasm.c (default_function_section): Return NULL
9408         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9410 2011-02-28  Martin Jambor  <mjambor@suse.cz>
9412         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9413         the description to match the printed values.
9415 2011-02-28  Richard Guenther  <rguenther@suse.de>
9417         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9418         of the copied scope tree.
9420 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9422         * doc/extend.texi (Function Attributes): Avoid deeply (and
9423         wrongly) nested tables.
9425 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
9427         PR middle-end/47903
9428         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9429         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9430         r isn't op0 nor op1.
9432 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9434         * config/avr/avr.md: Remove magic comment for emacs.
9436 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9438         PR target/45261
9439         * config/avr/avr.c (avr_option_override): Use error on bad options.
9440         (avr_help): New function.
9441         (TARGET_HELP): Define.
9443 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
9445         PR target/42240
9446         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9447         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9449 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
9451         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9452         (ARM Options): Ditto.
9453         (i386 and x86-64 Options): Ditto.
9454         (RX Options): Ditto.
9455         (SPARC Options): Ditto.
9457 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
9459         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9460         FreeBSD 6 and later.  Generally use cpu generic.
9462 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9464         * doc/cpp.texi: Update copyright years.
9466 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9468         PR target/46898
9469         * config/lm32/lm32.md (ashrsi3): Added needed variable.
9471 2011-02-25  Jon Beniston  <jon@beniston.com>
9473         PR target/46898
9474         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9475         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9476         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9477         (lm32_block_move_inline): Add type cast to remove warning.
9478         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9479         (gen_int_relational): Move declarations to start of function.
9481 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9483         PR tree-optimization/45470
9484         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9485         can throw internally only.
9486         * tree-vect-stmts.c (vectorizable_call): Likewise.
9488 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
9490         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9491         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9492         * config/stormy16/stormy16-protos.h
9493         (xstormy16_preferred_reload_class): Remove.
9494         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9495         static. Change 'rclass' argument and return type to reg_class_t.
9496         (TARGET_PREFERRED_RELOAD_CLASS,
9497         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9499 2011-02-24  Richard Guenther  <rguenther@suse.de>
9501         * lto-streamer-in.c (input_bb): Do not find referenced vars
9502         in debug statements.
9504 2011-02-23  Jason Merrill  <jason@redhat.com>
9506         * common.opt (fabi-version): Document v5 and v6.
9508 2011-02-23  Richard Guenther  <rguenther@suse.de>
9510         PR tree-optimization/47849
9511         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9513 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9515         * opts-common.c (decode_cmdline_option): Print empty string
9516         argument as "" in decoded->orig_option_with_args_text.
9517         * gcc.c (execute): Print empty string argument as ""
9518         in the verbose output.
9519         (do_spec_1): Keep empty string argument.
9521 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
9523         * config.gcc: Declare score-* and crx-* obsolete.
9525 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9527         PR rtl-optimization/47763
9528         * web.c (web_main): Ignore naked clobber when replacing register.
9530 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
9532         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9533         Remove.
9535 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9537         PR doc/47848
9538         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9540 2011-02-22  Mike Stump  <mikestump@comcast.net>
9542         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9543         assembler.
9544         * configure: Regenerate.
9546 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
9548         PR rtl-optimization/46002
9549         * ira-color.c (update_copy_costs): Change class intersection
9550         test to reg_class_contents[] test of 'hard_regno'.
9552 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
9554         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9555         than Driver option.
9556         * config/hpux11.opt (mt): Likewise.
9557         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9558         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9559         * config/vax/elf.opt (mno-asm-pic): Likewise.
9560         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9562 2011-02-21  Mike Stump  <mikestump@comcast.net>
9564         PR target/47822
9565         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9566         tree so we can get save the type.
9567         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9568         for CFString instead of trying to use past the end of the builtins.
9569         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9570         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9571         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9572         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9573         Rename to darwin_builtin_cfstring.
9574         (darwin_init_cfstring_builtins): Return the built type.
9576 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
9578         PR target/47840
9579         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9580         (_mm256_insert_epi64): Use _mm_insert_epi64.
9582 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
9584         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9585         * config/stormy16/stormy16-protos.h
9586         (xstormy16_mode_dependent_address_p): Remove.
9587         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9588         Make static. Change return type to bool. Change argument type to
9589         const_rtx. Remove dead code.
9590         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9592 2011-02-21  Richard Guenther  <rguenther@suse.de>
9594         PR lto/47820
9595         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9596         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9597         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9598         TUs context.
9599         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9600         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9602 2011-02-20  Richard Guenther  <rguenther@suse.de>
9604         PR lto/47822
9605         * tree.c (free_lang_data_in_decl): Clean builtins from
9606         the TU decl BLOCK_VARS.
9608 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
9610         PR debug/47620
9611         PR debug/47630
9612         * haifa-sched.c (fix_tick_ready): Skip tick computation
9613         for debug insns.
9615 2011-02-19  Richard Guenther  <rguenther@suse.de>
9617         PR lto/47647
9618         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9619         Remove lazy BLOCK_VARS streaming.
9620         (lto_input_ts_block_tree_pointers): Likewise.
9621         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9623 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
9625         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9627 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
9629         * config/i386/biarch32.h, config/i386/mach.h,
9630         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9632 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
9634         PR target/47800
9635         * config/i386/i386.md (peephole2 for shift and plus): Use
9636         operands[1] original mode in the first insn.
9638 2011-02-18  Mike Stump  <mikestump@comcast.net>
9640         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9642 2011-02-18  Jan Hubicka  <jh@suse.cz>
9644         PR middle-end/47788
9645         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9646         to zero when the function is not inlinable at all.
9648 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9650         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9651         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9652         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9653         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9654         * config/pa/t-pa64: Likewise.
9655         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9657 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
9659         PR driver/47787
9660         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9662 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9664         PR target/47792
9665         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9667 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
9669         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9670         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9671         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9672         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9673         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9674         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9675         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9676         m32r_load_postinc_p, m32r_store_preinc_predec_p,
9677         m32r_legitimate_address_p): New functions.
9678         * config/m32r/constraints.md (constraint "S"): Don't use
9679         STORE_PREINC_PREDEC_P.
9680         (constraint "U"): Don't use LOAD_POSTINC_P.
9682 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
9684         PR rtl-optimization/46178
9685         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9686         compute ira_hard_regno_cover_class[].
9688 2011-02-18  Richard Guenther  <rguenther@suse.de>
9690         PR lto/47798
9691         * lto-streamer.h (lto_global_var_decls): Declare.
9692         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9693         statics for global var processing.
9695 2011-02-18  Richard Guenther  <rguenther@suse.de>
9697         PR tree-optimization/47737
9698         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9699         edge dominance check.
9701 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
9703         PR debug/47780
9704         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9705         avoid invalid rtx sharing.
9707 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
9709         * doc/cpp.texi (Obsolete Features): Add background on the
9710         origin of assertions.
9712 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
9714         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9715         objc_abi == 2.
9716         * config/darwin.c (output_objc_section_asm_op): Added support for
9717         ABI v1 and v2.
9718         (is_objc_metadata): New.
9719         (darwin_objc2_section): New.
9720         (darwin_objc1_section): New.
9721         (machopic_select_section): Added support for ABI v1 and v2.
9722         (darwin_emit_objc_zeroed): New.
9723         (darwin_output_aligned_bss): Detect objc metadata and treat it
9724         appropriately.
9725         (darwin_asm_output_aligned_decl_common): Same.
9726         (darwin_asm_output_aligned_decl_local): Same.
9727         * config/darwin-sections.def: Updated for ABI v1 and v2.
9728         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9729         compiling Objective-C code for the NeXT runtime, default to using
9730         ABI version 0 for 32-bit, and version 2 for 64-bit.
9732 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9734         * common.opt (optimize_fast): New Variable.
9735         * opts.c (default_options_optimization): Use opts->x_optimize_fast
9736         instead of local variable ofast.
9738 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
9740         * doc/invoke.texi (fobjc-abi-version): Documented.
9741         (fobjc-nilcheck): Documented.
9742         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9743         version.
9745 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9747         PR driver/47390
9748         * common.opt (export-dynamic): New Driver option.
9749         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9751 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9753         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9755 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
9756             Jan Hubicka  <jh@suse.cz>
9758         PR debug/47106
9759         PR debug/47402
9760         * cfgexpand.c (account_used_vars_for_block): Remove.
9761         (estimated_stack_frame_size): Use referenced vars.
9762         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9763         that were referenced in the original function.  Test src_fn
9764         rather than cfun.  Drop redundant get_var_ann.
9765         (setup_one_parameter): Drop redundant get_var_ann.
9766         (declare_return_variable): Likewise.
9767         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9768         (copy_arguments_for_versioning): Drop redundant get_var_ann.
9769         * ipa-inline.c (compute_inline_parameters): Do not compute
9770         disregard_inline_limits here.
9771         (compute_inlinable_for_current, pass_inlinable): New.
9772         (pass_inline_parameters): Require PROP_referenced_vars.
9773         * cgraphunit.c (cgraph_process_new_functions): Don't run
9774         compute_inline_parameters explicitly unless function is in SSA form.
9775         (cgraph_analyze_function): Set .disregard_inline_limits.
9776         * tree-sra.c (convert_callers): Compute inliner parameters
9777         only for functions already in SSA form.
9779 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9781         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
9782         -mlittle-endian-data.
9784 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9786         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
9787         -mno-fpu, not -fpu and -no-fpu.
9788         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
9789         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
9791 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
9793         PR target/43653
9794         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
9795         input reload with PLUS RTX.
9797 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9799         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
9800         of InverseVar(MDMX).
9802 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9804         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
9805         --m4-340.
9807 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9809         * config/mn10300/mn10300.opt (mno-crt0): New.
9811 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9813         * config/m68k/uclinux.opt (static-libc): New Driver option.
9815 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9817         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
9819 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9821         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
9822         %{muser-extend-enabled}.
9824 2011-02-16  Richard Guenther  <rguenther@suse.de>
9826         PR tree-optimization/47738
9827         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
9828         the TODO from tree_predictive_commoning.
9830 2011-02-15  Jeff Law  <law@redhat.com>
9832         Revert
9833         2011-01-25  Jeff Law  <law@redhat.com>
9835         PR rtl-optimization/37273
9836         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9837         handle them like argument loads from stack slots.  Do not double
9838         count memory for memory constants and argument loads from stack slots.
9840 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
9842         PR middle-end/47725
9843         * combine.c (cant_combine_insn_p): Revert the last change.
9845 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
9847         PR target/47755
9848         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
9849         mode for vector constants.  Remove code that checks for TImode.
9851 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
9853         PR debug/47106
9854         PR debug/47402
9855         * cgraph.h (compute_inline_parameters): Return void.
9856         * ipa-inline.c (compute_inline_parameters): Adjust.
9858 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
9860         PR debug/47106
9861         PR debug/47402
9862         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
9863         rather than decl.
9864         * cfgexpand.c (estimated_stack_frame_size): Likewise.
9865         * ipa-inline.c (compute_inline_parameters): Adjust.
9867 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
9869         PR debug/47106
9870         PR debug/47402
9871         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
9872         Adjust all users.  Pass FN to...
9873         * tree-flow-inline.h (first_referenced_var): ... this.  Add
9874         fn argument.
9875         * ipa-struct-reorg.c: Adjust.
9876         * tree-dfa.c: Adjust.
9877         * tree-into-ssa.c: Adjust.
9878         * tree-sra.c: Adjust.
9879         * tree-ssa-alias.c: Adjust.
9880         * tree-ssa-live.c: Adjust.
9881         * tree-ssa.c: Adjust.
9882         * tree-ssanames.c: Adjust.
9883         * tree-tailcall.c: Adjust.
9885 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
9887         PR debug/47106
9888         PR debug/47402
9889         * tree-flow.h (referenced_var_lookup): Add fn parameter.
9890         Adjust all callers.
9891         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
9892         * tree-flow-inline.h: Adjust.
9893         * gimple-pretty-print.c: Adjust.
9894         * tree-into-ssa.c: Adjust.
9895         * tree-ssa.c: Adjust.
9896         * cfgexpand.c: Adjust.
9898 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
9900         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
9901         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9902         (EXTRA_CONSTRAINT): Delete.
9903         * config/iq2000/constraints.md: New file.
9904         * config/iq2000/iq2000.md: Include it.
9905         (define_insn ""): Delete.
9906         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
9907         unsupported constraint letters from patterns.
9908         (call_value, call_value_internal1): Likewise.
9909         (call_value_multiple_internal1): Likewise.
9911 2011-02-15  Nick Clifton  <nickc@redhat.com>
9913         * config/mn10300/mn10300.c: Include tm-constrs.h.
9914         (struct liw_data): New data structure describing an LIW candidate
9915         instruction.
9916         (extract_bundle): Use struct liw_data.  Allow small integer
9917         operands for some instructions.
9918         (check_liw_constraints): Use struct liw_data.  Remove swapped
9919         parameter.  Add comments describing the checks.  Fix bug when
9920         assigning the source of liw1 to the source of liw2.
9921         (liw_candidate): Delete.  Code moved into extract_bundle.
9922         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
9923         before swapping.
9924         * config/mn10300/predicates.md (liw_operand): New predicate.
9925         Allows registers and small integer constants.
9926         * config/mn10300/constraints.md (O): New constraint.  Accetps
9927         integers in the range -8 to +7 inclusive.
9928         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
9929         for moving a small integer into a register.  Give this alternative
9930         LIW attributes.
9931         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
9932         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
9933         using the J,K,L and M constraints,
9934         (liw): Remove SI mode on second operands to allow for HI and QI
9935         mode values.
9936         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
9937         instruction.
9939 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
9941         PR middle-end/47725
9942         * combine.c (cant_combine_insn_p): Check zero/sign extended
9943         hard registers.
9945 2011-02-15  Richard Guenther  <rguenther@suse.de>
9947         PR tree-optimization/47743
9948         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
9949         for a non-type-compatible VN lookup bail out.
9951 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
9953         * config/fr30/constraints.md: New file.
9954         * config/fr30/fr30.md: Include it.
9955         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
9956         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9957         (EXTRA_CONSTRAINT): Delete.
9959 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
9961         * config/frv/constraints.md: New file.
9962         * config/frv/predicates.md: Include it.
9963         * config/frv/frv.c (reg_class_from_letter): Delete.
9964         (frv_option_override): Don't initialize it.
9965         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
9966         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
9967         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
9968         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9969         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
9970         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9971         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
9972         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
9973         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
9974         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
9975         (REG_CLASS_FROM_CONSTRAINT): Delete.
9977 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
9979         PR middle-end/47581
9980         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
9981         if frame size is 0 in a leaf function.
9983 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9985         PR pch/14940
9986         * config/alpha/host-osf.c: New file.
9987         * config/alpha/x-osf: New file.
9988         * config.host (alpha*-dec-osf*): Use it.
9990 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
9992         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9993         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
9994         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
9995         (rx_mode_dependent_address_p): ...this. Make static. Change argument
9996         type to const_rtx.
9997         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9999 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10001         * config/stormy16/constraints.md: New file.
10002         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10003         Use satisfies_constraint_Q and satisfies_constraint_R.
10004         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10005         Delete.
10006         (xstormy16_legitiamte_address_p): Declare.
10007         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10008         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10009         (EXTRA_CONSTRAINT): Delete.
10010         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10011         Un-staticize.
10012         (xstormy16_extra_constraint_p): Delete.
10014 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10016         PR tree-optimization/46494
10017         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10018         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10019         (pass_rtl_loop_done): Add TODO_verify_flow.
10020         * fwprop.c (pass_rtl_fwprop): Likewise.
10021         * modulo-sched.c (pass_sms): Likewise.
10022         * tree-ssa-dom.c (pass_dominator): Likewise.
10023         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10024         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10025         (pass_tree_loop_done): Likewise.
10026         * tree-ssa-pre.c (execute_pre): Likewise.
10027         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10028         * tree-ssa-sink.c (pass_sink_code): Likewise.
10029         * tree-vrp.c (pass_vrp): Likewise.
10031 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10033         * config/v850/constraints.md: New file.
10034         * config/v850/v850.md: Include it.
10035         * config/v850/predicates.md (reg_or_0_operand): Use
10036         satisfies_constraint_G.
10037         (special_symbolref_operand): Use satisfies_constraint_K.
10038         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10039         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10040         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10041         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10042         (EXTRA_CONSTRAINT): Delete.
10043         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10044         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10045         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10047 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10049         PR target/47696
10050         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10051         description.
10053 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10055         * config/mcore/constraints.md: New file.
10056         * config/mcore/mcore.md: Include it.
10057         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10058         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10059         (REG_CLASS_FROM_LETTER): Delete.
10060         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10061         insn_const_int_ok_for_constraint.
10062         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10063         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10064         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10065         (EXTRA_CONSTRAINT): Delete.
10067 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10069         PR ada/41929
10070         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10071         (IS_SIGHANDLER): Define.
10072         (sparc64_is_sighandler): New function, split off from
10073         sparc64_fallback_frame_state.
10074         (sparc_is_sighandler): New function, split off from
10075         sparc_fallback_frame_state.
10076         (sparc64_fallback_frame_state): Merge with ...
10077         (sparc_fallback_frame_state): ... this into ...
10078         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10079         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10080         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10081         stack instead of hardcoded offsets.
10083 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10085         PR target/45808
10086         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10088 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10090         * configure: Regenerate.
10092 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10094         PR driver/45731
10095         * gcc.c (asm_options): Correct spec matching --target-help.
10097 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10099         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10100         to gimple call error.
10102 2011-02-12  Mike Stump  <mikestump@comcast.net>
10104         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10105         comments in backslash regions.
10107 2011-02-12  Mike Stump  <mikestump@comcast.net>
10108             Jakub Jelinek  <jakub@redhat.com>
10109             Iain Sandoe  <iains@gcc.gnu.org>
10111         PR target/47324
10112         * dwarf2out.c (output_cfa_loc): When required, apply the
10113         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10114         (output_loc_sequence): Likewise.
10115         (output_loc_operands_raw): Likewise.
10116         (output_loc_sequence_raw): Likewise.
10117         (output_cfa_loc): Likewise.
10118         (output_loc_list): Suppress register number adjustment when
10119         calling output_loc_sequence()
10120         (output_die): Likewise.
10122 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10124         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10125         Remove macros.
10126         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10127         xtensa_memory_move_cost): New functions.
10128         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10130 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10132         PR lto/47225
10133         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10134         in the current directory.
10135         * configure: Rebuilt.
10137 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10139         * config/darwin.c (darwin_override_options): Add a hunk missed
10140         from the commit of r168571.  Trim comment line lengths and
10141         correct indents of the preceding block.
10143 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10145         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10146         the switch.
10148 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10150         * common.opt (nostartfiles): New Driver option.
10152 2011-02-11  Xinliang David Li  <davidxl@google.com>
10154         PR tree-optimization/47707
10155         * tree-chrec.c (convert_affine_scev): Keep type precision.
10157 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10159         PR tree-optimization/47420
10160         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10162 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10164         PR rtl-optimization/47614
10165         * rtl.h (check_for_inc_dec): Declare.
10166         * dse.c (check_for_inc_dec): Externalize...
10167         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10168         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10170 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10172         PR driver/47678
10173         * gcc.c (main): Do not compile inputs if there were errors in
10174         option handling.
10175         * opts-common.c (read_cmdline_option): Check for wrong language
10176         after other error checks.
10178 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
10180         * cgraph.c: Fix comment typos.
10181         * cgraph.h: Likewise.
10182         * cgraphunit.c: Likewise.
10183         * ipa-cp.c: Likewise.
10184         * ipa-inline.c: Likewise.
10185         * ipa-prop.c: Likewise.
10186         * ipa-pure-const.c: Likewise.
10187         * ipa-ref.c: Likewise.
10188         * ipa-reference.c: Likewise.
10190 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10192         PR debug/47684
10193         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10195 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10197         PR testsuite/47400
10198         * doc/sourcebuild.texi (Require Support): Document
10199         dg-require-ascii-locale.
10201 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
10203         * doc/lto.texi (Write summary): Fix missing parentheses.
10205 2011-02-10  DJ Delorie  <dj@redhat.com>
10207         * config/m32c/m32c.c (m32c_option_override): Disable
10208         -fcombine-stack-adjustments until flag value tracking and compare
10209         optimization can be rewritten.
10211 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
10213         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10214         PROCESSOR_POWER7.
10215         (PROCESSOR_DEFAULT64): Likewise.
10217 2011-02-10  Richard Henderson  <rth@redhat.com>
10219         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10220         change from 2011-02-03.
10221         * config/rx/rx.c (flags_from_code): Likewise.
10222         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10223         is valid, n/pz otherwise.
10224         (rx_select_cc_mode): Return CCmode if Y is not zero.
10226 2011-02-10  Richard Guenther  <rguenther@suse.de>
10228         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10230 2011-02-10  Richard Guenther  <rguenther@suse.de>
10232         PR tree-optimization/47677
10233         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10235 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10237         PR target/47665
10238         * combine.c (make_compound_operation): Only change shifts into
10239         multiplication for SCALAR_INT_MODE_P.
10241 2011-02-10  Jie Zhang  <jie@codesourcery.com>
10243         PR testsuite/47622
10244         Revert
10245         2011-02-05  Jie Zhang  <jie@codesourcery.com>
10246         PR debug/42631
10247         * web.c (entry_register): Don't clobber the number of the
10248         first uninitialized reference in used[].
10250 2011-02-09  Richard Guenther  <rguenther@suse.de>
10252         PR tree-optimization/47664
10253         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10254         all edges again.
10256 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
10258         PR target/46481
10259         PR target/47032
10260         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10261         PROCESSOR_POWER7.
10262         (PROCESSOR_DEFAULT64): Same.
10263         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10265 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10267         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10269 2011-02-09  Martin Jambor  <mjambor@suse.cz>
10271         PR middle-end/45505
10272         * tree-sra.c (struct access): New flags grp_scalar_read and
10273         grp_scalar_write.  Changed description of assignment read and write
10274         flags.
10275         (dump_access): Dump new flags, reorder all of them.
10276         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10277         to detect multiple scalar reads.
10278         (analyze_access_subtree): Use the new scalar read write flags instead
10279         of the old flags.  Adjusted comments.
10281 2011-02-08  DJ Delorie  <dj@redhat.com>
10283         PR target/47548
10284         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10285         patterns.
10287 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10289         * config/m68k/uclinux.opt: New.
10290         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10292 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10294         * config/cris/elf.opt (sim): New Driver option.
10296 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10298         * config/xtensa/elf.opt: New.
10299         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10301 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10303         * config/vax/elf.opt: New.
10304         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10306 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10308         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10310 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10312         * config/gnu-user.opt: New.
10313         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10314         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10315         *-*-uclinux*): Use gnu-user.opt.
10317 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
10319         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10320         * config/i386/gnu.h (CPP_SPEC): Likewise.
10322 2011-02-08  Ian Lance Taylor  <iant@google.com>
10324         * common.opt (fcx-limited-range): Add SetByCombined flag.
10325         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10326         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10327         (fassociative-math, freciprocal-math): Likewise.
10328         (funsafe-math-optimizations): Likewise.
10329         * opth-gen.awk: Handle SetByCombined.
10330         * optc-gen.awk: Likewise.
10331         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10332         (set_unsafe_math_optimizations_flags): Likewise.
10333         * doc/options.texi (Option properties): Document SetByCombined.
10335 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10337         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10338         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10339         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10340         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10341         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10343 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
10345         PR tree-optimization/46834
10346         PR tree-optimization/46994
10347         PR tree-optimization/46995
10348         * graphite-sese-to-poly.c (used_outside_reduction): New.
10349         (detect_commutative_reduction): Call used_outside_reduction.
10350         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10351         translate_scalar_reduction_to_array only when at least one
10352         loop-phi/close-phi tuple has been detected.
10354 2011-02-08  Richard Guenther  <rguenther@suse.de>
10356         PR middle-end/47639
10357         * tree-vect-generic.c (expand_vector_operations_1): Update
10358         stmts here ...
10359         (expand_vector_operations): ... not here.  Cleanup EH info
10360         and the CFG if required.
10362 2011-02-08  Richard Guenther  <rguenther@suse.de>
10364         PR tree-optimization/47641
10365         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10366         require type compatibility.
10368 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10370         * gimple-low.c (lower_function_body): Don't remove the location of
10371         the return statement here.
10372         (lower_gimple_return): Do it here instead but only if the return
10373         statement is actually used twice.
10375 2011-02-08  Richard Guenther  <rguenther@suse.de>
10377         PR tree-optimization/47632
10378         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10379         unused up_to_stmt parameter, return whether cfg-cleanup is
10380         necessary, remove EH info properly.
10381         (forward_propagate_into_gimple_cond): Adjust caller.
10382         (forward_propagate_into_cond): Likewise.
10383         (forward_propagate_comparison): Likewise.
10384         (tree_ssa_forward_propagate_single_use_vars): Make
10385         forward_propagate_comparison case similar to the two others.
10387 2011-02-08  Nick Clifton  <nickc@redhat.com>
10389         * config/mn10300/mn10300.opt (mliw): New command line option.
10390         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10391         (liw_bundling): New automaton.
10392         (liw): New attribute.
10393         (liw_op): New attribute.
10394         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10395         (movsi_internal): Add LIW attributes.
10396         (andsi3): Likewise.
10397         (iorsi3): Likewise.
10398         (xorsi3): Likewise.
10399         (addsi3): Separate register and immediate alternatives.
10400         Add LIW attributes.
10401         (subsi3): Likewise.
10402         (cmpsi): Likewise.
10403         (aslsi3): Likewise.
10404         (lshrsi3): Likewise.
10405         (ashrsi3): Likewise.
10406         (liw): New pattern.
10407         * config/mn10300/mn10300.c (liw_op_names): New
10408         (mn10300_print_operand): Handle 'W' operand descriptor.
10409         (extract_bundle): New function.
10410         (check_liw_constraints): New function.
10411         (liw_candidate): New function.
10412         (mn10300_bundle_liw): New function.
10413         (mn10300_reorg): New function.
10414         (TARGET_MACHINE_DEPENDENT_REORG): Define.
10415         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10416         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10417         __LIW__ or __NO_LIW__.
10418         * doc/invoke.texi: Describe the -mliw command line option.
10420 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10422         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10423         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10424         pthread_mutex_unlock): Remove.
10425         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10426         * config/pa/t-pa64: Likewise.
10427         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10428         shared libc if not linking against libpthread.
10429         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10431 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
10433         PR target/47558
10434         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10435         on 10.6 and later to ensure that we always use the unwinder from
10436         the system.  Only add -no_compact_unwind when tarteting darwin
10437         10.6 or later.
10439 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
10441         PR target/46997
10442         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10443         (vec_interleave_lowv2sf): Ditto.
10444         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10445         (vec_extract_oddv2sf): Ditto.
10447 2011-02-07  Mike Stump  <mikestump@comcast.net>
10449         PR target/42333
10450         Add __ieee_divdc3 entry point.
10451         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10452         entry point.
10453         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10454         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10455         * config/darwin.c (darwin_rename_builtins): Add.
10456         * config/darwin-protos.h (darwin_rename_builtins): Add.
10458 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
10460         PR target/47636
10461         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10462         for the condition.
10464 2011-02-07  Mike Stump  <mikestump@comcast.net>
10466         * config/darwin.opt (mmacosx-version-min): Update default OS version.
10468 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
10470         PR target/47534
10471         * config/avr/libgcc.S (exit): Move .endfunc
10473 2011-02-07  Richard Guenther  <rguenther@suse.de>
10475         PR tree-optimization/47615
10476         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10477         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10478         (run_scc_vn): Initialize it.
10479         (visit_reference_op_load): Use it.
10480         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10482 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10484         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10485         DImode trapping arithmetic libfuncs.
10487 2011-02-07  Richard Guenther  <rguenther@suse.de>
10489         PR tree-optimization/47621
10490         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10491         two duplicates ...
10492         (execute_update_addresses_taken): ... here.  Make it more
10493         conservative in what we accept.
10495 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10497         * config/sparc/freebsd.h (ASM_SPEC): Define.
10498         * config/sparc/vxworks.h (ASM_SPEC): Define.
10500 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10502         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10504 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
10506         * doc/invoke.texi: Remove reference to compiler internals from
10507         user documentation.
10509         * reg-notes.def: Remove REG_VALUE_PROFILE.
10510         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10512 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
10514         PR middle-end/47610
10515         * varasm.c (default_section_type_flags): If decl is NULL,
10516         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10518 2011-02-05  Jie Zhang  <jie@codesourcery.com>
10520         PR debug/42631
10521         * web.c (entry_register): Don't clobber the number of the
10522         first uninitialized reference in used[].
10524 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
10526         PR tree-optimization/46194
10527         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10528         (build_classic_dist_vector_1): Do not represent classic distance
10529         vectors when the access functions are variating in different loops.
10531 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10533         * config/mips/iris6.opt: New.
10534         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10536 2011-02-04  Richard Henderson  <rth@redhat.com>
10537             Steve Ellcey  <sje@cup.hp.com>
10539         PR target/46997
10540         * config/ia64/predicates.md (mux1_brcst_element): New.
10541         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10542         * config/ia64/ia64.c (ia64_unpack_assemble): New.
10543         (ia64_unpack_sign): New.
10544         (ia64_expand_unpack): Rewrite using new routines.
10545         (ia64_expand_widen_sum): Ditto.
10546         (ia64_expand_dot_prod_v8qi): Ditto.
10547         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10548         routines, add endian check.
10549         (pmpy2_even): Rename from pmpy2_r, add endian check.
10550         (pmpy2_odd): Rename from pmpy2_l, add endian check.
10551         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10552         (vec_widen_smult_hi_v4hi): Ditto.
10553         (vec_widen_umult_lo_v4hi): Ditto.
10554         (vec_widen_umult_hi_v4hi): Ditto.
10555         (mulv2si3): Change endian checks.
10556         (sdot_prodv4hi): Rewrite with new calls.
10557         (udot_prodv4hi): New.
10558         (vec_pack_ssat_v4hi): Add endian check.
10559         (vec_pack_usat_v4hi): Ditto.
10560         (vec_pack_ssat_v2si): Ditto.
10561         (max1_even): Rename from max1_r, add endian check.
10562         (max1_odd): Rename from max1_l, add endian check.
10563         (*mux1_rev): Format change.
10564         (*mux1_mix): Ditto.
10565         (*mux1_shuf): Ditto.
10566         (*mux1_alt): Ditto.
10567         (*mux1_brcst_v8qi): Use new predicate.
10568         (vec_extract_evenv8qi): Remove endian check.
10569         (vec_extract_oddv8qi): Ditto.
10570         (vec_interleave_lowv4hi): Format change.
10571         (vec_interleave_highv4hi): Ditto.
10572         (mix2_even): Rename from mix2_r, add endian check.
10573         (mix2_odd): Rename from mux2_l, add endian check.
10574         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10575         (vec_extract_evenodd_helper): Format change.
10576         (vec_extract_evenv4hi): Remove endian check.
10577         (vec_extract_oddv4hi): Remove endian check.
10578         (vec_interleave_lowv2si): Format change.
10579         (vec_interleave_highv2si): Format change.
10580         (vec_initv2si): Remove endian check.
10581         (vecinit_v2si): Add endian check.
10582         (reduc_splus_v2sf): Add endian check.
10583         (reduc_smax_v2sf): Ditto.
10584         (reduc_smin_v2sf): Ditto.
10585         (vec_initv2sf): Remove endian check.
10586         (fpack): Add endian check.
10587         (fswap): Add endian check.
10588         (vec_interleave_highv2sf): Add endian check.
10589         (vec_interleave_lowv2sf): Add endian check.
10590         (fmix_lr): Add endian check.
10591         (vec_setv2sf): Format change.
10592         (*vec_extractv2sf_0_be): Use shift to extract operand.
10593         (*vec_extractv2sf_1_be): New.
10594         (vec_pack_trunc_v4hi): Add endian check.
10595         (vec_pack_trunc_v2si): Format change.
10597 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
10599         PR inline-asm/23200
10600         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
10601         do bb, locus and block comparison and disallow loads if it is not set.
10602         (stmt_is_replaceable_p): New function.
10603         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10604         callers.
10605         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10606         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10607         SSA_NAME_DEF_STMT.
10608         * tree-flow.h (stmt_is_replaceable_p): New prototype.
10610 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10612         * config/rs6000/xilinx.opt: New.
10613         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10615 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10617         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10619 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
10621         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10622         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10623         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10624         secondary_reload_info, xtensa_secondary_reload): Remove.
10625         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10626         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10627         (xtensa_preferred_reload_class): Make static. Change return and
10628         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10629         Use CONST_DOUBLE_P predicate.
10630         (xtensa_preferred_output_reload_class): New function.
10631         (xtensa_secondary_reload): Make static.
10633 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
10635         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10636         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10637         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10639 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10641         PR middle-end/31490
10642         * output.h (SECTION_RELRO): Define.
10643         (SECTION_MACH_DEP): Adjust.
10644         (get_variable_section): New prototype.
10645         * varpool.c (varpool_finalize_named_section_flags): New function.
10646         (varpool_assemble_pending_decls): Call it.
10647         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10648         * cgraphunit.c (cgraph_output_in_order): Call
10649         varpool_finalize_named_section_flags.
10650         * varasm.c (get_section): Allow section flags conflicts between
10651         relro and read-only sections if the section hasn't been declared yet.
10652         Set SECTION_OVERRIDE after diagnosing section type conflict.
10653         (get_variable_section): No longer static.
10654         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10655         readonly sections that need relocations.
10656         (decl_readonly_section_1): New function.
10657         (decl_readonly_section): Use it.
10659         Revert:
10660         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
10661                     Steve Ellcey  <sje@cup.hp.com>
10663         PR middle-end/31490
10664         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10665         if section attribute used.
10667 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10669         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10670         * config/darwin.c (SECTION_NO_ANCHOR): Define.
10671         (darwin_init_sections): Remove assertion.
10673 2011-02-03  Nick Clifton  <nickc@redhat.com>
10675         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10676         lt and ge.
10677         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10678         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10679         instead of "n" and "pz".
10680         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10681         CC_FLAG_S.
10683 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10685         PR target/47312
10686         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10687         fma, expand FMA_EXPR as fma{,f,l} call.
10689         PR lto/47274
10690         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10691         copy them into a unsigned char variable and pass address of it to
10692         lto_output_data_stream.
10694         PR target/47564
10695         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10696         around backend_init_target and lang_dependent_init_target calls.
10697         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10698         (verify_cgraph_node): Don't call set_cfun here.  Use
10699         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10700         Set error_found for incorrectly represented calls to thunks.
10702 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
10704         PR debug/43092
10705         PR rtl-optimization/43494
10706         * rtl.h (for_each_inc_dec_fn): New type.
10707         (for_each_inc_dec): Declare.
10708         * rtlanal.c (struct for_each_inc_dec_ops): New type.
10709         (for_each_inc_dec_find_inc_dec): New fn.
10710         (for_each_inc_dec_find_mem): New fn.
10711         (for_each_inc_dec): New fn.
10712         * dse.c (struct insn_size): Remove.
10713         (replace_inc_dec, replace_inc_dec_mem): Remove.
10714         (emit_inc_dec_insn_before): New fn.
10715         (check_for_inc_dec): Use it, along with for_each_inc_dec.
10716         (canon_address): Pass mem modes to cselib_lookup.
10717         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
10718         (cselib_lookup_from_insn): Likewise.
10719         (cselib_subst_to_values): Likewise.
10720         * cselib.c (find_slot_memmode): New var.
10721         (cselib_find_slot): New fn.  Use it instead of
10722         htab_find_slot_with_hash everywhere.
10723         (entry_and_rtx_equal_p): Use find_slot_memmode.
10724         (autoinc_split): New fn.
10725         (rtx_equal_for_cselib_p): Rename and implement in terms of...
10726         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
10727         Deal with autoinc.  Special-case recursion into MEMs.
10728         (cselib_hash_rtx): Likewise.
10729         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
10730         address and MEM modes.
10731         (cselib_subst_to_values): Add memmode, pass it on.
10732         Deal with autoinc.
10733         (cselib_lookup): Add memmode argument, pass it on.
10734         (cselib_lookup_from_insn): Add memmode.
10735         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10736         (struct cselib_record_autoinc_data): New.
10737         (cselib_record_autoinc_cb): New fn.
10738         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
10739         mode to cselib_lookup.  Reset autoinced REGs here instead of...
10740         (cselib_process_insn): ... here.
10741         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10742         to cselib_lookup.
10743         (add_uses): Likewise, also to cselib_subst_to_values.
10744         (add_stores): Likewise.
10745         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
10746         cselib_subst_to_values.
10747         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
10748         * gcse.c (do_local_cprop): Adjusted.
10749         * postreload.c (reload_cse_simplify_set): Adjusted.
10750         (reload_cse_simplify_operands): Adjusted.
10751         * sel-sched-dump (debug_mem_addr_value): Pass mode.
10753 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
10755         PR tree-optimization/45122
10756         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10757         unsafe assumptions when there's more than one loop exit.
10759 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10761         PR target/47272
10762         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10763         Document using vector double with the load/store builtins, and
10764         that the load/store builtins always use Altivec instructions.
10766         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10767         to use altivec memory instructions, even on VSX.
10768         (vector_altivec_store_<mode>): Ditto.
10770         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
10771         function.
10773         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10774         V2DF, V2DI support to load/store overloaded builtins.
10776         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
10777         altivec load/store builtins for V2DF/V2DI types.
10779         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10780         set avoid indexed addresses on power6 if -maltivec.
10781         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
10782         vector_altivec_load/vector_altivec_store builtins.
10783         (altivec_expand_st_builtin): Ditto.
10784         (altivec_expand_builtin): Add VSX memory builtins.
10785         (rs6000_init_builtins): Add V2DI types to internal types.
10786         (altivec_init_builtins): Add support for V2DF/V2DI altivec
10787         load/store builtins.
10788         (rs6000_address_for_altivec): Insure memory address is appropriate
10789         for Altivec.
10791         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
10792         vec_vsx_ld and vec_vsx_st.
10793         (vsx_store_<mode>): Ditto.
10795         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
10796         variables to hold long long types for VSX vector memory builtins.
10797         (RS6000_BTI_unsigned_long_long): Ditto.
10798         (long_long_integer_type_internal_node): Ditti.
10799         (long_long_unsigned_type_internal_node): Ditti.
10801         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
10802         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
10803         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
10805         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
10806         short cuts.
10807         (vec_vsx_st): Ditto.
10809 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
10811         * config/pa/pa-hpux10.opt: New.
10812         * config/hpux11.opt (pthread): New Driver option.
10813         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
10814         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
10816 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
10818         * config/ia64/vms.opt: New.
10819         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
10821 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
10823         PR target/47580
10824         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
10825         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
10826         generator functions.
10827         (vsx_floatuns<VSi><mode>2): Ditto.
10828         (vsx_fix_trunc<mode><VSi>2): Ditto.
10829         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
10831 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
10833         * config/i386/djgpp.opt (posix): New Driver option.
10835 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
10837         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
10838         Move to the unsupported targets list.
10840 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
10842         PR rtl-optimization/47525
10843         * df-scan.c: Update copyright years.
10844         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
10845         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
10847 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10849         * config/i386/sysv4.h (TARGET_VERSION): Remove.
10850         (SUBTARGET_RETURN_IN_MEMORY): Remove.
10851         (ASM_OUTPUT_ASCII): Remove.
10852         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
10854 2011-02-02  Jeff Law  <law@redhat.com>
10856         PR middle-end/47543
10857         * reload.c (find_reloads_address): Handle reg+d address where both
10858         components are invalid by reloading the entire address.
10860 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
10861             Richard Guenther  <rguenther@suse.de>
10863         PR tree-optimization/40979
10864         PR bootstrap/47044
10865         * passes.c (init_optimization_passes): After LIM call copy_prop
10866         and DCE to clean up.
10867         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
10869 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
10871         PR tree-optimization/47576
10872         PR tree-optimization/47555
10873         * doc/invoke.texi (scev-max-expr-complexity): Documented.
10874         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10875         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
10876         * tree-scalar-evolution.c (follow_ssa_edge): Use
10877         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
10879 2011-02-02  Richard Guenther  <rguenther@suse.de>
10881         PR tree-optimization/47566
10882         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
10884 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
10886         PR debug/47106
10887         PR debug/47402
10888         * tree-inline.c (declare_return_variable): Remove unused caller
10889         variable.
10891         PR debug/47106
10892         PR debug/47402
10893         * tree-flow-inline.h (clear_is_used, is_used_p): New.
10894         * cfgexpand.c (account_used_vars_for_block): Use them.
10895         * tree-nrv.c (tree_nrv): Likewise.
10896         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
10897         (dump_scope_block): Likewise.
10898         (remove_unused_locals): Likewise.
10900         PR debug/47106
10901         PR debug/47402
10902         * tree-inline.c (declare_return_variable): Add result decl to
10903         local decls only once.
10904         * gimple-low.c (record_vars_into): Mark newly-created variables
10905         as referenced.
10907 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
10909         PR debug/47498
10910         PR debug/47501
10911         PR debug/45136
10912         PR debug/45130
10913         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10914         debug insns.
10915         (no_real_insns_p, schedule_block, set_priorities): Drop special
10916         treatment of boundary debug insns.
10917         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10918         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
10919         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10920         (BOUNDARY_DEBUG_INSN_P): Likewise.
10921         (SCHEDULE_DEBUG_INSN_P): Likewise.
10922         * sched-rgn.c (init_ready_list): Drop special treatment of
10923         boundary debug insns.
10924         * final.c (rest_of_clean_state): Clear notes' BB.
10926 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10928         * config/openbsd.opt (assert=): New Driver option.
10930 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10932         * config/i386/nto.opt: New.
10933         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
10935 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10937         * config/i386/netware.opt: New.
10938         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
10940 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10942         * config/interix.opt (posix): New Driver option.
10944 2011-02-01  DJ Delorie  <dj@redhat.com>
10946         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
10948         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
10949         class for A0/A1.
10951 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
10953         PR tree-optimization/47561
10954         * toplev.c (process_options): Print the Graphite flags.  Add
10955         flag_loop_flatten to the list of options requiring Graphite.
10957 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10959         * config/i386/cygming.opt (posix): New Driver option.
10961 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10963         * config/arm/vxworks.opt: New.
10964         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
10966 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10968         * config/alpha/elf.opt: New.
10969         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
10970         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
10972 2011-02-01  Richard Guenther  <rguenther@suse.de>
10974         PR tree-optimization/47559
10975         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
10976         store-motion on references that can throw.
10978 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
10980         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
10981         * tree-pass.h (TDF_CSELIB): New macro.
10982         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
10983         cselib_lookup): Check for it rather than for TDF_DETAILS.
10985 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
10987         PR driver/47547
10988         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
10989         is HOST_BIT_BUCKET.
10991         * opts.c (finish_options): Don't add x_aux_base_name if it is
10992         HOST_BIT_BUCKET.
10994 2011-02-01  Richard Guenther  <rguenther@suse.de>
10996         PR tree-optimization/47555
10997         Revert
10998         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11000         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11002 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11004         PR gcc/46692
11005         * config/lm32/t-lm32: Add multilib for all CPU options.
11007 2011-02-01  Richard Guenther  <rguenther@suse.de>
11009         PR tree-optimization/47541
11010         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11011         sure to have a field at offset zero.
11013 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11015         * config/arc/arc.opt (EB, EL): New Driver options.
11017 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11019         * config/alpha/osf5.opt: New.
11020         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11022 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11024         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11026 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11028         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11029         -floop-interchange.
11030         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11031         is an alias of -floop-interchange and that it requires the
11032         Graphite infrastructure.
11033         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11034         flag_loop_interchange based on the value of flag_tree_loop_linear.
11036 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11037             Richard Guenther  <rguenther@suse.de>
11039         PR tree-optimization/47538
11040         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11041         type instead of r1type, except for comparisons.  For right
11042         shifts and comparisons punt if there are mismatches in
11043         sizetype vs. non-sizetype types.
11045 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11047         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11048         avx_runtime.
11050 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11052         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11053         version number.
11054         * configure: Regenerate.
11056 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11058         * configure.ac (gcc_cv_ld_static_option): Define.
11059         (gcc_cv_ld_dynamic_option): Define.
11060         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11061         instead.
11062         (HAVE_LD_STATIC_DYNAMIC): Update message.
11063         (LD_STATIC_OPTION): Define.
11064         (LD_DYNAMIC_OPTION): Define.
11065         * configure: Regenerate.
11066         * config.in: Regenerate.
11067         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11068         HAVE_LD_STATIC_DYNAMIC]: Use them.
11070 2011-01-31  Nick Clifton  <nickc@redhat.com>
11072         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11073         registers inside interrupt handlers if the handler is not a leaf
11074         function.
11076 2011-01-31  Nick Clifton  <nickc@redhat.com>
11078         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11079         reg_renumber returning an INVALID_REGNUM.
11081 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11083         PR libgcj/44341
11084         * doc/install.texi: Document host options discarded when cross
11085         configuring target libraries.
11087 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11089         Reverted:
11090         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11091         PR debug/45136
11092         PR debug/45130
11093         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11094         debug insns.
11095         (no_real_insns_p, schedule_block, set_priorities): Drop special
11096         treatment of boundary debug insns.
11097         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11098         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11099         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11100         (BOUNDARY_DEBUG_INSN_P): Likewise.
11101         (SCHEDULE_DEBUG_INSN_P): Likewise.
11102         * sched-rgn.c (init_ready_list): Drop special treatment of
11103         boundary debug insns.
11104         * final.c (rest_of_clean-state): Clear notes' BB.
11106 2011-01-31  Alan Modra  <amodra@gmail.com>
11108         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11109         toc relative expressions as we do in print_operand_address.
11111 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11113         * doc/extend.texi: Follow spelling conventions.
11114         * doc/invoke.texi: Fix a typo.
11116 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11118         * config/hpux11.opt: New.
11119         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11120         ia64*-*-hpux*): Use hpux11.opt.
11122 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11124         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11125         to tmake_file.
11127 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11129         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11130         support sites.
11132 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11134         * doc/install.texi (Binaries): Remove outdated reference for
11135         Motorola 68HC11/68HC12 downloads.
11137 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11139         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11140         Drepper's paper.
11142 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11144         PR bootstrap/47147
11145         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11146         used by NetBSD.
11148 2011-01-28  Ahmad Sharif  <asharif@google.com>
11150         * value-prof.c (check_counter): Corrected error message.
11152 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11154         * config/arm/arm.c (arm_legitimize_reload_address): New.
11155         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11156         arm_legitimize_reload_address.
11157         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11159 2011-01-28  Ian Lance Taylor  <iant@google.com>
11161         * godump.c (go_define): Ignore macros whose definitions include
11162         two adjacent operands.
11164 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11166         PR target/42894
11167         * varasm.c (force_const_mem): Store copy of x in desc->constant
11168         instead of x itself.
11169         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11170         itself into REG_EQUAL note.
11172 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11174         * config/freebsd.opt (posix, rdynamic): New Driver options.
11176 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11178         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11179         -Bstatic/-Bdynamic.
11180         * configure: Regenerate.
11182 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
11184         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11185         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11187 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
11189         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11190         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11191         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11192         (s390_preferred_reload_class): Make static. Change return and
11193         'rclass' argument type to reg_class_t.
11195 2011-01-27  Jan Hubicka  <jh@suse.cz>
11197         PR middle-end/46949
11198         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11199         (process_function_and_variable_attributes): Check defined weakrefs.
11201 2011-01-27  Martin Jambor  <mjambor@suse.cz>
11203         PR tree-optimization/47228
11204         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11205         build_ref_for_offset.
11207 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11209         * config/spu/spu-elf.h (ASM_SPEC): Remove.
11211 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
11213         PR rtl-optimization/46856
11214         * postreload.c (reload_combine_recognize_const_pattern): Do not
11215         separate cc0 setter and user on cc0 targets.
11217 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
11219         PR c/43082
11220         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11221         passed a VOID_TYPE expression, immediately emit an error and
11222         return error_mark_node.
11224 2011-01-26  Jeff Law  <law@redhat.com>
11226         PR rtl-optimization/47464
11227         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11228         rather than may_trap_p as needed.
11230 2011-01-26  DJ Delorie  <dj@redhat.com>
11232         PR rtl-optimization/46878
11233         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11234         setter/user dependency as well.
11236 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11238         PR rtl-optimization/44469
11239         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11240         after removing trivially dead basic blocks.
11242 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11244         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11245         * config/frv/frv.h (LINK_SPEC): Likewise.
11246         * config/i386/netware.h (LINK_SPEC): Likewise.
11247         * config/m68k/linux.h (ASM_SPEC): Likewise.
11248         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11249         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11250         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11251         * config/sparc/linux.h (ASM_SPEC): Likewise.
11252         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11253         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11255 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11257         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11258         * config/frv/frv.h (ASM_SPEC): Likewise.
11259         * config/m68k/linux.h (ASM_SPEC): Likewise.
11260         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11261         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11262         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11263         * config/sparc/linux.h (ASM_SPEC): Likewise.
11264         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11265         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11267 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11269         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11270         * config/frv/frv.h (LINK_SPEC): Likewise.
11271         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11273 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11275         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11276         * config/frv/frv.h (ASM_SPEC): Likewise.
11277         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11278         * config/m68k/linux.h (ASM_SPEC): Likewise.
11279         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11280         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11281         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11282         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11283         * config/sparc/linux.h (ASM_SPEC): Likewise.
11284         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11285         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11286         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11288 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
11290         PR target/46997
11291         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11292         (*mux2): Ditto.
11293         (vec_extract_evenodd_help): Ditto.
11294         (vec_extract_evenv4hi): Ditto.
11295         (vec_extract_oddv4hi): Ditto.
11296         (vec_interleave_lowv2si): Ditto.
11297         (vec_interleave_highv2si): Ditto.
11298         (vec_extract_evenv2si): Ditto.
11299         (vec_extract_oddv2si: Ditto.
11300         (vec_pack_trunc_v2si): Ditto.
11302 2011-01-22  Jan Hubicka  <jh@suse.cz>
11304         PR target/47237
11305         * cgraph.h (cgraph_local_info): New field can_change_signature.
11306         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11307         signature can change.
11308         (ipcp_estimate_growth): Call sequence simplify only if calle signature
11309         can change.
11310         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11311         (cgraph_function_versioning): We can not change signature of functions
11312         that don't allow that.
11313         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11314         (lto_input_node): Likewise.
11315         * ipa-inline.c (compute_inline_parameters): Compute
11316         local.can_change_signature.
11317         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11318         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11319         functions that can not change signature.
11320         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11321         init_cumulative_args): Do not use local calling conventions
11322         for functions that can not change signature.
11324 2011-01-22  Jan Hubicka  <jh@suse.cz>
11326         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11328 2011-01-26  Richard Guenther  <rguenther@suse.de>
11330         PR tree-optimization/47190
11331         * cgraphunit.c (process_common_attributes): New function.
11332         (process_function_and_variable_attributes): Use it.
11334 2011-01-26  Richard Guenther  <rguenther@suse.de>
11336         PR lto/47423
11337         * cgraphbuild.c (record_eh_tables): Record reference to personality
11338         function.
11340 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
11342         PR debug/45454
11343         * sel-sched.c (moveup_expr): Don't let debug insns prevent
11344         non-debug insns from moving up.
11346 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11348         PR target/40125
11349         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11350         t-dlldir{,-x} fragment for build and add it to tmake_file.
11351         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11352         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11353         * config/i386/t-dlldir: New file.
11354         (SHLIB_DLLDIR): Define.
11355         * config/i386/t-dlldir-x: New file.
11356         (SHLIB_DLLDIR): Define.
11357         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11358         (SHLIB_INSTALL): Use it.
11360 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
11362         PR target/47246
11363         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11364         lower bound of the allowed Thumb-2 coprocessor load/store
11365         index range to -256. Add explaining comment.
11367 2011-01-25  Ian Lance Taylor  <iant@google.com>
11369         * godump.c (go_define): Improve lexing of macro expansion to only
11370         accept expressions which match Go spec.
11372 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11374         PR c++/43601
11375         * tree.c (handle_dll_attribute): Handle it.
11376         * doc/extend.texi (@item dllexport): Mention it.
11377         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11379 2011-01-25  Ian Lance Taylor  <iant@google.com>
11381         PR tree-optimization/26854
11382         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11383         (decl_jump_unsafe): Move higher in file, with no other change.
11384         (bind): Set has_jump_unsafe_decl if appropriate.
11385         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11386         (check_earlier_gotos): Likewise.
11387         (c_check_switch_jump_warnings): Likewise.
11389 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
11391         * doc/invoke.texi (Warning Options): Add missing hyphen.
11392         (-fprofile-dir): Minor grammatical fixes.
11393         (-fbranch-probabilities): Likewise.
11395 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11397         PR debug/45136
11398         PR debug/45130
11399         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11400         debug insns.
11401         (no_real_insns_p, schedule_block, set_priorities): Drop special
11402         treatment of boundary debug insns.
11403         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11404         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11405         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11406         (BOUNDARY_DEBUG_INSN_P): Likewise.
11407         (SCHEDULE_DEBUG_INSN_P): Likewise.
11408         * sched-rgn.c (init_ready_list): Drop special treatment of
11409         boundary debug insns.
11410         * final.c (rest_of_clean-state): Clear notes' BB.
11412 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11414         * Makefile.in (LAMBDA_H): Removed.
11415         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11416         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11417         lambda-trans.o, and tree-loop-linear.o.
11418         (lto-symtab.o): Remove dependence on LAMBDA_H.
11419         (tree-loop-linear.o): Remove rule.
11420         (lambda-mat.o): Same.
11421         (lambda-trans.o): Same.
11422         (lambda-code.o): Same.
11423         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11424         (tree-vect-slp.o): Same.
11425         * hwint.h (gcd): Moved here.
11426         (least_common_multiple): Same.
11427         * lambda-code.c: Removed.
11428         * lambda-mat.c: Removed.
11429         * lambda-trans.c: Removed.
11430         * lambda.h: Removed.
11431         * tree-loop-linear.c: Removed.
11432         * lto-symtab.c: Do not include lambda.h.
11433         * omega.c (gcd): Removed.
11434         * passes.c (init_optimization_passes): Remove pass_linear_transform.
11435         * tree-data-ref.c (print_lambda_vector): Moved here.
11436         (lambda_vector_copy): Same.
11437         (lambda_matrix_copy): Same.
11438         (lambda_matrix_id): Same.
11439         (lambda_vector_first_nz): Same.
11440         (lambda_matrix_row_add): Same.
11441         (lambda_matrix_row_exchange): Same.
11442         (lambda_vector_mult_const): Same.
11443         (lambda_vector_negate): Same.
11444         (lambda_matrix_row_negate): Same.
11445         (lambda_vector_equal): Same.
11446         (lambda_matrix_right_hermite): Same.
11447         * tree-data-ref.h: Do not include lambda.h.
11448         (lambda_vector): Moved here.
11449         (lambda_matrix): Same.
11450         (dependence_level): Same.
11451         (lambda_transform_legal_p): Removed declaration.
11452         (lambda_collect_parameters): Same.
11453         (lambda_compute_access_matrices): Same.
11454         (lambda_vector_gcd): Same.
11455         (lambda_vector_new): Same.
11456         (lambda_vector_clear): Same.
11457         (lambda_vector_lexico_pos): Same.
11458         (lambda_vector_zerop): Same.
11459         (lambda_matrix_new): Same.
11460         * tree-flow.h (least_common_multiple): Removed declaration.
11461         * tree-parloops.c (lambda_trans_matrix): Moved here.
11462         (LTM_MATRIX): Same.
11463         (LTM_ROWSIZE): Same.
11464         (LTM_COLSIZE): Same.
11465         (LTM_DENOMINATOR): Same.
11466         (lambda_trans_matrix_new): Same.
11467         (lambda_matrix_vector_mult): Same.
11468         (lambda_transform_legal_p): Same.
11469         * tree-pass.h (pass_linear_transform): Removed declaration.
11470         * tree-ssa-loop.c (tree_linear_transform): Removed.
11471         (gate_tree_linear_transform): Removed.
11472         (pass_linear_transform): Removed.
11473         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11474         flag_loop_interchange.
11476 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11478         PR tree-optimization/47265
11479         PR tree-optimization/47443
11480         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11481         if name still has some uses.
11483 2011-01-25  Martin Jambor  <mjambor@suse.cz>
11485         PR tree-optimization/47382
11486         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11487         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11489 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
11491         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11492         sjlj_except_unwind_info.
11494 2011-01-25  Richard Guenther  <rguenther@suse.de>
11496         PR tree-optimization/47426
11497         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11498         visible functions results escape.
11500 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11502         PR target/45701
11503         * config/arm/arm.c (any_sibcall_uses_r3): New function.
11504         (arm_get_frame_offsets): Use it.
11506 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11507             Jakub Jelinek  <jakub@redhat.com>
11509         PR tree-optimization/47271
11510         * tree-if-conv.c (bb_postdominates_preds): New.
11511         (if_convertible_bb_p): Call bb_postdominates_preds.
11512         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11513         (predicate_scalar_phi): Call bb_postdominates_preds.
11515 2011-01-25  Nick Clifton  <nickc@redhat.com>
11517         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11518         * config/rx/rx.c (rx_function_value): Likewise.
11519         (rx_promote_function_mode): Likewise.
11520         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11521         in order to make it legitimate.
11522         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11523         make sure that the first operand is the same as the result register.
11524         (addsi3_unspec): Delete.
11525         (subdi3): Do not accept immediate operands.
11526         (subdi3_internal): Likewise.
11528 2011-01-25  Jeff Law  <law@redhat.com>
11530         PR rtl-optimization/37273
11531         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11532         handle them like argument loads from stack slots.  Do not double
11533         count memory for memory constants and argument loads from stack slots.
11535 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11537         PR tree-optimization/47427
11538         PR tree-optimization/47428
11539         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11540         coalesce if the new root var would be TREE_READONLY.
11542 2011-01-25  Richard Guenther  <rguenther@suse.de>
11544         PR middle-end/47414
11545         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11546         correct type for TBAA.
11548 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11550         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11551         (close_phi_written_to_memory): Call for_each_index with
11552         dr_indices_valid_in_loop.
11554 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11556         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11557         when it is initialized.
11559 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11561         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11562         call to graphite_find_data_references_in_stmt.
11563         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11564         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
11565         call to graphite_find_data_references_in_stmt.
11566         (analyze_drs_in_stmts): Same.
11567         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11568         in which the scalar analysis of indices is performed.
11569         (create_data_ref): Same.  Update call to dr_analyze_indices.
11570         (find_data_references_in_stmt): Update call to create_data_ref.
11571         (graphite_find_data_references_in_stmt): Same.
11572         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11573         declaration.
11574         (create_data_ref): Same.
11575         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11576         call to create_data_ref.
11578 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11580         * graphite-sese-to-poly.c (build_poly_scop): Move
11581         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11583 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11585         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11586         VAR_DECL, PARM_DECL, and RESULT_DECL.
11588 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11590         * graphite-dependences.c (reduction_dr_1): Allow several reductions
11591         in a reduction PBB.
11592         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11593         that have already been marked as PBB_IS_REDUCTION.
11595 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11597         * graphite-scop-detection.c (same_close_phi_node): New.
11598         (remove_duplicate_close_phi): New.
11599         (make_close_phi_nodes_unique): New.
11600         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11602 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11604         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11605         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11606         of both data references to be the same.
11608 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11610         * graphite-dependences.c (build_lexicographical_constraint): Remove
11611         the gdim parameter.
11612         (build_lexicographical_constraint): Adjust call to
11613         ppl_powerset_is_empty.
11614         (dependence_polyhedron): Same.
11615         (graphite_legal_transform_dr): Same.
11616         (graphite_carried_dependence_level_k): Same.
11617         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11618         parameter.
11619         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11621 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11623         * graphite-sese-to-poly.c
11624         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11625         (close_phi_written_to_memory): New.
11626         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11627         and unshare_expr.
11629 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11631         * doc/install.texi: Update the expected version number of PPL to 0.11.
11632         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11633         #if PPL_VERSION_MINOR < 11.
11635 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11637         * graphite-dependences.c: Include graphite-cloog-util.h.
11638         (new_poly_ddr): Inlined into dependence_polyhedron.
11639         (free_poly_ddr): Moved close by new_poly_ddr.
11640         (dependence_polyhedron_1): Renamed dependence_polyhedron.
11641         Early return NULL when ppl_powerset_is_empty returns true.
11642         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
11643         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
11644         (graphite_legal_transform_dr): Call new_poly_ddr.
11645         (graphite_carried_dependence_level_k): Same.
11646         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
11647         (dot_transformed_deps_stmt_1): Removed.
11648         (dot_deps_stmt_1): Call dot_deps_stmt_2.
11649         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
11650         (dot_deps_1): Call dot_deps_2.
11651         * Makefile.in (graphite-dependences.o): Add missing dependence on
11652         graphite-cloog-util.h.
11654 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11656         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11657         (build_lexicographical_constraint): Same.
11658         (dependence_polyhedron_1): Same.
11659         (graphite_legal_transform_dr): Same.
11660         (graphite_carried_dependence_level_k): Same.
11661         * graphite-ppl.c (ppl_powerset_is_empty): New.
11662         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11663         * tree-data-ref.c (dump_data_reference): Print the basic block index.
11665 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11667         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11668         the "a followed by b" relation and document it.
11670 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11672         * graphite-dependences.c (build_lexicographical_constraint): Stop the
11673         iteration when the bag of constraints is empty.
11675 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11677         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11679 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11681         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11682         nest and two loop depths as parameters.
11683         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11684         lst_perfect_nestify.
11686 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11688         * graphite-dependences.c (print_pddr): Call
11689         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11691 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11693         * graphite-ppl.c (debug_gmp_value): New.
11694         * graphite-ppl.h (debug_gmp_value): Declared.
11696 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
11698         * doc/install.texi: Document availability of cloog-0.16.
11700 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
11702         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11703         invalid postdominance info.
11705 2011-01-24  Jan Hubicka  <jh@suse.cz>
11707         PR c/21659
11708         * doc/extend.texi (weak pragma): Drop claim that it must
11709         appear before definition.
11710         * varasm.c (merge_weak, declare_weak): Only sanity check
11711         that DECL is not output at a time it is declared weak.
11713 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
11715         * machmode.def: Fixed comments.
11717 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
11719         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11721 2011-01-24  Paul Koning  <ni1d@arrl.net>
11723         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11724         WORDS_BIG_ENDIAN.
11726 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
11728         PR target/46519
11729         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11730         (block_info): Add scanned and prev.
11731         (move_or_delete_vzeroupper_2): Return if the basic block
11732         has been scanned and the upper 128bit state is unchanged
11733         from the last scan.
11734         (move_or_delete_vzeroupper_1): Return true if the exit
11735         state is changed.
11736         (move_or_delete_vzeroupper): Visit basic blocks using the
11737         work-list based algorithm based on vt_find_locations in
11738         var-tracking.c.
11740         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11742 2011-01-24  Nick Clifton  <nickc@redhat.com>
11744         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11745         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11746         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
11747         then define __v850e1__.
11748         * doc/invoke.texi: Document -mv850es.
11750 2011-01-24  Richard Henderson  <rth@redhat.com>
11752         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11753         compound unordered comparisons.
11754         * config/rx/rx.c (rx_split_fp_compare): Remove.
11755         * config/rx/rx-protos.h: Update.
11756         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11757         (cbranchsf4): Don't call rx_split_fp_compare.
11758         (*cbranchsf4): Use rx_split_cbranch.
11759         (*cmpsf): Don't accept "i" constraint.
11760         (*conditional_branch): Only valid after reload.
11761         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
11763 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11765         PR target/47385
11766         * config/rs6000/altivec.md (vector constant splitters): Add
11767         support for creating vector single precision constants if -mvsx is
11768         used and we would create the constant using Altivec primitives.
11770 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
11771             Richard Sandiford  <rdsandiford@googlemail.com>
11773         PR rtl-optimization/47166
11774         * reload1.c (emit_reload_insns): Disable the spill_reg_store
11775         mechanism for PRE_MODIFY and POST_MODIFY.
11776         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
11777         reloadreg.
11779 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
11781         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
11783 2011-01-22  Jan Hubicka  <jh@suse.cz>
11785         PR lto/47333
11786         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
11788 2011-01-22  Jan Hubicka  <jh@suse.cz>
11790         PR tree-optimization/43884
11791         PR lto/44334
11792         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
11793         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
11795 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
11797         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11798         * config/s390/s390.c (s390_register_move_cost,
11799         s390_memory_move_cost): New.
11800         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11802 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11804         PR middle-end/47401
11805         * except.c (sjlj_assign_call_site_values): Move setting the
11806         crtl->uses_eh_lsda flag to ...
11807         (sjlj_mark_call_sites): ... here.
11808         (sjlj_emit_function_enter): Support NULL dispatch label.
11809         (sjlj_build_landing_pads): In a function with no landing pads
11810         that still has must-not-throw regions, generate code to register
11811         a personality function with empty LSDA.
11813 2011-01-21  Richard Henderson  <rth@redhat.com>
11815         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
11817         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
11819         * compare-elim.c: New file.
11820         * Makefile.in (OBJS-common): Add it.
11821         (compare-elim.o): New.
11822         * common.opt (fcompare-elim): New.
11823         * opts.c (default_options_table): Add OPT_fcompare_elim.
11824         * tree-pass.h (pass_compare_elim_after_reload): New.
11825         * passes.c (init_optimization_passes): Add it.
11826         * recog.h: Protect against re-inclusion.
11827         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
11828         * doc/invoke.texi (-fcompare-elim): Document it.
11829         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
11830         * doc/tm.texi: Rebuild.
11832 2011-01-22  Nick Clifton  <nickc@redhat.com>
11834         * config/rx/rx.md (cstoresf4): Pass comparison operator to
11835         rx_split_fp_compare.
11837 2011-01-22  Nick Clifton  <nickc@redhat.com>
11839         * config/rx/rx.md (UNSPEC_CONST): New.
11840         (deallocate_and_return): Wrap the amount popped off the stack in
11841         an UNSPEC_CONST in order to stop it being rejected by
11842         -mmax-constant-size.
11843         (pop_and_return): Add a "(return)" rtx.
11844         (call): Drop the immediate operand.
11845         (call_internal): Likewise.
11846         (call_value): Likewise.
11847         (call_value_internal): Likewise.
11848         (sibcall_internal): Likewise.
11849         (sibcall_value_internal): Likewise.
11850         (sibcall): Likewise.  Generate an explicit call using
11851         sibcall_internal.
11852         (sibcall_value): Likewise.
11853         (mov<>): FAIL if a constant operand is not legitimate.
11854         (addsi3_unpsec): New pattern.
11856         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
11857         (ok_for_max_constant): New function.
11858         (gen_safe_add): New function.
11859         (rx_expand_prologue): Use gen_safe_add.
11860         (rx_expand_epilogue): Likewise.
11861         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
11862         UNSPEC CONSTs.
11864 2011-01-21  Jeff Law  <law@redhat.com>
11866         PR tree-optimization/47053
11867         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
11868         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
11869         statements are deleted.
11870         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
11871         is nonempty, then purge dead edges and cleanup the CFG.
11873 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
11875         PR debug/47402
11876         Temporarily revert:
11877         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
11878         PR debug/47106
11879         * tree-dfa.c (create_var_ann): Mark variable as used.
11881 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
11883         PR middle-end/45566
11884         * except.c (convert_to_eh_region_ranges): Emit queued no-region
11885         notes from other section in hot/cold partitioning even if
11886         last_action is -3.  Increment call_site_base.
11888         PR rtl-optimization/47366
11889         * fwprop.c (forward_propagate_into): Return bool.  If
11890         any changes are made, -fnon-call-exceptions is used and
11891         REG_EH_REGION note is present, call purge_dead_edges
11892         and return true if it purged anything.
11893         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
11894         any EH edges were purged.
11896 2011-01-21  Jeff Law  <law@redhat.com>
11898         PR rtl-optimization/41619
11899         * caller-save.c (setup_save_areas): Break out code to determine
11900         which hard regs are live across calls by examining the reload chains
11901         so that it is always used.
11902         Eliminate code which checked REG_N_CALLS_CROSSED.
11904 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
11906         PR tree-optimization/47355
11907         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
11908         NOP has non-debug uses beyond PHIs in new_bb.
11910 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
11912         PR debug/47106
11913         * cfgexpand.c (account_used_vars_for_block): Only account vars
11914         that are annotated as used.
11915         (estimated_stack_frame_size): Don't set TREE_USED.
11916         * tree-dfa.c (create_var_ann): Mark variable as used.
11918 2011-01-21  Richard Guenther  <rguenther@suse.de>
11920         PR middle-end/47395
11921         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
11923 2011-01-21  Richard Guenther  <rguenther@suse.de>
11925         PR tree-optimization/47365
11926         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
11927         (vn_reference_lookup_pieces): Adjust.
11928         (vn_reference_lookup): Likewise.
11929         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
11930         (vn_reference_lookup_3): Only look through kills if in
11931         VN_WALKREWRITE mode.
11932         (vn_reference_lookup_pieces): Adjust.
11933         (vn_reference_lookup): Likewise.
11934         (visit_reference_op_load): Likewise.
11935         (visit_reference_op_store): Likewise.
11936         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
11937         (compute_avail): Likewise.
11938         (eliminate): Likewise.
11940 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
11942         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
11943         DECL_IGNORED_P non-reg vars if they are used.
11945         PR tree-optimization/47391
11946         * varpool.c (const_value_known_p): Return false if
11947         decl is volatile.
11949 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
11951         PR bootstrap/47215
11952         * config/i386/i386.c (ix86_local_alignment): Handle
11953         case for va_list_type_node is nil.
11954         (ix86_canonical_va_list_type): Likewise.
11956 2011-01-21  Alan Modra  <amodra@gmail.com>
11958         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
11959         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
11961 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11963         * config/arm/arm.md (define_attr type): Rename f_load
11964         and f_store to f_fpa_load and f_fpa_store. Update.
11965         (write_conflict): Deal with rename fallout.
11966         (*push_fp_multi): Likewise.
11967         * config/arm/fpa.md (f_load): Use f_fpa_load.
11968         (f_store): Use f_fpa_store.
11969         (*movsf_fpa): Likewise.
11970         (*movdf_fpa): Likewise.
11971         (*movxf_fpa): Likewise.
11972         (*thumb2_movsf_fpa): Likewise.
11973         (*thumb2_movdf_fpa): Likewise.
11974         (*thumb2_movxf_fpa): Likewise.
11975         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
11976         f_loadd and f_stored.
11977         (*thumb2_movdi_vfp): Likewise.
11978         (*thumb2_movsf_vfp): Fix attribute to f_loads.
11979         (*thumb2_movsi_vfp): Likewise.
11980         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
11981         Use f_loads instead of f_load.
11982         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
11984 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
11986         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11987         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
11988         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11989         (xtensa_mode_dependent_address_p): New function.
11990         (constantpool_address_p): Make static. Change return type to bool.
11991         Change argument type to const_rtx. Use CONST_INT_P predicate.
11993 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
11995         PR debug/46583
11996         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
11998 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12000         PR debug/47283
12001         * cfgexpand.c (expand_debug_expr): Instead of generating
12002         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12003         etc. handling.
12005 2011-01-20  Richard Guenther  <rguenther@suse.de>
12007         PR middle-end/47370
12008         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12009         the pointer operand of MEM_REFs.
12011 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12013         PR tree-optimization/46130
12014         * ipa-split.c (consider_split): If return_bb contains non-virtual
12015         PHIs other than for retval or if split_function would not adjust it,
12016         refuse to split.
12018 2011-01-20  Richard Guenther  <rguenther@suse.de>
12020         PR tree-optimization/47167
12021         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12022         Revert previous change, only avoid enumeral type changes.
12024 2011-01-19  Mike Stump  <mikestump@comcast.net>
12026         * doc/tm.texi.in (BRANCH_COST): Englishify.
12027         * doc/tm.texi (BRANCH_COST): Likewise.
12029 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12031         PR c++/47291
12032         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12033         (gen_scheduled_generic_parms_dies): New functions.
12034         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12035         generation for the end of CU compilation.
12036         (dwarf2out_finish): Generate template parameters DIEs here.
12038 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12040         PR debug/46240
12041         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12042         debug bind stmt on merge edges.
12044 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12046         PR debug/47079
12047         PR debug/46724
12048         * function.c (instantiate_expr): Instantiate incoming rtl of
12049         implicit arguments, and recurse on VALUE_EXPRs.
12050         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12051         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12053 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12055         * c-parser.c (c_parser_for_statement): Initialize
12056         collection_expression.
12058 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12060         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12062 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12064         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12065         (LINK_SHLIB_SPEC): Don't use %(link_path).
12066         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12068 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12070         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12071         (NO_SHARED_LIB_SUPPORT): Remove.
12072         (LINK_SHLIB_SPEC): Remove one conditional definition.
12074 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12076         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12077         %{call_shared}.
12078         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12079         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12080         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12081         %{call_shared} and conditionals on these options not being passed.
12082         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12083         %{call_shared}.
12085 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12087         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12088         simplify.
12090         * ipa-split.c: Spelling fixes.
12092 2011-01-19  Richard Henderson  <rth@redhat.com>
12094         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12095         (*mulsi3): Likewise.
12097         * longlong.h [__mn10300__] (count_leading_zeros): New.
12098         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12099         [__mn10300__] (add_ssaaaa, subddmmss): New.
12100         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12101         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12103 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12105         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12107 2011-01-19  Richard Henderson  <rth@redhat.com>
12109         * config/mn10300/mn10300.md (addsi3_flags): New.
12110         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12111         (subsi3_flags, subc_internal, subdi3): New.
12112         (subdi3_internal, *subdi3_degenerate): New.
12113         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12115         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12116         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12117         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12118         * config/mn10300/mn10300-protos.h: Update.
12119         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12120         (return_ret): Likewise.  Rename from return_internal_regs.
12121         (return_internal): Remove.
12123         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12124         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12125         (mn10300_legitimate_constant_p): Likewise.
12126         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12127         (mn10300_frame_size): New.
12128         (mn10300_expand_prologue): Use it.
12129         (mn10300_expand_epilogue): Likewise.
12130         (mn10300_initial_offset): Likewise.
12131         * config/mn10300/mn10300-protos.h: Update.
12132         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12133         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12134         (prologue, epilogue, return_internal): Tidy output code.
12135         (mn10300_store_multiple_operation, return): Likewise.
12136         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12137         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12138         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12139         (load_pic, am33_load_pic): New.
12140         (mn10300_load_pic0, mn10300_load_pic1): New.
12142         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12143         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12144         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12145         (cc_flags_for_mode, cc_flags_for_code): New.
12146         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12147         overflow flag is not valid.  Validate that the flags we need
12148         for the comparison are valid.
12149         (mn10300_output_cmp): Remove.
12150         (mn10300_output_add): New.
12151         (mn10300_select_cc_mode): Use cc_flags_for_code.
12152         (mn10300_split_cbranch): New.
12153         (mn10300_match_ccmode): New.
12154         (mn10300_split_and_operand_count): New.
12155         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12156         to the function.
12157         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12158         (addsi3): ... here.  Use mn10300_output_add.
12159         (*addsi3_flags): New.
12160         (*am33_subsi3, *mn10300_subsi3): Merge...
12161         (subsi3): ... here.  Use attribute isa.
12162         (*subsi3_flags): New.
12163         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12164         when possible.
12165         (*am33_andsi3, *mn10300_andsi3): Merge...
12166         (andsi3): ... here.
12167         (*andsi3_flags): New.
12168         (andsi3 splitters): New.
12169         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12170         (iorsi3): ... here.
12171         (*iorsi3_flags): New.
12172         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12173         (xorsi3): ... here.
12174         (*xorsi3_flags): New.
12175         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12176         (one_cmplsi2): ... here.
12177         (*one_cmplsi2_flags): New.
12178         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
12179         instead of "dax" in constraints.  Use mn10300_split_cbranch.
12180         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
12181         use matching constraints to eliminate a self-comparison.
12182         (*integer_conditional_branch): Rename from integer_conditional_branch.
12183         Use int_mode_flags to match CC_REG.
12184         (*cbranchsi4_btst, *btstsi): New.
12185         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
12186         mn10300_split_cbranch.
12187         (*am33_cmpsf): Rename from am33_cmpsf.
12188         (*float_conditional_branch): Rename from float_conditional_branch.
12189         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12190         (zero_extendqisi2): ... here.
12191         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12192         (zero_extendhisi2): ... here.
12193         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12194         (extendqisi2): ... here.
12195         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12196         (extendhisi2): ... here.
12197         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12198         (ashlsi3): ... here.
12199         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12200         (lshrsi3): ... here.
12201         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12202         (ashrsi3): ... here.
12203         (consecutive add peephole): Remove.
12204         * config/mn10300/predicates.md (label_ref_operand): New.
12205         (int_mode_flags): New.
12206         (CCZN_comparison_operator): New.
12208         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12209         (throughput_42_latency_43): New reservation.
12210         (mulsidi3, umulsidi3): New expanders.
12211         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
12212         the MDR register to allocation; separately allocate the low and
12213         high parts of the DImode result.
12214         (umulsidi3_internal): Similarly.
12215         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12216         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
12217         (udivsi3, umodsi3): Remove.
12218         (udivmodsi4, divmodsi4): New expanders.
12219         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
12220         (*divmodsi4): Simiarly.
12221         (ext_internal): New.
12223         * config/mn10300/constraints.md ("z"): New constraint.
12224         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12225         (FIXED_REGISTERS): Don't fix MDR.
12226         (CALL_USED_REGSITERS): Reformat nicely.
12227         (REG_ALLOC_ORDER): Add MDR.
12228         (enum regclass): Add MDR_REGS.
12229         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12230         (IRA_COVER_CLASSES): Add MDR_REGS.
12231         (REGNO_REG_CLASS): Handle MDR_REG.
12232         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12233         (mn10300_register_move_cost): Likewise.
12234         * config/mn10300/mn10300.md (MDR_REG): New.
12235         (*movsi_internal): Handle moves to/from MDR_REGS.
12237         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12238         POST_MODIFY.
12239         (mn10300_secondary_reload): Tidy combination reload classes.
12240         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12241         addresses for AM33.  Allow symbolic offsets for reg+imm.
12242         (mn10300_regno_in_class_p): New.
12243         (mn10300_legitimize_reload_address): New.
12244         * config/mn10300/mn10300.h (enum reg_class): Remove
12245         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12246         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
12247         SP_OR_GENERAL_REGS.
12248         (REG_CLASS_NAMES): Update to match.
12249         (REG_CLASS_CONTENTS): Likewise.
12250         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12251         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12252         (REGNO_IN_RANGE_P): Remove.
12253         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12254         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12255         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12256         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12257         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12258         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12259         (REGNO_GENERAL_P): New.
12260         (HAVE_POST_MODIFY_DISP): New.
12261         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12262         (LEGITIMIZE_RELOAD_ADDRESS): New.
12263         * config/mn10300/mn10300-protos.h: Update.
12265         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12266         DATA_REGS for AM33 stack-pointer destination.
12267         (mn10300_preferred_output_reload_class): Likewise.
12268         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12269         into a form appropriate for ...
12270         (TARGET_SECONDARY_RELOAD): New.
12271         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12272         * config/mn10300/mn10300-protos.h: Update.
12273         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12274         reload_insi; use the "A" constraint for the scratch; handle AM33
12275         moves of sp to non-address registers.
12277         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12278         (*movqi_internal): ... here.
12279         (*am33_movhi, *mn10300_movhi): Merge into...
12280         (*movhi_internal): ... here.
12281         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
12282         as the source/destination of moves from/to SP.
12283         (movsf): Only allow for AM33-2.
12284         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12285         any integer constant constraint.  Only allow for AM33-2.  Tidy
12286         all of the alternative outputs.
12287         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12288         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
12289         for MN103.
12290         (udivsi3, umodsi3): New patterns for MN103 only.
12292 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
12294         * doc/tm.texi.in: Spell out that a lack of register class unions
12295         can lead to ICEs.
12296         * doc/tm.texi: Regenerate.
12298 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12300         PR rtl-optimization/47337
12301         * dce.c (check_argument_store): New function.
12302         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
12304         PR tree-optimization/47290
12305         * tree-eh.c (infinite_empty_loop_p): New function.
12306         (cleanup_empty_eh): Use it.
12308 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
12310         PR target/46997
12311         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12312         (a64_expand_widen_sum): Ditto.
12313         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12314         (vec_extract_evenodd_help): Ditto.
12315         (vec_extract_evenv4hi): Ditto.
12316         (vec_extract_oddv4hi): Ditto.
12317         (vec_extract_evenv2si): Ditto.
12318         (vec_extract_oddv2si): Ditto.
12319         (vec_extract_evenv2sf): Ditto.
12320         (vec_extract_oddv2sf): Ditto.
12321         (vec_pack_trunc_v4hi: Ditto.
12322         (vec_pack_trunc_v2si): Ditto.
12323         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12324         (vec_interleave_highv8qi): Ditto.
12325         (mix1_r): Ditto.
12326         (vec_extract_oddv8qi): Ditto.
12327         (vec_interleave_lowv4hi): Ditto.
12328         (vec_interleave_highv4hi): Ditto.
12329         (vec_interleave_lowv2si): Ditto.
12330         (vec_interleave_highv2si): Ditto.
12332 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12334         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12335         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12336         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
12337         (pa_c_mode_for_suffix): New.
12338         (TARGET_EXPAND_BUILTIN): Define.
12339         (TARGET_C_MODE_FOR_SUFFIX): Define.
12340         (pa_builtins): Define.
12341         (pa_init_builtins): Register __float128 type and init new support
12342         builtins.
12343         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12344         * config/pa/quadlib.c (_U_Qfcopysign): New.
12346 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
12348         PR middle-end/46894
12349         * explow.c (allocate_dynamic_stack_space): Do not assume more than
12350         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12351         are defined.
12353 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12355         PR tree-optimization/47179
12356         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12357         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12359 2011-01-18  Richard Guenther  <rguenther@suse.de>
12361         PR rtl-optimization/47216
12362         * emit-rtl.c: Include tree-flow.h.
12363         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12364         of replicating it with different semantics.
12365         * Makefile.in (emit-rtl.o): Adjust.
12367 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12369         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12370         (cortex_a9_dp): Handle neon types correctly.
12372 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
12374         PR rtl-optimization/47299
12375         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12376         subtarget.  Use normal multiplication if both operands are constants.
12377         * expmed.c (expand_widening_mult): Don't try to optimize constant
12378         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
12379         before using it.
12381 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12383         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
12384         spacing after 'e.g.', typos, comma, hyphenation.
12386 2011-01-17  Richard Henderson  <rth@redhat.com>
12388         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12389         (rx_restricted_mem_operand): New.
12390         (rx_shift_operand): Use register_operand.
12391         (rx_source_operand, rx_compare_operand): Likewise.
12392         * config/rx/rx.md (addsi3_flags): New expander.
12393         (adddi3): Rewrite as expander.
12394         (adc_internal, *adc_flags, adddi3_internal): New patterns.
12395         (subsi3_flags): New expander.
12396         (subdi3): Rewrite as expander.
12397         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12399         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12400         (rx_init_builtins): Remove sat builtin.
12401         (rx_expand_builtin): Likewise.
12402         * config/rx/rx.md (ssaddsi3): New.
12403         (*sat): Rename from sat.  Represent the CC_REG input.
12405         * config/rx/predicates.md (rshift_operator): New.
12406         * config/rx/rx.c (rx_expand_insv): Remove.
12407         * config/rx/rx-protos.h: Update.
12408         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
12409         operand to the canonical position.
12410         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12411         (*bitclr, *bitclr_in_memory): Similarly.
12412         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12413         (insv): Retain the zero_extract in the expansion.
12415         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12416         (bswaphi2, bitinvert, revw): Likewise.
12418         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12419         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12420         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12421         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12422         (bitset, bitset_in_memory): Likewise.
12423         (bitinvert, bitinvert_in_memory): Likewise.
12424         (bitclr, bitclr_in_memory): Likewise.
12425         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12426         (rx_strend, rx_cmpstrn): Likewise.
12427         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
12428         (bitop peep2 patterns): Remove.
12430         * config/rx/rx.c (rx_match_ccmode): New.
12431         * config/rx/rx-protos.h: Update.
12432         * config/rx/rx.md (abssi2): Clobber, don't set flags.
12433         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12434         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12435         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12436         (fix_truncsfsi2, floatsisf2): Likewise.
12437         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12438         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12439         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12440         (*subsi3_flags, *xorsi3_flags): New.
12442         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12444         * config/rx/rx.c (rx_print_operand): Remove workaround for
12445         unsplit comparison operations.
12447         * config/rx/rx.md (movsicc): Split after reload.
12448         (*movsicc): Merge *movsieq and *movsine via match_operator.
12449         (*stcc): New pattern.
12451         * config/rx/rx.c (rx_float_compare_mode): Remove.
12452         * config/rx/rx.h (rx_float_compare_mode): Remove.
12453         * config/rx/rx.md (cstoresi4): Split after reload.
12454         (*sccc): New pattern.
12456         * config/rx/predicates.md (label_ref_operand): New.
12457         (rx_z_comparison_operator): New.
12458         (rx_zs_comparison_operator): New.
12459         (rx_fp_comparison_operator): New.
12460         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12461         Validate that the flags are set properly for the comparison.
12462         (rx_gen_cond_branch_template): Remove.
12463         (rx_cc_modes_compatible): Remove.
12464         (mode_from_flags): New.
12465         (flags_from_code): Rename from flags_needed_for_conditional.
12466         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12467         (rx_select_cc_mode): Likewise.
12468         (rx_split_fp_compare): New.
12469         (rx_split_cbranch): New.
12470         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12471         (*cbranchsi4): Use match_operator and rx_split_cbranch.
12472         (*cbranchsf4): Similarly.
12473         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
12474         match_operator and rx_split_cbranch.
12475         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12476         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
12477         (*cmpsi): Rename from cmpsi.
12478         (*tstsi): Rename from tstsi.
12479         (*cmpsf): Rename from cmpsf; use CC_Fmode.
12480         (*conditional_branch): Rename from conditional_branch.
12481         (*reveresed_conditional_branch): Remove.
12482         (b<code>): Remove expander.
12483         * config/rx/rx-protos.h: Update.
12485         * config/rx/rx.c (rx_compare_redundant): Remove.
12486         * config/rx/rx.md (cmpsi): Don't use it.
12487         * config/rx/rx-protos.h: Update.
12489         * config/rx/rx-modes.def (CC_F): New mode.
12490         * config/rx/rx.c (rx_select_cc_mode): New.
12491         * config/rx/rx.h (SELECT_CC_MODE): Use it.
12492         * config/rx/rx-protos.h: Update.
12494 2011-01-17  Richard Henderson  <rth@redhat.com>
12496         * except.c (dump_eh_tree): Fix stray ; after for statement.
12498 2011-01-17  Richard Guenther  <rguenther@suse.de>
12500         PR tree-optimization/47313
12501         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12502         handling before copying the body.  Properly deal with
12503         by-reference result in SSA form.
12505 2011-01-17  Ian Lance Taylor  <iant@google.com>
12507         PR target/47219
12508         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12509         (struct_value_alias_set): Don't define.
12510         (sparc_option_override): Don't set sparc_sr_alias_set and
12511         struct_value_alias_set.
12512         (save_or_restore_regs): Use gen_frame_mem rather than calling
12513         set_mem_alias_set.
12514         (sparc_struct_value_rtx): Likewise.
12516 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
12518         PR target/47318
12519         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12520         (_mm_maskstore_pd): Likewise.
12521         (_mm_maskload_ps): Likewise.
12522         (_mm_maskstore_ps): Likewise.
12523         (_mm256_maskload_pd): Change mask to __m256i.
12524         (_mm256_maskstore_pd): Likewise.
12525         (_mm256_maskload_ps): Likewise.
12526         (_mm256_maskstore_ps): Likewise.
12528         * config/i386/i386-builtin-types.def: Updated.
12529         (ix86_expand_special_args_builtin): Likewise.
12531         * config/i386/i386.c (bdesc_special_args): Update
12532         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12533         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12534         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12535         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12537         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12538         Use <avxpermvecmode> on mask register.
12539         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12541 2011-01-17  Olivier Hainque  <hainque@adacore.com>
12542             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12543             Eric Botcazou  <ebotcazou@adacore.com>
12545         PR target/46655
12546         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12547         if <= USHRT_MAX in 32-bit mode.
12549 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12551         * doc/install.texi (Configuration, Specific): Wrap long
12552         lines in examples.  Allow line wrapping in long options
12553         and URLs where beneficial for PDF output.
12555 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
12557         * config/mips/mips.c (mips_classify_symbol): Don't return
12558         SYMBOL_PC_RELATIVE for nonlocal labels.
12560 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
12562         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12564 2011-01-15  Jan Hubicka  <jh@suse.cz>
12566         PR tree-optimization/47276
12567         * ipa.c (function_and_variable_visibility): Do not try to mark alias
12568         declarations as needed.
12570 2011-01-15  Martin Jambor  <mjambor@suse.cz>
12572         * common.opt (fdevirtualize): New flag.
12573         * doc/invoke.texi (Option Summary): Document it.
12574         * opts.c (default_options_table): Add devirtualize flag.
12575         * ipa-prop.c (detect_type_change): Return immediately if
12576         devirtualize flag is not set.
12577         (detect_type_change_ssa): Likewise.
12578         (compute_known_type_jump_func): Likewise.
12579         (ipa_analyze_virtual_call_uses): Likewise.
12581 2011-01-14  Martin Jambor  <mjambor@suse.cz>
12583         PR tree-optimization/45934
12584         PR tree-optimization/46302
12585         * ipa-prop.c (type_change_info): New type.
12586         (stmt_may_be_vtbl_ptr_store): New function.
12587         (check_stmt_for_type_change): Likewise.
12588         (detect_type_change): Likewise.
12589         (detect_type_change_ssa): Likewise.
12590         (compute_complex_assign_jump_func): Check for dynamic type change.
12591         (compute_complex_ancestor_jump_func): Likewise.
12592         (compute_known_type_jump_func): Likewise.
12593         (compute_scalar_jump_functions): Likewise.
12594         (ipa_analyze_virtual_call_uses): Likewise.
12595         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12597 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12599         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12600         * config/i386/i386.opt (msse5): New Alias.
12602 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12604         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12605         * config/sparc/linux64.h (CC1_SPEC): Likewise.
12606         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12607         * config/sparc/sparc.h (CC1_SPEC): Likewise.
12609 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12611         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12612         -mcpu options.
12613         * config/sparc/linux64.h (CC1_SPEC): Likewise.
12614         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12615         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12616         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12617         Likewise.
12618         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12620 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12622         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12624 2011-01-14  Mike Stump  <mikestump@comcast.net>
12626         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12627         * config/fr30/fr30.md: Likweise
12628         (movsi_push): Likewise.
12629         (movsi_pop): Likewise.
12630         (enter_func): Likewise.
12631         * config/moxie/moxie.md (movsi_push): Likewise.
12632         (movsi_pop): Likewise.
12634 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12636         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12637         %{no_archive} %{exact_version}.
12638         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12639         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12640         %{no_archive} %{exact_version}.
12641         * config/mips/openbsd.h (LINK_SPEC): Likewise.
12642         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12643         * config/mips/vxworks.h: Likewise.
12645 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12647         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12649 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12651         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12652         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12654 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12656         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12657         -nodefaultlib.
12659 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12661         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12662         for mcpu not cpu.
12663         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12664         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12665         not cpu.
12666         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12667         Don't handle -shlib.
12669 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12671         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12672         (CC1_SPEC): Don't handle -profile.
12674 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12676         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12677         * config/mips/mips.h (CC1_SPEC): Likewise.
12679 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12681         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12682         * config/mips/mips.h (CC1_SPEC): Likewise.
12684 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12686         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12687         * config/m32r/linux.h (LINK_SPEC): Likewise.
12688         * config/mips/linux.h (LINK_SPEC): Likewise.
12689         * config/mips/linux64.h (LINK_SPEC): Likewise.
12690         * config/sparc/linux.h (LINK_SPEC): Likewise.
12691         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12692         LINK_SPEC): Likewise.
12693         * config/xtensa/linux.h (LINK_SPEC): Likewise.
12695 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12697         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12698         %{version:-v}.
12699         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12701 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12703         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12704         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12706 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12708         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12710 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12712         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12713         supports -Bstatic/-Bdynamic.
12714         * configure: Regenerate.
12716 2011-01-14  Jan Hubicka  <jh@suse.cz>
12717             Jack Howarth  <howarth@bromo.med.uc.edu>
12719         PR target/46037
12720         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12721         when checking debug_info_level. Test write_symbols instead of
12722         debug_hooks->var_location when setting flag_var_tracking_uninit.
12724 2011-01-14  Richard Guenther  <rguenther@suse.de>
12726         PR tree-optimization/47179
12727         * target.def (ref_may_alias_errno): New target hook.
12728         * targhooks.h (default_ref_may_alias_errno): Declare.
12729         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12730         (default_ref_may_alias_errno): New function.
12731         * target.h (struct ao_ref_s): Declare.
12732         * tree-ssa-alias.c: Include target.h.
12733         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12734         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12735         (targhooks.o): Likewise.
12736         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12737         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12739 2011-01-14  Richard Guenther  <rguenther@suse.de>
12741         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
12743 2011-01-14  Richard Guenther  <rguenther@suse.de>
12745         PR tree-optimization/47280
12746         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12747         return CFG changes.
12748         (tree_ssa_forward_propagate_single_use_vars): Deal with
12749         CFG changes from associate_plusminus.
12751 2011-01-14  Richard Guenther  <rguenther@suse.de>
12753         PR middle-end/47281
12754         Revert
12755         2011-01-11  Richard Guenther  <rguenther@suse.de>
12757         PR tree-optimization/46076
12758         * tree-ssa.c (useless_type_conversion_p): Conversions from
12759         unprototyped to empty argument list function types are useless.
12761 2011-01-14  Richard Guenther  <rguenther@suse.de>
12763         PR tree-optimization/47286
12764         * tree-ssa-structalias.c (new_var_info): Register variables are global.
12766 2011-01-14  Martin Jambor  <mjambor@suse.cz>
12768         PR middle-end/46823
12769         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12771 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
12773         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
12774         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12775         * config/xtensa/xtensa.c (xtensa_libcall_value,
12776         xtensa_function_value_regno_p): New functions.
12777         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12779 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
12781         PR c++/47213
12782         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
12783         PE specific hook.
12784         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
12785         New function prototype.
12786         * config/i386/winnt.c (i386_pe_assemble_visibility):
12787         Warn only if attribute was specified by user.
12789 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
12791         PR target/47251
12792         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
12793         floating point.
12794         (floatunsdidf2_fcfidu): Ditto.
12796 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12798         * config/s390/s390.c (print_operand_address): Replace 'error' with
12799         'output_operand_lossage'.
12800         (print_operand): Likewise.
12802 2011-01-13  Jeff Law  <law@redhat.com>
12804         PR rtl-optimization/39077
12805         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
12806         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
12807         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
12808         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
12809         * gcse.c (prune_insertions_deletions): New function.
12810         (compute_pre_data): Use it.
12812 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
12814         PR debug/PR46973
12815         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
12816         static function.
12817         (prune_unused_types_mark): Use it.
12819 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
12821         PR rtl-optimization/45352
12822         * sel-sched.c: Update copyright years.
12823         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
12824         in the advancing loop when we have issued issue_rate insns.
12826 2011-01-12  Richard Henderson  <rth@redhat.com>
12828         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
12829         (TARGET_MD_ASM_CLOBBERS): New.
12831         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
12832         (TARGET_DELEGITIMIZE_ADDRESS): New.
12834         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
12835         (clzsi2, *bsch): New patterns.
12837         * config/mn10300/mn10300.md (INT): New mode iterator.
12838         (*mov<INT>_clr): New pattern, and peep2 to generate it.
12840         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
12841         flag_split_wide_types.
12843         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
12844         (mn10300_trampoline_init): Rewrite without a template, an immediate
12845         load and a direct branch.
12846         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
12848 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
12850         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12851         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
12852         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
12853         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12855 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
12857         PR debug/47209
12858         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
12859         of type.
12861 2011-01-12  Jan Hubicka  <jh@suse.cz>
12863         PR driver/47244
12864         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
12865         (PLUGIN_COND_CLOSE): New macro.
12866         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
12868 2011-01-12  Richard Guenther  <rguenther@suse.de>
12870         PR lto/47259
12871         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
12872         register variables in a MEM_REF.
12874 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
12876         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
12877         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
12878         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
12879         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12880         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12881         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
12882         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
12883         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
12884         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
12885         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
12886         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
12887         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
12888         * config/gnu-user.h: New.  Copied from linux.h.
12889         (LINUX_TARGET_STARTFILE_SPEC): Rename to
12890         GNU_USER_TARGET_STARTFILE_SPEC.
12891         (LINUX_TARGET_ENDFILE_SPEC): Rename to
12892         GNU_USER_TARGET_ENDFILE_SPEC.
12893         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
12894         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
12895         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
12896         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
12897         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
12898         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
12899         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
12900         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
12901         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
12902         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
12903         * config/arm/linux-eabi.h (CC1_SPEC): Use
12904         GNU_USER_TARGET_CC1_SPEC.
12905         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
12906         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
12907         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
12908         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
12909         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
12910         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
12911         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
12912         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
12914 2011-01-12  Richard Guenther  <rguenther@suse.de>
12916         PR other/46946
12917         * doc/invoke.texi (ffast-math): Document it is turned on
12918         with -Ofast.
12920 2011-01-12  Jan Hubicka  <jh@suse.cz>
12922         PR tree-optimization/47233
12923         * opts.c (common_handle_option): Disable ipa-reference with profile
12924         feedback.
12926 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
12928         * c-parser.c (c_parser_objc_at_property_declaration): Improved
12929         error message.
12931 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
12933         * c-parser.c (c_lex_one_token): Updated and reindented some
12934         comments.  No changes in code.
12936 2011-01-11  Ian Lance Taylor  <iant@google.com>
12938         * godump.c (go_output_var): Don't output the variable if there is
12939         already a type with the same name.
12941 2011-01-11  Ian Lance Taylor  <iant@google.com>
12943         * godump.c (go_format_type): Don't generate float80.
12945 2011-01-11  Richard Henderson  <rth@redhat.com>
12947         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
12948         declaration.  Rewrite for both speed and size.
12949         (mn10300_address_cost_1): Remove.
12950         (mn10300_register_move_cost): New.
12951         (mn10300_memory_move_cost): New.
12952         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
12953         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
12954         extensions, shifts, BSWAP, CLZ.
12955         (mn10300_wide_const_load_uses_clr): Remove.
12956         (TARGET_REGISTER_MOVE_COST): New.
12957         (TARGET_MEMORY_MOVE_COST): New.
12958         * config/mn10300/mn10300-protos.h: Update.
12959         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
12961         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
12962         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
12963         * config/mn10300/mn10300-protos.h: Update.
12964         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
12965         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
12966         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
12967         (*test_int_bitfield, *test_byte_bitfield): Remove.
12968         (*bit_test, *subreg_bit_test): Remove.
12969         * config/mn10300/predicates.md (const_8bit_operand): Remove.
12971         * config/mn10300/constraints.md ("c"): Rename from "A".
12972         ("A", "D"): New constraint letters.
12973         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
12974         (fmssf4, fnmasf4, fnmssf4): Likewise.
12976         * config/mn10300/mn10300.md (isa): New attribute.
12977         (enabled): New attribute.
12979         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
12980         (abssf2, negsf2): Define only for hardware fp.
12981         (sqrtsf2): Reformat.
12982         (addsf3, subsf3, mulsf3): Merge expander and insn.
12984         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
12985         (DEBUGGER_AUTO_OFFSET): Remove.
12986         (DEBUGGER_ARG_OFFSET): Remove.
12988         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
12989         Emit register stores with the same offsets as the hardware.
12990         (mn10300_store_multiple_operation): Don't check that the register
12991         save offsets are monotonic.
12992         * config/mn10300/mn10300-protos.h: Update.
12994         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
12996         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
12997         in terms of the value on the stack, not the MDR register.
12999 2011-01-11  Jan Hubicka  <jh@suse.cz>
13001         PR lto/45721
13002         PR lto/45375
13003         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13004         (symbol_alias_set_destroy, symbol_alias_set_contains,
13005         propagate_aliases_backward): Declare.
13006         * lto-streamer-out.c (struct sets): New sturcture.
13007         (trivally_defined_alias): New function.
13008         (output_alias_pair_p): Rewrite.
13009         (output_unreferenced_globals): Fix output of alias pairs.
13010         (produce_symtab): Likewise.
13011         * ipa.c (function_and_variable_visibility): Set weak alias destination
13012         as needed in lto.
13013         * varasm.c (symbol_alias_set_t): Remove.
13014         (symbol_alias_set_destroy): Export.
13015         (propagate_aliases_forward, propagate_aliases_backward): New functions
13016         based on ...
13017         (compute_visible_aliases): ... this one; remove.
13018         (trivially_visible_alias): New
13019         (trivially_defined_alias): New.
13020         (remove_unreachable_alias_pairs): Rewrite.
13021         (finish_aliases_1): Reorganize code checking if alias is defined.
13022         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13023         in LTO mode.
13025 2011-01-11  Richard Guenther  <rguenther@suse.de>
13027         PR tree-optimization/46076
13028         * tree-ssa.c (useless_type_conversion_p): Conversions from
13029         unprototyped to empty argument list function types are useless.
13031 2011-01-11  Richard Guenther  <rguenther@suse.de>
13033         PR middle-end/45235
13034         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13035         volatile MEMs as MEM_READONLY_P.
13037 2011-01-11  Richard Guenther  <rguenther@suse.de>
13039         PR tree-optimization/47239
13040         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13042 2011-01-11  Jeff Law  <law@redhat.com>
13044         PR tree-optimization/47086
13045         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13046         IVs from statements that might throw.
13048 2011-01-10  Jan Hubicka  <jh@suse.cz>
13050         PR lto/45375
13051         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13053 2011-01-10  Jan Hubicka  <jh@suse.cz>
13055         PR lto/45375
13056         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13057         when correcting profile.
13059 2011-01-10  Jan Hubicka  <jh@suse.cz>
13061         PR lto/46083
13062         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13063         DECL_FINI_PRIORITY.
13064         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13065         Restore DECL_FINI_PRIORITY.
13067 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13069         * doc/gimple.texi: Fix quoting of multi-word return values in
13070         @deftypefn statements.  Ensure presence of return value.  Wrap
13071         overlong @deftypefn lines.
13072         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13073         descriptions of removed functions.
13074         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13075         of multi-word return value in @deftypefn statement.
13077 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13079         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13080         (Conditional Expressions, Logical Operators)
13081         (Statement and operand traversals): Do not indent smallexample
13082         code.  Fix duplicate function argument in example.
13084 2011-01-10  Jeff Law  <law@redhat.com>
13086         PR tree-optimization/47141
13087         * ipa-split.c (split_function): Handle case where we are
13088         returning a value and the return block has a virtual operand phi.
13090 2011-01-10  Jan Hubicka  <jh@suse.cz>
13092         PR tree-optimization/47234
13093         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13094         (pass_feedback_split_functions): Declare.
13095         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13096         tree-profile.
13097         * ipa-split.c (gate_split_functions): Update comments; disable
13098         split-functions for profile_arc_flag and branch_probabilities.
13099         (gate_feedback_split_functions): New function.
13100         (execute_feedback_split_functions): New function.
13101         (pass_feedback_split_functions): New global var.
13103 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13105         PR lto/46760
13106         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13107         calling gimple_call_set_cannot_inline.
13109 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13111         * config/darwin-sections.def: Remove unused section.
13113 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13115         PR c++/47218
13116         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13118 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13120         PR objc/47232
13121         * c-parser.c (c_parser_declaration_or_fndef): Improved
13122         error message.
13124 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13126         * config/i386/winnt.c (i386_pe_start_function): Make sure
13127         to switch back to function's section.
13129 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13131         PR gcc/46902
13132         PR testsuite/46912
13133         * plugin.c: Move include of dlfcn.h from here...
13134         * system.h: ... to here.
13136 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13138         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13139         file name.
13140         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13141         two extra empty pages in PDF output.
13143 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13145         PR objc/47078
13146         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13147         for error recovery purposes behave as if it was not specified so
13148         that the default type is usd.
13150 2011-01-07  Jan Hubicka  <jh@suse.cz>
13152         PR tree-optmization/46469
13153         * ipa.c (function_and_variable_visibility): Clear needed flags on
13154         nodes with external decls; handle weakrefs merging correctly.
13156 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13158         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13159         not false.
13161 2011-01-07  Jan Hubicka  <jh@suse.cz>
13163         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13164         and no longer claim that gold is required for linker plugin.
13165         * configure: Regenerate.
13166         * gcc.c (PLUGIN_COND): New macro.
13167         (LINK_COMMAND_SPEC): Use it.
13168         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13169         * config.in (HAVE_LTO_PLUGIN): New.
13170         * configure.ac (--with-lto-plugin): New parameter; autodetect
13171         HAVE_LTO_PLUGIN.
13173 2011-01-07  Jan Hubicka  <jh@suse.cz>
13175         PR tree-optimization/46367
13176         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13177         when we can update original.
13178         (cgraph_mark_inline_edge): Sanity check.
13179         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13181 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13183         * config/spu/spu.h (ASM_COMMENT_START): Define.
13185 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13187         PR driver/42445
13188         * gcc.c (%>S): New.
13189         (SWITCH_KEEP_FOR_GCC): Likewise.
13190         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13191         (do_spec_1): Handle "%>".
13193         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13195 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
13197         PR target/47201
13198         * config/i386/i386.c (ix86_delegitimize_address): If
13199         simplify_gen_subreg fails, return orig_x.
13201         PR bootstrap/47187
13202         * value-prof.c (gimple_stringop_fixed_value): Handle
13203         lhs of the call properly.
13205 2011-01-07  Jan Hubicka  <jh@suse.cz>
13207         PR lto/45375
13208         * lto-opt.c (lto_reissue_options): Set flag_shlib.
13210 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13212         * target.def (function_switched_text_sections): New hook.
13213         * doc/tm.texi: Regenerated.
13214         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13215         * final.c (default_function_switched_text_sections): New.
13216         (final_scan_insn): Call function_switched_text_sections when a
13217         mid-function section change occurs.
13218         * output.h (default_function_switched_text_sections): Declare.
13219         * config/darwin-protos.h (darwin_function_switched_text_sections):
13220         Likewise.
13221         * config/darwin.c (darwin_function_switched_text_sections): New.
13222         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13224 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13226         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13227         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13228         the secondary code fragment when outputting for DWARF == 2.
13230 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13232         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13233         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13234         Remove.
13235         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13236         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13238 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13240         PR debug/46704
13241         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13242         when it is not empty.
13244 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
13246         Bobcat Enablement
13247         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13248         (case ${target}): Add btver1.
13249         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13250         -march=native recognize btver1 processors.
13251         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13252         btver1 def_and_undef
13253         * config/i386/i386.c (struct processor_costs btver1_cost): New
13254         btver1 cost table.
13255         (m_BTVER1): New definition.
13256         (m_AMD_MULTIPLE): Includes m_BTVER1.
13257         (initial_ix86_tune_features): Add btver1 tune.
13258         (processor_target_table): Add btver1 entry.
13259         (static const char *const cpu_names): Add btver1 entry.
13260         (software_prefetching_beneficial_p): Add btver1.
13261         (ix86_option_override_internal): Add btver1 instruction sets.
13262         (ix86_issue_rate): Add btver1.
13263         (ix86_adjust_cost): Add btver1.
13264         * config/i386/i386.h (TARGET_BTVER1): New definition.
13265         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13266         (enum processor_type): Add PROCESSOR_BTVER1.
13267         * config/i386/i386.md (define_attr "cpu"): Add btver1.
13269 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13271         PR target/43309
13272         * config/i386/i386.c (legitimize_tls_address)
13273         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13274         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13275         (tls_initial_exec_64_sun): New pattern.
13277 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
13279         * doc/invoke.texi (Overall Options): Improve wording and markup
13280         of the description of -wrapper.
13282 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13284         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13285         rdynamic, threads): New Driver options.
13287 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13289         PR target/38118
13290         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13291         if coming from .tdata.
13292         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13294 2011-01-06  Jan Hubicka  <jh@suse.cz>
13296         PR lto/47188
13297         * collect2.c (main): Do not enable LTOmode when plugin is active.
13299 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13301         PR other/45915
13302         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13303         --version output if supported.
13304         * configure: Regenerate.
13306 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13308         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13309         Driver options.
13311 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
13313         PR c/47150
13314         * c-convert.c (convert): When converting a complex expression
13315         other than COMPLEX_EXPR to a different complex type, ensure
13316         c_save_expr is called instead of save_expr, unless in_late_binary_op.
13317         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13318         when converting COMPLEX_TYPE.
13320 2011-01-06  Ira Rosen  <irar@il.ibm.com>
13322         PR tree-optimization/47139
13323         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13324         only the last reduction value is used outside the loop.  Update
13325         documentation.
13327 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
13329         * config/rtems.opt: New.
13330         * config.gcc (*-*-rtems*): Use rtems.opt.
13332 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
13334         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13335         processors do not support 3DNow instructions.
13337 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13339         * config/spu/spu.c (spu_option_override): Set parameter
13340         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13342 2011-01-05  Jan Hubicka  <jh@suse.cz>
13344         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13345         at the command line.
13347 2011-01-05  Martin Jambor  <mjambor@suse.cz>
13349         PR lto/47162
13350         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13351         deltas on streamed outgoing edges.
13352         (output_node_opt_summary): Output info for outgoing edges only when
13353         the node is in new parameter set.
13354         (output_cgraph_opt_summary): New parameter set, passed to the two
13355         aforementioned functions.  Update its forward declaration and its
13356         callee too.
13358 2011-01-05  Tom Tromey  <tromey@redhat.com>
13360         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13361         operator to c_finish_omp_atomic.
13362         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13363         (build_unary_op): Update.
13364         (build_modify_expr): Update.
13365         (build_asm_expr): Update.
13367 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13369         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13370         newly inserted insns.
13371         (pad_bb): Likewise.
13372         (spu_emit_branch_hint): Likewise.
13373         (insert_hbrp_for_ilb_runout): Likewise.
13374         (spu_machine_dependent_reorg): Call df_finish_pass after
13375         schedule_insns returns.
13377 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13379         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13381 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13383         PR tree-optimization/47005
13384         * tree-sra.c (struct access): Add 'non_addressable' bit.
13385         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13386         (decide_one_param_reduction): Return 0 if the parameter is passed by
13387         reference and one of the accesses in the group is non_addressable.
13389 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13391         PR tree-optimization/47056
13392         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13393         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
13394         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
13396 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13398         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13399         initializer.  Skip view conversions from aggregate types.
13401 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
13403         PR bootstrap/47055
13404         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13406 2011-01-04  Philipp Thomas  <pth@suse.de>
13408         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13409         obvious typo.
13411 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13413         * function.c (thread_prologue_and_epilogue_insns): Do not crash
13414         on empty epilogue sequences.
13416 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
13418         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13419         non-static): New Driver options.
13421 2011-01-04  Jie Zhang  <jie@codesourcery.com>
13423         PR driver/47137
13424         * gcc.c (default_compilers[]): Set combinable field to 0
13425         for all assembly languages.
13427 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
13429         * config/mips/loongson3a.md: New file.
13430         * config/mips/mips.md: Include loongson3a.md.
13431         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13432         TUNE_LOONGSON_3A.
13434 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13436         PR middle-end/47017
13437         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13438         instead of convert_memory_address_addr_space on the base expression.
13440 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13442         * config/spu/spu.c (spu_option_override): Update error text
13443         for bad -march= / -mtune= values.
13445 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13447         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13448         if branch-hint optimization will be performed.
13450 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13452         PR tree-optimization/47148
13453         * ipa-split.c (split_function): Convert arguments to
13454         DECL_ARG_TYPE if possible.
13456         PR tree-optimization/47155
13457         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13458         when computing uns.
13460         PR rtl-optimization/47157
13461         * combine.c (try_combine): If undobuf.other_insn becomes
13462         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13463         and set *new_direct_jump_p too.
13465 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
13467         PR tree-optimization/47021
13468         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13470 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13472         * gcc.c (process_command): Update copyright notice dates.
13473         * gcov.c (print_version): Likewise.
13474         * gcov-dump.c (print_version): Likewise.
13475         * mips-tfile.c (main): Likewise.
13476         * mips-tdump.c (main): Likewise.
13478 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13480         PR tree-optimization/46801
13481         * tree-sra.c (type_internals_preclude_sra_p): Check whether
13482         aggregate fields start at byte boundary instead of the bit-field flag.
13484 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
13486         PR driver/47137
13487         * gcc.c (main): Revert revision 168407.
13489 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13491         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13493 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13495         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13496         vector optab to expand vector/scalar shift, update gimple to vector.
13498 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13500         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13501         a thunk.
13503 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13505         PR tree-optimization/46984
13506         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13507         HOST_WIDE_INT.
13508         (cgraph_create_indirect_edge): Fixed line length.
13509         (cgraph_indirect_call_info): Declare.
13510         (cgraph_make_edge_direct) Update declaration.
13511         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13512         (cgraph_create_indirect_edge): Use it.
13513         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
13514         callees.
13515         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13516         the new thunk_delta representation.
13517         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13518         HOST_WIDE_INT.
13519         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13520         (ipa_read_indirect_edge_info): Likewise.
13521         * lto-cgraph.c (output_edge_opt_summary): New function.
13522         (output_node_opt_summary): Call it on all outgoing edges.
13523         (input_edge_opt_summary): New function.
13524         (input_node_opt_summary): Call it on all outgoing edges.
13526 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
13528         PR driver/47137
13529         * gcc.c (main): Don't check have_o when settting combine_inputs.
13531 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
13533         * regrename.c: Add general comment describing the pass.
13534         (struct du_head): Remove 'length' field.
13535         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13536         (regrename_optimize): Do not sort chains.  Rework comments, add others.
13537         Force renaming to the preferred class (if any) in the first pass and do
13538         not consider registers that belong to it in the second pass.
13539         (create_new_chain): Do not set 'length' field.
13540         (scan_rtx_reg): Likewise.
13542 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
13544         PR tree-optimization/47140
13545         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13546         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13547         to bit_value_binop.
13549         PR rtl-optimization/47028
13550         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13551         parm_birth_insn instead of at the beginning of first bb.
13553 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
13555         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13556         Remove the word "see" before "@pxref".
13557         * doc/rtl.texi: Remove the word "see" before "@pxref".
13559 2011-01-01  Jan Hubicka  <jh@suse.cz>
13561         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13562         memory.
13564 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
13566         PR target/38662
13567         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13570 Copyright (C) 2011 Free Software Foundation, Inc.
13572 Copying and distribution of this file, with or without modification,
13573 are permitted in any medium without royalty provided the copyright
13574 notice and this notice are preserved.