OSDN Git Service

PR target/48898
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2
3         PR target/48898
4         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5         Fix typo in "ccvt" variable name.
6
7 2011-05-06  Tristan Gingold  <gingold@adacore.com>
8
9         PR target/48895
10         * config/vms/vms-ar.c (main): Remove cwd variable.
11
12 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
13
14         PR debug/48902
15         * var-tracking.c (prepare_call_arguments): Move else before #endif.
16
17 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
18
19         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
20         * gimplify.c (gimplify_switch_expr): Likewise.
21         * omp-low.c (expand_omp_sections): Likewise.
22         * tree-eh.c (lower_try_finally_switch): Likewise.
23         (lower_eh_dispatch): Likewise.
24         * tree.h (build_case_label): Declare.
25         * tree.c (build_case_label): Define.
26
27 2011-05-05  Jason Merrill  <jason@redhat.com>
28
29         PR c++/40975
30         * tree-inline.c (copy_tree_r): Use copy_statement_list.
31         (copy_statement_list): Don't recurse.
32         * stor-layout.c (copy_self_referential_tree_r): Don't allow
33         STATEMENT_LIST.
34
35 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
36
37         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
38         through from -mfpu= handling.
39         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
40
41 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
42
43         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
44         POST_MODIFY.
45
46 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
47
48         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
49         for 11.31.
50         (hppa[12]*-*-hpux11*): Ditto.
51         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
52         * config/ia64/hpux-unix2003.h: New.
53         * config/pa/pa-hpux1131.opt: New.
54         * config/pa/pa-hpux1131.h: New.
55         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
56         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
57         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
58
59 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
60
61         PR debug/48853
62         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
63         instead of mode as 3rd argument to recursive call.
64         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
65         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
66         VOIDmode.
67         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
68         don't give up if mode is Pmode and mem_mode is not VOIDmode.
69         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
70         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
71
72 2011-05-05  Julian Brown  <julian@codesourcery.com>
73
74         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
75         parenthesis in D-register case.
76
77 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
78
79         * opt-functions.awk (var_type_struct): Handle Enum options.
80         * optc-gen.awk: Don't check range of variables of character type.
81         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
82         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
83         rs6000_sdata_name, rs6000_explicit_options): Remove.
84         (rs6000_option_override_internal): Check for -malign-power here.
85         Use global_options_set instead of rs6000_explicit_options.
86         (rs6000_parse_fpu_option): Remove.
87         (rs6000_handle_option): Access variables via opts and opts_set
88         pointers.  Use error_at and warning_at.  Add fall-through
89         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
90         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
91         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
92         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
93         here.  Don't use rs6000_parse_fpu_option.
94         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
95         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
96         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
97         (mrecip=): Use Var.
98         (mspe): Use Var and Save.
99         (mtraceback=): Use Enum and Var.
100         (rs6000_traceback_type): New Enum and EnumValue entries.
101         (mfloat-gprs=): Use Enum, Var and Save.
102         (rs6000_float_gprs): New Enum and EnumValue entries.
103         (mlong-double-): use Var and Save.
104         (msched-costly-dep=, minsert-sched-nops=): Use Var.
105         (malign-): Use Enum and Var.
106         (rs6000_alignment_flags): New Enum and EnumValue entries.
107         (mfpu=): Use Enum.
108         (fpu_type_t): New Enum and EnumValue entries.
109         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
110         global_options_set instead of rs6000_explicit_options.
111         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
112         global_options_set instead of rs6000_explicit_options.
113         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
114         global_options_set instead of rs6000_explicit_options.
115         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
116         global_options_set instead of rs6000_explicit_options.
117         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
118         global_options_set instead of rs6000_explicit_options.
119         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
120         global_options_set instead of rs6000_explicit_options.
121         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
122         definition.
123         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
124         global_options_set instead of rs6000_explicit_options.
125         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
126         (rs6000_cmodel): New Enum and EnumValue entries.
127         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
128         global_options_set instead of rs6000_explicit_options.
129         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
130         (mtls-size=): Use Enum and Var.
131         (rs6000_tls_size): New Enum and EnumValue entries.
132
133 2011-05-05  Michael Matz  <matz@suse.de>
134
135         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
136         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
137         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
138         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
139         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
140         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
141         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
142         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
143         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
144         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
145         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
146         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
147         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
148         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
149         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
150         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
151
152 2011-05-05  Richard Guenther  <rguenther@suse.de>
153
154         * expmed.c (expand_variable_shift): Rename to ...
155         (expand_shift_1): ... this.  Take an expanded shift amount.
156         For rotates recurse directly not building trees for the shift amount.
157         (expand_variable_shift): Wrap around expand_shift_1.
158         (expand_shift): Adjust.
159
160 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
161
162         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
163
164 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
165
166         * tree.h (get_pending_sizes): Remove prototype.
167         (put_pending_size): Likewise.
168         (put_pending_sizes): Likewise.
169         * stor-layout.c (pending_sizes): Delete.
170         (get_pending_sizes): Likewise.
171         (put_pending_size): Likewise.
172         (put_pending_sizes): Likewise.
173         (variable_size): Do not call put_pending_size and tidy up.
174         * function.h (struct function): Remove dont_save_pending_sizes_p.
175         * lto-streamer-in.c (input_function): Do not stream it.
176         * lto-streamer-out.c (output_function): Likewise.
177         * tree-inline.c (initialize_cfun): Do not copy it.
178         * c-decl.c (store_parm_decls): Do not set it.
179         * omp-low.c (create_task_copyfn): Likewise.
180         * tree-optimize.c (tree_rest_of_compilation): Likewise.
181
182 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
183
184         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
185         conditions.
186         (*movdf_internal): Ditto.
187         (*movdf_internal_nointeger): Ditto.
188         (*movsf_internal): Ditto.
189
190 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
191
192         * c-decl.c (finish_decl): Don't call get_pending_sizes.
193         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
194         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
195         (c_variable_size): Remove.
196         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
197         call put_pending_sizes.
198         (get_parm_info): Add parameter expr.  Use it to set
199         arg_info->pending_sizes.
200         (store_parm_decls): Use arg_info->pending_sizes instead or calling
201         get_pending_sizes.
202         * c-parser.c (c_parser_parms_declarator): Update call to
203         c_parser_parms_list_declarator.
204         (c_parser_parms_list_declarator): Take parameter expr.  Update
205         call to push_parm_decl.  Update recursive call.  Don't call
206         get_pending_sizes.  Update calls to get_parm_info.
207         (c_parser_objc_method_definition): Update calls to
208         c_parser_objc_method_decl and objc_start_method_definition.
209         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
210         (c_parser_objc_method_decl): Add parameter expr.  Update call to
211         grokparm.
212         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
213         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
214         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
215
216 2011-05-05  Michael Hope  <michael.hope@linaro.org>
217
218         PR pch/45979
219         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
220         __ARM_EABI__ hosts.
221
222 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
223
224         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
225         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
226         (spu_output_mi_thunk): New function.
227
228 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
229
230         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
231         targetm.asm_out.print_operand.
232         * config/sol2.c: Include target.h.
233
234 2011-05-04  Jan Hubicka  <jh@suse.cz>
235
236         * ipa-inline.c (reset_edge_caches): New function.
237         (update_caller_keys): Add check_inlinablity_for; do not
238         reset edge caches; remove now unnecesary loop.
239         (update_callee_keys): Add comments; reset node_growth_cache of callee.
240         (update_all_callee_keys): Likewise.
241         (inline_small_functions): Sanity check cache; update code
242         recomputing it.
243
244 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
245
246         PR rtl-optimization/47612
247         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
248         as the last insn of the sequence to be moved.
249
250 2011-05-04  Tobias Burnus  <burnus@net-b.de>
251
252         PR fortran/48864
253         * doc/invoke.texi (Ofast): Document that it
254         enables Fortran's -fno-protect-parens.
255
256 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
257
258         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
259
260 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
261
262         * stor-layout.c (variable_size): Do not issue errors.
263
264 2011-05-04  Richard Guenther  <rguenther@suse.de>
265
266         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
267         for array-ref indices.
268         (tree_coverage_counter_addr): Likewise.
269         (build_fn_info_type): Use size_int for index types.
270         (build_gcov_info): Likewise.
271
272 2011-05-04  Richard Guenther  <rguenther@suse.de>
273
274         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
275         to build_int_cst.
276         * c-typeck.c (really_start_incremental_init): Use bitsize_int
277         for constructor indices.
278         (push_init_level): Likewise.
279
280 2011-05-04  Richard Guenther  <rguenther@suse.de>
281
282         * explow.c (promote_mode): Move variable declarations before code.
283
284 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
285
286         * tree.h (build_function_type_array): Declare.
287         (build_varargs_function_type_array): Declare.
288         (build_function_type_vec, build_varargs_function_type_vec): Define.
289         * tree.c (build_function_type_array_1): New function.
290         (build_function_type_array): New function.
291         (build_varargs_function_type_array): New function.
292
293 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
294
295         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
296         before setting STMT_VINFO_TYPE.
297
298 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
299
300         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
301         instead of spu_pass_by_reference.
302
303 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
304
305         * calls.c (emit_library_call_value_1): Invoke
306         promote_function_mode hook on libcall arguments.
307         * explow.c (promote_function_mode, promote_mode): Handle TYPE
308         argument being NULL.
309         * targhooks.c (default_promote_function_mode): Lisewise.
310         * config/s390/s390.c (s390_promote_function_mode): Likewise.
311         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
312
313         * doc/tm.texi: Document that TYPE argument might be NULL.
314
315 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
316
317         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
318
319 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
320
321         From Bernd Schmidt
322         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
323
324 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
325
326         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
327         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
328         Move ...
329         * mips-tfile.c: ... here.
330         Don't include coretypes.h, tm.h, filenames.h.
331         (saber_stop): Remove definition and all calls.
332         [__SABER__]: Remove.
333         (__LINE__): Remove default.
334         (Size_t, Ptrdiff_t): Remove definitions.
335         Replace by size_t, ptrdiff_t.
336         [!MIPS_DEBUGGING_INFO]: Remove.
337         (SHASH_SIZE, THASH_SIZE): Remove defaults.
338         (progname): Add const.
339         (STATIC): Remove.
340         Replace all uses by static.
341         (ALIGN_SYMTABLE_OFFSET): Remove default.
342         * mips-tdump.c: Don't include coretypes.h, tm.h.
343         Remove !MIPS_IS_STAB guard.
344         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
345         $(TM_H), filenames.h dependencies.
346         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
347
348 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
349
350         From Jie Zhang
351         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
352         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
353
354 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
355
356         From Bernd Schmidt
357         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
358         account and save/restore RETS.
359         (PROFILE_BEFORE_PROLOGUE): Define.
360         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
361         the push insn to use predecrement.
362
363 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
364
365         From Jie Zhang
366         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
367
368 2011-05-04  Nick Clifton  <nickc@redhat.com>
369
370         * config/mn10300/mn10300.c: Include cfgloop.h.
371         (DUMP): New macro.
372         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
373         Lcc or a FLcc insn into the instruction stream.
374         (mn10300_block_contains_call): New function.  Returns true if the
375         given basic block contains a CALL insn.
376         (mn10300_loop_contains_call_insn): New function.  Returns true if
377         the given loop contains a CALL insn.
378         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
379         to use the SETLB and Lcc or FLcc insns.
380         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
381         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
382         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
383         disable the SETLB optimization.
384         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
385         __SETLB__ or __NO_SETLB__.
386         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
387         (movsf_internal): Handle MDR register.
388         (cmpsi): Make visible.
389         (setlb): New pattern.
390         (Lcc): New pattern.
391         (FLcc): New pattern.
392
393 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
394
395         PR target/48860
396         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
397         for reg<->xmm moves.
398         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
399         (vec_concatv2di_rex64_sse): Ditto.
400         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
401         (*vec_extractv2di_1_rex64): Ditto.
402
403         Revert:
404         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
405
406         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
407         reg<->xmm moves.
408         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
409
410 2011-05-04  Richard Guenther  <rguenther@suse.de>
411
412         * tree.h (int_const_binop): Remove notrunc argument.
413         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
414         create integer constants that are properly truncated.
415         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
416         (const_binop): Remove zero notrunc argument to int_const_binop.
417         (size_binop_loc): Likewise.
418         (fold_div_compare): Likewise.
419         (maybe_canonicalize_comparison_1): Likewise.
420         (fold_comparison): Likewise.
421         (fold_binary_loc): Likewise.
422         (multiple_of_p): Likewise.
423         * expr.c (store_constructor): Likewise.
424         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
425         (maybe_fold_stmt_addition): Likewise.
426         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
427         * stor-layout.c (layout_type): Likewise.
428         * tree-data-ref.c (tree_fold_divides_p): Likewise.
429         * tree-sra.c (build_ref_for_offset): Likewise.
430         (build_user_friendly_ref_for_offset): Likewise.
431         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
432         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
433         * tree-ssa-loop-niter.c (inverse): Likewise.
434         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
435         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
436         * tree-switch-conversion.c (check_range): Likewise.
437         (build_constructors): Likewise.
438         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
439         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
440         (extract_range_from_assert): Likewise.
441         (vrp_int_const_binop): Likewise.
442         (extract_range_from_binary_expr): Likewise.
443         (extract_range_from_unary_expr): Likewise.
444         (check_array_ref): Likewise.
445         (find_case_label_range): Likewise.
446         (simplify_div_or_mod_using_ranges): Likewise.
447         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
448         comparing case labels for merging.
449
450 2011-05-03  Mark Wielaard  <mjw@redhat.com>
451
452         * dwarf2out.c (debug_str_hash_forced): Removed.
453         (gen_label_for_indirect_string): Removed.
454         (get_debug_string_label): Removed.
455         (AT_string_form): Generate label directly.
456         (output_indirect_string): Test indirect_string_node for
457         DW_FORM_strp instead of checking label and refcount.
458         (prune_indirect_string): Removed.
459         (prune_unused_types): Don't check debug_str_hash_forced or
460         call prune_indirect_string.
461
462 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
463
464         PR other/48093
465         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
466
467 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
468
469         PR debug/47994
470         PR debug/47919
471         * combine.c (try_combine): Skip debug insns at m_split tests.
472
473 2011-04-26  Mark Wielaard  <mjw@redhat.com>
474
475         PR42288
476         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
477         when info_section_emitted.
478
479 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
480
481         * config/mips/mips-opts.h: New.
482         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
483         to mips-opts.h.
484         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
485         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
486         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
487         via opts pointer.
488         * config/mips/mips.h (enum mips_code_readable_setting): Move to
489         mips-opts.h.
490         (mips_abi, mips_code_readable): Don't declare.
491         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
492         (mabi=): Use Enum and Var.
493         (mips_abi): New Enum and EnumValue entries.
494         (mcode-readable=): Use Enum and Var.
495         (mips_code_readable_setting): New Enum and EnumValue entries.
496         (mr10k-cache-barrier=): Use Enum and Var.
497         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
498
499 2011-05-03  Jan Hubicka  <jh@suse.cz>
500
501         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
502         replace hash by pointer map.
503         (cgraph_node_set_element_def, cgraph_node_set_element,
504         const_cgraph_node_set_element, varpool_node_set_element_def,
505         varpool_node_set_element, const_varpool_node_set_element): Remove.
506         (free_cgraph_node_set, free_varpool_node_set): New function.
507         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
508         * tree-emutls.c: Free varpool node set.
509         * ipa-utils.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, free_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, free_varpool_node_set, debug_varpool_node_set):
514         Move here from ipa.c; implement using pointer_map
515         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
516         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
517         debug_cgraph_node_set, varpool_node_set_new,
518         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
519         dump_varpool_node_set, debug_varpool_node_set):
520         Move to ipa-uitls.c.
521         * passes.c (ipa_write_summaries): Update.
522
523 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
524
525         From Mike Frysinger:
526         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
527         bf542/bf544/bf547/bf548/bf549.
528
529 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
530
531         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
532
533 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
534
535         From Bernd Schmidt:
536         * config/bfin/bfin.md (MOVCC): New mode_macro.
537         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
538         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
539         comments from generated assembly.
540
541 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
542
543         From Bernd Schmidt
544         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
545         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
546         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
547         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
548         * config/bfin/lib1funcs.asm (___muldi3): New function.
549
550 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
551
552         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
553         build_function_type_list instead of build_function_type.
554         Rearrange initialization of `args' to do so.
555
556 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
557
558         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
559         instead of build_function_type.
560
561 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
562
563         * config/rs6000/rs6000.c (spe_init_builtins): Call
564         build_function_type_list instead of build_function_type.
565         (paired_init_builtins, altivec_init_builtins): Likewise.
566         (builtin_function_type): Likewise.
567
568 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
569
570         * config/sh/sh.c (sh_media_init_builtins): Call
571         build_function_type_list instead of build_function_type.
572
573 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
574
575         * config/sparc/sparc.c (sparc_file_end): Call
576         build_function_type_list instead of build_function_type.
577
578 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
579
580         * config/alpha/alpha.c (alpha_init_builtins): Call
581         build_function_type_list instead of build_function_type.
582
583 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
584
585         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
586         build_function_type_list instead of build_function_type.
587
588 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
589
590         * config/iq2000/i2000.c (iq2000_init_builtins): Call
591         build_function_type_list instead of build_function_type.
592         Delete `endlink' variable.
593
594 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
595
596         * config/avr/avr.c (avr_init_builtins): Call
597         build_function_type_list instead of build_function_type.
598
599 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
600
601         * config/picochip/picochip.c (picochip_init_builtins): Call
602         build_function_type_list instead of build_function_type.
603         Delete `endlink' variable.
604
605 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
606
607         * config/bfin/bfin.c (bfin_init_builtins): Call
608         build_function_type_list instead of build_function_type.
609
610 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
611
612         From Bernd Schmidt
613         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
614         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
615
616 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
617
618         From Jie Zhang:
619         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
620         libbffastfp overrides libgcc when -mfast-fp.
621
622 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
623
624         Originally from Bernd Schmidt
625         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
626         * config/bfin/bfin.c (override_options): Test it and error if
627         TARGET_FDPIC.
628
629 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
630
631         Originally From Bernd Schmidt
632         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
633         FD-PIC.
634
635 2011-05-03  Jeff Law  <law@redhat.com>
636
637         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
638         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
639         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
640         than accessing AUX field directly.  Free the AUX field before
641         clearing it.
642         (thread_block, thread_through_loop_header): Likewise.
643         (thread_single_edge, mark_threaded_blocks): Likewise.
644         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
645         (register_jump_thread): Do not attempt to thread to a NULL edge.
646
647 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
648
649         * function.c (init_function_start): Call decide_function_section.
650         * varasm.c (decide_function_section): New function.
651         (assemble_start_function): When not using
652         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
653         or first_function_block_is_cold.
654         * rtl.h (decide_function_section): Declare.
655
656 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
657             Jakub Jelinek  <jakub@redhat.com>
658
659         PR target/48774
660         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
661         only succeed if req_mode is the same as set_mode.
662
663 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
664
665         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
666         * genemit.c (gen_exp): Handle RETURN.
667         * emit-rtl.c (verify_rtx_sharing): Likewise.
668         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
669         * rtl.c (copy_rtx): RETURN is shared.
670         * rtl.h (enum global_rtl_index): Add GR_RETURN.
671         (ret_rtx): New.
672         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
673         * config/s390/s390.c (s390_emit_epilogue): Likewise.
674         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
675         * config/cris/cris.c (cris_expand_return): Likewise.
676         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
677         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
678         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
679         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
680         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
681         Likewise.
682         * config/v850/v850.c (expand_epilogue): Likewise.
683         * config/bfin/bfin.c (bfin_expand_call): Likewise.
684         * config/arm/arm.md (epilogue): Likewise.
685         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
686         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
687         variable to ret_reg.
688
689 2011-05-03  Richard Guenther  <rguenther@suse.de>
690
691         PR lto/48846
692         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
693         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
694         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
695
696 2011-05-03  Richard Guenther  <rguenther@suse.de>
697
698         * c-decl.c (grokdeclarator): Instead of looking at
699         TREE_OVERFLOW check if the constant fits in the index type.
700
701 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
702
703         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
704         (vec_store_lanes<mode><mode>): Likewise.
705
706 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
707
708         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
709         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
710         convert_optab_index values.
711         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
712         * genopinit.c (optabs): Initialize the new optabs.
713         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
714         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
715         (expand_STORE_LANES): New functions.
716         * tree.h (build_array_type_nelts): Declare.
717         * tree.c (build_array_type_nelts): New function.
718         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
719         (vect_model_load_cost): Likewise.
720         (vect_store_lanes_supported, vect_load_lanes_supported)
721         (vect_record_strided_load_vectors): Declare.
722         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
723         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
724         (vect_transform_strided_load): Split out statement recording into...
725         (vect_record_strided_load_vectors): ...this new function.
726         * tree-vect-stmts.c (create_vector_array, read_vector_array)
727         (write_vector_array, create_array_ref): New functions.
728         (vect_model_store_cost): Add store_lanes_p argument.
729         (vect_model_load_cost): Add load_lanes_p argument.
730         (vectorizable_store): Try to use store-lanes functions for
731         interleaved stores.
732         (vectorizable_load): Likewise load-lanes and loads.
733         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
734         to vect_model_store_cost.
735         (vect_build_slp_tree): Likewise vect_model_load_cost.
736
737 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
738
739         * hooks.h (hook_bool_mode_uhwi_false): Declare.
740         * hooks.c (hook_bool_mode_uhwi_false): New function.
741         * target.def (array_mode_supported_p): New hook.
742         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
743         * doc/tm.texi: Regenerate.
744         * stor-layout.c (mode_for_array): New function.
745         (layout_type): Use it.
746         * config/arm/arm.c (arm_array_mode_supported_p): New function.
747         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
748
749 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
750
751         PR target/48723
752         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
753         for -fstack-check if the size to allocate is negative.
754
755 2011-05-02  Lawrence Crowl  <crowl@google.com>
756
757         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
758         (timevar_cond_start): New for starting a timer only when it is not
759         already running.
760         (timevar_cond_stop): New for stopping a timer when it was not already
761         running.
762
763         * timevar.c (timevar_stop): Enable start/stop timers to start again.
764         (timevar_cond_start): New as above.
765         (timevar_cond_stop): New as above.
766
767         * timevar.def: Add start/stop timers for compiler phases,
768         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
769         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
770         and TV_PHASE_FINALIZE.
771         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
772         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
773         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
774         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
775         Make unused TV_OVERLOAD into a start/stop timer.
776
777         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
778         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
779         to indicate that they are start/stop timers.
780
781         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
782         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
783         Move initialization to do_compile.
784         (do_compile): Add initialization from above.
785         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
786
787         * c-decl.c (c_write_global_declarations): Add start/stop of
788         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
789
790         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
791         or TV_PARSE_INLINE, as appropriate.
792         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
793         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
794
795 2011-05-02  Jason Merrill  <jason@redhat.com>
796
797         PR c++/40975
798         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
799
800 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
801
802         PR c/35445
803         * c-decl.c (finish_decl): Only create a composite if the types are
804         compatible.
805
806 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
807
808         * config/fr30/fr30-protos.h (Mmode): Don't define.
809         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
810         definition where used.
811         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
812         define.  Expand definitions where used.
813         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
814         Expand definitions where used.
815         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
816         rx_function_arg, rx_function_arg_advance,
817         rx_function_arg_boundary): Expand definitions of those macros.
818         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
819         definition where used.
820
821 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
822
823         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
824         reg<->xmm moves.
825         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
826         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
827         with *movv2sf_internal_rex64_avx.
828         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
829         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
830         Use %v prefix in insn mnemonic to handle TARGET_AVX.
831         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
832         "vex" in "prefix" attribute calculation.
833         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
834
835 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
836
837         PR target/47951
838         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
839         inputs match the output.
840
841 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
842
843         PR target/47955
844         * config/m68k/m68k.c (m68k_expand_prologue): Set
845         current_function_static_stack_size.
846
847 2011-05-02   Jan Hubicka  <jh@suse.cz>
848
849         * lto-streamer.c (lto_streamer_cache_insert_1,
850         lto_streamer_cache_lookup, lto_streamer_cache_create,
851         lto_streamer_cache_delete): Use pointer map instead of hashtable.
852         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
853
854 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
855
856         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
857         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
858         config/m68k/t-opts: New files.
859         * config/m68k/m68k-tables.opt: New file (generated).
860         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
861         extra_options and m68k/t-opts to tmake_file.
862         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
863         (all_isas): Initialize using m68k-isas.def.
864         (all_microarchs): Initialize using m68k-microarchs.def.
865         (m68k_find_selection): Remove.
866         (m68k_handle_option): Don't assert that global structures are in
867         use.  Use error_at.  Access variables via opts pointer.  Don't
868         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
869         directly for -m68020-40 and -m68020-60.
870         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
871         m68k_tune_entry here.
872         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
873         to m68k-opts.h.
874         (m68k_library_id_string): Remove declaration.
875         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
876         (m68k_library_id_string): New Variable.
877         (march=, mcpu=, mtune=): Use Enum and Var.
878
879 2011-05-02  Richard Guenther  <rguenther@suse.de>
880
881         * varasm.c (output_constructor_regular_field): Compute zero-based
882         index with double-ints.  Make sure to ICE instead of producing
883         wrong code.
884         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
885         in asserts.  Properly use a signed type.
886
887 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
888
889         * config/i386/sse.md (V): New mode iterator.
890         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
891         TARGET_SSE2.
892         (V_256): Rename from AVX256MODE.
893         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
894         condition to all users.
895         (VF1): Ditto.
896         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
897         condition to all users.
898         (VF_128): Make V4SF mode unconditional.
899         (VF_256): Rename from AVX256MODEF2P.
900         (VI4F_128): Rename from SSEMODE4S.
901         (VI8F_128): Rename from SSEMODE2D.
902         (VI4F_256): Rename from AVX256MODE8P.
903         (VI8F_256): Rename from AVX256MODE4P.
904         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
905         (ssescalarmodesuffix): Remove SF and DF modes.
906         (SSEMODE124): Remove.
907         (SSEMODE1248): Ditto.
908         (SSEMODEF2P): Ditto.
909         (AVXMODEF2P): Ditto.
910         (AVXMODEFDP): Ditto.
911         (AVXMODEFSP): Ditto.
912         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
913         unconditional.
914         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
915         unconditional.
916         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
917         xop_pcmov_<mode>256.  Use V mode iterator.
918
919         Adjust RTX patterns globally for renamed mode attributes.
920
921 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
922
923         * haifa-sched.c (sched_emit_insn): Emit insn before first
924         non-scheduled insn.  Inform back-end about new insn.  Add
925         new insn to scheduled_insns list.
926
927 2011-05-02  Richard Guenther  <rguenther@suse.de>
928
929         PR tree-optimization/48822
930         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
931         (process_scc): Indicate which iteration we start.
932
933 2011-05-02  Jan Hubicka  <jh@suse.cz>
934
935         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
936         (lto_section_overrun): New.
937         * lto-section-out.c (append_block): Rename to ...
938         (lto_append_block): ... this one; export.
939         (lto_output_1_stream): Move lto lto-streamer.h
940         (lto_output_data_stream): Update.
941         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
942         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
943         functions.
944
945 2011-05-02  Richard Guenther  <rguenther@suse.de>
946
947         * tree.c (tree_code_counts): New global array.
948         (record_node_allocation_statistics): Count individual tree codes.
949         (dump_tree_statistics): Dump individual code stats.
950
951 2011-05-01  Jan Hubicka  <jh@suse.cz>
952
953         * ipa-inline.c (caller_growth_limits): Fix thinko when
954         looking for largest stack frame.
955         * ipa-inline.h (dump_inline_summary): Declare.
956         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
957         on stack usage.
958         (dump_inline_summary): Export.
959         (debug_inline_summary): Declare as DEBUG_FUNCTION.
960
961 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
962
963         * reginfo.c (memory_move_cost): Change rclass argument type form
964         'enum reg_class' to reg_class_t.
965         * reload.h (memory_move_cost): Update prototype.
966         * postreload.c reload_cse_simplify_set): Change type dclass var to
967         reg_class_t.
968         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
969         Update prototype.
970         (ira_allocate_and_set_costs): Change aclass argument type form
971         'enum reg_class' to reg_class_t.
972         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
973         Change aclass argument type to reg_class_t.
974         (update_conflict_hard_reg_costs): Change type aclass and pref vars
975         to reg_class_t.
976         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
977         memory_move_cost call.
978
979         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
980         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
981         Change type tmp var to reg_class_t.
982
983 2011-04-30  Jan Hubicka  <jh@suse.cz>
984
985         * ipa-inline.c (can_inline_edge_p): Disregard limits when
986         inlining into function with flatten attribute.
987         (want_inline_small_function_p): Be more realistic about inlining
988         cold calls where callee size grows.
989
990 2011-04-30  Jan Hubicka  <jh@suse.cz>
991
992         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
993         flags.
994
995 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
996
997         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
998         PRINT_OPERAND_PUNCT_VALID_P): Remove.
999         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1000         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1001         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1002         (print_operand): Rename to...
1003         (sparc_print_operand): ...this. Make static. Adjust
1004         sparc_print_operand function call.
1005         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1006         functions.
1007
1008 2011-04-30  Jan Hubicka  <jh@suse.cz>
1009
1010         PR middle-end/48752
1011         * ipa-inline.c (early_inliner): Disable when doing late
1012         addition of function.
1013
1014 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1015
1016         * dwarf2out.c (get_address_mode): New inline.
1017         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1018         if not dwarf_strict emit
1019         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1020         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1021         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1022         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1023         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1024         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1025         mem_loc_descriptor callers.
1026         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1027         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1028         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1029         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1030         (base_types): New variable.
1031         (get_base_type_offset, calc_base_type_die_sizes,
1032         base_type_for_mode, mark_base_types, base_type_cmp,
1033         move_marked_base_types): New functions.
1034         (calc_die_sizes): Assert that die_offset is 0 or equal to
1035         next_die_offset.
1036         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1037         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1038         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1039         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1040         (gen_subprogram_die): Don't give up on call site parameters
1041         with non-integral or large integral modes.  Adjust
1042         mem_loc_descriptor callers.
1043         (prune_unused_types): Call prune_unused_types_mark on base_types
1044         vector entries.
1045         (resolve_addr): Call mark_base_types.
1046         (dwarf2out_finish): Call move_marked_base_types.
1047
1048         PR tree-optimization/48809
1049         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1050         type.
1051         (gen_inbound_check): Don't compute index_expr - range_min in utype
1052         again, instead reuse SSA_NAME initialized in build_arrays.
1053         Remove two useless gsi_for_stmt calls.
1054
1055 2011-04-29  Jeff Law  <law@redhat.com>
1056
1057         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1058
1059 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1060
1061         * cgraph.h (cgraph_postorder): Remove declaration.
1062         * ipa-utils.h (ipa_free_postorder_info): Declare.
1063         (ipa_reverse_postorder): Likewise.
1064         * cgraphunit.c: Include ipa-utils.h.
1065         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1066         * ipa-inline.c: Include ipa-utils.h.
1067         (ipa_inline): Update call to ipa_reverse_postorder.
1068         * ipa-pure-const.c (propagate_pure_const): Update call to
1069         ipa_reduced_postorder and ipa_print_order.  Call
1070         ipa_free_postorder_info to clean up.
1071         (propagate_nothrow): Likewise.
1072         * ipa-reference.c (propagate): Removed a useless call to
1073         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1074         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1075         * ipa.c: Include ipa-utils.h.
1076         (ipa_profile): Update call to ipa_reverse_postorder.
1077         (cgraph_postorder): Moved to...
1078         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1079         (ipa_utils_print_order): Renamed to ipa_print_order.
1080         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1081         comments.
1082         (ipa_free_postorder_info): New function.
1083         * passes.c: Include ipa-utils.h.
1084         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1085         (ipa_write_summaries): Likewise.
1086         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1087         (cgraphunit.o): Likewise.
1088         (ipa.o): Likewise.
1089         (ipa-inline.o): Likewise.
1090
1091 2011-04-29  Jan Hubicka  <jh@suse.cz>
1092
1093         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1094         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1095         * ipa-inline.h (clause_t): Turn into unsigned int.
1096         * ipa-inline-analysis.c (add_clause): Do more simplification.
1097         (and_predicates): Shortcut more cases.
1098         (predicates_equal_p): Move forward; check that clauses are properly
1099         ordered.
1100         (or_predicates): Shortcut more cases.
1101         (edge_execution_predicate): Rewrite as...
1102         (set_cond_stmt_execution_predicate): ... this function; handle
1103         __builtin_constant_p.
1104         (set_switch_stmt_execution_predicate): New .
1105         (compute_bb_predicates): New.
1106         (will_be_nonconstant_predicate): Update TODO.
1107         (estimate_function_body_sizes): Use compute_bb_predicates
1108         and free them later, always try to estimate if stmt is constant.
1109         (estimate_time_after_inlining, estimate_size_after_inlining):
1110         Gracefully handle optimized out edges.
1111         (read_predicate): Fix off by one error.
1112
1113 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1114
1115         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1116
1117 2011-04-27  Xinliang David Li  <davidxl@google.com>
1118
1119         * tree-profile.c (init_ic_make_global_vars): Set
1120         tls attribute on ic vars.
1121         * coverage.c (coverage_end_function): Initialize
1122         function_list with zero.
1123
1124 2011-04-29  Richard Guenther  <rguenther@suse.de>
1125
1126         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1127         for the type of the result.
1128         (fold_builtin_isascii): Likewise.
1129         (fold_builtin_toascii): Use integer_type_node where appropriate.
1130         (fold_builtin_logb): Likewise.
1131         (fold_builtin_frexp): Likewise.
1132         (fold_builtin_strstr): Likewise.
1133         (fold_builtin_strpbrk): Likewise.
1134         (fold_builtin_fputs): Likewise.
1135         (fold_builtin_sprintf): Likewise.
1136         (fold_builtin_snprintf): Likewise.
1137         (fold_builtin_printf): Likewise.
1138         (do_mpfr_remquo): Use a proper type for the assigned constant.
1139         (do_mpfr_lgamma_r): Likewise.
1140         * dwarf2out.c (resolve_one_addr): Use size_int.
1141         * except.c (init_eh): Likewise.
1142         (assign_filter_values): Use integer_type_node for filter values.
1143         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1144         indices.
1145         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1146         for EH region numbers.
1147         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1148         for the shift amount.
1149
1150 2011-04-29  Richard Guenther  <rguenther@suse.de>
1151
1152         * expr.h (expand_shift): Rename to ...
1153         (expand_variable_shift): ... this.
1154         (expand_shift): Take a constant shift amount.
1155         * expmed.c (expand_shift): Rename to ...
1156         (expand_variable_shift): ... this.
1157         (expand_shift): New wrapper around expand_variable_shift.
1158         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1159         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1160         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1161         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1162         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1163         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1164         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1165         emit_store_flag_1, emit_store_flag): Likewise.
1166         * builtins.c (expand_builtin_signbit): Likewise.
1167         * calls.c (load_register_parameters): Likewise.
1168         * function.c (assign_parm_setup_block): Likewise.
1169         * lower-subreg.c (resolve_shift_zext): Likewise.
1170         * optabs.c (widen_bswap, expand_abs_nojump,
1171         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1172         * spu/spu.c (spu_expand_extv): Likewise.
1173         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1174
1175 2011-04-29  Richard Guenther  <rguenther@suse.de>
1176
1177         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1178         for the remapped region number.
1179         * predict.c (build_predict_expr): Use integer_type_node for the
1180         predict kind.
1181         * fold-const.c (fold_binary_loc): Use integer_type_node for
1182         the shift amount.  Use a proper type for the PLUS_EXPR operand.
1183
1184 2011-04-29  Michael Matz  <matz@suse.de>
1185
1186         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1187         other trees that just builtins.
1188         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1189
1190 2011-04-29  Richard Guenther  <rguenther@suse.de>
1191
1192         * tree-nested.c (get_trampoline_type): Use size_int.
1193         (get_nl_goto_field): Likewise.
1194         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1195         for all indexes.
1196         (lower_eh_constructs_2): Likewise.
1197         (lower_resx): Likewise.
1198         (lower_eh_dispatch): Likewise.
1199         * tree-mudflap.c (mf_build_string): Use size_int.
1200         (mudflap_register_call): Use integer_type_node for the flag.
1201         (mudflap_enqueue_constant): Use size_int.
1202         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1203         instead of rebuilding it.
1204
1205 2011-04-29  Richard Guenther  <rguenther@suse.de>
1206
1207         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1208         Handle OBJ_TYPE_REF.
1209         (find_func_aliases_for_call): Use it more consistently.
1210
1211 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
1212
1213         * haifa-sched.c (last_nondebug_scheduled_insn): New.
1214         (rank_for_schedule): Use it.
1215         (schedule_block): Set it.
1216
1217 2011-04-28  David Li  <davidxl@google.com>
1218
1219         * tree.c (crc32_string): Use crc32_byte.
1220         (crc32_byte): New function.
1221         * tree.h (crc32_byte): New function.
1222         * gcov.c (read_graph_file): Handle new cfg_cksum.
1223         (read_count_file): Ditto.
1224         * profile.c (instrument_values): Ditto.
1225         (get_exec_counts): Ditto.
1226         (read_profile_edge_counts): Ditto.
1227         (compute_branch_probabilities): Ditto.
1228         (compute_value_histograms): Ditto.
1229         (branch_prob): Ditto.
1230         (end_branch_prob): Ditto.
1231         * coverage.c (read_counts_file): Ditto.
1232         (get_coverage_counts): Ditto.
1233         (tree_coverage_counter_addr): Ditto.
1234         (coverage_checksum_string): Ditto.
1235         (coverage_begin_output): Ditto.
1236         (coverage_end_function): Ditto.
1237         (build_fn_info_type): Ditto.
1238         (build_fn_info_value): Ditto.
1239         * libgcov.c (gcov_exit): Ditto.
1240         * gcov-dump.c (tag_function): Ditto.
1241         (compute_checksum): Remove.
1242
1243 2011-04-29  Alan Modra  <amodra@gmail.com>
1244
1245         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1246         unspec plus offset.  Tidy macho code.
1247
1248 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1249
1250         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1251         node instead of a decl.  Update all callers.
1252         * cgraph.h: Update declaration.
1253
1254 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
1255
1256         PR tree-optimization/48765
1257         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1258         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1259         to indicate if loop aware SLP is being used.  Scan the statements
1260         and update the vectorization factor according to the type of
1261         vectorization before statement analysis.
1262         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1263         pass it to vect_analyze_loop_operations.
1264         (vectorizable_reduction): Set number of copies to 1 in case of pure
1265         SLP statement.
1266         * tree-vect-stmts.c (vectorizable_conversion,
1267         vectorizable_assignment, vectorizable_shift,
1268         vectorizable_operation, vectorizable_type_demotion,
1269         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1270         Likewise.
1271         (vectorizable_condition): Move the check that it is not SLP
1272         vectorization before the number of copies check.
1273         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1274         to vectorize the loop using SLP.
1275
1276 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
1277
1278         PR middle-end/48597
1279         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1280         inline asm.
1281
1282 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
1283
1284         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1285         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1286         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1287         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1288         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1289         linux*.h headers.
1290         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1291         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1292         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1293         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1294         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1295         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1296         REG_NAME.
1297         * config/i386/linux.h (REG_NAME): Don't define.
1298         * config/i386/linux64.h (REG_NAME): Don't define.
1299         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1300         Undefine before defining.
1301
1302 2011-04-28  Jan Hubicka  <jh@suse.cz>
1303
1304         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1305         nonconstant_names array.
1306         (estimate_function_body_sizes): Build nonconstant_names array; handle
1307         BUILT_IN_CONSTANT_P.
1308
1309 2011-04-28  Richard Guenther  <rguenther@suse.de>
1310
1311         PR bootstrap/48804
1312         Revert
1313         2011-04-28  Richard Guenther  <rguenther@suse.de>
1314
1315         * tree-ssa-structalias.c (solve_constraints): Build succ graph
1316         as late as possible.
1317
1318 2011-04-28  Richard Guenther  <rguenther@suse.de>
1319
1320         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1321         (debug_constraint): Do it here.
1322         (dump_constraints): And here.
1323         (rewrite_constraints): And here.
1324         (dump_constraint_edge): Remove.
1325         (dump_constraint_graph): Rewrite to produce DOT output.
1326         (solve_constraints): Build succ graph as late as possible.
1327         Dump constraint graphs before and after solving.
1328
1329 2011-04-28  Richard Guenther  <rguenther@suse.de>
1330
1331         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1332         New function split out from ...
1333         (find_func_aliases): ... here.  Call it.
1334         (find_func_aliases_for_call): Likewise.
1335
1336 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1337
1338         * internal-fn.h (internal_fn_name_array): Declare.
1339         (internal_fn_flags_array): Likewise.
1340
1341 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1342
1343         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
1344         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1345         Move from sse.md.
1346         (ssemodefsuffix): Remove.
1347         (ssevecmodesuffix): New mode attribute.
1348         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1349         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1350         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1351         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1352         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1353         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1354         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1355         ssemodesuffix mode attribute.
1356         (float splitters): Use ssevecmodesuffix mode attribute.
1357         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1358         (sseinsmode): Rename from avxvecmode.
1359         (avxsizesuffix): Rename from avxmodesuffix.
1360         (sseintvecmode): Rename from avxpermvecmode.
1361         (ssedoublevecmode): Rename from ssedoublesizemode.
1362         (ssehalfvecmode): Rename from avxhalfvecmode.
1363         (ssescalarmode): Rename from avxscalarmode.
1364         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1365         templates for ssemodesuffix mode attribute.
1366         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1367         mode attribute.
1368
1369         Adjust RTX patterns globally for renamed mode attributes.
1370
1371 2011-04-27  Jan Hubcika  <jh@suse.cz>
1372
1373         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1374         * ipa-inline-analysis.c: Include alloc-pool.h.
1375         (edge_predicate_pool): New.
1376         (trye_predicate_p): New function
1377         (false_predicate_p): New function.
1378         (add_clause): Sanity check that false clauses are "optimized";
1379         never add clauses to predicate that is already known to be false.
1380         (and_predicate): Use flase_predicate_p.
1381         (evaulate_predicate): Rename to ...
1382         (evaluate_predicate): ... this one; update all callers; assert
1383         that false is not listed among possible truths.
1384         (dump_predicate): Use true_predicate_p.
1385         (account_size_time): Use false_predicate_p.
1386         (evaulate_conditions_for_edge): Rename to ...
1387         (evaluate_conditions_for_edge) ... this one.
1388         (edge_set_predicate): New function.
1389         (inline_edge_duplication_hook): Duplicate edge predicates.
1390         (inline_edge_removal_hook): Free edge predicates.
1391         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1392         (dump_inline_summary): Update.
1393         (estimate_function_body_sizes): Set edge predicates.
1394         (estimate_calls_size_and_time): Handle predicates.
1395         (estimate_callee_size_and_time): Update.
1396         (remap_predicate): Add toplev_predicate; update comment.
1397         (remap_edge_predicates): New function.
1398         (inline_merge_summary): Compute toplev predicate; update.
1399         (read_predicate): New function.
1400         (read_inline_edge_summary): Use it.
1401         (inline_read_section): Likewise.
1402         (write_predicate): New function.
1403         (write_inline_edge_summary): Use it.
1404         (inline_write_summary): Likewise.
1405         (inline_free_summary): Free alloc pool and edge summary vec.
1406
1407 2011-04-27  Richard Guenther  <rguenther@suse.de>
1408
1409         * tree-ssa-structalias.c (changed_count): Remove.
1410         (changed): Use a bitmap.
1411         (unify_nodes): Adjust.
1412         (do_sd_constraint): Likewise.
1413         (do_ds_constraint): Likewise.
1414         (do_complex_constraint): Likewise.
1415         (solve_graph): Likewise.
1416
1417 2011-04-27  Jan Hubicka  <jh@suse.cz>
1418
1419         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1420
1421 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1422
1423         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1424         (avx_vperm2f128_*_operand): Ditto.
1425         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1426         Use avx_vpermilp_parallel in insn condition.
1427         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1428         Use avx_vperm2f128_parallel in insn condition.
1429
1430 2011-04-27  Richard Guenther  <rguenther@suse.de>
1431
1432         * Makefile.in (tree-ssa-structalias.o): Remove
1433         gt-tree-ssa-structalias.h dependency.
1434         (GTFILES): Remove tree-ssa-structalias.c.
1435         * tree.c (allocate_decl_uid): New function.
1436         (make_node_stat): Use it.
1437         (copy_node_stat): Likewise.
1438         * tree.h (allocate_decl_uid): Declare.
1439         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1440         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1441         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1442         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1443         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1444         (struct heapvar_map): Likewise.
1445         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1446         heapvar_insert): Likewise.
1447         (make_heapvar_for): Rename to ...
1448         (make_heapvar): ... this.  Simplify.
1449         (fake_var_decl_obstack): New global var.
1450         (build_fake_var_decl): New function.
1451         (make_constraint_from_heapvar): Adjust.
1452         (handle_lhs_call): Likewise.
1453         (create_function_info_for): Likewise.
1454         (intra_create_variable_infos): Likewise.
1455         (init_alias_vars): Allocate fake_var_decl_obstack.
1456         (init_alias_heapvars, delete_alias_heapvars): Remove.
1457         (compute_points_to_sets): Do not call init_alias_heapvars.
1458         (ipa_pta_execute): Likewise.
1459         (delete_points_to_sets): Free fake_var_decl_obstack.
1460
1461 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1462
1463         * config/spu/divmovti4.c (union qword_UTItype): New data type.
1464         (si_from_UTItype, si_to_UTItype): New functions.
1465         (__udivmodti4): Use them to implement type-punning.
1466         * config/spu/multi3.c (union qword_TItype): New data type.
1467         (si_from_TItype, si_to_TItype): New functions.
1468         (__multi3): Use them to implement type-punning.
1469
1470 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1471
1472         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1473
1474 2011-04-27  Jan Hubicka  <jh@suse.cz>
1475
1476         * ipa-prop.c (function_insertion_hook_holder): New holder.
1477         (ipa_add_new_function): New function.
1478         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1479         Register/deregister holder.
1480
1481 2011-04-27  Richard Guenther  <rguenther@suse.de>
1482
1483         PR tree-optimization/48772
1484         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1485
1486 2011-04-27  Richard Guenther  <rguenther@suse.de>
1487
1488         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1489         TARGET_MEM_REF handling.
1490
1491 2011-04-27  Nick Clifton  <nickc@redhat.com>
1492
1493         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1494         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1495         (REG_CLASS_NAMES): Likewise.
1496         (REG_CLASS_CONTENTS): Likewise.
1497         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1498         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1499         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
1500         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
1501         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
1502         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1503         duplicate register classes.
1504         (frv_class_likely_spilled_p): Likewise.
1505         (frv_register_move_cost): Likewise.
1506
1507         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1508         end of the regno_reg_class array.
1509
1510 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
1511
1512         PR c/48742
1513         * c-typeck.c (build_binary_op): Don't wrap arguments if
1514         int_operands is true.
1515
1516 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
1517
1518         PR target/48767
1519         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1520         targetm.calls.must_pass_in_stack for void type.
1521
1522 2011-04-26  Jan Hubicka  <jh@suse.cz>
1523
1524         * cgraphbuild.c (build_cgraph_edges): Update call
1525         of cgraph_create_edge and cgraph_create_indirect_edge.
1526         * cgraph.c (cgraph_create_edge_including_clones,
1527         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1528         cgraph_update_edges_for_call_stmt_node): Do not take nest
1529         argument; do not initialize call_stmt_size/time.
1530         (dump_cgraph_node): Do not dump nest.
1531         (cgraph_clone_edge): Do not take loop_nest argument;
1532         do not propagate it; do not clone call_stmt_size/time.
1533         (cgraph_clone_node): Likewise.
1534         (cgraph_create_virtual_clone): Update.
1535         * cgraph.h (struct cgraph_edge): Remove
1536         call_stmt_size/call_stmt_time/loop_nest.
1537         (cgraph_create_edge, cgraph_create_indirect_edge,
1538         cgraph_create_edge_including_clones, cgraph_clone_node): Update
1539         prototype.
1540         * tree-emutls.c (gen_emutls_addr): Update.
1541         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1542         loop_nest; handle indirect calls, too.
1543         (clone_inlined_nodes): Do not care about updating inline summaries.
1544         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1545         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1546         stream call_stmt_size/call_stmt_time/loop_nest.
1547         * ipa-inline.c (edge_badness): Update.
1548         (ipa_inline): dump summaries after inlining.
1549         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1550         New.
1551         (inline_edge_summary): New function.
1552         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1553         (inline_edge_removal_hook): Handle edge summaries.
1554         (inline_edge_duplication_hook): New hook.
1555         (inline_summary_alloc): Alloc hooks.
1556         (initialize_growth_caches): Do not register removal hooks.
1557         (free_growth_caches); Do not free removal hook.
1558         (dump_inline_edge_summary): New function.
1559         (dump_inline_summary): Use it.
1560         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1561         (inline_update_callee_summaries): New function.
1562         (inline_merge_summary): Use it.
1563         (do_estimate_edge_time, do_estimate_edge_growth): Update.
1564         (read_inline_edge_summary): New function.
1565         (inline_read_section): Use it.
1566         (write_inline_edge_summary): New function.
1567         (inline_write_summary): Use it.
1568         (inline_free_summary): Free edge new holders.
1569         * tree-inline.c (copy_bb): Update.
1570
1571 2011-04-26  Jason Merrill  <jason@redhat.com>
1572
1573         * tree-eh.c (lower_try_finally_switch): Create the label along with
1574         the CASE_LABEL_EXPR.
1575
1576 2011-04-26  David S. Miller  <davem@davemloft.net>
1577             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1578
1579         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1580         * configure: Regenerate.
1581
1582 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1583
1584         PR target/48258
1585         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1586         reduction.
1587         (VEC_reduc): New code iterator and splitters for vector reduction.
1588         (VEC_reduc_name): Ditto.
1589         (VEC_reduc_rtx): Ditto.
1590         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1591         (reduc_<VEC_reduc_name>_v4sf): Ditto.
1592
1593         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1594         support for extracting SF on VSX.
1595
1596         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1597         generating xscvspdp.
1598         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1599         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1600         double add, minimum, maximum vector reduction.
1601         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1602         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1603         optimize double vector reduction.
1604         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1605
1606 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
1607
1608         * config/fr30/fr30.h (inhibit_libc): Don't define.
1609         * config/m32r/m32r-protos.h: Correct comment.
1610         * config/v850/v850.h (GHS_default_section_names,
1611         GHS_current_section_names): Use tree, not union tree_node *.
1612
1613 2011-04-26  Xinliang David Li  <davidxl@google.com>
1614
1615         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1616         * c-family/c-opts.c (c_common_handle_option): Set
1617         warn_maybe_uninitialized.
1618         * opts.c (common_handle_option): Ditto.
1619         * common.opt:  New option.
1620         * tree-ssa.c (warn_uninit): Add one more parameter.
1621         (warn_uninitialized_var): Pass warning code.
1622         * tree-flow.h: Interface change.
1623
1624
1625 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1626
1627         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1628         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1629         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1630
1631 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1632
1633         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1634         * config/mips/mips.opt (mmips-tfile): Remove.
1635
1636         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1637         mips-tdump reference to ...
1638         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
1639         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1640         reference by Tru64 UNIX.
1641
1642 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
1643
1644         PR debug/48768
1645         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1646         is error_mark_node, set value to NULL.
1647
1648         PR tree-optimization/48734
1649         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1650         if return value from maybe_fold_*_comparsions isn't something
1651         the code is prepared to handle.
1652
1653 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
1654
1655         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1656         mode check.
1657         (ext_QIreg_nomode_operands): Remove.
1658         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1659         (*andsi_1): Ditto.
1660         (*andhi_1): Ditto.
1661
1662 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
1663
1664         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1665
1666 2011-04-26  Richard Guenther  <rguenther@suse.de>
1667
1668         * c-typeck.c (build_unary_op): Do not expand array-refs via
1669         pointer arithmetic.  Only adjust qualifiers for function types.
1670
1671 2011-04-26  Richard Guenther  <rguenther@suse.de>
1672
1673         PR middle-end/48694
1674         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1675         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1676         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
1677         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1678
1679 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
1680
1681         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1682         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1683         * doc/extend.texi: Document __underlying_type.
1684
1685 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
1686
1687         * config/rs6000/titan.md (automata_option "progress"): Remove.
1688
1689 2011-04-25  Jeff Law  <law@redhat.com>
1690
1691         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1692
1693 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1694
1695         * system.h (ENUM_BITFIELD): Remove.
1696
1697 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
1698             Eric Botcazou  <ebotcazou@adacore.com>
1699
1700         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1701         for STORE_FLAG_VALUE==-1 case.
1702
1703 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
1704
1705         PR target/43804
1706         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1707         LEGITIMATE_PIC_OPERAND_P.
1708
1709 2011-04-24  Jan Hubicka  <jh@suse.cz>
1710
1711         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1712         WPA hack.
1713         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1714         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1715         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1716         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1717         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1718         Sanity check predicate length.
1719         (remap_predicate): Likewise; sanity check jump functions.
1720         (inline_read_section, inline_write_summary): Sanity check
1721         predicate length.
1722
1723 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1724
1725         PR other/48748
1726         * doc/extend.texi (Type Traits): Document __is_standard_layout,
1727         __is_literal_type, and __is_trivial; update throughout about
1728         possibly cv-qualified void types.
1729
1730 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
1731
1732         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1733         testsuite and make it version agnostic.
1734
1735 2011-04-22  Jan Hubicka  <jh@suse.cz>
1736
1737         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1738
1739 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
1740
1741         PR c/48685
1742         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1743         to VOID_TYPE even around MODIFY_EXPR.
1744
1745 2011-04-22  Mike Stump  <mikestump@comcast.net>
1746
1747         * gensupport.c (read_md_rtx): Fix typo in comment.
1748         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1749         comment.
1750
1751 2011-04-22  Jan Hubicka  <jh@suse.cz>
1752
1753         * gengtype.c (open_base_files): Add ipa-inline.h include.
1754         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1755         ipa-prop.c; update all uses.
1756         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1757         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1758         merge summary of inlined function into former caller.
1759         * ipa-inline.c (max_benefit): Remove.
1760         (edge_badness): Compensate for removal of benefits.
1761         (update_caller_keys): Use
1762         reset_node_growth_cache/reset_edge_growth_cache.
1763         (update_callee_keys): Likewise.
1764         (update_all_callee_keys): Likewise.
1765         (inline_small_functions): Do not collect max_benefit; do not reset
1766         estimated_growth; call free_growth_caches and initialize_growth_caches.
1767         * ipa-inline.h (struct condition, type clause_t, struct predicate,
1768         struct size_time_entry): New structures.
1769         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1770         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1771         and estimated_growth.
1772         (edge_growth_cache_entry): New structure.
1773         (node_growth_cache, edge_growth_cache): New global vars.
1774         (estimate_growth): Turn into inline.
1775         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1776         initialize_growth_caches, free_growth_caches): Declare.
1777         (estimate_edge_growth): Rewrite.
1778         (estimate_edge_time): Implement as inline cache lookup.
1779         (reset_node_growth_cache, reset_edge_growth_cache): New inline
1780         functions.
1781         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
1782         (NUM_CONDITIONS): New constant.
1783         (predicate_conditions): New enum.
1784         (IS_NOT_CONSTANT): New constant.
1785         (edge_removal_hook_holder): New var.
1786         (node_growth_cache, edge_growth_cache): New global vars.
1787         (true_predicate, single_cond_predicate, false_predicate,
1788         not_inlined_predicate, add_condition, add_clause, and_predicates,
1789         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
1790         dump_clause, dump_predicate, account_size_time,
1791         evaulate_conditions_for_edge): New functions.
1792         (inline_summary_alloc): Move to heap.
1793         (inline_node_removal_hook): Clear condition and entry vectors.
1794         (inline_edge_removal_hook): New function.
1795         (initialize_growth_caches, free_growth_caches): New function.
1796         (dump_inline_summary): Update.
1797         (edge_execution_predicate): New function.
1798         (will_be_nonconstant_predicate): New function.
1799         (estimate_function_body_sizes): Compute BB and constantness predicates.
1800         (compute_inline_parameters): Do not clear estimated_growth.
1801         (estimate_edge_size_and_time): New function.
1802         (estimate_calls_size_and_time): New function.
1803         (estimate_callee_size_and_time): New function.
1804         (remap_predicate): New function.
1805         (inline_merge_summary): New function.
1806         (do_estimate_edge_time): New function based on...
1807         (estimate_edge_time): ... this one.
1808         (do_estimate_edge_growth): New function.
1809         (do_estimate_growth): New function based on....
1810         (estimate_growth): ... this one.
1811         (inline_analyze_function): Analyze after deciding on jump functions.
1812         (inline_read_section): New function.
1813         (inline_read_summary): Use it.
1814         (inline_write_summary): Write all the new data.
1815         * ipa-prop.c (ipa_get_param_decl_index): Export.
1816         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
1817         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
1818         Declare.
1819         (ipa_get_lattice): Move here from ipa-cp.c
1820         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
1821         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
1822         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
1823         cgraph_edge_inlinable_p): Remove.
1824         * cgraphunit.c: Include ipainline.h
1825         (cgraph_process_new_functions): Update call of
1826         compute_inline_parameters.
1827
1828 2011-04-22  Richard Guenther  <rguenther@suse.de>
1829
1830         * tree.c (build_int_cst): Properly create canonicalized integer
1831         constants.
1832         (build_int_cst_type): Remove scary comments.
1833
1834 2011-04-22  Xinliang David Li  <davidxl@google.com>
1835
1836         * toplev.c (process_options): Enable -Werror=coverage-mismatch
1837         by default when -Wno-error is not specified.
1838         * opts-global.c (decode_options): Remove call to
1839         control_warning_options.
1840
1841 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
1842
1843         PR tree-optimization/48717
1844         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
1845         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
1846
1847 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
1848
1849         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
1850         definition where used.
1851
1852 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
1853
1854         PR c/48716
1855         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
1856         TREE_STATIC variables declared inside of some OpenMP construct.
1857
1858 2011-04-22  Martin Jambor  <mjambor@suse.cz>
1859
1860         PR middle-end/48585
1861         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
1862
1863 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
1864
1865         PR c/36750
1866         * c-typeck.c (pop_init_level): Do not warn about initializing
1867         with ` = {0}'.
1868
1869 2011-04-22  Alan Modra  <amodra@gmail.com>
1870
1871         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
1872         when returning call_cookie.
1873         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
1874         pointers, to functions with no more vector args than the current
1875         function, and some non-local calls for ABI_V4.
1876         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
1877         sibcall_nonlocal_aix64): Combine to ..
1878         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
1879         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
1880         (sibcall_value_nonlocal_aix<mode>): ..likewise.
1881         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
1882         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
1883         operand.
1884         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
1885         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
1886         sibcall_value_symbolic_64): Delete.
1887
1888 2011-04-21  Xinliang David Li  <davidxl@google.com>
1889
1890         * cgraph.h: Remove pid.
1891         * cgraph.c: Remove pid.
1892         * value-prof.c (init_node_map): New function.
1893         (del_node_map): New function.
1894         (find_func_by_funcdef_no): New function.
1895         (gimple_ic_transform): Call new function.
1896         * cgraphunit.c (cgraph_finalize_function): Remove pid.
1897         * function.c (get_last_funcdef_no): New function.
1898         * function.h (get_last_funcdef_no): New function.
1899         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
1900         to libgcov function.
1901         (tree-profiling): Call node map init and delete function.
1902
1903 2011-04-21  Ian Lance Taylor  <iant@google.com>
1904
1905         * godump.c (go_format_type): Use exported Go name for anonymous
1906         field name.
1907
1908 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
1909
1910         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
1911         Call builtin_function_type_list instead of builtin_function_type.
1912         (UNARY, BINARY, TRINARY, QUAD): Likewise.
1913
1914 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
1915
1916         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
1917         build_function_type_list instead of build_function_type.
1918         Delete variable `endlink'.
1919
1920 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
1921
1922         * config/s390/s390.c (s390_init_builtins): Call
1923         build_function_type_list instead of build_function_type.
1924
1925 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
1926
1927         * config/ia64/ia64.c (ia64_init_builtins): Call
1928         build_function_type_list instead of builtin_function_type.
1929
1930 2011-04-21  Easwaran Raman  <eraman@google.com>
1931
1932         * cfgexpand.c (stack_var): Remove OFFSET...
1933         (add_stack_var): ...and its reference here...
1934         (expand_stack_vars): ...and here.
1935         (stack_var_cmp): Sort by descending order of size.
1936         (partition_stack_vars): Change heuristic.
1937         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
1938         (dump_stack_var_partition): Add newline after each partition.
1939
1940 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
1941             Jeff Law  <law@redhat.com>
1942
1943         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
1944         * gengtype.c (matching_file_name_substitute): Likewise.
1945
1946 2011-04-21  Richard Guenther  <rguenther@suse.de>
1947
1948         PR lto/48703
1949         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
1950
1951 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
1952
1953         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
1954
1955 2011-04-21  Richard Guenther  <rguenther@suse.de>
1956
1957         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
1958         file name.
1959
1960 2011-04-21  Richard Guenther  <rguenther@suse.de>
1961
1962         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1963         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
1964         Use DECL_P, not SSA_VAR_P.
1965         (ptr_derefs_may_alias_p): Likewise.
1966         (ptr_deref_may_alias_ref_p_1): Likewise.
1967         (decl_refs_may_alias_p): Likewise.
1968         (refs_may_alias_p_1): Likewise.
1969         (ref_maybe_used_by_call_p_1): Likewise.
1970         (call_may_clobber_ref_p_1): Likewise.
1971         (indirect_ref_may_alias_decl_p): Assume indirect refrences
1972         are either MEM_REF or TARGET_MEM_REF.
1973         (indirect_refs_may_alias_p): Likewise.
1974         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
1975         for MEM_EXPR of indirect calls.
1976
1977 2011-04-21  Tristan Gingold  <gingold@adacore.com>
1978
1979         * vmsdbgout.c (write_srccorr): Compute file length from the string.
1980         (dst_file_info_struct): Remove flen field.
1981         (lookup_filename): Remove code that set flen field.
1982
1983 2011-04-21  Tristan Gingold  <gingold@adacore.com>
1984
1985         * config/ia64/ia64.c (ia64_start_function): Add a guard.
1986
1987 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
1988
1989         PR target/48708
1990         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
1991         vec_extract and vec_concat for non-SSE4_1 targets.
1992
1993 2011-04-21  Richard Guenther  <rguenther@suse.de>
1994
1995         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
1996         return statements.
1997
1998 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
1999
2000         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2001         undefine.
2002         (FILE): Don't undefine.
2003
2004 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2005
2006         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2007         struct rtx_def *.
2008         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2009         struct rtx_def *.
2010         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2011         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2012         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2013         rtx_def *.
2014         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2015         definitions where used.
2016         * config/microblaze/microblaze.h (struct microblaze_args): Use
2017         rtx, not struct rtx_def *.
2018         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2019         rtx_def *.
2020         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2021         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2022         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2023         not struct rtx_def *.
2024         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2025         struct rtx_def *.
2026         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2027         rtx_def *.
2028         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2029
2030 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2031
2032         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2033         operand_equal_p to compare DR_BASE_ADDRESSes.
2034         (vect_check_interleaving): Likewise.
2035
2036 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2037
2038         PR target/46329
2039         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2040         for all Neon struct constants.
2041
2042 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2043
2044         * target.def (legitimate_constant_p): New hook.
2045         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2046         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2047         * doc/tm.texi: Regenerate.
2048         * hooks.h (hook_bool_mode_rtx_true): Declare.
2049         * hooks.c (hook_bool_mode_rtx_true): Define.
2050         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2051         * calls.c (precompute_register_parameters): Replace uses of
2052         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2053         (emit_library_call_value_1): Likewise.
2054         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2055         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2056         * ira-costs.c (scan_one_insn): Likewise.
2057         * recog.c (general_operand, immediate_operand): Likewise.
2058         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2059         * reload1.c (init_eliminable_invariants): Likewise.
2060
2061         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2062         mode argument.
2063         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2064         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2065         argument.
2066         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2067         * config/alpha/predicates.md (input_operand): Update call to
2068         alpha_legitimate_constant_p.
2069
2070         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2071         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2072         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2073         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2074         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2075         (arm_legitimate_constant_p): New functions.
2076         (arm_cannot_force_const_mem): Make static.
2077
2078         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2079
2080         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2081         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2082         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2083         instead of bfin_legitimate_constant_p.
2084         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2085         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2086
2087         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2088
2089         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2090
2091         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2092         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2093         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2094         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2095
2096         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2097         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2098         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2099
2100         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2101         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2102         * config/i386/i386.c (legitimate_constant_p): Rename to...
2103         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2104         argument.
2105         (ix86_cannot_force_const_mem): Update accordingly.
2106         (ix86_legitimate_address_p): Likewise.
2107         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2108         * config/i386/i386.md: Update commentary.
2109
2110         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2111         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2112         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2113         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2114
2115         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2116
2117         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2118         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2119         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2120         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2121
2122         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2123         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2124         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2125
2126         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2127         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2128         (m32r_legitimate_constant_p): New function.
2129
2130         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2131         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2132         LEGITIMATE_CONSTANT_P.
2133         (LEGITIMATE_CONSTANT_P): Delete.
2134         * config/m68k/m68k.c (m68k_expand_prologue): Call
2135         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2136         (m68k_legitimate_constant_p): New function.
2137         * config/m68k/m68k.md: Update comments.
2138
2139         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2140         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2141         (mcore_legitimate_constant_p): New function.
2142
2143         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2144         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2145         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2146         Add a mode argument.
2147         (mep_legitimate_address): Update accordingly.
2148         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2149
2150         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2151         Delete.
2152         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2153         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2154         static.  Check OP's mode for VOIDmode.
2155         (microblaze_legitimate_constant_p): New function.
2156         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2157
2158         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2159         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2160         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2161         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2162         * config/mips/predicates.md: Update comments.
2163
2164         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2165         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2166         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2167         (mmix_legitimate_constant_p): Make static, return a bool, and take
2168         a mode argument.
2169         (mmix_print_operand_address): Update accordingly.
2170
2171         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2172         Delete.
2173         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2174         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2175         static.  Add a mode argument.
2176         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2177
2178         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2179
2180         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2181         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2182         (pa_legitimate_constant_p): New function.
2183
2184         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2185
2186         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2187         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2188         (pdp11_legitimate_constant_p): New function.
2189
2190         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2191         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2192         (rs6000_legitimate_constant_p): New function.
2193
2194         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2195         (rx_legitimate_constant_p): ...this.
2196         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2197         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2198         (rx_legitimate_constant_p): ...this.
2199         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2200         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2201
2202         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2203         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2204         * config/s390/s390.c (legitimate_constant_p): Rename to...
2205         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
2206         and add a mode argument.
2207         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2208
2209         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2210
2211         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2212         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2213         (sh_legitimate_constant_p): New function.
2214
2215         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2216         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2217         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2218         (legitimate_constant_p): Rename to...
2219         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
2220         argument.
2221         (constant_address_p): Update accordingly.
2222
2223         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2224         argument and return a bool.
2225         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2226         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2227         (spu_legitimate_constant_p): Add a mode argument and return a bool.
2228         (spu_rtx_costs): Update accordingly.
2229         * config/spu/predicates.md (vec_imm_operand): Likewise.
2230
2231         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2232
2233         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2234         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2235         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2236
2237         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2238         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2239         * config/vax/vax.c (legitimate_constant_p): Likewise.
2240
2241         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2242         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2243         (xtensa_legitimate_constant_p): New function.
2244
2245 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2246
2247         * target.def (cannot_force_const_mem): Add a mode argument.
2248         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2249         * doc/tm.texi: Regenerate.
2250         * hooks.h (hook_bool_mode_rtx_false): Declare.
2251         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2252         (hook_bool_mode_const_rtx_true): Likewise.
2253         (hook_bool_mode_rtx_false): New function.
2254         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2255         to be non-VOID.  Update call to cannot_force_const_mem.
2256         (find_reloads): Update accordingly.
2257         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2258         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2259         argument.
2260         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2261         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2262         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2263         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2264         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2265         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2266         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2267         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2268         (m68k_cannot_force_const_mem): ...this new function.
2269         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2270         argument.
2271         (mips_const_insns, mips_legitimize_const_move): Update calls.
2272         (mips_secondary_reload_class): Likewise.
2273         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2274         (pa_cannot_force_const_mem): ...this new function.
2275         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2276         (rs6000_cannot_force_const_mem): ...this new function.
2277         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2278         argument.
2279         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2280         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2281         to...
2282         (xtensa_cannot_force_const_mem): ...this new function.
2283
2284 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2285
2286         * config/mips/mips.c (mips16_build_function_stub): Call
2287         build_function_type_list instead of build_function_type.
2288         (mips16_build_call_stub): Likewise.
2289
2290 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2291
2292         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2293         instead of build_function_type.
2294
2295 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2296
2297         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2298         instead of build_function_type.
2299
2300 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
2301
2302         PR target/48678
2303         * config/i386/i386.md (insv): Change operand 0 constraint to
2304         "register_operand".  Change operand 1 and 2 constraint to
2305         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
2306         * config/i386/sse.md (sse4_1_pinsrb): Export.
2307         (sse2_pinsrw): Ditto.
2308         (sse4_1_pinsrd): Ditto.
2309         (sse4_1_pinsrq): Ditto.
2310         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2311         * config/i386/i386.c (ix86_expand_pinsr): New.
2312
2313 2011-04-20  Easwaran Raman  <eraman@google.com>
2314
2315         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2316         containing union type only with -fstrict-aliasing.
2317
2318 2011-04-20  Jim Meyering  <meyering@redhat.com>
2319
2320         Remove useless if-before-free tests.
2321         * calls.c (expand_call, save_area): Likewise.
2322         * cfgcleanup.c (try_forward_edges): Likewise.
2323         * collect2.c (collect_execute): Likewise.
2324         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2325         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2326         * coverage.c (coverage_checksum_string): Likewise.
2327         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2328         * cselib.c (cselib_init): Likewise.
2329         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2330         (df_set_clean_cfg): Likewise.
2331         * function.c (free_after_compilation): Likewise.
2332         * gcc.c (do_spec_1, main): Likewise.
2333         * gcov.c (create_file_names): Likewise.
2334         * gensupport.c (identify_predicable_attribute): Likewise.
2335         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2336         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2337         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2338         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2339         * ipa-pure-const.c (local_pure_const): Likewise.
2340         * ipa-reference.c (propagate): Likewise.
2341         * ira-costs.c (free_ira_costs): Likewise.
2342         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2343         * matrix-reorg.c (mat_free): Likewise.
2344         * prefix.c (get_key_value): Likewise.
2345         * profile.c (compute_value_histograms): Likewise.
2346         * reload1.c (free_reg_equiv): Likewise.
2347         * sched-deps.c (free_deps): Likewise.
2348         * sel-sched-ir.c (fence_clear): Likewise.
2349         * sese.c (set_rename, if_region_set_false_region): Likewise.
2350         * tree-data-ref.c (free_rdg): Likewise.
2351         * tree-eh.c (lower_try_finally): Likewise.
2352         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2353         * tree-ssa-live.c (delete_var_map): Likewise.
2354         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2355         * tree-ssa-pre.c (phi_trans_add): Likewise.
2356
2357 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
2358
2359         PR tree-optimization/48611
2360         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2361         beyond ERT_MUST_NOT_THROW region.
2362
2363 2011-04-20  Catherine Moore  <clm@codesourcery.com>
2364
2365         * config/mips/mips.opt (mfix-24k): New.
2366         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2367         * config/mips/mips.md (length): Increase by 4 for stores if
2368         fixing 24K errata.
2369         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2370         all noreorder if fixing 24K errata.
2371         * doc/invoke.texi: Document mfix-24k.
2372
2373 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
2374
2375         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2376         quad-word modes, reduce to 9-bit index range when above 1016 limit.
2377
2378 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2379
2380         * config/arm/arm.c (arm_gen_constant): Move movw support ....
2381         (const_ok_for_op): ... to here.
2382
2383 2011-04-20  Kai Tietz  <ktietz@redhat.com>
2384
2385         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2386         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2387
2388 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2389
2390         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2391
2392 2011-04-20  Richard Guenther  <rguenther@suse.de>
2393
2394         PR tree-optimization/47892
2395         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2396         are if-convertible.
2397
2398 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2399
2400         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2401
2402 2011-04-20  Tristan Gingold  <gingold@adacore.com>
2403
2404         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2405
2406 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
2407
2408         PR target/18145
2409
2410         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2411         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2412         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2413         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2414         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2415
2416         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2417         New prototype.
2418
2419         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2420         (avr_asm_named_section, avr_asm_output_aligned_common,
2421         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2422         New functions to update...
2423         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2424         (avr_asm_init_sections): Overwrite section callbacks for
2425         data_section, bss_section.
2426         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2427         from here to...
2428         (avr_file_end): ...here.
2429
2430 2011-04-20  Richard Guenther  <rguenther@suse.de>
2431
2432         PR middle-end/48695
2433         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2434         objects and types here.  Adjust for their offset before comparing.
2435
2436 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2437
2438         * tree-vect-stmts.c (vectorizable_store): Only chain one related
2439         statement per copy.
2440
2441 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2442
2443         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2444         (GIMPLE_H): Include $(INTERNAL_FN_H).
2445         (OBJS-common): Add internal-fn.o.
2446         (internal-fn.o): New rule.
2447         * internal-fn.def: New file.
2448         * internal-fn.h: Likewise.
2449         * internal-fn.c: Likewise.
2450         * gimple.h: Include internal-fn.h.
2451         (GF_CALL_INTERNAL): New gf_mask.
2452         (gimple_statement_call): Put fntype into a union with a new
2453         internal_fn field.
2454         (gimple_build_call_internal): Declare.
2455         (gimple_build_call_internal_vec): Likewise.
2456         (gimple_call_same_target_p): Likewise.
2457         (gimple_call_internal_p): New function.
2458         (gimple_call_internal_fn): Likewise.
2459         (gimple_call_fntype): Return null for internal calls.
2460         (gimple_call_set_fntype): Assert that the function is not internal.
2461         (gimple_call_set_fn): Likewise.
2462         (gimple_call_set_fndecl): Likewise.
2463         (gimple_call_set_internal_fn): New function.
2464         (gimple_call_addr_fndecl): Handle null functions.
2465         (gimple_call_return_type): Likewise null types.
2466         * gimple.c (gimple_build_call_internal_1): New function.
2467         (gimple_build_call_internal): Likewise.
2468         (gimple_build_call_internal_vec): Likewise.
2469         (gimple_call_same_target_p): Likewise.
2470         (gimple_call_flags): Handle calls to internal functions.
2471         (gimple_call_fnspec): New function.
2472         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2473         (gimple_has_side_effects): Handle null functions.
2474         (gimple_rhs_has_side_effects): Likewise.
2475         (gimple_call_copy_skip_args): Handle calls to internal functions.
2476         * cfgexpand.c (expand_call_stmt): Likewise.
2477         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2478         * gimple-fold.c (gimple_fold_call): Handle null functions.
2479         (gimple_fold_stmt_to_constant_1): Don't fold
2480         calls to internal functions.
2481         * gimple-low.c (gimple_check_call_args): Handle calls to internal
2482         functions.
2483         * gimple-pretty-print.c (dump_gimple_call): Likewise.
2484         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2485         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2486         (do_warn_unused_result): Likewise.
2487         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2488         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2489         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2490         the target of a call.
2491         (initialize_hash_element): Update accordingly.
2492         (hashable_expr_equal_p): Use gimple_call_same_target_p.
2493         (iterative_hash_hashable_expr): Handle calls to internal functions.
2494         (print_expr_hash_elt): Likewise.
2495         * tree-ssa-pre.c (can_value_number_call): Likewise.
2496         (eliminate): Handle null functions.
2497         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2498         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2499         (find_func_aliases): Likewise.
2500         * value-prof.c (gimple_ic_transform): Likewise.
2501         (gimple_indirect_call_to_profile): Likewise.
2502         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2503         * lto-streamer-out.c (output_gimple_stmt): Likewise.
2504
2505 2011-04-19  Jan Hubicka  <jh@suse.cz>
2506
2507         * ipa-inline-transform.c (save_inline_function_body): Add comments.
2508         * ipa-inline.c (inline_small_functions): Compute summaries first,
2509         populate heap later.
2510
2511 2011-04-19  Jan Hubicka  <jh@suse.cz>
2512
2513         * cgraph.h (save_inline_function_body): Remove.
2514         * ipa-inline-transform.c: New file, broke out of...
2515         * ipa-inline.c: ... this one; Update toplevel comment.
2516         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2517         make global.
2518         (update_noncloned_frequencies): Move to ipa-inline-transform.c
2519         (cgraph_mark_inline_edge): Rename to inline_call; move to
2520         ipa-inline-transform.c.
2521         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2522         move to ipa-inline-transform.c
2523         (recursive_inlining, inline_small_functions, flatten_function,
2524         ipa_inline, inline_always_inline_functions,
2525         early_inline_small_functions): Update.
2526         (inline_transform): Move to ipa-inline-transform.c.
2527         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2528         Declare.
2529         * Makefile.in (ipa-inline-transform.o): New file.
2530         * cgraphunit.c (save_inline_function_body): Move to
2531         ipa-inline-transform.c
2532
2533 2011-04-19  DJ Delorie  <dj@redhat.com>
2534
2535         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2536         registers if we already know there aren't any.
2537         (m32c_emit_epilogue): Don't emit a barrier here.
2538         (m32c_emit_eh_epilogue): Likewise.
2539         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2540         operands at expand time.
2541         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2542         int" wchar type.
2543         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2544         duplicates.  Provide aliases instead.
2545         * config/m32c/prologue.md (eh_return): Emit a barrier here.
2546         (eh_epilogue): Add a "(return)" here as a hint to other parts of
2547         the compiler.
2548
2549 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
2550
2551         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2552         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2553         (general_or_i64_p, sparc_register_move_cost): New function.
2554
2555 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2556
2557         * doc/install.texi (Configuration, --enable-threads): Remove mach.
2558         Add lynx, mipssde.  Sort table.
2559
2560 2011-04-19  Xinliang David Li  <davidxl@google.com>
2561
2562         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2563         not negative.
2564
2565 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
2566
2567         PR target/48678
2568         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2569         is a SUBREG with non-MODE_INT mode inside of it.
2570
2571 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2572
2573         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2574         also according to actual contants.
2575         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2576         (gimple_fold_call): Use it.
2577         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2578
2579 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2580
2581         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2582         non-pointer assignments.
2583
2584 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2585
2586         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2587         account anc_offset and otr_type from the indirect edge info.
2588         * ipa-prop.c (get_ancestor_addr_info): New function.
2589         (compute_complex_ancestor_jump_func): Assignment analysis moved to
2590         get_ancestor_addr_info, call it.
2591         (ipa_note_param_call): Do not initialize information about polymorphic
2592         calls, return the indirect call graph edge.  Remove the last
2593         parameter, adjust all callers.
2594         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2595         parameters.  Initialize polymorphic information in the indirect edge.
2596
2597 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2598
2599         PR lto/48148
2600         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2601         the types if they have different enumeration identifiers.
2602
2603 2011-04-19  Jan Hubicka  <jh@suse.cz>
2604
2605         * cgraph.h (cgraph_optimize_for_size_p): Declare.
2606         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2607         * predict.c (cgraph_optimize_for_size_p): Break out from ...
2608         (optimize_function_for_size_p) ... here.
2609
2610 2011-04-19  Richard Guenther  <rguenther@suse.de>
2611
2612         PR lto/48207
2613         * tree.c (free_lang_data): Do not reset the decl-assembler-name
2614         langhook.
2615
2616 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2617
2618         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2619         if DECL_NO_INLINE_WARNING_P is set on the function.
2620
2621 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
2622
2623         PR fortran/47976
2624         * reload1.c (inc_for_reload): Return void. All callers changed.
2625         (emit_input_reload_insns): Don't try to delete previous output
2626         reloads to a register, or record spill_reg_store for autoincs.
2627
2628 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
2629
2630         * gengtype.h: Updated copyright year.
2631         (struct input_file_st): Add inpisplugin field.
2632         (type_fileloc): New function.
2633         * gengtype.c
2634         (write_typed_struct_alloc_def): Add gcc_assert.
2635         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2636         (write_typed_alloc_defns): Don't output for plugin files.
2637         (input_file_by_name): Clear inpisplugin field.
2638         (main): Set inpisplugin field for plugin files.
2639
2640 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2641
2642         * gengtype-state.c (string_eq): New.
2643         (read_state): Use string_eq instead of strcmp when creating the
2644         state_ident_tab.
2645
2646 2011-04-19  Wei Guozhi  <carrot@google.com>
2647
2648         PR target/47855
2649         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2650         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2651         linkage.
2652         * config/arm/constraints.md (Uu): New constraint.
2653         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2654
2655 2011-04-19  Tristan Gingold  <gingold@adacore.com>
2656
2657         * config.gcc (-*-*-*vms): Added.
2658         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2659         definitions moved.
2660         * config/vms/vms-ld.c: New file.
2661         * config/vms/vms-ar.c: New file.
2662         * config/vms/t-vmsnative: New file.
2663
2664 2011-04-18  Xinliang David Li  <davidxl@google.com>
2665
2666         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2667
2668 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
2669
2670         PR middle-end/48661
2671         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2672         if TREE_TYPE (v) is non-NULL.
2673
2674         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2675         gimple_get_virt_mehtod_for_binfo.
2676         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2677         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2678         callers.
2679         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2680
2681 2011-04-18  Michael Matz  <matz@suse.de>
2682             Steve Ellcey  <sje@cup.hp.com>
2683
2684         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2685         use its mode as source mode if it isn't VOIDmode.
2686
2687 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
2688
2689         * doc/passes.texi: Fill crossref nodes.
2690
2691 2011-04-18  Jim Meyering  <meyering@redhat.com>
2692
2693         Fix doubled-word typos in comments and strings
2694         * config/alpha/vms-unwind.h: s/for for/for/
2695         * config/arm/unwind-arm.h: Likewise.
2696         * config/microblaze/microblaze.c: Likewise.
2697         * config/sh/constraints.md: s/in in/in/
2698         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2699
2700 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
2701
2702         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2703         (AVX_FLOAT_MODE_P): Ditto.
2704         (AVX128_VEC_FLOAT_MODE_P): Ditto.
2705         (AVX256_VEC_FLOAT_MODE_P): Ditto.
2706         (AVX_VEC_FLOAT_MODE_P): Ditto.
2707         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2708         (UNSPEC_MASKSTORE): Ditto.
2709         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2710         Merge from <sse>_movmsk<ssemodesuffix> and
2711         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
2712         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
2713         iterator.
2714         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2715         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2716         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2717
2718 2011-04-18  Jan Hubicka  <jh@suse.cz>
2719
2720         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2721
2722         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2723         (want_inline_function_called_once_p): Break out the logic from
2724         ipa_inline.
2725         (edge_badness): Ensure that profile is not misupdated.
2726         (lookup_recursive_calls): Prioritize by call frequencies.
2727         (inline_small_functions): Move program size estimates here;
2728         actually process whole queue even when unit growth has been
2729         met. (to properly compute inline_failed reasons and for the
2730         case unit size decrease.) Revisit comments on recursive inlining.
2731         (ipa_inline): Remove unit summary code; first inline hot calls
2732         of functions called once, cold calls next.
2733         (order, nnodes): Remove unused variables.
2734         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2735         (GTFILES): Remove ipa-inline.c
2736         * sel-sched.c (fill_insns): Silence uninitialized var warning.
2737
2738 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2739
2740         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2741
2742 2011-04-18  Jie Zhang  <jie@codesourcery.com>
2743             Richard Earnshaw  <rearnsha@arm.com>
2744
2745         * arm.c (neon_builtin_type_bits): Remove.
2746         (typedef enum neon_builtin_mode): New.
2747         (T_MAX): Don't define.
2748         (typedef enum neon_builtin_datum): Remove bits, codes[],
2749         num_vars and base_fcode.  Add mode, code and fcode.
2750         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2751         VAR10): Change accordingly.
2752         (neon_builtin_data[]): Change accordingly
2753         (arm_init_neon_builtins): Change accordingly.
2754         (neon_builtin_compare): Remove.
2755         (locate_neon_builtin_icode): Remove.
2756         (arm_expand_neon_builtin): Change accordingly.
2757
2758         * arm.h (enum arm_builtins): Move to ...
2759         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2760
2761         * arm.c (arm_builtin_decl): Declare.
2762         (TARGET_BUILTIN_DECL): Define.
2763         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2764         (arm_builtin_decls[]): New.
2765         (arm_init_neon_builtins): Store builtin declarations in
2766         arm_builtin_decls[].
2767         (arm_init_tls_builtins): Likewise.
2768         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
2769         (arm_builtin_decl): New.
2770
2771 2011-04-18  Richard Guenther  <rguenther@suse.de>
2772
2773         * tree.c (upper_bound_in_type): Build properly canonicalized
2774         INTEGER_CSTs.
2775         (lower_bound_in_type): Likewise.
2776
2777 2011-04-18  Richard Guenther  <rguenther@suse.de>
2778
2779         * gimple.h (gimple_call_addr_fndecl): New function.
2780         (gimple_call_fndecl): Use it.
2781         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
2782         for direct calls.
2783         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
2784         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
2785
2786 2011-04-18  Richard Guenther  <rguenther@suse.de>
2787
2788         PR middle-end/48650
2789         * tree.c (build_string): STRING_CST is now derived from tree_typed.
2790
2791 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2792
2793         PR lto/48492
2794         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2795         DECL_IN_CONSTANT_POOL without RTL.
2796
2797 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
2798             Ira Rosen  <ira.rosen@linaro.org>
2799
2800         PR target/48252
2801         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2802         to match neon_vzip/vuzp/vtrn_internal.
2803         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2804         outputs explicitly dependent on both inputs.
2805         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2806
2807 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
2808
2809         PR tree-optimization/48616
2810         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2811         whether the shift is by scalar or vector based on whether all SLP
2812         scalar stmts have the same rhs.
2813
2814 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
2815
2816         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
2817         memory operands.
2818
2819 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
2820
2821         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2822         registers.
2823
2824 2011-04-17  Jan Hubicka  <jh@suse.cz>
2825
2826         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
2827         * cgrpahunit.c (cgraph_finalize_function): Do not set
2828         finalized_by_frontend.
2829         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2830         finalized_by_frontend.
2831
2832 2011-04-17  Jan Hubicka  <jh@suse.cz>
2833
2834         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
2835         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
2836         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
2837         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
2838         method.
2839         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
2840         gimple-fold.c
2841         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
2842
2843 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2844
2845         PR lto/48538
2846         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2847         is non-null before accessing it.
2848         (input_cgraph): Remove trailing spaces.
2849
2850 2011-04-17  Revital Eres  <revital.eres@linaro.org>
2851
2852         * params.def (sms-min-sc): New param flag.
2853         * modulo-sched.c (sms_schedule): Use it.
2854         * doc/invoke.texi (sms-min-sc): Document it.
2855
2856 2011-04-17  Jan Hubicka  <jh@suse.cz>
2857
2858         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
2859         present, also set gimple_call_set_cannot_inline.
2860         * ipa-inline.c: Update toplevel comment.
2861         (MAX_TIME): Remove.
2862         (cgraph_clone_inlined_nodes): Fix linebreaks.
2863         (cgraph_check_inline_limits): Restructure to ...
2864         (caller_growth_limits): ... this one; be more tolerant
2865         on growth in nested inline chains; add explanatory comment;
2866         fix stack accounting thinko introduced by previous patch.
2867         (cgraph_default_inline_p): Remove.
2868         (report_inline_failed_reason): New function.
2869         (can_inline_edge_p): New function.
2870         (can_early_inline_edge_p): New function.
2871         (leaf_node_p): Move upwards in file.
2872         (want_early_inline_function_p): New function.
2873         (want_inline_small_function_p): New function.
2874         (want_inline_self_recursive_call_p): New function.
2875         (cgraph_edge_badness): Rename to ...
2876         (edge_badness) ... this one; fix linebreaks.
2877         (update_edge_key): Update call of edge_baddness; add
2878         detailed dump about queue updates.
2879         (update_caller_keys): Use can_inline_edge_p and
2880         want_inline_small_function_p.
2881         (cgraph_decide_recursive_inlining): Rename to...
2882         (recursive_inlining): Use can_inline_edge_p and
2883         want_inline_self_recursive_call_p; simplify and remove no longer
2884         valid FIXME.
2885         (cgraph_set_inline_failed): Remove.
2886         (add_new_edges_to_heap): Use can_inline_edge_p and
2887         want_inline_small_function_p.
2888         (cgraph_decide_inlining_of_small_functions): Rename to ...
2889         (inline_small_functions): ... this one; cleanup; use
2890         can/want predicates; cleanup debug ouput; work edges till fibheap
2891         is exhausted and do not stop once unit growth is reached; remove
2892         later loop processing remaining edges.
2893         (cgraph_flatten): Rename to ...
2894         (flatten_function): ... this one; use can_inline_edge_p
2895         and can_early_inline_edge_p predicates.
2896         (cgraph_decide_inlining): Rename to ...
2897         (ipa_inline): ... this one; remove unreachable nodes before
2898         inlining functions called once; simplify the pass.
2899         (cgraph_perform_always_inlining): Rename to ...
2900         (inline_always_inline_functions): ... this one; use
2901         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
2902         (cgraph_decide_inlining_incrementally): Rename to ...
2903         (early_inline_small_functions): ... this one; simplify
2904         using new predicates; cleanup; make dumps prettier.
2905         (cgraph_early_inlining): Rename to ...
2906         (early_inliner): newer inline regular functions into always-inlines;
2907         fix updating of call stmt summaries.
2908         (pass_early_inline): Update for new names.
2909         (inline_transform): Fix formating.
2910         (gate_cgraph_decide_inlining): Rename to ...
2911         (pass_ipa_inline): ... this one.
2912         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
2913         * ipa-inline-analysis.c (dump_inline_summary): Update.
2914         (compute_inline_parameters): Do not compute disregard_inline_limits;
2915         look for mismatching arguments.
2916         (estimate_growth): Fix handlig of non-trivial self recursion.
2917         (inline_read_summary): Do not read info->disregard_inline_limits.
2918         (inline_write_summary): Do not write info->disregard_inline_limits.
2919         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
2920         and move all checks into can_inline_edge_p predicate; re-enable code
2921         comparing optimization levels.
2922         (expand_call_inline): Do not test inline_forbidden_into_p.
2923         * Makefile.in (ipa-inline.o): Update arguments.
2924
2925 2011-04-17  Revital Eres  <revital.eres@linaro.org>
2926
2927         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
2928
2929 2011-04-17  Revital Eres  <revital.eres@linaro.org>
2930
2931         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
2932
2933 2011-04-17  Michael Matz  <matz@suse.de>
2934
2935         PR tree-optimization/48622
2936         PR lto/48645
2937         * ipa-inline-analysis.c (inline_read_summary): Read size/time
2938         in same order as they're written.
2939
2940 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2941
2942         * config/pa/predicates.md: Reorganize and simplify predicates.
2943         Eliminate duplicate code checks.
2944         (arith_operand): Rename to arith14_operand
2945         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
2946         * config/pa/pa.md: Use renamed operands.
2947         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
2948         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
2949         arith11_operand, adddi3_operand, indexed_memory_operand,
2950         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
2951         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
2952         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
2953         move_dest_operand, move_src_operand, prefetch_cc_operand,
2954         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
2955         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
2956         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
2957         div_operand, int5_operand, movb_comparison_operator,
2958         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
2959         arith_double_operand, ireg_operand, lhs_lshift_operand,
2960         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
2961         integer_store_memory_operand): Likewise.
2962         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
2963         (integer_store_memory_operand, read_only_operand,
2964         function_label_operand, borx_reg_operand,
2965         non_hard_reg_operand): Likewise.
2966         (eq_neq_comparison_operator): Delete unused operator.
2967         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
2968         function_label_operand.
2969         (emit_move_sequence): Likewise.
2970
2971 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
2972
2973         * config/i386/sse.md (sseunpackmode): New mode attribute.
2974         (ssepackmode): Ditto.
2975         (vec_pack_trunc_<mode>): Macroize expander from
2976         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
2977         (vec_unpacks_lo_<mode>): Macroize expander from
2978         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2979         (vec_unpacks_hi_<mode>): Macroize expander from
2980         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2981         (vec_unpacku_lo_<mode>): Macroize expander from
2982         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2983         (vec_unpacku_hi_<mode>): Macroize expander from
2984         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2985         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
2986         ix86_expand_sse4_unpack.
2987         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
2988
2989 2011-04-16  Jan Hubicka  <jh@suse.cz>
2990
2991         * cgraphbuild.c: Include ipa-inline.h.
2992         (reset_inline_failed): Use initialize_inline_failed.
2993         * cgraph.c: Include ipa-inline.h.
2994         (cgraph_create_node_1): Do not initialize estimated_growth.
2995         (initialize_inline_failed): More to ipa-inline-analysis.c
2996         (dump_cgraph_node): Do not dump inline flags.
2997         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
2998         and disregard_inline_limits flags.
2999         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3000         time, size, estimated_growth.
3001         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3002         Update.
3003         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3004         DECL_DISREGARD_INLINE_LIMITS.
3005         (cgraph_analyze_function): Do not initialize
3006         node->local.disregard_inline_limits.
3007         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3008         inlinable, versionable and disregard_inline_limits.
3009         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3010         cgraph_check_inline_limits, cgraph_default_inline_p,
3011         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3012         add_new_edges_to_heap): Update.
3013         (cgraph_decide_inlining_of_small_function): Update; set
3014         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3015         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3016         cgraph_decide_inlining_incrementally): Update.
3017         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3018         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3019         time, size and estimated_growth parameters.
3020         (estimate_edge_growth): Update.
3021         (initialize_inline_failed): Declare.
3022         * ipa-split.c: Include ipa-inline.h
3023         (execute_split_functions): Update.
3024         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3025         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3026         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3027         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3028         estimated_growth to INT_MIN.
3029         (inline_node_duplication_hook): Likewise.
3030         (dump_inline_summary): Dump new fields.
3031         (compute_inline_parameters): Update.
3032         (estimate_edge_time, estimate_time_after_inlining,
3033         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3034         inline_write_summary):
3035         (initialize_inline_failed): Move here from cgraph.c.
3036         * tree-sra.c: Include ipa-inline.h.
3037         (ipa_sra_preliminary_function_checks): Update.
3038         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3039         ipa-inline.h.
3040
3041 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3042
3043         * config/i386/sse.md (V16): New mode iterator.
3044         (VI1, VI8): Ditto.
3045         (AVXMODEQI, AVXMODEDI): Remove.
3046         (sse2, sse3): New mode attribute.
3047         (mov<mode>): Use V16 mode iterator.
3048         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3049         (push<mode>1): Use V16 mode iterator.
3050         (movmisalign<mode>): Ditto.
3051         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3052         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3053         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3054         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3055         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3056         avx_movdqu<avxmodesuffix>.
3057         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3058         *avx_movdqu<avxmodesuffix>.
3059         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3060         avx_lddqu<avxmodesuffix>.
3061         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3062         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3063         avx_movnt<AVXMODEDI:mode>.
3064         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3065         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3066
3067 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3068
3069         PR target/48629
3070         * haifa-sched.c (prune_ready_list, schedule_block): Use
3071         sched_pressure_p rather than flag_sched_pressure.
3072
3073 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3074
3075         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3076         cgraph_get_node instead of cgraph_get_create_node.
3077
3078 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3079
3080         * cfgexpand.c (expand_debug_expr): Use
3081         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3082
3083 2011-04-15  Michael Matz  <matz@suse.de>
3084
3085         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3086         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3087         * function.c (gimplify_parameters): Ditto.
3088         * gimplify.c (gimplify_vla_decl): Ditto.
3089
3090         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3091         (gimple_call_set_alloca_for_var): New inline function.
3092         (gimple_call_alloca_for_var_p): Ditto.
3093         * gimple.c (gimple_build_call_from_tree): Remember
3094         CALL_ALLOCA_FOR_VAR_P state.
3095         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3096
3097         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3098         calls if they were for VLA objects.
3099
3100 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3101
3102         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3103         of ADR_EXPRs.
3104
3105 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3106
3107         PR middle-end/48601
3108         * tree-emutls.c (lower_emutls_function_body): Call
3109         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3110         result is non-NULL.
3111
3112 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3113
3114         * c-decl.c (detect_field_duplicates): Call
3115         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3116
3117 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3118
3119         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3120         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3121         * ipa-pure-const.c (check_stmt): Call it.
3122         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3123
3124 2011-04-15  Richard Guenther  <rguenther@suse.de>
3125
3126         PR tree-optimization/48290
3127         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3128         Properly decide inhibiting propagation based on the valueized
3129         operand.  Do loop-closed SSA form preserving here ...
3130         (init_copy_prop): ... not here.
3131
3132 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3133
3134         PR target/48612
3135         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3136         (*ieee_smax<mode>3): Likewise.
3137
3138 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3139
3140         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3141         Replace match_operand with match_dup for the third operand in
3142         these expanders.
3143
3144 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3145
3146         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3147         to track processing of conditionals.  Update all callers.
3148         (try_combine, simplify_if_then_else): Update.
3149
3150 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3151
3152         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3153         -fsched-pressure.
3154
3155 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3156
3157         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3158         instead of match_operand for operand 3.
3159
3160 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3161
3162         * recog.h (insn_operand_data): Add an "allows_mem" field.
3163         * genoutput.c (output_operand_data): Initialize it.
3164         * optabs.c (maybe_legitimize_operand_same_code): New function.
3165         (maybe_legitimize_operand): Use it when matching the original
3166         op->value.
3167
3168 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3169
3170         * gimplify.c: Fix issues in comments throughout.
3171         (voidify_wrapper_expr): Fix long line.
3172         (build_stack_save_restore): Likewise.
3173         (gimplify_loop_expr): Likewise.
3174         (gimplify_compound_lval): Likewise.
3175         (gimplify_init_ctor_eval): Likewise.
3176         (gimplify_modify_expr_rhs): Likewise.
3177         (omp_notice_threadprivate_variable): Likewise.
3178
3179 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3180
3181         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3182         original one if this is not a builtin function.
3183
3184 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
3185
3186         PR target/48605
3187         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3188         offset it as needed based on top 2 bits in operands[3], change
3189         MEM mode to SFmode and mask those 2 bits away from operands[3].
3190
3191 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3192
3193         * c-parser.c (c_parser_objc_protocol_definition): Updated for
3194         change from objc_declare_protocols() to objc_declare_protocol().
3195
3196 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
3197
3198         * config/i386/sse.md (sse4_1): New mode attribute.
3199         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3200         avx_blend<ssemodesuffix><avxmodesuffix> and
3201         sse4_1_blend<ssemodesuffix> using VF mode iterator.
3202         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3203         avx_blendv<ssemodesuffix><avxmodesuffix> and
3204         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3205         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3206         avx_dp<ssemodesuffix><avxmodesuffix> and
3207         sse4_1_dp<ssemodesuffix> using VF mode iterator.
3208         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3209         (sse4_1_packusdw): Merge with *avx_packusdw.
3210         (sse4_1_pblendvb): Merge with *avx_pblendvb.
3211         (sse4_1_pblendw): Merge with *avx_pblendw.
3212         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3213         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3214         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3215         VF mode iterator.
3216         (sse4_1_round<ssescalarmodesuffix>): Merge with
3217         *avx_round<ssescalarmodesuffix>.
3218         (aesenc): Merge with *avx_aesenc.
3219         (aesenclast): Merge with *avx_aesenclast.
3220         (aesdec): Merge with *avx_aesdec.
3221         (aesdeclast): Merge with *avx_aesdeclast.
3222         (pclmulqdq): Merge with *pclmulqdq.
3223         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3224         New predicate.
3225         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3226
3227 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3228
3229         PR middle-end/48608
3230         * cfgexpand.c (get_decl_align_unit): Renamed to ...
3231         (align_local_variable): This.  Update DECL_ALIGN.
3232         (add_stack_var): Updated.
3233         (expand_one_stack_var): Likewise.
3234
3235 2011-04-14  Richard Guenther  <rguenther@suse.de>
3236
3237         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3238         Remove.
3239         (dse_initialize_block_local_data, dse_leave_block,
3240         record_voperand_set, get_stmt_uid): Likewise.
3241         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3242         (dse_optimize_stmt): Remove voperand set handling code.
3243         Simplify and improve to handle any kind of killing stmt.
3244         (dse_record_phi): Remove.
3245         (dse_enter_block): Simplify.
3246         (tree_ssa_dse): Likewise.
3247         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3248
3249 2011-04-14  Jan Hubicka  <jh@suse.cz>
3250
3251         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3252         * cgraph.h (struct inline_summary): Move to ipa-inline.h
3253         (cgraph_local_info): Remove inline_summary.
3254         * ipa-cp.c: Include ipa-inline.h.
3255         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3256         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3257         accesor.
3258         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3259         (input_overwrite_node): Do not set inline summary.
3260         (input_node): Do not stream inline summary.
3261         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3262         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3263         growth; we do not have inline parameters computed for that anyway.
3264         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3265         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3266         (inline_summary_t): New type and VECtor.
3267         (debug_inline_summary, dump_inline_summaries): Declare.
3268         (inline_summary): Use VOCtor.
3269         (estimate_edge_growth): Kill hack computing call stmt size directly.
3270         * lto-section-in.c (lto_section_name): Add inline section.
3271         * ipa-inline-analysis.c: Include lto-streamer.h
3272         (node_removal_hook_holder, node_duplication_hook_holder): New holders
3273         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3274         (inline_summary_vec): Define.
3275         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3276         dump_inline_summaries): New functions.
3277         (estimate_function_body_sizes): Properly compute size/time of outgoing
3278         calls.
3279         (compute_inline_parameters): Alloc inline_summary; do not compute
3280         size/time of incomming calls.
3281         (estimate_edge_time): Avoid missing time summary hack.
3282         (inline_read_summary): Read inline summary info.
3283         (inline_write_summary): Write inline summary info.
3284         (inline_free_summary): Free all hooks and inline summary vector.
3285         * lto-streamer.h: Add LTO_section_inline_summary section.
3286         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3287         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3288
3289 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3290
3291         * tree-vectorizer.h (vect_strided_store_supported): Add a
3292         HOST_WIDE_INT argument.
3293         (vect_strided_load_supported): Likewise.
3294         (vect_permute_store_chain): Return void.
3295         (vect_transform_strided_load): Likewise.
3296         (vect_permute_load_chain): Delete.
3297         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3298         count argument.  Check that the count is a power of two.
3299         (vect_strided_load_supported): Likewise.
3300         (vect_permute_store_chain): Return void.  Update after above changes.
3301         Assert that the access is supported.
3302         (vect_permute_load_chain): Likewise.
3303         (vect_transform_strided_load): Return void.
3304         * tree-vect-stmts.c (vectorizable_store): Update calls after
3305         above interface changes.
3306         (vectorizable_load): Likewise.
3307         (vect_analyze_stmt): Don't check for strided powers of two here.
3308
3309 2011-04-14  Richard Guenther  <rguenther@suse.de>
3310
3311         PR tree-optimization/48590
3312         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3313         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3314         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3315         BUILT_IN_STACK_SAVE.
3316         * tree-ssa-dce.c (propagate_necessity): Handle
3317         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3318
3319 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3320
3321         * c-parser.c (c_parser_objc_class_declaration): Updated call to
3322         objc_declare_class.
3323
3324 2011-04-14  Richard Guenther  <rguenther@suse.de>
3325
3326         * tree.h (get_object_alignment_1): Declare.
3327         * builtins.c (get_object_alignment_1): Split out worker from ...
3328         (get_object_alignment): ... here.
3329         * fold-const.c (get_pointer_modulus_and_residue): Use
3330         get_object_alignment_1.
3331
3332 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3333
3334         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3335         type parameter.
3336         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3337         parameter.  Generalise code to handle arrays as well as vectors.
3338         (vect_setup_realignment): Update accordingly.
3339         * tree-vect-stmts.c (vectorizable_store): Likewise.
3340         (vectorizable_load): Likewise.
3341
3342 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3343
3344         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3345         within the per-copy loop.
3346
3347 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3348
3349         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3350         in the dump file.
3351
3352 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3353
3354         * doc/options.texi (Negative): Explicitly mention that the
3355         Negative chain must be circular.
3356
3357 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
3358
3359         * function.h (block_chainon): Declare.
3360         * function.c (block_chainon): Define.
3361
3362 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
3363             Eric Weddington  <eric.weddington@atmel.com>
3364             Georg-Johann Lay <avr@gjlay.de>
3365
3366         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3367         New Includes
3368         (avr_init_builtins, avr_expand_builtin,
3369         avr_expand_delay_cycles, avr_expand_unop_builtin,
3370         avr_expand_binop_builtin ): New functions.
3371         (avr_builtin_id): New enum
3372         (struct avr_builtin_description): New struct
3373         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3374         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3375
3376         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3377         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3378         UNSPECV_DELAY_CYCLES): new enumeration values
3379         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3380         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3381         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3382         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3383         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3384         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3385         "fmulsu"): New insns
3386
3387         * config/avr/avr-c.c: fix line endings
3388         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3389         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3390         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3391         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3392         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3393
3394         * doc/extend.texi (AVR Built-in Functions): New node
3395         (Target Builtins): Add documentation of AVR
3396         built-in functions.
3397
3398 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
3399
3400         PR target/44643
3401         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3402         alone. Error if non-const data has attribute progmem.
3403
3404 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3405
3406         * tree.h (struct tree_constructor): Include tree_typed instead of
3407         tree_common.
3408         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3409         TS_TYPED instead of TS_COMMON.
3410
3411 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3412
3413         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3414         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3415         (sse2_psadbw): Merge with *avx_psadbw.
3416         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3417         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3418         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3419         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3420         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3421         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3422         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3423         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3424         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3425         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3426         (ssse3_palignrti): Merge with *avx_palignrti.
3427
3428 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3429
3430         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3431         * tree-ssanames.c (fini_ssanames): VEC_free it.
3432         (make_ssa_name_fn): Update for VECness of free_ssanames.
3433         (release_ssa_name, release_dead_ssa_names): Likewise.
3434         * tree.h (struct tree_ssa_name): Include tree_typed instead of
3435         tree_common.
3436         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3437         TS_TYPED instead of TS_COMMON.
3438
3439 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3440
3441         * postreload-gcse.c (gcse_after_reload_main): Add calls to
3442         statistics_counter_event.
3443         * tree-ssa-copyrename.c (stats): Define.
3444         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
3445         statistics_counter_event.
3446         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3447         (bswap_stats, widen_mul_stats): Define.
3448         (insert_reciprocals): Increment rdivs_inserted.
3449         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
3450         rfuncs_inserted.  Add calls to statistics_counter_event.
3451         (execute_cse_sincos_1): Increment inserted.
3452         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
3453         statistics_counter_event.
3454         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
3455         of bswap_stats.  Add calls to statistics_counter_event.
3456         (convert_mult_to_widen): Increment widen_mults_inserted.
3457         (convert_plusminus_to_widen): Increment maccs_inserted.
3458         (convert_mult_to_fma): Increment fmas_inserted.
3459         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
3460         calls to statistics_counter_event.
3461
3462 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3463
3464         PR rtl-optimization/48455
3465         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3466         `temp_costs->mem_cost'.
3467
3468 2011-04-13  Jan Hubicka  <jh@suse.cz>
3469
3470         * ipa-inline.h: New file.
3471         * ipa-inline-analysis.c: New file. Broken out of ...
3472         * ipa-inline.c: ... this file; update toplevel comment;
3473         include ipa-inline.h
3474         (inline_summary): Move to ipa-inline.h
3475         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3476         ipa-inline-analysis.c.
3477         (cgraph_estimate_time_after_inlining): Rename to
3478         estiamte_time_after_inlining; move to ipa-inline-analysis.c
3479         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3480         to estimate_edge_growth.
3481         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3482         rename to estimate_size_after_inlining.
3483         (cgraph_mark_inline_edge): Update for new naming convention.
3484         (cgraph_check_inline_limits): Likewise.
3485         (cgraph_edge_badness): Likewise.
3486         (cgraph_decide_recursive_inlining): Likewise.
3487         (cgraph_decide_inlining_of_small_functions): Likewise.
3488         (cgraph_decide_inlining_incrementally): Likewise.
3489         (cgraph_estimate_growth): Rename to estimate_growth; move to
3490         ipa-inline-analysis.c.
3491         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3492         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3493         (compute_inline_parameters): Likewise.
3494         (compute_inline_parameters_for_current): Likewise.
3495         (pass_inline_parameters): Likewise.
3496         (inline_indirect_intraprocedural_analysis): Likewise.
3497         (analyze_function): Rename to inline_analyze_function; likewise.
3498         (add_new_function): Move to ipa-inline-analysis.c.
3499         (inline_generate_summary): Likewise.
3500         (inline_read_summary): Likewise.
3501         (inline_write_summary): Likewise.
3502         * Makefile.in (ipa-inline-analysis.c): New file.
3503
3504 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3505
3506         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3507         * configure: Regenerate.
3508
3509 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3510
3511         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3512         instead of tree_common.
3513         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3514         Likewise.
3515         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3516         TS_TYPED rather than TS_COMMON.
3517         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3518
3519 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
3520
3521         PR target/45263
3522         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3523         r20 around calls of __tablejump_elpm__
3524
3525 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
3526
3527         PR middle-end/48591
3528         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3529         NULL.
3530         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3531
3532 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
3533
3534         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3535         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3536         (cfi_vec): New typedef.
3537         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3538         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3539         (cie_cfi_vec): New static variable.
3540         (cie_cfi_head): Delete.
3541         (add_cfi): Accept a cfi_vec * as first argument. All callers and
3542         declaration changed. Use vector rather than list operations.
3543         (new_cfi): Don't initialize the dw_cfi_next field.
3544         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3545         rather than list operations.
3546         (lookup_cfa): Use vector rather than list operations.
3547         (output_cfis): New argument upto. Accept a cfi_vec rather than
3548         a dw_cfi_ref list head as argument. All callers changed.
3549         Iterate over the vector using upto as a maximum index.
3550         (output_all_cfis): New static function.
3551         (output_fde): Use vector rather than list operations. Use the
3552         new upto argument for output_cfis rather than manipulating a
3553         list.
3554         (dwarf2out_begin_prologue): Change initializations to match
3555         new struct members.
3556         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3557         from the vector length rather than searching for the end of a list.
3558         Use output_all_cfis.
3559         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3560
3561 2011-04-13  Nick Clifton  <nickc@redhat.com>
3562
3563         * config/rx/rx.md (movmemsi): Do not use this pattern when
3564         volatile pointers are involved.
3565
3566 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3567
3568         * config/i386/sse.md (pinsrbits): Remove.
3569         (sse2_packsswb): Merge with *avx_packsswb.
3570         (sse2_packssdw): Merge with *avx_packssdw.
3571         (sse2_packuswb): Merge with *avx_packuswb.
3572         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3573         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3574         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3575         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3576         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3577         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3578         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3579         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3580         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3581         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3582         (sse2_loadld): Merge with *avx_loadld.
3583         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3584         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3585         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3586         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3587         (vec_concatv2di): Merge with *vec_concatv2di_avx.
3588
3589 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3590
3591         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3592         calling TREE_CHAIN.
3593         * print-tree.c (print_node): Likewise.
3594         * tree-inline.c (copy_tree_r): Likewise.
3595         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3596         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3597         instead of TS_COMMON.
3598         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3599         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3600         (copy_node_stat): Zero TREE_CHAIN only if necessary.
3601         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3602         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3603         ...and these...
3604         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3605         * tree.h: ...here.
3606         (TREE_CHAIN): Check for a TS_COMMON structure.
3607         (TREE_TYPE): Check for a TS_TYPED structure.
3608
3609 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
3610
3611         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3612         cgraph_get_create_node instead of cgraph_node.
3613
3614 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3615
3616         * c-parser.c (c_parser_initelt): Updated call to
3617         objc_build_message_expr.
3618         (c_parser_postfix_expression): Likewise.
3619
3620 2011-04-12  Kai Tietz  <ktietz@redhat.com>
3621
3622         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3623         MASK_MS_BITFIELD_LAYOUT bit.
3624
3625 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3626
3627         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3628         assert it is always true.
3629         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3630         moves.
3631
3632 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3633
3634         * c-parser.c (c_lex_one_token): Rewritten conditional used when
3635         compiling Objective-C to be more efficient.
3636
3637 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
3638
3639         * opts-common.c (decode_cmdline_options_to_array): Remove variable
3640         argv_copied.
3641
3642 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3643
3644         * recog.h, genoutput.c, optabs.c: Revert last patch.
3645
3646 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3647
3648         PR target/48090
3649         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3650
3651 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3652
3653         * recog.h (insn_operand_data): Add an "allows_mem" field.
3654         * genoutput.c (output_operand_data): Initialize it.
3655         * optabs.c (maybe_legitimize_operand_same_code): New function.
3656         (maybe_legitimize_operand): Use it when matching the original
3657         op->value.
3658
3659 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3660
3661         * genpreds.c (process_define_predicate): Move most processing
3662         to gensupport.c.  Continue to validate the expression.
3663         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3664         (process_define_predicate): Move processing to gensupport.c.
3665         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3666         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3667         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
3668         argument.
3669         (valid_predicate_name_p): New function, split out from old
3670         genpreds.c:process_define_predicate.
3671         (process_define_predicate): New function, combining code from
3672         old genpreds.c and genrecog.c functions.
3673         (process_rtx): Call it for DEFINE_PREDICATE and
3674         DEFINE_SPECIAL_PREDICATE.
3675
3676 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3677
3678         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3679         size of a '%A' memory reference.
3680         (T_DREG, T_QREG): New neon_builtin_type_bits.
3681         (arm_init_neon_builtins): Assert that the load and store operands
3682         are neon_struct_operands.
3683         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3684         (NEON_ARG_MEMORY): New builtin_arg.
3685         (neon_dereference_pointer): New function.
3686         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3687         Handle NEON_ARG_MEMORY.
3688         (arm_expand_neon_builtin): Update after above interface changes.
3689         Use NEON_ARG_MEMORY for loads and stores.
3690         * config/arm/predicates.md (neon_struct_operand): New predicate.
3691         * config/arm/iterators.md (V_two_elem): Tweak formatting.
3692         (V_three_elem): Use BLKmode for accesses that have no associated mode.
3693         (V_four_elem): Tweak formatting.
3694         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3695         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3696         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3697         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3698         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3699         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3700         (neon_vst4<mode>): Replace pointer operand with a memory operand.
3701         Use %A in the output template.
3702         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3703         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3704         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3705         the width of the memory access.  Remove post-increment.
3706         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3707
3708 2011-04-12  Nick Clifton  <nickc@redhat.com>
3709
3710         * config/v850/v850.c (expand_prologue): Do not use the CALLT
3711         instruction for interrupt handlers if the target is the basic V850
3712         architecture.
3713         (expand_epilogue): Likewise.
3714
3715 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3716
3717         PR rtl-optimization/48549
3718         * combine.c (propagate_for_debug): Also stop after BB_END of
3719         this_basic_block.  Process LAST and just stop processing after it.
3720         (combine_instructions): If last_combined_insn has been deleted,
3721         set last_combined_insn to its PREV_INSN.
3722
3723 2011-04-12  Richard Guenther  <rguenther@suse.de>
3724
3725         PR tree-optimization/46076
3726         * gimple.h (struct gimple_statement_call): Add fntype field.
3727         (gimple_call_fntype): Adjust.
3728         (gimple_call_set_fntype): New function.
3729         * gimple.c (gimple_build_call_1): Set the call function type.
3730         * gimplify.c (gimplify_call_expr): Preserve the function
3731         type the frontend used for the call.
3732         (gimplify_modify_expr): Likewise.
3733         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3734         function type.
3735         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3736         function type.
3737         * tree-ssa.c (useless_type_conversion_p): Function pointer
3738         conversions are useless.
3739
3740 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3741
3742         * cgraph.h (cgraph_node): Remove function declaration.
3743         (cgraph_create_node): Declare.
3744         (cgraph_get_create_node): Likewise.
3745         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3746         Updated all callers.
3747         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3748         the decl does not already exist.  Call cgraph_get_create_node instead
3749         of cgraph_node.
3750         (cgraph_get_create_node): New function.
3751         (cgraph_same_body_alias): Update comment.
3752         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3753         assert it does not return NULL.
3754         (cgraph_update_edges_for_call_stmt): Likewise.
3755         (cgraph_clone_edge): Likewise.
3756         (cgraph_create_virtual_clone): Likewise.
3757         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3758         instead of cgraph_node.
3759         (cgraph_add_new_function): Call cgraph_create_node or
3760         cgraph_get_create_node instead of cgraph_node.
3761         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3762         instead of cgraph_node.
3763         (record_eh_tables): Likewise.
3764         (mark_address): Likewise.
3765         (mark_load): Likewise.
3766         (build_cgraph_edges): Call cgraph_get_create_node instead
3767         of cgraph_node.
3768         (rebuild_cgraph_edges): Likewise.
3769         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3770         instead of cgraph_node.
3771         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3772         cgraph_node.
3773         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3774         cgraph_create_node instead of cgraph_node.
3775         * c-decl.c (finish_function): Call cgraph_get_create_node instead
3776         of cgraph_node.
3777         * lto-cgraph.c (input_node): Likewise.
3778         * lto-streamer-in.c (input_function): Likewise.
3779         * varasm.c (mark_decl_referenced): Likewise.
3780         (assemble_alias): Likewise.
3781
3782 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3783
3784         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
3785         instead of cgraph_node and assert it does not return NULL.
3786         * lto-streamer-in.c (lto_read_body): Likewise.
3787         * omp-low.c (new_omp_context): Likewise.
3788         (create_task_copyfn): Likewise.
3789         * tree-emutls.c (lower_emutls_function_body): Likewise.
3790         * matrix-reorg.c (transform_allocation_sites): Likewise.
3791
3792 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3793
3794         PR c/48552
3795         * c-typeck.c (build_asm_expr): Error out on attempts to use
3796         void type outputs or inputs for constraints that allow reg or
3797         don't allow memory.
3798
3799 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
3800             Richard Earnshaw  <rearnsha@arm.com>
3801
3802         PR target/48250
3803         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
3804         to use sign-magnitude offsets. Reject unsupported unaligned
3805         cases. Add detailed description in comments.
3806         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
3807         condition from TARGET_32BIT to TARGET_ARM.
3808
3809 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
3810
3811         * tree.h (struct typed_tree): New.
3812         (struct tree_common): Include it instead of tree_base.
3813         (TREE_TYPE): Update for new location of type field.
3814         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
3815         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
3816         (union tree_node): Add typed field.
3817         * treestruct.def (TS_TYPED): New.
3818         * lto-streamer.c (check_handled_ts_structures): Handle it.
3819         * tree.c (MARK_TS_TYPED): New macro.
3820         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
3821
3822 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3823
3824         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
3825         (force_nonfallthru): Do not alter the loop nest if no basic block
3826         was created.
3827
3828 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
3829
3830         * config/i386/sse.md (VI): New mode iterator.
3831         (SSEMODEI): Remove.
3832         (AVX256MODEI): Ditto.
3833         (AVXMODEF4P): Ditto.
3834         (avxvecpsmode): Ditto.
3835         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
3836         (sse2_andnot<mode>3): New expander.
3837         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
3838         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
3839         (<any_logic:code><mode>3): Use VI mode iterator.
3840         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
3841         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
3842         (*andnottf3): Handle AVX three-operand constraints.
3843         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
3844
3845 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
3846             Robert Millan  <rmh@gnu.org>
3847
3848         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
3849         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
3850         GNU_USER_DYNAMIC_LINKER64): Define.
3851         (REG_NAME): Don't undefine.
3852         (MD_UNWIND_SUPPORT): Undefine.
3853         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
3854         (REG_NAME): Don't undefine.
3855         (MD_UNWIND_SUPPORT): Undefine.
3856         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
3857
3858 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
3859
3860         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
3861         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
3862
3863 2011-04-11  Xinliang David Li  <davidxl@google.com>
3864
3865         * value-profile.c (check_ic_target): New function.
3866         (gimple_ic_transform): Sanity check indirect call target.
3867         * gimple-low.c (gimple_check_call_args): Interface change.
3868         (gimple_check_call_matching_types): New function.
3869         * tree-inline.c (tree_can_inline_p): Call new function.
3870
3871 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
3872
3873         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
3874         tree-pretty-print.h & realmpfr.h.
3875
3876 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
3877
3878         PR middle-end/48464
3879         * ira.c (setup_pressure_classes): Fix typo in loop condition.
3880         (setup_allocno_and_important_classes): Ditto.
3881
3882 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
3883
3884         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
3885         GNU_USER_DYNAMIC_LINKER.
3886         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
3887         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3888         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
3889         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3890         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3891         GNU_USER_TARGET_OS_CPP_BUILTINS.
3892         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
3893         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3894         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3895         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3896         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
3897         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3898         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3899         GNU_USER_TARGET_OS_CPP_BUILTINS.
3900         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3901         GNU_USER_DYNAMIC_LINKER.
3902         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3903         GNU_USER_TARGET_OS_CPP_BUILTINS.
3904         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
3905         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3906         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
3907         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3908         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
3909         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
3910         GNU_USER_DYNAMIC_LINKER64): Remove.
3911         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
3912         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3913         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3914         GNU_USER_DYNAMIC_LINKER.
3915         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3916         GNU_USER_TARGET_OS_CPP_BUILTINS.
3917         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3918         GNU_USER_TARGET_OS_CPP_BUILTINS.
3919         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
3920         to GNU_USER_TARGET_OS_CPP_BUILTINS.
3921         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3922         GNU_USER_TARGET_OS_CPP_BUILTINS.
3923         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
3924         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
3925         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3926         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
3927         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3928         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3929         GNU_USER_DYNAMIC_LINKER.
3930         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3931         GNU_USER_TARGET_OS_CPP_BUILTINS.
3932         * config/m68k/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/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3937         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3938         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
3939         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3940         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3941         GNU_USER_DYNAMIC_LINKER.
3942         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
3943         GNU_USER_DYNAMIC_LINKERN32.
3944         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
3945         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
3946         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
3947         GNU_USER_DYNAMIC_LINKER32.
3948         * config/mn10300/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
3951         GNU_USER_DYNAMIC_LINKER.
3952         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3953         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3954         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
3955         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3956         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3957         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
3958         GNU_USER_DYNAMIC_LINKER32.
3959         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3960         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
3961         GNU_USER_DYNAMIC_LINKER.
3962         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
3963         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3964         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3965         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
3966         GNU_USER_DYNAMIC_LINKER64.
3967         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
3968         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3969         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3970         GNU_USER_DYNAMIC_LINKER.
3971         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
3972         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3973         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3974         GNU_USER_DYNAMIC_LINKER.
3975         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
3976         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3977         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3978         GNU_USER_DYNAMIC_LINKER32.
3979         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3980         GNU_USER_DYNAMIC_LINKER64.
3981         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3982         GNU_USER_DYNAMIC_LINKER64.
3983         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
3984         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3985         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
3986         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3987         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3988
3989 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
3990
3991         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
3992         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
3993         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
3994         GNU_USER_DYNAMIC_LINKER.
3995         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3996         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
3997         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
3998         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
3999         GNU_USER_DYNAMIC_LINKER64.
4000         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4001         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4002         GNU_USER_LINK_EMULATION.
4003         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4004         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4005         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4006         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4007         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4008         CPP_SPEC, CC1_SPEC): Remove.
4009         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4010         (GNU_USER_DYNAMIC_LINKER): Define.
4011         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4012         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4013         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4014         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4015         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4016         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4017         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4018         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4019         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4020         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4021         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4022         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4023         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4024         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4025         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4026         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4027         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4028         GNU_USER_DYNAMIC_LINKER.
4029         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4030         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4031         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4032         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4033         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4034         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4035         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4036         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4037         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4038         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4039
4040 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4041
4042         PR target/9601
4043         PR target/11772
4044         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4045         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4046         comment.
4047         (ix86_is_msabi_thiscall): Removed.
4048         (ix86_is_type_thiscall): Likewise.
4049         (ix86_get_callcvt): New function.
4050         (ix86_comp_type_attributes): Simplify check.
4051         (ix86_function_regparm): Use ix86_get_callcvt for calling
4052         convention attribute checks.
4053         (ix86_return_pops_args): Likewise.
4054         (ix86_static_chain): Likewise.
4055         (x86_this_parameter): Likewise.
4056         (x86_output_mi_thunk): Likewise.
4057         (ix86_function_type_abi): Optimize check for types without attributes.
4058         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4059         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4060         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4061         by flag-values.
4062         (IX86_BASE_CALLCVT): Helper macro.
4063         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4064         Use ix86_get_callcvt for calling convention attribute checks and avoid
4065         symbol-decoration for stdcall in TARGET_RTD case.
4066         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4067         Likewise.
4068         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4069         for declaration.
4070
4071 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4072
4073         * config/i386/sse.md (VI_128): New mode iterator.
4074         (VI12_128): Rename from SSEMODE12.
4075         (VI14_128): Rename from SSEMODE14.
4076         (VI124_128): New mode iterator.
4077         (VI24_128): Rename from SSEMODE248.
4078         (VI248_128): Rename from SSEMODE248.
4079         (SSEMODE124C8): Remove.
4080         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4081         (*sse2_<plusminus_insn><mode>3): Merge with
4082         *avx_<plusminus_insn><mode>3.
4083         (*mulv8hi3): Merge with *avx_mulv8hi3.
4084         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4085         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4086         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4087         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4088         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4089         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4090         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4091         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4092         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4093         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4094         (*<smaxmin:code>v8hi3): Ditto.
4095         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4096         (*<smaxmin:code>v16qi3): Ditto.
4097         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4098         (*sse2_eq<mode>3): Ditto.
4099         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4100         (*sse2_gt<mode>3): Ditto.
4101         (vcondv2di): Split out of vcond<mode>.
4102         (vconduv2di): Split out of vcondu<mode>.
4103
4104 2011-04-11  Richard Guenther  <rguenther@suse.de>
4105
4106         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4107         before calling tree_low_cst.
4108
4109 2011-04-11  Richard Guenther  <rguenther@suse.de>
4110
4111         * stor-layout.c (layout_type): Compute all array index size operations
4112         in the original type.
4113         (initialize_sizetypes): Add comment.
4114         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4115
4116 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4117
4118         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4119
4120 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4121
4122         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4123         of cgraph_node, handle NULL return value.
4124         (cgraph_global_info): Likewise.
4125         (cgraph_rtl_info): Likewise.
4126         * tree-inline.c (estimate_num_insns): Likewise.
4127         * gimplify.c (unshare_body): Likewise.
4128         (unvisit_body): Likewise.
4129         (gimplify_body): Likewise.
4130         * predict.c (optimize_function_for_size_p): Likewise.
4131         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4132         (call_may_clobber_ref_p_1): Likewise.
4133         * varasm.c (function_section_1): Likewise.
4134         (assemble_start_function): Likewise.
4135
4136 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4137
4138         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4139         of cgraph_node.
4140         * final.c (rest_of_clean_state): Likewise.
4141         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4142         * passes.c (pass_init_dump_file): Likewise.
4143         (execute_all_ipa_transforms): Likewise.
4144         (function_called_by_processed_nodes_p): Likewise.
4145         * predict.c (maybe_hot_frequency_p): Likewise.
4146         (probably_never_executed_bb_p): Likewise.
4147         (compute_function_frequency): Likewise.
4148         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4149         (unnest_nesting_tree_1): Likewise.
4150         (lower_nested_functions): Likewise.
4151         * tree-optimize.c (execute_fixup_cfg): Likewise.
4152         (tree_rest_of_compilation): Likewise.
4153         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4154         * tree-sra.c (ipa_early_sra): Likewise.
4155         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4156         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4157         * ipa.c (record_cdtor_fn): Likewise.
4158         * ipa-inline.c (cgraph_early_inlining): Likewise.
4159         (compute_inline_parameters_for_current): Likewise.
4160         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4161         * ipa-pure-const.c (local_pure_const): Likewise.
4162         * ipa-split.c (split_function): Likewise.
4163         (execute_split_functions): Likewise.
4164         * cgraphbuild.c (build_cgraph_edges): Likewise.
4165         (rebuild_cgraph_edges): Likewise.
4166         (cgraph_rebuild_references): Likewise.
4167         (remove_cgraph_callee_edges): Likewise.
4168         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4169         (verify_cgraph_node): Likewise.
4170         (cgraph_analyze_functions): Likewise.
4171         (cgraph_preserve_function_body_p): Likewise.
4172         (save_inline_function_body): Likewise.
4173         (save_inline_function_body): Likewise.
4174         * tree-inline.c (copy_bb): Likewise.
4175         (optimize_inline_calls): Likewise.
4176
4177 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4178
4179         PR tree-optimization/48195
4180         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4181         ipa_check_create_edge_args.
4182         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4183         ipa_check_create_edge_args.
4184         * ipa-inline.c (inline_generate_summary): Do not call
4185         ipa_check_create_node_params and ipa_check_create_edge_args.
4186         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4187         ipa_check_create_edge_args.
4188
4189 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
4190
4191         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4192         instead of loop.
4193         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4194         * function.c (record_hard_reg_sets): Likewise.
4195         * ira.c (compute_regs_asm_clobbered): Likewise.
4196         * sched-deps.c (sched_analyze_1): Likewise.
4197         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4198
4199 2011-04-09  Xinliang David Li  <davidxl@google.com>
4200
4201         PR tree-optimization/PR48484
4202         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4203         has_valid_pred lazily
4204
4205 2011-04-09  Duncan Sands  <baldrick@free.fr>
4206
4207         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4208
4209 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4210
4211         * combine.c (combine_validate_cost): Adjust comments.  Set registered
4212         cost of I0 to zero at the end, if any.
4213
4214 2011-04-08  Xinliang David Li  <davidxl@google.com>
4215
4216         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4217         to insane profile data.
4218
4219 2011-04-08  Xinliang David Li  <davidxl@google.com>
4220
4221         * ipa-cp.c (ipcp_update_profiling): Correct
4222          negative scale factor due to insane profile data.
4223
4224 2011-04-08  Xinliang David Li  <davidxl@google.com>
4225
4226         * final.c (dump_basic_block_info): New function.
4227         (final): Dump basic block.
4228         (final_scan_insn): Remove old dump.
4229
4230 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4231
4232         PR target/47829
4233         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4234         crtbegin/crtend.
4235
4236 2011-04-08  Michael Matz  <matz@suse.de>
4237
4238         PR middle-end/48389
4239         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4240         functions.
4241         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4242         * rtl.h (rebuild_jump_labels_chain): Declare.
4243         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4244         insns inserted on edges.
4245
4246 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
4247
4248         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4249         * config/arm/arm-arches.def: New.
4250         * config/arm/arm-opts.h: New.
4251         * config/arm/genopt.sh: New.
4252         * config/arm/arm-tables.opt: New (generated).
4253         * config/arm/arm.c (arm_handle_option, arm_target_help,
4254         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4255         (all_architectures): Get most table contents from arm-arches.def.
4256         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4257         arm_selected_tune here.
4258         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4259         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4260         (march=, mcpu=, mtune=): Use Enum and Var.
4261         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4262         (arm.o): Update dependencies.
4263
4264 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
4265
4266         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4267         of header_file.
4268         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4269         (write_typed_alloc_defns): Likewise.
4270         (main): Calls write_typed_alloc_defns with output_header.
4271
4272 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4273
4274         PR inline-asm/48435
4275         * ira-color.c (setup_profitable_hard_regs): Add comments.
4276         Don't take prohibited hard regs into account.
4277         (setup_conflict_profitable_regs): Rename to
4278         get_conflict_profitable_regs.
4279         (check_hard_reg_p): Check prohibited hard regs.
4280
4281 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4282
4283         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4284         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4285         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4286
4287 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4288
4289         PR target/48366
4290         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4291         move from floating point to shift amount register.
4292         (emit_move_sequence): Remove secondary reload support for floating
4293         point to shift amount amount register copies.
4294         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4295         amount register copies.
4296         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4297         register, return false if mode isn't a scalar integer mode.
4298         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4299
4300 2011-04-08  Richard Guenther  <rguenther@suse.de>
4301
4302         * gimple.c (gimple_call_flags): Remove kludge.
4303
4304 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4305
4306         * sel-sched.c (sel_region_init): Move call to
4307         sel_setup_region_sched_flags after setup_current_loop_nest.
4308
4309 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
4310
4311         PR rtl-optimization/48272
4312         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4313         init_insn_reg_pressure_info.  Adjust a caller.
4314         * sched-int.h (init_insn_reg_pressure_info): Declare.
4315         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4316         when sched-pressure is enabled.
4317
4318 2011-04-08  Richard Guenther  <rguenther@suse.de>
4319
4320         * gimple.c (gimple_set_modified): Do not queue calls to
4321         MODIFIED_NORETURN_CALLS here ...
4322         * tree-ssa-operands.c (update_stmt_operands): ... but here.
4323
4324 2011-04-08  Richard Guenther  <rguenther@suse.de>
4325
4326         PR lto/48467
4327         * toplev.c (lang_dependent_init): Do not open asm_out_file
4328         in WPA mode, nor perform debug machinery initialization.
4329         (finalize): Do not unlink asm_out_file in WPA mode.
4330
4331 2011-04-08  Richard Guenther  <rguenther@suse.de>
4332
4333         * gimple.h (gimple_call_fntype): New function.
4334         (gimple_call_return_type): Use it.
4335         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4336         * gimple-low.c (gimple_check_call_args): Likewise.
4337         * gimple.c (gimple_call_flags): Likewise.
4338         (gimple_call_arg_flags): Likewise.
4339         (gimple_call_return_flags): Likewise.
4340         * tree-cfg.c (verify_gimple_call): Likewise.
4341         (do_warn_unused_result): Likewise.
4342         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4343         * value-prof.c (gimple_ic_transform): Fix fndecl check.
4344
4345 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
4346
4347         PR rtl-optimization/48235
4348         * sel-sched.c (code_motion_process_successors): Recompute the last
4349         insn in basic block if control flow changed.
4350         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
4351         Update condition for ilist_remove.
4352
4353 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4354
4355         PR rtl-optimization/48302
4356         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4357         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
4358         it to record added preheader blocks.
4359         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
4360         on to sel_add_loop_preheaders.
4361         (sel_region_init): Move call to setup_current_loop_nest after
4362         sel_init_bbs.
4363
4364 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4365
4366         PR target/48273
4367         * cfgloop.h (loop_has_exit_edges): New helper.
4368         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4369         non-clonable.
4370         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4371         that have no exit edges.
4372
4373 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4374
4375         PR rtl-optimization/48442
4376         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
4377         all callers.  Adjust assert.
4378
4379 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
4380
4381         PR tree-optimization/48377
4382         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4383         is_packed to true even for types with smaller TYPE_ALIGN than
4384         TYPE_SIZE.
4385
4386 2011-04-08  Richard Guenther  <rguenther@suse.de>
4387
4388         PR bootstrap/48513
4389         * doc/tm.texi: Re-generate.
4390
4391 2011-04-08  Wei Guozhi  <carrot@google.com>
4392
4393         PR target/47855
4394         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4395         * config/arm/arm.c (arm_attr_length_push_multi): New function.
4396         * config/arm/arm.md (*push_multi): Change the length computation to
4397         call a C function.
4398
4399 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
4400
4401         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4402         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4403         * doc/tm.texi: Regenerate.
4404         * system.h (ASM_OUTPUT_BSS): Poison.
4405         * varasm.c (asm_output_bss): Remove function.
4406         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4407
4408         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4409         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4410         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4411         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4412         Likewise.
4413         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4414         Likewise.
4415         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4416         Likewise.
4417         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4418
4419 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4420
4421         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4422         EnumValue lines.
4423
4424 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4425
4426         * config/m68k/m68k.c (m68k_handle_option): Don't handle
4427         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4428         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4429         OPT_mcpu32.
4430         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4431         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4432         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4433         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4434         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4435         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4436         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4437         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4438         options.  Don't map other m68k options manually.  Don't handle
4439         old-style options as canonical.
4440         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4441         * doc/install.texi (m68k-*-*): Document binutils version requirement.
4442
4443 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4444
4445         * basic-block.h (force_nonfallthru): Move to...
4446         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4447         (force_nonfallthru): ...here.
4448         * cfghooks.c (force_nonfallthru): New function.
4449         * cfgrtl.c (force_nonfallthru): Rename into...
4450         (rtl_force_nonfallthru): ...this.
4451         (commit_one_edge_insertion): Do not set AUX field.
4452         (commit_edge_insertions): Do not discover new basic blocks.
4453         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4454         (cfg_layout_rtl_cfg_hooks): Likewise.
4455         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4456         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
4457         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4458
4459 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
4460
4461         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4462         Remove macros.
4463
4464 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
4465
4466         * config/i386/sse.md: Update copyright year.
4467         (avxcvtvecmode): Remove.
4468         (sse_movhlps): Merge with *avx_movhlps.
4469         (sse_movlhps): Merge with *avx_movlhps.
4470         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4471         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4472         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4473         (sse_loadhps): Merge with *avx_loadhps.
4474         (sse_storelps): Merge with *avx_storelps.
4475         (sse_loadlps): Merge with *avx_loadlps.
4476         (sse_movss): Merge with *avx_movss.
4477         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4478         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4479         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4480         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4481         (vec_set<mode>_0): Ditto.
4482         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4483         (sse4_1_insertps): Merge with *avx_insertps.
4484         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4485         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4486         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4487         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4488         (sse2_storehpd): Merge with *avx_storehpd.
4489         (sse2_loadhpd): Merge with *avx_loadhpd.
4490         (sse2_loadlpd): Merge with *avx_loadlpd.
4491         (sse2_movsd): Merge with *avx_movsd.
4492         (*vec_concatv2df): Merge with *vec_concatv2df.
4493
4494 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
4495
4496         PR debug/48343
4497         * combine.c (combine_instructions): Add last_combined_insn,
4498         update it if insn is after it, pass it to all try_combine calls.
4499         (try_combine): Add last_combined_insn parameter, pass it instead of
4500         i3 to propagate_for_debug.
4501
4502 2011-04-07  Nick Clifton  <nickc@redhat.com>
4503
4504         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4505         to handle MDR <-> data register transfers.
4506         (movhi_internal): Likewise.
4507
4508 2011-04-07  Alan Modra  <amodra@gmail.com>
4509
4510         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4511         previous stack info.
4512
4513 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4514
4515         PR target/43920
4516         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
4517         flow_find_cross_jump.  Swap variables to implement backward replacement.
4518         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4519
4520 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4521
4522         PR target/43920
4523         * cfgcleanup.c (walk_to_nondebug_insn): New function.
4524         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
4525         and bb2.
4526         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4527         src1 or src2.  Redirect edges to the last basic block.  Update
4528         frequency and count on multiple basic blocks in case of fallthru.
4529
4530 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4531
4532         PR target/43920
4533         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4534         function.
4535         (old_insns_match_p): Change return type.  Replace return false/true
4536         with return dir_none/dir_both.  Use can_replace_by.
4537         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
4538         direction from dir_p.  Register replacement direction in dir, last_dir
4539         and afterlast_dir.  Handle new return type of old_insns_match_p using
4540         merge_dir.  Return replacement direction in dir_p.
4541         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4542         return type of old_insns_match_p.
4543         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4544         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4545         flow_find_cross_jump.
4546         * basic-block.h (enum replace_direction): New type.
4547         (flow_find_cross_jump): Add parameter to declaration.
4548
4549 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4550
4551         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4552         (AVXMODEDCVTPS2DQ): Ditto.
4553         (VEC_FLOAT_MODE): Ditto.
4554         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
4555         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4556         (<any_logic:code><mode>3): Use VF mode iterator.
4557         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4558         Use VF mode iterator.
4559         (copysign<mode>3): Use VF mode iterator.
4560         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
4561         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4562         (*<any_logic:code><MODEF:mode>3): Merge with
4563         *avx_<any_logic:code><MODEF:mode>3.
4564         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4565         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4566         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4567         (avx_cvtdq2ps<avxmodesuffix>): Remove.
4568         (sse2_cvtdq2ps): Use %v modifier.
4569         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4570         (avx_cvtps2dq<avxmodesuffix>): Remove.
4571         (sse2_cvtps2dq): Use %v modifier.
4572         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4573         (avx_cvttps2dq<avxmodesuffix>): Remove.
4574         (sse2_cvttps2dq): Use %v modifier.
4575         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4576         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4577         (sse2_cvtsd2siq): Fix insn template.
4578         (sse2_cvtsd2siq_2): Ditto.
4579         (sse2_cvttsd2siq): Ditto.
4580         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4581         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4582
4583 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4584
4585         * gcov-io.c: Use GCC Runtime Library Exception.
4586
4587 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
4588
4589         PR debug/48466
4590         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4591         as base_reg whatever register reg has been eliminated to, instead
4592         of hardcoding STACK_POINTER_REGNUM.
4593
4594 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4595
4596         * doc/tm.texi.in: Document C target hooks as separate from general
4597         target hooks.
4598         * doc/tm.texi: Regenerate.
4599         * genhooks.c (struct hook_desc): Add docname field.
4600         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
4601         docname field.
4602         (hook_array): Include c-target.def.
4603         (emit_documentation): Use docname field in output.
4604         (emit_init_macros): Take docname argument.  Only emit definitions
4605         for hooks matching docname.
4606         (main): Expect additional arguments in all cases.  Pass argument
4607         to emit_init_macros.
4608         * target.def: Move initial macro definitions and comments to
4609         target-hooks-macros.h.
4610         (gcc_targetcm): Move to c-family/c-target.def.
4611         * target.h (targetcm): Move declaration to c-family/c-target.h.
4612         * targhooks.c (default_handle_c_option): Move to
4613         c-family/c-opts.c.
4614         * targhooks.h (default_handle_c_option): Move declaration to
4615         c-family/c-common.h.
4616         * target-hooks-macros.h: New file.
4617         * config.gcc (target_has_targetcm): Define and use to add to
4618         c_target_objs and cxx_target_objs.
4619         * config/default-c.c: New file.
4620         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4621         of target.h and target-def.h.
4622         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4623         (darwin_objc_construct_string, darwin_cfstring_ref_p,
4624         darwin_check_cfstring_format_arg): Make static.
4625         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4626         TARGET_STRING_OBJECT_REF_TYPE_P,
4627         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4628         * config/darwin-protos.h (darwin_objc_construct_string,
4629         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4630         declare.
4631         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4632         TARGET_STRING_OBJECT_REF_TYPE_P,
4633         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4634         * config/t-darwin (darwin-c.o): Update dependencies.
4635         * system.h (TARGET_HAS_TARGETCM): Poison.
4636         * Makefile.in (TARGET_H): Update.
4637         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4638         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4639         (default-c.o): New target.
4640         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4641         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4642         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
4643         c-target.def.
4644         (build/genhooks.o): Update dependencies.
4645
4646 2011-04-06  Richard Guenther  <rguenther@suse.de>
4647
4648         * ipa-inline.c (enum inlining_mode): Remove.
4649         (cgraph_flatten): Use some other token.
4650         (cgraph_edge_early_inlinable_p): New function, split out from ...
4651         (cgraph_perform_always_inlining): New function, split out from ...
4652         (cgraph_decide_inlining_incrementally): ... here.
4653         (cgraph_mark_inline_edge): Adjust.
4654         (cgraph_early_inlining): Re-structure.
4655         (pass_early_inline): Require SSA form.
4656
4657 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
4658             Julian Brown  <julian@codesourcery.com>
4659             Mark Shinwell  <shinwell@codesourcery.com>
4660
4661         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4662         LO_REGS only for Thumb-1.
4663         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4664         be used in short instructions when optimising for size on Thumb-2.
4665
4666 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
4667
4668         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4669         associated with user returns to be preserved.
4670
4671 2011-04-06  Tristan Gingold  <gingold@adacore.com>
4672
4673         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4674         symbol_queue_size, DBXOUT_DECR_NESTING,
4675         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4676         if XCOFF_DEBUGGING_INFO.
4677
4678 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4679
4680         * config/i386/i386.md (attribute isa): New.
4681         (attribute enabled): New.
4682         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4683         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4684         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4685         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4686         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4687         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4688         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4689         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4690
4691         * config/i386/sse.md (VF): New mode iterator.
4692         (VF1): Ditto.
4693         (VF2): Ditto.
4694         (VF_128): Ditto.
4695         (SSEMODEF4): Remove.
4696         (attribute sse): Handle V8SF and V4DF modes.
4697         (<absneg:code><mode>2): Use VF mode iterator.
4698         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
4699         mode iterator.
4700         (<plusminus_insn><mode>3): Use VF mode iterator.
4701         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4702         Use VF mode iterator.
4703         (<sse>_vm<plusminus_insn><mode>3): Merge with
4704         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
4705         (mul<mode>3): Use VF mode iterator.
4706         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
4707         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
4708         mode iterator.
4709         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4710         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4711         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
4712         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
4713         mode iterator.
4714         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4715         Use VF1 mode iterator.
4716         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4717         (sqrt<VF2:mode>2): New expander.
4718         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4719         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4720         and sqrtv2df2.  Use VF mode iterator.
4721         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
4722         mode iterator.
4723         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4724         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4725         Use VF1 mode iterator.
4726         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4727         (<smaxmin:code><mode>3): Use VF mode iterator.
4728         (*<smaxmin:code><mode>3_finite): Merge with
4729         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
4730         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4731         (<sse>_vm<smaxmin:code><mode>2): Merge with
4732         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
4733         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
4734         mode iterator.
4735         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
4736         mode iterator.
4737         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4738         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4739         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4740         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4741         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
4742         VF mode iterator.
4743         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4744         Use VF_128 mode iterator.
4745         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
4746         mode iterator.
4747         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
4748         VF_128 mode iterator.
4749         (vcond<mode>): Use VF mode iterator.
4750         * config/i386/predicates.md (sse_comparison_operator): Merge with
4751         avx_comparison_float_operator.  Do not declare as special_predicate.
4752         * config/i386/i386.c (struct builtin_description): Update for renamed
4753         compare patterns.
4754         (ix86_expand_args_builtin): Ditto.
4755         (ix86_expand_sse_compare_mask): Ditto.
4756
4757 2011-04-06  Richard Guenther  <rguenther@suse.de>
4758
4759         * tree-inline.c (estimate_num_insns): For calls simply account
4760         for all passed arguments and a used return value.
4761
4762 2011-04-06  Richard Guenther  <rguenther@suse.de>
4763
4764         PR tree-optimization/47663
4765         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4766         call_stmt_time fields.
4767         (cgraph_edge_inlinable_p): Declare.
4768         (cgraph_edge_recursive_p): New inline function.
4769         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4770         (cgraph_clone_edge): Copy it.
4771         * ipa-inline.c (cgraph_estimate_edge_time): New function.
4772         Account for call stmt time.
4773         (cgraph_estimate_time_after_inlining): Take edge argument.
4774         (cgraph_estimate_edge_growth): Account call stmt size.
4775         (cgraph_estimate_size_after_inlining): Take edge argument.
4776         (cgraph_mark_inline_edge): Adjust.
4777         (cgraph_check_inline_limits): Likewise.
4778         (cgraph_recursive_inlining_p): Remove.
4779         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
4780         (cgraph_decide_recursive_inlining): Take edge argument and
4781         adjust.
4782         (cgraph_decide_inlining_of_small_functions): Do not avoid
4783         diags for recursive inlining here.
4784         (cgraph_flatten): Adjust.
4785         (cgraph_decide_inlining_incrementally): Likewise.
4786         (estimate_function_body_sizes): Remove call cost handling.
4787         (compute_inline_parameters): Initialize caller edge call costs.
4788         (cgraph_estimate_edge_growth): New function.
4789         (cgraph_estimate_growth): Use it.
4790         (cgraph_edge_badness): Likewise.
4791         (cgraph_check_inline_limits): Take an edge argument.
4792         (cgraph_decide_inlining_of_small_functions): Adjust.
4793         (cgraph_decide_inlining): Likewise.
4794         * tree-inline.c (estimate_num_insns): Only account for call
4795         return value if it is used.
4796         (expand_call_inline): Avoid diagnostics on recursive inline
4797         functions here.
4798         * lto-cgraph.c (lto_output_edge): Output edge call costs.
4799         (input_edge): Input edge call costs.
4800
4801 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4802
4803         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
4804
4805 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
4806
4807         * doc/invoke.texi (Spec Files): Fix typo.
4808
4809 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
4810
4811         * profile.c (branch_prob): Move declaration of local variable.  Remove
4812         obsolete ??? comment.  Expand the location explicitly instead of using
4813         the LOCATION_FILE and LOCATION_LINE macros.
4814
4815 2011-04-06  Wei Guozhi  <carrot@google.com>
4816
4817         PR target/47855
4818         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
4819         (arm_cond_branch): Likewise.
4820         (arm_cond_branch_reversed): Likewise.
4821         (arm_jump): Likewise.
4822         (push_multi): Likewise.
4823         * config/arm/constraints.md (Py): New constraint.
4824
4825 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4826
4827         PR bootstrap/48471
4828         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
4829         Move these...
4830         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
4831         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
4832         #ifdef DBX_DEBUGGING_INFO.
4833
4834 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
4835
4836         PR bootstrap/48403
4837         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
4838         if old and new states differ.
4839
4840 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
4841
4842         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
4843         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
4844         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4845         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
4846         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
4847         mcfv4e): Use Alias.
4848         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
4849         ColdFire options to -mcpu= options.
4850
4851 2011-04-05  Jeff Law  <law@redhat.com>
4852
4853         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
4854         check if BB is a successor of LOOP->header and return
4855         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
4856
4857 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
4858
4859         * cprop.c (struct reg_use): Remove.
4860         (reg_use_table): Make an array of RTX.
4861         (find_used_regs, constprop_register, local_cprop_pass,
4862         bypass_block): Simplify users of reg_use_table.
4863         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
4864         on one of the uses found by find_used_regs.
4865
4866 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4867
4868         PR bootstrap/48469
4869         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
4870         declaration.
4871
4872 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4873
4874         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
4875         as an rtx.
4876         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
4877
4878 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
4879
4880         PR middle-end/48441
4881         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
4882
4883 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4884
4885         * combine.c: Include obstack.h.
4886         (struct insn_link): Define.
4887         (uid_log_links): Adjust type.
4888         (FOR_EACH_LOG_LINK): New macro.
4889         (insn_link_obstack): Declare.
4890         (alloc_insn_link): Define.
4891         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
4892         type of link variables.
4893         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
4894         (try_combine, record_promoted_values, distribute_notes): Likewise.
4895         (distribute_links): Likewise.  Tweak prototype.
4896         (clear_log_links): Delete.
4897         (adjust_for_new_dest): Call alloc_insn_link.
4898         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
4899
4900 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4901
4902         * gcse.c (modify_mem_list): Convert to an array of VECs.
4903         (canon_modify_mem_list, compute_transp): Tweak formatting.
4904         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
4905         (load_killed_in_block_p): Likewise.
4906         (record_last_mem_set_info): Likewise.
4907         (clear_modify_mem_tables): Likewise.
4908
4909 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4910
4911         PR middle-end/48461
4912         * function.c (emit_use_return_register_into_block): Only define if
4913         HAVE_return.
4914
4915 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
4916
4917         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
4918
4919 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
4920
4921         * config/rx/rx-opts.h: New.
4922         * config/rx/rx.c (rx_cpu_type): Remove.
4923         (rx_handle_option): Don't assert that global structures are in
4924         use.  Access variables via opts pointer.  Defer most handling of
4925         OPT_mint_register_.  Use error_at.
4926         (rx_option_override): Handle deferred OPT_mint_register_ here.
4927         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
4928         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
4929         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
4930         (rx_cpu_types): New Enum and EnumValue entries.
4931         (mint-register=): Use Defer and use Var accordingly.
4932
4933 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4934
4935         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
4936         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
4937         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
4938         Move these...
4939         (debug_free_queue, debug_nesting, symbol_queue_index):
4940         ...and these...
4941         * dbxout.c: ...to here.  Make static.
4942
4943 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4944
4945         * gcse.c (modify_pair): Define.  Define a VEC of it.
4946         (canon_modify_mem_list): Convert to an array of VECs.
4947         (free_insn_expr_list_list): Delete.
4948         (clear_modify_mem_tables): Call VEC_free instead.
4949         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
4950         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
4951         (canon_list_insert, compute_transp): Likewise.
4952
4953 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4954
4955         PR target/43920
4956         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
4957         for size.
4958
4959 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4960
4961         PR target/43920
4962         * function.c (emit_use_return_register_into_block): New function.
4963         (thread_prologue_and_epilogue_insns): Use
4964         emit_use_return_register_into_block.
4965
4966 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4967
4968         PR target/43920
4969         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
4970         insn.
4971
4972 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4973
4974         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
4975
4976 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
4977
4978         * config/arm/arm.md (define_constants for unspec): Replace with
4979         define_c_enum.
4980         (define_constants for unspecv): Replace with define_c_enum.
4981         * config/arm/neon.md (define_constants for unspec): Replace with
4982         define_c_enum.
4983
4984 2011-04-04  Richard Henderson  <rth@redhat.com>
4985
4986         PR bootstrap/48400
4987         * dwarf2out.c (output_line_info): Always emit line info from
4988         at least one section.
4989         (dwarf2out_init): Create text_section_line_info here ...
4990         (set_cur_line_info_table): ... not here.
4991
4992 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
4993
4994         PR target/48380
4995         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
4996         not called.
4997
4998         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
4999
5000 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5001
5002         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5003         (expr_equiv_p): Remove.
5004         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5005         (hash_scan_set): Update call to insert_set_in_table.
5006         (dump_hash_table): Dump <dest, src> pair.
5007         (lookup_set): Simplify.  Lookup <dest, src> pair.
5008         (compute_transp): Remove, fold heavily simplified code into...
5009         (compute_local_properties): ...here.  Expect COMP and TRANSP
5010         unconditionally.
5011         (find_avail_set): Take set directly from struct expr.
5012         (find_bypass-set): Likewise.
5013         (bypass_block): Likewise.
5014         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5015
5016         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5017         checks on form of COND from find_implicit_sets to here.
5018         (find_implicit_sets): Cleanup control flow. Split critical edges
5019         if it exposes implicit sets.  Allocate/resize implicit_sets as
5020         necessary.
5021         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5022         changed something.  Run df_analyze after find_implicit_sets if any
5023         edges were split.  Do not allocate implicit_sets here.
5024
5025         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5026         (gcse_obstack): Renamed to cprop_obstack.
5027         (GNEW, GNEWVEC, GNEWVAR): Remove.
5028         (gmalloc): Remove.
5029         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5030         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5031         (gcse_alloc): Likewise, and rename to cprop_alloc.
5032         (alloc_gcse_men, free_gcse_mem): Remove.
5033         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5034         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5035         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5036
5037         * cprop.c (oprs_not_set_p): Remove.
5038         (mark_set, mark_clobber): Remove.
5039         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5040         (reg_not_set_p): New function.
5041         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5042         (cprop_insn): Likewise.
5043         (cprop_jump): Use FOR_EACH_EDGE.
5044
5045 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5046
5047         PR bootstrap/48403
5048         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5049         (rank_for_schedule): Use scheduled_insns vector instead of
5050         last_scheduled_insn.
5051         (ok_for_early_queue_removal): Likewise.
5052         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5053         we have a dbg_cnt.
5054         (choose_ready): Likewise.
5055         (commit_schedule): Use VEC_iterate.
5056         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5057         a dbg_cnt, use it and ensure the first insn is in the ready list.
5058         (haifa_sched_init): Allocate scheduled_insns.
5059         (sched_extend_ready_list): Don't allocate it; reserve space.
5060         (haifa_sched_finish): Free it.
5061
5062 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5063
5064         * optc-gen.awk: Always remove type from Variable entry before
5065         recording in var_seen.
5066
5067 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5068
5069         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5070         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5071         call to tidy_fallthru_edges.
5072
5073 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5074
5075         * doc/options.texi (ToLower): Document.
5076         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5077         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5078         * opts.h (cl_option): Add cl_tolower field.
5079         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5080         arguments with lowercase strings.
5081         * config/rx/rx.opt (mcpu=): Add ToLower.
5082         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5083         argument.
5084
5085 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5086
5087         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5088
5089 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5090
5091         * config/vax/vax.c: Include reload.h.
5092
5093 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5094
5095         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5096         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5097         (sparc_preferred_reload_class): New function.
5098
5099 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5100
5101         PR debug/48401
5102         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5103         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5104
5105 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5106
5107         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5108         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5109
5110 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5111
5112         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5113         (ASM_OUTPUT_ALIGNED_BSS): Define.
5114
5115 2011-04-03  Michael Matz  <matz@suse.de>
5116
5117         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5118         and next_slot members.
5119         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5120         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5121         (lto_streamer_cache_append): Declare.
5122         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5123         unsigned index, remove offset parameter, ensure that we append
5124         or update existing entries.
5125         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5126         parameter, update next_slot for append.
5127         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5128         parameter.
5129         (lto_streamer_cache_insert_at): Likewise.
5130         (lto_streamer_cache_append): New function.
5131         (lto_streamer_cache_lookup): Use unsigned index.
5132         (lto_streamer_cache_get): Likewise.
5133         (lto_record_common_node): Don't test tree_node_can_be_shared.
5134         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5135         (lto_streamer_cache_delete): Don't free offsets member.
5136         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5137         (lto_output_string_with_length): Use lto_output_data_stream.
5138         (lto_output_tree_header): Remove ix parameter, don't write it.
5139         (lto_output_builtin_tree): Likewise.
5140         (lto_write_tree): Adjust callers to above, don't track and write
5141         offset, write unsigned index.
5142         (output_unreferenced_globals): Don't emit all global vars.
5143         (write_global_references): Use unsigned indices.
5144         (lto_output_decl_state_refs): Likewise.
5145         (write_symbol): Likewise.
5146         * lto-streamer-in.c (lto_input_chain): Move earlier.
5147         (input_function): Use unsigned index.
5148         (input_alias_pairs): Don't read and then ignore all global vars.
5149         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5150         don't pass it back, use lto_streamer_cache_append.
5151         (lto_register_var_decl_in_symtab): Use unsigned index.
5152         (lto_register_function_decl_in_symtab): Likewise.
5153         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5154         index.
5155         (lto_get_builtin_tree): Don't read index, use
5156         lto_streamer_cache_append.
5157         (lto_read_tree): Adjust call to lto_materialize_tree.
5158
5159         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5160         don't use function calls in arguments to MIN.
5161
5162         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5163         twice.
5164
5165         * gimple.c (gimple_type_leader_entry): Mark deletable.
5166
5167 2011-04-03  Alan Modra  <amodra@gmail.com>
5168
5169         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5170
5171 2011-04-03  Michael Matz  <matz@suse.de>
5172
5173         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5174         an integer.
5175         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5176
5177 2011-04-03  Michael Matz  <matz@suse.de>
5178
5179         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5180         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5181         without function context.
5182         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5183         current_function_decl and cfun.
5184
5185 2011-04-03  Michael Matz  <matz@suse.de>
5186
5187         * tree.c (decl_init_priority_insert): Don't create entry for
5188         default priority.
5189         (decl_fini_priority_insert): Ditto.
5190         (fields_compatible_p, find_compatible_field): Remove.
5191         * tree.h (fields_compatible_p, find_compatible_field): Remove.
5192         * gimple.c (gimple_compare_field_offset): Adjust block comment.
5193
5194 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5195
5196         * combine.c (try_combine): Remove useless local variable.
5197
5198 2011-04-03  Richard Guenther  <rguenther@suse.de>
5199             Ira Rosen  <ira.rosen@linaro.org>
5200
5201         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5202         non-variable offsets and compare the remaining bases of the two
5203         accesses instead of looking for exact same data-ref.
5204
5205 2011-04-02  Kai Tietz  <ktietz@redhat.com>
5206
5207         PR target/48416
5208         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5209
5210         * i386.c (ix86_is_msabi_thiscall): New helper function.
5211         (ix86_is_type_thiscall): New helper function.
5212         (ix86_comp_type_attributes): Handle thiscall for method-functions
5213         special.
5214         (init_cumulative_args): Likewise.
5215         (find_drap_reg): Likewise.
5216         (ix86_static_chain): Likewise.
5217         (x86_this_parameter): Likewise.
5218         (x86_output_mi_thunk): Likewise.
5219
5220 2011-04-01  Olivier Hainque  <hainque@adacore.com>
5221             Nicolas Setton  <setton@adacore.com>
5222             Eric Botcazou  <ebotcazou@adacore.com>
5223
5224         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5225         (add_gnat_descriptive_type_attribute): New function.
5226         (gen_array_type_die): Call it.
5227         (gen_enumeration_type_die): Likewise.
5228         (gen_struct_or_union_type_die): Likewise.
5229         (modified_type_die): Likewise.
5230         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5231         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5232         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5233
5234 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5235
5236         PR bootstrap/48148
5237         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5238         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5239
5240         Revert:
5241         2011-03-17  Richard Guenther  <rguenther@suse.de>
5242
5243         PR bootstrap/48148
5244         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5245         origin for decls in other ltrans units.
5246         (input_varpool_node): Likewise.
5247
5248 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5249
5250         PR middle-end/48335
5251         * expr.c (expand_assignment): Handle all possibilities
5252         if TO_RTX is CONCAT.
5253         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5254         (store_split_bit_field): If SUBREG_REG (op0) or
5255         op0 itself has smaller mode than word, return it
5256         for offset 0 and const0_rtx for out-of-bounds stores.
5257         If word is const0_rtx, skip it.
5258
5259 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
5260
5261         * config/h8300/h8300.c (print_operand_address): Rename to...
5262         (h8300_print_operand_address): ...this. Make static. Adjust comments.
5263         Call h8300_print_operand and h8300_print_operand_address instead of
5264         print_operand and print_operand_address. Declare.
5265         (print_operand): Renake to...
5266         (h8300_print_operand): ...this. Make static. Adjust comments.
5267         Call h8300_print_operand instead of print_operand. Declare.
5268         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5269         (h8300_register_move_cost): Likewise.
5270         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5271         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5272         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5273         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5274         * config/h8300/h8300-protos.h (print_operand): Delete.
5275         (print_operand_address): Delete.
5276
5277 2011-04-01  Richard Henderson  <rth@redhat.com>
5278
5279         PR 48400
5280         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5281         in strict mode before dwarf4.  Re-order tests to early out
5282         before switching sections.
5283
5284 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
5285
5286         * config/h8300/constraints.md: New file.
5287         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
5288         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5289         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5290         * config/h8300/predicates.md (bit_operand): Likewise.
5291         (incdec_operand): Use satisfies_constraint_M and
5292         satisfies_constraint_O.  Don't use C code block.
5293         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5294         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5295         (compute_mov_length): Use satisfies_constraint_G.
5296         (fix_bit_operand): Use satisfies_constraint_U.
5297         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5298         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5299         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5300         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5301         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5302         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5303         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5304         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5305         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5306         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5307         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5308         (EXTRA_MEMORY_CONSTRAINT): Delete.
5309
5310 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
5311             Michael Meissner  <meissner@linux.vnet.ibm.com>
5312
5313         PR target/48262
5314         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5315         operands, as per the specifications.
5316
5317         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5318         (vec_extract_evenv4sf): Ditto.
5319         (vec_extract_evenv8hi): Ditto.
5320         (vec_extract_evenv16qi): Ditto.
5321         (vec_extract_oddv4si): Ditto.
5322
5323 2011-03-31  Mark Wielaard  <mjw@redhat.com>
5324
5325         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5326         high_pc attribute if the CU has no associated code. Only output
5327         DW_AT_entry_pc for CU if not generating strict dwarf and
5328         dwarf_version < 4.
5329
5330 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
5331
5332         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5333         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5334         out of ...
5335         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5336         * final.c (final_start_function): Call the new function rather
5337         than using a NULL argument for dwarf2out_frame_debug.
5338
5339         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5340         that contains the prologue.
5341
5342         * haifa-sched.c (queue_insn): New arg REASON.  All callers
5343         changed.  Print it in debugging output.
5344
5345         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5346
5347         * sched-ebb.c (begin_schedule_ready): Remove second argument.
5348         Split most of the code into...
5349         (begin_move_insn): ... here.  New function.
5350         (ebb_sched_info): Add a pointer to it.
5351         * haifa-sched.c (scheduled_insns): New static variable.
5352         (sched_extend_ready_list): Allocate it.
5353         (schedule_block): Use it to record the order of scheduled insns.
5354         Perform RTL changes to move insns only after all scheduling
5355         decisions have been made.
5356         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5357         begin_move_insn field.
5358         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5359         * sched-int.h (struct haifa_sched_info): Remove second argument
5360         from begin_schedule_ready hook.  Add new member begin_move_insn.
5361         * sched-rgn.c (begin_schedule_ready): Remove second argument.
5362         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5363
5364         * haifa-sched.c (prune_ready_list): New function, broken out of
5365         schedule_block.
5366         (schedule_block): Use it.
5367
5368 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5369
5370         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5371
5372 2011-04-01  Kai Tietz  <ktietz@redhat.com>
5373
5374         * config.gcc (*-*-mingw*): Allow as option the
5375         posix threading model.
5376         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
5377         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5378         definition.
5379         (CPP_SPEC): Add pthread/no-pthread handling.
5380         (LIB_SPEC): Likewise.
5381         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5382         (LIB_SPEC): Likewise.
5383         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5384         flag to pass -pthread option for shared libgcc build.
5385         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5386         for shared libgcc build.
5387         * config/i386/t-mingw-pthread: New file.
5388         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5389         New define to enable use of library pthread by default.
5390         * config/i386/mingw.opt (pthread): New driver option.
5391         (no-pthread): New driver option.
5392         * config/i386/cygming.opt: Make sure trailing empty line is retained.
5393         * config/i386/mingw-w64.opt: Likewise.
5394
5395 2011-04-01  Gary Funck <gary@intrepid.com>
5396
5397         * c-decl.c (grokdeclarator): Fix formatting.
5398
5399 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5400
5401         * expr.c (emit_block_move_via_movmem): Use n_generator_args
5402         instead of n_operands.
5403         (set_storage_via_setmem): Likewise.
5404         * optabs.c (maybe_gen_insn): Likewise.
5405         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5406         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5407         (mips_expand_builtin_direct): Likewise.
5408         * config/spu/spu.c (expand_builtin_args): Likewise.
5409
5410 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5411
5412         * recog.h (insn_data_d): Add n_generator_args.
5413         * genoutput.c (data): Likewise.
5414         (output_insn_data): Print it.
5415         (max_opno, num_dups): Delete.
5416         (scan_operands): Just fill in "d->operand[...]".
5417         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5418
5419 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5420
5421         * gensupport.h (pattern_stats): New structure.
5422         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5423         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5424         (max_operand_1, max_operand_vec): Delete.
5425         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5426
5427 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
5428
5429         * emit-rtl.c (emit_pattern_after_setloc): New function.
5430         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5431         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5432         (emit_pattern_after): New function.
5433         (emit_insn_after, emit_jump_insn_after): Call it.
5434         (emit_call_insn_after, emit_debug_insn_after): Likewise.
5435         (emit_pattern_before_setloc): New function.
5436         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5437         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5438         Likewise.
5439         (emit_pattern_before): New function.
5440         (emit_insn_before, emit_jump_insn_before): Call it.
5441         (emit_call_insn_before, emit_debug_insn_before): Likewise.
5442
5443 2011-03-31  Richard Henderson  <rth@redhat.com>
5444
5445         * dwarf2out.c (dw_separate_line_info_ref): Remove.
5446         (dw_separate_line_info_entry): Remove.
5447         (enum dw_line_info_opcode): New.
5448         (dw_line_info_entry): Use it.
5449         (dw_line_info_table, dw_line_info_table_p): New.
5450         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5451         (line_info_table, line_info_label_num): Remove.
5452         (line_info_table_in_use): Remove.
5453         (separate_line_info_table): Remove.
5454         (separate_line_info_table_allocated): Remove.
5455         (separate_line_info_table_in_use): Remove.
5456         (LINE_INFO_TABLE_INCREMENT): Remove.
5457         (line_info_label_num): New.
5458         (cur_line_info_table): New.
5459         (text_section_line_info, cold_text_section_line_info): New.
5460         (separate_line_info): New.
5461         (SEPARATE_LINE_CODE_LABEL): Remove.
5462         (print_dwarf_line_table): Remove.
5463         (debug_dwarf): Don't dump it.
5464         (output_one_line_info_table): New.
5465         (output_line_info): Use it.
5466         (new_line_info_table): New.
5467         (set_cur_line_info_table): New.
5468         (dwarf2out_switch_text_section): Use it.
5469         (dwarf2out_begin_function): Likewise.
5470         (push_dw_line_info_entry): New.
5471         (dwarf2out_source_line): Rewrite for new line info tables.
5472         (dwarf2out_init): Remove dead initailizations.
5473
5474 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5475
5476         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
5477         various flags.
5478         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5479         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5480         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5481         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5482         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5483         * opt-functions.awk (flag_init, switch_bit_fields): New.
5484         (switch_flags): Don't handle flags moved to bit-fields.  Don't
5485         generate CL_MISSING_OK or CL_SAVE.
5486         * optc-gen.awk: Update to generate bit-field output as well as
5487         flags field.
5488         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5489         bit-field instead of CL_REJECT_DRIVER flag.
5490         * opts-common.c (generate_canonical_option,
5491         decode_cmdline_option): Use bit-fields instead of CL_* flags.
5492         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5493         instead of CL_REJECT_NEGATIVE flag.
5494         * toplev.c (print_switch_values): Use cl_report bit-field instead
5495         of CL_REPORT flag.
5496
5497 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5498
5499         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5500         a zero minimum index only if it is redundant.
5501
5502 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5503
5504         PR rtl-optimization/48381
5505         * ira-color.c (assign_hard_reg): Use hard reg set intersection
5506         instead of ira_class_hard_reg_index for calculating conflicting
5507         hard registers.
5508
5509 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
5510
5511         * cprop.c: Clean up hash table building.
5512         (reg_avail_info): Remove.
5513         (oprs_available_p): Remove.
5514         (record_last_reg_set_info): Remove.
5515         (record_last_set_info): Remove.
5516         (reg_available_p): New function.
5517         (gcse_constant_p): Do not treat unfolded conditions as constants.
5518         (make_set_regs_unavailable): New function.
5519         (hash_scan_set): Simplify with new reg_available_p.
5520         (compute_hash_table_work): Traverse insns stream only once.
5521         Do not compute reg_avail_info. Traverse insns in reverse order.
5522         Record implicit sets after recording explicit sets from the block.
5523
5524 2011-03-31  Michael Matz  <matz@suse.de>
5525
5526         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5527
5528 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
5529
5530         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5531         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5532         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5533         (h8300_mode_dependent_address_p): New function.
5534         (h8300_get_index): Make static.
5535
5536 2011-03-31  Jeff Law  <law@redhat.com>
5537
5538         * reload1.c (elimination_effects): Fix typo in recent change.
5539
5540         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5541         typo potentially leading to null pointer dereference.
5542
5543         * caller-save.c (new_saved_hard_reg): Eliminate return value.
5544         (setup_save_areas): Corresponding changes to avoid useless
5545         assignments.
5546
5547         * jump.c (reversed_comparison_code_parts): Avoid successive return
5548         statements when REVERSE_CONDITION is defined.
5549
5550         * expr.c (expand_assignment): Avoid useless assignments.
5551         (expand_expr_real_1): Likewise.
5552         (expand_expr_real_2): Avoid useless statements.
5553
5554         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5555
5556         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5557
5558         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5559         statements.
5560
5561         * stmt.c (expand_expr_stmt): Avoid useless assignment.
5562
5563 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5564
5565         PR target/47109
5566         * doc/tm.texi.in (TARGET_VERSION): Remove.
5567         * doc/tm.texi: Regenerate.
5568         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5569         * collect2.c (main): Don't use TARGET_VERSION.
5570         * mips-tdump.c (main): Don't use TARGET_VERSION.
5571         * mips-tfile.c (main): Don't use TARGET_VERSION.
5572         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5573         * config/rs6000/vxworksae.h: Remove.
5574         * config/alpha/alpha.h (TARGET_VERSION): Remove.
5575         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5576         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5577         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5578         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5579         * config/arm/arm.h (TARGET_VERSION): Remove.
5580         * config/arm/coff.h (TARGET_VERSION): Remove.
5581         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5582         * config/arm/elf.h (TARGET_VERSION): Remove.
5583         * config/arm/freebsd.h (TARGET_VERSION): Remove.
5584         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5585         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5586         * config/arm/pe.h (TARGET_VERSION): Remove.
5587         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5588         * config/arm/semi.h (TARGET_VERSION): Remove.
5589         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5590         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5591         * config/arm/vxworks.h (TARGET_VERSION): Remove.
5592         * config/avr/avr.h (TARGET_VERSION): Remove.
5593         * config/bfin/bfin.h (TARGET_VERSION): Remove.
5594         * config/fr30/fr30.h (TARGET_VERSION): Remove.
5595         * config/frv/frv.h (TARGET_VERSION): Remove.
5596         * config/h8300/h8300.h (TARGET_VERSION): Remove.
5597         * config/i386/cygwin.h (TARGET_VERSION): Remove.
5598         * config/i386/darwin.h (TARGET_VERSION): Remove.
5599         * config/i386/darwin64.h (TARGET_VERSION): Remove.
5600         * config/i386/djgpp.h (TARGET_VERSION): Remove.
5601         * config/i386/freebsd.h (TARGET_VERSION): Remove.
5602         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5603         * config/i386/gnu.h (TARGET_VERSION): Remove.
5604         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5605         * config/i386/i386elf.h (TARGET_VERSION): Remove.
5606         * config/i386/linux.h (TARGET_VERSION): Remove.
5607         * config/i386/linux64.h (TARGET_VERSION): Remove.
5608         * config/i386/lynx.h (TARGET_VERSION): Remove.
5609         * config/i386/mingw32.h (TARGET_VERSION): Remove.
5610         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5611         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5612         * config/i386/netware.h (TARGET_VERSION): Remove.
5613         * config/i386/nto.h (TARGET_VERSION): Remove.
5614         * config/i386/openbsd.h (TARGET_VERSION): Remove.
5615         * config/i386/vxworks.h (TARGET_VERSION): Remove.
5616         * config/ia64/elf.h (TARGET_VERSION): Remove.
5617         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5618         * config/ia64/hpux.h (TARGET_VERSION): Remove.
5619         * config/ia64/linux.h (TARGET_VERSION): Remove.
5620         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5621         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5622         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5623         * config/lm32/lm32.h (TARGET_VERSION): Remove.
5624         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5625         * config/m32c/m32c.h (TARGET_VERSION): Remove.
5626         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5627         * config/m32r/m32r.h (TARGET_VERSION): Remove.
5628         * config/m68k/linux.h (TARGET_VERSION): Remove.
5629         * config/m68k/m68k.h (TARGET_VERSION): Remove.
5630         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5631         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5632         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5633         * config/mep/mep.h (TARGET_VERSION): Remove.
5634         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5635         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5636         * config/mips/iris6.h (MACHINE_TYPE): Remove.
5637         * config/mips/linux.h (TARGET_VERSION): Remove.
5638         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5639         * config/mips/vxworks.h (TARGET_VERSION): Remove.
5640         * config/mmix/mmix.h (TARGET_VERSION): Remove.
5641         * config/mn10300/linux.h (TARGET_VERSION): Remove.
5642         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5643         * config/pa/pa.h (TARGET_VERSION): Remove.
5644         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5645         * config/picochip/picochip.h (TARGET_VERSION): Remove.
5646         * config/rs6000/aix.h (TARGET_VERSION): Remove.
5647         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5648         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5649         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5650         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5651         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5652         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5653         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5654         * config/rs6000/linux.h (TARGET_VERSION): Remove.
5655         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5656         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5657         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5658         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5659         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5660         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5661         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5662         * config/s390/linux.h (TARGET_VERSION): Remove.
5663         * config/s390/s390.h (TARGET_VERSION): Remove.
5664         * config/s390/tpf.h (TARGET_VERSION): Remove.
5665         * config/score/score.h (TARGET_VERSION): Remove.
5666         * config/sh/linux.h (TARGET_VERSION): Remove.
5667         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5668         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5669         * config/sh/sh.h (TARGET_VERSION): Remove.
5670         * config/sh/sh64.h (TARGET_VERSION): Remove.
5671         * config/sh/superh.h (TARGET_VERSION): Remove.
5672         * config/sh/vxworks.h (TARGET_VERSION): Remove.
5673         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5674         * config/sparc/linux.h (TARGET_VERSION): Remove.
5675         * config/sparc/linux64.h (TARGET_VERSION): Remove.
5676         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5677         TARGET_NAME32, TARGET_NAME): Remove.
5678         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5679         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5680         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5681         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5682         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5683         * config/spu/spu.h (TARGET_VERSION): Remove.
5684         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5685         * config/v850/v850.h (TARGET_VERSION): Remove.
5686         * config/vax/linux.h (TARGET_VERSION): Remove.
5687         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5688         * config/xtensa/elf.h (TARGET_VERSION): Remove.
5689         * config/xtensa/linux.h (TARGET_VERSION): Remove.
5690
5691 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5692
5693         PR target/48142
5694         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5695         frame-related from frame-unrelated adjustments to the stack pointer.
5696
5697 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
5698
5699         * common.opt (fdebug-types-section): Move earlier.
5700         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5701
5702 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
5703
5704         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5705         var.
5706
5707 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
5708
5709         * tree.h (CASE_CHAIN): Define.
5710         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5711         (gimple_redirect_edge_and_branch): Likewise.
5712
5713 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5714
5715         PR middle-end/48367
5716         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5717         calculation.
5718
5719 2011-03-30  Jeff Law  <law@redhat.com>
5720
5721         * PR bootstrap/48371
5722         * reload1.c (reload): Fix botch in last change.
5723
5724         * reload.h (struct reload): Fix typo introduced in last change.
5725
5726 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5727
5728         * config/arm/arm.opt (mhard-float, msoft-float): Mark
5729         Undocumented.  Remove help text.
5730         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5731         -mhard-float.
5732
5733 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5734
5735         * doc/options.texi (NegativeAlias): Document.
5736         (Alias): Mention NegativeAlias.
5737         * opt-functions.awk: Handle NegativeAlias.
5738         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5739         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5740         * opts.h (CL_NEGATIVE_ALIAS): Define.
5741         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5742         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5743         OPT_mspe_.
5744         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5745         Alias entries.
5746         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5747         mno-spe and mno-isel instead of mspe=no and -misel=no.
5748
5749 2011-03-29  Mark Wielaard  <mjw@redhat.com>
5750
5751         * common.opt (fdebug-types-section): New flag.
5752         * doc/invoke.texi: Document new -fno-debug-types-section flag.
5753         * dwarf2out.c (use_debug_types): New define.
5754         (struct die_struct): Mark die_id with GTY desc use_debug_types.
5755         (print_die): Guard output of type unit signatures using
5756         use_debug_types.
5757         (build_abbrev_table): Replace assert of dwarf_version >= 4
5758         with assert on use_debug_types.
5759         (size_of_die): Likewise.
5760         (unmark_dies): Likewise.
5761         (value_format): Decide AT_ref_external form on use_debug_types.
5762         (output_die): Replace dwarf_version version check guard with
5763         use_debug_types where appropriate.
5764         (modified_type_die): Likewise.
5765         (gen_reference_type_die): Likewise.
5766         (dwarf2out_start_source_file): Likewise.
5767         (dwarf2out_end_source_file): Likewise.
5768         (prune_unused_types_walk_attribs): Likewise.
5769         (dwarf2out_finish): Likewise.
5770
5771 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5772
5773         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5774
5775 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
5776
5777         PR rtl-optimization/48332
5778         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
5779         mode of input operand N and modeN to its actual mode.
5780
5781 2011-03-30  Jeff Law  <law@redhat.com>
5782
5783         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
5784         define accessor macro.
5785         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
5786         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
5787         (reg_equiv_init): Likewise.
5788         (reg_equivs_size): New variable.
5789         (reg_equiv_init_size): Remove.
5790         (allocate_initial_values): Move prototype to here from....
5791         * integrate.h (allocate_initial_values): Remove prototype.
5792         * integrate.c: Include reload.h.
5793         (allocate_initial_values): Corresponding changes.
5794         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
5795         (fix_reg_equiv_init, no_equiv): Corresponding changes.
5796         (update_equiv_regs): Corresponding changes.
5797         (ira): Corresponding changes.
5798         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
5799         (push_secondary_reload): Corresponding changes.
5800         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
5801         (make_memloc, find_reloads_address): Corresponding changes.
5802         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
5803         (find_reloads_address_1): Corresponding changes.
5804         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
5805         (refers_to_regno_for_reload_p): Corresponding changes.
5806         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
5807         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
5808         * reload1.c: Include ggc.h.
5809         (grow_reg_equivs): New function.
5810         (replace_pseudos_in, reload): Corresponding changes.
5811         (calculate_needs_all_insns, alter_regs): Corresponding changes.
5812         (eliminate_regs_1, elimination_effects): Corresponding changes.
5813         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
5814         (delete_output_reload): Likewise.
5815         * caller-save.c (mark_referenced_regs): Corresponding changes.
5816         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
5817         * frv/predicates.md (frv_load_operand): Corresponding changes.
5818         * microblaze/microblaze.c (double_memory_operand): Corresponding
5819         changes.
5820         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
5821         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
5822         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
5823         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
5824         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
5825         changes.
5826         * pa/pa.c (emit_move_sequence): Corresponding changes.
5827         * vax/vax.c (nonindexed_address_p): Corresponding changes.
5828
5829 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
5830
5831         PR target/47551
5832         * config/arm/arm.c (coproc_secondary_reload_class): Handle
5833         structure modes.  Don't check neon_vector_mem_operand for
5834         vector or structure modes.
5835
5836 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
5837             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5838
5839         PR target/43590
5840         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
5841         operand 1 and reshuffle the operands to match.
5842         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
5843
5844 2011-03-30  Christian Schüler  <cschueler@gmx.de>
5845
5846         PR driver/48208
5847         * config/c.opt (F): Added 'Driver' to -F option.
5848
5849         PR driver/48260
5850         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
5851           handler function.
5852         * config/darwin.opt: Added '-arch' option.
5853
5854 2011-03-30  Nick Clifton  <nickc@redhat.com>
5855
5856         * config/rx/rx.md: Add peepholes and patterns to combine
5857         extending loads and simple arithmetic instructions.
5858         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
5859         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
5860         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
5861         modes to use pre-decrement and post-increment addressing.
5862         (rx_is_restricted_memory_address): Add range checking of REG+INT
5863         addresses.
5864         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
5865         (rx_memory_move_cost): Adjust cost of stores.
5866         (rx_adjust_insn_length): New function.
5867
5868 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
5869
5870         PR c/48305
5871         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5872         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
5873         matching arg00/arg01 types.
5874
5875 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
5876
5877         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
5878         last_location to UNKNOWN_LOCATION.
5879
5880 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
5881
5882         PR target/48349
5883         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
5884         FLOAT_SSE_REGS.
5885
5886 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5887             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5888
5889         PR bootstrap/48337
5890         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
5891         Init(PROCESSOR_V7).
5892         (sparc_cpu): Likewise.
5893         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
5894         PROCESSOR_V7.
5895
5896 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5897
5898         PR target/48336
5899         PR middle-end/48342
5900         PR rtl-optimization/48345
5901         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
5902         hard regs for given mode from profitable regs when doing secondary
5903         allocation.
5904
5905 2011-03-29  Jeff Law  <law@redhat.com>
5906
5907         PR bootstrap/48327
5908         * tree-ssa-threadupdate.c (struct redirection_data): Remove
5909         do_not_duplicate field.
5910         (lookup_redirection_data): Corresponding changes.
5911         (create_duplicates): Always create a template block.
5912         (redirect_edges): Remove code which reused the original block
5913         when it was going to become unreachable code.
5914         (thread_block): Don't set do_not_duplicate field.
5915
5916 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
5917
5918         * lto-opts.c (register_user_option_p, lto_register_user_option):
5919         Make type argument unsigned.
5920         * lto-streamer.h (lto_register_user_option): Make type argument
5921         unsigned.
5922         * opth-gen.awk: Make CL_* macros unsigned.
5923         * opts-common.c (find_opt): Make lang_mask argument unsigned.
5924         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
5925         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
5926         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
5927         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
5928         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
5929         (find_opt): Make lang_mask argument unsigned.
5930
5931 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5932
5933         PR rtl-optimization/48331
5934         PR rtl-optimization/48334
5935         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
5936         for any used algorithm.
5937
5938 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5939
5940         * ira-conflicts.c (build_object_conflicts): Add unused attribute
5941         to parent_max.
5942
5943 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
5944
5945         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
5946         (alpha_option_override): Don't set alpha_sr_alias_set.
5947         (emit_frame_store_1): Use gen_frame_mem rather than calling
5948         set_mem_alias_set.
5949         (alpha_expand_epilogue): Ditto.
5950
5951 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
5952
5953         PR tree-optimization/48290
5954         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
5955         vectorization, check that relevant phis in the basic block after
5956         the inner loop are really inner loop's exit phis.
5957
5958 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
5959
5960         PR debug/48190
5961         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
5962         (cached_dw_loc_list_def): New structure.
5963         (cached_dw_loc_list): New typedef.
5964         (cached_dw_loc_list_table): New variable.
5965         (cached_dw_loc_list_table_hash): New function.
5966         (cached_dw_loc_list_table_eq): Likewise.
5967         (add_location_or_const_value_attribute): Take a bool cache_p.
5968         Cache the list when the parameter is true.
5969         (gen_formal_parameter_die): Update caller.
5970         (gen_variable_die): Likewise.
5971         (dwarf2out_finish): Likewise.
5972         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
5973         while generating debug info for the decl.
5974         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
5975         (dwarf2out_init): Initialize cached_dw_loc_list_table.
5976         (resolve_addr): Cache the result of resolving a chain of
5977         location lists.
5978
5979 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
5980
5981         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
5982         conflict object hard regset nodes have intersecting hard reg sets.
5983
5984         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
5985         after regstat_init_n_sets_and_refs.
5986
5987         * ira.c: Add more comments at the top.
5988         (setup_stack_reg_pressure_class, setup_pressure_classes):
5989         Add comments how we compute the register pressure classes.
5990         (setup_allocno_and_important_classes): Add more comments.
5991         (setup_class_translate_array, reorder_important_classes)
5992         (setup_reg_class_relations): Add comments.
5993
5994         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
5995         start of the file.
5996
5997         * ira-color.c: Add 2011 to the Copyright line.
5998         (assign_hard_reg):  Add more comments.
5999         (improve_allocation): Ditto.
6000
6001         * ira-costs.c: Add 2011 to the Copyright line.
6002         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6003         comments.
6004         (setup_regno_cost_classes_by_mode): Ditto.
6005
6006         Initial patches from ira-improv branch:
6007
6008         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6009
6010         * ira-build.c (ira_create_object): Remove initialization of
6011         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6012         (ira_create_allocno): Remove initialization of
6013         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6014         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6015         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6016         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6017         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6018         Initialize ALLOCNO_ADD_DATA.
6019         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6020         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6021         ALLOCNO_REG.
6022         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6023         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6024
6025         * ira.c (ira_reallocate): Remove.
6026         (setup_pressure_classes): Call
6027         ira_init_register_move_cost_if_necessary.  Use
6028         ira_register_move_cost instead of ira_get_register_move_cost.
6029         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6030         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6031
6032         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6033         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6034         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6035         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6036         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6037         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6038         Fix formatting.
6039         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6040         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6041         (struct allocno_color_data): New.
6042         (allocno_color_data_t): New typedef.
6043         (allocno_color_data): New definition.
6044         (ALLOCNO_COLOR_DATA): New macro.
6045         (struct object_color_data): New.
6046         (object_color_data_t): New typedef.
6047         (object_color_data): New definition.
6048         (OBJECT_COLOR_DATA): New macro.
6049         (update_copy_costs, calculate_allocno_spill_cost): Call
6050         ira_init_register_move_cost_if_necessary.  Use
6051         ira_register_move_cost instead of ira_get_register_move_cost.
6052         (move_spill_restore, update_curr_costs): Ditto.
6053         (allocno_spill_priority): Make it inline.
6054         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6055         (struct coalesce_data, coalesce_data_t): New.
6056         (allocno_coalesce_data): New definition.
6057         (ALLOCNO_COALESCE_DATA): New macro.
6058         (merge_allocnos, coalesced_allocno_conflict_p): Use
6059         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6060         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6061         (coalesce_allocnos): Ditto.
6062         (setup_coalesced_allocno_costs_and_nums): Ditto.
6063         (collect_spilled_coalesced_allocnos): Ditto.
6064         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6065         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6066         (coalesce_spill_slots): Ditto.
6067         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6068         free allocno_coalesce_data.
6069
6070         * ira-conflicts.c: Fix formatting.
6071         (process_regs_for_copy): Call
6072         ira_init_register_move_cost_if_necessary.  Use
6073         ira_register_move_cost instead of ira_get_register_move_cost.
6074         (build_object_conflicts): Optimize.
6075
6076         * ira-costs.c (record_reg_classes): Optimize.  Call
6077         ira_init_register_move_cost_if_necessary.  Use
6078         ira_register_move_cost, ira_may_move_in_cost, and
6079         ira_may_move_out_cost instead of ira_get_register_move_cost and
6080         ira_get_may_move_cost.
6081         (record_address_regs): Ditto.
6082         (scan_one_insn): Optimize.
6083         (find_costs_and_classes): Optimize.
6084         (process_bb_node_for_hard_reg_moves): Call
6085         ira_init_register_move_cost_if_necessary.  Use
6086         ira_register_move_cost instead of ira_get_register_move_cost.
6087
6088         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6089         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6090         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6091         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6092         definitions.
6093         (ira_initiate_emit_data, ira_finish_emit_data)
6094         (create_new_allocno): New functions.
6095         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6096         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6097         Use ira_register_move_cost instead of ira_get_register_move_cost.
6098
6099         * ira-int.h: Fix some comments.
6100         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6101         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6102         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6103         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6104         add_data.
6105         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6106         bitfield after mode.  Make hard_regno a short int.  Make
6107         hard_regno short.  Remove first_coalesced_allocno and
6108         next_coalesced_allocno.  Move mem_optimized_dest_p,
6109         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6110         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6111         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6112         temp, colorable_p.  Add new member add_data.
6113         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6114         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6115         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6116         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6117         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6118         (ALLOCNO_ADD_DATA): New macro.
6119         (ira_emit_data_t): New typedef.
6120         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6121         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6122         from struct ira_allocno.
6123         (ALLOCNO_EMIT_DATA): New macro.
6124         (ira_allocno_emit_data, allocno_emit_reg): New.
6125         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6126         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6127         (OBJECT_ADD_DATA): New macro.
6128         (ira_reallocate): Remove.
6129         (ira_initiate_emit_data, ira_finish_emit_data): New.
6130         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6131         (ira_init_register_move_cost_if_necessary): New.
6132         (ira_object_conflict_iter_next): Merge into
6133         ira_object_conflict_iter_cond.
6134         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6135
6136         * ira-live.c (process_single_reg_class_operands): Call
6137         ira_init_register_move_cost_if_necessary.  Use
6138         ira_register_move_cost instead of ira_get_register_move_cost.
6139
6140         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6141
6142         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6143
6144         * ira-costs.c: Fix formatting.
6145         (cost_classes, cost_classes_num): Remove.
6146         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6147         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6148         (cost_classes_del, cost_classes_htab): New.
6149         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6150         (initiate_regno_cost_classes, setup_cost_classes): New.
6151         (setup_regno_cost_classes_by_aclass): New.
6152         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6153         (record_reg_classes): Use regno_cost_classes instead of
6154         cost_classes.  Move checking opposite operand up.
6155         (record_address_regs): Use regno_cost_classes
6156         instead of cost_classes.
6157         (scan_one_insn): Ditto.  Use always general register.
6158         (print_allocno_costs): Use regno_cost_classes instead of
6159         cost_classes.
6160         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6161         (find_costs_and_classes): Set up cost classes for each registers.
6162         Use also their mode for this.  Use regno_cost_classes instead of
6163         cost_classes.
6164         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6165         cost_classes.
6166         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6167         (ira_costs, ira_set_pseudo_classes): Call
6168         initiate_regno_cost_classes and finish_regno_cost_classes.
6169
6170         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6171
6172         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6173
6174         * target.def (ira_cover_classes): Remove.
6175
6176         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6177
6178         * doc/tm.texi.in: Ditto.
6179
6180         * ira-conflicts.c: Remove mentioning cover classes from the file.
6181         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6182         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
6183
6184         * targhooks.c (default_ira_cover_classes): Remove.
6185
6186         * targhooks.h (default_ira_cover_classes): Ditto.
6187
6188         * haifa-sched.c: Remove mentioning cover classes from the file.
6189         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6190         ira_pressure_classes and ira_pressure_classes_num instead of
6191         ira_reg_class_cover_size and ira_reg_class_cover.  Use
6192         sched_regno_pressure_class instead of sched_regno_cover_class.
6193         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6194         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6195
6196         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
6197         classes from the file.
6198         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6199         (struct object_hard_regs, struct object_hard_regs_node): New.
6200         (struct ira_object): New members profitable_hard_regs,
6201         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6202         (struct ira_allocno): Rename cover_class to aclass.  Rename
6203         cover_class_cost and updated_cover_class_cost to class_cost and
6204         updated_class_cost.  Remove splay_removed_p and
6205         left_conflict_size.  Add new members colorable_p.
6206         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6207         (ALLOCNO_COLORABLE_P): New macro.
6208         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6209         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6210         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6211         (OBJECT_...): Rename parameter C to O.
6212         (OBJECT_PROFITABLE_HARD_REGS): New macro.
6213         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6214         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6215         (struct target_ira_int): New members x_ira_max_memory_move_cost,
6216         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6217         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6218         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6219         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
6220         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
6221         x_ira_reg_class_subunion.
6222         (ira_max_memory_move_cost, ira_max_register_move_cost)
6223         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6224         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6225         (ira_important_class_nums, ira_reg_class_superunion): New macros.
6226         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6227         (ira_reg_class_union): Rename to ira_reg_class_subunion.
6228         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6229         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6230         (ira_tune_allocno_costs_and_cover_classes): Rename to
6231         ira_tune_allocno_costs.
6232         (ira_debug_hard_regs_forest): New.
6233         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6234         (ira_object_conflict_iter_next): Fix comments.
6235         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6236         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6237         cover_class to aclass.
6238         (ira_allocate_and_accumulate_costs): Ditto.
6239         (ira_allocate_and_set_or_copy_costs): Ditto.
6240
6241         * opts.c (decode_options): Remove ira_cover_class check.
6242
6243         * ira-color.c: Remove mentioning cover classes from the file.  Use
6244         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6245         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6246         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6247         (splay-tree.h): Remove include.
6248         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6249         before copy_freq_compare_func.
6250         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6251         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6252         New definitions.
6253         (hard_regs_roots, hard_regs_node_vec): Ditto.
6254         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6255         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6256         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6257         (create_new_object_hard_regs_node): Ditto.
6258         (add_new_object_hard_regs_node_to_forest): Ditto.
6259         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6260         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6261         Ditto.
6262         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6263         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6264         (remove_unused_object_hard_regs_nodes): Ditto.
6265         (enumerate_object_hard_regs_nodes): Ditto.
6266         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6267         (object_hard_regs_subnode_t): Ditto.
6268         (struct object_hard_regs_subnode): Ditto.
6269         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6270         (setup_object_hard_regs_subnode_index): Ditto.
6271         (get_object_hard_regs_subnodes_num): Ditto.
6272         (form_object_hard_regs_nodes_forest): Ditto.
6273         (finish_object_hard_regs_nodes_tree): Ditto.
6274         (finish_object_hard_regs_nodes_forest): Ditto.
6275         (allocnos_have_intersected_live_ranges_p): Rename to
6276         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6277         (pseudos_have_intersected_live_ranges_p): Rename to
6278         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6279         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6280         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6281         (update_copy_costs): Remove assert.  Skip cost update if the hard
6282         reg does not belong the class.
6283         (assign_hard_reg): Process only profitable hard regs.
6284         (uncolorable_allocnos_num): Make it scalar.
6285         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6286         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6287         and ira_reg_class_max_nregs.
6288         (bucket_allocno_compare_func): Check frequency first.
6289         (sort_bucket): Add compare function as a parameter.
6290         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6291         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6292         (push_allocno_to_stack): Rewrite for checking new allocno
6293         colorability.
6294         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
6295         (push_only_colorable): Pass new parameter to sort_bucket.
6296         (push_allocno_to_spill): Remove.
6297         (allocno_spill_priority_compare): Make it inline and rewrite.
6298         (splay_tree_allocate, splay_tree_free): Remove.
6299         (allocno_spill_sort_compare): New function.
6300         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
6301         build and use splay tree.  Choose first allocno in uncolorable
6302         allocno bucket to spill.  Remove setting spill cost.
6303         (all_conflicting_hard_regs): Remove.
6304         (setup_allocno_available_regs_num): Check only profitable hard
6305         regs.  Print info about hard regs nodes.
6306         (setup_allocno_left_conflicts_size): Remove.
6307         (put_allocno_into_bucket): Don't call
6308         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
6309         (improve_allocation): New.
6310         (color_allocnos): Call setup_profitable_hard_regs,
6311         form_object_hard_regs_nodes_forest, improve_allocation,
6312         finish_object_hard_regs_nodes_forest.  Setup spill cost.
6313         (print_loop_title): Use pressure classes.
6314         (color_allocnso): Ditto.
6315         (do_coloring): Remove allocation and freeing splay_tree_node_pool
6316         and allocnos_for_spilling.
6317         (ira_sort_regnos_for_alter_reg): Don't setup members
6318         {first,next}_coalesced_allocno.
6319         (color): Remove allocating and freeing removed_splay_allocno_vec.
6320         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6321         prohibited_class_mode_regs.
6322
6323         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
6324         formatting.
6325         (update_allocno_pressure_excess_length): Use pressure classes.
6326         (inc_register_pressure, dec_register_pressure): Check for pressure
6327         class.
6328         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6329         pressure class.  Use ira_reg_class_nregs instead of
6330         ira_reg_class_max_nregs.
6331         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6332         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6333         (single_reg_class): Use ira_reg_class_nregs instead of
6334         ira_reg_class_max_nregs.
6335         (process_bb_node_lives): Use pressure classes.
6336
6337         * ira-emit.c: Remove mentioning cover classes from the file.  Use
6338         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6339         (change_loop): Use pressure classes.
6340         (modify_move_list): Call ira_set_allocno_class instead of
6341         ira_set_allocno_cover_class.
6342
6343         * ira-build.c: Remove mentioning cover classes from the file.  Use
6344         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6345         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
6346         ALLOCNO_UPDATED_CLASS_COST instead of
6347         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6348         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6349         (ira_create_allocno): Remove initialization of
6350         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
6351         ALLOCNO_COLORABLE_P.
6352         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6353         Update conflict regs for the objects.
6354         (create_cap_allocno): Remove assert.  Don't propagate
6355         ALLOCNO_AVAILABLE_REGS_NUM.
6356         (ira_free_allocno_costs): New function.
6357         (finish_allocno): Change a part of code into call of
6358         ira_free_allocno_costs.
6359         (low_pressure_loop_node_p): Use pressure classes.
6360         (object_range_compare_func): Don't compare classes.
6361         (setup_min_max_conflict_allocno_ids): Ditto.
6362
6363         * loop-invariant.c: Remove mentioning cover classes from the file.
6364         Use ira_pressure_classes and ira_pressure_classes_num instead of
6365         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
6366         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6367         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6368         Use reg_allocno_class instead of reg_cover_class.
6369         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6370         STACK_REG_COVER_CLASS.
6371         (get_regno_cover_class): Rename to get_regno_pressure_class.
6372         (move_loop_invariants): Initialize and finalize regstat.
6373
6374         * ira.c: Remove mentioning cover classes from the file.  Add
6375         comments about coloring without cover classes.  Use ALLOCNO_CLASS
6376         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6377         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6378         setup_class_subset_and_memory_move_costs.
6379         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6380         (setup_cover_and_important_classes): Rename to
6381         setup_allocno_and_important_classes.
6382         (setup_class_translate_array): New.
6383         (setup_class_translate): Call it for allocno and pressure classes.
6384         (cover_class_order): Rename to allocno_class_order.
6385         (comp_reg_classes_func): Use ira_allocno_class_translate instead
6386         of ira_class_translate.
6387         (reorder_important_classes): Set up ira_important_class_nums.
6388         (setup_reg_class_relations): Set up ira_reg_class_superunion.
6389         (print_class_cover): Rename to print_classes.  Add parameter.
6390         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6391         Print pressure classes too.
6392         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
6393         setup_reg_subclasses.
6394         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6395         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6396         (setup_prohibited_class_mode_regs): Use
6397         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6398         (clarify_prohibited_class_mode_regs): New function.
6399         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6400         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6401         (ira_init_once): Initialize them.
6402         (free_register_move_costs): Process them.
6403         (ira_init): Move calls of find_reg_classes and
6404         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6405         Call clarify_prohibited_class_mode_regs.
6406         (ira_no_alloc_reg): Remove.
6407         (too_high_register_pressure_p): Use pressure classes.
6408
6409         * sched-deps.c: Remove mentioning cover classes from the file.
6410         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6411         ira_pressure_classes and ira_pressure_classes_num instead of
6412         ira_reg_class_cover_size and ira_reg_class_cover.
6413         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6414         sched_regno_pressure_class instead of sched_regno_cover_class.
6415         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
6416         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6417
6418         * ira.h: Add 2010 to Copyright.
6419         (ira_no_alloc_reg): Remove external.
6420         (struct target_ira): Rename x_ira_hard_regno_cover_class,
6421         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6422         x_ira_class_translate to x_ira_hard_regno_allocno_class,
6423         x_ira_allocno_classes_num, x_ira_allocno_classes, and
6424         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
6425         x_ira_pressure_classes, x_ira_pressure_class_translate, and
6426         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
6427         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
6428         x_ira_no_alloc_regs.
6429         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6430         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6431         ira_allocno_classes_num and ira_allocno_classes.
6432         (ira_class_translate): Rename to ira_allocno_class_translate.
6433         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6434         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6435         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6436         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6437         (ira_no_alloc_regs): New.
6438
6439         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
6440         classes from the file.  Use ALLOCNO_CLASS instead of
6441         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
6442         ALLOCNO_COVER_CLASS_COST.
6443         (regno_cover_class): Rename to regno_aclass.
6444         (record_reg_classes): Use ira_reg_class_subunion instead of
6445         ira_reg_class_union.
6446         (record_address_regs): Check overflow.
6447         (scan_one_insn): Ditto.
6448         (print_allocno_costs): Print total mem cost fore regional allocation.
6449         (print_pseudo_costs): Use REG_N_REFS.
6450         (find_costs_and_classes): Use classes intersected with them on the
6451         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
6452         ira_reg_class_union.  Use ira_allocno_class_translate and
6453         regno_aclass instead of ira_class_translate and regno_cover_class.
6454         Modify code for finding regno_aclass.  Setup preferred classes for
6455         the next pass.
6456         (setup_allocno_cover_class_and_costs): Rename to
6457         setup_allocno_class_and_costs.  Use regno_aclass instead of
6458         regno_cover_class.  Use ira_set_allocno_class instead of
6459         ira_set_allocno_cover_class.
6460         (init_costs, finish_costs): Use regno_aclass instead of
6461         regno_cover_class.
6462         (ira_costs): Use setup_allocno_class_and_costs instead of
6463         setup_allocno_cover_class_and_costs.
6464         (ira_tune_allocno_costs_and_cover_classes): Rename to
6465         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
6466         by processing objects.  Use ira_reg_class_max_nregs instead of
6467         ira_reg_class_nregs.
6468
6469         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6470
6471         * sched-int.h: Remove mentioning cover classes from the file.
6472         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6473
6474         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
6475         classes from the file.
6476         (struct reg_pref): Rename coverclass into allocnoclass.
6477         (reg_cover_class): Rename to reg_allocno_class.
6478
6479         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6480
6481         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6482
6483         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6484
6485         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6486
6487         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6488
6489         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6490
6491         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6492
6493         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6494
6495         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6496
6497         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6498
6499         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6500         (i386_ira_cover_classes): Ditto.
6501
6502         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6503
6504         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6505
6506         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6507
6508         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6509
6510         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6511
6512         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6513
6514         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6515         (mips_ira_cover_classes): Ditto.
6516
6517         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6518
6519         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6520
6521         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6522
6523         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6524
6525         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6526
6527         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6528         (IRA_COVER_CLASSES_VSX): Ditto.
6529
6530         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6531         (rs6000_ira_cover_classes): Ditto.
6532
6533         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6534
6535         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6536
6537         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6538
6539         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6540
6541         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6542
6543         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6544
6545         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6546
6547         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6548
6549         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6550
6551         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6552
6553 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
6554
6555         PR debug/48253
6556         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6557         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6558         dw_fde_unlikely_section_end_label, cold_in_std_section,
6559         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6560         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6561         fields.
6562         (output_fde): Use dw_fde_second_{begin,end} if second is
6563         true, otherwise dw_fde_{begin,end}.
6564         (output_call_frame_info): Test dw_fde_second_begin != NULL
6565         instead of dw_fde_switched_sections.
6566         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6567         fields, initialize new fields.  Initialize in_std_section
6568         unconditionally from the first partition.
6569         (dwarf2out_end_epilogue): Don't override dw_fde_end when
6570         dw_fde_second_begin is non-NULL.
6571         (dwarf2out_switch_text_section): Stop initializing removed
6572         dw_fde_struct fields, initialize new fields, initialize
6573         also dw_fde_end here.  Set dw_fde_switch_cfi even when
6574         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
6575         (struct var_loc_list_def): Add last_before_switch field.
6576         (arange_table, arange_table_allocated, arange_table_in_use,
6577         ARANGE_TABLE_INCREMENT, add_arange): Removed.
6578         (size_of_aranges): Count !in_std_section and !second_in_std_section
6579         hunks in fdes, instead of looking at arange_table_in_use.
6580         (output_aranges): Add aranges_length argument, don't call
6581         size_of_aranges here.  Instead of using aranges_table*
6582         emit ranges for fdes when !in_std_section resp.
6583         !second_in_std_section.
6584         (dw_loc_list): Break ranges crossing section switch.
6585         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
6586         use dw_fde_second_end instead of dw_fde_end as end of last range.
6587         (gen_subprogram_die): Don't call add_arange.  Use
6588         dw_fde_{begin,end} for first partition and if switched
6589         section dw_fde_second_{begin,end} for the second.
6590         (var_location_switch_text_section_1,
6591         var_location_switch_text_section): New functions.
6592         (dwarf2out_begin_function): Initialize cold_text_section even
6593         when function_section () isn't text_section.
6594         (prune_unused_types): Don't walk arange_table.
6595         (dwarf2out_finish): Don't needlessly test
6596         flag_reorder_blocks_and_partition when testing cold_text_section_used.
6597         If info_section_emitted, call size_of_aranges and if it indicates
6598         non-empty .debug_aranges, call output_aranges with the computed
6599         size.  Stop using removed dw_fde_struct fields, use
6600         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6601         for second.
6602
6603         PR debug/48203
6604         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6605         create ENTRY_VALUE if incoming or address of incoming's MEM
6606         is a hard REG.
6607         * dwarf2out.c (mem_loc_descriptor): Don't emit
6608         DW_OP_GNU_entry_value of DW_OP_fbreg.
6609         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6610         on ENTRY_VALUE is able to find the canonical parameter VALUE.
6611         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6612         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6613         ENTRY_VALUE_EXPs.
6614         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6615         is a REG_P or MEM_P with REG_P address, compute hash directly
6616         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6617         (preserve_only_constants): Don't clear VALUES forwaring
6618         ENTRY_VALUE to some other VALUE.
6619
6620 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
6621
6622         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6623         instead of GEN_INT.
6624
6625 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
6626
6627         * cfgexpand.c (expand_gimple_cond): Always set the source location and
6628         block before expanding the statement.
6629         (expand_gimple_stmt_1): Likewise.  Set them here...
6630         (expand_gimple_stmt): ...and not here.  Tidy.
6631         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6632         unknown.
6633
6634 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
6635
6636         * Makefile.in: New rule for cprop.o.
6637         * gcse.c: Move constant/copy propagation to cprop.c.
6638         (compute_local_properties): Only handle expression tables.
6639         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6640         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6641         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6642         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6643         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6644         compute_cprop_data, find_used_regs, try_replace_reg,
6645         find_avail_set, cprop_jump, constprop_register, cprop_insn,
6646         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6647         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6648         find_bypass_set, reg_killed_on_edge, bypass_block,
6649         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6650         execute_rtl_cprop, pass_rtl_cprop): Move to...
6651         * cprop.c: ...here.  New file, constant/copy propagation for RTL
6652         moved from gcse.c to here with minor cleanups in duplicated code.
6653
6654 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
6655
6656         * config/i386/i386.c (flag_opts): Fix a typo in
6657         -mavx256-split-unaligned-store.
6658
6659 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
6660
6661         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6662         LIBCALL_VALUE): Remove macros.
6663         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6664         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6665         (h8300_function_value, h8300_libcall_value,
6666         h8300_function_value_regno_p): New functions.
6667
6668 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
6669
6670         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6671
6672 2011-03-28  Jeff Law  <law@redhat.com>
6673
6674         * tree-ssa-threadupdate.c (redirect_edges): Call
6675         create_edge_and_update_destination_phis as needed.
6676         (create_edge_and_update_destination_phis): Accept new BB argument.
6677         All callers updated.
6678         (thread_block): Do not update the profile when threading around
6679         intermediate blocks.
6680         (thread_single_edge): Likewise.
6681         (determine_bb_domination_status): If BB is not a successor of the
6682         loop header, return NONDOMINATING.
6683         (register_jump_thread): Note when we register a jump thread around
6684         an intermediate block.
6685         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6686         (thread_across_edge): Use it.
6687
6688 2011-03-28  Tristan Gingold  <gingold@adacore.com>
6689
6690         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6691         when for_return is 2.
6692
6693 2011-03-28  Jeff Law  <law@redhat.com>
6694
6695         * var-tracking.c (canonicalize_values_mark): Delete unused
6696         lhs assignment.
6697         (canonicalize_values_star, set_variable_part): Likewise.
6698         (clobber_variable_part, delete_variable_part): Likewise.
6699
6700 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
6701
6702         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6703
6704 2011-03-28  Martin Jambor  <mjambor@suse.cz>
6705
6706         * tree-inline.c (expand_call_inline): Do not check that destination
6707         node is analyzed.
6708         (optimize_inline_calls): Assert that destination node is analyzed.
6709         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6710         not call tree_lowering_passes.
6711         * cgraph.h (cgraph_analyze_function): Declare.
6712         * cgraphunit.c (cgraph_analyze_function): Make public.
6713
6714 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
6715
6716         * config/sparc/sparc-opts.h: New.
6717         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6718         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6719         (sparc_option_override): Store processor_type enumeration rather
6720         than string in cpu_default.  Remove name and enumeration from
6721         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
6722         without using sparc_select.  Use target_flags_explicit instead of
6723         fpu_option_set.
6724         * config/sparc/sparc.h (enum processor_type): Move to
6725         sparc-opts.h.
6726         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6727         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6728         HeaderInclude entry.
6729         (mcpu=, mtune=): Use Var and Enum.
6730         (sparc_processor_type): New Enum and EnumValue entries.
6731
6732 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6733             Iain Sandoe  <iains@gcc.gnu.org>
6734
6735         PR target/48245
6736         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6737
6738 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
6739
6740         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6741         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6742         Insert new statements at it in lieu of STMT.
6743         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6744         * tree-vect-stmts.c (vectorizable_store): Likewise.
6745         (vectorizable_load): Likewise.
6746
6747 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
6748
6749         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6750         (divtf3): Ditto.
6751         (multf3): Ditto.
6752         (subtf3): Ditto.
6753
6754 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6755
6756         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6757         unaligned 256bit load/store.
6758         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6759         (*avx_movdqu<avxmodesuffix>): Likewise.
6760
6761 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6762
6763         PR target/48288
6764         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6765         * config/pa/pa.md (iordi3): Use new predicate in expander.
6766         (iorsi3): Likewise.
6767
6768 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
6769
6770         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6771         FUNCTION_VALUE_REGNO_P): Remove macros.
6772         * config/mips/mips-protos.h (mips_function_value): Remove.
6773         * config/mips/mips.c (mips_function_value): Rename to...
6774         (mips_function_value_1): ... this. Make static.  Handle receiving
6775         the function type in 'fn_decl_or_type' argument.
6776         (mips_function_value, mips_libcall_value,
6777         mips_function_value_regno_p): New function.
6778         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6779         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6780
6781 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6782
6783         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
6784         and -mavx256-split-unaligned-store.
6785         (ix86_option_override_internal): Split 32-byte AVX unaligned
6786         load/store by default.
6787         (ix86_avx256_split_vector_move_misalign): New.
6788         (ix86_expand_vector_move_misalign): Use it.
6789
6790         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
6791         -mavx256-split-unaligned-store.
6792
6793         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
6794         256bit load/store.  Generate unaligned store on misaligned memory
6795         operand.
6796         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
6797         256bit load/store.
6798         (*avx_movdqu<avxmodesuffix>): Likewise.
6799
6800         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
6801         -mavx256-split-unaligned-store.
6802
6803 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
6804
6805         PR target/38598
6806         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
6807         Update commentary.
6808
6809 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
6810
6811         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
6812         opno arguments with an expand_operand.  Use create_input_operand.
6813         (mips_prepare_builtin_target): Delete.
6814         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
6815         functions.
6816         (mips_expand_builtin_direct): Use create_output_operand and
6817         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
6818         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
6819         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
6820
6821 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
6822
6823         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
6824         function.
6825         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6826
6827 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
6828
6829         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
6830         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
6831         basic blocks and call commit_edge_insertions directly.
6832         (fixup_abnormal_edges): Move from here to...
6833         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
6834         on the edges and return whether some have actually been inserted.
6835         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
6836         compensation code.
6837
6838 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
6839
6840         PR rtl-optimization/48144
6841         * sel-sched-ir.c (merge_history_vect): Factor out from ...
6842         (merge_expr_data): ... here.
6843         (av_set_intersect): Rename to av_set_code_motion_filter.
6844         Update all callers.  Call merge_history_vect when an expression
6845         is found in both sets.
6846         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
6847
6848 2011-03-26  Alan Modra  <amodra@gmail.com>
6849
6850         * config/rs6000/predicates.md (word_offset_memref_op): Handle
6851         cmodel medium addresses.
6852         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
6853         64-bit gpr loads and stores.
6854         (rs6000_secondary_reload_ppc64): New function.
6855         * config/rs6000/rs6000-protos.h: Declare it.
6856         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
6857
6858 2011-03-26  Alan Modra  <amodra@gmail.com>
6859
6860         PR target/47487
6861         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
6862         GNU Go in traceback table.
6863
6864 2011-03-25  Richard Henderson  <rth@redhat.com>
6865
6866         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
6867         if there are exactly 6 operands.
6868         (set_storage_via_setmem): Similarly.
6869
6870 2011-03-25  Kai Tietz  <ktietz@redhat.com>
6871
6872         * collect2.c (write_c_file_stat): Handle backslash
6873         as right-hand directory separator.
6874         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
6875         checking just for slash.
6876         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
6877         instead of checking for trailing slash.
6878         * gcc.c (record_temp_file): Use filename_cmp instead
6879         of strcmp.
6880         (do_spec_1): Likewise.
6881         (replace_outfile_spec_function): Likewise.
6882         (is_directory): Use filename_ncmp instead of strncmp.
6883         (print_multilib_info): Likewise.
6884         * gcov.c (find_source): Use filename_cmp instead
6885         instead of strcmp.
6886         (make_gcov_file_name): Fix order of slash/backslash
6887         checks.
6888         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
6889         (add_standard_paths): Likewise.
6890         * mips-tfile.c (saber_stop): Handle backslash.
6891         * prefix.c (update_path): Use filename_ncmp instead of
6892         strncmp.
6893         * profile.c (output_location): Use filename_cmp instead
6894         of strcmp.
6895         * read-md.c (handle_toplevel_file): Handle backslash.
6896         * tlink.c (frob_extension):  Likewise.
6897         * tree-cfg.c (same_line_p): Use filename_cmp instead of
6898         strcmp.
6899         * tree-dump.c (dequeue_and_dump): Handle backslash.
6900         * tree.c (get_file_function_name): Likewise.
6901         * gengtype.c (read_input_list): Likewise.
6902         (get_file_realbasename): Likewise.
6903         (get_output_file_with_visibility): Use filename_cmp
6904         instead of strcmp.
6905
6906 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
6907
6908         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
6909         case to VFPv1.
6910
6911 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
6912
6913         * fold-const.c (expr_location_or): New function.
6914         (fold_truth_not_expr): Call it.
6915
6916 2011-03-25  Jeff Law  <law@redhat.com>
6917
6918         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
6919         va_end.
6920         * c-family/c-common.c (def_fn_type): Likewise.
6921         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
6922         * emit-rtl.c (gen_rtvec): Likewise.
6923         * lto/lto-lang.c (def_fn_type): Likewise.
6924
6925 2011-03-25  Richard Guenther  <rguenther@suse.de>
6926
6927         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
6928         also generate copies.
6929         (fini_copy_prop): Handle constant values properly.
6930
6931 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
6932
6933         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
6934         mode size instead of bitsize with DWARF2_ADDR_SIZE.
6935         (hash_loc_operands, compare_loc_operands): Handle
6936         DW_OP_GNU_entry_value.
6937
6938 2011-03-25  Kai Tietz  <ktietz@redhat.com>
6939
6940         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
6941         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
6942         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
6943         comment and use macro TARGET_64BIT_MS_ABI instead.
6944         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
6945         and change default behavior for 32-bit MS_ABI.
6946         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
6947         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
6948         32-bit, too.
6949         (ix86_cfun_abi): Likewise.
6950         (ix86_maybe_switch_abi): Adjust comment.
6951         (init_cumulative_args): Check for bit-ness in MS_ABI case.
6952         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
6953         instead of checking for SYSV_ABI.
6954         (ix86_nsaved_sseregs): Likewise.
6955         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
6956         to 16 bytes.
6957         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
6958         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
6959         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
6960         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
6961         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
6962
6963 2011-03-25  Richard Guenther  <rguenther@suse.de>
6964
6965         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
6966         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6967         (verify_gimple): Remove.
6968         * tree-cfg.c (verify_gimple_call): Merge verification
6969         from verify_stmts.
6970         (verify_gimple_phi): Merge verification from verify_stmts.
6971         (verify_gimple_label): New function.
6972         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
6973         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6974         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
6975         (verify_stmts): Rename to verify_gimple_in_cfg.
6976         (verify_gimple_in_cfg): New function.
6977         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
6978         * tree-ssa.c (verify_ssa): Likewise.
6979         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
6980
6981 2011-03-25  Richard Guenther  <rguenther@suse.de>
6982
6983         * passes.c (init_optimization_passes): Add FRE pass after
6984         early SRA.
6985
6986 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
6987             Andrew Stubbs  <ams@codesourcery.com>
6988
6989         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
6990         for Cortex-A8.
6991         (arm_movdi_vfp_cortexa8): New pattern.
6992         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
6993         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
6994         instructions when tuning for Cortex-A8.  Set attribute "arch".
6995         * config/arm/arm.md: Move include arm-tune.md up a bit.
6996         (define_attr "arch"): Add "onlya8" and "nota8" values.
6997         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
6998
6999 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7000
7001         PR bootstrap/48282
7002         Revert:
7003         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7004
7005         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7006         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7007         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7008         * passes.c (init_optimization_passes): Move
7009         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7010
7011 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7012
7013         * c-typeck.c (comptypes_internal): Replace target
7014         hook call of comp_type_attributes by version in tree.c file.
7015         * gimple.c (gimple_types_compatible_p_1): Likewise.
7016         * tree-ssa.c (useless_type_conversion_p): Likewise.
7017         * tree.c (build_type_attribute_qual_variant): Likewise.
7018         (attribute_value_equal): New static helper function.
7019         (comp_type_attributes): New function.
7020         (merge_attributes): Use attribute_value_equal for comparison.
7021         (attribute_list_contained): Likewise.
7022         * tree.h (comp_type_attributes): New prototype.
7023
7024 2011-03-25  Richard Guenther  <rguenther@suse.de>
7025
7026         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7027         of complex types at -O0.
7028         (verify_gimple_assign_binary): Likewise.
7029         (verify_gimple_assign_ternary): Likewise.
7030
7031 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7032
7033         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7034         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7035
7036 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7037
7038         PR debug/48041
7039         * dwarf2out.c (output_abbrev_section): Only write table when
7040         abbrev_die_table_in_use > 1.
7041
7042 2011-02-24  Richard Henderson  <rth@redhat.com>
7043
7044         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7045         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7046         (alpha_expand_unaligned_load_words): Use extql.
7047         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7048         (emit_insxl): Handle all modes for consistency.
7049
7050 2011-02-24  Richard Henderson  <rth@redhat.com>
7051
7052         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7053         (alpha_expand_unaligned_load): Likewise.
7054         (alpha_expand_unaligned_store): Likewise.
7055         (alpha_expand_unaligned_load_words): Likewise.
7056         (alpha_expand_unaligned_store_words): Likewise.
7057         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7058         (alpha_split_lock_test_and_set_12): Likewise.
7059         (print_operand, alpha_fold_builtin_extxx): Likewise.
7060         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7061         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7062         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7063         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7064         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7065         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7066         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7067         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7068         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7069         (extwl, extll, extql): Similarly.
7070         (inswh, inslh, insqh): Similarly.
7071         (mskbl, mskwl, mskll, mskql): Similarly.
7072         (mskwh, msklh, mskqh): Similarly.
7073
7074 2011-02-24  Richard Henderson  <rth@redhat.com>
7075
7076         * config/alpha/alpha.md (attribute isa): Add er, ner.
7077         (attribute enabled): Handle them.
7078         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7079
7080 2011-02-24  Richard Henderson  <rth@redhat.com>
7081
7082         * config/alpha/alpha.md (attribute isa): Add vms.
7083         (attribute enabled): Handle it.
7084         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7085         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7086         (*movtf): Rename from *movtf_internal for consistency.
7087         (*movsi): Merge with *movsi_nt_vms.
7088         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7089         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7090         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7091         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7092
7093 2011-02-24  Richard Henderson  <rth@redhat.com>
7094
7095         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7096         (extendqisi2, extendhisi2): Likewise.
7097         (extendqidi2): Simplify BWX/non-BWX expansions.
7098         (extendhidi2): Similarly.
7099
7100 2011-02-24  Richard Henderson  <rth@redhat.com>
7101
7102         * config/alpha/alpha.md (attribute isa): New.
7103         (attribute enabled): New.
7104         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7105         (zero_extendqisi2, zero_extendqidi2): Similarly.
7106         (zero_extendhisi2, zero_extendhidi2): Similarly.
7107         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7108
7109 2011-02-24  Richard Henderson  <rth@redhat.com>
7110
7111         * config/alpha/predicates.md (input_operand): Revert last change;
7112         update comment to mention 32-bit VMS rather than Windows.
7113
7114 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7115
7116         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7117         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7118         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7119         * passes.c (init_optimization_passes): Move
7120         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7121
7122 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7123
7124         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7125
7126 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7127
7128         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7129         correctly.
7130
7131 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7132
7133         PR debug/48204
7134         * simplify-rtx.c (simplify_const_unary_operation): Call
7135         real_convert when changing mode class with FLOAT_EXTEND.
7136
7137 2011-03-24  Nick Clifton  <nickc@redhat.com>
7138
7139         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7140         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7141         * config/rx/rx.c (rx_option_override): Set align_jumps,
7142         align_loops and align_labels if not set by the user.
7143         (rx_align_for_label): New function.
7144         (rx_max_skip_for_label): New function.
7145         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7146         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7147         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7148         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7149         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7150
7151 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7152
7153         PR rtl-optimization/48263
7154         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7155         and original commutative_p handling.  Use maybe_gen_insn.
7156
7157 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7158
7159         * reload.c (find_reloads_subreg_address): Add address_reloaded
7160         parameter and return true there if the full address has been
7161         reloaded.
7162         (find_reloads_toplev): Pass address_reloaded flag.
7163         (find_reloads_address_1): Don't use address_reloaded parameter.
7164
7165 2011-03-24  Jeff Law  <law@redhat.com>
7166
7167         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7168         unused variable "ann".
7169         (remove_unused_locals): Likewise.
7170
7171         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7172         statement.
7173
7174         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7175         after it is freed.
7176
7177 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7178
7179         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7180         for invalid symbolic addresses.
7181         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7182         larl operands.
7183
7184 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7185
7186         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7187         the argument in calls to fold_truth_not_expr.
7188
7189 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7190
7191         * tree.c (record_node_allocation_statistics): New function.
7192         (make_node_stat, copy_node_stat, build_string): Call it.
7193         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7194         (build1_stat, build_omp_clause): Likewise.
7195
7196 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7197
7198         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7199         last commit.
7200
7201 2011-03-24  Richard Guenther  <rguenther@suse.de>
7202
7203         PR tree-optimization/48271
7204         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7205         blocks that still exist.
7206
7207 2011-03-24  Richard Guenther  <rguenther@suse.de>
7208
7209         PR tree-optimization/48270
7210         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7211         not free datarefs before ddrs.
7212
7213 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7214
7215         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7216         from the address built for a reference with variable offset.
7217
7218 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7219
7220         PR target/48237
7221         * config/i386/i386.md (*movdf_internal_rex64): Do not split
7222         alternatives that can be handled with movq or movabsq insn.
7223         (*movdf_internal): Disable for !TARGET_64BIT.
7224         (*movdf_internal_nointeger): Ditto.
7225         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7226
7227 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7228
7229         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7230         (FUNCTION_ARG_ADVANCE): Likewise.
7231         * tm.texi.in: Change references to them to hook references.
7232         * tm.texi: Regenerate.
7233         * targhooks.c (default_function_arg): Eliminate check for target macro.
7234         (default_function_incoming_arg): Likewise.
7235         (default_function_arg_advance): Likewise.
7236         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7237         (function_arg_advance): Likewise.
7238         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7239
7240 2011-03-24  Richard Guenther  <rguenther@suse.de>
7241
7242         PR middle-end/48269
7243         * tree-object-size.c (addr_object_size): Do not double-account
7244         for MEM_REF offsets.
7245
7246 2011-03-24  Diego Novillo  <dnovillo@google.com>
7247
7248         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7249         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7250         (lto_input_data_block): Move from lto-opts.c.  Make extern.
7251         Update all users.
7252         (lto_input_string): Rename from input_string.  Make extern.
7253         Update all users.
7254         * lto-streamer-out.c (lto_output_string_with_length): Rename from
7255         output_string_with_length.
7256         Output 0 to indicate a non-NULL string.  Update all callers to
7257         not emit 0.
7258         (lto_output_string): Rename from output_string.  Make extern.
7259         Update all users.
7260         (lto_output_decl_state_streams): Make extern.
7261         (lto_output_decl_state_refs): Make extern.
7262         * lto-streamer.h (lto_input_string): Declare.
7263         (lto_input_data_block): Declare.
7264         (lto_output_string): Declare.
7265         (lto_output_string_with_length): Declare.
7266         (lto_output_decl_state_streams): Declare.
7267         (lto_output_decl_state_refs): Declare.
7268
7269 2011-03-24  Richard Guenther  <rguenther@suse.de>
7270
7271         PR tree-optimization/46562
7272         * tree.c (build_invariant_address): New function.
7273         * tree.h (build_invariant_address): Declare.
7274         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7275         a renamed function moved ...
7276         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7277         Take valueization callback parameter.
7278         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7279         * gimple-fold.h: New file.
7280         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7281         (ccp_fold, fold_const_aggregate_ref,
7282         fold_ctor_reference, fold_nonarray_ctor_reference,
7283         fold_array_ctor_reference, fold_string_cst_ctor_reference,
7284         get_base_constructor): Move ...
7285         * gimple-fold.c: ... here.
7286         (gimple_fold_stmt_to_constant_1): New function
7287         split out from ccp_fold.  Take a valueization callback parameter.
7288         Valueize all operands.
7289         (gimple_fold_stmt_to_constant): New wrapper function.
7290         (fold_const_aggregate_ref_1): New function split out from
7291         fold_const_aggregate_ref.  Take a valueization callback parameter.
7292         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7293         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7294         invariant POINTER_PLUS_EXPRs to invariant form.
7295         (vn_valueize): New function.
7296         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7297         * tree-vrp.c (vrp_valueize): New function.
7298         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7299         to fold statements to constants.
7300         * tree-ssa-pre.c (eliminate): Properly guard propagation of
7301         function declarations.
7302         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7303         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7304
7305 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7306
7307         * config/h8300/predicates.md (jump_address_operand): Fix register
7308         mode check.
7309
7310 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
7311
7312         * doc/invoke.texi (max-stores-to-sink): Document.
7313         * params.h (MAX_STORES_TO_SINK): Define.
7314         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7315         if either vectorization or if-conversion is disabled.
7316         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7317         tree-vect-data-refs.c vect_equal_offsets.
7318         (dr_equal_offsets_p): New function.
7319         (find_data_references_in_bb): Remove static.
7320         * tree-data-ref.h (find_data_references_in_bb): Declare.
7321         (dr_equal_offsets_p): Likewise.
7322         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7323         (vect_drs_dependent_in_basic_block): Update calls to
7324         vect_equal_offsets.
7325         (vect_check_interleaving): Likewise.
7326         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7327         (cond_if_else_store_replacement): Rename to...
7328         (cond_if_else_store_replacement_1): ... this.  Change arguments and
7329         documentation.
7330         (cond_if_else_store_replacement): New function.
7331         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7332         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7333
7334 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
7335
7336         PR target/46934
7337         * config/arm/arm.md (casesi): Use the gen_int_mode() function
7338         to subtract lower bound instead of GEN_INT().
7339
7340 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
7341
7342         PR other/48179
7343         PR other/48221
7344         PR other/48234
7345         * doc/extend.texi (Alignment): Move section to match order in TOC.
7346         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7347         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7348
7349 2011-03-23  Jeff Law  <law@redhat.com>
7350
7351         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7352         before removing the edge.
7353
7354         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7355         it may have been freed by redirect_branch_edge or
7356         redirect_edge_succ_nodup.
7357
7358 2011-03-23  Richard Guenther  <rguenther@suse.de>
7359
7360         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7361         (check_va_list_escapes): Likewise.
7362         (check_all_va_list_escapes): Likewise.
7363
7364 2011-03-23  Richard Guenther  <rguenther@suse.de>
7365
7366         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7367         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7368         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7369         (alias.o): Likewise.
7370         (ipa-type-escape.o): Remove.
7371         (ipa-struct-reorg.o): Likewise.
7372         (GTFILES): Remove ipa-struct-reorg.c.
7373         * alias.c: Do not include ipa-type-escape.h.
7374         * tree-ssa-alias.c: Likewise.
7375         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7376         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7377         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7378         and ipa-type-escape passes.
7379         * tree-pass.h (pass_ipa_type_escape): Remove.
7380         (pass_ipa_struct_reorg): Likewise.
7381         * ipa-struct-reorg.h: Remove.
7382         * ipa-struct-reorg.c: Likewise.
7383         * ipa-type-escape.h: Likewise.
7384         * ipa-type-escape.c: Likewise.
7385         * doc/invoke.texi (-fipa-struct-reorg): Remove.
7386         (--param struct-reorg-cold-struct-ratio): Likewise.
7387         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7388         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7389         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7390
7391 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7392
7393         * config/s390/2084.md: Enable all insn reservations also for z9_ec
7394         cpu attribute value.
7395         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7396         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7397         * config/s390/s390.c (processor_flags_table): New constant array.
7398         (s390_handle_arch_option): Remove.
7399         (s390_handle_option): Remove s390_handle_arch_option invocations
7400         and OPT_mwarn_framesize_ handling.
7401         (s390_option_override): Remove s390_handle_arch_option invocation.
7402         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7403         warnings.
7404         * config/s390/s390.md (cpu attribute): Add z9_ec value.
7405         * config/s390/s390.opt (s390_tune, s390_arch)
7406         (march=): Replace s390_arch_option enum and values with
7407         processor_type.  Set variable name to s390_arch.  Set
7408         initialization value.
7409         (mtune=): Replace s390_arch_option with processor_type.  Set
7410         variable name to s390_tune.  Set initialization value.
7411
7412 2011-03-23  Julian Brown  <julian@codesourcery.com>
7413
7414         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7415         accesses which are not naturally aligned.
7416
7417 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7418
7419         PR target/47553
7420         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7421
7422 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7423
7424         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7425         parameter from "int" to "enum insn_code".
7426         (expand_operand_type): New enum.
7427         (expand_operand): New structure.
7428         (create_expand_operand): New function.
7429         (create_fixed_operand, create_output_operand): Likewise
7430         (create_input_operand, create_convert_operand_to): Likewise.
7431         (create_convert_operand_from, create_address_operand): Likewise.
7432         (create_integer_operand): Likewise.
7433         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7434         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7435         (expand_insn, expand_jump_insn): Likewise.
7436         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7437         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7438         (expand_movstr, expand_builtin___clear_cache): Likewise.
7439         (expand_builtin_lock_release): Likewise.
7440         * explow.c (allocate_dynamic_stack_space): Likewise.
7441         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
7442         and use the default handling in that case.
7443         * expmed.c (check_predicate_volatile_ok): Delete.
7444         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7445         (emit_cstore): Likewise.
7446         * expr.c (emit_block_move_via_movmem): Likewise.
7447         (set_storage_via_setmem, expand_assignment): Likewise.
7448         (emit_storent_insn, try_casesi): Likewise.
7449         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
7450         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7451         (expand_vec_shift_expr, expand_binop_directly): Likewise.
7452         (expand_twoval_unop, expand_twoval_binop): Likewise.
7453         (expand_unop_direct, emit_indirect_jump): Likewise.
7454         (emit_conditional_move, vector_compare_rtx): Likewise.
7455         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7456         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7457         (expand_sync_lock_test_and_set): Likewise.
7458         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
7459         (emit_unop_insn): Likewise.
7460         (expand_copysign_absneg): Change icode to an insn_code.
7461         (create_convert_operand_from_type): New function.
7462         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7463         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7464         (expand_insn, expand_jump_insn): Likewise.
7465         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7466         than const_int_operand for operand 2.
7467
7468 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7469
7470         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7471         if possible.
7472
7473 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7474
7475         * emit-rtl.c (emit_pattern_before_noloc): New function.
7476         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7477         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7478         (emit_pattern_after_noloc): New function.
7479         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7480         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7481
7482 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7483
7484         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7485         (__ffsDI2): Likewise.
7486
7487 2011-03-22  Richard Henderson  <rth@redhat.com>
7488
7489         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7490         of !TARGET_ABI_OPEN_VMS.
7491         (alpha_trampoline_init, alpha_start_function): Likewise.
7492         (alpha_expand_epilogue, alpha_file_start): Likewise.
7493         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7494         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7495         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7496         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7497         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7498
7499 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7500
7501         * config/s390/s390-opts.h: New.
7502         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7503         s390_arch_flags, s390_warn_framesize, s390_stack_size,
7504         s390_stack_guard): Remove.
7505         (s390_handle_arch_option): Return void.  Take enum
7506         s390_arch_option value instead of string and searching array.
7507         (s390_handle_option): Don't assert that global structures are in
7508         use.  Access variables via opts pointer.  Use error_at.  Don't use
7509         sscanf for -mstack-guard= or -mstack-size=.  Update call to
7510         s390_handle_arch_option.
7511         (s390_option_override): Update call to s390_handle_arch_option.
7512         (s390_emit_prologue): Use %d format for s390_stack_size in
7513         diagnostic.  Use %wd for HOST_WIDE_INT.
7514         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7515         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7516         * config/s390/s390.opt (config/s390/s390-opts.h): New
7517         HeaderInclude entry.
7518         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7519         s390_arch_flags, s390_warn_framesize): New Variable entries.
7520         (s390_arch_option): New Enum and EnumValue entries.
7521         (march=): Use Enum instead of Var.
7522         (mstack-guard=, mstack-size=): Use UInteger and Var.
7523         (mtune=): Use Enum.
7524
7525 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7526
7527         * config/score/score.c (score_handle_option): Don't assert that
7528         global structures are in use.  Access target_flags via opts
7529         pointer.  Use value of -march= option to determine target_flags
7530         settings.
7531         * config/score/score.opt (march=): Use Enum.
7532         (score_arch): New Enum and EnumValue entries.
7533
7534 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7535
7536         * config/mep/mep.c (option_mtiny_specified): Remove.
7537         (mep_option_override): Move register handling for -mivc2 from
7538         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
7539         instead of option_mtiny_specified.
7540         (mep_handle_option): Access target_flags via opts pointer.  Don't
7541         assert that global structures are in use.  Defer part of -mivc2
7542         handling and move it to mep_option_override.
7543         * config/mep/mep.opt (IVC2): New Mask entry.
7544         (mivc2): Use Var and Defer instead of Mask.
7545
7546 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7547
7548         * config/v850/v850-opts.h: New.
7549         * config/v850/v850.c (small_memory): Replace with
7550         small_memory_physical_max array.  Make that array static const.
7551         (v850_handle_memory_option): Take integer value of argument.  Take
7552         gcc_options pointer, option text and location.  Return void.
7553         Update for changes to small memory structures.
7554         (v850_handle_option): Access target_flags via opts pointer.  Don't
7555         assert that global structures are in use.  Update calls to
7556         v850_handle_memory_option.
7557         (v850_encode_data_area): Update references to small memory settings.
7558         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7559         (enum small_memory_type): Move to v850-opts.h.
7560         * config/v850/v850.opt (config/v850/v850-opts.h): New
7561         HeaderInclude entry.
7562         (small_memory_max): New Variable entry.
7563         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
7564         (mtda, mzda): Likewise.
7565
7566 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7567
7568         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7569         pointer.  Don't assert that global structures are in use.
7570
7571 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7572
7573         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7574         via opts pointer.  Don't assert that global structures are in use.
7575
7576 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7577
7578         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7579         (munix=93): Use Var.
7580         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7581         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7582         * config/pa/pa-opts.h: New.
7583         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7584         (pa_handle_option): Don't assert that global structures are in
7585         use.  Access target_flags via opts pointer.  Don't handle
7586         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7587         OPT_munix_98 here.
7588         (pa_option_override): Handle deferred OPT_mfixed_range_.
7589
7590 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7591
7592         * config/mn10300/mn10300-opts.h: New.
7593         * config/mn10300/mn10300.c (mn10300_processor,
7594         mn10300_tune_string): Remove.
7595         (mn10300_handle_option): Don't assert that global structures are
7596         in use.  Access mn10300_processor via opts pointer.  Don't handle
7597         OPT_mtune_ here.
7598         * config/mn10300/mn10300.h (enum processor_type): Move to
7599         mn10300-opts.h.
7600         (mn10300_processor): Remove.
7601         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7602         HeaderInclude entry.
7603         (mn10300_processor): New Variable entry.
7604         (mtune=): Use Var.
7605
7606 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7607
7608         * config/microblaze/microblaze.c: Don't include opts.h.
7609         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7610         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7611         (mno-clearbss): Use Var and Warn.
7612
7613 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7614
7615         * config/m32r/m32r-opts.h: New.
7616         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7617         (m32r_handle_option): Don't assert that global structures are in
7618         use.  Access target_flags and m32r_cache_flush_func via opts
7619         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
7620         OPT_mno_flush_trap here.
7621         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7622         include of m32r-opts.h.
7623         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7624         HeaderInclude entry.
7625         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7626         (mmodel=): Use Enum and Var.
7627         (m32r_model): New Enum and EnumValue entries.
7628         (mno-flush-trap): Use Var.
7629         (msdata=): Use Enum and Var.
7630         (m32r_sdata): New Enum and EnumValue entries.
7631
7632 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7633
7634         * config/m32c/m32c.c: Don't include opts.h.
7635         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7636         m32c_handle_option): Remove.
7637         (m32c_option_override): Check global_options_set.x_target_memregs
7638         instead of target_memregs_set.
7639         * config/m32c/m32c.h (target_memregs): Remove.
7640         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7641         variable.
7642
7643 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7644
7645         * config/iq2000/iq2000-opts.h: New.
7646         * config/iq2000/iq2000.c: Don't include opts.h.
7647         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7648         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7649         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7650         HeaderInclude entry.
7651         (iq2000_tune): New Variable entry.
7652         (march=): Add comment.  Use Enum.
7653         (iq2000_arch): New Enum and EnumValue entries.
7654         (mcpu=): Use Enum and Var.
7655         (iq2000_tune): New Enum and EnumValue entries.
7656
7657 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7658
7659         * config/ia64/ia64-opts.h: New.
7660         * config/ia64/ia64.c (ia64_tune): Remove.
7661         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7662         here.  Use error_at.
7663         (ia64_option_override): Handle deferred OPT_mfixed_range_.
7664         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7665         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7666         HeaderInclude entry.
7667         (ia64_tune): New Variable entry.
7668         (mfixed-range=): Use Defer and Var.
7669         (mtune=): Use Enum and Var.
7670         (ia64_tune): New Enum and EnumValue entries.
7671
7672 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7673
7674         * config/frv/frv-opts.h: New.
7675         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7676         frv-opts.h.
7677         (frv_cpu_type): Remove.
7678         * config/frv/frv.c: Don't include opts.h.
7679         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7680         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7681         (frv_cpu_type): New Variable entry.
7682         (frv_cpu): New Enum and EnumValue entries.
7683
7684 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7685
7686         * config/cris/cris.c (cris_handle_option): Access target_flags via
7687         opts pointer.  Don't assert that global structures are in use.
7688         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7689         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7690
7691 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7692
7693         * config/bfin/bfin-opts.h: New.
7694         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7695         bfin_si_revision, bfin_workarounds): Remove.
7696         (bfin_cpus): Make static const.
7697         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7698         not bfin_lib_id_given.
7699         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
7700         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7701         pointer. Use error_at.  Don't assert that global structures are in use.
7702         * config/bfin/bfin.h: Include bfin-opts.h.
7703         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7704         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7705         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7706         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7707         entries.
7708
7709 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7710
7711         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7712         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7713         or -msoft-float here.
7714         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7715         -msoft-float and -mhard-float.
7716         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7717         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7718         msoft-float.
7719         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7720         -msoft-float.
7721         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7722         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7723         not mhard-float.
7724         (LIBGCC_SPEC): Don't handle -msoft-float.
7725         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7726         -mhard-float.
7727         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7728         msoft-float.
7729         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7730         -mfloat-abi=*, not -msoft-float and -mhard-float.
7731         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7732         -msoft-float.
7733         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7734         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7735         mhard-float and msoft-float.
7736         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7737         mfloat-abi=soft in comments, not mhard-float and msoft-float.
7738         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7739         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7740         mhard-float.
7741         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7742         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7743         msoft-float.
7744         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7745         not mhard-float.
7746         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7747         not msoft-float.
7748
7749 2011-03-22  Richard Henderson  <rth@redhat.com>
7750
7751         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7752         TARGET_ABI_WINDOWS_NT.
7753         (alpha_output_function_end_prologue): Likewise.
7754         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7755         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7756         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7757         (trap, *movsi_nt_vms): Likewise.
7758         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7759         (*tablejump_osf_nt_internal): Remove.
7760         * config/alpha/predicates.md (input_operand): Only test Pmode.
7761
7762 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7763
7764         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7765         via opts pointer.  Use error_at.  Don't assert that global
7766         structures are in use.
7767
7768 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7769
7770         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7771         (ix86_handle_option): Access ix86_isa_flags and
7772         ix86_isa_flags_explicit via opts pointer.  Don't assert that
7773         global structures are in use.
7774         (ix86_function_specific_save, ix86_function_specific_restore):
7775         Update ix86_isa_flags_explicit field name.
7776         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
7777         (ix86_isa_flags_explicit): Rename TargetSave entry to
7778         x_ix86_isa_flags_explicit.
7779
7780 2011-03-22  Richard Henderson  <rth@redhat.com>
7781
7782         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
7783         (alpha_option_override, direct_return): Likewise.
7784         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
7785         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
7786         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
7787         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7788         (alpha_expand_epilogue, alpha_end_function): Likewise.
7789         (alpha_init_libfuncs): Likewise.
7790         (struct machine_function): Remove unicosmk members.
7791         (print_operand) ['t']: Remove.
7792         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
7793         unicosmk_output_module_name, unicosmk_output_common,
7794         current_section_align, unicosmk_output_text_section_asm_op,
7795         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
7796         unicosmk_section_type_flags, unicosmk_unique_section,
7797         unicosmk_asm_named_section, unicosmk_insert_attributes,
7798         unicosmk_output_align, unicosmk_defer_case_vector,
7799         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
7800         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
7801         unicosmk_output_ssib, unicosmk_add_call_info_word,
7802         unicosmk_extern_head, unicosmk_output_default_externs,
7803         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
7804         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
7805         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
7806         * config/alpha/alpha-protos.h: Update.
7807         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
7808         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
7809         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
7810         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
7811         (*mulsi_se, mulvsi3): Likewise.
7812         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
7813         (*divmodsi_internal, call, call_value, realign): Likewise.
7814         (moddi3, umoddi3): Likewise; remove duplicate expander.
7815         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
7816         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
7817         (*movdi_nofix): Remove r/U alternative.
7818         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
7819         * config/alpha/constraints.md ("U"): Remove.
7820         * config/alpha/predicates.md (call_operand"): Don't test
7821         TARGET_ABI_UNICOSMK.
7822
7823 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7824
7825         * target.def (handle_option): Take gcc_options and
7826         cl_decoded_option pointers and location_t.
7827         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
7828         * doc/tm.texi: Regenerate.
7829         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
7830         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
7831         * lto-opts.c (lto_reissue_options): Generate option structure for
7832         targetm.handle_option call.
7833         * opts.c (target_handle_option): Update call to
7834         targetm.handle_option.  Remove assertions about values now passed
7835         down to hook.
7836         * targhooks.c (default_target_handle_option): New.
7837         * targhooks.h (default_target_handle_option): Declare.
7838         * config/alpha/alpha.c: Include opts.h.
7839         (alpha_handle_option): Update to new hook interface.
7840         * config/arm/arm.c: Include opts.h.
7841         (arm_handle_option): Update to new hook interface.
7842         * config/arm/t-arm (arm.o): Update dependencies.
7843         * config/bfin/bfin.c: Include opts.h.
7844         (bfin_handle_option): Update to new hook interface.
7845         * config/cris/cris.c: Include opts.h.
7846         (cris_handle_option): Update to new hook interface.
7847         * config/frv/frv.c: Include opts.h.
7848         (frv_handle_option): Update to new hook interface.
7849         * config/i386/i386.c: Include opts.h.
7850         (ix86_handle_option): Update to new hook interface.
7851         (ix86_valid_target_attribute_inner_p): Generate option structure
7852         for call to ix86_handle_option.
7853         * config/i386/t-i386 (i386.o): Update dependencies.
7854         * config/ia64/ia64.c: Include opts.h.
7855         (ia64_handle_option): Update to new hook interface.
7856         * config/ia64/t-ia64 (ia64.o): Update dependencies.
7857         * config/iq2000/iq2000.c: Include opts.h.
7858         (iq2000_handle_option): Update to new hook interface.
7859         * config/m32c/m32c.c: Include opts.h.
7860         (m32c_handle_option): Update to new hook interface.
7861         * config/m32r/m32r.c: Include opts.h.
7862         (m32r_handle_option): Update to new hook interface.
7863         * config/m68k/m68k.c: Include opts.h.
7864         (m68k_handle_option): Update to new hook interface.
7865         * config/mep/mep.c: Include opts.h.
7866         (mep_handle_option): Update to new hook interface.
7867         * config/microblaze/microblaze.c: Include opts.h.
7868         (microblaze_handle_option): Update to new hook interface.
7869         * config/mips/mips.c: Include opts.h.
7870         (mips_handle_option): Update to new hook interface.
7871         * config/mn10300/mn10300.c: Include opts.h.
7872         (mn10300_handle_option): Update to new hook interface.
7873         * config/pa/pa.c: Include opts.h.
7874         (pa_handle_option): Update to new hook interface.
7875         * config/pdp11/pdp11.c: Include opts.h.
7876         (pdp11_handle_option): Update to new hook interface.
7877         * config/rs6000/rs6000.c: Include opts.h.
7878         (rs6000_handle_option): Update to new hook interface.
7879         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
7880         * config/rx/rx.c: Include opts.h.
7881         (rx_handle_option): Update to new hook interface.
7882         * config/s390/s390.c: Include opts.h.
7883         (s390_handle_option): Update to new hook interface.
7884         * config/score/score.c: Include opts.h.
7885         (score_handle_option): Update to new hook interface.
7886         * config/sh/sh.c: Include opts.h.
7887         (sh_handle_option): Update to new hook interface.
7888         * config/sparc/sparc.c: Include opts.h.
7889         (sparc_handle_option): Update to new hook interface.
7890         * config/v850/v850.c: Include opts.h.
7891         (v850_handle_option): Update to new hook interface.
7892
7893 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7894
7895         * gcc.c (driver_unknown_option_callback): Only permit and save
7896         unknown -Wno- options.
7897         (driver_wrong_lang_callback): Save options directly instead of via
7898         driver_unknown_option_callback.
7899
7900 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
7901
7902         * combine.c (simplify_set): Try harder to find the best CC mode when
7903         simplifying a nested COMPARE on the RHS.
7904
7905 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7906
7907         * config/alpha/gnu.h: Remove.
7908         * config/arc: Remove directory.
7909         * config/arm/netbsd.h: Remove.
7910         * config/arm/t-pe: Remove.
7911         * config/crx: Remove directory.
7912         * config/i386/netbsd.h: Remove.
7913         * config/m68hc11: Remove directory.
7914         * config/m68k/uclinux-oldabi.h: Remove.
7915         * config/mcore/mcore-pe.h: Remove.
7916         * config/mcore/t-mcore-pe: Remove.
7917         * config/netbsd-aout.h: Remove.
7918         * config/rs6000/gnu.h: Remove.
7919         * config/sh/sh-symbian.h: Remove.
7920         * config/sh/symbian-base.c: Remove.
7921         * config/sh/symbian-c.c: Remove.
7922         * config/sh/symbian-cxx.c: Remove.
7923         * config/sh/symbian-post.h: Remove.
7924         * config/sh/symbian-pre.h: Remove.
7925         * config/sh/t-symbian: Remove.
7926         * config/svr3.h: Remove.
7927         * config/vax/netbsd.h: Remove.
7928         * config.build: Don't handle i[34567]86-*-pe.
7929         * config.gcc: Remove handling of deprecations for most deprecated
7930         targets.
7931         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
7932         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
7933         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
7934         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
7935         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
7936         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
7937         Remove cases.
7938         * config.host: Don't handle i[34567]86-*-pe.
7939         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
7940         (ASM_SPEC32): Don't handle -mcall-gnu.
7941         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
7942         -mcall-gnu.
7943         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
7944         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
7945         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7946         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
7947         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
7948         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
7949         conditional on SYMBIAN.
7950         * configure.ac: Don't handle powerpc*-*-gnu*.
7951         * configure: Regenerate.
7952         * doc/extend.texi (interrupt attribute): Don't mention CRX.
7953         * doc/install-old.texi (m6811, m6812): Don't mention.
7954         * doc/install.texi (arc-*-elf*): Don't document multilib option.
7955         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
7956         (m68k-uclinuxoldabi): Don't mention.
7957         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
7958         Remove.
7959         (-mcall-gnu): Remove.
7960         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
7961         families): Remove constraint documentation.
7962
7963 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
7964
7965         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
7966         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
7967         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7968
7969 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7970
7971         PR target/48226
7972         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
7973         vector when peeking at the next token for vector, don't expand the
7974         keywords.
7975
7976 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
7977
7978         * config/avr/avr-protos.h (expand_epilogue): Change prototype
7979         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
7980         * config/avr/avr.c (init_cumulative_args)
7981         (avr_function_arg_advance): Use it.
7982         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
7983         sibcall epilogues.
7984         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
7985         (avr_function_ok_for_sibcall): ...this new function.
7986         (avr_lookup_function_attribute1): New static Function.
7987         (avr_naked_function_p, interrupt_function_p)
7988         (signal_function_p, avr_OS_task_function_p)
7989         (avr_OS_main_function_p): Use it.
7990         * config/avr/avr.md ("sibcall", "sibcall_value")
7991         ("sibcall_epilogue"): New expander.
7992         ("*call_insn", "*call_value_insn"): New insn.
7993         ("call_insn", "call_value_insn"): Remove
7994         ("call", "call_value", "epilogue"): Change expander to handle
7995         sibling calls.
7996
7997 2011-03-21  Nick Clifton  <nickc@redhat.com>
7998
7999         * doc/invoke.texi (Overall Options): Move closing brace to end of
8000         options list.
8001         (Optimization Options): Add missing @gol.
8002         (Directory Options): Likewise.
8003         (i386 and x86-64 Options): Likewise.
8004         (RS6000 and PowerPC Options): Likewise.
8005         (i386 and x86-64 Windows Options): Likewise.
8006         (V850 Options): Add text missing from descriptions.
8007
8008 2011-03-22  Richard Henderson  <rth@redhat.com>
8009
8010         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8011         (avr_incoming_return_addr_rtx): New.
8012         (emit_push_byte): New.
8013         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8014         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8015         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8016         (emit_pop_byte): New.
8017         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8018         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8019         (INCOMING_RETURN_ADDR_RTX): New.
8020         (INCOMING_FRAME_SP_OFFSET): New.
8021         (ARG_POINTER_CFA_OFFSET): New.
8022         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8023         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8024         (pophi): Remove.
8025
8026         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8027
8028 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8029
8030         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8031         (FUNCTION_ARG_ADVANCE): Likewise.
8032         * tm.texi.in: Change references to them to hook references.
8033         * tm.texi: Regenerate.
8034         * targhooks.c (default_function_arg): Eliminate check for target
8035         macro.
8036         (default_function_incoming_arg): Likewise.
8037         (default_function_arg_advance): Likewise.
8038         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8039         (function_arg_advance): Likewise.
8040         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8041
8042 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8043
8044         * tree.c (build_call_1): New function.
8045         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8046
8047 2011-03-22  Richard Guenther  <rguenther@suse.de>
8048
8049         PR tree-optimization/48228
8050         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8051         for single-arg PHIs.
8052
8053 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8054
8055         PR rtl-optimization/48143
8056         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8057         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8058         sse2_cvtps2pd): Likewise.
8059
8060 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8061
8062         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8063
8064 2011-03-22  Richard Guenther  <rguenther@suse.de>
8065
8066         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8067         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8068         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8069         and REALIGN_LOAD_EXPR.
8070         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8071         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8072         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8073         DOT_PROD_EXPR case ...
8074         (expand_expr_real_2): ... here.
8075         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8076         and REALIGN_LOAD_EXPR.
8077         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8078         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8079         (vect_create_epilog_for_reduction): Likewise.
8080         (vectorizable_reduction): Likewise.
8081         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8082         * tree-vect-stmts.c (vectorizable_load): Likewise.
8083
8084 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8085
8086         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8087
8088 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8089
8090         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8091         handling for PLTOFF/GOTOFF.
8092
8093 2011-03-22  Nick Clifton  <nickc@redhat.com>
8094
8095         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8096         trailing backslash from the end of the macro definition.
8097
8098 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8099
8100         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8101         and PLT unspecs.
8102
8103 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8104
8105         * expr.h (prepare_operand): Move to...
8106         * optabs.h (prepare_operand): ...here and change the insn code
8107         parameter from "int" to "enum insn_code".
8108         (insn_operand_matches): Declare.
8109         * expr.c (init_expr_target): Use insn_operand_matches.
8110         (compress_float_constant): Likewise.
8111         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8112         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8113         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8114         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8115         Likewise.
8116         (gen_cond_trap): Likewise.
8117         (prepare_operand): Likewise.  Change icode to an insn_code.
8118         (insn_operand_matches): New function.
8119         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8120         * reload1.c (gen_reload): Likewise.
8121         * targhooks.c (default_secondary_reload): Likewise.
8122
8123 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8124
8125         * config/alpha/alpha.md (unspec): New define_c_enum.
8126         (unspecv): Ditto.
8127
8128 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8129
8130         PR debug/48214
8131         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8132         between a call and its CALL_ARG_LOCATION note.
8133
8134 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8135
8136         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8137
8138 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8139
8140         PR c/42544
8141         PR c/48197
8142         * c-common.c (shorten_compare): If primopN is first sign-extended
8143         to opN and then zero-extended to result type, set primopN to opN.
8144
8145 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8146
8147         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8148         for barrier handlers.
8149
8150 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8151
8152         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8153         UNSPEC constants to be in the unspec enumeration, and redefine
8154         all UNSPECV constants to be in the unspecv enumeration, so that
8155         dumps print which unspec/unspec_volatile this is.
8156         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8157         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8158         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8159         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8160         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8161
8162         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8163         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8164         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8165         * config/rs6000/sync.md (isync, lwsync): Ditto.
8166
8167 2011-03-21  Richard Guenther  <rguenther@suse.de>
8168
8169         * params.def (lto-min-partition): Fix typo.
8170
8171 2011-03-21  Richard Guenther  <rguenther@suse.de>
8172
8173         PR c/47939
8174         * c-decl.c (grokdeclarator): Drop to the main variant only
8175         for array types.  Drop flag_gen_aux_info check.
8176
8177 2011-03-21  Richard Guenther  <rguenther@suse.de>
8178
8179         PR translation/47911
8180         * params.def (lto-partitions): Fix typo.
8181         (lto-min-partition): Fix wording.
8182
8183 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
8184
8185         * config/rs6000/t-freebsd: Remove duplication from file.
8186
8187 2011-03-21  Richard Guenther  <rguenther@suse.de>
8188
8189         PR middle-end/47661
8190         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8191
8192 2011-03-21  Richard Guenther  <rguenther@suse.de>
8193
8194         PR lto/48210
8195         * params.def (lto-partitions): Require at least 1 partition.
8196
8197 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8198
8199         * gthr-solaris.h: Remove.
8200         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8201         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8202         (LIB_SPEC): Likewise.
8203         * config/sol2.opt (threads): Remove.
8204         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8205         (sparc*-*-solaris2*): Likewise.
8206         * configure.ac (enable_threads): Enable solaris support.
8207         * configure: Regenerate.
8208         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8209         * doc/install.texi (Configuration, --enable-threads=lib): Remove
8210         solaris.
8211
8212 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8213
8214         * config.gcc: Obsolete *-*-solaris2.8*.
8215         * doc/install.texi (Specific, *-*-solaris2*): Document it.
8216
8217 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8218
8219         PR bootstrap/48135
8220         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8221         reference.  Solaris 8 perl works.
8222
8223 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8224
8225         PR bootstrap/48135
8226         * doc/install.texi (Prerequisites): Move jar etc. up.
8227         Explain support library version requirements.
8228
8229 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8230
8231         PR bootstrap/48135
8232         * doc/install.texi (Prerequisites): Move Perl to build
8233         requirements.  Always necessary on Solaris 2 with Sun ld.
8234
8235 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8236
8237         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8238         binutils 2.21.
8239         (Specific, i?86-*-solaris2.[89]): Likewise.
8240         (Specific, i?86-*-solaris2.10): Likewise.
8241         (Specific, mips-sgi-irix6): Likewise.
8242         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8243         Update for binutils 2.21.
8244
8245 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8246
8247         * configure.ac (gcc_cv_lto_plugin): Fix typo.
8248         Allow -fuse-linker-plugin for non-default plugin linker.
8249         * configure: Regenerate.
8250
8251 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8252
8253         PR bootstrap/48167
8254         * gengtype.c (files_rules): Added rule for cp/parser.h.
8255
8256 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8257
8258         PR target/48213
8259         * config/s390/s390.c (s390_delegitimize_address): Don't call
8260         lowpart_subreg if orig_x has BLKmode.
8261
8262 2011-03-21  Kai Tietz  <ktietz@redhat.com>
8263
8264         PR target/12171
8265         * doc/plugins.texi: Adjust documentation for plugin register_callback.
8266         * tree.h (attribute_spec): Add new member affects_type_identity.
8267         * attribs.c (empty_attribute_table): Adjust attribute_spec
8268         initializers.
8269         * config/alpha/alpha.c: Likewise.
8270         * config/arc/arc.c: Likewise.
8271         * config/arm/arm.c: Likewise.
8272         * config/avr/avr.c: Likewise.
8273         * config/bfin/bfin.c: Likewise.
8274         * config/crx/crx.c: Likewise.
8275         * config/darwin.h: Likewise.
8276         * config/h8300/h8300.c: Likewise.
8277         * config/i386/cygming.h: Likewise.
8278         * config/i386/i386.c: Likewise.
8279         * config/ia64/ia64.c: Likewise.
8280         * config/m32c/m32c.c: Likewise.
8281         * config/m32r/m32r.c: Likewise.
8282         * config/m68hc11/m68hc11.c: Likewise.
8283         * config/m68k/m68k.c: Likewise.
8284         * config/mcore/mcore.c: Likewise.
8285         * config/mep/mep.c: Likewise.
8286         * config/microblaze/microblaze.c: Likewise.
8287         * config/mips/mips.c: Likewise.
8288         * config/rs6000/rs6000.c: Likewise.
8289         * config/rx/rx.c: Likewise.
8290         * config/sh/sh.c: Likewise.
8291         * config/sol2.h: Likewise.
8292         * config/sparc/sparc.c: Likewise.
8293         * config/spu/spu.c: Likewise.
8294         * config/stormy16/stormy16.c: Likewise.
8295         * config/v850/v850.c: Likewise.
8296
8297 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
8298
8299         * simplify-rtx.c (simplify_binary_operation_1): Handle
8300         (xor (and A B) C) case when B and C are both constants.
8301
8302 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
8303
8304         * tree-dfa.c (add_referenced_var): Fix typo in comment.
8305
8306 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
8307
8308         PR bootstrap/48168
8309         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8310
8311 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
8312
8313         PR rtl-optimization/48156
8314         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8315         assume df and df_lr are not NULL.
8316
8317 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8318
8319         PR debug/48023
8320         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8321         between a call and its CALL_ARG_LOCATION note.
8322
8323 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8324
8325         PR debug/48178
8326         * config/sh/sh.c (find_barrier): Don't emit a constant pool
8327         between a call and its corresponding CALL_ARG_LOCATION note.
8328
8329 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
8330
8331         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8332         instead of loop. Use HARD_REGISTER_NUM_P predicate.
8333         * haifa-sched.c (setup_ref_regs): Ditto.
8334         * caller-save.c (add_used_regs_1): Ditto.
8335         * dse.c (look_for_hardregs): Ditto.
8336         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8337         * sched-rgn.c (check_live_1): Ditto.
8338
8339 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8340
8341         * c-decl.c (diagnose_mismatched_decls): Give an error for
8342         redefining a typedef with variably modified type.
8343
8344 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8345
8346         * c-decl.c (grokfield): Don't allow typedefs for structures or
8347         unions with no tag by default.
8348         * doc/extend.texi (Unnamed Fields): Update.
8349
8350 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
8351
8352         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8353         Rewrite using indirect functions.
8354         (lwp_slwpcb): Ditto.
8355         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8356         (avx_vinsertf128<mode>): Ditto.
8357
8358 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8359
8360         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8361         unspecs.
8362
8363 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8364
8365         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8366         splitting between a call and its corresponding CALL_ARG_LOCATION note.
8367
8368 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8369
8370         PR rtl-optimization/48170
8371         * gcse.c (hoist_code): Remove bogus asserts.
8372
8373 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
8374
8375         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8376         computation for prologue/epilogue.
8377
8378 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8379
8380         * Makefile.in (check-consistency): Remove.
8381
8382 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
8383
8384         PR debug/48176
8385         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8386         arange_table_in_use is 0, but either text_section_used or
8387         cold_text_section_used is true.  Don't call it if
8388         !info_section_emitted.
8389
8390 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
8391
8392         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8393         FUNCTION_VALUE_REGNO_P): Remove.
8394         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8395         Remove.
8396         * config/avr/avr.c (avr_ret_register): Make static inline.
8397         (avr_function_value_regno_p): New function.
8398         (avr_libcall_value): Make static. Add 'func' argument.
8399         (avr_function_value): Make static. Rename 'func' argument to
8400         'fn_decl_or_type', forward it to avr_libcall_value. Call
8401         avr_ret_register function instead of RET_REGISTER macro.
8402         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8403
8404 2011-03-18  Jason Merrill  <jason@redhat.com>
8405
8406         PR c++/23372
8407         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8408
8409 2011-03-18  Richard Guenther  <rguenther@suse.de>
8410
8411         * doc/install.texi (--enable-gold): Remove.
8412         (--with-plugin-ld): Document.
8413         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8414
8415 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
8416
8417         PR middle-end/47790
8418         * expr.c (optimize_bitfield_assignment_op): Revamp to work
8419         again after expansion changes.
8420
8421 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
8422
8423         * combine.c (try_combine): Do simplification only call of
8424         subst() on i2 even when i1 is present. Update comments.
8425
8426 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8427
8428         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8429         and UNSPEC_PCREL_SYMOFF.
8430
8431 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8432
8433         * config/s390/s390.md: Use define_c_enum for the unspec constant
8434         definitions.
8435
8436 2011-03-18  Richard Henderson  <rth@redhat.com>
8437             Jakub Jelinek  <jakub@redhat.com>
8438
8439         PR bootstrap/48161
8440         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8441         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8442
8443 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8444
8445         PR middle-end/47725
8446         * combine.c (cant_combine_insn_p): Don't check zero/sign
8447         extended hard registers.
8448
8449 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8450
8451         PR middle-end/47725
8452         * combine.c (cant_combine_insn_p): Check zero/sign extended
8453         hard registers.
8454
8455 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
8456
8457         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8458         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8459         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8460         Change return type to bool.
8461         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8462
8463 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8464
8465         PR debug/48163
8466         * var-tracking.c (prepare_call_arguments): If CALL target
8467         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8468         pc instead of looking it up using cselib_lookup and use
8469         Pmode for it if x has VOIDmode.
8470         * dwarf2out.c (gen_subprogram_die): If also both first and
8471         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8472
8473         PR debug/48163
8474         * function.c (assign_parms): For data.passed_pointer parms
8475         use MEM of data.entry_parm instead of data.entry_parm itself
8476         as DECL_INCOMING_RTL.
8477         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8478         also when passed and declared mode is the same, DECL_RTL
8479         is a MEM with pseudo as address and DECL_INCOMING_RTL is
8480         a MEM too.
8481
8482 2011-03-16  Jeff Law  <law@redhat.com>
8483
8484         PR rtl-optimization/37273
8485         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8486         handle them like argument loads from stack slots.  Do not double
8487         count memory for memory constants and argument loads from stack slots.
8488
8489 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8490
8491         PR debug/48160
8492         * var-tracking.c (prepare_call_arguments): Check SUBREG.
8493
8494 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8495
8496         PR target/48171
8497         * config/i386/i386.opt: Add Save to -mavx and -mfma.
8498
8499 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8500
8501         PR bootstrap/48153
8502         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8503         if dwarf_strict.
8504         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8505         Clear call_arg_locations and call_arg_loc_last always.
8506
8507         PR middle-end/48152
8508         * var-tracking.c (prepare_call_arguments): If argument needs to be
8509         passed by reference, adjust argtype and mode.
8510
8511 2011-03-17  Richard Guenther  <rguenther@suse.de>
8512
8513         PR middle-end/48134
8514         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8515         a value make sure to fold the statement.
8516
8517 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
8518
8519         PR target/43872
8520         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8521         return condition with !cfun->calls_alloca.
8522
8523 2011-03-17  Richard Guenther  <rguenther@suse.de>
8524
8525         PR bootstrap/48148
8526         * lto-cgraph.c (input_overwrite_node): Clear the abstract
8527         origin for decls in other ltrans units.
8528         (input_varpool_node): Likewise.
8529
8530 2011-03-17  Richard Guenther  <rguenther@suse.de>
8531
8532         PR middle-end/48165
8533         * tree-object-size.c (compute_object_offset): Properly return
8534         the offset operand of MEM_REFs as sizetype.
8535
8536 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8537
8538         PR rtl-optimization/48141
8539         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8540         * dse.c: Include params.h.
8541         (active_local_stores_len): New variable.
8542         (add_wild_read, dse_step1): Clear it when setting active_local_stores
8543         to NULL.
8544         (record_store, check_mem_read_rtx): Decrease it when removing
8545         from the chain.
8546         (scan_insn): Likewise.  Increase it when adding to chain, if it
8547         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8548         set active_local_stores to NULL before the addition.
8549         * Makefile.in (dse.o): Depend on $(PARAMS_H).
8550
8551         PR rtl-optimization/48141
8552         * dse.c (record_store): If no positions are needed in an insn
8553         that cannot be deleted, at least unchain it from active_local_stores.
8554
8555 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
8556
8557         PR debug/47510
8558         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8559         (lookup_type_die_strip_naming_typedef): ... here.
8560         (get_context_die): Use it.
8561         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8562         the anonymous struct named by the naming typedef.
8563
8564 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8565
8566         PR target/48154
8567         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8568         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8569
8570 2011-03-16  Jeff Law  <law@redhat.com>
8571
8572         * tree-vrp.c (identify_jump_threads): Slightly simplify type
8573         check for operands of conditional.  Allow type to be a pointer.
8574
8575 2011-03-16  Richard Guenther  <rguenther@suse.de>
8576
8577         PR tree-optimization/48149
8578         * fold-const.c (fold_binary_loc): Fold
8579         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8580
8581 2011-03-16  Richard Guenther  <rguenther@suse.de>
8582
8583         PR tree-optimization/26134
8584         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8585         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8586         (non_rewritable_mem_ref_base): Handle complex type component
8587         accesses, constrain offsets for vector and complex extracts
8588         more properly.
8589
8590 2011-03-16  Richard Guenther  <rguenther@suse.de>
8591
8592         PR tree-optimization/48146
8593         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8594         operands avoiding the need for renaming.
8595
8596 2011-03-16  Richard Guenther  <rguenther@suse.de>
8597
8598         * gimple-fold.c (maybe_fold_reference): Open-code relevant
8599         constant folding.  Move MEM_REF canonicalization first.
8600         Rely on fold_const_aggregate_ref for initializer folding.
8601         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8602
8603 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
8604
8605         PR middle-end/48136
8606         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8607         arg0/arg1 or their arguments are always fold converted to matching
8608         types.
8609
8610         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8611         to nargs.
8612
8613 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8614
8615         PR lto/46944
8616         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8617         Handle in-tree gold.
8618         (ld_vers): Extract binutils version for gold.
8619         (gcc_cv_ld_hidden): Handle gold here.
8620         (gcc_cv_lto_plugin): Determine level of linker plugin support.
8621         * configure: Regenerate.
8622         * config.in: Regenerate.
8623         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8624         -fuse-linker-plugin otherwise.
8625         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
8626         (LINK_COMMAND_SPEC): Use it.
8627         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8628
8629 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
8630
8631         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8632         * calls.c: Remove debug.h include.
8633         (emit_call_1): Don't call virtual_call_token debug hook.
8634         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8635         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8636         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8637         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8638         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8639         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8640         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8641         dwarf2out_virtual_call): Remove.
8642         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8643         copy_call_info and virtual_call hooks.
8644         (dwarf2out_init): Don't initialize vcall_insn_table,
8645         debug_dcall_section and debug_vcall_section.
8646         (prune_unused_types): Don't mark nodes from dcall_table.
8647         (dwarf2out_finish): Don't output dcall or vcall tables.
8648         * final.c (final_scan_insn): Don't call direct_call or
8649         virtual_call debug hooks.
8650         * debug.h (struct gcc_debug_hooks): Remove direct_call,
8651         virtual_call_token, copy_call_info and virtual_call hooks.
8652         (debug_nothing_uid): Remove prototype.
8653         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8654         copy_call_info and virtual_call hooks.
8655         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8656         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8657         * debug.c (do_nothing_debug_hooks): Likewise.
8658         (debug_nothing_uid): Remove.
8659         * doc/invoke.texi (-fenable-icf-debug): Remove.
8660         * common.opt (-fenable-icf-debug): Likewise.
8661
8662         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8663         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8664         call's MEM.  Handle functions returning aggregate through a hidden
8665         first pointer.  For virtual calls add clobbered pc to call arguments
8666         chain.
8667         * dwarf2out.c (gen_subprogram_die): Emit
8668         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8669         can't be emitted.
8670
8671         PR debug/45882
8672         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8673         * rtl.h (ENTRY_VALUE_EXP): Define.
8674         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8675         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8676         * print-rtl.c (print_rtx): Likewise.
8677         * gengtype.c (adjust_field_rtx_def): Likewise.
8678         * var-tracking.c (vt_add_function_parameter): Adjust
8679         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8680         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8681         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8682         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8683         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8684
8685         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8686         Call var_location debug hook even on CALL_INSNs.
8687         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8688         * rtl.def (ENTRY_VALUE): New.
8689         * dwarf2out.c: Include cfglayout.h.
8690         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8691         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8692         (struct call_arg_loc_node): New type.
8693         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8694         tail_call_site_count): New variables.
8695         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8696         DW_TAG_GNU_call_site_parameter.
8697         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8698         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8699         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8700         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8701         and DW_AT_GNU_all_source_call_sites.
8702         (mem_loc_descriptor): Handle ENTRY_VALUE.
8703         (add_src_coords_attributes): Don't add enything if
8704         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8705         (dwarf2out_abstract_function): Save and clear call_arg_location,
8706         call_site_count and tail_call_site_count around dwarf2out_decl call.
8707         (gen_call_site_die): New function.
8708         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8709         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8710         (dwarf2out_function_decl): Clear call_arg_locations,
8711         call_arg_loc_last, set call_site_count and tail_call_site_count
8712         to -1 and free block_map.
8713         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8714         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
8715         followed by any real instructions.
8716         (dwarf2out_begin_function): Set call_site_count and
8717         tail_call_site_count to 0.
8718         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8719         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8720         attempt to force a DIE for it and worst case remove the attribute.
8721         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8722         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8723         the decl itself.
8724         * var-tracking.c: Include tm_p.h.
8725         (vt_stack_adjustments): For calls call note_register_arguments.
8726         (argument_reg_set): New variable.
8727         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8728         ensure the VALUE is resolved.
8729         (call_arguments): New variable.
8730         (prepare_call_arguments): New function.
8731         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8732         (struct expand_loc_callback_data): Add ignore_cur_loc field.
8733         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8734         always use the best expression.
8735         (vt_expand_loc): Add ignore_cur_loc argument.
8736         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8737         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8738         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8739         note for all calls.
8740         (vt_add_function_parameter): Use cselib_lookup_from_insn.
8741         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8742         argument.  Don't call cselib_preserve_only_values and
8743         cselib_reset_table.
8744         (note_register_arguments): New function.
8745         (vt_initialize): Compute argument_reg_set.  Call
8746         vt_add_function_parameters before processing basic blocks instead of
8747         afterwards.  For calls call prepare_call_arguments before calling
8748         cselib_process_insn.
8749         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8750         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8751         (var-tracking.o): Depend on $(TM_P_H).
8752         * cfglayout.h (insn_scope): New prototype.
8753         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8754         * cfglayout.c (insn_scope): No longer static.
8755         * insn-notes.def (CALL_ARG_LOCATION): New.
8756         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8757         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8758         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8759         nothing for DECL_EXTERNAL BLOCK_VARS.
8760
8761 2011-03-16  Alan Modra  <amodra@gmail.com>
8762
8763         PR target/45844
8764         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8765         create invalid offset address for vsx splat insn.
8766         * config/rs6000/predicates.md (splat_input_operand): New.
8767         * config/rs6000/vsx.md (vsx_splat_*): Use it.
8768
8769 2011-03-15  Xinliang David Li  <davidxl@google.com>
8770
8771         PR c/47837
8772         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8773         (normalize_preds): New function.
8774         (is_use_properly_guarded): Normalize def predicates.
8775
8776 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8777
8778         PR target/46788
8779         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
8780         in the output template.
8781
8782 2011-03-15  Richard Guenther  <rguenther@suse.de>
8783
8784         PR middle-end/47650
8785         * tree-pretty-print.c (dump_function_declaration): Properly
8786         dump unprototyped and varargs function types.
8787
8788 2011-03-15  Richard Guenther  <rguenther@suse.de>
8789
8790         PR tree-optimization/13954
8791         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
8792         and friends.
8793
8794 2011-03-15  Richard Guenther  <rguenther@suse.de>
8795
8796         PR tree-optimization/48037
8797         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
8798         selects into BIT_FIELD_REFs.
8799         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
8800         vector select.
8801
8802 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
8803
8804         PR tree-optimization/48129
8805         * builtins.c (fold_builtin_snprintf): Convert to type of
8806         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
8807         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
8808
8809 2011-03-15  Richard Guenther  <rguenther@suse.de>
8810
8811         PR tree-optimization/41490
8812         * tree-ssa-dce.c (propagate_necessity): Handle returns without
8813         value but with VUSE.
8814         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
8815         return statements.
8816         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
8817         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
8818         * tree-tailcall.c (find_tail_calls): Ignore returns.
8819
8820 2011-03-15  Richard Guenther  <rguenther@suse.de>
8821
8822         PR middle-end/48031
8823         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
8824         or variable-indexed array accesses when in gimple form.
8825
8826 2011-03-15  Richard Guenther  <rguenther@suse.de>
8827
8828         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
8829
8830 2011-03-15  Alan Modra  <amodra@gmail.com>
8831
8832         PR target/48032
8833         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
8834         presume symbol_refs without a symbol_ref_decl are suitably
8835         aligned, nor other trees we may see here.  Handle anchor symbols.
8836         (legitimate_constant_pool_address_p): Comment.  Add mode param.
8837         Check cmodel=medium addresses.  Adjust all calls.
8838         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
8839         creating cmodel=medium optimized access to locals.
8840         * config/rs6000/constraints.md (R): Pass QImode to
8841         legitimate_constant_pool_address_p.
8842         * config/rs6000/predicates.md (input_operand): Pass mode to
8843         legitimate_constant_pool_address_p.
8844         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
8845         Update prototype.
8846
8847 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8848
8849         PR target/48053
8850         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
8851         64-bit constants being loaded into registers other than GPRs such
8852         as loading 0 into a VSX register.
8853
8854 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8855
8856         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
8857
8858 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
8859
8860         PR middle-end/47917
8861         * builtins.c (fold_builtin_snprintf): New function.
8862         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
8863         (fold_builtin_4): Likewise.
8864
8865         PR middle-end/38878
8866         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
8867         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
8868         and C - X == X also strip nops from +/-/p+ operand.
8869         When optimizing -X == C, fold C to arg0's type.
8870
8871         PR debug/47946
8872         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
8873         emit it as add_AT_int instead of add_AT_unsigned.
8874
8875 2011-03-14  Tom Tromey  <tromey@redhat.com>
8876
8877         * unwind-dw2.c: Include sys/sdt.h if it exists.
8878         (_Unwind_DebugHook): Use STAP_PROBE2.
8879         * config.in, configure: Rebuild.
8880         * configure.ac: Check for sys/sdt.h.
8881
8882 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
8883
8884         * config/i386/i386.md (ROUND_FLOOR): New constant.
8885         (ROUND_CEIL): Ditto.
8886         (ROUND_TRUNC): Ditto.
8887         (ROUND_MXCSR): Ditto.
8888         (ROUND_NO_EXC): Ditto.
8889         (rint<mode>2): Use new defines instead of numerical constants.
8890         (floor<mode>2): Ditto.
8891         (ceil<mode>2): Ditto.
8892         (btrunc<mode>2): Ditto.
8893         * config/i386/i386-builtin-types.def: Define ROUND function type
8894         aliases.
8895         * config/i386/i386.c (enum ix86_builtins): Add
8896         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
8897         (struct builtin_description): Add
8898         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
8899         (ix86_expand_sse_round): New static function.
8900         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
8901         function types.
8902         (ix86_builtin_vectorized_function): Handle
8903         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8904
8905 2011-03-14  Tom Tromey  <tromey@redhat.com>
8906
8907         * c-parser.c (c_parser_asm_string_literal): Clear
8908         warn_overlength_strings.
8909
8910 2011-03-14  Tom Tromey  <tromey@redhat.com>
8911
8912         * c-parser.c (disable_extension_diagnostics): Save
8913         warn_overlength_strings.
8914         (restore_extension_diagnostics): Restore warn_overlength_strings.
8915
8916 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
8917
8918         * BASE-VER: Change to 4.7.0.
8919
8920 2011-03-14  Richard Guenther  <rguenther@suse.de>
8921
8922         PR middle-end/48098
8923         * tree.c (build_vector_from_val): Adjust assert to requirements
8924         and reality.
8925
8926 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
8927
8928         PR bootstrap/48102
8929         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
8930
8931 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
8932
8933         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
8934         terms of target_flags_explicit. Adjust copyright year.
8935
8936         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
8937         * config/rs6000/t-freebsd: New file. Add override for
8938         LIB2FUNCS_EXTRA.
8939
8940 2011-03-13  Chris Demetriou  <cgd@google.com>
8941
8942         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
8943         (-fno-diagnostics-show-option): this, to reflect current default.
8944         (-Werror=): Update text about -fno-diagnostics-show-option.
8945
8946 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
8947
8948         PR target/48053
8949         * config/rs6000/predicates.md (easy_vector_constant_add_self,
8950         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
8951         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
8952         mode is not V2DImode or V2DFmode.
8953         (vspltis_constant): Do not handle V2DImode and V2DFmode.
8954         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
8955         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
8956         registers to 0.
8957         (movdi_internal64): Likewise.
8958
8959 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
8960
8961         PR tree-optimization/47127
8962         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
8963         parameter.
8964         (set_cloog_options): Same.
8965         (scop_to_clast): Same.
8966         (print_clast_stmt): Do not call cloog_state_malloc and
8967         cloog_state_free.
8968         (print_generated_program): Same.
8969         (gloog): Same.
8970         * graphite-clast-to-gimple.h (cloog_state): Declared.
8971         (scop_to_clast): Adjust declaration.
8972         * graphite.c (cloog_state): Defined here.
8973         (graphite_initialize): Call cloog_state_malloc.
8974         (graphite_finalize): Call cloog_state_free.
8975
8976 2011-03-11  Jason Merrill  <jason@redhat.com>
8977
8978         * attribs.c (lookup_attribute_spec): Take const_tree.
8979         * tree.h: Adjust.
8980
8981 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
8982
8983         * config/sparc/sparc.c (sparc_option_override): Use
8984         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
8985
8986 2011-03-11  Richard Guenther  <rguenther@suse.de>
8987
8988         PR tree-optimization/48067
8989         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
8990         multiplication result will be only used once on the target
8991         stmt.
8992
8993 2011-03-11  Richard Guenther  <rguenther@suse.de>
8994
8995         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
8996
8997 2011-03-11  Richard Guenther  <rguenther@suse.de>
8998
8999         PR lto/48073
9000         * tree.c (find_decls_types_r): Do not walk types only reachable
9001         from IDENTIFIER_NODEs.
9002
9003 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9004
9005         PR middle-end/48044
9006         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9007         all vnode->force_output nodes as needed.
9008
9009 2011-03-11  Jason Merrill  <jason@redhat.com>
9010
9011         PR c++/48069
9012         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9013         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9014
9015 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9016
9017         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9018         cgraph_node.
9019
9020 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9021
9022         PR tree-optimization/48063
9023         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9024         inline functions called once if !tree_can_inline_p (node->callers).
9025
9026 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9027
9028         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9029         extra_objs.
9030         * config/score/score3.c: Delete.
9031         * config/score/score3.h: Delete.
9032         * config/score/mul-div.S: Delete.
9033         * config/score/sfp-machine.h: Add new file.
9034         * config/score/constraints.md: Add new file.
9035         * config/score/t-score-softfp: Add new file.
9036         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9037         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9038         (score7_extra_constraint): Delete.
9039         (score7_option_override): Remove unused code.
9040         * config/score/score.c: Remove score3 and score5 define and code.
9041         * config/score/score.h: Remove score3 and score5 define and code.
9042         * config/score/score.md: Remove score3 template and unusual insn.
9043         * config/score/score.opt: Remove score3 and score5 options.
9044
9045 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9046
9047         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9048         when _HPUX_SOURCE is defined.
9049         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9050
9051 2011-03-10  Jason Merrill  <jason@redhat.com>
9052
9053         PR c++/48029
9054         * stor-layout.c (layout_type): Don't set structural equality
9055         on arrays of incomplete type.
9056         * tree.c (type_hash_eq): Handle comparing them properly.
9057
9058 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9059
9060         PR debug/48043
9061         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9062         result mode matches original rtl mode.
9063
9064 2011-03-10  Nick Clifton  <nickc@redhat.com>
9065
9066         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9067         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9068
9069 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9070
9071         PR rtl-optimization/47866
9072         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9073         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9074         if target wasn't scalar.
9075         * function.c (assign_stack_temp_for_type): Assert that neither
9076         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9077         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9078         macro.
9079         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9080
9081 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9082
9083         * config/s390/s390-protos.h (s390_label_align): New prototype.
9084         * config/s390/s390.c (s390_label_align): New function.
9085         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9086
9087 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9088
9089         PR target/47755
9090         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9091         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9092         (output_vec_const_move): Ditto.
9093
9094 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9095
9096         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9097         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9098         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9099         Change 'rclass' argument and result type to reg_class_t.
9100         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9101
9102 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9103
9104         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9105         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9106         (TARGET_MEMORY_MOVE_COST): Define.
9107         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9108
9109 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9110
9111         PR debug/47881
9112         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9113         removed anything.
9114
9115         PR tree-optimization/48022
9116         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9117         for EQ/NE_EXPR.
9118
9119 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9120
9121         PR debug/47991
9122         * var-tracking.c (find_use_val): Return NULL for
9123         cui->sets && cui->store_p BLKmode MEMs.
9124
9125 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9126
9127         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9128         Remove.
9129         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9130         xstormy16_print_operand_address): Remove.
9131         * config/stormy16/stormy16.c (xstormy16_print_operand,
9132         xstormy16_print_operand_address): Make static.
9133         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9134
9135 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9136
9137         PR target/47862
9138         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9139         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9140         before definition.
9141
9142 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9143
9144         PR bootstrap/48000
9145         * cfgloopmanip.c (fix_bb_placements): Return immediately
9146         if FROM is BASE_LOOP's header.
9147
9148 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9149
9150         * gimplify.c (gimplify_function_tree): Fix building calls
9151         to __builtin_return_address.
9152
9153 2011-03-07  Alan Modra  <amodra@gmail.com>
9154
9155         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9156         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9157         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9158         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9159         return_mode args.
9160         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9161         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9162         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9163         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9164         * config/rs6000/rs6000.c
9165         (rs6000_elf_end_indicate_exec_stack): Rename to..
9166         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9167         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9168         (rs6000_file_start): ..here.
9169         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9170         file scope variables.
9171         (call_ABI_of_interest): New function.
9172         (init_cumulative_args): Set above vars when function return value
9173         is a float, vector, or small struct.
9174         (rs6000_function_arg_advance_1): Likewise for function args.
9175         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9176         references float args.
9177
9178 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9179
9180         * doc/cfg.texi: Remove "See" before @ref.
9181         * doc/invoke.texi: Likewise.
9182
9183 2011-03-05  Jason Merrill  <jason@redhat.com>
9184
9185         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9186
9187 2011-03-05  Anthony Green  <green@moxielogic.com>
9188
9189         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9190
9191 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
9192
9193         PR rtl-optimization/47899
9194         * cfgloopmanip.c (fix_bb_placements): Fix first argument
9195         to flow_loop_nested_p when moving the loop upward.
9196
9197 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
9198
9199         PR target/47719
9200         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
9201
9202 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
9203
9204         PR tree-optimization/47967
9205         * ipa-cp.c (build_const_val): Return NULL instead of creating
9206         VIEW_CONVERT_EXPR for mismatching sizes.
9207         (ipcp_create_replace_map): Return NULL if build_const_val failed.
9208         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9209         give up on versioning.
9210
9211 2011-03-05  Alan Modra  <amodra@gmail.com>
9212
9213         PR target/47986
9214         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9215         full cmodel medium/large lo_sum + high addresses.
9216
9217 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9218
9219         * config/s390/s390.c (s390_decompose_address): Reject non-literal
9220         pool references in UNSPEC_LTREL_OFFSET.
9221
9222 2011-03-04  Jan Hubicka  <jh@suse.cz>
9223
9224         PR lto/47497
9225         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9226         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9227         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9228         Add node pointers.
9229         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9230         cgraph_add_thunk): Add node pointers.
9231         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9232         associated to right node.
9233         (input_node): Update use of cgraph_same_body_alias
9234         and cgraph_add_thunk.
9235
9236 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9237
9238         * config/i386/i386.opt (mprefer-avx128): New flag.
9239         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9240         modes when the flag -mprefer-avx128 is on.
9241
9242 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9243
9244         * dwarf2out.c (compare_loc_operands): Fix address handling.
9245
9246 2011-03-04  Alan Modra  <amodra@gmail.com>
9247
9248         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9249
9250 2011-03-04  Richard Guenther  <rguenther@suse.de>
9251
9252         PR middle-end/47968
9253         * expmed.c (extract_bit_field_1): Prefer vector modes that
9254         vec_extract patterns can handle.
9255
9256 2011-03-04  Richard Guenther  <rguenther@suse.de>
9257
9258         PR middle-end/47975
9259         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9260
9261 2011-03-04  Richard Henderson  <rth@redhat.com>
9262
9263         * explow.c (emit_stack_save): Remove 'after' parameter.
9264         (emit_stack_restore): Likewise.
9265         * expr.h: Update to match.
9266         * builtins.c, calls.c, stmt.c: Likewise.
9267         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9268         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9269         * function.c (expand_function_end): Insert the emit_stack_save
9270         sequence before parm_birth_insn instead of after.
9271
9272 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
9273
9274         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9275         (ssse3_pmaddubsw128): Ditto.
9276         (ssse3_pmaddubsw): Ditto.
9277
9278 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
9279
9280         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9281
9282 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
9283
9284         PR c/47963
9285         * gimplify.c (omp_add_variable): Only call omp_notice_variable
9286         on TYPE_SIZE_UNIT if it is a DECL.
9287
9288         PR debug/47283
9289         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9290         first operand is not is_gimple_mem_ref_addr, try to fold it.
9291         If the operand still isn't is_gimple_mem_ref_addr, clear
9292         MEM_EXPR on op0.
9293
9294 2011-03-03  Richard Guenther  <rguenther@suse.de>
9295
9296         PR middle-end/47283
9297         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9298         match comment.
9299         (refs_may_alias_p_1): For release branches return true if
9300         we are confused by our input.
9301
9302 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9303
9304         * config/s390/s390.c (s390_function_value): Rename to ...
9305         (s390_function_and_libcall_value): ... this.
9306         (s390_function_value): New function.
9307         (s390_libcall_value): New function.
9308         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9309         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9310         target macro definitions.
9311         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9312
9313 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
9314
9315         * config/i386/freebsd64.h (CC1_SPEC): Define.
9316         * config/i386/linux64.h (CC1_SPEC): Define.
9317         * config/i386/x86-64.h (CC1_SPEC): Don't define.
9318
9319 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
9320
9321         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9322         Remove.
9323         * config/stormy16/stormy16.c: Include reload.h.
9324         (xstormy16_memory_move_cost): New function.
9325         (TARGET_MEMORY_MOVE_COST): Define.
9326
9327 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
9328
9329         PR rtl-optimization/47925
9330         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9331         with side effects.  Remove the more-specific check for volatile asms.
9332
9333 2011-03-02  Alan Modra  <amodra@gmail.com>
9334
9335         PR target/47935
9336         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9337         toc relative addresses for valid offsets.
9338
9339 2011-03-01  Richard Guenther  <rguenther@suse.de>
9340
9341         PR tree-optimization/47890
9342         * tree-vect-loop.c (get_initial_def_for_induction): Set
9343         related stmt properly.
9344
9345 2011-03-01  Richard Guenther  <rguenther@suse.de>
9346
9347         PR lto/47924
9348         * lto-streamer.c (lto_record_common_node): Also register
9349         the canonical type.
9350
9351 2011-03-01  Richard Guenther  <rguenther@suse.de>
9352
9353         PR lto/46911
9354         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9355         Do not stream DECL_ABSTRACT_ORIGIN.
9356         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9357         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9358         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9359         Do not stream DECL_ABSTRACT_ORIGIN.
9360         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9361         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9362
9363 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
9364
9365         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9366         FUNCTION_VALUE_REGNO_P): Remove.
9367         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9368         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9369         Add 'outgoing' argument.
9370         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9371         function.
9372         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9373         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9374
9375 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
9376
9377         PR debug/28047
9378         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9379         (lookup_filename): Likewise.
9380         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9381
9382 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
9383             Jakub Jelinek  <jakub@redhat.com>
9384
9385         PR middle-end/47893
9386         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9387         (assign_stack_local_1): Change last argument type to int.
9388         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9389         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
9390         don't record padding space into frame_space_list nor use those areas.
9391         (assign_stack_local): Adjust caller.
9392         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9393         of assign_stack_local, pass 0 as last argument.
9394         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9395         callers.
9396
9397 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
9398
9399         PR debug/47283
9400         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9401         Use target address_mode and pointer_mode hooks instead of hardcoded
9402         Pmode and ptr_mode.  Handle some simple cases of extending if
9403         POINTERS_EXTEND_UNSIGNED < 0.
9404         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9405         Call convert_debug_memory_address.
9406         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9407         convert_debug_memory_address.
9408
9409         PR middle-end/46790
9410         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9411         * configure: Regenerated.
9412         * config.in: Regenerated.
9413         * varasm.c (default_function_section): Return NULL
9414         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9415
9416 2011-02-28  Martin Jambor  <mjambor@suse.cz>
9417
9418         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9419         the description to match the printed values.
9420
9421 2011-02-28  Richard Guenther  <rguenther@suse.de>
9422
9423         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9424         of the copied scope tree.
9425
9426 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9427
9428         * doc/extend.texi (Function Attributes): Avoid deeply (and
9429         wrongly) nested tables.
9430
9431 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
9432
9433         PR middle-end/47903
9434         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9435         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9436         r isn't op0 nor op1.
9437
9438 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9439
9440         * config/avr/avr.md: Remove magic comment for emacs.
9441
9442 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9443
9444         PR target/45261
9445         * config/avr/avr.c (avr_option_override): Use error on bad options.
9446         (avr_help): New function.
9447         (TARGET_HELP): Define.
9448
9449 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
9450
9451         PR target/42240
9452         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9453         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9454
9455 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
9456
9457         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9458         (ARM Options): Ditto.
9459         (i386 and x86-64 Options): Ditto.
9460         (RX Options): Ditto.
9461         (SPARC Options): Ditto.
9462
9463 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
9464
9465         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9466         FreeBSD 6 and later.  Generally use cpu generic.
9467
9468 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9469
9470         * doc/cpp.texi: Update copyright years.
9471
9472 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9473
9474         PR target/46898
9475         * config/lm32/lm32.md (ashrsi3): Added needed variable.
9476
9477 2011-02-25  Jon Beniston  <jon@beniston.com>
9478
9479         PR target/46898
9480         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9481         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9482         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9483         (lm32_block_move_inline): Add type cast to remove warning.
9484         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9485         (gen_int_relational): Move declarations to start of function.
9486
9487 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9488
9489         PR tree-optimization/45470
9490         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9491         can throw internally only.
9492         * tree-vect-stmts.c (vectorizable_call): Likewise.
9493
9494 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
9495
9496         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9497         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9498         * config/stormy16/stormy16-protos.h
9499         (xstormy16_preferred_reload_class): Remove.
9500         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9501         static. Change 'rclass' argument and return type to reg_class_t.
9502         (TARGET_PREFERRED_RELOAD_CLASS,
9503         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9504
9505 2011-02-24  Richard Guenther  <rguenther@suse.de>
9506
9507         * lto-streamer-in.c (input_bb): Do not find referenced vars
9508         in debug statements.
9509
9510 2011-02-23  Jason Merrill  <jason@redhat.com>
9511
9512         * common.opt (fabi-version): Document v5 and v6.
9513
9514 2011-02-23  Richard Guenther  <rguenther@suse.de>
9515
9516         PR tree-optimization/47849
9517         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9518
9519 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9520
9521         * opts-common.c (decode_cmdline_option): Print empty string
9522         argument as "" in decoded->orig_option_with_args_text.
9523         * gcc.c (execute): Print empty string argument as ""
9524         in the verbose output.
9525         (do_spec_1): Keep empty string argument.
9526
9527 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
9528
9529         * config.gcc: Declare score-* and crx-* obsolete.
9530
9531 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9532
9533         PR rtl-optimization/47763
9534         * web.c (web_main): Ignore naked clobber when replacing register.
9535
9536 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
9537
9538         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9539         Remove.
9540
9541 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9542
9543         PR doc/47848
9544         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9545
9546 2011-02-22  Mike Stump  <mikestump@comcast.net>
9547
9548         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9549         assembler.
9550         * configure: Regenerate.
9551
9552 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
9553
9554         PR rtl-optimization/46002
9555         * ira-color.c (update_copy_costs): Change class intersection
9556         test to reg_class_contents[] test of 'hard_regno'.
9557
9558 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
9559
9560         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9561         than Driver option.
9562         * config/hpux11.opt (mt): Likewise.
9563         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9564         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9565         * config/vax/elf.opt (mno-asm-pic): Likewise.
9566         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9567
9568 2011-02-21  Mike Stump  <mikestump@comcast.net>
9569
9570         PR target/47822
9571         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9572         tree so we can get save the type.
9573         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9574         for CFString instead of trying to use past the end of the builtins.
9575         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9576         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9577         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9578         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9579         Rename to darwin_builtin_cfstring.
9580         (darwin_init_cfstring_builtins): Return the built type.
9581
9582 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
9583
9584         PR target/47840
9585         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9586         (_mm256_insert_epi64): Use _mm_insert_epi64.
9587
9588 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
9589
9590         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9591         * config/stormy16/stormy16-protos.h
9592         (xstormy16_mode_dependent_address_p): Remove.
9593         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9594         Make static. Change return type to bool. Change argument type to
9595         const_rtx. Remove dead code.
9596         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9597
9598 2011-02-21  Richard Guenther  <rguenther@suse.de>
9599
9600         PR lto/47820
9601         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9602         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9603         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9604         TUs context.
9605         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9606         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9607
9608 2011-02-20  Richard Guenther  <rguenther@suse.de>
9609
9610         PR lto/47822
9611         * tree.c (free_lang_data_in_decl): Clean builtins from
9612         the TU decl BLOCK_VARS.
9613
9614 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
9615
9616         PR debug/47620
9617         PR debug/47630
9618         * haifa-sched.c (fix_tick_ready): Skip tick computation
9619         for debug insns.
9620
9621 2011-02-19  Richard Guenther  <rguenther@suse.de>
9622
9623         PR lto/47647
9624         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9625         Remove lazy BLOCK_VARS streaming.
9626         (lto_input_ts_block_tree_pointers): Likewise.
9627         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9628
9629 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
9630
9631         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9632
9633 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
9634
9635         * config/i386/biarch32.h, config/i386/mach.h,
9636         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9637
9638 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
9639
9640         PR target/47800
9641         * config/i386/i386.md (peephole2 for shift and plus): Use
9642         operands[1] original mode in the first insn.
9643
9644 2011-02-18  Mike Stump  <mikestump@comcast.net>
9645
9646         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9647
9648 2011-02-18  Jan Hubicka  <jh@suse.cz>
9649
9650         PR middle-end/47788
9651         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9652         to zero when the function is not inlinable at all.
9653
9654 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9655
9656         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9657         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9658         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9659         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9660         * config/pa/t-pa64: Likewise.
9661         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9662
9663 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
9664
9665         PR driver/47787
9666         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9667
9668 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9669
9670         PR target/47792
9671         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9672
9673 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
9674
9675         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9676         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9677         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9678         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9679         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9680         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9681         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9682         m32r_load_postinc_p, m32r_store_preinc_predec_p,
9683         m32r_legitimate_address_p): New functions.
9684         * config/m32r/constraints.md (constraint "S"): Don't use
9685         STORE_PREINC_PREDEC_P.
9686         (constraint "U"): Don't use LOAD_POSTINC_P.
9687
9688 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
9689
9690         PR rtl-optimization/46178
9691         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9692         compute ira_hard_regno_cover_class[].
9693
9694 2011-02-18  Richard Guenther  <rguenther@suse.de>
9695
9696         PR lto/47798
9697         * lto-streamer.h (lto_global_var_decls): Declare.
9698         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9699         statics for global var processing.
9700
9701 2011-02-18  Richard Guenther  <rguenther@suse.de>
9702
9703         PR tree-optimization/47737
9704         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9705         edge dominance check.
9706
9707 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
9708
9709         PR debug/47780
9710         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9711         avoid invalid rtx sharing.
9712
9713 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
9714
9715         * doc/cpp.texi (Obsolete Features): Add background on the
9716         origin of assertions.
9717
9718 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
9719
9720         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9721         objc_abi == 2.
9722         * config/darwin.c (output_objc_section_asm_op): Added support for
9723         ABI v1 and v2.
9724         (is_objc_metadata): New.
9725         (darwin_objc2_section): New.
9726         (darwin_objc1_section): New.
9727         (machopic_select_section): Added support for ABI v1 and v2.
9728         (darwin_emit_objc_zeroed): New.
9729         (darwin_output_aligned_bss): Detect objc metadata and treat it
9730         appropriately.
9731         (darwin_asm_output_aligned_decl_common): Same.
9732         (darwin_asm_output_aligned_decl_local): Same.
9733         * config/darwin-sections.def: Updated for ABI v1 and v2.
9734         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9735         compiling Objective-C code for the NeXT runtime, default to using
9736         ABI version 0 for 32-bit, and version 2 for 64-bit.
9737
9738 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9739
9740         * common.opt (optimize_fast): New Variable.
9741         * opts.c (default_options_optimization): Use opts->x_optimize_fast
9742         instead of local variable ofast.
9743
9744 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
9745
9746         * doc/invoke.texi (fobjc-abi-version): Documented.
9747         (fobjc-nilcheck): Documented.
9748         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9749         version.
9750
9751 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9752
9753         PR driver/47390
9754         * common.opt (export-dynamic): New Driver option.
9755         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9756
9757 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9758
9759         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9760
9761 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
9762             Jan Hubicka  <jh@suse.cz>
9763
9764         PR debug/47106
9765         PR debug/47402
9766         * cfgexpand.c (account_used_vars_for_block): Remove.
9767         (estimated_stack_frame_size): Use referenced vars.
9768         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9769         that were referenced in the original function.  Test src_fn
9770         rather than cfun.  Drop redundant get_var_ann.
9771         (setup_one_parameter): Drop redundant get_var_ann.
9772         (declare_return_variable): Likewise.
9773         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9774         (copy_arguments_for_versioning): Drop redundant get_var_ann.
9775         * ipa-inline.c (compute_inline_parameters): Do not compute
9776         disregard_inline_limits here.
9777         (compute_inlinable_for_current, pass_inlinable): New.
9778         (pass_inline_parameters): Require PROP_referenced_vars.
9779         * cgraphunit.c (cgraph_process_new_functions): Don't run
9780         compute_inline_parameters explicitly unless function is in SSA form.
9781         (cgraph_analyze_function): Set .disregard_inline_limits.
9782         * tree-sra.c (convert_callers): Compute inliner parameters
9783         only for functions already in SSA form.
9784
9785 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9786
9787         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
9788         -mlittle-endian-data.
9789
9790 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9791
9792         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
9793         -mno-fpu, not -fpu and -no-fpu.
9794         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
9795         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
9796
9797 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
9798
9799         PR target/43653
9800         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
9801         input reload with PLUS RTX.
9802
9803 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9804
9805         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
9806         of InverseVar(MDMX).
9807
9808 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9809
9810         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
9811         --m4-340.
9812
9813 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9814
9815         * config/mn10300/mn10300.opt (mno-crt0): New.
9816
9817 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9818
9819         * config/m68k/uclinux.opt (static-libc): New Driver option.
9820
9821 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9822
9823         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
9824
9825 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9826
9827         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
9828         %{muser-extend-enabled}.
9829
9830 2011-02-16  Richard Guenther  <rguenther@suse.de>
9831
9832         PR tree-optimization/47738
9833         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
9834         the TODO from tree_predictive_commoning.
9835
9836 2011-02-15  Jeff Law  <law@redhat.com>
9837
9838         Revert
9839         2011-01-25  Jeff Law  <law@redhat.com>
9840
9841         PR rtl-optimization/37273
9842         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9843         handle them like argument loads from stack slots.  Do not double
9844         count memory for memory constants and argument loads from stack slots.
9845
9846 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
9847
9848         PR middle-end/47725
9849         * combine.c (cant_combine_insn_p): Revert the last change.
9850
9851 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
9852
9853         PR target/47755
9854         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
9855         mode for vector constants.  Remove code that checks for TImode.
9856
9857 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
9858
9859         PR debug/47106
9860         PR debug/47402
9861         * cgraph.h (compute_inline_parameters): Return void.
9862         * ipa-inline.c (compute_inline_parameters): Adjust.
9863
9864 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
9865
9866         PR debug/47106
9867         PR debug/47402
9868         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
9869         rather than decl.
9870         * cfgexpand.c (estimated_stack_frame_size): Likewise.
9871         * ipa-inline.c (compute_inline_parameters): Adjust.
9872
9873 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
9874
9875         PR debug/47106
9876         PR debug/47402
9877         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
9878         Adjust all users.  Pass FN to...
9879         * tree-flow-inline.h (first_referenced_var): ... this.  Add
9880         fn argument.
9881         * ipa-struct-reorg.c: Adjust.
9882         * tree-dfa.c: Adjust.
9883         * tree-into-ssa.c: Adjust.
9884         * tree-sra.c: Adjust.
9885         * tree-ssa-alias.c: Adjust.
9886         * tree-ssa-live.c: Adjust.
9887         * tree-ssa.c: Adjust.
9888         * tree-ssanames.c: Adjust.
9889         * tree-tailcall.c: Adjust.
9890
9891 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
9892
9893         PR debug/47106
9894         PR debug/47402
9895         * tree-flow.h (referenced_var_lookup): Add fn parameter.
9896         Adjust all callers.
9897         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
9898         * tree-flow-inline.h: Adjust.
9899         * gimple-pretty-print.c: Adjust.
9900         * tree-into-ssa.c: Adjust.
9901         * tree-ssa.c: Adjust.
9902         * cfgexpand.c: Adjust.
9903
9904 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
9905
9906         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
9907         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9908         (EXTRA_CONSTRAINT): Delete.
9909         * config/iq2000/constraints.md: New file.
9910         * config/iq2000/iq2000.md: Include it.
9911         (define_insn ""): Delete.
9912         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
9913         unsupported constraint letters from patterns.
9914         (call_value, call_value_internal1): Likewise.
9915         (call_value_multiple_internal1): Likewise.
9916
9917 2011-02-15  Nick Clifton  <nickc@redhat.com>
9918
9919         * config/mn10300/mn10300.c: Include tm-constrs.h.
9920         (struct liw_data): New data structure describing an LIW candidate
9921         instruction.
9922         (extract_bundle): Use struct liw_data.  Allow small integer
9923         operands for some instructions.
9924         (check_liw_constraints): Use struct liw_data.  Remove swapped
9925         parameter.  Add comments describing the checks.  Fix bug when
9926         assigning the source of liw1 to the source of liw2.
9927         (liw_candidate): Delete.  Code moved into extract_bundle.
9928         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
9929         before swapping.
9930         * config/mn10300/predicates.md (liw_operand): New predicate.
9931         Allows registers and small integer constants.
9932         * config/mn10300/constraints.md (O): New constraint.  Accetps
9933         integers in the range -8 to +7 inclusive.
9934         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
9935         for moving a small integer into a register.  Give this alternative
9936         LIW attributes.
9937         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
9938         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
9939         using the J,K,L and M constraints,
9940         (liw): Remove SI mode on second operands to allow for HI and QI
9941         mode values.
9942         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
9943         instruction.
9944
9945 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
9946
9947         PR middle-end/47725
9948         * combine.c (cant_combine_insn_p): Check zero/sign extended
9949         hard registers.
9950
9951 2011-02-15  Richard Guenther  <rguenther@suse.de>
9952
9953         PR tree-optimization/47743
9954         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
9955         for a non-type-compatible VN lookup bail out.
9956
9957 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
9958
9959         * config/fr30/constraints.md: New file.
9960         * config/fr30/fr30.md: Include it.
9961         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
9962         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9963         (EXTRA_CONSTRAINT): Delete.
9964
9965 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
9966
9967         * config/frv/constraints.md: New file.
9968         * config/frv/predicates.md: Include it.
9969         * config/frv/frv.c (reg_class_from_letter): Delete.
9970         (frv_option_override): Don't initialize it.
9971         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
9972         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
9973         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
9974         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9975         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
9976         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9977         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
9978         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
9979         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
9980         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
9981         (REG_CLASS_FROM_CONSTRAINT): Delete.
9982
9983 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
9984
9985         PR middle-end/47581
9986         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
9987         if frame size is 0 in a leaf function.
9988
9989 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9990
9991         PR pch/14940
9992         * config/alpha/host-osf.c: New file.
9993         * config/alpha/x-osf: New file.
9994         * config.host (alpha*-dec-osf*): Use it.
9995
9996 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
9997
9998         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9999         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10000         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10001         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10002         type to const_rtx.
10003         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10004
10005 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10006
10007         * config/stormy16/constraints.md: New file.
10008         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10009         Use satisfies_constraint_Q and satisfies_constraint_R.
10010         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10011         Delete.
10012         (xstormy16_legitiamte_address_p): Declare.
10013         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10014         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10015         (EXTRA_CONSTRAINT): Delete.
10016         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10017         Un-staticize.
10018         (xstormy16_extra_constraint_p): Delete.
10019
10020 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10021
10022         PR tree-optimization/46494
10023         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10024         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10025         (pass_rtl_loop_done): Add TODO_verify_flow.
10026         * fwprop.c (pass_rtl_fwprop): Likewise.
10027         * modulo-sched.c (pass_sms): Likewise.
10028         * tree-ssa-dom.c (pass_dominator): Likewise.
10029         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10030         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10031         (pass_tree_loop_done): Likewise.
10032         * tree-ssa-pre.c (execute_pre): Likewise.
10033         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10034         * tree-ssa-sink.c (pass_sink_code): Likewise.
10035         * tree-vrp.c (pass_vrp): Likewise.
10036
10037 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10038
10039         * config/v850/constraints.md: New file.
10040         * config/v850/v850.md: Include it.
10041         * config/v850/predicates.md (reg_or_0_operand): Use
10042         satisfies_constraint_G.
10043         (special_symbolref_operand): Use satisfies_constraint_K.
10044         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10045         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10046         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10047         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10048         (EXTRA_CONSTRAINT): Delete.
10049         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10050         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10051         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10052
10053 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10054
10055         PR target/47696
10056         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10057         description.
10058
10059 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10060
10061         * config/mcore/constraints.md: New file.
10062         * config/mcore/mcore.md: Include it.
10063         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10064         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10065         (REG_CLASS_FROM_LETTER): Delete.
10066         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10067         insn_const_int_ok_for_constraint.
10068         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10069         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10070         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10071         (EXTRA_CONSTRAINT): Delete.
10072
10073 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10074
10075         PR ada/41929
10076         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10077         (IS_SIGHANDLER): Define.
10078         (sparc64_is_sighandler): New function, split off from
10079         sparc64_fallback_frame_state.
10080         (sparc_is_sighandler): New function, split off from
10081         sparc_fallback_frame_state.
10082         (sparc64_fallback_frame_state): Merge with ...
10083         (sparc_fallback_frame_state): ... this into ...
10084         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10085         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10086         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10087         stack instead of hardcoded offsets.
10088
10089 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10090
10091         PR target/45808
10092         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10093
10094 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10095
10096         * configure: Regenerate.
10097
10098 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10099
10100         PR driver/45731
10101         * gcc.c (asm_options): Correct spec matching --target-help.
10102
10103 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10104
10105         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10106         to gimple call error.
10107
10108 2011-02-12  Mike Stump  <mikestump@comcast.net>
10109
10110         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10111         comments in backslash regions.
10112
10113 2011-02-12  Mike Stump  <mikestump@comcast.net>
10114             Jakub Jelinek  <jakub@redhat.com>
10115             Iain Sandoe  <iains@gcc.gnu.org>
10116
10117         PR target/47324
10118         * dwarf2out.c (output_cfa_loc): When required, apply the
10119         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10120         (output_loc_sequence): Likewise.
10121         (output_loc_operands_raw): Likewise.
10122         (output_loc_sequence_raw): Likewise.
10123         (output_cfa_loc): Likewise.
10124         (output_loc_list): Suppress register number adjustment when
10125         calling output_loc_sequence()
10126         (output_die): Likewise.
10127
10128 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10129
10130         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10131         Remove macros.
10132         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10133         xtensa_memory_move_cost): New functions.
10134         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10135
10136 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10137
10138         PR lto/47225
10139         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10140         in the current directory.
10141         * configure: Rebuilt.
10142
10143 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10144
10145         * config/darwin.c (darwin_override_options): Add a hunk missed
10146         from the commit of r168571.  Trim comment line lengths and
10147         correct indents of the preceding block.
10148
10149 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10150
10151         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10152         the switch.
10153
10154 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10155
10156         * common.opt (nostartfiles): New Driver option.
10157
10158 2011-02-11  Xinliang David Li  <davidxl@google.com>
10159
10160         PR tree-optimization/47707
10161         * tree-chrec.c (convert_affine_scev): Keep type precision.
10162
10163 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10164
10165         PR tree-optimization/47420
10166         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10167
10168 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10169
10170         PR rtl-optimization/47614
10171         * rtl.h (check_for_inc_dec): Declare.
10172         * dse.c (check_for_inc_dec): Externalize...
10173         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10174         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10175
10176 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10177
10178         PR driver/47678
10179         * gcc.c (main): Do not compile inputs if there were errors in
10180         option handling.
10181         * opts-common.c (read_cmdline_option): Check for wrong language
10182         after other error checks.
10183
10184 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
10185
10186         * cgraph.c: Fix comment typos.
10187         * cgraph.h: Likewise.
10188         * cgraphunit.c: Likewise.
10189         * ipa-cp.c: Likewise.
10190         * ipa-inline.c: Likewise.
10191         * ipa-prop.c: Likewise.
10192         * ipa-pure-const.c: Likewise.
10193         * ipa-ref.c: Likewise.
10194         * ipa-reference.c: Likewise.
10195
10196 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10197
10198         PR debug/47684
10199         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10200
10201 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10202
10203         PR testsuite/47400
10204         * doc/sourcebuild.texi (Require Support): Document
10205         dg-require-ascii-locale.
10206
10207 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
10208
10209         * doc/lto.texi (Write summary): Fix missing parentheses.
10210
10211 2011-02-10  DJ Delorie  <dj@redhat.com>
10212
10213         * config/m32c/m32c.c (m32c_option_override): Disable
10214         -fcombine-stack-adjustments until flag value tracking and compare
10215         optimization can be rewritten.
10216
10217 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
10218
10219         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10220         PROCESSOR_POWER7.
10221         (PROCESSOR_DEFAULT64): Likewise.
10222
10223 2011-02-10  Richard Henderson  <rth@redhat.com>
10224
10225         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10226         change from 2011-02-03.
10227         * config/rx/rx.c (flags_from_code): Likewise.
10228         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10229         is valid, n/pz otherwise.
10230         (rx_select_cc_mode): Return CCmode if Y is not zero.
10231
10232 2011-02-10  Richard Guenther  <rguenther@suse.de>
10233
10234         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10235
10236 2011-02-10  Richard Guenther  <rguenther@suse.de>
10237
10238         PR tree-optimization/47677
10239         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10240
10241 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10242
10243         PR target/47665
10244         * combine.c (make_compound_operation): Only change shifts into
10245         multiplication for SCALAR_INT_MODE_P.
10246
10247 2011-02-10  Jie Zhang  <jie@codesourcery.com>
10248
10249         PR testsuite/47622
10250         Revert
10251         2011-02-05  Jie Zhang  <jie@codesourcery.com>
10252         PR debug/42631
10253         * web.c (entry_register): Don't clobber the number of the
10254         first uninitialized reference in used[].
10255
10256 2011-02-09  Richard Guenther  <rguenther@suse.de>
10257
10258         PR tree-optimization/47664
10259         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10260         all edges again.
10261
10262 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
10263
10264         PR target/46481
10265         PR target/47032
10266         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10267         PROCESSOR_POWER7.
10268         (PROCESSOR_DEFAULT64): Same.
10269         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10270
10271 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10272
10273         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10274
10275 2011-02-09  Martin Jambor  <mjambor@suse.cz>
10276
10277         PR middle-end/45505
10278         * tree-sra.c (struct access): New flags grp_scalar_read and
10279         grp_scalar_write.  Changed description of assignment read and write
10280         flags.
10281         (dump_access): Dump new flags, reorder all of them.
10282         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10283         to detect multiple scalar reads.
10284         (analyze_access_subtree): Use the new scalar read write flags instead
10285         of the old flags.  Adjusted comments.
10286
10287 2011-02-08  DJ Delorie  <dj@redhat.com>
10288
10289         PR target/47548
10290         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10291         patterns.
10292
10293 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10294
10295         * config/m68k/uclinux.opt: New.
10296         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10297
10298 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10299
10300         * config/cris/elf.opt (sim): New Driver option.
10301
10302 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10303
10304         * config/xtensa/elf.opt: New.
10305         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10306
10307 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10308
10309         * config/vax/elf.opt: New.
10310         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10311
10312 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10313
10314         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10315
10316 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10317
10318         * config/gnu-user.opt: New.
10319         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10320         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10321         *-*-uclinux*): Use gnu-user.opt.
10322
10323 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
10324
10325         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10326         * config/i386/gnu.h (CPP_SPEC): Likewise.
10327
10328 2011-02-08  Ian Lance Taylor  <iant@google.com>
10329
10330         * common.opt (fcx-limited-range): Add SetByCombined flag.
10331         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10332         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10333         (fassociative-math, freciprocal-math): Likewise.
10334         (funsafe-math-optimizations): Likewise.
10335         * opth-gen.awk: Handle SetByCombined.
10336         * optc-gen.awk: Likewise.
10337         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10338         (set_unsafe_math_optimizations_flags): Likewise.
10339         * doc/options.texi (Option properties): Document SetByCombined.
10340
10341 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10342
10343         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10344         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10345         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10346         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10347         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10348
10349 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
10350
10351         PR tree-optimization/46834
10352         PR tree-optimization/46994
10353         PR tree-optimization/46995
10354         * graphite-sese-to-poly.c (used_outside_reduction): New.
10355         (detect_commutative_reduction): Call used_outside_reduction.
10356         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10357         translate_scalar_reduction_to_array only when at least one
10358         loop-phi/close-phi tuple has been detected.
10359
10360 2011-02-08  Richard Guenther  <rguenther@suse.de>
10361
10362         PR middle-end/47639
10363         * tree-vect-generic.c (expand_vector_operations_1): Update
10364         stmts here ...
10365         (expand_vector_operations): ... not here.  Cleanup EH info
10366         and the CFG if required.
10367
10368 2011-02-08  Richard Guenther  <rguenther@suse.de>
10369
10370         PR tree-optimization/47641
10371         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10372         require type compatibility.
10373
10374 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10375
10376         * gimple-low.c (lower_function_body): Don't remove the location of
10377         the return statement here.
10378         (lower_gimple_return): Do it here instead but only if the return
10379         statement is actually used twice.
10380
10381 2011-02-08  Richard Guenther  <rguenther@suse.de>
10382
10383         PR tree-optimization/47632
10384         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10385         unused up_to_stmt parameter, return whether cfg-cleanup is
10386         necessary, remove EH info properly.
10387         (forward_propagate_into_gimple_cond): Adjust caller.
10388         (forward_propagate_into_cond): Likewise.
10389         (forward_propagate_comparison): Likewise.
10390         (tree_ssa_forward_propagate_single_use_vars): Make
10391         forward_propagate_comparison case similar to the two others.
10392
10393 2011-02-08  Nick Clifton  <nickc@redhat.com>
10394
10395         * config/mn10300/mn10300.opt (mliw): New command line option.
10396         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10397         (liw_bundling): New automaton.
10398         (liw): New attribute.
10399         (liw_op): New attribute.
10400         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10401         (movsi_internal): Add LIW attributes.
10402         (andsi3): Likewise.
10403         (iorsi3): Likewise.
10404         (xorsi3): Likewise.
10405         (addsi3): Separate register and immediate alternatives.
10406         Add LIW attributes.
10407         (subsi3): Likewise.
10408         (cmpsi): Likewise.
10409         (aslsi3): Likewise.
10410         (lshrsi3): Likewise.
10411         (ashrsi3): Likewise.
10412         (liw): New pattern.
10413         * config/mn10300/mn10300.c (liw_op_names): New
10414         (mn10300_print_operand): Handle 'W' operand descriptor.
10415         (extract_bundle): New function.
10416         (check_liw_constraints): New function.
10417         (liw_candidate): New function.
10418         (mn10300_bundle_liw): New function.
10419         (mn10300_reorg): New function.
10420         (TARGET_MACHINE_DEPENDENT_REORG): Define.
10421         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10422         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10423         __LIW__ or __NO_LIW__.
10424         * doc/invoke.texi: Describe the -mliw command line option.
10425
10426 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10427
10428         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10429         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10430         pthread_mutex_unlock): Remove.
10431         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10432         * config/pa/t-pa64: Likewise.
10433         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10434         shared libc if not linking against libpthread.
10435         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10436
10437 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
10438
10439         PR target/47558
10440         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10441         on 10.6 and later to ensure that we always use the unwinder from
10442         the system.  Only add -no_compact_unwind when tarteting darwin
10443         10.6 or later.
10444
10445 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
10446
10447         PR target/46997
10448         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10449         (vec_interleave_lowv2sf): Ditto.
10450         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10451         (vec_extract_oddv2sf): Ditto.
10452
10453 2011-02-07  Mike Stump  <mikestump@comcast.net>
10454
10455         PR target/42333
10456         Add __ieee_divdc3 entry point.
10457         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10458         entry point.
10459         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10460         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10461         * config/darwin.c (darwin_rename_builtins): Add.
10462         * config/darwin-protos.h (darwin_rename_builtins): Add.
10463
10464 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
10465
10466         PR target/47636
10467         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10468         for the condition.
10469
10470 2011-02-07  Mike Stump  <mikestump@comcast.net>
10471
10472         * config/darwin.opt (mmacosx-version-min): Update default OS version.
10473
10474 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
10475
10476         PR target/47534
10477         * config/avr/libgcc.S (exit): Move .endfunc
10478
10479 2011-02-07  Richard Guenther  <rguenther@suse.de>
10480
10481         PR tree-optimization/47615
10482         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10483         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10484         (run_scc_vn): Initialize it.
10485         (visit_reference_op_load): Use it.
10486         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10487
10488 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10489
10490         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10491         DImode trapping arithmetic libfuncs.
10492
10493 2011-02-07  Richard Guenther  <rguenther@suse.de>
10494
10495         PR tree-optimization/47621
10496         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10497         two duplicates ...
10498         (execute_update_addresses_taken): ... here.  Make it more
10499         conservative in what we accept.
10500
10501 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10502
10503         * config/sparc/freebsd.h (ASM_SPEC): Define.
10504         * config/sparc/vxworks.h (ASM_SPEC): Define.
10505
10506 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10507
10508         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10509
10510 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
10511
10512         * doc/invoke.texi: Remove reference to compiler internals from
10513         user documentation.
10514
10515         * reg-notes.def: Remove REG_VALUE_PROFILE.
10516         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10517
10518 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
10519
10520         PR middle-end/47610
10521         * varasm.c (default_section_type_flags): If decl is NULL,
10522         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10523
10524 2011-02-05  Jie Zhang  <jie@codesourcery.com>
10525
10526         PR debug/42631
10527         * web.c (entry_register): Don't clobber the number of the
10528         first uninitialized reference in used[].
10529
10530 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
10531
10532         PR tree-optimization/46194
10533         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10534         (build_classic_dist_vector_1): Do not represent classic distance
10535         vectors when the access functions are variating in different loops.
10536
10537 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10538
10539         * config/mips/iris6.opt: New.
10540         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10541
10542 2011-02-04  Richard Henderson  <rth@redhat.com>
10543             Steve Ellcey  <sje@cup.hp.com>
10544
10545         PR target/46997
10546         * config/ia64/predicates.md (mux1_brcst_element): New.
10547         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10548         * config/ia64/ia64.c (ia64_unpack_assemble): New.
10549         (ia64_unpack_sign): New.
10550         (ia64_expand_unpack): Rewrite using new routines.
10551         (ia64_expand_widen_sum): Ditto.
10552         (ia64_expand_dot_prod_v8qi): Ditto.
10553         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10554         routines, add endian check.
10555         (pmpy2_even): Rename from pmpy2_r, add endian check.
10556         (pmpy2_odd): Rename from pmpy2_l, add endian check.
10557         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10558         (vec_widen_smult_hi_v4hi): Ditto.
10559         (vec_widen_umult_lo_v4hi): Ditto.
10560         (vec_widen_umult_hi_v4hi): Ditto.
10561         (mulv2si3): Change endian checks.
10562         (sdot_prodv4hi): Rewrite with new calls.
10563         (udot_prodv4hi): New.
10564         (vec_pack_ssat_v4hi): Add endian check.
10565         (vec_pack_usat_v4hi): Ditto.
10566         (vec_pack_ssat_v2si): Ditto.
10567         (max1_even): Rename from max1_r, add endian check.
10568         (max1_odd): Rename from max1_l, add endian check.
10569         (*mux1_rev): Format change.
10570         (*mux1_mix): Ditto.
10571         (*mux1_shuf): Ditto.
10572         (*mux1_alt): Ditto.
10573         (*mux1_brcst_v8qi): Use new predicate.
10574         (vec_extract_evenv8qi): Remove endian check.
10575         (vec_extract_oddv8qi): Ditto.
10576         (vec_interleave_lowv4hi): Format change.
10577         (vec_interleave_highv4hi): Ditto.
10578         (mix2_even): Rename from mix2_r, add endian check.
10579         (mix2_odd): Rename from mux2_l, add endian check.
10580         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10581         (vec_extract_evenodd_helper): Format change.
10582         (vec_extract_evenv4hi): Remove endian check.
10583         (vec_extract_oddv4hi): Remove endian check.
10584         (vec_interleave_lowv2si): Format change.
10585         (vec_interleave_highv2si): Format change.
10586         (vec_initv2si): Remove endian check.
10587         (vecinit_v2si): Add endian check.
10588         (reduc_splus_v2sf): Add endian check.
10589         (reduc_smax_v2sf): Ditto.
10590         (reduc_smin_v2sf): Ditto.
10591         (vec_initv2sf): Remove endian check.
10592         (fpack): Add endian check.
10593         (fswap): Add endian check.
10594         (vec_interleave_highv2sf): Add endian check.
10595         (vec_interleave_lowv2sf): Add endian check.
10596         (fmix_lr): Add endian check.
10597         (vec_setv2sf): Format change.
10598         (*vec_extractv2sf_0_be): Use shift to extract operand.
10599         (*vec_extractv2sf_1_be): New.
10600         (vec_pack_trunc_v4hi): Add endian check.
10601         (vec_pack_trunc_v2si): Format change.
10602
10603 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
10604
10605         PR inline-asm/23200
10606         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
10607         do bb, locus and block comparison and disallow loads if it is not set.
10608         (stmt_is_replaceable_p): New function.
10609         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10610         callers.
10611         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10612         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10613         SSA_NAME_DEF_STMT.
10614         * tree-flow.h (stmt_is_replaceable_p): New prototype.
10615
10616 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10617
10618         * config/rs6000/xilinx.opt: New.
10619         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10620
10621 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10622
10623         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10624
10625 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
10626
10627         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10628         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10629         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10630         secondary_reload_info, xtensa_secondary_reload): Remove.
10631         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10632         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10633         (xtensa_preferred_reload_class): Make static. Change return and
10634         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10635         Use CONST_DOUBLE_P predicate.
10636         (xtensa_preferred_output_reload_class): New function.
10637         (xtensa_secondary_reload): Make static.
10638
10639 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
10640
10641         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10642         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10643         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10644
10645 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10646
10647         PR middle-end/31490
10648         * output.h (SECTION_RELRO): Define.
10649         (SECTION_MACH_DEP): Adjust.
10650         (get_variable_section): New prototype.
10651         * varpool.c (varpool_finalize_named_section_flags): New function.
10652         (varpool_assemble_pending_decls): Call it.
10653         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10654         * cgraphunit.c (cgraph_output_in_order): Call
10655         varpool_finalize_named_section_flags.
10656         * varasm.c (get_section): Allow section flags conflicts between
10657         relro and read-only sections if the section hasn't been declared yet.
10658         Set SECTION_OVERRIDE after diagnosing section type conflict.
10659         (get_variable_section): No longer static.
10660         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10661         readonly sections that need relocations.
10662         (decl_readonly_section_1): New function.
10663         (decl_readonly_section): Use it.
10664
10665         Revert:
10666         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
10667                     Steve Ellcey  <sje@cup.hp.com>
10668
10669         PR middle-end/31490
10670         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10671         if section attribute used.
10672
10673 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10674
10675         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10676         * config/darwin.c (SECTION_NO_ANCHOR): Define.
10677         (darwin_init_sections): Remove assertion.
10678
10679 2011-02-03  Nick Clifton  <nickc@redhat.com>
10680
10681         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10682         lt and ge.
10683         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10684         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10685         instead of "n" and "pz".
10686         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10687         CC_FLAG_S.
10688
10689 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10690
10691         PR target/47312
10692         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10693         fma, expand FMA_EXPR as fma{,f,l} call.
10694
10695         PR lto/47274
10696         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10697         copy them into a unsigned char variable and pass address of it to
10698         lto_output_data_stream.
10699
10700         PR target/47564
10701         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10702         around backend_init_target and lang_dependent_init_target calls.
10703         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10704         (verify_cgraph_node): Don't call set_cfun here.  Use
10705         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10706         Set error_found for incorrectly represented calls to thunks.
10707
10708 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
10709
10710         PR debug/43092
10711         PR rtl-optimization/43494
10712         * rtl.h (for_each_inc_dec_fn): New type.
10713         (for_each_inc_dec): Declare.
10714         * rtlanal.c (struct for_each_inc_dec_ops): New type.
10715         (for_each_inc_dec_find_inc_dec): New fn.
10716         (for_each_inc_dec_find_mem): New fn.
10717         (for_each_inc_dec): New fn.
10718         * dse.c (struct insn_size): Remove.
10719         (replace_inc_dec, replace_inc_dec_mem): Remove.
10720         (emit_inc_dec_insn_before): New fn.
10721         (check_for_inc_dec): Use it, along with for_each_inc_dec.
10722         (canon_address): Pass mem modes to cselib_lookup.
10723         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
10724         (cselib_lookup_from_insn): Likewise.
10725         (cselib_subst_to_values): Likewise.
10726         * cselib.c (find_slot_memmode): New var.
10727         (cselib_find_slot): New fn.  Use it instead of
10728         htab_find_slot_with_hash everywhere.
10729         (entry_and_rtx_equal_p): Use find_slot_memmode.
10730         (autoinc_split): New fn.
10731         (rtx_equal_for_cselib_p): Rename and implement in terms of...
10732         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
10733         Deal with autoinc.  Special-case recursion into MEMs.
10734         (cselib_hash_rtx): Likewise.
10735         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
10736         address and MEM modes.
10737         (cselib_subst_to_values): Add memmode, pass it on.
10738         Deal with autoinc.
10739         (cselib_lookup): Add memmode argument, pass it on.
10740         (cselib_lookup_from_insn): Add memmode.
10741         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10742         (struct cselib_record_autoinc_data): New.
10743         (cselib_record_autoinc_cb): New fn.
10744         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
10745         mode to cselib_lookup.  Reset autoinced REGs here instead of...
10746         (cselib_process_insn): ... here.
10747         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10748         to cselib_lookup.
10749         (add_uses): Likewise, also to cselib_subst_to_values.
10750         (add_stores): Likewise.
10751         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
10752         cselib_subst_to_values.
10753         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
10754         * gcse.c (do_local_cprop): Adjusted.
10755         * postreload.c (reload_cse_simplify_set): Adjusted.
10756         (reload_cse_simplify_operands): Adjusted.
10757         * sel-sched-dump (debug_mem_addr_value): Pass mode.
10758
10759 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
10760
10761         PR tree-optimization/45122
10762         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10763         unsafe assumptions when there's more than one loop exit.
10764
10765 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10766
10767         PR target/47272
10768         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10769         Document using vector double with the load/store builtins, and
10770         that the load/store builtins always use Altivec instructions.
10771
10772         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10773         to use altivec memory instructions, even on VSX.
10774         (vector_altivec_store_<mode>): Ditto.
10775
10776         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
10777         function.
10778
10779         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10780         V2DF, V2DI support to load/store overloaded builtins.
10781
10782         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
10783         altivec load/store builtins for V2DF/V2DI types.
10784
10785         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10786         set avoid indexed addresses on power6 if -maltivec.
10787         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
10788         vector_altivec_load/vector_altivec_store builtins.
10789         (altivec_expand_st_builtin): Ditto.
10790         (altivec_expand_builtin): Add VSX memory builtins.
10791         (rs6000_init_builtins): Add V2DI types to internal types.
10792         (altivec_init_builtins): Add support for V2DF/V2DI altivec
10793         load/store builtins.
10794         (rs6000_address_for_altivec): Insure memory address is appropriate
10795         for Altivec.
10796
10797         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
10798         vec_vsx_ld and vec_vsx_st.
10799         (vsx_store_<mode>): Ditto.
10800
10801         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
10802         variables to hold long long types for VSX vector memory builtins.
10803         (RS6000_BTI_unsigned_long_long): Ditto.
10804         (long_long_integer_type_internal_node): Ditti.
10805         (long_long_unsigned_type_internal_node): Ditti.
10806
10807         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
10808         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
10809         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
10810
10811         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
10812         short cuts.
10813         (vec_vsx_st): Ditto.
10814
10815 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
10816
10817         * config/pa/pa-hpux10.opt: New.
10818         * config/hpux11.opt (pthread): New Driver option.
10819         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
10820         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
10821
10822 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
10823
10824         * config/ia64/vms.opt: New.
10825         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
10826
10827 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
10828
10829         PR target/47580
10830         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
10831         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
10832         generator functions.
10833         (vsx_floatuns<VSi><mode>2): Ditto.
10834         (vsx_fix_trunc<mode><VSi>2): Ditto.
10835         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
10836
10837 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
10838
10839         * config/i386/djgpp.opt (posix): New Driver option.
10840
10841 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
10842
10843         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
10844         Move to the unsupported targets list.
10845
10846 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
10847
10848         PR rtl-optimization/47525
10849         * df-scan.c: Update copyright years.
10850         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
10851         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
10852
10853 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10854
10855         * config/i386/sysv4.h (TARGET_VERSION): Remove.
10856         (SUBTARGET_RETURN_IN_MEMORY): Remove.
10857         (ASM_OUTPUT_ASCII): Remove.
10858         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
10859
10860 2011-02-02  Jeff Law  <law@redhat.com>
10861
10862         PR middle-end/47543
10863         * reload.c (find_reloads_address): Handle reg+d address where both
10864         components are invalid by reloading the entire address.
10865
10866 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
10867             Richard Guenther  <rguenther@suse.de>
10868
10869         PR tree-optimization/40979
10870         PR bootstrap/47044
10871         * passes.c (init_optimization_passes): After LIM call copy_prop
10872         and DCE to clean up.
10873         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
10874
10875 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
10876
10877         PR tree-optimization/47576
10878         PR tree-optimization/47555
10879         * doc/invoke.texi (scev-max-expr-complexity): Documented.
10880         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10881         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
10882         * tree-scalar-evolution.c (follow_ssa_edge): Use
10883         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
10884
10885 2011-02-02  Richard Guenther  <rguenther@suse.de>
10886
10887         PR tree-optimization/47566
10888         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
10889
10890 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
10891
10892         PR debug/47106
10893         PR debug/47402
10894         * tree-inline.c (declare_return_variable): Remove unused caller
10895         variable.
10896
10897         PR debug/47106
10898         PR debug/47402
10899         * tree-flow-inline.h (clear_is_used, is_used_p): New.
10900         * cfgexpand.c (account_used_vars_for_block): Use them.
10901         * tree-nrv.c (tree_nrv): Likewise.
10902         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
10903         (dump_scope_block): Likewise.
10904         (remove_unused_locals): Likewise.
10905
10906         PR debug/47106
10907         PR debug/47402
10908         * tree-inline.c (declare_return_variable): Add result decl to
10909         local decls only once.
10910         * gimple-low.c (record_vars_into): Mark newly-created variables
10911         as referenced.
10912
10913 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
10914
10915         PR debug/47498
10916         PR debug/47501
10917         PR debug/45136
10918         PR debug/45130
10919         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10920         debug insns.
10921         (no_real_insns_p, schedule_block, set_priorities): Drop special
10922         treatment of boundary debug insns.
10923         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10924         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
10925         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10926         (BOUNDARY_DEBUG_INSN_P): Likewise.
10927         (SCHEDULE_DEBUG_INSN_P): Likewise.
10928         * sched-rgn.c (init_ready_list): Drop special treatment of
10929         boundary debug insns.
10930         * final.c (rest_of_clean_state): Clear notes' BB.
10931
10932 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10933
10934         * config/openbsd.opt (assert=): New Driver option.
10935
10936 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10937
10938         * config/i386/nto.opt: New.
10939         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
10940
10941 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10942
10943         * config/i386/netware.opt: New.
10944         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
10945
10946 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10947
10948         * config/interix.opt (posix): New Driver option.
10949
10950 2011-02-01  DJ Delorie  <dj@redhat.com>
10951
10952         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
10953
10954         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
10955         class for A0/A1.
10956
10957 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
10958
10959         PR tree-optimization/47561
10960         * toplev.c (process_options): Print the Graphite flags.  Add
10961         flag_loop_flatten to the list of options requiring Graphite.
10962
10963 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10964
10965         * config/i386/cygming.opt (posix): New Driver option.
10966
10967 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10968
10969         * config/arm/vxworks.opt: New.
10970         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
10971
10972 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10973
10974         * config/alpha/elf.opt: New.
10975         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
10976         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
10977
10978 2011-02-01  Richard Guenther  <rguenther@suse.de>
10979
10980         PR tree-optimization/47559
10981         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
10982         store-motion on references that can throw.
10983
10984 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
10985
10986         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
10987         * tree-pass.h (TDF_CSELIB): New macro.
10988         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
10989         cselib_lookup): Check for it rather than for TDF_DETAILS.
10990
10991 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
10992
10993         PR driver/47547
10994         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
10995         is HOST_BIT_BUCKET.
10996
10997         * opts.c (finish_options): Don't add x_aux_base_name if it is
10998         HOST_BIT_BUCKET.
10999
11000 2011-02-01  Richard Guenther  <rguenther@suse.de>
11001
11002         PR tree-optimization/47555
11003         Revert
11004         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11005
11006         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11007
11008 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11009
11010         PR gcc/46692
11011         * config/lm32/t-lm32: Add multilib for all CPU options.
11012
11013 2011-02-01  Richard Guenther  <rguenther@suse.de>
11014
11015         PR tree-optimization/47541
11016         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11017         sure to have a field at offset zero.
11018
11019 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11020
11021         * config/arc/arc.opt (EB, EL): New Driver options.
11022
11023 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11024
11025         * config/alpha/osf5.opt: New.
11026         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11027
11028 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11029
11030         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11031
11032 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11033
11034         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11035         -floop-interchange.
11036         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11037         is an alias of -floop-interchange and that it requires the
11038         Graphite infrastructure.
11039         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11040         flag_loop_interchange based on the value of flag_tree_loop_linear.
11041
11042 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11043             Richard Guenther  <rguenther@suse.de>
11044
11045         PR tree-optimization/47538
11046         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11047         type instead of r1type, except for comparisons.  For right
11048         shifts and comparisons punt if there are mismatches in
11049         sizetype vs. non-sizetype types.
11050
11051 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11052
11053         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11054         avx_runtime.
11055
11056 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11057
11058         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11059         version number.
11060         * configure: Regenerate.
11061
11062 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11063
11064         * configure.ac (gcc_cv_ld_static_option): Define.
11065         (gcc_cv_ld_dynamic_option): Define.
11066         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11067         instead.
11068         (HAVE_LD_STATIC_DYNAMIC): Update message.
11069         (LD_STATIC_OPTION): Define.
11070         (LD_DYNAMIC_OPTION): Define.
11071         * configure: Regenerate.
11072         * config.in: Regenerate.
11073         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11074         HAVE_LD_STATIC_DYNAMIC]: Use them.
11075
11076 2011-01-31  Nick Clifton  <nickc@redhat.com>
11077
11078         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11079         registers inside interrupt handlers if the handler is not a leaf
11080         function.
11081
11082 2011-01-31  Nick Clifton  <nickc@redhat.com>
11083
11084         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11085         reg_renumber returning an INVALID_REGNUM.
11086
11087 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11088
11089         PR libgcj/44341
11090         * doc/install.texi: Document host options discarded when cross
11091         configuring target libraries.
11092
11093 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11094
11095         Reverted:
11096         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11097         PR debug/45136
11098         PR debug/45130
11099         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11100         debug insns.
11101         (no_real_insns_p, schedule_block, set_priorities): Drop special
11102         treatment of boundary debug insns.
11103         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11104         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11105         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11106         (BOUNDARY_DEBUG_INSN_P): Likewise.
11107         (SCHEDULE_DEBUG_INSN_P): Likewise.
11108         * sched-rgn.c (init_ready_list): Drop special treatment of
11109         boundary debug insns.
11110         * final.c (rest_of_clean-state): Clear notes' BB.
11111
11112 2011-01-31  Alan Modra  <amodra@gmail.com>
11113
11114         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11115         toc relative expressions as we do in print_operand_address.
11116
11117 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11118
11119         * doc/extend.texi: Follow spelling conventions.
11120         * doc/invoke.texi: Fix a typo.
11121
11122 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11123
11124         * config/hpux11.opt: New.
11125         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11126         ia64*-*-hpux*): Use hpux11.opt.
11127
11128 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11129
11130         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11131         to tmake_file.
11132
11133 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11134
11135         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11136         support sites.
11137
11138 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11139
11140         * doc/install.texi (Binaries): Remove outdated reference for
11141         Motorola 68HC11/68HC12 downloads.
11142
11143 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11144
11145         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11146         Drepper's paper.
11147
11148 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11149
11150         PR bootstrap/47147
11151         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11152         used by NetBSD.
11153
11154 2011-01-28  Ahmad Sharif  <asharif@google.com>
11155
11156         * value-prof.c (check_counter): Corrected error message.
11157
11158 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11159
11160         * config/arm/arm.c (arm_legitimize_reload_address): New.
11161         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11162         arm_legitimize_reload_address.
11163         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11164
11165 2011-01-28  Ian Lance Taylor  <iant@google.com>
11166
11167         * godump.c (go_define): Ignore macros whose definitions include
11168         two adjacent operands.
11169
11170 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11171
11172         PR target/42894
11173         * varasm.c (force_const_mem): Store copy of x in desc->constant
11174         instead of x itself.
11175         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11176         itself into REG_EQUAL note.
11177
11178 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11179
11180         * config/freebsd.opt (posix, rdynamic): New Driver options.
11181
11182 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11183
11184         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11185         -Bstatic/-Bdynamic.
11186         * configure: Regenerate.
11187
11188 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
11189
11190         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11191         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11192
11193 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
11194
11195         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11196         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11197         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11198         (s390_preferred_reload_class): Make static. Change return and
11199         'rclass' argument type to reg_class_t.
11200
11201 2011-01-27  Jan Hubicka  <jh@suse.cz>
11202
11203         PR middle-end/46949
11204         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11205         (process_function_and_variable_attributes): Check defined weakrefs.
11206
11207 2011-01-27  Martin Jambor  <mjambor@suse.cz>
11208
11209         PR tree-optimization/47228
11210         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11211         build_ref_for_offset.
11212
11213 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11214
11215         * config/spu/spu-elf.h (ASM_SPEC): Remove.
11216
11217 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
11218
11219         PR rtl-optimization/46856
11220         * postreload.c (reload_combine_recognize_const_pattern): Do not
11221         separate cc0 setter and user on cc0 targets.
11222
11223 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
11224
11225         PR c/43082
11226         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11227         passed a VOID_TYPE expression, immediately emit an error and
11228         return error_mark_node.
11229
11230 2011-01-26  Jeff Law  <law@redhat.com>
11231
11232         PR rtl-optimization/47464
11233         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11234         rather than may_trap_p as needed.
11235
11236 2011-01-26  DJ Delorie  <dj@redhat.com>
11237
11238         PR rtl-optimization/46878
11239         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11240         setter/user dependency as well.
11241
11242 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11243
11244         PR rtl-optimization/44469
11245         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11246         after removing trivially dead basic blocks.
11247
11248 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11249
11250         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11251         * config/frv/frv.h (LINK_SPEC): Likewise.
11252         * config/i386/netware.h (LINK_SPEC): Likewise.
11253         * config/m68k/linux.h (ASM_SPEC): Likewise.
11254         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11255         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11256         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11257         * config/sparc/linux.h (ASM_SPEC): Likewise.
11258         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11259         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11260
11261 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11262
11263         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11264         * config/frv/frv.h (ASM_SPEC): Likewise.
11265         * config/m68k/linux.h (ASM_SPEC): Likewise.
11266         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11267         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11268         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11269         * config/sparc/linux.h (ASM_SPEC): Likewise.
11270         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11271         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11272
11273 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11274
11275         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11276         * config/frv/frv.h (LINK_SPEC): Likewise.
11277         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11278
11279 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11280
11281         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11282         * config/frv/frv.h (ASM_SPEC): Likewise.
11283         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11284         * config/m68k/linux.h (ASM_SPEC): Likewise.
11285         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11286         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11287         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11288         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11289         * config/sparc/linux.h (ASM_SPEC): Likewise.
11290         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11291         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11292         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11293
11294 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
11295
11296         PR target/46997
11297         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11298         (*mux2): Ditto.
11299         (vec_extract_evenodd_help): Ditto.
11300         (vec_extract_evenv4hi): Ditto.
11301         (vec_extract_oddv4hi): Ditto.
11302         (vec_interleave_lowv2si): Ditto.
11303         (vec_interleave_highv2si): Ditto.
11304         (vec_extract_evenv2si): Ditto.
11305         (vec_extract_oddv2si: Ditto.
11306         (vec_pack_trunc_v2si): Ditto.
11307
11308 2011-01-22  Jan Hubicka  <jh@suse.cz>
11309
11310         PR target/47237
11311         * cgraph.h (cgraph_local_info): New field can_change_signature.
11312         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11313         signature can change.
11314         (ipcp_estimate_growth): Call sequence simplify only if calle signature
11315         can change.
11316         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11317         (cgraph_function_versioning): We can not change signature of functions
11318         that don't allow that.
11319         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11320         (lto_input_node): Likewise.
11321         * ipa-inline.c (compute_inline_parameters): Compute
11322         local.can_change_signature.
11323         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11324         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11325         functions that can not change signature.
11326         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11327         init_cumulative_args): Do not use local calling conventions
11328         for functions that can not change signature.
11329
11330 2011-01-22  Jan Hubicka  <jh@suse.cz>
11331
11332         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11333
11334 2011-01-26  Richard Guenther  <rguenther@suse.de>
11335
11336         PR tree-optimization/47190
11337         * cgraphunit.c (process_common_attributes): New function.
11338         (process_function_and_variable_attributes): Use it.
11339
11340 2011-01-26  Richard Guenther  <rguenther@suse.de>
11341
11342         PR lto/47423
11343         * cgraphbuild.c (record_eh_tables): Record reference to personality
11344         function.
11345
11346 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
11347
11348         PR debug/45454
11349         * sel-sched.c (moveup_expr): Don't let debug insns prevent
11350         non-debug insns from moving up.
11351
11352 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11353
11354         PR target/40125
11355         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11356         t-dlldir{,-x} fragment for build and add it to tmake_file.
11357         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11358         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11359         * config/i386/t-dlldir: New file.
11360         (SHLIB_DLLDIR): Define.
11361         * config/i386/t-dlldir-x: New file.
11362         (SHLIB_DLLDIR): Define.
11363         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11364         (SHLIB_INSTALL): Use it.
11365
11366 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
11367
11368         PR target/47246
11369         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11370         lower bound of the allowed Thumb-2 coprocessor load/store
11371         index range to -256. Add explaining comment.
11372
11373 2011-01-25  Ian Lance Taylor  <iant@google.com>
11374
11375         * godump.c (go_define): Improve lexing of macro expansion to only
11376         accept expressions which match Go spec.
11377
11378 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11379
11380         PR c++/43601
11381         * tree.c (handle_dll_attribute): Handle it.
11382         * doc/extend.texi (@item dllexport): Mention it.
11383         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11384
11385 2011-01-25  Ian Lance Taylor  <iant@google.com>
11386
11387         PR tree-optimization/26854
11388         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11389         (decl_jump_unsafe): Move higher in file, with no other change.
11390         (bind): Set has_jump_unsafe_decl if appropriate.
11391         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11392         (check_earlier_gotos): Likewise.
11393         (c_check_switch_jump_warnings): Likewise.
11394
11395 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
11396
11397         * doc/invoke.texi (Warning Options): Add missing hyphen.
11398         (-fprofile-dir): Minor grammatical fixes.
11399         (-fbranch-probabilities): Likewise.
11400
11401 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11402
11403         PR debug/45136
11404         PR debug/45130
11405         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11406         debug insns.
11407         (no_real_insns_p, schedule_block, set_priorities): Drop special
11408         treatment of boundary debug insns.
11409         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11410         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11411         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11412         (BOUNDARY_DEBUG_INSN_P): Likewise.
11413         (SCHEDULE_DEBUG_INSN_P): Likewise.
11414         * sched-rgn.c (init_ready_list): Drop special treatment of
11415         boundary debug insns.
11416         * final.c (rest_of_clean-state): Clear notes' BB.
11417
11418 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11419
11420         * Makefile.in (LAMBDA_H): Removed.
11421         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11422         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11423         lambda-trans.o, and tree-loop-linear.o.
11424         (lto-symtab.o): Remove dependence on LAMBDA_H.
11425         (tree-loop-linear.o): Remove rule.
11426         (lambda-mat.o): Same.
11427         (lambda-trans.o): Same.
11428         (lambda-code.o): Same.
11429         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11430         (tree-vect-slp.o): Same.
11431         * hwint.h (gcd): Moved here.
11432         (least_common_multiple): Same.
11433         * lambda-code.c: Removed.
11434         * lambda-mat.c: Removed.
11435         * lambda-trans.c: Removed.
11436         * lambda.h: Removed.
11437         * tree-loop-linear.c: Removed.
11438         * lto-symtab.c: Do not include lambda.h.
11439         * omega.c (gcd): Removed.
11440         * passes.c (init_optimization_passes): Remove pass_linear_transform.
11441         * tree-data-ref.c (print_lambda_vector): Moved here.
11442         (lambda_vector_copy): Same.
11443         (lambda_matrix_copy): Same.
11444         (lambda_matrix_id): Same.
11445         (lambda_vector_first_nz): Same.
11446         (lambda_matrix_row_add): Same.
11447         (lambda_matrix_row_exchange): Same.
11448         (lambda_vector_mult_const): Same.
11449         (lambda_vector_negate): Same.
11450         (lambda_matrix_row_negate): Same.
11451         (lambda_vector_equal): Same.
11452         (lambda_matrix_right_hermite): Same.
11453         * tree-data-ref.h: Do not include lambda.h.
11454         (lambda_vector): Moved here.
11455         (lambda_matrix): Same.
11456         (dependence_level): Same.
11457         (lambda_transform_legal_p): Removed declaration.
11458         (lambda_collect_parameters): Same.
11459         (lambda_compute_access_matrices): Same.
11460         (lambda_vector_gcd): Same.
11461         (lambda_vector_new): Same.
11462         (lambda_vector_clear): Same.
11463         (lambda_vector_lexico_pos): Same.
11464         (lambda_vector_zerop): Same.
11465         (lambda_matrix_new): Same.
11466         * tree-flow.h (least_common_multiple): Removed declaration.
11467         * tree-parloops.c (lambda_trans_matrix): Moved here.
11468         (LTM_MATRIX): Same.
11469         (LTM_ROWSIZE): Same.
11470         (LTM_COLSIZE): Same.
11471         (LTM_DENOMINATOR): Same.
11472         (lambda_trans_matrix_new): Same.
11473         (lambda_matrix_vector_mult): Same.
11474         (lambda_transform_legal_p): Same.
11475         * tree-pass.h (pass_linear_transform): Removed declaration.
11476         * tree-ssa-loop.c (tree_linear_transform): Removed.
11477         (gate_tree_linear_transform): Removed.
11478         (pass_linear_transform): Removed.
11479         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11480         flag_loop_interchange.
11481
11482 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11483
11484         PR tree-optimization/47265
11485         PR tree-optimization/47443
11486         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11487         if name still has some uses.
11488
11489 2011-01-25  Martin Jambor  <mjambor@suse.cz>
11490
11491         PR tree-optimization/47382
11492         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11493         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11494
11495 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
11496
11497         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11498         sjlj_except_unwind_info.
11499
11500 2011-01-25  Richard Guenther  <rguenther@suse.de>
11501
11502         PR tree-optimization/47426
11503         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11504         visible functions results escape.
11505
11506 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11507
11508         PR target/45701
11509         * config/arm/arm.c (any_sibcall_uses_r3): New function.
11510         (arm_get_frame_offsets): Use it.
11511
11512 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11513             Jakub Jelinek  <jakub@redhat.com>
11514
11515         PR tree-optimization/47271
11516         * tree-if-conv.c (bb_postdominates_preds): New.
11517         (if_convertible_bb_p): Call bb_postdominates_preds.
11518         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11519         (predicate_scalar_phi): Call bb_postdominates_preds.
11520
11521 2011-01-25  Nick Clifton  <nickc@redhat.com>
11522
11523         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11524         * config/rx/rx.c (rx_function_value): Likewise.
11525         (rx_promote_function_mode): Likewise.
11526         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11527         in order to make it legitimate.
11528         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11529         make sure that the first operand is the same as the result register.
11530         (addsi3_unspec): Delete.
11531         (subdi3): Do not accept immediate operands.
11532         (subdi3_internal): Likewise.
11533
11534 2011-01-25  Jeff Law  <law@redhat.com>
11535
11536         PR rtl-optimization/37273
11537         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11538         handle them like argument loads from stack slots.  Do not double
11539         count memory for memory constants and argument loads from stack slots.
11540
11541 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11542
11543         PR tree-optimization/47427
11544         PR tree-optimization/47428
11545         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11546         coalesce if the new root var would be TREE_READONLY.
11547
11548 2011-01-25  Richard Guenther  <rguenther@suse.de>
11549
11550         PR middle-end/47414
11551         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11552         correct type for TBAA.
11553
11554 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11555
11556         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11557         (close_phi_written_to_memory): Call for_each_index with
11558         dr_indices_valid_in_loop.
11559
11560 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11561
11562         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11563         when it is initialized.
11564
11565 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11566
11567         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11568         call to graphite_find_data_references_in_stmt.
11569         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11570         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
11571         call to graphite_find_data_references_in_stmt.
11572         (analyze_drs_in_stmts): Same.
11573         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11574         in which the scalar analysis of indices is performed.
11575         (create_data_ref): Same.  Update call to dr_analyze_indices.
11576         (find_data_references_in_stmt): Update call to create_data_ref.
11577         (graphite_find_data_references_in_stmt): Same.
11578         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11579         declaration.
11580         (create_data_ref): Same.
11581         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11582         call to create_data_ref.
11583
11584 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11585
11586         * graphite-sese-to-poly.c (build_poly_scop): Move
11587         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11588
11589 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11590
11591         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11592         VAR_DECL, PARM_DECL, and RESULT_DECL.
11593
11594 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11595
11596         * graphite-dependences.c (reduction_dr_1): Allow several reductions
11597         in a reduction PBB.
11598         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11599         that have already been marked as PBB_IS_REDUCTION.
11600
11601 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11602
11603         * graphite-scop-detection.c (same_close_phi_node): New.
11604         (remove_duplicate_close_phi): New.
11605         (make_close_phi_nodes_unique): New.
11606         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11607
11608 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11609
11610         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11611         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11612         of both data references to be the same.
11613
11614 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11615
11616         * graphite-dependences.c (build_lexicographical_constraint): Remove
11617         the gdim parameter.
11618         (build_lexicographical_constraint): Adjust call to
11619         ppl_powerset_is_empty.
11620         (dependence_polyhedron): Same.
11621         (graphite_legal_transform_dr): Same.
11622         (graphite_carried_dependence_level_k): Same.
11623         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11624         parameter.
11625         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11626
11627 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11628
11629         * graphite-sese-to-poly.c
11630         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11631         (close_phi_written_to_memory): New.
11632         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11633         and unshare_expr.
11634
11635 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11636
11637         * doc/install.texi: Update the expected version number of PPL to 0.11.
11638         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11639         #if PPL_VERSION_MINOR < 11.
11640
11641 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11642
11643         * graphite-dependences.c: Include graphite-cloog-util.h.
11644         (new_poly_ddr): Inlined into dependence_polyhedron.
11645         (free_poly_ddr): Moved close by new_poly_ddr.
11646         (dependence_polyhedron_1): Renamed dependence_polyhedron.
11647         Early return NULL when ppl_powerset_is_empty returns true.
11648         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
11649         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
11650         (graphite_legal_transform_dr): Call new_poly_ddr.
11651         (graphite_carried_dependence_level_k): Same.
11652         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
11653         (dot_transformed_deps_stmt_1): Removed.
11654         (dot_deps_stmt_1): Call dot_deps_stmt_2.
11655         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
11656         (dot_deps_1): Call dot_deps_2.
11657         * Makefile.in (graphite-dependences.o): Add missing dependence on
11658         graphite-cloog-util.h.
11659
11660 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11661
11662         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11663         (build_lexicographical_constraint): Same.
11664         (dependence_polyhedron_1): Same.
11665         (graphite_legal_transform_dr): Same.
11666         (graphite_carried_dependence_level_k): Same.
11667         * graphite-ppl.c (ppl_powerset_is_empty): New.
11668         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11669         * tree-data-ref.c (dump_data_reference): Print the basic block index.
11670
11671 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11672
11673         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11674         the "a followed by b" relation and document it.
11675
11676 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11677
11678         * graphite-dependences.c (build_lexicographical_constraint): Stop the
11679         iteration when the bag of constraints is empty.
11680
11681 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11682
11683         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11684
11685 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11686
11687         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11688         nest and two loop depths as parameters.
11689         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11690         lst_perfect_nestify.
11691
11692 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11693
11694         * graphite-dependences.c (print_pddr): Call
11695         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11696
11697 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11698
11699         * graphite-ppl.c (debug_gmp_value): New.
11700         * graphite-ppl.h (debug_gmp_value): Declared.
11701
11702 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
11703
11704         * doc/install.texi: Document availability of cloog-0.16.
11705
11706 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
11707
11708         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11709         invalid postdominance info.
11710
11711 2011-01-24  Jan Hubicka  <jh@suse.cz>
11712
11713         PR c/21659
11714         * doc/extend.texi (weak pragma): Drop claim that it must
11715         appear before definition.
11716         * varasm.c (merge_weak, declare_weak): Only sanity check
11717         that DECL is not output at a time it is declared weak.
11718
11719 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
11720
11721         * machmode.def: Fixed comments.
11722
11723 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
11724
11725         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11726
11727 2011-01-24  Paul Koning  <ni1d@arrl.net>
11728
11729         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11730         WORDS_BIG_ENDIAN.
11731
11732 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
11733
11734         PR target/46519
11735         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11736         (block_info): Add scanned and prev.
11737         (move_or_delete_vzeroupper_2): Return if the basic block
11738         has been scanned and the upper 128bit state is unchanged
11739         from the last scan.
11740         (move_or_delete_vzeroupper_1): Return true if the exit
11741         state is changed.
11742         (move_or_delete_vzeroupper): Visit basic blocks using the
11743         work-list based algorithm based on vt_find_locations in
11744         var-tracking.c.
11745
11746         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11747
11748 2011-01-24  Nick Clifton  <nickc@redhat.com>
11749
11750         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11751         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11752         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
11753         then define __v850e1__.
11754         * doc/invoke.texi: Document -mv850es.
11755
11756 2011-01-24  Richard Henderson  <rth@redhat.com>
11757
11758         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11759         compound unordered comparisons.
11760         * config/rx/rx.c (rx_split_fp_compare): Remove.
11761         * config/rx/rx-protos.h: Update.
11762         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11763         (cbranchsf4): Don't call rx_split_fp_compare.
11764         (*cbranchsf4): Use rx_split_cbranch.
11765         (*cmpsf): Don't accept "i" constraint.
11766         (*conditional_branch): Only valid after reload.
11767         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
11768
11769 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11770
11771         PR target/47385
11772         * config/rs6000/altivec.md (vector constant splitters): Add
11773         support for creating vector single precision constants if -mvsx is
11774         used and we would create the constant using Altivec primitives.
11775
11776 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
11777             Richard Sandiford  <rdsandiford@googlemail.com>
11778
11779         PR rtl-optimization/47166
11780         * reload1.c (emit_reload_insns): Disable the spill_reg_store
11781         mechanism for PRE_MODIFY and POST_MODIFY.
11782         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
11783         reloadreg.
11784
11785 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
11786
11787         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
11788
11789 2011-01-22  Jan Hubicka  <jh@suse.cz>
11790
11791         PR lto/47333
11792         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
11793
11794 2011-01-22  Jan Hubicka  <jh@suse.cz>
11795
11796         PR tree-optimization/43884
11797         PR lto/44334
11798         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
11799         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
11800
11801 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
11802
11803         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11804         * config/s390/s390.c (s390_register_move_cost,
11805         s390_memory_move_cost): New.
11806         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11807
11808 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11809
11810         PR middle-end/47401
11811         * except.c (sjlj_assign_call_site_values): Move setting the
11812         crtl->uses_eh_lsda flag to ...
11813         (sjlj_mark_call_sites): ... here.
11814         (sjlj_emit_function_enter): Support NULL dispatch label.
11815         (sjlj_build_landing_pads): In a function with no landing pads
11816         that still has must-not-throw regions, generate code to register
11817         a personality function with empty LSDA.
11818
11819 2011-01-21  Richard Henderson  <rth@redhat.com>
11820
11821         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
11822
11823         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
11824
11825         * compare-elim.c: New file.
11826         * Makefile.in (OBJS-common): Add it.
11827         (compare-elim.o): New.
11828         * common.opt (fcompare-elim): New.
11829         * opts.c (default_options_table): Add OPT_fcompare_elim.
11830         * tree-pass.h (pass_compare_elim_after_reload): New.
11831         * passes.c (init_optimization_passes): Add it.
11832         * recog.h: Protect against re-inclusion.
11833         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
11834         * doc/invoke.texi (-fcompare-elim): Document it.
11835         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
11836         * doc/tm.texi: Rebuild.
11837
11838 2011-01-22  Nick Clifton  <nickc@redhat.com>
11839
11840         * config/rx/rx.md (cstoresf4): Pass comparison operator to
11841         rx_split_fp_compare.
11842
11843 2011-01-22  Nick Clifton  <nickc@redhat.com>
11844
11845         * config/rx/rx.md (UNSPEC_CONST): New.
11846         (deallocate_and_return): Wrap the amount popped off the stack in
11847         an UNSPEC_CONST in order to stop it being rejected by
11848         -mmax-constant-size.
11849         (pop_and_return): Add a "(return)" rtx.
11850         (call): Drop the immediate operand.
11851         (call_internal): Likewise.
11852         (call_value): Likewise.
11853         (call_value_internal): Likewise.
11854         (sibcall_internal): Likewise.
11855         (sibcall_value_internal): Likewise.
11856         (sibcall): Likewise.  Generate an explicit call using
11857         sibcall_internal.
11858         (sibcall_value): Likewise.
11859         (mov<>): FAIL if a constant operand is not legitimate.
11860         (addsi3_unpsec): New pattern.
11861
11862         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
11863         (ok_for_max_constant): New function.
11864         (gen_safe_add): New function.
11865         (rx_expand_prologue): Use gen_safe_add.
11866         (rx_expand_epilogue): Likewise.
11867         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
11868         UNSPEC CONSTs.
11869
11870 2011-01-21  Jeff Law  <law@redhat.com>
11871
11872         PR tree-optimization/47053
11873         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
11874         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
11875         statements are deleted.
11876         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
11877         is nonempty, then purge dead edges and cleanup the CFG.
11878
11879 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
11880
11881         PR debug/47402
11882         Temporarily revert:
11883         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
11884         PR debug/47106
11885         * tree-dfa.c (create_var_ann): Mark variable as used.
11886
11887 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
11888
11889         PR middle-end/45566
11890         * except.c (convert_to_eh_region_ranges): Emit queued no-region
11891         notes from other section in hot/cold partitioning even if
11892         last_action is -3.  Increment call_site_base.
11893
11894         PR rtl-optimization/47366
11895         * fwprop.c (forward_propagate_into): Return bool.  If
11896         any changes are made, -fnon-call-exceptions is used and
11897         REG_EH_REGION note is present, call purge_dead_edges
11898         and return true if it purged anything.
11899         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
11900         any EH edges were purged.
11901
11902 2011-01-21  Jeff Law  <law@redhat.com>
11903
11904         PR rtl-optimization/41619
11905         * caller-save.c (setup_save_areas): Break out code to determine
11906         which hard regs are live across calls by examining the reload chains
11907         so that it is always used.
11908         Eliminate code which checked REG_N_CALLS_CROSSED.
11909
11910 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
11911
11912         PR tree-optimization/47355
11913         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
11914         NOP has non-debug uses beyond PHIs in new_bb.
11915
11916 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
11917
11918         PR debug/47106
11919         * cfgexpand.c (account_used_vars_for_block): Only account vars
11920         that are annotated as used.
11921         (estimated_stack_frame_size): Don't set TREE_USED.
11922         * tree-dfa.c (create_var_ann): Mark variable as used.
11923
11924 2011-01-21  Richard Guenther  <rguenther@suse.de>
11925
11926         PR middle-end/47395
11927         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
11928
11929 2011-01-21  Richard Guenther  <rguenther@suse.de>
11930
11931         PR tree-optimization/47365
11932         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
11933         (vn_reference_lookup_pieces): Adjust.
11934         (vn_reference_lookup): Likewise.
11935         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
11936         (vn_reference_lookup_3): Only look through kills if in
11937         VN_WALKREWRITE mode.
11938         (vn_reference_lookup_pieces): Adjust.
11939         (vn_reference_lookup): Likewise.
11940         (visit_reference_op_load): Likewise.
11941         (visit_reference_op_store): Likewise.
11942         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
11943         (compute_avail): Likewise.
11944         (eliminate): Likewise.
11945
11946 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
11947
11948         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
11949         DECL_IGNORED_P non-reg vars if they are used.
11950
11951         PR tree-optimization/47391
11952         * varpool.c (const_value_known_p): Return false if
11953         decl is volatile.
11954
11955 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
11956
11957         PR bootstrap/47215
11958         * config/i386/i386.c (ix86_local_alignment): Handle
11959         case for va_list_type_node is nil.
11960         (ix86_canonical_va_list_type): Likewise.
11961
11962 2011-01-21  Alan Modra  <amodra@gmail.com>
11963
11964         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
11965         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
11966
11967 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11968
11969         * config/arm/arm.md (define_attr type): Rename f_load
11970         and f_store to f_fpa_load and f_fpa_store. Update.
11971         (write_conflict): Deal with rename fallout.
11972         (*push_fp_multi): Likewise.
11973         * config/arm/fpa.md (f_load): Use f_fpa_load.
11974         (f_store): Use f_fpa_store.
11975         (*movsf_fpa): Likewise.
11976         (*movdf_fpa): Likewise.
11977         (*movxf_fpa): Likewise.
11978         (*thumb2_movsf_fpa): Likewise.
11979         (*thumb2_movdf_fpa): Likewise.
11980         (*thumb2_movxf_fpa): Likewise.
11981         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
11982         f_loadd and f_stored.
11983         (*thumb2_movdi_vfp): Likewise.
11984         (*thumb2_movsf_vfp): Fix attribute to f_loads.
11985         (*thumb2_movsi_vfp): Likewise.
11986         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
11987         Use f_loads instead of f_load.
11988         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
11989
11990 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
11991
11992         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11993         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
11994         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11995         (xtensa_mode_dependent_address_p): New function.
11996         (constantpool_address_p): Make static. Change return type to bool.
11997         Change argument type to const_rtx. Use CONST_INT_P predicate.
11998
11999 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12000
12001         PR debug/46583
12002         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12003
12004 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12005
12006         PR debug/47283
12007         * cfgexpand.c (expand_debug_expr): Instead of generating
12008         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12009         etc. handling.
12010
12011 2011-01-20  Richard Guenther  <rguenther@suse.de>
12012
12013         PR middle-end/47370
12014         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12015         the pointer operand of MEM_REFs.
12016
12017 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12018
12019         PR tree-optimization/46130
12020         * ipa-split.c (consider_split): If return_bb contains non-virtual
12021         PHIs other than for retval or if split_function would not adjust it,
12022         refuse to split.
12023
12024 2011-01-20  Richard Guenther  <rguenther@suse.de>
12025
12026         PR tree-optimization/47167
12027         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12028         Revert previous change, only avoid enumeral type changes.
12029
12030 2011-01-19  Mike Stump  <mikestump@comcast.net>
12031
12032         * doc/tm.texi.in (BRANCH_COST): Englishify.
12033         * doc/tm.texi (BRANCH_COST): Likewise.
12034
12035 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12036
12037         PR c++/47291
12038         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12039         (gen_scheduled_generic_parms_dies): New functions.
12040         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12041         generation for the end of CU compilation.
12042         (dwarf2out_finish): Generate template parameters DIEs here.
12043
12044 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12045
12046         PR debug/46240
12047         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12048         debug bind stmt on merge edges.
12049
12050 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12051
12052         PR debug/47079
12053         PR debug/46724
12054         * function.c (instantiate_expr): Instantiate incoming rtl of
12055         implicit arguments, and recurse on VALUE_EXPRs.
12056         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12057         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12058
12059 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12060
12061         * c-parser.c (c_parser_for_statement): Initialize
12062         collection_expression.
12063
12064 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12065
12066         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12067
12068 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12069
12070         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12071         (LINK_SHLIB_SPEC): Don't use %(link_path).
12072         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12073
12074 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12075
12076         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12077         (NO_SHARED_LIB_SUPPORT): Remove.
12078         (LINK_SHLIB_SPEC): Remove one conditional definition.
12079
12080 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12081
12082         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12083         %{call_shared}.
12084         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12085         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12086         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12087         %{call_shared} and conditionals on these options not being passed.
12088         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12089         %{call_shared}.
12090
12091 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12092
12093         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12094         simplify.
12095
12096         * ipa-split.c: Spelling fixes.
12097
12098 2011-01-19  Richard Henderson  <rth@redhat.com>
12099
12100         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12101         (*mulsi3): Likewise.
12102
12103         * longlong.h [__mn10300__] (count_leading_zeros): New.
12104         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12105         [__mn10300__] (add_ssaaaa, subddmmss): New.
12106         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12107         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12108
12109 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12110
12111         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12112
12113 2011-01-19  Richard Henderson  <rth@redhat.com>
12114
12115         * config/mn10300/mn10300.md (addsi3_flags): New.
12116         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12117         (subsi3_flags, subc_internal, subdi3): New.
12118         (subdi3_internal, *subdi3_degenerate): New.
12119         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12120
12121         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12122         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12123         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12124         * config/mn10300/mn10300-protos.h: Update.
12125         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12126         (return_ret): Likewise.  Rename from return_internal_regs.
12127         (return_internal): Remove.
12128
12129         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12130         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12131         (mn10300_legitimate_constant_p): Likewise.
12132         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12133         (mn10300_frame_size): New.
12134         (mn10300_expand_prologue): Use it.
12135         (mn10300_expand_epilogue): Likewise.
12136         (mn10300_initial_offset): Likewise.
12137         * config/mn10300/mn10300-protos.h: Update.
12138         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12139         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12140         (prologue, epilogue, return_internal): Tidy output code.
12141         (mn10300_store_multiple_operation, return): Likewise.
12142         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12143         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12144         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12145         (load_pic, am33_load_pic): New.
12146         (mn10300_load_pic0, mn10300_load_pic1): New.
12147
12148         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12149         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12150         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12151         (cc_flags_for_mode, cc_flags_for_code): New.
12152         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12153         overflow flag is not valid.  Validate that the flags we need
12154         for the comparison are valid.
12155         (mn10300_output_cmp): Remove.
12156         (mn10300_output_add): New.
12157         (mn10300_select_cc_mode): Use cc_flags_for_code.
12158         (mn10300_split_cbranch): New.
12159         (mn10300_match_ccmode): New.
12160         (mn10300_split_and_operand_count): New.
12161         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12162         to the function.
12163         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12164         (addsi3): ... here.  Use mn10300_output_add.
12165         (*addsi3_flags): New.
12166         (*am33_subsi3, *mn10300_subsi3): Merge...
12167         (subsi3): ... here.  Use attribute isa.
12168         (*subsi3_flags): New.
12169         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12170         when possible.
12171         (*am33_andsi3, *mn10300_andsi3): Merge...
12172         (andsi3): ... here.
12173         (*andsi3_flags): New.
12174         (andsi3 splitters): New.
12175         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12176         (iorsi3): ... here.
12177         (*iorsi3_flags): New.
12178         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12179         (xorsi3): ... here.
12180         (*xorsi3_flags): New.
12181         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12182         (one_cmplsi2): ... here.
12183         (*one_cmplsi2_flags): New.
12184         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
12185         instead of "dax" in constraints.  Use mn10300_split_cbranch.
12186         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
12187         use matching constraints to eliminate a self-comparison.
12188         (*integer_conditional_branch): Rename from integer_conditional_branch.
12189         Use int_mode_flags to match CC_REG.
12190         (*cbranchsi4_btst, *btstsi): New.
12191         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
12192         mn10300_split_cbranch.
12193         (*am33_cmpsf): Rename from am33_cmpsf.
12194         (*float_conditional_branch): Rename from float_conditional_branch.
12195         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12196         (zero_extendqisi2): ... here.
12197         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12198         (zero_extendhisi2): ... here.
12199         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12200         (extendqisi2): ... here.
12201         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12202         (extendhisi2): ... here.
12203         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12204         (ashlsi3): ... here.
12205         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12206         (lshrsi3): ... here.
12207         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12208         (ashrsi3): ... here.
12209         (consecutive add peephole): Remove.
12210         * config/mn10300/predicates.md (label_ref_operand): New.
12211         (int_mode_flags): New.
12212         (CCZN_comparison_operator): New.
12213
12214         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12215         (throughput_42_latency_43): New reservation.
12216         (mulsidi3, umulsidi3): New expanders.
12217         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
12218         the MDR register to allocation; separately allocate the low and
12219         high parts of the DImode result.
12220         (umulsidi3_internal): Similarly.
12221         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12222         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
12223         (udivsi3, umodsi3): Remove.
12224         (udivmodsi4, divmodsi4): New expanders.
12225         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
12226         (*divmodsi4): Simiarly.
12227         (ext_internal): New.
12228
12229         * config/mn10300/constraints.md ("z"): New constraint.
12230         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12231         (FIXED_REGISTERS): Don't fix MDR.
12232         (CALL_USED_REGSITERS): Reformat nicely.
12233         (REG_ALLOC_ORDER): Add MDR.
12234         (enum regclass): Add MDR_REGS.
12235         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12236         (IRA_COVER_CLASSES): Add MDR_REGS.
12237         (REGNO_REG_CLASS): Handle MDR_REG.
12238         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12239         (mn10300_register_move_cost): Likewise.
12240         * config/mn10300/mn10300.md (MDR_REG): New.
12241         (*movsi_internal): Handle moves to/from MDR_REGS.
12242
12243         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12244         POST_MODIFY.
12245         (mn10300_secondary_reload): Tidy combination reload classes.
12246         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12247         addresses for AM33.  Allow symbolic offsets for reg+imm.
12248         (mn10300_regno_in_class_p): New.
12249         (mn10300_legitimize_reload_address): New.
12250         * config/mn10300/mn10300.h (enum reg_class): Remove
12251         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12252         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
12253         SP_OR_GENERAL_REGS.
12254         (REG_CLASS_NAMES): Update to match.
12255         (REG_CLASS_CONTENTS): Likewise.
12256         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12257         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12258         (REGNO_IN_RANGE_P): Remove.
12259         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12260         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12261         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12262         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12263         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12264         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12265         (REGNO_GENERAL_P): New.
12266         (HAVE_POST_MODIFY_DISP): New.
12267         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12268         (LEGITIMIZE_RELOAD_ADDRESS): New.
12269         * config/mn10300/mn10300-protos.h: Update.
12270
12271         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12272         DATA_REGS for AM33 stack-pointer destination.
12273         (mn10300_preferred_output_reload_class): Likewise.
12274         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12275         into a form appropriate for ...
12276         (TARGET_SECONDARY_RELOAD): New.
12277         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12278         * config/mn10300/mn10300-protos.h: Update.
12279         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12280         reload_insi; use the "A" constraint for the scratch; handle AM33
12281         moves of sp to non-address registers.
12282
12283         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12284         (*movqi_internal): ... here.
12285         (*am33_movhi, *mn10300_movhi): Merge into...
12286         (*movhi_internal): ... here.
12287         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
12288         as the source/destination of moves from/to SP.
12289         (movsf): Only allow for AM33-2.
12290         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12291         any integer constant constraint.  Only allow for AM33-2.  Tidy
12292         all of the alternative outputs.
12293         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12294         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
12295         for MN103.
12296         (udivsi3, umodsi3): New patterns for MN103 only.
12297
12298 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
12299
12300         * doc/tm.texi.in: Spell out that a lack of register class unions
12301         can lead to ICEs.
12302         * doc/tm.texi: Regenerate.
12303
12304 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12305
12306         PR rtl-optimization/47337
12307         * dce.c (check_argument_store): New function.
12308         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
12309
12310         PR tree-optimization/47290
12311         * tree-eh.c (infinite_empty_loop_p): New function.
12312         (cleanup_empty_eh): Use it.
12313
12314 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
12315
12316         PR target/46997
12317         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12318         (a64_expand_widen_sum): Ditto.
12319         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12320         (vec_extract_evenodd_help): Ditto.
12321         (vec_extract_evenv4hi): Ditto.
12322         (vec_extract_oddv4hi): Ditto.
12323         (vec_extract_evenv2si): Ditto.
12324         (vec_extract_oddv2si): Ditto.
12325         (vec_extract_evenv2sf): Ditto.
12326         (vec_extract_oddv2sf): Ditto.
12327         (vec_pack_trunc_v4hi: Ditto.
12328         (vec_pack_trunc_v2si): Ditto.
12329         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12330         (vec_interleave_highv8qi): Ditto.
12331         (mix1_r): Ditto.
12332         (vec_extract_oddv8qi): Ditto.
12333         (vec_interleave_lowv4hi): Ditto.
12334         (vec_interleave_highv4hi): Ditto.
12335         (vec_interleave_lowv2si): Ditto.
12336         (vec_interleave_highv2si): Ditto.
12337
12338 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12339
12340         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12341         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12342         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
12343         (pa_c_mode_for_suffix): New.
12344         (TARGET_EXPAND_BUILTIN): Define.
12345         (TARGET_C_MODE_FOR_SUFFIX): Define.
12346         (pa_builtins): Define.
12347         (pa_init_builtins): Register __float128 type and init new support
12348         builtins.
12349         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12350         * config/pa/quadlib.c (_U_Qfcopysign): New.
12351
12352 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
12353
12354         PR middle-end/46894
12355         * explow.c (allocate_dynamic_stack_space): Do not assume more than
12356         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12357         are defined.
12358
12359 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12360
12361         PR tree-optimization/47179
12362         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12363         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12364
12365 2011-01-18  Richard Guenther  <rguenther@suse.de>
12366
12367         PR rtl-optimization/47216
12368         * emit-rtl.c: Include tree-flow.h.
12369         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12370         of replicating it with different semantics.
12371         * Makefile.in (emit-rtl.o): Adjust.
12372
12373 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12374
12375         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12376         (cortex_a9_dp): Handle neon types correctly.
12377
12378 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
12379
12380         PR rtl-optimization/47299
12381         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12382         subtarget.  Use normal multiplication if both operands are constants.
12383         * expmed.c (expand_widening_mult): Don't try to optimize constant
12384         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
12385         before using it.
12386
12387 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12388
12389         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
12390         spacing after 'e.g.', typos, comma, hyphenation.
12391
12392 2011-01-17  Richard Henderson  <rth@redhat.com>
12393
12394         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12395         (rx_restricted_mem_operand): New.
12396         (rx_shift_operand): Use register_operand.
12397         (rx_source_operand, rx_compare_operand): Likewise.
12398         * config/rx/rx.md (addsi3_flags): New expander.
12399         (adddi3): Rewrite as expander.
12400         (adc_internal, *adc_flags, adddi3_internal): New patterns.
12401         (subsi3_flags): New expander.
12402         (subdi3): Rewrite as expander.
12403         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12404
12405         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12406         (rx_init_builtins): Remove sat builtin.
12407         (rx_expand_builtin): Likewise.
12408         * config/rx/rx.md (ssaddsi3): New.
12409         (*sat): Rename from sat.  Represent the CC_REG input.
12410
12411         * config/rx/predicates.md (rshift_operator): New.
12412         * config/rx/rx.c (rx_expand_insv): Remove.
12413         * config/rx/rx-protos.h: Update.
12414         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
12415         operand to the canonical position.
12416         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12417         (*bitclr, *bitclr_in_memory): Similarly.
12418         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12419         (insv): Retain the zero_extract in the expansion.
12420
12421         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12422         (bswaphi2, bitinvert, revw): Likewise.
12423
12424         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12425         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12426         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12427         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12428         (bitset, bitset_in_memory): Likewise.
12429         (bitinvert, bitinvert_in_memory): Likewise.
12430         (bitclr, bitclr_in_memory): Likewise.
12431         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12432         (rx_strend, rx_cmpstrn): Likewise.
12433         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
12434         (bitop peep2 patterns): Remove.
12435
12436         * config/rx/rx.c (rx_match_ccmode): New.
12437         * config/rx/rx-protos.h: Update.
12438         * config/rx/rx.md (abssi2): Clobber, don't set flags.
12439         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12440         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12441         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12442         (fix_truncsfsi2, floatsisf2): Likewise.
12443         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12444         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12445         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12446         (*subsi3_flags, *xorsi3_flags): New.
12447
12448         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12449
12450         * config/rx/rx.c (rx_print_operand): Remove workaround for
12451         unsplit comparison operations.
12452
12453         * config/rx/rx.md (movsicc): Split after reload.
12454         (*movsicc): Merge *movsieq and *movsine via match_operator.
12455         (*stcc): New pattern.
12456
12457         * config/rx/rx.c (rx_float_compare_mode): Remove.
12458         * config/rx/rx.h (rx_float_compare_mode): Remove.
12459         * config/rx/rx.md (cstoresi4): Split after reload.
12460         (*sccc): New pattern.
12461
12462         * config/rx/predicates.md (label_ref_operand): New.
12463         (rx_z_comparison_operator): New.
12464         (rx_zs_comparison_operator): New.
12465         (rx_fp_comparison_operator): New.
12466         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12467         Validate that the flags are set properly for the comparison.
12468         (rx_gen_cond_branch_template): Remove.
12469         (rx_cc_modes_compatible): Remove.
12470         (mode_from_flags): New.
12471         (flags_from_code): Rename from flags_needed_for_conditional.
12472         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12473         (rx_select_cc_mode): Likewise.
12474         (rx_split_fp_compare): New.
12475         (rx_split_cbranch): New.
12476         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12477         (*cbranchsi4): Use match_operator and rx_split_cbranch.
12478         (*cbranchsf4): Similarly.
12479         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
12480         match_operator and rx_split_cbranch.
12481         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12482         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
12483         (*cmpsi): Rename from cmpsi.
12484         (*tstsi): Rename from tstsi.
12485         (*cmpsf): Rename from cmpsf; use CC_Fmode.
12486         (*conditional_branch): Rename from conditional_branch.
12487         (*reveresed_conditional_branch): Remove.
12488         (b<code>): Remove expander.
12489         * config/rx/rx-protos.h: Update.
12490
12491         * config/rx/rx.c (rx_compare_redundant): Remove.
12492         * config/rx/rx.md (cmpsi): Don't use it.
12493         * config/rx/rx-protos.h: Update.
12494
12495         * config/rx/rx-modes.def (CC_F): New mode.
12496         * config/rx/rx.c (rx_select_cc_mode): New.
12497         * config/rx/rx.h (SELECT_CC_MODE): Use it.
12498         * config/rx/rx-protos.h: Update.
12499
12500 2011-01-17  Richard Henderson  <rth@redhat.com>
12501
12502         * except.c (dump_eh_tree): Fix stray ; after for statement.
12503
12504 2011-01-17  Richard Guenther  <rguenther@suse.de>
12505
12506         PR tree-optimization/47313
12507         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12508         handling before copying the body.  Properly deal with
12509         by-reference result in SSA form.
12510
12511 2011-01-17  Ian Lance Taylor  <iant@google.com>
12512
12513         PR target/47219
12514         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12515         (struct_value_alias_set): Don't define.
12516         (sparc_option_override): Don't set sparc_sr_alias_set and
12517         struct_value_alias_set.
12518         (save_or_restore_regs): Use gen_frame_mem rather than calling
12519         set_mem_alias_set.
12520         (sparc_struct_value_rtx): Likewise.
12521
12522 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
12523
12524         PR target/47318
12525         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12526         (_mm_maskstore_pd): Likewise.
12527         (_mm_maskload_ps): Likewise.
12528         (_mm_maskstore_ps): Likewise.
12529         (_mm256_maskload_pd): Change mask to __m256i.
12530         (_mm256_maskstore_pd): Likewise.
12531         (_mm256_maskload_ps): Likewise.
12532         (_mm256_maskstore_ps): Likewise.
12533
12534         * config/i386/i386-builtin-types.def: Updated.
12535         (ix86_expand_special_args_builtin): Likewise.
12536
12537         * config/i386/i386.c (bdesc_special_args): Update
12538         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12539         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12540         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12541         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12542
12543         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12544         Use <avxpermvecmode> on mask register.
12545         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12546
12547 2011-01-17  Olivier Hainque  <hainque@adacore.com>
12548             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12549             Eric Botcazou  <ebotcazou@adacore.com>
12550
12551         PR target/46655
12552         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12553         if <= USHRT_MAX in 32-bit mode.
12554
12555 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12556
12557         * doc/install.texi (Configuration, Specific): Wrap long
12558         lines in examples.  Allow line wrapping in long options
12559         and URLs where beneficial for PDF output.
12560
12561 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
12562
12563         * config/mips/mips.c (mips_classify_symbol): Don't return
12564         SYMBOL_PC_RELATIVE for nonlocal labels.
12565
12566 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
12567
12568         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12569
12570 2011-01-15  Jan Hubicka  <jh@suse.cz>
12571
12572         PR tree-optimization/47276
12573         * ipa.c (function_and_variable_visibility): Do not try to mark alias
12574         declarations as needed.
12575
12576 2011-01-15  Martin Jambor  <mjambor@suse.cz>
12577
12578         * common.opt (fdevirtualize): New flag.
12579         * doc/invoke.texi (Option Summary): Document it.
12580         * opts.c (default_options_table): Add devirtualize flag.
12581         * ipa-prop.c (detect_type_change): Return immediately if
12582         devirtualize flag is not set.
12583         (detect_type_change_ssa): Likewise.
12584         (compute_known_type_jump_func): Likewise.
12585         (ipa_analyze_virtual_call_uses): Likewise.
12586
12587 2011-01-14  Martin Jambor  <mjambor@suse.cz>
12588
12589         PR tree-optimization/45934
12590         PR tree-optimization/46302
12591         * ipa-prop.c (type_change_info): New type.
12592         (stmt_may_be_vtbl_ptr_store): New function.
12593         (check_stmt_for_type_change): Likewise.
12594         (detect_type_change): Likewise.
12595         (detect_type_change_ssa): Likewise.
12596         (compute_complex_assign_jump_func): Check for dynamic type change.
12597         (compute_complex_ancestor_jump_func): Likewise.
12598         (compute_known_type_jump_func): Likewise.
12599         (compute_scalar_jump_functions): Likewise.
12600         (ipa_analyze_virtual_call_uses): Likewise.
12601         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12602
12603 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12604
12605         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12606         * config/i386/i386.opt (msse5): New Alias.
12607
12608 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12609
12610         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12611         * config/sparc/linux64.h (CC1_SPEC): Likewise.
12612         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12613         * config/sparc/sparc.h (CC1_SPEC): Likewise.
12614
12615 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12616
12617         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12618         -mcpu options.
12619         * config/sparc/linux64.h (CC1_SPEC): Likewise.
12620         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12621         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12622         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12623         Likewise.
12624         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12625
12626 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12627
12628         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12629
12630 2011-01-14  Mike Stump  <mikestump@comcast.net>
12631
12632         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12633         * config/fr30/fr30.md: Likweise
12634         (movsi_push): Likewise.
12635         (movsi_pop): Likewise.
12636         (enter_func): Likewise.
12637         * config/moxie/moxie.md (movsi_push): Likewise.
12638         (movsi_pop): Likewise.
12639
12640 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12641
12642         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12643         %{no_archive} %{exact_version}.
12644         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12645         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12646         %{no_archive} %{exact_version}.
12647         * config/mips/openbsd.h (LINK_SPEC): Likewise.
12648         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12649         * config/mips/vxworks.h: Likewise.
12650
12651 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12652
12653         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12654
12655 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12656
12657         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12658         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12659
12660 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12661
12662         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12663         -nodefaultlib.
12664
12665 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12666
12667         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12668         for mcpu not cpu.
12669         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12670         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12671         not cpu.
12672         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12673         Don't handle -shlib.
12674
12675 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12676
12677         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12678         (CC1_SPEC): Don't handle -profile.
12679
12680 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12681
12682         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12683         * config/mips/mips.h (CC1_SPEC): Likewise.
12684
12685 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12686
12687         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12688         * config/mips/mips.h (CC1_SPEC): Likewise.
12689
12690 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12691
12692         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12693         * config/m32r/linux.h (LINK_SPEC): Likewise.
12694         * config/mips/linux.h (LINK_SPEC): Likewise.
12695         * config/mips/linux64.h (LINK_SPEC): Likewise.
12696         * config/sparc/linux.h (LINK_SPEC): Likewise.
12697         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12698         LINK_SPEC): Likewise.
12699         * config/xtensa/linux.h (LINK_SPEC): Likewise.
12700
12701 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12702
12703         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12704         %{version:-v}.
12705         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12706
12707 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12708
12709         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12710         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12711
12712 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12713
12714         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12715
12716 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12717
12718         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12719         supports -Bstatic/-Bdynamic.
12720         * configure: Regenerate.
12721
12722 2011-01-14  Jan Hubicka  <jh@suse.cz>
12723             Jack Howarth  <howarth@bromo.med.uc.edu>
12724
12725         PR target/46037
12726         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12727         when checking debug_info_level. Test write_symbols instead of
12728         debug_hooks->var_location when setting flag_var_tracking_uninit.
12729
12730 2011-01-14  Richard Guenther  <rguenther@suse.de>
12731
12732         PR tree-optimization/47179
12733         * target.def (ref_may_alias_errno): New target hook.
12734         * targhooks.h (default_ref_may_alias_errno): Declare.
12735         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12736         (default_ref_may_alias_errno): New function.
12737         * target.h (struct ao_ref_s): Declare.
12738         * tree-ssa-alias.c: Include target.h.
12739         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12740         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12741         (targhooks.o): Likewise.
12742         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12743         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12744
12745 2011-01-14  Richard Guenther  <rguenther@suse.de>
12746
12747         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
12748
12749 2011-01-14  Richard Guenther  <rguenther@suse.de>
12750
12751         PR tree-optimization/47280
12752         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12753         return CFG changes.
12754         (tree_ssa_forward_propagate_single_use_vars): Deal with
12755         CFG changes from associate_plusminus.
12756
12757 2011-01-14  Richard Guenther  <rguenther@suse.de>
12758
12759         PR middle-end/47281
12760         Revert
12761         2011-01-11  Richard Guenther  <rguenther@suse.de>
12762
12763         PR tree-optimization/46076
12764         * tree-ssa.c (useless_type_conversion_p): Conversions from
12765         unprototyped to empty argument list function types are useless.
12766
12767 2011-01-14  Richard Guenther  <rguenther@suse.de>
12768
12769         PR tree-optimization/47286
12770         * tree-ssa-structalias.c (new_var_info): Register variables are global.
12771
12772 2011-01-14  Martin Jambor  <mjambor@suse.cz>
12773
12774         PR middle-end/46823
12775         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12776
12777 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
12778
12779         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
12780         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12781         * config/xtensa/xtensa.c (xtensa_libcall_value,
12782         xtensa_function_value_regno_p): New functions.
12783         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12784
12785 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
12786
12787         PR c++/47213
12788         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
12789         PE specific hook.
12790         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
12791         New function prototype.
12792         * config/i386/winnt.c (i386_pe_assemble_visibility):
12793         Warn only if attribute was specified by user.
12794
12795 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
12796
12797         PR target/47251
12798         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
12799         floating point.
12800         (floatunsdidf2_fcfidu): Ditto.
12801
12802 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12803
12804         * config/s390/s390.c (print_operand_address): Replace 'error' with
12805         'output_operand_lossage'.
12806         (print_operand): Likewise.
12807
12808 2011-01-13  Jeff Law  <law@redhat.com>
12809
12810         PR rtl-optimization/39077
12811         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
12812         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
12813         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
12814         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
12815         * gcse.c (prune_insertions_deletions): New function.
12816         (compute_pre_data): Use it.
12817
12818 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
12819
12820         PR debug/PR46973
12821         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
12822         static function.
12823         (prune_unused_types_mark): Use it.
12824
12825 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
12826
12827         PR rtl-optimization/45352
12828         * sel-sched.c: Update copyright years.
12829         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
12830         in the advancing loop when we have issued issue_rate insns.
12831
12832 2011-01-12  Richard Henderson  <rth@redhat.com>
12833
12834         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
12835         (TARGET_MD_ASM_CLOBBERS): New.
12836
12837         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
12838         (TARGET_DELEGITIMIZE_ADDRESS): New.
12839
12840         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
12841         (clzsi2, *bsch): New patterns.
12842
12843         * config/mn10300/mn10300.md (INT): New mode iterator.
12844         (*mov<INT>_clr): New pattern, and peep2 to generate it.
12845
12846         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
12847         flag_split_wide_types.
12848
12849         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
12850         (mn10300_trampoline_init): Rewrite without a template, an immediate
12851         load and a direct branch.
12852         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
12853
12854 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
12855
12856         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12857         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
12858         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
12859         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12860
12861 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
12862
12863         PR debug/47209
12864         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
12865         of type.
12866
12867 2011-01-12  Jan Hubicka  <jh@suse.cz>
12868
12869         PR driver/47244
12870         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
12871         (PLUGIN_COND_CLOSE): New macro.
12872         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
12873
12874 2011-01-12  Richard Guenther  <rguenther@suse.de>
12875
12876         PR lto/47259
12877         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
12878         register variables in a MEM_REF.
12879
12880 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
12881
12882         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
12883         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
12884         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
12885         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12886         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12887         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
12888         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
12889         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
12890         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
12891         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
12892         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
12893         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
12894         * config/gnu-user.h: New.  Copied from linux.h.
12895         (LINUX_TARGET_STARTFILE_SPEC): Rename to
12896         GNU_USER_TARGET_STARTFILE_SPEC.
12897         (LINUX_TARGET_ENDFILE_SPEC): Rename to
12898         GNU_USER_TARGET_ENDFILE_SPEC.
12899         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
12900         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
12901         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
12902         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
12903         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
12904         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
12905         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
12906         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
12907         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
12908         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
12909         * config/arm/linux-eabi.h (CC1_SPEC): Use
12910         GNU_USER_TARGET_CC1_SPEC.
12911         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
12912         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
12913         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
12914         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
12915         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
12916         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
12917         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
12918         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
12919
12920 2011-01-12  Richard Guenther  <rguenther@suse.de>
12921
12922         PR other/46946
12923         * doc/invoke.texi (ffast-math): Document it is turned on
12924         with -Ofast.
12925
12926 2011-01-12  Jan Hubicka  <jh@suse.cz>
12927
12928         PR tree-optimization/47233
12929         * opts.c (common_handle_option): Disable ipa-reference with profile
12930         feedback.
12931
12932 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
12933
12934         * c-parser.c (c_parser_objc_at_property_declaration): Improved
12935         error message.
12936
12937 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
12938
12939         * c-parser.c (c_lex_one_token): Updated and reindented some
12940         comments.  No changes in code.
12941
12942 2011-01-11  Ian Lance Taylor  <iant@google.com>
12943
12944         * godump.c (go_output_var): Don't output the variable if there is
12945         already a type with the same name.
12946
12947 2011-01-11  Ian Lance Taylor  <iant@google.com>
12948
12949         * godump.c (go_format_type): Don't generate float80.
12950
12951 2011-01-11  Richard Henderson  <rth@redhat.com>
12952
12953         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
12954         declaration.  Rewrite for both speed and size.
12955         (mn10300_address_cost_1): Remove.
12956         (mn10300_register_move_cost): New.
12957         (mn10300_memory_move_cost): New.
12958         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
12959         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
12960         extensions, shifts, BSWAP, CLZ.
12961         (mn10300_wide_const_load_uses_clr): Remove.
12962         (TARGET_REGISTER_MOVE_COST): New.
12963         (TARGET_MEMORY_MOVE_COST): New.
12964         * config/mn10300/mn10300-protos.h: Update.
12965         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
12966
12967         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
12968         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
12969         * config/mn10300/mn10300-protos.h: Update.
12970         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
12971         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
12972         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
12973         (*test_int_bitfield, *test_byte_bitfield): Remove.
12974         (*bit_test, *subreg_bit_test): Remove.
12975         * config/mn10300/predicates.md (const_8bit_operand): Remove.
12976
12977         * config/mn10300/constraints.md ("c"): Rename from "A".
12978         ("A", "D"): New constraint letters.
12979         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
12980         (fmssf4, fnmasf4, fnmssf4): Likewise.
12981
12982         * config/mn10300/mn10300.md (isa): New attribute.
12983         (enabled): New attribute.
12984
12985         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
12986         (abssf2, negsf2): Define only for hardware fp.
12987         (sqrtsf2): Reformat.
12988         (addsf3, subsf3, mulsf3): Merge expander and insn.
12989
12990         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
12991         (DEBUGGER_AUTO_OFFSET): Remove.
12992         (DEBUGGER_ARG_OFFSET): Remove.
12993
12994         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
12995         Emit register stores with the same offsets as the hardware.
12996         (mn10300_store_multiple_operation): Don't check that the register
12997         save offsets are monotonic.
12998         * config/mn10300/mn10300-protos.h: Update.
12999
13000         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13001
13002         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13003         in terms of the value on the stack, not the MDR register.
13004
13005 2011-01-11  Jan Hubicka  <jh@suse.cz>
13006
13007         PR lto/45721
13008         PR lto/45375
13009         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13010         (symbol_alias_set_destroy, symbol_alias_set_contains,
13011         propagate_aliases_backward): Declare.
13012         * lto-streamer-out.c (struct sets): New sturcture.
13013         (trivally_defined_alias): New function.
13014         (output_alias_pair_p): Rewrite.
13015         (output_unreferenced_globals): Fix output of alias pairs.
13016         (produce_symtab): Likewise.
13017         * ipa.c (function_and_variable_visibility): Set weak alias destination
13018         as needed in lto.
13019         * varasm.c (symbol_alias_set_t): Remove.
13020         (symbol_alias_set_destroy): Export.
13021         (propagate_aliases_forward, propagate_aliases_backward): New functions
13022         based on ...
13023         (compute_visible_aliases): ... this one; remove.
13024         (trivially_visible_alias): New
13025         (trivially_defined_alias): New.
13026         (remove_unreachable_alias_pairs): Rewrite.
13027         (finish_aliases_1): Reorganize code checking if alias is defined.
13028         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13029         in LTO mode.
13030
13031 2011-01-11  Richard Guenther  <rguenther@suse.de>
13032
13033         PR tree-optimization/46076
13034         * tree-ssa.c (useless_type_conversion_p): Conversions from
13035         unprototyped to empty argument list function types are useless.
13036
13037 2011-01-11  Richard Guenther  <rguenther@suse.de>
13038
13039         PR middle-end/45235
13040         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13041         volatile MEMs as MEM_READONLY_P.
13042
13043 2011-01-11  Richard Guenther  <rguenther@suse.de>
13044
13045         PR tree-optimization/47239
13046         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13047
13048 2011-01-11  Jeff Law  <law@redhat.com>
13049
13050         PR tree-optimization/47086
13051         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13052         IVs from statements that might throw.
13053
13054 2011-01-10  Jan Hubicka  <jh@suse.cz>
13055
13056         PR lto/45375
13057         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13058
13059 2011-01-10  Jan Hubicka  <jh@suse.cz>
13060
13061         PR lto/45375
13062         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13063         when correcting profile.
13064
13065 2011-01-10  Jan Hubicka  <jh@suse.cz>
13066
13067         PR lto/46083
13068         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13069         DECL_FINI_PRIORITY.
13070         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13071         Restore DECL_FINI_PRIORITY.
13072
13073 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13074
13075         * doc/gimple.texi: Fix quoting of multi-word return values in
13076         @deftypefn statements.  Ensure presence of return value.  Wrap
13077         overlong @deftypefn lines.
13078         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13079         descriptions of removed functions.
13080         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13081         of multi-word return value in @deftypefn statement.
13082
13083 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13084
13085         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13086         (Conditional Expressions, Logical Operators)
13087         (Statement and operand traversals): Do not indent smallexample
13088         code.  Fix duplicate function argument in example.
13089
13090 2011-01-10  Jeff Law  <law@redhat.com>
13091
13092         PR tree-optimization/47141
13093         * ipa-split.c (split_function): Handle case where we are
13094         returning a value and the return block has a virtual operand phi.
13095
13096 2011-01-10  Jan Hubicka  <jh@suse.cz>
13097
13098         PR tree-optimization/47234
13099         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13100         (pass_feedback_split_functions): Declare.
13101         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13102         tree-profile.
13103         * ipa-split.c (gate_split_functions): Update comments; disable
13104         split-functions for profile_arc_flag and branch_probabilities.
13105         (gate_feedback_split_functions): New function.
13106         (execute_feedback_split_functions): New function.
13107         (pass_feedback_split_functions): New global var.
13108
13109 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13110
13111         PR lto/46760
13112         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13113         calling gimple_call_set_cannot_inline.
13114
13115 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13116
13117         * config/darwin-sections.def: Remove unused section.
13118
13119 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13120
13121         PR c++/47218
13122         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13123
13124 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13125
13126         PR objc/47232
13127         * c-parser.c (c_parser_declaration_or_fndef): Improved
13128         error message.
13129
13130 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13131
13132         * config/i386/winnt.c (i386_pe_start_function): Make sure
13133         to switch back to function's section.
13134
13135 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13136
13137         PR gcc/46902
13138         PR testsuite/46912
13139         * plugin.c: Move include of dlfcn.h from here...
13140         * system.h: ... to here.
13141
13142 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13143
13144         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13145         file name.
13146         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13147         two extra empty pages in PDF output.
13148
13149 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13150
13151         PR objc/47078
13152         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13153         for error recovery purposes behave as if it was not specified so
13154         that the default type is usd.
13155
13156 2011-01-07  Jan Hubicka  <jh@suse.cz>
13157
13158         PR tree-optmization/46469
13159         * ipa.c (function_and_variable_visibility): Clear needed flags on
13160         nodes with external decls; handle weakrefs merging correctly.
13161
13162 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13163
13164         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13165         not false.
13166
13167 2011-01-07  Jan Hubicka  <jh@suse.cz>
13168
13169         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13170         and no longer claim that gold is required for linker plugin.
13171         * configure: Regenerate.
13172         * gcc.c (PLUGIN_COND): New macro.
13173         (LINK_COMMAND_SPEC): Use it.
13174         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13175         * config.in (HAVE_LTO_PLUGIN): New.
13176         * configure.ac (--with-lto-plugin): New parameter; autodetect
13177         HAVE_LTO_PLUGIN.
13178
13179 2011-01-07  Jan Hubicka  <jh@suse.cz>
13180
13181         PR tree-optimization/46367
13182         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13183         when we can update original.
13184         (cgraph_mark_inline_edge): Sanity check.
13185         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13186
13187 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13188
13189         * config/spu/spu.h (ASM_COMMENT_START): Define.
13190
13191 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13192
13193         PR driver/42445
13194         * gcc.c (%>S): New.
13195         (SWITCH_KEEP_FOR_GCC): Likewise.
13196         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13197         (do_spec_1): Handle "%>".
13198
13199         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13200
13201 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
13202
13203         PR target/47201
13204         * config/i386/i386.c (ix86_delegitimize_address): If
13205         simplify_gen_subreg fails, return orig_x.
13206
13207         PR bootstrap/47187
13208         * value-prof.c (gimple_stringop_fixed_value): Handle
13209         lhs of the call properly.
13210
13211 2011-01-07  Jan Hubicka  <jh@suse.cz>
13212
13213         PR lto/45375
13214         * lto-opt.c (lto_reissue_options): Set flag_shlib.
13215
13216 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13217
13218         * target.def (function_switched_text_sections): New hook.
13219         * doc/tm.texi: Regenerated.
13220         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13221         * final.c (default_function_switched_text_sections): New.
13222         (final_scan_insn): Call function_switched_text_sections when a
13223         mid-function section change occurs.
13224         * output.h (default_function_switched_text_sections): Declare.
13225         * config/darwin-protos.h (darwin_function_switched_text_sections):
13226         Likewise.
13227         * config/darwin.c (darwin_function_switched_text_sections): New.
13228         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13229
13230 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13231
13232         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13233         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13234         the secondary code fragment when outputting for DWARF == 2.
13235
13236 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13237
13238         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13239         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13240         Remove.
13241         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13242         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13243
13244 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13245
13246         PR debug/46704
13247         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13248         when it is not empty.
13249
13250 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
13251
13252         Bobcat Enablement
13253         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13254         (case ${target}): Add btver1.
13255         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13256         -march=native recognize btver1 processors.
13257         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13258         btver1 def_and_undef
13259         * config/i386/i386.c (struct processor_costs btver1_cost): New
13260         btver1 cost table.
13261         (m_BTVER1): New definition.
13262         (m_AMD_MULTIPLE): Includes m_BTVER1.
13263         (initial_ix86_tune_features): Add btver1 tune.
13264         (processor_target_table): Add btver1 entry.
13265         (static const char *const cpu_names): Add btver1 entry.
13266         (software_prefetching_beneficial_p): Add btver1.
13267         (ix86_option_override_internal): Add btver1 instruction sets.
13268         (ix86_issue_rate): Add btver1.
13269         (ix86_adjust_cost): Add btver1.
13270         * config/i386/i386.h (TARGET_BTVER1): New definition.
13271         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13272         (enum processor_type): Add PROCESSOR_BTVER1.
13273         * config/i386/i386.md (define_attr "cpu"): Add btver1.
13274
13275 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13276
13277         PR target/43309
13278         * config/i386/i386.c (legitimize_tls_address)
13279         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13280         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13281         (tls_initial_exec_64_sun): New pattern.
13282
13283 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
13284
13285         * doc/invoke.texi (Overall Options): Improve wording and markup
13286         of the description of -wrapper.
13287
13288 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13289
13290         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13291         rdynamic, threads): New Driver options.
13292
13293 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13294
13295         PR target/38118
13296         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13297         if coming from .tdata.
13298         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13299
13300 2011-01-06  Jan Hubicka  <jh@suse.cz>
13301
13302         PR lto/47188
13303         * collect2.c (main): Do not enable LTOmode when plugin is active.
13304
13305 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13306
13307         PR other/45915
13308         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13309         --version output if supported.
13310         * configure: Regenerate.
13311
13312 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13313
13314         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13315         Driver options.
13316
13317 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
13318
13319         PR c/47150
13320         * c-convert.c (convert): When converting a complex expression
13321         other than COMPLEX_EXPR to a different complex type, ensure
13322         c_save_expr is called instead of save_expr, unless in_late_binary_op.
13323         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13324         when converting COMPLEX_TYPE.
13325
13326 2011-01-06  Ira Rosen  <irar@il.ibm.com>
13327
13328         PR tree-optimization/47139
13329         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13330         only the last reduction value is used outside the loop.  Update
13331         documentation.
13332
13333 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
13334
13335         * config/rtems.opt: New.
13336         * config.gcc (*-*-rtems*): Use rtems.opt.
13337
13338 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
13339
13340         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13341         processors do not support 3DNow instructions.
13342
13343 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13344
13345         * config/spu/spu.c (spu_option_override): Set parameter
13346         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13347
13348 2011-01-05  Jan Hubicka  <jh@suse.cz>
13349
13350         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13351         at the command line.
13352
13353 2011-01-05  Martin Jambor  <mjambor@suse.cz>
13354
13355         PR lto/47162
13356         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13357         deltas on streamed outgoing edges.
13358         (output_node_opt_summary): Output info for outgoing edges only when
13359         the node is in new parameter set.
13360         (output_cgraph_opt_summary): New parameter set, passed to the two
13361         aforementioned functions.  Update its forward declaration and its
13362         callee too.
13363
13364 2011-01-05  Tom Tromey  <tromey@redhat.com>
13365
13366         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13367         operator to c_finish_omp_atomic.
13368         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13369         (build_unary_op): Update.
13370         (build_modify_expr): Update.
13371         (build_asm_expr): Update.
13372
13373 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13374
13375         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13376         newly inserted insns.
13377         (pad_bb): Likewise.
13378         (spu_emit_branch_hint): Likewise.
13379         (insert_hbrp_for_ilb_runout): Likewise.
13380         (spu_machine_dependent_reorg): Call df_finish_pass after
13381         schedule_insns returns.
13382
13383 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13384
13385         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13386
13387 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13388
13389         PR tree-optimization/47005
13390         * tree-sra.c (struct access): Add 'non_addressable' bit.
13391         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13392         (decide_one_param_reduction): Return 0 if the parameter is passed by
13393         reference and one of the accesses in the group is non_addressable.
13394
13395 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13396
13397         PR tree-optimization/47056
13398         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13399         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
13400         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
13401
13402 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13403
13404         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13405         initializer.  Skip view conversions from aggregate types.
13406
13407 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
13408
13409         PR bootstrap/47055
13410         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13411
13412 2011-01-04  Philipp Thomas  <pth@suse.de>
13413
13414         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13415         obvious typo.
13416
13417 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13418
13419         * function.c (thread_prologue_and_epilogue_insns): Do not crash
13420         on empty epilogue sequences.
13421
13422 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
13423
13424         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13425         non-static): New Driver options.
13426
13427 2011-01-04  Jie Zhang  <jie@codesourcery.com>
13428
13429         PR driver/47137
13430         * gcc.c (default_compilers[]): Set combinable field to 0
13431         for all assembly languages.
13432
13433 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
13434
13435         * config/mips/loongson3a.md: New file.
13436         * config/mips/mips.md: Include loongson3a.md.
13437         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13438         TUNE_LOONGSON_3A.
13439
13440 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13441
13442         PR middle-end/47017
13443         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13444         instead of convert_memory_address_addr_space on the base expression.
13445
13446 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13447
13448         * config/spu/spu.c (spu_option_override): Update error text
13449         for bad -march= / -mtune= values.
13450
13451 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13452
13453         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13454         if branch-hint optimization will be performed.
13455
13456 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13457
13458         PR tree-optimization/47148
13459         * ipa-split.c (split_function): Convert arguments to
13460         DECL_ARG_TYPE if possible.
13461
13462         PR tree-optimization/47155
13463         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13464         when computing uns.
13465
13466         PR rtl-optimization/47157
13467         * combine.c (try_combine): If undobuf.other_insn becomes
13468         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13469         and set *new_direct_jump_p too.
13470
13471 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
13472
13473         PR tree-optimization/47021
13474         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13475
13476 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13477
13478         * gcc.c (process_command): Update copyright notice dates.
13479         * gcov.c (print_version): Likewise.
13480         * gcov-dump.c (print_version): Likewise.
13481         * mips-tfile.c (main): Likewise.
13482         * mips-tdump.c (main): Likewise.
13483
13484 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13485
13486         PR tree-optimization/46801
13487         * tree-sra.c (type_internals_preclude_sra_p): Check whether
13488         aggregate fields start at byte boundary instead of the bit-field flag.
13489
13490 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
13491
13492         PR driver/47137
13493         * gcc.c (main): Revert revision 168407.
13494
13495 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13496
13497         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13498
13499 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13500
13501         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13502         vector optab to expand vector/scalar shift, update gimple to vector.
13503
13504 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13505
13506         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13507         a thunk.
13508
13509 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13510
13511         PR tree-optimization/46984
13512         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13513         HOST_WIDE_INT.
13514         (cgraph_create_indirect_edge): Fixed line length.
13515         (cgraph_indirect_call_info): Declare.
13516         (cgraph_make_edge_direct) Update declaration.
13517         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13518         (cgraph_create_indirect_edge): Use it.
13519         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
13520         callees.
13521         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13522         the new thunk_delta representation.
13523         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13524         HOST_WIDE_INT.
13525         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13526         (ipa_read_indirect_edge_info): Likewise.
13527         * lto-cgraph.c (output_edge_opt_summary): New function.
13528         (output_node_opt_summary): Call it on all outgoing edges.
13529         (input_edge_opt_summary): New function.
13530         (input_node_opt_summary): Call it on all outgoing edges.
13531
13532 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
13533
13534         PR driver/47137
13535         * gcc.c (main): Don't check have_o when settting combine_inputs.
13536
13537 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
13538
13539         * regrename.c: Add general comment describing the pass.
13540         (struct du_head): Remove 'length' field.
13541         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13542         (regrename_optimize): Do not sort chains.  Rework comments, add others.
13543         Force renaming to the preferred class (if any) in the first pass and do
13544         not consider registers that belong to it in the second pass.
13545         (create_new_chain): Do not set 'length' field.
13546         (scan_rtx_reg): Likewise.
13547
13548 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
13549
13550         PR tree-optimization/47140
13551         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13552         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13553         to bit_value_binop.
13554
13555         PR rtl-optimization/47028
13556         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13557         parm_birth_insn instead of at the beginning of first bb.
13558
13559 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
13560
13561         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13562         Remove the word "see" before "@pxref".
13563         * doc/rtl.texi: Remove the word "see" before "@pxref".
13564
13565 2011-01-01  Jan Hubicka  <jh@suse.cz>
13566
13567         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13568         memory.
13569
13570 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
13571
13572         PR target/38662
13573         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13574
13575 \f
13576 Copyright (C) 2011 Free Software Foundation, Inc.
13577
13578 Copying and distribution of this file, with or without modification,
13579 are permitted in any medium without royalty provided the copyright
13580 notice and this notice are preserved.