OSDN Git Service

PR target/48896
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
2
3         PR target/48896
4         * config/avr/avr.c (avr_ret_register): Return unsigned int
5         instead of int.
6         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
7         it to avr_libcall_value.
8         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
9         expand_expr.
10         (avr_expand_binop_builtin): Ditto.
11         (avr_expand_unop_builtin): Ditto.
12
13 2011-05-10  DJ Delorie  <dj@redhat.com>
14
15         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
16         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
17         * config/rx/rx.c (rx_align_for_label): Add label and
18         uses_threshold parameters.  Do not align when the label is not
19         used enough.
20         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
21
22 2011-05-10  Richard Guenther  <rguenther@suse.de>
23
24         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
25         a series of conversions and apply foldings similar to what
26         fold-const does.
27         (tree_ssa_forward_propagate_single_use_vars): Call it.
28
29 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
30
31         PR tree-optimization/48611
32         PR tree-optimization/48794
33         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
34         referenced from RESX or EH_DISPATCH arguments.
35
36         PR debug/48928
37         * dfp.c (decimal_to_decnumber): Handle conversion from
38         dconst{1,2,m1,half}.
39
40 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
41
42         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
43         for !flag_prefer_avx128.
44         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
45
46 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
47
48         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
49         (fold_ternary_loc): Use expr_location_or.
50
51 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
52
53         PR debug/48853
54         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
55         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
56         Pmode and mem_mode is not VOIDmode.
57
58 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
59
60         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
61         TYPE_QUAL_RESTRICT): Convert to enum.
62
63 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
64
65         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
66         (const_pow2_1_to_8_operand): Ditto.
67         (const_pow2_1_to_128_operand): Ditto.
68         (const_pow2_1_to_32768_operand): Ditto.
69         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
70         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
71         in insn constraint to check integer value of operand 3.
72         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
73
74         (PINSR_MODE): New mode iterator.
75         (sse2p4_1): New mode attribute.
76         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
77         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
78         iterator.  Use const_int_operand instead of
79         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
80         exact_log2 in insn constraint to check integer value of operand 3.
81
82 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
83
84         * config/i386/sse.md (blendbits): Remove mode attribute.
85         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
86         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
87         Check integer value of operand 3 in insn constraint.
88
89 2011-05-09  Richard Guenther  <rguenther@suse.de>
90
91         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
92         for diagnostics.
93         (lto_symtab_merge): Likewise.  Do not register types here.
94         (lto_symtab_merge_decls_2): Likewise.
95         (lto_symtab_merge_decls_1): Likewise.
96         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
97         * gimple.c (enum gtc_mode): Declare.
98         (gimple_types_compatible_p): Make static.
99
100 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
101
102         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
103         temporary register to match Pmode.
104
105 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
106
107         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
108         and *vec_concatv4si_1_avx.
109
110 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
111
112         PR rtl-optimization/48927
113         * ira-conflicts.c (commutative_constraint_p): Use
114         recog_data.alternative_enabled_p to disable alternatives where
115         "enabled" attribute is false.
116         (get_dup_num): Ditto.
117         * ira-lives.c (single_reg_class): Ditto.
118         (ira_implicitly_set_insn_hard_regs): Ditto.
119
120 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
121
122         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
123         (dataflow_set_preserve_mem_locs): Likewise.
124
125 2011-05-09  Philipp Thomas  <pth@suse.de>
126
127         * config/mep/mep.c (mep_validate_vliw): Syntax description
128         should not be translated.
129
130 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
131
132         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
133         * config/mips/mips-tables.opt: New file (generated).
134         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
135         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
136         MIPS_ARCH_OPTION_NATIVE): Define.
137         * config/mips/mips.c (mips_cpu_info_table): Move contents to
138         mips-cpus.def.
139         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
140         mips_parse_cpu): Remove.
141         (mips_cpu_info_from_opt, mips_default_arch): New.
142         (mips_handle_option): Don't assert that global structures are in
143         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
144         (mips_option_override): Use new variables and functions to set
145         state of these options.  Use strcmp to check for individual CPU names.
146         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
147         definition.
148         * config/mips/mips.opt (march=): Use ToLower and Enum.
149         (mips): Use ToLower, Enum and Var.
150         (mtune=): Use ToLower and Enum.
151         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
152
153 2011-05-08  Jan Hubicka  <jh@suse.cz>
154
155         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
156         Arrange type pairs to be UID ordered.
157         (gimple_lookup_type_leader): Make inline.
158
159 2011-05-09  Nick Clifton  <nickc@redhat.com>
160
161         PR target/48899
162         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
163         PROCESSOR_DEFAULT.
164
165         PR target/48897
166         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
167         variable 's'.
168
169 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
170
171         * combine.c (simplify_comparison): Abstract out parts into...
172         (simplify_compare_const): ... new function.
173         (try_combine): Generalize parallel arithmetic/compare combining
174         to call simplify_compare_const() and CANONICALIZE_COMPARE().
175
176 2011-05-08  Jan Hubicka  <jh@suse.cz>
177
178         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
179         (cgraph_create_virtual_clone): Call hooks once virtual clone
180         is finished.
181         * cgraph.h (cgraph_clone_node): Update prototype.
182         * ipa-cp.c (ipcp_estimate_growth): Use
183         estimate_ipcp_clone_size_and_time.
184         * ipa-inline-transform.c (clone_inlined_nodes): Update.
185         * lto-cgraph.c (input_node): Update.
186         * ipa-inline.c (recursive_inlining): Update.
187         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
188         (evaluate_conditions_for_known_args): Break out from ...
189         (evaluate_conditions_for_edge): ... here.
190         (evaluate_conditions_for_ipcp_clone): New function.
191         (inline_node_duplication_hook): Update clone summary based
192         on parameter map.
193         (estimate_callee_size_and_time): Rename to ...
194         (estimate_node_size_and_time): take NODE instead of EDGE;
195         take POSSIBLE_TRUTHS as argument.
196         (estimate_callee_size_and_time): Update.
197         (estimate_ipcp_clone_size_and_time): New function.
198         (do_estimate_edge_time): Update.
199
200 2011-05-08  Richard Guenther  <rguenther@suse.de>
201
202         PR middle-end/48908
203         PR middle-end/48905
204         * expmed.c (expand_shift_1): Compute adjusted constant shift
205         amount manually.
206
207 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
208
209         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
210
211 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
212
213         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
214
215 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
216
217         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
218
219 2011-05-07  Jan Hubicka  <jh@suse.cz>
220
221         * ipa-inline-transform.c (inline_call): Account when program size
222         decreases.
223         * ipa-inline.c (relative_time_benefit): New function.
224         (edge_badness): Reorganize to be power 2 based; fix thinko when
225         computing badness for negative growth; update comments to match
226         reality; better dumps.
227
228 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
229
230         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
231         type to bool and adjust comment.
232         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
233         (fold_mathfn_compare): Remove calls to global_bindings_p.
234         (fold_inf_compare): Likewise.
235         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
236         * c-tree.h (global_bindings_p): Adjust prototype.
237         * c-decl.c (global_bindings_p): Return bool and simplify.
238
239 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
240
241         PR tree-optimization/48837
242         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
243         when accumulator transformation is performed.
244
245 2011-05-06  Jan Hubicka  <jh@suse.cz>
246
247         * i386.h (ix86_tune_indices): Add
248         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
249         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
250         * i386.c (initial_ix86_tune_features): Add
251         X86_SOFTARE_PREFETCHING_BENEFICIAL.
252         (software_prefetching_beneficial_p): Remove predicate.
253         (ix86_option_override_internal): Use new macro.
254
255 2011-05-06  Jan Hubicka  <jh@suse.cz>
256
257         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
258
259 2011-05-06  Jan Hubicka  <jh@suse.cz>
260
261         * cgraph.c (cgraph_add_thunk): Create real function node instead
262         of alias node; finalize it and mark needed/reachale; arrange visibility
263         to be right and add it into the corresponding same comdat group list.
264         (dump_cgraph_node): Dump thunks.
265         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
266         cgraph_function_with_gimple_body_p,
267         cgraph_first_function_with_gimple_body,
268         cgraph_next_function_with_gimple_body): New functions.
269         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
270         New macros.
271         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
272         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
273         * cgraphunit.c (cgraph_finalize_function): Only look into possible
274         devirtualization when optimizing.
275         (verify_cgraph_node): Verify thunks.
276         (cgraph_analyze_function): Analyze thunks.
277         (cgraph_mark_functions_to_output): Output thunks only in combination
278         with function they are assigned to.
279         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
280         alias into normal node.
281         (assemble_thunks): New functoin.
282         (cgraph_expand_function): Use it.
283         * lto-cgraph.c (lto_output_node): Stream thunks.
284         (input_overwrite_node): Stream in thunks.
285         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
286         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
287         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
288         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
289         (inline_analyze_function): Do not care about thunk jump functions.
290         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
291         * ipa-prop.c (ipa_prop_write_jump_functions): Use
292         cgraph_function_with_gimple_body_p.
293         * passes.c (do_per_function_toporder): Use
294         cgraph_function_with_gimple_body_p.
295         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
296         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
297         (function_called_by_processed_nodes_p): Likewise.
298
299 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
300
301         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
302         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
303         entries.
304         (mabi=): Replace with separate entries for mabi=altivec,
305         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
306         mabi=ieeelongdouble and mabi=ibmlongdouble.
307         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
308         check for -mabi=spe without SPE ABI support here.
309         (rs6000_handle_option): Replace OPT_mabi_ handling with
310         OPT_mabi_altivec and OPT_mabi_spe handling.
311
312 2011-05-06  Cary Coutant  <ccoutant@google.com>
313
314         * dwarf2out.c (contains_subprogram_definition): New function.
315         (should_move_die_to_comdat): Call it.
316
317 2011-05-06  Jeff Law  <law@redhat.com>
318
319         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
320         remove_ctrl_stmt_and_useless_edges.
321         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
322         (fixup_template_block, thread_single_edge): Likewise.
323         (mark_threaded_blocks): Use THREAD_TARGET.
324
325 2011-05-06  Alan Modra  <amodra@gmail.com>
326
327         PR target/48900
328         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
329         const0_rtx as the arg to the dummy __tls_get_addr libcall.
330
331 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
332
333         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
334         constraint modifier to "r".
335
336 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
337
338         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
339         fall through for OPT_mcmodel_.
340
341 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
342
343         * config/s390/s390.c (s390_asm_trampoline_template): Comment
344         instruction sizes.
345         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
346
347 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
348
349         PR target/47930
350         * config/arm/arm.opt (marm): Document it.
351         (mthumb): Reject negative variant.
352
353 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
354
355         PR target/48898
356         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
357         Fix typo in "ccvt" variable name.
358
359 2011-05-06  Tristan Gingold  <gingold@adacore.com>
360
361         PR target/48895
362         * config/vms/vms-ar.c (main): Remove cwd variable.
363
364 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
365
366         PR debug/48902
367         * var-tracking.c (prepare_call_arguments): Move else before #endif.
368
369 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
370
371         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
372         * gimplify.c (gimplify_switch_expr): Likewise.
373         * omp-low.c (expand_omp_sections): Likewise.
374         * tree-eh.c (lower_try_finally_switch): Likewise.
375         (lower_eh_dispatch): Likewise.
376         * tree.h (build_case_label): Declare.
377         * tree.c (build_case_label): Define.
378
379 2011-05-05  Jason Merrill  <jason@redhat.com>
380
381         PR c++/40975
382         * tree-inline.c (copy_tree_r): Use copy_statement_list.
383         (copy_statement_list): Don't recurse.
384         * stor-layout.c (copy_self_referential_tree_r): Don't allow
385         STATEMENT_LIST.
386
387 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
388
389         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
390         through from -mfpu= handling.
391         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
392
393 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
394
395         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
396         POST_MODIFY.
397
398 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
399
400         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
401         for 11.31.
402         (hppa[12]*-*-hpux11*): Ditto.
403         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
404         * config/ia64/hpux-unix2003.h: New.
405         * config/pa/pa-hpux1131.opt: New.
406         * config/pa/pa-hpux1131.h: New.
407         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
408         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
409         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
410
411 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
412
413         PR debug/48853
414         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
415         instead of mode as 3rd argument to recursive call.
416         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
417         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
418         VOIDmode.
419         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
420         don't give up if mode is Pmode and mem_mode is not VOIDmode.
421         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
422         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
423
424 2011-05-05  Julian Brown  <julian@codesourcery.com>
425
426         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
427         parenthesis in D-register case.
428
429 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
430
431         * opt-functions.awk (var_type_struct): Handle Enum options.
432         * optc-gen.awk: Don't check range of variables of character type.
433         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
434         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
435         rs6000_sdata_name, rs6000_explicit_options): Remove.
436         (rs6000_option_override_internal): Check for -malign-power here.
437         Use global_options_set instead of rs6000_explicit_options.
438         (rs6000_parse_fpu_option): Remove.
439         (rs6000_handle_option): Access variables via opts and opts_set
440         pointers.  Use error_at and warning_at.  Add fall-through
441         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
442         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
443         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
444         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
445         here.  Don't use rs6000_parse_fpu_option.
446         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
447         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
448         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
449         (mrecip=): Use Var.
450         (mspe): Use Var and Save.
451         (mtraceback=): Use Enum and Var.
452         (rs6000_traceback_type): New Enum and EnumValue entries.
453         (mfloat-gprs=): Use Enum, Var and Save.
454         (rs6000_float_gprs): New Enum and EnumValue entries.
455         (mlong-double-): use Var and Save.
456         (msched-costly-dep=, minsert-sched-nops=): Use Var.
457         (malign-): Use Enum and Var.
458         (rs6000_alignment_flags): New Enum and EnumValue entries.
459         (mfpu=): Use Enum.
460         (fpu_type_t): New Enum and EnumValue entries.
461         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
462         global_options_set instead of rs6000_explicit_options.
463         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
464         global_options_set instead of rs6000_explicit_options.
465         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
466         global_options_set instead of rs6000_explicit_options.
467         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
468         global_options_set instead of rs6000_explicit_options.
469         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
470         global_options_set instead of rs6000_explicit_options.
471         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
472         global_options_set instead of rs6000_explicit_options.
473         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
474         definition.
475         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
476         global_options_set instead of rs6000_explicit_options.
477         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
478         (rs6000_cmodel): New Enum and EnumValue entries.
479         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
480         global_options_set instead of rs6000_explicit_options.
481         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
482         (mtls-size=): Use Enum and Var.
483         (rs6000_tls_size): New Enum and EnumValue entries.
484
485 2011-05-05  Michael Matz  <matz@suse.de>
486
487         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
488         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
489         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
490         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
491         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
492         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
493         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
494         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
495         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
496         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
497         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
498         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
499         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
500         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
501         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
502         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
503
504 2011-05-05  Richard Guenther  <rguenther@suse.de>
505
506         * expmed.c (expand_variable_shift): Rename to ...
507         (expand_shift_1): ... this.  Take an expanded shift amount.
508         For rotates recurse directly not building trees for the shift amount.
509         (expand_variable_shift): Wrap around expand_shift_1.
510         (expand_shift): Adjust.
511
512 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
513
514         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
515
516 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
517
518         * tree.h (get_pending_sizes): Remove prototype.
519         (put_pending_size): Likewise.
520         (put_pending_sizes): Likewise.
521         * stor-layout.c (pending_sizes): Delete.
522         (get_pending_sizes): Likewise.
523         (put_pending_size): Likewise.
524         (put_pending_sizes): Likewise.
525         (variable_size): Do not call put_pending_size and tidy up.
526         * function.h (struct function): Remove dont_save_pending_sizes_p.
527         * lto-streamer-in.c (input_function): Do not stream it.
528         * lto-streamer-out.c (output_function): Likewise.
529         * tree-inline.c (initialize_cfun): Do not copy it.
530         * c-decl.c (store_parm_decls): Do not set it.
531         * omp-low.c (create_task_copyfn): Likewise.
532         * tree-optimize.c (tree_rest_of_compilation): Likewise.
533
534 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
535
536         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
537         conditions.
538         (*movdf_internal): Ditto.
539         (*movdf_internal_nointeger): Ditto.
540         (*movsf_internal): Ditto.
541
542 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
543
544         * c-decl.c (finish_decl): Don't call get_pending_sizes.
545         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
546         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
547         (c_variable_size): Remove.
548         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
549         call put_pending_sizes.
550         (get_parm_info): Add parameter expr.  Use it to set
551         arg_info->pending_sizes.
552         (store_parm_decls): Use arg_info->pending_sizes instead or calling
553         get_pending_sizes.
554         * c-parser.c (c_parser_parms_declarator): Update call to
555         c_parser_parms_list_declarator.
556         (c_parser_parms_list_declarator): Take parameter expr.  Update
557         call to push_parm_decl.  Update recursive call.  Don't call
558         get_pending_sizes.  Update calls to get_parm_info.
559         (c_parser_objc_method_definition): Update calls to
560         c_parser_objc_method_decl and objc_start_method_definition.
561         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
562         (c_parser_objc_method_decl): Add parameter expr.  Update call to
563         grokparm.
564         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
565         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
566         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
567
568 2011-05-05  Michael Hope  <michael.hope@linaro.org>
569
570         PR pch/45979
571         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
572         __ARM_EABI__ hosts.
573
574 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
575
576         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
577         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
578         (spu_output_mi_thunk): New function.
579
580 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
581
582         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
583         targetm.asm_out.print_operand.
584         * config/sol2.c: Include target.h.
585
586 2011-05-04  Jan Hubicka  <jh@suse.cz>
587
588         * ipa-inline.c (reset_edge_caches): New function.
589         (update_caller_keys): Add check_inlinablity_for; do not
590         reset edge caches; remove now unnecesary loop.
591         (update_callee_keys): Add comments; reset node_growth_cache of callee.
592         (update_all_callee_keys): Likewise.
593         (inline_small_functions): Sanity check cache; update code
594         recomputing it.
595
596 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
597
598         PR rtl-optimization/47612
599         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
600         as the last insn of the sequence to be moved.
601
602 2011-05-04  Tobias Burnus  <burnus@net-b.de>
603
604         PR fortran/48864
605         * doc/invoke.texi (Ofast): Document that it
606         enables Fortran's -fno-protect-parens.
607
608 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
609
610         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
611
612 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
613
614         * stor-layout.c (variable_size): Do not issue errors.
615
616 2011-05-04  Richard Guenther  <rguenther@suse.de>
617
618         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
619         for array-ref indices.
620         (tree_coverage_counter_addr): Likewise.
621         (build_fn_info_type): Use size_int for index types.
622         (build_gcov_info): Likewise.
623
624 2011-05-04  Richard Guenther  <rguenther@suse.de>
625
626         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
627         to build_int_cst.
628         * c-typeck.c (really_start_incremental_init): Use bitsize_int
629         for constructor indices.
630         (push_init_level): Likewise.
631
632 2011-05-04  Richard Guenther  <rguenther@suse.de>
633
634         * explow.c (promote_mode): Move variable declarations before code.
635
636 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
637
638         * tree.h (build_function_type_array): Declare.
639         (build_varargs_function_type_array): Declare.
640         (build_function_type_vec, build_varargs_function_type_vec): Define.
641         * tree.c (build_function_type_array_1): New function.
642         (build_function_type_array): New function.
643         (build_varargs_function_type_array): New function.
644
645 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
646
647         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
648         before setting STMT_VINFO_TYPE.
649
650 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
651
652         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
653         instead of spu_pass_by_reference.
654
655 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
656
657         * calls.c (emit_library_call_value_1): Invoke
658         promote_function_mode hook on libcall arguments.
659         * explow.c (promote_function_mode, promote_mode): Handle TYPE
660         argument being NULL.
661         * targhooks.c (default_promote_function_mode): Lisewise.
662         * config/s390/s390.c (s390_promote_function_mode): Likewise.
663         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
664
665         * doc/tm.texi: Document that TYPE argument might be NULL.
666
667 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
668
669         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
670
671 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
672
673         From Bernd Schmidt
674         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
675
676 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
677
678         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
679         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
680         Move ...
681         * mips-tfile.c: ... here.
682         Don't include coretypes.h, tm.h, filenames.h.
683         (saber_stop): Remove definition and all calls.
684         [__SABER__]: Remove.
685         (__LINE__): Remove default.
686         (Size_t, Ptrdiff_t): Remove definitions.
687         Replace by size_t, ptrdiff_t.
688         [!MIPS_DEBUGGING_INFO]: Remove.
689         (SHASH_SIZE, THASH_SIZE): Remove defaults.
690         (progname): Add const.
691         (STATIC): Remove.
692         Replace all uses by static.
693         (ALIGN_SYMTABLE_OFFSET): Remove default.
694         * mips-tdump.c: Don't include coretypes.h, tm.h.
695         Remove !MIPS_IS_STAB guard.
696         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
697         $(TM_H), filenames.h dependencies.
698         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
699
700 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
701
702         From Jie Zhang
703         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
704         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
705
706 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
707
708         From Bernd Schmidt
709         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
710         account and save/restore RETS.
711         (PROFILE_BEFORE_PROLOGUE): Define.
712         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
713         the push insn to use predecrement.
714
715 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
716
717         From Jie Zhang
718         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
719
720 2011-05-04  Nick Clifton  <nickc@redhat.com>
721
722         * config/mn10300/mn10300.c: Include cfgloop.h.
723         (DUMP): New macro.
724         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
725         Lcc or a FLcc insn into the instruction stream.
726         (mn10300_block_contains_call): New function.  Returns true if the
727         given basic block contains a CALL insn.
728         (mn10300_loop_contains_call_insn): New function.  Returns true if
729         the given loop contains a CALL insn.
730         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
731         to use the SETLB and Lcc or FLcc insns.
732         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
733         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
734         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
735         disable the SETLB optimization.
736         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
737         __SETLB__ or __NO_SETLB__.
738         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
739         (movsf_internal): Handle MDR register.
740         (cmpsi): Make visible.
741         (setlb): New pattern.
742         (Lcc): New pattern.
743         (FLcc): New pattern.
744
745 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
746
747         PR target/48860
748         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
749         for reg<->xmm moves.
750         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
751         (vec_concatv2di_rex64_sse): Ditto.
752         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
753         (*vec_extractv2di_1_rex64): Ditto.
754
755         Revert:
756         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
757
758         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
759         reg<->xmm moves.
760         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
761
762 2011-05-04  Richard Guenther  <rguenther@suse.de>
763
764         * tree.h (int_const_binop): Remove notrunc argument.
765         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
766         create integer constants that are properly truncated.
767         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
768         (const_binop): Remove zero notrunc argument to int_const_binop.
769         (size_binop_loc): Likewise.
770         (fold_div_compare): Likewise.
771         (maybe_canonicalize_comparison_1): Likewise.
772         (fold_comparison): Likewise.
773         (fold_binary_loc): Likewise.
774         (multiple_of_p): Likewise.
775         * expr.c (store_constructor): Likewise.
776         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
777         (maybe_fold_stmt_addition): Likewise.
778         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
779         * stor-layout.c (layout_type): Likewise.
780         * tree-data-ref.c (tree_fold_divides_p): Likewise.
781         * tree-sra.c (build_ref_for_offset): Likewise.
782         (build_user_friendly_ref_for_offset): Likewise.
783         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
784         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
785         * tree-ssa-loop-niter.c (inverse): Likewise.
786         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
787         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
788         * tree-switch-conversion.c (check_range): Likewise.
789         (build_constructors): Likewise.
790         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
791         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
792         (extract_range_from_assert): Likewise.
793         (vrp_int_const_binop): Likewise.
794         (extract_range_from_binary_expr): Likewise.
795         (extract_range_from_unary_expr): Likewise.
796         (check_array_ref): Likewise.
797         (find_case_label_range): Likewise.
798         (simplify_div_or_mod_using_ranges): Likewise.
799         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
800         comparing case labels for merging.
801
802 2011-05-03  Mark Wielaard  <mjw@redhat.com>
803
804         * dwarf2out.c (debug_str_hash_forced): Removed.
805         (gen_label_for_indirect_string): Removed.
806         (get_debug_string_label): Removed.
807         (AT_string_form): Generate label directly.
808         (output_indirect_string): Test indirect_string_node for
809         DW_FORM_strp instead of checking label and refcount.
810         (prune_indirect_string): Removed.
811         (prune_unused_types): Don't check debug_str_hash_forced or
812         call prune_indirect_string.
813
814 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
815
816         PR other/48093
817         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
818
819 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
820
821         PR debug/47994
822         PR debug/47919
823         * combine.c (try_combine): Skip debug insns at m_split tests.
824
825 2011-04-26  Mark Wielaard  <mjw@redhat.com>
826
827         PR42288
828         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
829         when info_section_emitted.
830
831 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
832
833         * config/mips/mips-opts.h: New.
834         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
835         to mips-opts.h.
836         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
837         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
838         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
839         via opts pointer.
840         * config/mips/mips.h (enum mips_code_readable_setting): Move to
841         mips-opts.h.
842         (mips_abi, mips_code_readable): Don't declare.
843         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
844         (mabi=): Use Enum and Var.
845         (mips_abi): New Enum and EnumValue entries.
846         (mcode-readable=): Use Enum and Var.
847         (mips_code_readable_setting): New Enum and EnumValue entries.
848         (mr10k-cache-barrier=): Use Enum and Var.
849         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
850
851 2011-05-03  Jan Hubicka  <jh@suse.cz>
852
853         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
854         replace hash by pointer map.
855         (cgraph_node_set_element_def, cgraph_node_set_element,
856         const_cgraph_node_set_element, varpool_node_set_element_def,
857         varpool_node_set_element, const_varpool_node_set_element): Remove.
858         (free_cgraph_node_set, free_varpool_node_set): New function.
859         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
860         * tree-emutls.c: Free varpool node set.
861         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
862         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
863         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
864         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
865         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
866         Move here from ipa.c; implement using pointer_map
867         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
868         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
869         debug_cgraph_node_set, varpool_node_set_new,
870         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
871         dump_varpool_node_set, debug_varpool_node_set):
872         Move to ipa-uitls.c.
873         * passes.c (ipa_write_summaries): Update.
874
875 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
876
877         From Mike Frysinger:
878         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
879         bf542/bf544/bf547/bf548/bf549.
880
881 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
882
883         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
884
885 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
886
887         From Bernd Schmidt:
888         * config/bfin/bfin.md (MOVCC): New mode_macro.
889         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
890         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
891         comments from generated assembly.
892
893 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
894
895         From Bernd Schmidt
896         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
897         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
898         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
899         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
900         * config/bfin/lib1funcs.asm (___muldi3): New function.
901
902 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
903
904         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
905         build_function_type_list instead of build_function_type.
906         Rearrange initialization of `args' to do so.
907
908 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
909
910         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
911         instead of build_function_type.
912
913 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
914
915         * config/rs6000/rs6000.c (spe_init_builtins): Call
916         build_function_type_list instead of build_function_type.
917         (paired_init_builtins, altivec_init_builtins): Likewise.
918         (builtin_function_type): Likewise.
919
920 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
921
922         * config/sh/sh.c (sh_media_init_builtins): Call
923         build_function_type_list instead of build_function_type.
924
925 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
926
927         * config/sparc/sparc.c (sparc_file_end): Call
928         build_function_type_list instead of build_function_type.
929
930 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
931
932         * config/alpha/alpha.c (alpha_init_builtins): Call
933         build_function_type_list instead of build_function_type.
934
935 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
936
937         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
938         build_function_type_list instead of build_function_type.
939
940 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
941
942         * config/iq2000/i2000.c (iq2000_init_builtins): Call
943         build_function_type_list instead of build_function_type.
944         Delete `endlink' variable.
945
946 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
947
948         * config/avr/avr.c (avr_init_builtins): Call
949         build_function_type_list instead of build_function_type.
950
951 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
952
953         * config/picochip/picochip.c (picochip_init_builtins): Call
954         build_function_type_list instead of build_function_type.
955         Delete `endlink' variable.
956
957 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
958
959         * config/bfin/bfin.c (bfin_init_builtins): Call
960         build_function_type_list instead of build_function_type.
961
962 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
963
964         From Bernd Schmidt
965         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
966         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
967
968 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
969
970         From Jie Zhang:
971         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
972         libbffastfp overrides libgcc when -mfast-fp.
973
974 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
975
976         Originally from Bernd Schmidt
977         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
978         * config/bfin/bfin.c (override_options): Test it and error if
979         TARGET_FDPIC.
980
981 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
982
983         Originally From Bernd Schmidt
984         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
985         FD-PIC.
986
987 2011-05-03  Jeff Law  <law@redhat.com>
988
989         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
990         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
991         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
992         than accessing AUX field directly.  Free the AUX field before
993         clearing it.
994         (thread_block, thread_through_loop_header): Likewise.
995         (thread_single_edge, mark_threaded_blocks): Likewise.
996         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
997         (register_jump_thread): Do not attempt to thread to a NULL edge.
998
999 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1000
1001         * function.c (init_function_start): Call decide_function_section.
1002         * varasm.c (decide_function_section): New function.
1003         (assemble_start_function): When not using
1004         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1005         or first_function_block_is_cold.
1006         * rtl.h (decide_function_section): Declare.
1007
1008 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1009             Jakub Jelinek  <jakub@redhat.com>
1010
1011         PR target/48774
1012         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1013         only succeed if req_mode is the same as set_mode.
1014
1015 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1016
1017         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1018         * genemit.c (gen_exp): Handle RETURN.
1019         * emit-rtl.c (verify_rtx_sharing): Likewise.
1020         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1021         * rtl.c (copy_rtx): RETURN is shared.
1022         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1023         (ret_rtx): New.
1024         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1025         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1026         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1027         * config/cris/cris.c (cris_expand_return): Likewise.
1028         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1029         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1030         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1031         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1032         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1033         Likewise.
1034         * config/v850/v850.c (expand_epilogue): Likewise.
1035         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1036         * config/arm/arm.md (epilogue): Likewise.
1037         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1038         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1039         variable to ret_reg.
1040
1041 2011-05-03  Richard Guenther  <rguenther@suse.de>
1042
1043         PR lto/48846
1044         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1045         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1046         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1047
1048 2011-05-03  Richard Guenther  <rguenther@suse.de>
1049
1050         * c-decl.c (grokdeclarator): Instead of looking at
1051         TREE_OVERFLOW check if the constant fits in the index type.
1052
1053 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1054
1055         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1056         (vec_store_lanes<mode><mode>): Likewise.
1057
1058 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1059
1060         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1061         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1062         convert_optab_index values.
1063         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1064         * genopinit.c (optabs): Initialize the new optabs.
1065         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1066         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1067         (expand_STORE_LANES): New functions.
1068         * tree.h (build_array_type_nelts): Declare.
1069         * tree.c (build_array_type_nelts): New function.
1070         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1071         (vect_model_load_cost): Likewise.
1072         (vect_store_lanes_supported, vect_load_lanes_supported)
1073         (vect_record_strided_load_vectors): Declare.
1074         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1075         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1076         (vect_transform_strided_load): Split out statement recording into...
1077         (vect_record_strided_load_vectors): ...this new function.
1078         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1079         (write_vector_array, create_array_ref): New functions.
1080         (vect_model_store_cost): Add store_lanes_p argument.
1081         (vect_model_load_cost): Add load_lanes_p argument.
1082         (vectorizable_store): Try to use store-lanes functions for
1083         interleaved stores.
1084         (vectorizable_load): Likewise load-lanes and loads.
1085         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1086         to vect_model_store_cost.
1087         (vect_build_slp_tree): Likewise vect_model_load_cost.
1088
1089 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1090
1091         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1092         * hooks.c (hook_bool_mode_uhwi_false): New function.
1093         * target.def (array_mode_supported_p): New hook.
1094         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1095         * doc/tm.texi: Regenerate.
1096         * stor-layout.c (mode_for_array): New function.
1097         (layout_type): Use it.
1098         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1099         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1100
1101 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1102
1103         PR target/48723
1104         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1105         for -fstack-check if the size to allocate is negative.
1106
1107 2011-05-02  Lawrence Crowl  <crowl@google.com>
1108
1109         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1110         (timevar_cond_start): New for starting a timer only when it is not
1111         already running.
1112         (timevar_cond_stop): New for stopping a timer when it was not already
1113         running.
1114
1115         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1116         (timevar_cond_start): New as above.
1117         (timevar_cond_stop): New as above.
1118
1119         * timevar.def: Add start/stop timers for compiler phases,
1120         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1121         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1122         and TV_PHASE_FINALIZE.
1123         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1124         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1125         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1126         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1127         Make unused TV_OVERLOAD into a start/stop timer.
1128
1129         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1130         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1131         to indicate that they are start/stop timers.
1132
1133         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1134         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1135         Move initialization to do_compile.
1136         (do_compile): Add initialization from above.
1137         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1138
1139         * c-decl.c (c_write_global_declarations): Add start/stop of
1140         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1141
1142         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1143         or TV_PARSE_INLINE, as appropriate.
1144         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1145         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1146
1147 2011-05-02  Jason Merrill  <jason@redhat.com>
1148
1149         PR c++/40975
1150         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1151
1152 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1153
1154         PR c/35445
1155         * c-decl.c (finish_decl): Only create a composite if the types are
1156         compatible.
1157
1158 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1159
1160         * config/fr30/fr30-protos.h (Mmode): Don't define.
1161         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1162         definition where used.
1163         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1164         define.  Expand definitions where used.
1165         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1166         Expand definitions where used.
1167         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1168         rx_function_arg, rx_function_arg_advance,
1169         rx_function_arg_boundary): Expand definitions of those macros.
1170         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1171         definition where used.
1172
1173 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1174
1175         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1176         reg<->xmm moves.
1177         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1178         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1179         with *movv2sf_internal_rex64_avx.
1180         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1181         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1182         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1183         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1184         "vex" in "prefix" attribute calculation.
1185         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1186
1187 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1188
1189         PR target/47951
1190         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1191         inputs match the output.
1192
1193 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1194
1195         PR target/47955
1196         * config/m68k/m68k.c (m68k_expand_prologue): Set
1197         current_function_static_stack_size.
1198
1199 2011-05-02   Jan Hubicka  <jh@suse.cz>
1200
1201         * lto-streamer.c (lto_streamer_cache_insert_1,
1202         lto_streamer_cache_lookup, lto_streamer_cache_create,
1203         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1204         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1205
1206 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1207
1208         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1209         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1210         config/m68k/t-opts: New files.
1211         * config/m68k/m68k-tables.opt: New file (generated).
1212         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1213         extra_options and m68k/t-opts to tmake_file.
1214         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1215         (all_isas): Initialize using m68k-isas.def.
1216         (all_microarchs): Initialize using m68k-microarchs.def.
1217         (m68k_find_selection): Remove.
1218         (m68k_handle_option): Don't assert that global structures are in
1219         use.  Use error_at.  Access variables via opts pointer.  Don't
1220         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1221         directly for -m68020-40 and -m68020-60.
1222         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1223         m68k_tune_entry here.
1224         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1225         to m68k-opts.h.
1226         (m68k_library_id_string): Remove declaration.
1227         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1228         (m68k_library_id_string): New Variable.
1229         (march=, mcpu=, mtune=): Use Enum and Var.
1230
1231 2011-05-02  Richard Guenther  <rguenther@suse.de>
1232
1233         * varasm.c (output_constructor_regular_field): Compute zero-based
1234         index with double-ints.  Make sure to ICE instead of producing
1235         wrong code.
1236         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1237         in asserts.  Properly use a signed type.
1238
1239 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1240
1241         * config/i386/sse.md (V): New mode iterator.
1242         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1243         TARGET_SSE2.
1244         (V_256): Rename from AVX256MODE.
1245         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1246         condition to all users.
1247         (VF1): Ditto.
1248         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1249         condition to all users.
1250         (VF_128): Make V4SF mode unconditional.
1251         (VF_256): Rename from AVX256MODEF2P.
1252         (VI4F_128): Rename from SSEMODE4S.
1253         (VI8F_128): Rename from SSEMODE2D.
1254         (VI4F_256): Rename from AVX256MODE8P.
1255         (VI8F_256): Rename from AVX256MODE4P.
1256         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1257         (ssescalarmodesuffix): Remove SF and DF modes.
1258         (SSEMODE124): Remove.
1259         (SSEMODE1248): Ditto.
1260         (SSEMODEF2P): Ditto.
1261         (AVXMODEF2P): Ditto.
1262         (AVXMODEFDP): Ditto.
1263         (AVXMODEFSP): Ditto.
1264         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1265         unconditional.
1266         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1267         unconditional.
1268         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1269         xop_pcmov_<mode>256.  Use V mode iterator.
1270
1271         Adjust RTX patterns globally for renamed mode attributes.
1272
1273 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1274
1275         * haifa-sched.c (sched_emit_insn): Emit insn before first
1276         non-scheduled insn.  Inform back-end about new insn.  Add
1277         new insn to scheduled_insns list.
1278
1279 2011-05-02  Richard Guenther  <rguenther@suse.de>
1280
1281         PR tree-optimization/48822
1282         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1283         (process_scc): Indicate which iteration we start.
1284
1285 2011-05-02  Jan Hubicka  <jh@suse.cz>
1286
1287         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1288         (lto_section_overrun): New.
1289         * lto-section-out.c (append_block): Rename to ...
1290         (lto_append_block): ... this one; export.
1291         (lto_output_1_stream): Move lto lto-streamer.h
1292         (lto_output_data_stream): Update.
1293         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1294         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1295         functions.
1296
1297 2011-05-02  Richard Guenther  <rguenther@suse.de>
1298
1299         * tree.c (tree_code_counts): New global array.
1300         (record_node_allocation_statistics): Count individual tree codes.
1301         (dump_tree_statistics): Dump individual code stats.
1302
1303 2011-05-01  Jan Hubicka  <jh@suse.cz>
1304
1305         * ipa-inline.c (caller_growth_limits): Fix thinko when
1306         looking for largest stack frame.
1307         * ipa-inline.h (dump_inline_summary): Declare.
1308         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1309         on stack usage.
1310         (dump_inline_summary): Export.
1311         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1312
1313 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1314
1315         * reginfo.c (memory_move_cost): Change rclass argument type form
1316         'enum reg_class' to reg_class_t.
1317         * reload.h (memory_move_cost): Update prototype.
1318         * postreload.c reload_cse_simplify_set): Change type dclass var to
1319         reg_class_t.
1320         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1321         Update prototype.
1322         (ira_allocate_and_set_costs): Change aclass argument type form
1323         'enum reg_class' to reg_class_t.
1324         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1325         Change aclass argument type to reg_class_t.
1326         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1327         to reg_class_t.
1328         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1329         memory_move_cost call.
1330
1331         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1332         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1333         Change type tmp var to reg_class_t.
1334
1335 2011-04-30  Jan Hubicka  <jh@suse.cz>
1336
1337         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1338         inlining into function with flatten attribute.
1339         (want_inline_small_function_p): Be more realistic about inlining
1340         cold calls where callee size grows.
1341
1342 2011-04-30  Jan Hubicka  <jh@suse.cz>
1343
1344         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1345         flags.
1346
1347 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1348
1349         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1350         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1351         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1352         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1353         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1354         (print_operand): Rename to...
1355         (sparc_print_operand): ...this. Make static. Adjust
1356         sparc_print_operand function call.
1357         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1358         functions.
1359
1360 2011-04-30  Jan Hubicka  <jh@suse.cz>
1361
1362         PR middle-end/48752
1363         * ipa-inline.c (early_inliner): Disable when doing late
1364         addition of function.
1365
1366 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1367
1368         * dwarf2out.c (get_address_mode): New inline.
1369         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1370         if not dwarf_strict emit
1371         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1372         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1373         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1374         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1375         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1376         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1377         mem_loc_descriptor callers.
1378         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1379         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1380         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1381         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1382         (base_types): New variable.
1383         (get_base_type_offset, calc_base_type_die_sizes,
1384         base_type_for_mode, mark_base_types, base_type_cmp,
1385         move_marked_base_types): New functions.
1386         (calc_die_sizes): Assert that die_offset is 0 or equal to
1387         next_die_offset.
1388         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1389         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1390         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1391         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1392         (gen_subprogram_die): Don't give up on call site parameters
1393         with non-integral or large integral modes.  Adjust
1394         mem_loc_descriptor callers.
1395         (prune_unused_types): Call prune_unused_types_mark on base_types
1396         vector entries.
1397         (resolve_addr): Call mark_base_types.
1398         (dwarf2out_finish): Call move_marked_base_types.
1399
1400         PR tree-optimization/48809
1401         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1402         type.
1403         (gen_inbound_check): Don't compute index_expr - range_min in utype
1404         again, instead reuse SSA_NAME initialized in build_arrays.
1405         Remove two useless gsi_for_stmt calls.
1406
1407 2011-04-29  Jeff Law  <law@redhat.com>
1408
1409         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1410
1411 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1412
1413         * cgraph.h (cgraph_postorder): Remove declaration.
1414         * ipa-utils.h (ipa_free_postorder_info): Declare.
1415         (ipa_reverse_postorder): Likewise.
1416         * cgraphunit.c: Include ipa-utils.h.
1417         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1418         * ipa-inline.c: Include ipa-utils.h.
1419         (ipa_inline): Update call to ipa_reverse_postorder.
1420         * ipa-pure-const.c (propagate_pure_const): Update call to
1421         ipa_reduced_postorder and ipa_print_order.  Call
1422         ipa_free_postorder_info to clean up.
1423         (propagate_nothrow): Likewise.
1424         * ipa-reference.c (propagate): Removed a useless call to
1425         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1426         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1427         * ipa.c: Include ipa-utils.h.
1428         (ipa_profile): Update call to ipa_reverse_postorder.
1429         (cgraph_postorder): Moved to...
1430         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1431         (ipa_utils_print_order): Renamed to ipa_print_order.
1432         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1433         comments.
1434         (ipa_free_postorder_info): New function.
1435         * passes.c: Include ipa-utils.h.
1436         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1437         (ipa_write_summaries): Likewise.
1438         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1439         (cgraphunit.o): Likewise.
1440         (ipa.o): Likewise.
1441         (ipa-inline.o): Likewise.
1442
1443 2011-04-29  Jan Hubicka  <jh@suse.cz>
1444
1445         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1446         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1447         * ipa-inline.h (clause_t): Turn into unsigned int.
1448         * ipa-inline-analysis.c (add_clause): Do more simplification.
1449         (and_predicates): Shortcut more cases.
1450         (predicates_equal_p): Move forward; check that clauses are properly
1451         ordered.
1452         (or_predicates): Shortcut more cases.
1453         (edge_execution_predicate): Rewrite as...
1454         (set_cond_stmt_execution_predicate): ... this function; handle
1455         __builtin_constant_p.
1456         (set_switch_stmt_execution_predicate): New .
1457         (compute_bb_predicates): New.
1458         (will_be_nonconstant_predicate): Update TODO.
1459         (estimate_function_body_sizes): Use compute_bb_predicates
1460         and free them later, always try to estimate if stmt is constant.
1461         (estimate_time_after_inlining, estimate_size_after_inlining):
1462         Gracefully handle optimized out edges.
1463         (read_predicate): Fix off by one error.
1464
1465 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1466
1467         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1468
1469 2011-04-27  Xinliang David Li  <davidxl@google.com>
1470
1471         * tree-profile.c (init_ic_make_global_vars): Set
1472         tls attribute on ic vars.
1473         * coverage.c (coverage_end_function): Initialize
1474         function_list with zero.
1475
1476 2011-04-29  Richard Guenther  <rguenther@suse.de>
1477
1478         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1479         for the type of the result.
1480         (fold_builtin_isascii): Likewise.
1481         (fold_builtin_toascii): Use integer_type_node where appropriate.
1482         (fold_builtin_logb): Likewise.
1483         (fold_builtin_frexp): Likewise.
1484         (fold_builtin_strstr): Likewise.
1485         (fold_builtin_strpbrk): Likewise.
1486         (fold_builtin_fputs): Likewise.
1487         (fold_builtin_sprintf): Likewise.
1488         (fold_builtin_snprintf): Likewise.
1489         (fold_builtin_printf): Likewise.
1490         (do_mpfr_remquo): Use a proper type for the assigned constant.
1491         (do_mpfr_lgamma_r): Likewise.
1492         * dwarf2out.c (resolve_one_addr): Use size_int.
1493         * except.c (init_eh): Likewise.
1494         (assign_filter_values): Use integer_type_node for filter values.
1495         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1496         indices.
1497         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1498         for EH region numbers.
1499         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1500         for the shift amount.
1501
1502 2011-04-29  Richard Guenther  <rguenther@suse.de>
1503
1504         * expr.h (expand_shift): Rename to ...
1505         (expand_variable_shift): ... this.
1506         (expand_shift): Take a constant shift amount.
1507         * expmed.c (expand_shift): Rename to ...
1508         (expand_variable_shift): ... this.
1509         (expand_shift): New wrapper around expand_variable_shift.
1510         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1511         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1512         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1513         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1514         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1515         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1516         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1517         emit_store_flag_1, emit_store_flag): Likewise.
1518         * builtins.c (expand_builtin_signbit): Likewise.
1519         * calls.c (load_register_parameters): Likewise.
1520         * function.c (assign_parm_setup_block): Likewise.
1521         * lower-subreg.c (resolve_shift_zext): Likewise.
1522         * optabs.c (widen_bswap, expand_abs_nojump,
1523         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1524         * spu/spu.c (spu_expand_extv): Likewise.
1525         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1526
1527 2011-04-29  Richard Guenther  <rguenther@suse.de>
1528
1529         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1530         for the remapped region number.
1531         * predict.c (build_predict_expr): Use integer_type_node for the
1532         predict kind.
1533         * fold-const.c (fold_binary_loc): Use integer_type_node for
1534         the shift amount.  Use a proper type for the PLUS_EXPR operand.
1535
1536 2011-04-29  Michael Matz  <matz@suse.de>
1537
1538         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1539         other trees that just builtins.
1540         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1541
1542 2011-04-29  Richard Guenther  <rguenther@suse.de>
1543
1544         * tree-nested.c (get_trampoline_type): Use size_int.
1545         (get_nl_goto_field): Likewise.
1546         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1547         for all indexes.
1548         (lower_eh_constructs_2): Likewise.
1549         (lower_resx): Likewise.
1550         (lower_eh_dispatch): Likewise.
1551         * tree-mudflap.c (mf_build_string): Use size_int.
1552         (mudflap_register_call): Use integer_type_node for the flag.
1553         (mudflap_enqueue_constant): Use size_int.
1554         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1555         instead of rebuilding it.
1556
1557 2011-04-29  Richard Guenther  <rguenther@suse.de>
1558
1559         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1560         Handle OBJ_TYPE_REF.
1561         (find_func_aliases_for_call): Use it more consistently.
1562
1563 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
1564
1565         * haifa-sched.c (last_nondebug_scheduled_insn): New.
1566         (rank_for_schedule): Use it.
1567         (schedule_block): Set it.
1568
1569 2011-04-28  David Li  <davidxl@google.com>
1570
1571         * tree.c (crc32_string): Use crc32_byte.
1572         (crc32_byte): New function.
1573         * tree.h (crc32_byte): New function.
1574         * gcov.c (read_graph_file): Handle new cfg_cksum.
1575         (read_count_file): Ditto.
1576         * profile.c (instrument_values): Ditto.
1577         (get_exec_counts): Ditto.
1578         (read_profile_edge_counts): Ditto.
1579         (compute_branch_probabilities): Ditto.
1580         (compute_value_histograms): Ditto.
1581         (branch_prob): Ditto.
1582         (end_branch_prob): Ditto.
1583         * coverage.c (read_counts_file): Ditto.
1584         (get_coverage_counts): Ditto.
1585         (tree_coverage_counter_addr): Ditto.
1586         (coverage_checksum_string): Ditto.
1587         (coverage_begin_output): Ditto.
1588         (coverage_end_function): Ditto.
1589         (build_fn_info_type): Ditto.
1590         (build_fn_info_value): Ditto.
1591         * libgcov.c (gcov_exit): Ditto.
1592         * gcov-dump.c (tag_function): Ditto.
1593         (compute_checksum): Remove.
1594
1595 2011-04-29  Alan Modra  <amodra@gmail.com>
1596
1597         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1598         unspec plus offset.  Tidy macho code.
1599
1600 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1601
1602         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1603         node instead of a decl.  Update all callers.
1604         * cgraph.h: Update declaration.
1605
1606 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
1607
1608         PR tree-optimization/48765
1609         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1610         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1611         to indicate if loop aware SLP is being used.  Scan the statements
1612         and update the vectorization factor according to the type of
1613         vectorization before statement analysis.
1614         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1615         pass it to vect_analyze_loop_operations.
1616         (vectorizable_reduction): Set number of copies to 1 in case of pure
1617         SLP statement.
1618         * tree-vect-stmts.c (vectorizable_conversion,
1619         vectorizable_assignment, vectorizable_shift,
1620         vectorizable_operation, vectorizable_type_demotion,
1621         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1622         Likewise.
1623         (vectorizable_condition): Move the check that it is not SLP
1624         vectorization before the number of copies check.
1625         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1626         to vectorize the loop using SLP.
1627
1628 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
1629
1630         PR middle-end/48597
1631         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1632         inline asm.
1633
1634 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
1635
1636         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1637         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1638         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1639         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1640         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1641         linux*.h headers.
1642         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1643         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1644         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1645         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1646         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1647         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1648         REG_NAME.
1649         * config/i386/linux.h (REG_NAME): Don't define.
1650         * config/i386/linux64.h (REG_NAME): Don't define.
1651         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1652         Undefine before defining.
1653
1654 2011-04-28  Jan Hubicka  <jh@suse.cz>
1655
1656         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1657         nonconstant_names array.
1658         (estimate_function_body_sizes): Build nonconstant_names array; handle
1659         BUILT_IN_CONSTANT_P.
1660
1661 2011-04-28  Richard Guenther  <rguenther@suse.de>
1662
1663         PR bootstrap/48804
1664         Revert
1665         2011-04-28  Richard Guenther  <rguenther@suse.de>
1666
1667         * tree-ssa-structalias.c (solve_constraints): Build succ graph
1668         as late as possible.
1669
1670 2011-04-28  Richard Guenther  <rguenther@suse.de>
1671
1672         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1673         (debug_constraint): Do it here.
1674         (dump_constraints): And here.
1675         (rewrite_constraints): And here.
1676         (dump_constraint_edge): Remove.
1677         (dump_constraint_graph): Rewrite to produce DOT output.
1678         (solve_constraints): Build succ graph as late as possible.
1679         Dump constraint graphs before and after solving.
1680
1681 2011-04-28  Richard Guenther  <rguenther@suse.de>
1682
1683         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1684         New function split out from ...
1685         (find_func_aliases): ... here.  Call it.
1686         (find_func_aliases_for_call): Likewise.
1687
1688 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1689
1690         * internal-fn.h (internal_fn_name_array): Declare.
1691         (internal_fn_flags_array): Likewise.
1692
1693 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1694
1695         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
1696         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1697         Move from sse.md.
1698         (ssemodefsuffix): Remove.
1699         (ssevecmodesuffix): New mode attribute.
1700         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1701         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1702         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1703         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1704         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1705         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1706         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1707         ssemodesuffix mode attribute.
1708         (float splitters): Use ssevecmodesuffix mode attribute.
1709         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1710         (sseinsmode): Rename from avxvecmode.
1711         (avxsizesuffix): Rename from avxmodesuffix.
1712         (sseintvecmode): Rename from avxpermvecmode.
1713         (ssedoublevecmode): Rename from ssedoublesizemode.
1714         (ssehalfvecmode): Rename from avxhalfvecmode.
1715         (ssescalarmode): Rename from avxscalarmode.
1716         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1717         templates for ssemodesuffix mode attribute.
1718         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1719         mode attribute.
1720
1721         Adjust RTX patterns globally for renamed mode attributes.
1722
1723 2011-04-27  Jan Hubcika  <jh@suse.cz>
1724
1725         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1726         * ipa-inline-analysis.c: Include alloc-pool.h.
1727         (edge_predicate_pool): New.
1728         (trye_predicate_p): New function
1729         (false_predicate_p): New function.
1730         (add_clause): Sanity check that false clauses are "optimized";
1731         never add clauses to predicate that is already known to be false.
1732         (and_predicate): Use flase_predicate_p.
1733         (evaulate_predicate): Rename to ...
1734         (evaluate_predicate): ... this one; update all callers; assert
1735         that false is not listed among possible truths.
1736         (dump_predicate): Use true_predicate_p.
1737         (account_size_time): Use false_predicate_p.
1738         (evaulate_conditions_for_edge): Rename to ...
1739         (evaluate_conditions_for_edge) ... this one.
1740         (edge_set_predicate): New function.
1741         (inline_edge_duplication_hook): Duplicate edge predicates.
1742         (inline_edge_removal_hook): Free edge predicates.
1743         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1744         (dump_inline_summary): Update.
1745         (estimate_function_body_sizes): Set edge predicates.
1746         (estimate_calls_size_and_time): Handle predicates.
1747         (estimate_callee_size_and_time): Update.
1748         (remap_predicate): Add toplev_predicate; update comment.
1749         (remap_edge_predicates): New function.
1750         (inline_merge_summary): Compute toplev predicate; update.
1751         (read_predicate): New function.
1752         (read_inline_edge_summary): Use it.
1753         (inline_read_section): Likewise.
1754         (write_predicate): New function.
1755         (write_inline_edge_summary): Use it.
1756         (inline_write_summary): Likewise.
1757         (inline_free_summary): Free alloc pool and edge summary vec.
1758
1759 2011-04-27  Richard Guenther  <rguenther@suse.de>
1760
1761         * tree-ssa-structalias.c (changed_count): Remove.
1762         (changed): Use a bitmap.
1763         (unify_nodes): Adjust.
1764         (do_sd_constraint): Likewise.
1765         (do_ds_constraint): Likewise.
1766         (do_complex_constraint): Likewise.
1767         (solve_graph): Likewise.
1768
1769 2011-04-27  Jan Hubicka  <jh@suse.cz>
1770
1771         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1772
1773 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1774
1775         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1776         (avx_vperm2f128_*_operand): Ditto.
1777         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1778         Use avx_vpermilp_parallel in insn condition.
1779         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1780         Use avx_vperm2f128_parallel in insn condition.
1781
1782 2011-04-27  Richard Guenther  <rguenther@suse.de>
1783
1784         * Makefile.in (tree-ssa-structalias.o): Remove
1785         gt-tree-ssa-structalias.h dependency.
1786         (GTFILES): Remove tree-ssa-structalias.c.
1787         * tree.c (allocate_decl_uid): New function.
1788         (make_node_stat): Use it.
1789         (copy_node_stat): Likewise.
1790         * tree.h (allocate_decl_uid): Declare.
1791         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1792         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1793         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1794         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1795         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1796         (struct heapvar_map): Likewise.
1797         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1798         heapvar_insert): Likewise.
1799         (make_heapvar_for): Rename to ...
1800         (make_heapvar): ... this.  Simplify.
1801         (fake_var_decl_obstack): New global var.
1802         (build_fake_var_decl): New function.
1803         (make_constraint_from_heapvar): Adjust.
1804         (handle_lhs_call): Likewise.
1805         (create_function_info_for): Likewise.
1806         (intra_create_variable_infos): Likewise.
1807         (init_alias_vars): Allocate fake_var_decl_obstack.
1808         (init_alias_heapvars, delete_alias_heapvars): Remove.
1809         (compute_points_to_sets): Do not call init_alias_heapvars.
1810         (ipa_pta_execute): Likewise.
1811         (delete_points_to_sets): Free fake_var_decl_obstack.
1812
1813 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1814
1815         * config/spu/divmovti4.c (union qword_UTItype): New data type.
1816         (si_from_UTItype, si_to_UTItype): New functions.
1817         (__udivmodti4): Use them to implement type-punning.
1818         * config/spu/multi3.c (union qword_TItype): New data type.
1819         (si_from_TItype, si_to_TItype): New functions.
1820         (__multi3): Use them to implement type-punning.
1821
1822 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1823
1824         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1825
1826 2011-04-27  Jan Hubicka  <jh@suse.cz>
1827
1828         * ipa-prop.c (function_insertion_hook_holder): New holder.
1829         (ipa_add_new_function): New function.
1830         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1831         Register/deregister holder.
1832
1833 2011-04-27  Richard Guenther  <rguenther@suse.de>
1834
1835         PR tree-optimization/48772
1836         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1837
1838 2011-04-27  Richard Guenther  <rguenther@suse.de>
1839
1840         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1841         TARGET_MEM_REF handling.
1842
1843 2011-04-27  Nick Clifton  <nickc@redhat.com>
1844
1845         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1846         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1847         (REG_CLASS_NAMES): Likewise.
1848         (REG_CLASS_CONTENTS): Likewise.
1849         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1850         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1851         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
1852         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
1853         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
1854         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1855         duplicate register classes.
1856         (frv_class_likely_spilled_p): Likewise.
1857         (frv_register_move_cost): Likewise.
1858
1859         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1860         end of the regno_reg_class array.
1861
1862 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
1863
1864         PR c/48742
1865         * c-typeck.c (build_binary_op): Don't wrap arguments if
1866         int_operands is true.
1867
1868 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
1869
1870         PR target/48767
1871         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1872         targetm.calls.must_pass_in_stack for void type.
1873
1874 2011-04-26  Jan Hubicka  <jh@suse.cz>
1875
1876         * cgraphbuild.c (build_cgraph_edges): Update call
1877         of cgraph_create_edge and cgraph_create_indirect_edge.
1878         * cgraph.c (cgraph_create_edge_including_clones,
1879         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1880         cgraph_update_edges_for_call_stmt_node): Do not take nest
1881         argument; do not initialize call_stmt_size/time.
1882         (dump_cgraph_node): Do not dump nest.
1883         (cgraph_clone_edge): Do not take loop_nest argument;
1884         do not propagate it; do not clone call_stmt_size/time.
1885         (cgraph_clone_node): Likewise.
1886         (cgraph_create_virtual_clone): Update.
1887         * cgraph.h (struct cgraph_edge): Remove
1888         call_stmt_size/call_stmt_time/loop_nest.
1889         (cgraph_create_edge, cgraph_create_indirect_edge,
1890         cgraph_create_edge_including_clones, cgraph_clone_node): Update
1891         prototype.
1892         * tree-emutls.c (gen_emutls_addr): Update.
1893         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1894         loop_nest; handle indirect calls, too.
1895         (clone_inlined_nodes): Do not care about updating inline summaries.
1896         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1897         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1898         stream call_stmt_size/call_stmt_time/loop_nest.
1899         * ipa-inline.c (edge_badness): Update.
1900         (ipa_inline): dump summaries after inlining.
1901         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1902         New.
1903         (inline_edge_summary): New function.
1904         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1905         (inline_edge_removal_hook): Handle edge summaries.
1906         (inline_edge_duplication_hook): New hook.
1907         (inline_summary_alloc): Alloc hooks.
1908         (initialize_growth_caches): Do not register removal hooks.
1909         (free_growth_caches); Do not free removal hook.
1910         (dump_inline_edge_summary): New function.
1911         (dump_inline_summary): Use it.
1912         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1913         (inline_update_callee_summaries): New function.
1914         (inline_merge_summary): Use it.
1915         (do_estimate_edge_time, do_estimate_edge_growth): Update.
1916         (read_inline_edge_summary): New function.
1917         (inline_read_section): Use it.
1918         (write_inline_edge_summary): New function.
1919         (inline_write_summary): Use it.
1920         (inline_free_summary): Free edge new holders.
1921         * tree-inline.c (copy_bb): Update.
1922
1923 2011-04-26  Jason Merrill  <jason@redhat.com>
1924
1925         * tree-eh.c (lower_try_finally_switch): Create the label along with
1926         the CASE_LABEL_EXPR.
1927
1928 2011-04-26  David S. Miller  <davem@davemloft.net>
1929             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1930
1931         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1932         * configure: Regenerate.
1933
1934 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1935
1936         PR target/48258
1937         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1938         reduction.
1939         (VEC_reduc): New code iterator and splitters for vector reduction.
1940         (VEC_reduc_name): Ditto.
1941         (VEC_reduc_rtx): Ditto.
1942         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1943         (reduc_<VEC_reduc_name>_v4sf): Ditto.
1944
1945         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1946         support for extracting SF on VSX.
1947
1948         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1949         generating xscvspdp.
1950         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1951         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1952         double add, minimum, maximum vector reduction.
1953         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1954         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1955         optimize double vector reduction.
1956         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1957
1958 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
1959
1960         * config/fr30/fr30.h (inhibit_libc): Don't define.
1961         * config/m32r/m32r-protos.h: Correct comment.
1962         * config/v850/v850.h (GHS_default_section_names,
1963         GHS_current_section_names): Use tree, not union tree_node *.
1964
1965 2011-04-26  Xinliang David Li  <davidxl@google.com>
1966
1967         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1968         * c-family/c-opts.c (c_common_handle_option): Set
1969         warn_maybe_uninitialized.
1970         * opts.c (common_handle_option): Ditto.
1971         * common.opt:  New option.
1972         * tree-ssa.c (warn_uninit): Add one more parameter.
1973         (warn_uninitialized_var): Pass warning code.
1974         * tree-flow.h: Interface change.
1975
1976
1977 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1978
1979         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1980         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1981         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1982
1983 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1984
1985         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1986         * config/mips/mips.opt (mmips-tfile): Remove.
1987
1988         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1989         mips-tdump reference to ...
1990         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
1991         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1992         reference by Tru64 UNIX.
1993
1994 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
1995
1996         PR debug/48768
1997         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1998         is error_mark_node, set value to NULL.
1999
2000         PR tree-optimization/48734
2001         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2002         if return value from maybe_fold_*_comparsions isn't something
2003         the code is prepared to handle.
2004
2005 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2006
2007         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2008         mode check.
2009         (ext_QIreg_nomode_operands): Remove.
2010         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2011         (*andsi_1): Ditto.
2012         (*andhi_1): Ditto.
2013
2014 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2015
2016         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2017
2018 2011-04-26  Richard Guenther  <rguenther@suse.de>
2019
2020         * c-typeck.c (build_unary_op): Do not expand array-refs via
2021         pointer arithmetic.  Only adjust qualifiers for function types.
2022
2023 2011-04-26  Richard Guenther  <rguenther@suse.de>
2024
2025         PR middle-end/48694
2026         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2027         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2028         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2029         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2030
2031 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2032
2033         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2034         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2035         * doc/extend.texi: Document __underlying_type.
2036
2037 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2038
2039         * config/rs6000/titan.md (automata_option "progress"): Remove.
2040
2041 2011-04-25  Jeff Law  <law@redhat.com>
2042
2043         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2044
2045 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2046
2047         * system.h (ENUM_BITFIELD): Remove.
2048
2049 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2050             Eric Botcazou  <ebotcazou@adacore.com>
2051
2052         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2053         for STORE_FLAG_VALUE==-1 case.
2054
2055 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2056
2057         PR target/43804
2058         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2059         LEGITIMATE_PIC_OPERAND_P.
2060
2061 2011-04-24  Jan Hubicka  <jh@suse.cz>
2062
2063         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2064         WPA hack.
2065         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2066         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2067         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2068         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2069         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2070         Sanity check predicate length.
2071         (remap_predicate): Likewise; sanity check jump functions.
2072         (inline_read_section, inline_write_summary): Sanity check
2073         predicate length.
2074
2075 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2076
2077         PR other/48748
2078         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2079         __is_literal_type, and __is_trivial; update throughout about
2080         possibly cv-qualified void types.
2081
2082 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2083
2084         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2085         testsuite and make it version agnostic.
2086
2087 2011-04-22  Jan Hubicka  <jh@suse.cz>
2088
2089         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2090
2091 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2092
2093         PR c/48685
2094         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2095         to VOID_TYPE even around MODIFY_EXPR.
2096
2097 2011-04-22  Mike Stump  <mikestump@comcast.net>
2098
2099         * gensupport.c (read_md_rtx): Fix typo in comment.
2100         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2101         comment.
2102
2103 2011-04-22  Jan Hubicka  <jh@suse.cz>
2104
2105         * gengtype.c (open_base_files): Add ipa-inline.h include.
2106         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2107         ipa-prop.c; update all uses.
2108         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2109         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2110         merge summary of inlined function into former caller.
2111         * ipa-inline.c (max_benefit): Remove.
2112         (edge_badness): Compensate for removal of benefits.
2113         (update_caller_keys): Use
2114         reset_node_growth_cache/reset_edge_growth_cache.
2115         (update_callee_keys): Likewise.
2116         (update_all_callee_keys): Likewise.
2117         (inline_small_functions): Do not collect max_benefit; do not reset
2118         estimated_growth; call free_growth_caches and initialize_growth_caches.
2119         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2120         struct size_time_entry): New structures.
2121         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2122         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2123         and estimated_growth.
2124         (edge_growth_cache_entry): New structure.
2125         (node_growth_cache, edge_growth_cache): New global vars.
2126         (estimate_growth): Turn into inline.
2127         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2128         initialize_growth_caches, free_growth_caches): Declare.
2129         (estimate_edge_growth): Rewrite.
2130         (estimate_edge_time): Implement as inline cache lookup.
2131         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2132         functions.
2133         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2134         (NUM_CONDITIONS): New constant.
2135         (predicate_conditions): New enum.
2136         (IS_NOT_CONSTANT): New constant.
2137         (edge_removal_hook_holder): New var.
2138         (node_growth_cache, edge_growth_cache): New global vars.
2139         (true_predicate, single_cond_predicate, false_predicate,
2140         not_inlined_predicate, add_condition, add_clause, and_predicates,
2141         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2142         dump_clause, dump_predicate, account_size_time,
2143         evaulate_conditions_for_edge): New functions.
2144         (inline_summary_alloc): Move to heap.
2145         (inline_node_removal_hook): Clear condition and entry vectors.
2146         (inline_edge_removal_hook): New function.
2147         (initialize_growth_caches, free_growth_caches): New function.
2148         (dump_inline_summary): Update.
2149         (edge_execution_predicate): New function.
2150         (will_be_nonconstant_predicate): New function.
2151         (estimate_function_body_sizes): Compute BB and constantness predicates.
2152         (compute_inline_parameters): Do not clear estimated_growth.
2153         (estimate_edge_size_and_time): New function.
2154         (estimate_calls_size_and_time): New function.
2155         (estimate_callee_size_and_time): New function.
2156         (remap_predicate): New function.
2157         (inline_merge_summary): New function.
2158         (do_estimate_edge_time): New function based on...
2159         (estimate_edge_time): ... this one.
2160         (do_estimate_edge_growth): New function.
2161         (do_estimate_growth): New function based on....
2162         (estimate_growth): ... this one.
2163         (inline_analyze_function): Analyze after deciding on jump functions.
2164         (inline_read_section): New function.
2165         (inline_read_summary): Use it.
2166         (inline_write_summary): Write all the new data.
2167         * ipa-prop.c (ipa_get_param_decl_index): Export.
2168         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2169         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2170         Declare.
2171         (ipa_get_lattice): Move here from ipa-cp.c
2172         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2173         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2174         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2175         cgraph_edge_inlinable_p): Remove.
2176         * cgraphunit.c: Include ipainline.h
2177         (cgraph_process_new_functions): Update call of
2178         compute_inline_parameters.
2179
2180 2011-04-22  Richard Guenther  <rguenther@suse.de>
2181
2182         * tree.c (build_int_cst): Properly create canonicalized integer
2183         constants.
2184         (build_int_cst_type): Remove scary comments.
2185
2186 2011-04-22  Xinliang David Li  <davidxl@google.com>
2187
2188         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2189         by default when -Wno-error is not specified.
2190         * opts-global.c (decode_options): Remove call to
2191         control_warning_options.
2192
2193 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2194
2195         PR tree-optimization/48717
2196         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2197         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2198
2199 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2200
2201         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2202         definition where used.
2203
2204 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2205
2206         PR c/48716
2207         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2208         TREE_STATIC variables declared inside of some OpenMP construct.
2209
2210 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2211
2212         PR middle-end/48585
2213         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2214
2215 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2216
2217         PR c/36750
2218         * c-typeck.c (pop_init_level): Do not warn about initializing
2219         with ` = {0}'.
2220
2221 2011-04-22  Alan Modra  <amodra@gmail.com>
2222
2223         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2224         when returning call_cookie.
2225         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2226         pointers, to functions with no more vector args than the current
2227         function, and some non-local calls for ABI_V4.
2228         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2229         sibcall_nonlocal_aix64): Combine to ..
2230         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2231         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2232         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2233         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2234         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2235         operand.
2236         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2237         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2238         sibcall_value_symbolic_64): Delete.
2239
2240 2011-04-21  Xinliang David Li  <davidxl@google.com>
2241
2242         * cgraph.h: Remove pid.
2243         * cgraph.c: Remove pid.
2244         * value-prof.c (init_node_map): New function.
2245         (del_node_map): New function.
2246         (find_func_by_funcdef_no): New function.
2247         (gimple_ic_transform): Call new function.
2248         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2249         * function.c (get_last_funcdef_no): New function.
2250         * function.h (get_last_funcdef_no): New function.
2251         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2252         to libgcov function.
2253         (tree-profiling): Call node map init and delete function.
2254
2255 2011-04-21  Ian Lance Taylor  <iant@google.com>
2256
2257         * godump.c (go_format_type): Use exported Go name for anonymous
2258         field name.
2259
2260 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2261
2262         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2263         Call builtin_function_type_list instead of builtin_function_type.
2264         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2265
2266 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2267
2268         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2269         build_function_type_list instead of build_function_type.
2270         Delete variable `endlink'.
2271
2272 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2273
2274         * config/s390/s390.c (s390_init_builtins): Call
2275         build_function_type_list instead of build_function_type.
2276
2277 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2278
2279         * config/ia64/ia64.c (ia64_init_builtins): Call
2280         build_function_type_list instead of builtin_function_type.
2281
2282 2011-04-21  Easwaran Raman  <eraman@google.com>
2283
2284         * cfgexpand.c (stack_var): Remove OFFSET...
2285         (add_stack_var): ...and its reference here...
2286         (expand_stack_vars): ...and here.
2287         (stack_var_cmp): Sort by descending order of size.
2288         (partition_stack_vars): Change heuristic.
2289         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2290         (dump_stack_var_partition): Add newline after each partition.
2291
2292 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2293             Jeff Law  <law@redhat.com>
2294
2295         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2296         * gengtype.c (matching_file_name_substitute): Likewise.
2297
2298 2011-04-21  Richard Guenther  <rguenther@suse.de>
2299
2300         PR lto/48703
2301         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2302
2303 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2304
2305         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2306
2307 2011-04-21  Richard Guenther  <rguenther@suse.de>
2308
2309         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2310         file name.
2311
2312 2011-04-21  Richard Guenther  <rguenther@suse.de>
2313
2314         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2315         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2316         Use DECL_P, not SSA_VAR_P.
2317         (ptr_derefs_may_alias_p): Likewise.
2318         (ptr_deref_may_alias_ref_p_1): Likewise.
2319         (decl_refs_may_alias_p): Likewise.
2320         (refs_may_alias_p_1): Likewise.
2321         (ref_maybe_used_by_call_p_1): Likewise.
2322         (call_may_clobber_ref_p_1): Likewise.
2323         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2324         are either MEM_REF or TARGET_MEM_REF.
2325         (indirect_refs_may_alias_p): Likewise.
2326         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2327         for MEM_EXPR of indirect calls.
2328
2329 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2330
2331         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2332         (dst_file_info_struct): Remove flen field.
2333         (lookup_filename): Remove code that set flen field.
2334
2335 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2336
2337         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2338
2339 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2340
2341         PR target/48708
2342         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2343         vec_extract and vec_concat for non-SSE4_1 targets.
2344
2345 2011-04-21  Richard Guenther  <rguenther@suse.de>
2346
2347         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2348         return statements.
2349
2350 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2351
2352         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2353         undefine.
2354         (FILE): Don't undefine.
2355
2356 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2357
2358         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2359         struct rtx_def *.
2360         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2361         struct rtx_def *.
2362         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2363         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2364         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2365         rtx_def *.
2366         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2367         definitions where used.
2368         * config/microblaze/microblaze.h (struct microblaze_args): Use
2369         rtx, not struct rtx_def *.
2370         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2371         rtx_def *.
2372         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2373         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2374         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2375         not struct rtx_def *.
2376         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2377         struct rtx_def *.
2378         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2379         rtx_def *.
2380         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2381
2382 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2383
2384         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2385         operand_equal_p to compare DR_BASE_ADDRESSes.
2386         (vect_check_interleaving): Likewise.
2387
2388 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2389
2390         PR target/46329
2391         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2392         for all Neon struct constants.
2393
2394 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2395
2396         * target.def (legitimate_constant_p): New hook.
2397         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2398         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2399         * doc/tm.texi: Regenerate.
2400         * hooks.h (hook_bool_mode_rtx_true): Declare.
2401         * hooks.c (hook_bool_mode_rtx_true): Define.
2402         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2403         * calls.c (precompute_register_parameters): Replace uses of
2404         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2405         (emit_library_call_value_1): Likewise.
2406         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2407         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2408         * ira-costs.c (scan_one_insn): Likewise.
2409         * recog.c (general_operand, immediate_operand): Likewise.
2410         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2411         * reload1.c (init_eliminable_invariants): Likewise.
2412
2413         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2414         mode argument.
2415         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2416         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2417         argument.
2418         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2419         * config/alpha/predicates.md (input_operand): Update call to
2420         alpha_legitimate_constant_p.
2421
2422         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2423         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2424         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2425         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2426         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2427         (arm_legitimate_constant_p): New functions.
2428         (arm_cannot_force_const_mem): Make static.
2429
2430         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2431
2432         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2433         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2434         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2435         instead of bfin_legitimate_constant_p.
2436         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2437         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2438
2439         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2440
2441         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2442
2443         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2444         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2445         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2446         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2447
2448         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2449         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2450         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2451
2452         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2453         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2454         * config/i386/i386.c (legitimate_constant_p): Rename to...
2455         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2456         argument.
2457         (ix86_cannot_force_const_mem): Update accordingly.
2458         (ix86_legitimate_address_p): Likewise.
2459         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2460         * config/i386/i386.md: Update commentary.
2461
2462         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2463         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2464         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2465         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2466
2467         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2468
2469         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2470         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2471         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2472         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2473
2474         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2475         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2476         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2477
2478         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2479         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2480         (m32r_legitimate_constant_p): New function.
2481
2482         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2483         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2484         LEGITIMATE_CONSTANT_P.
2485         (LEGITIMATE_CONSTANT_P): Delete.
2486         * config/m68k/m68k.c (m68k_expand_prologue): Call
2487         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2488         (m68k_legitimate_constant_p): New function.
2489         * config/m68k/m68k.md: Update comments.
2490
2491         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2492         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2493         (mcore_legitimate_constant_p): New function.
2494
2495         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2496         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2497         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2498         Add a mode argument.
2499         (mep_legitimate_address): Update accordingly.
2500         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2501
2502         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2503         Delete.
2504         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2505         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2506         static.  Check OP's mode for VOIDmode.
2507         (microblaze_legitimate_constant_p): New function.
2508         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2509
2510         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2511         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2512         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2513         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2514         * config/mips/predicates.md: Update comments.
2515
2516         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2517         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2518         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2519         (mmix_legitimate_constant_p): Make static, return a bool, and take
2520         a mode argument.
2521         (mmix_print_operand_address): Update accordingly.
2522
2523         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2524         Delete.
2525         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2526         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2527         static.  Add a mode argument.
2528         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2529
2530         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2531
2532         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2533         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2534         (pa_legitimate_constant_p): New function.
2535
2536         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2537
2538         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2539         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2540         (pdp11_legitimate_constant_p): New function.
2541
2542         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2543         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2544         (rs6000_legitimate_constant_p): New function.
2545
2546         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2547         (rx_legitimate_constant_p): ...this.
2548         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2549         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2550         (rx_legitimate_constant_p): ...this.
2551         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2552         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2553
2554         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2555         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2556         * config/s390/s390.c (legitimate_constant_p): Rename to...
2557         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
2558         and add a mode argument.
2559         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2560
2561         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2562
2563         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2564         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2565         (sh_legitimate_constant_p): New function.
2566
2567         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2568         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2569         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2570         (legitimate_constant_p): Rename to...
2571         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
2572         argument.
2573         (constant_address_p): Update accordingly.
2574
2575         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2576         argument and return a bool.
2577         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2578         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2579         (spu_legitimate_constant_p): Add a mode argument and return a bool.
2580         (spu_rtx_costs): Update accordingly.
2581         * config/spu/predicates.md (vec_imm_operand): Likewise.
2582
2583         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2584
2585         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2586         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2587         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2588
2589         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2590         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2591         * config/vax/vax.c (legitimate_constant_p): Likewise.
2592
2593         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2594         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2595         (xtensa_legitimate_constant_p): New function.
2596
2597 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2598
2599         * target.def (cannot_force_const_mem): Add a mode argument.
2600         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2601         * doc/tm.texi: Regenerate.
2602         * hooks.h (hook_bool_mode_rtx_false): Declare.
2603         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2604         (hook_bool_mode_const_rtx_true): Likewise.
2605         (hook_bool_mode_rtx_false): New function.
2606         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2607         to be non-VOID.  Update call to cannot_force_const_mem.
2608         (find_reloads): Update accordingly.
2609         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2610         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2611         argument.
2612         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2613         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2614         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2615         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2616         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2617         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2618         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2619         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2620         (m68k_cannot_force_const_mem): ...this new function.
2621         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2622         argument.
2623         (mips_const_insns, mips_legitimize_const_move): Update calls.
2624         (mips_secondary_reload_class): Likewise.
2625         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2626         (pa_cannot_force_const_mem): ...this new function.
2627         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2628         (rs6000_cannot_force_const_mem): ...this new function.
2629         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2630         argument.
2631         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2632         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2633         to...
2634         (xtensa_cannot_force_const_mem): ...this new function.
2635
2636 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2637
2638         * config/mips/mips.c (mips16_build_function_stub): Call
2639         build_function_type_list instead of build_function_type.
2640         (mips16_build_call_stub): Likewise.
2641
2642 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2643
2644         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2645         instead of build_function_type.
2646
2647 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2648
2649         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2650         instead of build_function_type.
2651
2652 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
2653
2654         PR target/48678
2655         * config/i386/i386.md (insv): Change operand 0 constraint to
2656         "register_operand".  Change operand 1 and 2 constraint to
2657         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
2658         * config/i386/sse.md (sse4_1_pinsrb): Export.
2659         (sse2_pinsrw): Ditto.
2660         (sse4_1_pinsrd): Ditto.
2661         (sse4_1_pinsrq): Ditto.
2662         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2663         * config/i386/i386.c (ix86_expand_pinsr): New.
2664
2665 2011-04-20  Easwaran Raman  <eraman@google.com>
2666
2667         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2668         containing union type only with -fstrict-aliasing.
2669
2670 2011-04-20  Jim Meyering  <meyering@redhat.com>
2671
2672         Remove useless if-before-free tests.
2673         * calls.c (expand_call, save_area): Likewise.
2674         * cfgcleanup.c (try_forward_edges): Likewise.
2675         * collect2.c (collect_execute): Likewise.
2676         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2677         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2678         * coverage.c (coverage_checksum_string): Likewise.
2679         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2680         * cselib.c (cselib_init): Likewise.
2681         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2682         (df_set_clean_cfg): Likewise.
2683         * function.c (free_after_compilation): Likewise.
2684         * gcc.c (do_spec_1, main): Likewise.
2685         * gcov.c (create_file_names): Likewise.
2686         * gensupport.c (identify_predicable_attribute): Likewise.
2687         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2688         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2689         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2690         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2691         * ipa-pure-const.c (local_pure_const): Likewise.
2692         * ipa-reference.c (propagate): Likewise.
2693         * ira-costs.c (free_ira_costs): Likewise.
2694         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2695         * matrix-reorg.c (mat_free): Likewise.
2696         * prefix.c (get_key_value): Likewise.
2697         * profile.c (compute_value_histograms): Likewise.
2698         * reload1.c (free_reg_equiv): Likewise.
2699         * sched-deps.c (free_deps): Likewise.
2700         * sel-sched-ir.c (fence_clear): Likewise.
2701         * sese.c (set_rename, if_region_set_false_region): Likewise.
2702         * tree-data-ref.c (free_rdg): Likewise.
2703         * tree-eh.c (lower_try_finally): Likewise.
2704         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2705         * tree-ssa-live.c (delete_var_map): Likewise.
2706         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2707         * tree-ssa-pre.c (phi_trans_add): Likewise.
2708
2709 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
2710
2711         PR tree-optimization/48611
2712         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2713         beyond ERT_MUST_NOT_THROW region.
2714
2715 2011-04-20  Catherine Moore  <clm@codesourcery.com>
2716
2717         * config/mips/mips.opt (mfix-24k): New.
2718         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2719         * config/mips/mips.md (length): Increase by 4 for stores if
2720         fixing 24K errata.
2721         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2722         all noreorder if fixing 24K errata.
2723         * doc/invoke.texi: Document mfix-24k.
2724
2725 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
2726
2727         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2728         quad-word modes, reduce to 9-bit index range when above 1016 limit.
2729
2730 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2731
2732         * config/arm/arm.c (arm_gen_constant): Move movw support ....
2733         (const_ok_for_op): ... to here.
2734
2735 2011-04-20  Kai Tietz  <ktietz@redhat.com>
2736
2737         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2738         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2739
2740 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2741
2742         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2743
2744 2011-04-20  Richard Guenther  <rguenther@suse.de>
2745
2746         PR tree-optimization/47892
2747         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2748         are if-convertible.
2749
2750 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2751
2752         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2753
2754 2011-04-20  Tristan Gingold  <gingold@adacore.com>
2755
2756         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2757
2758 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
2759
2760         PR target/18145
2761
2762         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2763         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2764         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2765         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2766         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2767
2768         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2769         New prototype.
2770
2771         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2772         (avr_asm_named_section, avr_asm_output_aligned_common,
2773         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2774         New functions to update...
2775         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2776         (avr_asm_init_sections): Overwrite section callbacks for
2777         data_section, bss_section.
2778         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2779         from here to...
2780         (avr_file_end): ...here.
2781
2782 2011-04-20  Richard Guenther  <rguenther@suse.de>
2783
2784         PR middle-end/48695
2785         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2786         objects and types here.  Adjust for their offset before comparing.
2787
2788 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2789
2790         * tree-vect-stmts.c (vectorizable_store): Only chain one related
2791         statement per copy.
2792
2793 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2794
2795         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2796         (GIMPLE_H): Include $(INTERNAL_FN_H).
2797         (OBJS-common): Add internal-fn.o.
2798         (internal-fn.o): New rule.
2799         * internal-fn.def: New file.
2800         * internal-fn.h: Likewise.
2801         * internal-fn.c: Likewise.
2802         * gimple.h: Include internal-fn.h.
2803         (GF_CALL_INTERNAL): New gf_mask.
2804         (gimple_statement_call): Put fntype into a union with a new
2805         internal_fn field.
2806         (gimple_build_call_internal): Declare.
2807         (gimple_build_call_internal_vec): Likewise.
2808         (gimple_call_same_target_p): Likewise.
2809         (gimple_call_internal_p): New function.
2810         (gimple_call_internal_fn): Likewise.
2811         (gimple_call_fntype): Return null for internal calls.
2812         (gimple_call_set_fntype): Assert that the function is not internal.
2813         (gimple_call_set_fn): Likewise.
2814         (gimple_call_set_fndecl): Likewise.
2815         (gimple_call_set_internal_fn): New function.
2816         (gimple_call_addr_fndecl): Handle null functions.
2817         (gimple_call_return_type): Likewise null types.
2818         * gimple.c (gimple_build_call_internal_1): New function.
2819         (gimple_build_call_internal): Likewise.
2820         (gimple_build_call_internal_vec): Likewise.
2821         (gimple_call_same_target_p): Likewise.
2822         (gimple_call_flags): Handle calls to internal functions.
2823         (gimple_call_fnspec): New function.
2824         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2825         (gimple_has_side_effects): Handle null functions.
2826         (gimple_rhs_has_side_effects): Likewise.
2827         (gimple_call_copy_skip_args): Handle calls to internal functions.
2828         * cfgexpand.c (expand_call_stmt): Likewise.
2829         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2830         * gimple-fold.c (gimple_fold_call): Handle null functions.
2831         (gimple_fold_stmt_to_constant_1): Don't fold
2832         calls to internal functions.
2833         * gimple-low.c (gimple_check_call_args): Handle calls to internal
2834         functions.
2835         * gimple-pretty-print.c (dump_gimple_call): Likewise.
2836         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2837         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2838         (do_warn_unused_result): Likewise.
2839         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2840         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2841         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2842         the target of a call.
2843         (initialize_hash_element): Update accordingly.
2844         (hashable_expr_equal_p): Use gimple_call_same_target_p.
2845         (iterative_hash_hashable_expr): Handle calls to internal functions.
2846         (print_expr_hash_elt): Likewise.
2847         * tree-ssa-pre.c (can_value_number_call): Likewise.
2848         (eliminate): Handle null functions.
2849         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2850         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2851         (find_func_aliases): Likewise.
2852         * value-prof.c (gimple_ic_transform): Likewise.
2853         (gimple_indirect_call_to_profile): Likewise.
2854         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2855         * lto-streamer-out.c (output_gimple_stmt): Likewise.
2856
2857 2011-04-19  Jan Hubicka  <jh@suse.cz>
2858
2859         * ipa-inline-transform.c (save_inline_function_body): Add comments.
2860         * ipa-inline.c (inline_small_functions): Compute summaries first,
2861         populate heap later.
2862
2863 2011-04-19  Jan Hubicka  <jh@suse.cz>
2864
2865         * cgraph.h (save_inline_function_body): Remove.
2866         * ipa-inline-transform.c: New file, broke out of...
2867         * ipa-inline.c: ... this one; Update toplevel comment.
2868         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2869         make global.
2870         (update_noncloned_frequencies): Move to ipa-inline-transform.c
2871         (cgraph_mark_inline_edge): Rename to inline_call; move to
2872         ipa-inline-transform.c.
2873         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2874         move to ipa-inline-transform.c
2875         (recursive_inlining, inline_small_functions, flatten_function,
2876         ipa_inline, inline_always_inline_functions,
2877         early_inline_small_functions): Update.
2878         (inline_transform): Move to ipa-inline-transform.c.
2879         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2880         Declare.
2881         * Makefile.in (ipa-inline-transform.o): New file.
2882         * cgraphunit.c (save_inline_function_body): Move to
2883         ipa-inline-transform.c
2884
2885 2011-04-19  DJ Delorie  <dj@redhat.com>
2886
2887         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2888         registers if we already know there aren't any.
2889         (m32c_emit_epilogue): Don't emit a barrier here.
2890         (m32c_emit_eh_epilogue): Likewise.
2891         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2892         operands at expand time.
2893         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2894         int" wchar type.
2895         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2896         duplicates.  Provide aliases instead.
2897         * config/m32c/prologue.md (eh_return): Emit a barrier here.
2898         (eh_epilogue): Add a "(return)" here as a hint to other parts of
2899         the compiler.
2900
2901 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
2902
2903         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2904         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2905         (general_or_i64_p, sparc_register_move_cost): New function.
2906
2907 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2908
2909         * doc/install.texi (Configuration, --enable-threads): Remove mach.
2910         Add lynx, mipssde.  Sort table.
2911
2912 2011-04-19  Xinliang David Li  <davidxl@google.com>
2913
2914         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2915         not negative.
2916
2917 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
2918
2919         PR target/48678
2920         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2921         is a SUBREG with non-MODE_INT mode inside of it.
2922
2923 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2924
2925         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2926         also according to actual contants.
2927         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2928         (gimple_fold_call): Use it.
2929         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2930
2931 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2932
2933         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2934         non-pointer assignments.
2935
2936 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2937
2938         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2939         account anc_offset and otr_type from the indirect edge info.
2940         * ipa-prop.c (get_ancestor_addr_info): New function.
2941         (compute_complex_ancestor_jump_func): Assignment analysis moved to
2942         get_ancestor_addr_info, call it.
2943         (ipa_note_param_call): Do not initialize information about polymorphic
2944         calls, return the indirect call graph edge.  Remove the last
2945         parameter, adjust all callers.
2946         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2947         parameters.  Initialize polymorphic information in the indirect edge.
2948
2949 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2950
2951         PR lto/48148
2952         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2953         the types if they have different enumeration identifiers.
2954
2955 2011-04-19  Jan Hubicka  <jh@suse.cz>
2956
2957         * cgraph.h (cgraph_optimize_for_size_p): Declare.
2958         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2959         * predict.c (cgraph_optimize_for_size_p): Break out from ...
2960         (optimize_function_for_size_p) ... here.
2961
2962 2011-04-19  Richard Guenther  <rguenther@suse.de>
2963
2964         PR lto/48207
2965         * tree.c (free_lang_data): Do not reset the decl-assembler-name
2966         langhook.
2967
2968 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2969
2970         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2971         if DECL_NO_INLINE_WARNING_P is set on the function.
2972
2973 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
2974
2975         PR fortran/47976
2976         * reload1.c (inc_for_reload): Return void. All callers changed.
2977         (emit_input_reload_insns): Don't try to delete previous output
2978         reloads to a register, or record spill_reg_store for autoincs.
2979
2980 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
2981
2982         * gengtype.h: Updated copyright year.
2983         (struct input_file_st): Add inpisplugin field.
2984         (type_fileloc): New function.
2985         * gengtype.c
2986         (write_typed_struct_alloc_def): Add gcc_assert.
2987         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2988         (write_typed_alloc_defns): Don't output for plugin files.
2989         (input_file_by_name): Clear inpisplugin field.
2990         (main): Set inpisplugin field for plugin files.
2991
2992 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2993
2994         * gengtype-state.c (string_eq): New.
2995         (read_state): Use string_eq instead of strcmp when creating the
2996         state_ident_tab.
2997
2998 2011-04-19  Wei Guozhi  <carrot@google.com>
2999
3000         PR target/47855
3001         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3002         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3003         linkage.
3004         * config/arm/constraints.md (Uu): New constraint.
3005         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3006
3007 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3008
3009         * config.gcc (-*-*-*vms): Added.
3010         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3011         definitions moved.
3012         * config/vms/vms-ld.c: New file.
3013         * config/vms/vms-ar.c: New file.
3014         * config/vms/t-vmsnative: New file.
3015
3016 2011-04-18  Xinliang David Li  <davidxl@google.com>
3017
3018         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3019
3020 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3021
3022         PR middle-end/48661
3023         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3024         if TREE_TYPE (v) is non-NULL.
3025
3026         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3027         gimple_get_virt_mehtod_for_binfo.
3028         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3029         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3030         callers.
3031         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3032
3033 2011-04-18  Michael Matz  <matz@suse.de>
3034             Steve Ellcey  <sje@cup.hp.com>
3035
3036         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3037         use its mode as source mode if it isn't VOIDmode.
3038
3039 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3040
3041         * doc/passes.texi: Fill crossref nodes.
3042
3043 2011-04-18  Jim Meyering  <meyering@redhat.com>
3044
3045         Fix doubled-word typos in comments and strings
3046         * config/alpha/vms-unwind.h: s/for for/for/
3047         * config/arm/unwind-arm.h: Likewise.
3048         * config/microblaze/microblaze.c: Likewise.
3049         * config/sh/constraints.md: s/in in/in/
3050         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3051
3052 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3053
3054         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3055         (AVX_FLOAT_MODE_P): Ditto.
3056         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3057         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3058         (AVX_VEC_FLOAT_MODE_P): Ditto.
3059         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3060         (UNSPEC_MASKSTORE): Ditto.
3061         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3062         Merge from <sse>_movmsk<ssemodesuffix> and
3063         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3064         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3065         iterator.
3066         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3067         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3068         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3069
3070 2011-04-18  Jan Hubicka  <jh@suse.cz>
3071
3072         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3073
3074         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3075         (want_inline_function_called_once_p): Break out the logic from
3076         ipa_inline.
3077         (edge_badness): Ensure that profile is not misupdated.
3078         (lookup_recursive_calls): Prioritize by call frequencies.
3079         (inline_small_functions): Move program size estimates here;
3080         actually process whole queue even when unit growth has been
3081         met. (to properly compute inline_failed reasons and for the
3082         case unit size decrease.) Revisit comments on recursive inlining.
3083         (ipa_inline): Remove unit summary code; first inline hot calls
3084         of functions called once, cold calls next.
3085         (order, nnodes): Remove unused variables.
3086         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3087         (GTFILES): Remove ipa-inline.c
3088         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3089
3090 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3091
3092         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3093
3094 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3095             Richard Earnshaw  <rearnsha@arm.com>
3096
3097         * arm.c (neon_builtin_type_bits): Remove.
3098         (typedef enum neon_builtin_mode): New.
3099         (T_MAX): Don't define.
3100         (typedef enum neon_builtin_datum): Remove bits, codes[],
3101         num_vars and base_fcode.  Add mode, code and fcode.
3102         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3103         VAR10): Change accordingly.
3104         (neon_builtin_data[]): Change accordingly
3105         (arm_init_neon_builtins): Change accordingly.
3106         (neon_builtin_compare): Remove.
3107         (locate_neon_builtin_icode): Remove.
3108         (arm_expand_neon_builtin): Change accordingly.
3109
3110         * arm.h (enum arm_builtins): Move to ...
3111         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3112
3113         * arm.c (arm_builtin_decl): Declare.
3114         (TARGET_BUILTIN_DECL): Define.
3115         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3116         (arm_builtin_decls[]): New.
3117         (arm_init_neon_builtins): Store builtin declarations in
3118         arm_builtin_decls[].
3119         (arm_init_tls_builtins): Likewise.
3120         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3121         (arm_builtin_decl): New.
3122
3123 2011-04-18  Richard Guenther  <rguenther@suse.de>
3124
3125         * tree.c (upper_bound_in_type): Build properly canonicalized
3126         INTEGER_CSTs.
3127         (lower_bound_in_type): Likewise.
3128
3129 2011-04-18  Richard Guenther  <rguenther@suse.de>
3130
3131         * gimple.h (gimple_call_addr_fndecl): New function.
3132         (gimple_call_fndecl): Use it.
3133         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3134         for direct calls.
3135         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3136         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3137
3138 2011-04-18  Richard Guenther  <rguenther@suse.de>
3139
3140         PR middle-end/48650
3141         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3142
3143 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3144
3145         PR lto/48492
3146         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3147         DECL_IN_CONSTANT_POOL without RTL.
3148
3149 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3150             Ira Rosen  <ira.rosen@linaro.org>
3151
3152         PR target/48252
3153         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3154         to match neon_vzip/vuzp/vtrn_internal.
3155         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3156         outputs explicitly dependent on both inputs.
3157         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3158
3159 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3160
3161         PR tree-optimization/48616
3162         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3163         whether the shift is by scalar or vector based on whether all SLP
3164         scalar stmts have the same rhs.
3165
3166 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3167
3168         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3169         memory operands.
3170
3171 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3172
3173         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3174         registers.
3175
3176 2011-04-17  Jan Hubicka  <jh@suse.cz>
3177
3178         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3179         * cgrpahunit.c (cgraph_finalize_function): Do not set
3180         finalized_by_frontend.
3181         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3182         finalized_by_frontend.
3183
3184 2011-04-17  Jan Hubicka  <jh@suse.cz>
3185
3186         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3187         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3188         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3189         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3190         method.
3191         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3192         gimple-fold.c
3193         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3194
3195 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3196
3197         PR lto/48538
3198         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3199         is non-null before accessing it.
3200         (input_cgraph): Remove trailing spaces.
3201
3202 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3203
3204         * params.def (sms-min-sc): New param flag.
3205         * modulo-sched.c (sms_schedule): Use it.
3206         * doc/invoke.texi (sms-min-sc): Document it.
3207
3208 2011-04-17  Jan Hubicka  <jh@suse.cz>
3209
3210         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3211         present, also set gimple_call_set_cannot_inline.
3212         * ipa-inline.c: Update toplevel comment.
3213         (MAX_TIME): Remove.
3214         (cgraph_clone_inlined_nodes): Fix linebreaks.
3215         (cgraph_check_inline_limits): Restructure to ...
3216         (caller_growth_limits): ... this one; be more tolerant
3217         on growth in nested inline chains; add explanatory comment;
3218         fix stack accounting thinko introduced by previous patch.
3219         (cgraph_default_inline_p): Remove.
3220         (report_inline_failed_reason): New function.
3221         (can_inline_edge_p): New function.
3222         (can_early_inline_edge_p): New function.
3223         (leaf_node_p): Move upwards in file.
3224         (want_early_inline_function_p): New function.
3225         (want_inline_small_function_p): New function.
3226         (want_inline_self_recursive_call_p): New function.
3227         (cgraph_edge_badness): Rename to ...
3228         (edge_badness) ... this one; fix linebreaks.
3229         (update_edge_key): Update call of edge_baddness; add
3230         detailed dump about queue updates.
3231         (update_caller_keys): Use can_inline_edge_p and
3232         want_inline_small_function_p.
3233         (cgraph_decide_recursive_inlining): Rename to...
3234         (recursive_inlining): Use can_inline_edge_p and
3235         want_inline_self_recursive_call_p; simplify and remove no longer
3236         valid FIXME.
3237         (cgraph_set_inline_failed): Remove.
3238         (add_new_edges_to_heap): Use can_inline_edge_p and
3239         want_inline_small_function_p.
3240         (cgraph_decide_inlining_of_small_functions): Rename to ...
3241         (inline_small_functions): ... this one; cleanup; use
3242         can/want predicates; cleanup debug ouput; work edges till fibheap
3243         is exhausted and do not stop once unit growth is reached; remove
3244         later loop processing remaining edges.
3245         (cgraph_flatten): Rename to ...
3246         (flatten_function): ... this one; use can_inline_edge_p
3247         and can_early_inline_edge_p predicates.
3248         (cgraph_decide_inlining): Rename to ...
3249         (ipa_inline): ... this one; remove unreachable nodes before
3250         inlining functions called once; simplify the pass.
3251         (cgraph_perform_always_inlining): Rename to ...
3252         (inline_always_inline_functions): ... this one; use
3253         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3254         (cgraph_decide_inlining_incrementally): Rename to ...
3255         (early_inline_small_functions): ... this one; simplify
3256         using new predicates; cleanup; make dumps prettier.
3257         (cgraph_early_inlining): Rename to ...
3258         (early_inliner): newer inline regular functions into always-inlines;
3259         fix updating of call stmt summaries.
3260         (pass_early_inline): Update for new names.
3261         (inline_transform): Fix formating.
3262         (gate_cgraph_decide_inlining): Rename to ...
3263         (pass_ipa_inline): ... this one.
3264         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3265         * ipa-inline-analysis.c (dump_inline_summary): Update.
3266         (compute_inline_parameters): Do not compute disregard_inline_limits;
3267         look for mismatching arguments.
3268         (estimate_growth): Fix handlig of non-trivial self recursion.
3269         (inline_read_summary): Do not read info->disregard_inline_limits.
3270         (inline_write_summary): Do not write info->disregard_inline_limits.
3271         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3272         and move all checks into can_inline_edge_p predicate; re-enable code
3273         comparing optimization levels.
3274         (expand_call_inline): Do not test inline_forbidden_into_p.
3275         * Makefile.in (ipa-inline.o): Update arguments.
3276
3277 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3278
3279         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3280
3281 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3282
3283         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3284
3285 2011-04-17  Michael Matz  <matz@suse.de>
3286
3287         PR tree-optimization/48622
3288         PR lto/48645
3289         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3290         in same order as they're written.
3291
3292 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3293
3294         * config/pa/predicates.md: Reorganize and simplify predicates.
3295         Eliminate duplicate code checks.
3296         (arith_operand): Rename to arith14_operand
3297         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3298         * config/pa/pa.md: Use renamed operands.
3299         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3300         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3301         arith11_operand, adddi3_operand, indexed_memory_operand,
3302         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3303         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3304         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3305         move_dest_operand, move_src_operand, prefetch_cc_operand,
3306         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3307         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3308         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3309         div_operand, int5_operand, movb_comparison_operator,
3310         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3311         arith_double_operand, ireg_operand, lhs_lshift_operand,
3312         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3313         integer_store_memory_operand): Likewise.
3314         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3315         (integer_store_memory_operand, read_only_operand,
3316         function_label_operand, borx_reg_operand,
3317         non_hard_reg_operand): Likewise.
3318         (eq_neq_comparison_operator): Delete unused operator.
3319         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3320         function_label_operand.
3321         (emit_move_sequence): Likewise.
3322
3323 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3324
3325         * config/i386/sse.md (sseunpackmode): New mode attribute.
3326         (ssepackmode): Ditto.
3327         (vec_pack_trunc_<mode>): Macroize expander from
3328         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3329         (vec_unpacks_lo_<mode>): Macroize expander from
3330         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3331         (vec_unpacks_hi_<mode>): Macroize expander from
3332         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3333         (vec_unpacku_lo_<mode>): Macroize expander from
3334         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3335         (vec_unpacku_hi_<mode>): Macroize expander from
3336         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3337         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3338         ix86_expand_sse4_unpack.
3339         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3340
3341 2011-04-16  Jan Hubicka  <jh@suse.cz>
3342
3343         * cgraphbuild.c: Include ipa-inline.h.
3344         (reset_inline_failed): Use initialize_inline_failed.
3345         * cgraph.c: Include ipa-inline.h.
3346         (cgraph_create_node_1): Do not initialize estimated_growth.
3347         (initialize_inline_failed): More to ipa-inline-analysis.c
3348         (dump_cgraph_node): Do not dump inline flags.
3349         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3350         and disregard_inline_limits flags.
3351         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3352         time, size, estimated_growth.
3353         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3354         Update.
3355         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3356         DECL_DISREGARD_INLINE_LIMITS.
3357         (cgraph_analyze_function): Do not initialize
3358         node->local.disregard_inline_limits.
3359         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3360         inlinable, versionable and disregard_inline_limits.
3361         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3362         cgraph_check_inline_limits, cgraph_default_inline_p,
3363         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3364         add_new_edges_to_heap): Update.
3365         (cgraph_decide_inlining_of_small_function): Update; set
3366         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3367         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3368         cgraph_decide_inlining_incrementally): Update.
3369         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3370         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3371         time, size and estimated_growth parameters.
3372         (estimate_edge_growth): Update.
3373         (initialize_inline_failed): Declare.
3374         * ipa-split.c: Include ipa-inline.h
3375         (execute_split_functions): Update.
3376         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3377         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3378         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3379         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3380         estimated_growth to INT_MIN.
3381         (inline_node_duplication_hook): Likewise.
3382         (dump_inline_summary): Dump new fields.
3383         (compute_inline_parameters): Update.
3384         (estimate_edge_time, estimate_time_after_inlining,
3385         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3386         inline_write_summary):
3387         (initialize_inline_failed): Move here from cgraph.c.
3388         * tree-sra.c: Include ipa-inline.h.
3389         (ipa_sra_preliminary_function_checks): Update.
3390         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3391         ipa-inline.h.
3392
3393 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3394
3395         * config/i386/sse.md (V16): New mode iterator.
3396         (VI1, VI8): Ditto.
3397         (AVXMODEQI, AVXMODEDI): Remove.
3398         (sse2, sse3): New mode attribute.
3399         (mov<mode>): Use V16 mode iterator.
3400         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3401         (push<mode>1): Use V16 mode iterator.
3402         (movmisalign<mode>): Ditto.
3403         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3404         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3405         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3406         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3407         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3408         avx_movdqu<avxmodesuffix>.
3409         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3410         *avx_movdqu<avxmodesuffix>.
3411         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3412         avx_lddqu<avxmodesuffix>.
3413         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3414         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3415         avx_movnt<AVXMODEDI:mode>.
3416         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3417         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3418
3419 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3420
3421         PR target/48629
3422         * haifa-sched.c (prune_ready_list, schedule_block): Use
3423         sched_pressure_p rather than flag_sched_pressure.
3424
3425 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3426
3427         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3428         cgraph_get_node instead of cgraph_get_create_node.
3429
3430 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3431
3432         * cfgexpand.c (expand_debug_expr): Use
3433         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3434
3435 2011-04-15  Michael Matz  <matz@suse.de>
3436
3437         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3438         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3439         * function.c (gimplify_parameters): Ditto.
3440         * gimplify.c (gimplify_vla_decl): Ditto.
3441
3442         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3443         (gimple_call_set_alloca_for_var): New inline function.
3444         (gimple_call_alloca_for_var_p): Ditto.
3445         * gimple.c (gimple_build_call_from_tree): Remember
3446         CALL_ALLOCA_FOR_VAR_P state.
3447         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3448
3449         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3450         calls if they were for VLA objects.
3451
3452 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3453
3454         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3455         of ADR_EXPRs.
3456
3457 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3458
3459         PR middle-end/48601
3460         * tree-emutls.c (lower_emutls_function_body): Call
3461         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3462         result is non-NULL.
3463
3464 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3465
3466         * c-decl.c (detect_field_duplicates): Call
3467         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3468
3469 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3470
3471         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3472         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3473         * ipa-pure-const.c (check_stmt): Call it.
3474         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3475
3476 2011-04-15  Richard Guenther  <rguenther@suse.de>
3477
3478         PR tree-optimization/48290
3479         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3480         Properly decide inhibiting propagation based on the valueized
3481         operand.  Do loop-closed SSA form preserving here ...
3482         (init_copy_prop): ... not here.
3483
3484 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3485
3486         PR target/48612
3487         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3488         (*ieee_smax<mode>3): Likewise.
3489
3490 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3491
3492         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3493         Replace match_operand with match_dup for the third operand in
3494         these expanders.
3495
3496 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3497
3498         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3499         to track processing of conditionals.  Update all callers.
3500         (try_combine, simplify_if_then_else): Update.
3501
3502 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3503
3504         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3505         -fsched-pressure.
3506
3507 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3508
3509         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3510         instead of match_operand for operand 3.
3511
3512 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3513
3514         * recog.h (insn_operand_data): Add an "allows_mem" field.
3515         * genoutput.c (output_operand_data): Initialize it.
3516         * optabs.c (maybe_legitimize_operand_same_code): New function.
3517         (maybe_legitimize_operand): Use it when matching the original
3518         op->value.
3519
3520 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3521
3522         * gimplify.c: Fix issues in comments throughout.
3523         (voidify_wrapper_expr): Fix long line.
3524         (build_stack_save_restore): Likewise.
3525         (gimplify_loop_expr): Likewise.
3526         (gimplify_compound_lval): Likewise.
3527         (gimplify_init_ctor_eval): Likewise.
3528         (gimplify_modify_expr_rhs): Likewise.
3529         (omp_notice_threadprivate_variable): Likewise.
3530
3531 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3532
3533         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3534         original one if this is not a builtin function.
3535
3536 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
3537
3538         PR target/48605
3539         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3540         offset it as needed based on top 2 bits in operands[3], change
3541         MEM mode to SFmode and mask those 2 bits away from operands[3].
3542
3543 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3544
3545         * c-parser.c (c_parser_objc_protocol_definition): Updated for
3546         change from objc_declare_protocols() to objc_declare_protocol().
3547
3548 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
3549
3550         * config/i386/sse.md (sse4_1): New mode attribute.
3551         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3552         avx_blend<ssemodesuffix><avxmodesuffix> and
3553         sse4_1_blend<ssemodesuffix> using VF mode iterator.
3554         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3555         avx_blendv<ssemodesuffix><avxmodesuffix> and
3556         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3557         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3558         avx_dp<ssemodesuffix><avxmodesuffix> and
3559         sse4_1_dp<ssemodesuffix> using VF mode iterator.
3560         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3561         (sse4_1_packusdw): Merge with *avx_packusdw.
3562         (sse4_1_pblendvb): Merge with *avx_pblendvb.
3563         (sse4_1_pblendw): Merge with *avx_pblendw.
3564         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3565         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3566         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3567         VF mode iterator.
3568         (sse4_1_round<ssescalarmodesuffix>): Merge with
3569         *avx_round<ssescalarmodesuffix>.
3570         (aesenc): Merge with *avx_aesenc.
3571         (aesenclast): Merge with *avx_aesenclast.
3572         (aesdec): Merge with *avx_aesdec.
3573         (aesdeclast): Merge with *avx_aesdeclast.
3574         (pclmulqdq): Merge with *pclmulqdq.
3575         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3576         New predicate.
3577         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3578
3579 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3580
3581         PR middle-end/48608
3582         * cfgexpand.c (get_decl_align_unit): Renamed to ...
3583         (align_local_variable): This.  Update DECL_ALIGN.
3584         (add_stack_var): Updated.
3585         (expand_one_stack_var): Likewise.
3586
3587 2011-04-14  Richard Guenther  <rguenther@suse.de>
3588
3589         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3590         Remove.
3591         (dse_initialize_block_local_data, dse_leave_block,
3592         record_voperand_set, get_stmt_uid): Likewise.
3593         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3594         (dse_optimize_stmt): Remove voperand set handling code.
3595         Simplify and improve to handle any kind of killing stmt.
3596         (dse_record_phi): Remove.
3597         (dse_enter_block): Simplify.
3598         (tree_ssa_dse): Likewise.
3599         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3600
3601 2011-04-14  Jan Hubicka  <jh@suse.cz>
3602
3603         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3604         * cgraph.h (struct inline_summary): Move to ipa-inline.h
3605         (cgraph_local_info): Remove inline_summary.
3606         * ipa-cp.c: Include ipa-inline.h.
3607         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3608         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3609         accesor.
3610         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3611         (input_overwrite_node): Do not set inline summary.
3612         (input_node): Do not stream inline summary.
3613         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3614         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3615         growth; we do not have inline parameters computed for that anyway.
3616         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3617         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3618         (inline_summary_t): New type and VECtor.
3619         (debug_inline_summary, dump_inline_summaries): Declare.
3620         (inline_summary): Use VOCtor.
3621         (estimate_edge_growth): Kill hack computing call stmt size directly.
3622         * lto-section-in.c (lto_section_name): Add inline section.
3623         * ipa-inline-analysis.c: Include lto-streamer.h
3624         (node_removal_hook_holder, node_duplication_hook_holder): New holders
3625         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3626         (inline_summary_vec): Define.
3627         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3628         dump_inline_summaries): New functions.
3629         (estimate_function_body_sizes): Properly compute size/time of outgoing
3630         calls.
3631         (compute_inline_parameters): Alloc inline_summary; do not compute
3632         size/time of incomming calls.
3633         (estimate_edge_time): Avoid missing time summary hack.
3634         (inline_read_summary): Read inline summary info.
3635         (inline_write_summary): Write inline summary info.
3636         (inline_free_summary): Free all hooks and inline summary vector.
3637         * lto-streamer.h: Add LTO_section_inline_summary section.
3638         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3639         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3640
3641 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3642
3643         * tree-vectorizer.h (vect_strided_store_supported): Add a
3644         HOST_WIDE_INT argument.
3645         (vect_strided_load_supported): Likewise.
3646         (vect_permute_store_chain): Return void.
3647         (vect_transform_strided_load): Likewise.
3648         (vect_permute_load_chain): Delete.
3649         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3650         count argument.  Check that the count is a power of two.
3651         (vect_strided_load_supported): Likewise.
3652         (vect_permute_store_chain): Return void.  Update after above changes.
3653         Assert that the access is supported.
3654         (vect_permute_load_chain): Likewise.
3655         (vect_transform_strided_load): Return void.
3656         * tree-vect-stmts.c (vectorizable_store): Update calls after
3657         above interface changes.
3658         (vectorizable_load): Likewise.
3659         (vect_analyze_stmt): Don't check for strided powers of two here.
3660
3661 2011-04-14  Richard Guenther  <rguenther@suse.de>
3662
3663         PR tree-optimization/48590
3664         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3665         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3666         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3667         BUILT_IN_STACK_SAVE.
3668         * tree-ssa-dce.c (propagate_necessity): Handle
3669         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3670
3671 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3672
3673         * c-parser.c (c_parser_objc_class_declaration): Updated call to
3674         objc_declare_class.
3675
3676 2011-04-14  Richard Guenther  <rguenther@suse.de>
3677
3678         * tree.h (get_object_alignment_1): Declare.
3679         * builtins.c (get_object_alignment_1): Split out worker from ...
3680         (get_object_alignment): ... here.
3681         * fold-const.c (get_pointer_modulus_and_residue): Use
3682         get_object_alignment_1.
3683
3684 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3685
3686         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3687         type parameter.
3688         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3689         parameter.  Generalise code to handle arrays as well as vectors.
3690         (vect_setup_realignment): Update accordingly.
3691         * tree-vect-stmts.c (vectorizable_store): Likewise.
3692         (vectorizable_load): Likewise.
3693
3694 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3695
3696         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3697         within the per-copy loop.
3698
3699 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3700
3701         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3702         in the dump file.
3703
3704 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3705
3706         * doc/options.texi (Negative): Explicitly mention that the
3707         Negative chain must be circular.
3708
3709 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
3710
3711         * function.h (block_chainon): Declare.
3712         * function.c (block_chainon): Define.
3713
3714 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
3715             Eric Weddington  <eric.weddington@atmel.com>
3716             Georg-Johann Lay <avr@gjlay.de>
3717
3718         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3719         New Includes
3720         (avr_init_builtins, avr_expand_builtin,
3721         avr_expand_delay_cycles, avr_expand_unop_builtin,
3722         avr_expand_binop_builtin ): New functions.
3723         (avr_builtin_id): New enum
3724         (struct avr_builtin_description): New struct
3725         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3726         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3727
3728         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3729         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3730         UNSPECV_DELAY_CYCLES): new enumeration values
3731         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3732         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3733         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3734         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3735         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3736         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3737         "fmulsu"): New insns
3738
3739         * config/avr/avr-c.c: fix line endings
3740         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3741         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3742         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3743         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3744         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3745
3746         * doc/extend.texi (AVR Built-in Functions): New node
3747         (Target Builtins): Add documentation of AVR
3748         built-in functions.
3749
3750 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
3751
3752         PR target/44643
3753         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3754         alone. Error if non-const data has attribute progmem.
3755
3756 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3757
3758         * tree.h (struct tree_constructor): Include tree_typed instead of
3759         tree_common.
3760         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3761         TS_TYPED instead of TS_COMMON.
3762
3763 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3764
3765         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3766         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3767         (sse2_psadbw): Merge with *avx_psadbw.
3768         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3769         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3770         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3771         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3772         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3773         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3774         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3775         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3776         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3777         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3778         (ssse3_palignrti): Merge with *avx_palignrti.
3779
3780 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3781
3782         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3783         * tree-ssanames.c (fini_ssanames): VEC_free it.
3784         (make_ssa_name_fn): Update for VECness of free_ssanames.
3785         (release_ssa_name, release_dead_ssa_names): Likewise.
3786         * tree.h (struct tree_ssa_name): Include tree_typed instead of
3787         tree_common.
3788         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3789         TS_TYPED instead of TS_COMMON.
3790
3791 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3792
3793         * postreload-gcse.c (gcse_after_reload_main): Add calls to
3794         statistics_counter_event.
3795         * tree-ssa-copyrename.c (stats): Define.
3796         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
3797         statistics_counter_event.
3798         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3799         (bswap_stats, widen_mul_stats): Define.
3800         (insert_reciprocals): Increment rdivs_inserted.
3801         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
3802         rfuncs_inserted.  Add calls to statistics_counter_event.
3803         (execute_cse_sincos_1): Increment inserted.
3804         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
3805         statistics_counter_event.
3806         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
3807         of bswap_stats.  Add calls to statistics_counter_event.
3808         (convert_mult_to_widen): Increment widen_mults_inserted.
3809         (convert_plusminus_to_widen): Increment maccs_inserted.
3810         (convert_mult_to_fma): Increment fmas_inserted.
3811         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
3812         calls to statistics_counter_event.
3813
3814 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3815
3816         PR rtl-optimization/48455
3817         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3818         `temp_costs->mem_cost'.
3819
3820 2011-04-13  Jan Hubicka  <jh@suse.cz>
3821
3822         * ipa-inline.h: New file.
3823         * ipa-inline-analysis.c: New file. Broken out of ...
3824         * ipa-inline.c: ... this file; update toplevel comment;
3825         include ipa-inline.h
3826         (inline_summary): Move to ipa-inline.h
3827         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3828         ipa-inline-analysis.c.
3829         (cgraph_estimate_time_after_inlining): Rename to
3830         estiamte_time_after_inlining; move to ipa-inline-analysis.c
3831         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3832         to estimate_edge_growth.
3833         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3834         rename to estimate_size_after_inlining.
3835         (cgraph_mark_inline_edge): Update for new naming convention.
3836         (cgraph_check_inline_limits): Likewise.
3837         (cgraph_edge_badness): Likewise.
3838         (cgraph_decide_recursive_inlining): Likewise.
3839         (cgraph_decide_inlining_of_small_functions): Likewise.
3840         (cgraph_decide_inlining_incrementally): Likewise.
3841         (cgraph_estimate_growth): Rename to estimate_growth; move to
3842         ipa-inline-analysis.c.
3843         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3844         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3845         (compute_inline_parameters): Likewise.
3846         (compute_inline_parameters_for_current): Likewise.
3847         (pass_inline_parameters): Likewise.
3848         (inline_indirect_intraprocedural_analysis): Likewise.
3849         (analyze_function): Rename to inline_analyze_function; likewise.
3850         (add_new_function): Move to ipa-inline-analysis.c.
3851         (inline_generate_summary): Likewise.
3852         (inline_read_summary): Likewise.
3853         (inline_write_summary): Likewise.
3854         * Makefile.in (ipa-inline-analysis.c): New file.
3855
3856 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3857
3858         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3859         * configure: Regenerate.
3860
3861 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3862
3863         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3864         instead of tree_common.
3865         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3866         Likewise.
3867         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3868         TS_TYPED rather than TS_COMMON.
3869         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3870
3871 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
3872
3873         PR target/45263
3874         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3875         r20 around calls of __tablejump_elpm__
3876
3877 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
3878
3879         PR middle-end/48591
3880         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3881         NULL.
3882         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3883
3884 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
3885
3886         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3887         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3888         (cfi_vec): New typedef.
3889         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3890         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3891         (cie_cfi_vec): New static variable.
3892         (cie_cfi_head): Delete.
3893         (add_cfi): Accept a cfi_vec * as first argument. All callers and
3894         declaration changed. Use vector rather than list operations.
3895         (new_cfi): Don't initialize the dw_cfi_next field.
3896         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3897         rather than list operations.
3898         (lookup_cfa): Use vector rather than list operations.
3899         (output_cfis): New argument upto. Accept a cfi_vec rather than
3900         a dw_cfi_ref list head as argument. All callers changed.
3901         Iterate over the vector using upto as a maximum index.
3902         (output_all_cfis): New static function.
3903         (output_fde): Use vector rather than list operations. Use the
3904         new upto argument for output_cfis rather than manipulating a
3905         list.
3906         (dwarf2out_begin_prologue): Change initializations to match
3907         new struct members.
3908         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3909         from the vector length rather than searching for the end of a list.
3910         Use output_all_cfis.
3911         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3912
3913 2011-04-13  Nick Clifton  <nickc@redhat.com>
3914
3915         * config/rx/rx.md (movmemsi): Do not use this pattern when
3916         volatile pointers are involved.
3917
3918 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3919
3920         * config/i386/sse.md (pinsrbits): Remove.
3921         (sse2_packsswb): Merge with *avx_packsswb.
3922         (sse2_packssdw): Merge with *avx_packssdw.
3923         (sse2_packuswb): Merge with *avx_packuswb.
3924         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3925         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3926         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3927         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3928         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3929         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3930         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3931         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3932         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3933         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3934         (sse2_loadld): Merge with *avx_loadld.
3935         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3936         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3937         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3938         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3939         (vec_concatv2di): Merge with *vec_concatv2di_avx.
3940
3941 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3942
3943         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3944         calling TREE_CHAIN.
3945         * print-tree.c (print_node): Likewise.
3946         * tree-inline.c (copy_tree_r): Likewise.
3947         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3948         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3949         instead of TS_COMMON.
3950         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3951         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3952         (copy_node_stat): Zero TREE_CHAIN only if necessary.
3953         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3954         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3955         ...and these...
3956         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3957         * tree.h: ...here.
3958         (TREE_CHAIN): Check for a TS_COMMON structure.
3959         (TREE_TYPE): Check for a TS_TYPED structure.
3960
3961 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
3962
3963         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3964         cgraph_get_create_node instead of cgraph_node.
3965
3966 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3967
3968         * c-parser.c (c_parser_initelt): Updated call to
3969         objc_build_message_expr.
3970         (c_parser_postfix_expression): Likewise.
3971
3972 2011-04-12  Kai Tietz  <ktietz@redhat.com>
3973
3974         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3975         MASK_MS_BITFIELD_LAYOUT bit.
3976
3977 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3978
3979         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3980         assert it is always true.
3981         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3982         moves.
3983
3984 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3985
3986         * c-parser.c (c_lex_one_token): Rewritten conditional used when
3987         compiling Objective-C to be more efficient.
3988
3989 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
3990
3991         * opts-common.c (decode_cmdline_options_to_array): Remove variable
3992         argv_copied.
3993
3994 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3995
3996         * recog.h, genoutput.c, optabs.c: Revert last patch.
3997
3998 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3999
4000         PR target/48090
4001         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4002
4003 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4004
4005         * recog.h (insn_operand_data): Add an "allows_mem" field.
4006         * genoutput.c (output_operand_data): Initialize it.
4007         * optabs.c (maybe_legitimize_operand_same_code): New function.
4008         (maybe_legitimize_operand): Use it when matching the original
4009         op->value.
4010
4011 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4012
4013         * genpreds.c (process_define_predicate): Move most processing
4014         to gensupport.c.  Continue to validate the expression.
4015         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4016         (process_define_predicate): Move processing to gensupport.c.
4017         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4018         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4019         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4020         argument.
4021         (valid_predicate_name_p): New function, split out from old
4022         genpreds.c:process_define_predicate.
4023         (process_define_predicate): New function, combining code from
4024         old genpreds.c and genrecog.c functions.
4025         (process_rtx): Call it for DEFINE_PREDICATE and
4026         DEFINE_SPECIAL_PREDICATE.
4027
4028 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4029
4030         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4031         size of a '%A' memory reference.
4032         (T_DREG, T_QREG): New neon_builtin_type_bits.
4033         (arm_init_neon_builtins): Assert that the load and store operands
4034         are neon_struct_operands.
4035         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4036         (NEON_ARG_MEMORY): New builtin_arg.
4037         (neon_dereference_pointer): New function.
4038         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4039         Handle NEON_ARG_MEMORY.
4040         (arm_expand_neon_builtin): Update after above interface changes.
4041         Use NEON_ARG_MEMORY for loads and stores.
4042         * config/arm/predicates.md (neon_struct_operand): New predicate.
4043         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4044         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4045         (V_four_elem): Tweak formatting.
4046         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4047         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4048         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4049         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4050         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4051         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4052         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4053         Use %A in the output template.
4054         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4055         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4056         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4057         the width of the memory access.  Remove post-increment.
4058         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4059
4060 2011-04-12  Nick Clifton  <nickc@redhat.com>
4061
4062         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4063         instruction for interrupt handlers if the target is the basic V850
4064         architecture.
4065         (expand_epilogue): Likewise.
4066
4067 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4068
4069         PR rtl-optimization/48549
4070         * combine.c (propagate_for_debug): Also stop after BB_END of
4071         this_basic_block.  Process LAST and just stop processing after it.
4072         (combine_instructions): If last_combined_insn has been deleted,
4073         set last_combined_insn to its PREV_INSN.
4074
4075 2011-04-12  Richard Guenther  <rguenther@suse.de>
4076
4077         PR tree-optimization/46076
4078         * gimple.h (struct gimple_statement_call): Add fntype field.
4079         (gimple_call_fntype): Adjust.
4080         (gimple_call_set_fntype): New function.
4081         * gimple.c (gimple_build_call_1): Set the call function type.
4082         * gimplify.c (gimplify_call_expr): Preserve the function
4083         type the frontend used for the call.
4084         (gimplify_modify_expr): Likewise.
4085         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4086         function type.
4087         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4088         function type.
4089         * tree-ssa.c (useless_type_conversion_p): Function pointer
4090         conversions are useless.
4091
4092 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4093
4094         * cgraph.h (cgraph_node): Remove function declaration.
4095         (cgraph_create_node): Declare.
4096         (cgraph_get_create_node): Likewise.
4097         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4098         Updated all callers.
4099         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4100         the decl does not already exist.  Call cgraph_get_create_node instead
4101         of cgraph_node.
4102         (cgraph_get_create_node): New function.
4103         (cgraph_same_body_alias): Update comment.
4104         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4105         assert it does not return NULL.
4106         (cgraph_update_edges_for_call_stmt): Likewise.
4107         (cgraph_clone_edge): Likewise.
4108         (cgraph_create_virtual_clone): Likewise.
4109         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4110         instead of cgraph_node.
4111         (cgraph_add_new_function): Call cgraph_create_node or
4112         cgraph_get_create_node instead of cgraph_node.
4113         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4114         instead of cgraph_node.
4115         (record_eh_tables): Likewise.
4116         (mark_address): Likewise.
4117         (mark_load): Likewise.
4118         (build_cgraph_edges): Call cgraph_get_create_node instead
4119         of cgraph_node.
4120         (rebuild_cgraph_edges): Likewise.
4121         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4122         instead of cgraph_node.
4123         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4124         cgraph_node.
4125         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4126         cgraph_create_node instead of cgraph_node.
4127         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4128         of cgraph_node.
4129         * lto-cgraph.c (input_node): Likewise.
4130         * lto-streamer-in.c (input_function): Likewise.
4131         * varasm.c (mark_decl_referenced): Likewise.
4132         (assemble_alias): Likewise.
4133
4134 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4135
4136         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4137         instead of cgraph_node and assert it does not return NULL.
4138         * lto-streamer-in.c (lto_read_body): Likewise.
4139         * omp-low.c (new_omp_context): Likewise.
4140         (create_task_copyfn): Likewise.
4141         * tree-emutls.c (lower_emutls_function_body): Likewise.
4142         * matrix-reorg.c (transform_allocation_sites): Likewise.
4143
4144 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4145
4146         PR c/48552
4147         * c-typeck.c (build_asm_expr): Error out on attempts to use
4148         void type outputs or inputs for constraints that allow reg or
4149         don't allow memory.
4150
4151 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4152             Richard Earnshaw  <rearnsha@arm.com>
4153
4154         PR target/48250
4155         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4156         to use sign-magnitude offsets. Reject unsupported unaligned
4157         cases. Add detailed description in comments.
4158         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4159         condition from TARGET_32BIT to TARGET_ARM.
4160
4161 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4162
4163         * tree.h (struct typed_tree): New.
4164         (struct tree_common): Include it instead of tree_base.
4165         (TREE_TYPE): Update for new location of type field.
4166         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4167         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4168         (union tree_node): Add typed field.
4169         * treestruct.def (TS_TYPED): New.
4170         * lto-streamer.c (check_handled_ts_structures): Handle it.
4171         * tree.c (MARK_TS_TYPED): New macro.
4172         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4173
4174 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4175
4176         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4177         (force_nonfallthru): Do not alter the loop nest if no basic block
4178         was created.
4179
4180 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4181
4182         * config/i386/sse.md (VI): New mode iterator.
4183         (SSEMODEI): Remove.
4184         (AVX256MODEI): Ditto.
4185         (AVXMODEF4P): Ditto.
4186         (avxvecpsmode): Ditto.
4187         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4188         (sse2_andnot<mode>3): New expander.
4189         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4190         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4191         (<any_logic:code><mode>3): Use VI mode iterator.
4192         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4193         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4194         (*andnottf3): Handle AVX three-operand constraints.
4195         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4196
4197 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4198             Robert Millan  <rmh@gnu.org>
4199
4200         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4201         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4202         GNU_USER_DYNAMIC_LINKER64): Define.
4203         (REG_NAME): Don't undefine.
4204         (MD_UNWIND_SUPPORT): Undefine.
4205         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4206         (REG_NAME): Don't undefine.
4207         (MD_UNWIND_SUPPORT): Undefine.
4208         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4209
4210 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4211
4212         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4213         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4214
4215 2011-04-11  Xinliang David Li  <davidxl@google.com>
4216
4217         * value-profile.c (check_ic_target): New function.
4218         (gimple_ic_transform): Sanity check indirect call target.
4219         * gimple-low.c (gimple_check_call_args): Interface change.
4220         (gimple_check_call_matching_types): New function.
4221         * tree-inline.c (tree_can_inline_p): Call new function.
4222
4223 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4224
4225         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4226         tree-pretty-print.h & realmpfr.h.
4227
4228 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4229
4230         PR middle-end/48464
4231         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4232         (setup_allocno_and_important_classes): Ditto.
4233
4234 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4235
4236         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4237         GNU_USER_DYNAMIC_LINKER.
4238         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4239         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4240         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4241         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4242         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4243         GNU_USER_TARGET_OS_CPP_BUILTINS.
4244         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4245         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4246         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4247         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4248         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4249         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4250         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4251         GNU_USER_TARGET_OS_CPP_BUILTINS.
4252         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4253         GNU_USER_DYNAMIC_LINKER.
4254         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4255         GNU_USER_TARGET_OS_CPP_BUILTINS.
4256         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4257         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4258         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4259         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4260         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4261         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4262         GNU_USER_DYNAMIC_LINKER64): Remove.
4263         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4264         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4265         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4266         GNU_USER_DYNAMIC_LINKER.
4267         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4268         GNU_USER_TARGET_OS_CPP_BUILTINS.
4269         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4270         GNU_USER_TARGET_OS_CPP_BUILTINS.
4271         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4272         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4273         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4274         GNU_USER_TARGET_OS_CPP_BUILTINS.
4275         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4276         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4277         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4278         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4279         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4280         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4281         GNU_USER_DYNAMIC_LINKER.
4282         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4283         GNU_USER_TARGET_OS_CPP_BUILTINS.
4284         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4285         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4286         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4287         GNU_USER_DYNAMIC_LINKER.
4288         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4289         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4290         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4291         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4292         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4293         GNU_USER_DYNAMIC_LINKER.
4294         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4295         GNU_USER_DYNAMIC_LINKERN32.
4296         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4297         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4298         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4299         GNU_USER_DYNAMIC_LINKER32.
4300         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4301         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4302         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4303         GNU_USER_DYNAMIC_LINKER.
4304         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4305         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4306         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4307         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4308         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4309         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4310         GNU_USER_DYNAMIC_LINKER32.
4311         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4312         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4313         GNU_USER_DYNAMIC_LINKER.
4314         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4315         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4316         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4317         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4318         GNU_USER_DYNAMIC_LINKER64.
4319         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4320         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4321         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4322         GNU_USER_DYNAMIC_LINKER.
4323         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4324         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4325         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4326         GNU_USER_DYNAMIC_LINKER.
4327         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4328         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4329         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4330         GNU_USER_DYNAMIC_LINKER32.
4331         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4332         GNU_USER_DYNAMIC_LINKER64.
4333         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4334         GNU_USER_DYNAMIC_LINKER64.
4335         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4336         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4337         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4338         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4339         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4340
4341 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4342
4343         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4344         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4345         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4346         GNU_USER_DYNAMIC_LINKER.
4347         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4348         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4349         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4350         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4351         GNU_USER_DYNAMIC_LINKER64.
4352         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4353         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4354         GNU_USER_LINK_EMULATION.
4355         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4356         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4357         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4358         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4359         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4360         CPP_SPEC, CC1_SPEC): Remove.
4361         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4362         (GNU_USER_DYNAMIC_LINKER): Define.
4363         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4364         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4365         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4366         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4367         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4368         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4369         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4370         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4371         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4372         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4373         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4374         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4375         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4376         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4377         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4378         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4379         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4380         GNU_USER_DYNAMIC_LINKER.
4381         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4382         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4383         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4384         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4385         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4386         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4387         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4388         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4389         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4390         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4391
4392 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4393
4394         PR target/9601
4395         PR target/11772
4396         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4397         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4398         comment.
4399         (ix86_is_msabi_thiscall): Removed.
4400         (ix86_is_type_thiscall): Likewise.
4401         (ix86_get_callcvt): New function.
4402         (ix86_comp_type_attributes): Simplify check.
4403         (ix86_function_regparm): Use ix86_get_callcvt for calling
4404         convention attribute checks.
4405         (ix86_return_pops_args): Likewise.
4406         (ix86_static_chain): Likewise.
4407         (x86_this_parameter): Likewise.
4408         (x86_output_mi_thunk): Likewise.
4409         (ix86_function_type_abi): Optimize check for types without attributes.
4410         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4411         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4412         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4413         by flag-values.
4414         (IX86_BASE_CALLCVT): Helper macro.
4415         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4416         Use ix86_get_callcvt for calling convention attribute checks and avoid
4417         symbol-decoration for stdcall in TARGET_RTD case.
4418         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4419         Likewise.
4420         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4421         for declaration.
4422
4423 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4424
4425         * config/i386/sse.md (VI_128): New mode iterator.
4426         (VI12_128): Rename from SSEMODE12.
4427         (VI14_128): Rename from SSEMODE14.
4428         (VI124_128): New mode iterator.
4429         (VI24_128): Rename from SSEMODE248.
4430         (VI248_128): Rename from SSEMODE248.
4431         (SSEMODE124C8): Remove.
4432         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4433         (*sse2_<plusminus_insn><mode>3): Merge with
4434         *avx_<plusminus_insn><mode>3.
4435         (*mulv8hi3): Merge with *avx_mulv8hi3.
4436         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4437         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4438         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4439         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4440         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4441         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4442         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4443         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4444         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4445         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4446         (*<smaxmin:code>v8hi3): Ditto.
4447         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4448         (*<smaxmin:code>v16qi3): Ditto.
4449         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4450         (*sse2_eq<mode>3): Ditto.
4451         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4452         (*sse2_gt<mode>3): Ditto.
4453         (vcondv2di): Split out of vcond<mode>.
4454         (vconduv2di): Split out of vcondu<mode>.
4455
4456 2011-04-11  Richard Guenther  <rguenther@suse.de>
4457
4458         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4459         before calling tree_low_cst.
4460
4461 2011-04-11  Richard Guenther  <rguenther@suse.de>
4462
4463         * stor-layout.c (layout_type): Compute all array index size operations
4464         in the original type.
4465         (initialize_sizetypes): Add comment.
4466         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4467
4468 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4469
4470         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4471
4472 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4473
4474         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4475         of cgraph_node, handle NULL return value.
4476         (cgraph_global_info): Likewise.
4477         (cgraph_rtl_info): Likewise.
4478         * tree-inline.c (estimate_num_insns): Likewise.
4479         * gimplify.c (unshare_body): Likewise.
4480         (unvisit_body): Likewise.
4481         (gimplify_body): Likewise.
4482         * predict.c (optimize_function_for_size_p): Likewise.
4483         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4484         (call_may_clobber_ref_p_1): Likewise.
4485         * varasm.c (function_section_1): Likewise.
4486         (assemble_start_function): Likewise.
4487
4488 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4489
4490         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4491         of cgraph_node.
4492         * final.c (rest_of_clean_state): Likewise.
4493         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4494         * passes.c (pass_init_dump_file): Likewise.
4495         (execute_all_ipa_transforms): Likewise.
4496         (function_called_by_processed_nodes_p): Likewise.
4497         * predict.c (maybe_hot_frequency_p): Likewise.
4498         (probably_never_executed_bb_p): Likewise.
4499         (compute_function_frequency): Likewise.
4500         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4501         (unnest_nesting_tree_1): Likewise.
4502         (lower_nested_functions): Likewise.
4503         * tree-optimize.c (execute_fixup_cfg): Likewise.
4504         (tree_rest_of_compilation): Likewise.
4505         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4506         * tree-sra.c (ipa_early_sra): Likewise.
4507         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4508         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4509         * ipa.c (record_cdtor_fn): Likewise.
4510         * ipa-inline.c (cgraph_early_inlining): Likewise.
4511         (compute_inline_parameters_for_current): Likewise.
4512         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4513         * ipa-pure-const.c (local_pure_const): Likewise.
4514         * ipa-split.c (split_function): Likewise.
4515         (execute_split_functions): Likewise.
4516         * cgraphbuild.c (build_cgraph_edges): Likewise.
4517         (rebuild_cgraph_edges): Likewise.
4518         (cgraph_rebuild_references): Likewise.
4519         (remove_cgraph_callee_edges): Likewise.
4520         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4521         (verify_cgraph_node): Likewise.
4522         (cgraph_analyze_functions): Likewise.
4523         (cgraph_preserve_function_body_p): Likewise.
4524         (save_inline_function_body): Likewise.
4525         (save_inline_function_body): Likewise.
4526         * tree-inline.c (copy_bb): Likewise.
4527         (optimize_inline_calls): Likewise.
4528
4529 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4530
4531         PR tree-optimization/48195
4532         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4533         ipa_check_create_edge_args.
4534         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4535         ipa_check_create_edge_args.
4536         * ipa-inline.c (inline_generate_summary): Do not call
4537         ipa_check_create_node_params and ipa_check_create_edge_args.
4538         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4539         ipa_check_create_edge_args.
4540
4541 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
4542
4543         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4544         instead of loop.
4545         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4546         * function.c (record_hard_reg_sets): Likewise.
4547         * ira.c (compute_regs_asm_clobbered): Likewise.
4548         * sched-deps.c (sched_analyze_1): Likewise.
4549         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4550
4551 2011-04-09  Xinliang David Li  <davidxl@google.com>
4552
4553         PR tree-optimization/PR48484
4554         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4555         has_valid_pred lazily
4556
4557 2011-04-09  Duncan Sands  <baldrick@free.fr>
4558
4559         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4560
4561 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4562
4563         * combine.c (combine_validate_cost): Adjust comments.  Set registered
4564         cost of I0 to zero at the end, if any.
4565
4566 2011-04-08  Xinliang David Li  <davidxl@google.com>
4567
4568         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4569         to insane profile data.
4570
4571 2011-04-08  Xinliang David Li  <davidxl@google.com>
4572
4573         * ipa-cp.c (ipcp_update_profiling): Correct
4574          negative scale factor due to insane profile data.
4575
4576 2011-04-08  Xinliang David Li  <davidxl@google.com>
4577
4578         * final.c (dump_basic_block_info): New function.
4579         (final): Dump basic block.
4580         (final_scan_insn): Remove old dump.
4581
4582 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4583
4584         PR target/47829
4585         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4586         crtbegin/crtend.
4587
4588 2011-04-08  Michael Matz  <matz@suse.de>
4589
4590         PR middle-end/48389
4591         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4592         functions.
4593         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4594         * rtl.h (rebuild_jump_labels_chain): Declare.
4595         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4596         insns inserted on edges.
4597
4598 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
4599
4600         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4601         * config/arm/arm-arches.def: New.
4602         * config/arm/arm-opts.h: New.
4603         * config/arm/genopt.sh: New.
4604         * config/arm/arm-tables.opt: New (generated).
4605         * config/arm/arm.c (arm_handle_option, arm_target_help,
4606         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4607         (all_architectures): Get most table contents from arm-arches.def.
4608         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4609         arm_selected_tune here.
4610         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4611         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4612         (march=, mcpu=, mtune=): Use Enum and Var.
4613         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4614         (arm.o): Update dependencies.
4615
4616 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
4617
4618         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4619         of header_file.
4620         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4621         (write_typed_alloc_defns): Likewise.
4622         (main): Calls write_typed_alloc_defns with output_header.
4623
4624 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4625
4626         PR inline-asm/48435
4627         * ira-color.c (setup_profitable_hard_regs): Add comments.
4628         Don't take prohibited hard regs into account.
4629         (setup_conflict_profitable_regs): Rename to
4630         get_conflict_profitable_regs.
4631         (check_hard_reg_p): Check prohibited hard regs.
4632
4633 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4634
4635         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4636         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4637         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4638
4639 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4640
4641         PR target/48366
4642         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4643         move from floating point to shift amount register.
4644         (emit_move_sequence): Remove secondary reload support for floating
4645         point to shift amount amount register copies.
4646         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4647         amount register copies.
4648         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4649         register, return false if mode isn't a scalar integer mode.
4650         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4651
4652 2011-04-08  Richard Guenther  <rguenther@suse.de>
4653
4654         * gimple.c (gimple_call_flags): Remove kludge.
4655
4656 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4657
4658         * sel-sched.c (sel_region_init): Move call to
4659         sel_setup_region_sched_flags after setup_current_loop_nest.
4660
4661 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
4662
4663         PR rtl-optimization/48272
4664         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4665         init_insn_reg_pressure_info.  Adjust a caller.
4666         * sched-int.h (init_insn_reg_pressure_info): Declare.
4667         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4668         when sched-pressure is enabled.
4669
4670 2011-04-08  Richard Guenther  <rguenther@suse.de>
4671
4672         * gimple.c (gimple_set_modified): Do not queue calls to
4673         MODIFIED_NORETURN_CALLS here ...
4674         * tree-ssa-operands.c (update_stmt_operands): ... but here.
4675
4676 2011-04-08  Richard Guenther  <rguenther@suse.de>
4677
4678         PR lto/48467
4679         * toplev.c (lang_dependent_init): Do not open asm_out_file
4680         in WPA mode, nor perform debug machinery initialization.
4681         (finalize): Do not unlink asm_out_file in WPA mode.
4682
4683 2011-04-08  Richard Guenther  <rguenther@suse.de>
4684
4685         * gimple.h (gimple_call_fntype): New function.
4686         (gimple_call_return_type): Use it.
4687         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4688         * gimple-low.c (gimple_check_call_args): Likewise.
4689         * gimple.c (gimple_call_flags): Likewise.
4690         (gimple_call_arg_flags): Likewise.
4691         (gimple_call_return_flags): Likewise.
4692         * tree-cfg.c (verify_gimple_call): Likewise.
4693         (do_warn_unused_result): Likewise.
4694         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4695         * value-prof.c (gimple_ic_transform): Fix fndecl check.
4696
4697 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
4698
4699         PR rtl-optimization/48235
4700         * sel-sched.c (code_motion_process_successors): Recompute the last
4701         insn in basic block if control flow changed.
4702         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
4703         Update condition for ilist_remove.
4704
4705 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4706
4707         PR rtl-optimization/48302
4708         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4709         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
4710         it to record added preheader blocks.
4711         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
4712         on to sel_add_loop_preheaders.
4713         (sel_region_init): Move call to setup_current_loop_nest after
4714         sel_init_bbs.
4715
4716 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4717
4718         PR target/48273
4719         * cfgloop.h (loop_has_exit_edges): New helper.
4720         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4721         non-clonable.
4722         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4723         that have no exit edges.
4724
4725 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4726
4727         PR rtl-optimization/48442
4728         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
4729         all callers.  Adjust assert.
4730
4731 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
4732
4733         PR tree-optimization/48377
4734         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4735         is_packed to true even for types with smaller TYPE_ALIGN than
4736         TYPE_SIZE.
4737
4738 2011-04-08  Richard Guenther  <rguenther@suse.de>
4739
4740         PR bootstrap/48513
4741         * doc/tm.texi: Re-generate.
4742
4743 2011-04-08  Wei Guozhi  <carrot@google.com>
4744
4745         PR target/47855
4746         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4747         * config/arm/arm.c (arm_attr_length_push_multi): New function.
4748         * config/arm/arm.md (*push_multi): Change the length computation to
4749         call a C function.
4750
4751 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
4752
4753         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4754         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4755         * doc/tm.texi: Regenerate.
4756         * system.h (ASM_OUTPUT_BSS): Poison.
4757         * varasm.c (asm_output_bss): Remove function.
4758         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4759
4760         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4761         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4762         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4763         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4764         Likewise.
4765         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4766         Likewise.
4767         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4768         Likewise.
4769         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4770
4771 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4772
4773         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4774         EnumValue lines.
4775
4776 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4777
4778         * config/m68k/m68k.c (m68k_handle_option): Don't handle
4779         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4780         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4781         OPT_mcpu32.
4782         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4783         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4784         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4785         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4786         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4787         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4788         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4789         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4790         options.  Don't map other m68k options manually.  Don't handle
4791         old-style options as canonical.
4792         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4793         * doc/install.texi (m68k-*-*): Document binutils version requirement.
4794
4795 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4796
4797         * basic-block.h (force_nonfallthru): Move to...
4798         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4799         (force_nonfallthru): ...here.
4800         * cfghooks.c (force_nonfallthru): New function.
4801         * cfgrtl.c (force_nonfallthru): Rename into...
4802         (rtl_force_nonfallthru): ...this.
4803         (commit_one_edge_insertion): Do not set AUX field.
4804         (commit_edge_insertions): Do not discover new basic blocks.
4805         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4806         (cfg_layout_rtl_cfg_hooks): Likewise.
4807         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4808         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
4809         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4810
4811 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
4812
4813         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4814         Remove macros.
4815
4816 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
4817
4818         * config/i386/sse.md: Update copyright year.
4819         (avxcvtvecmode): Remove.
4820         (sse_movhlps): Merge with *avx_movhlps.
4821         (sse_movlhps): Merge with *avx_movlhps.
4822         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4823         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4824         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4825         (sse_loadhps): Merge with *avx_loadhps.
4826         (sse_storelps): Merge with *avx_storelps.
4827         (sse_loadlps): Merge with *avx_loadlps.
4828         (sse_movss): Merge with *avx_movss.
4829         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4830         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4831         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4832         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4833         (vec_set<mode>_0): Ditto.
4834         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4835         (sse4_1_insertps): Merge with *avx_insertps.
4836         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4837         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4838         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4839         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4840         (sse2_storehpd): Merge with *avx_storehpd.
4841         (sse2_loadhpd): Merge with *avx_loadhpd.
4842         (sse2_loadlpd): Merge with *avx_loadlpd.
4843         (sse2_movsd): Merge with *avx_movsd.
4844         (*vec_concatv2df): Merge with *vec_concatv2df.
4845
4846 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
4847
4848         PR debug/48343
4849         * combine.c (combine_instructions): Add last_combined_insn,
4850         update it if insn is after it, pass it to all try_combine calls.
4851         (try_combine): Add last_combined_insn parameter, pass it instead of
4852         i3 to propagate_for_debug.
4853
4854 2011-04-07  Nick Clifton  <nickc@redhat.com>
4855
4856         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4857         to handle MDR <-> data register transfers.
4858         (movhi_internal): Likewise.
4859
4860 2011-04-07  Alan Modra  <amodra@gmail.com>
4861
4862         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4863         previous stack info.
4864
4865 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4866
4867         PR target/43920
4868         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
4869         flow_find_cross_jump.  Swap variables to implement backward replacement.
4870         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4871
4872 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4873
4874         PR target/43920
4875         * cfgcleanup.c (walk_to_nondebug_insn): New function.
4876         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
4877         and bb2.
4878         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4879         src1 or src2.  Redirect edges to the last basic block.  Update
4880         frequency and count on multiple basic blocks in case of fallthru.
4881
4882 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4883
4884         PR target/43920
4885         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4886         function.
4887         (old_insns_match_p): Change return type.  Replace return false/true
4888         with return dir_none/dir_both.  Use can_replace_by.
4889         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
4890         direction from dir_p.  Register replacement direction in dir, last_dir
4891         and afterlast_dir.  Handle new return type of old_insns_match_p using
4892         merge_dir.  Return replacement direction in dir_p.
4893         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4894         return type of old_insns_match_p.
4895         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4896         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4897         flow_find_cross_jump.
4898         * basic-block.h (enum replace_direction): New type.
4899         (flow_find_cross_jump): Add parameter to declaration.
4900
4901 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4902
4903         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4904         (AVXMODEDCVTPS2DQ): Ditto.
4905         (VEC_FLOAT_MODE): Ditto.
4906         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
4907         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4908         (<any_logic:code><mode>3): Use VF mode iterator.
4909         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4910         Use VF mode iterator.
4911         (copysign<mode>3): Use VF mode iterator.
4912         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
4913         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4914         (*<any_logic:code><MODEF:mode>3): Merge with
4915         *avx_<any_logic:code><MODEF:mode>3.
4916         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4917         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4918         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4919         (avx_cvtdq2ps<avxmodesuffix>): Remove.
4920         (sse2_cvtdq2ps): Use %v modifier.
4921         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4922         (avx_cvtps2dq<avxmodesuffix>): Remove.
4923         (sse2_cvtps2dq): Use %v modifier.
4924         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4925         (avx_cvttps2dq<avxmodesuffix>): Remove.
4926         (sse2_cvttps2dq): Use %v modifier.
4927         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4928         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4929         (sse2_cvtsd2siq): Fix insn template.
4930         (sse2_cvtsd2siq_2): Ditto.
4931         (sse2_cvttsd2siq): Ditto.
4932         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4933         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4934
4935 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4936
4937         * gcov-io.c: Use GCC Runtime Library Exception.
4938
4939 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
4940
4941         PR debug/48466
4942         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4943         as base_reg whatever register reg has been eliminated to, instead
4944         of hardcoding STACK_POINTER_REGNUM.
4945
4946 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4947
4948         * doc/tm.texi.in: Document C target hooks as separate from general
4949         target hooks.
4950         * doc/tm.texi: Regenerate.
4951         * genhooks.c (struct hook_desc): Add docname field.
4952         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
4953         docname field.
4954         (hook_array): Include c-target.def.
4955         (emit_documentation): Use docname field in output.
4956         (emit_init_macros): Take docname argument.  Only emit definitions
4957         for hooks matching docname.
4958         (main): Expect additional arguments in all cases.  Pass argument
4959         to emit_init_macros.
4960         * target.def: Move initial macro definitions and comments to
4961         target-hooks-macros.h.
4962         (gcc_targetcm): Move to c-family/c-target.def.
4963         * target.h (targetcm): Move declaration to c-family/c-target.h.
4964         * targhooks.c (default_handle_c_option): Move to
4965         c-family/c-opts.c.
4966         * targhooks.h (default_handle_c_option): Move declaration to
4967         c-family/c-common.h.
4968         * target-hooks-macros.h: New file.
4969         * config.gcc (target_has_targetcm): Define and use to add to
4970         c_target_objs and cxx_target_objs.
4971         * config/default-c.c: New file.
4972         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4973         of target.h and target-def.h.
4974         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4975         (darwin_objc_construct_string, darwin_cfstring_ref_p,
4976         darwin_check_cfstring_format_arg): Make static.
4977         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4978         TARGET_STRING_OBJECT_REF_TYPE_P,
4979         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4980         * config/darwin-protos.h (darwin_objc_construct_string,
4981         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4982         declare.
4983         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4984         TARGET_STRING_OBJECT_REF_TYPE_P,
4985         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4986         * config/t-darwin (darwin-c.o): Update dependencies.
4987         * system.h (TARGET_HAS_TARGETCM): Poison.
4988         * Makefile.in (TARGET_H): Update.
4989         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4990         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4991         (default-c.o): New target.
4992         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4993         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4994         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
4995         c-target.def.
4996         (build/genhooks.o): Update dependencies.
4997
4998 2011-04-06  Richard Guenther  <rguenther@suse.de>
4999
5000         * ipa-inline.c (enum inlining_mode): Remove.
5001         (cgraph_flatten): Use some other token.
5002         (cgraph_edge_early_inlinable_p): New function, split out from ...
5003         (cgraph_perform_always_inlining): New function, split out from ...
5004         (cgraph_decide_inlining_incrementally): ... here.
5005         (cgraph_mark_inline_edge): Adjust.
5006         (cgraph_early_inlining): Re-structure.
5007         (pass_early_inline): Require SSA form.
5008
5009 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5010             Julian Brown  <julian@codesourcery.com>
5011             Mark Shinwell  <shinwell@codesourcery.com>
5012
5013         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5014         LO_REGS only for Thumb-1.
5015         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5016         be used in short instructions when optimising for size on Thumb-2.
5017
5018 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5019
5020         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5021         associated with user returns to be preserved.
5022
5023 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5024
5025         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5026         symbol_queue_size, DBXOUT_DECR_NESTING,
5027         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5028         if XCOFF_DEBUGGING_INFO.
5029
5030 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5031
5032         * config/i386/i386.md (attribute isa): New.
5033         (attribute enabled): New.
5034         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5035         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5036         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5037         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5038         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5039         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5040         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5041         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5042
5043         * config/i386/sse.md (VF): New mode iterator.
5044         (VF1): Ditto.
5045         (VF2): Ditto.
5046         (VF_128): Ditto.
5047         (SSEMODEF4): Remove.
5048         (attribute sse): Handle V8SF and V4DF modes.
5049         (<absneg:code><mode>2): Use VF mode iterator.
5050         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5051         mode iterator.
5052         (<plusminus_insn><mode>3): Use VF mode iterator.
5053         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5054         Use VF mode iterator.
5055         (<sse>_vm<plusminus_insn><mode>3): Merge with
5056         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5057         (mul<mode>3): Use VF mode iterator.
5058         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5059         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5060         mode iterator.
5061         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5062         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5063         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5064         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5065         mode iterator.
5066         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5067         Use VF1 mode iterator.
5068         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5069         (sqrt<VF2:mode>2): New expander.
5070         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5071         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5072         and sqrtv2df2.  Use VF mode iterator.
5073         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5074         mode iterator.
5075         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5076         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5077         Use VF1 mode iterator.
5078         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5079         (<smaxmin:code><mode>3): Use VF mode iterator.
5080         (*<smaxmin:code><mode>3_finite): Merge with
5081         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5082         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5083         (<sse>_vm<smaxmin:code><mode>2): Merge with
5084         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5085         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5086         mode iterator.
5087         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5088         mode iterator.
5089         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5090         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5091         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5092         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5093         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5094         VF mode iterator.
5095         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5096         Use VF_128 mode iterator.
5097         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5098         mode iterator.
5099         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5100         VF_128 mode iterator.
5101         (vcond<mode>): Use VF mode iterator.
5102         * config/i386/predicates.md (sse_comparison_operator): Merge with
5103         avx_comparison_float_operator.  Do not declare as special_predicate.
5104         * config/i386/i386.c (struct builtin_description): Update for renamed
5105         compare patterns.
5106         (ix86_expand_args_builtin): Ditto.
5107         (ix86_expand_sse_compare_mask): Ditto.
5108
5109 2011-04-06  Richard Guenther  <rguenther@suse.de>
5110
5111         * tree-inline.c (estimate_num_insns): For calls simply account
5112         for all passed arguments and a used return value.
5113
5114 2011-04-06  Richard Guenther  <rguenther@suse.de>
5115
5116         PR tree-optimization/47663
5117         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5118         call_stmt_time fields.
5119         (cgraph_edge_inlinable_p): Declare.
5120         (cgraph_edge_recursive_p): New inline function.
5121         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5122         (cgraph_clone_edge): Copy it.
5123         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5124         Account for call stmt time.
5125         (cgraph_estimate_time_after_inlining): Take edge argument.
5126         (cgraph_estimate_edge_growth): Account call stmt size.
5127         (cgraph_estimate_size_after_inlining): Take edge argument.
5128         (cgraph_mark_inline_edge): Adjust.
5129         (cgraph_check_inline_limits): Likewise.
5130         (cgraph_recursive_inlining_p): Remove.
5131         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5132         (cgraph_decide_recursive_inlining): Take edge argument and
5133         adjust.
5134         (cgraph_decide_inlining_of_small_functions): Do not avoid
5135         diags for recursive inlining here.
5136         (cgraph_flatten): Adjust.
5137         (cgraph_decide_inlining_incrementally): Likewise.
5138         (estimate_function_body_sizes): Remove call cost handling.
5139         (compute_inline_parameters): Initialize caller edge call costs.
5140         (cgraph_estimate_edge_growth): New function.
5141         (cgraph_estimate_growth): Use it.
5142         (cgraph_edge_badness): Likewise.
5143         (cgraph_check_inline_limits): Take an edge argument.
5144         (cgraph_decide_inlining_of_small_functions): Adjust.
5145         (cgraph_decide_inlining): Likewise.
5146         * tree-inline.c (estimate_num_insns): Only account for call
5147         return value if it is used.
5148         (expand_call_inline): Avoid diagnostics on recursive inline
5149         functions here.
5150         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5151         (input_edge): Input edge call costs.
5152
5153 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5154
5155         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5156
5157 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5158
5159         * doc/invoke.texi (Spec Files): Fix typo.
5160
5161 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5162
5163         * profile.c (branch_prob): Move declaration of local variable.  Remove
5164         obsolete ??? comment.  Expand the location explicitly instead of using
5165         the LOCATION_FILE and LOCATION_LINE macros.
5166
5167 2011-04-06  Wei Guozhi  <carrot@google.com>
5168
5169         PR target/47855
5170         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5171         (arm_cond_branch): Likewise.
5172         (arm_cond_branch_reversed): Likewise.
5173         (arm_jump): Likewise.
5174         (push_multi): Likewise.
5175         * config/arm/constraints.md (Py): New constraint.
5176
5177 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5178
5179         PR bootstrap/48471
5180         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5181         Move these...
5182         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5183         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5184         #ifdef DBX_DEBUGGING_INFO.
5185
5186 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5187
5188         PR bootstrap/48403
5189         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5190         if old and new states differ.
5191
5192 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5193
5194         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5195         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5196         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5197         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5198         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5199         mcfv4e): Use Alias.
5200         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5201         ColdFire options to -mcpu= options.
5202
5203 2011-04-05  Jeff Law  <law@redhat.com>
5204
5205         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5206         check if BB is a successor of LOOP->header and return
5207         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5208
5209 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5210
5211         * cprop.c (struct reg_use): Remove.
5212         (reg_use_table): Make an array of RTX.
5213         (find_used_regs, constprop_register, local_cprop_pass,
5214         bypass_block): Simplify users of reg_use_table.
5215         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5216         on one of the uses found by find_used_regs.
5217
5218 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5219
5220         PR bootstrap/48469
5221         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5222         declaration.
5223
5224 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5225
5226         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5227         as an rtx.
5228         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5229
5230 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5231
5232         PR middle-end/48441
5233         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5234
5235 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5236
5237         * combine.c: Include obstack.h.
5238         (struct insn_link): Define.
5239         (uid_log_links): Adjust type.
5240         (FOR_EACH_LOG_LINK): New macro.
5241         (insn_link_obstack): Declare.
5242         (alloc_insn_link): Define.
5243         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5244         type of link variables.
5245         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5246         (try_combine, record_promoted_values, distribute_notes): Likewise.
5247         (distribute_links): Likewise.  Tweak prototype.
5248         (clear_log_links): Delete.
5249         (adjust_for_new_dest): Call alloc_insn_link.
5250         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5251
5252 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5253
5254         * gcse.c (modify_mem_list): Convert to an array of VECs.
5255         (canon_modify_mem_list, compute_transp): Tweak formatting.
5256         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5257         (load_killed_in_block_p): Likewise.
5258         (record_last_mem_set_info): Likewise.
5259         (clear_modify_mem_tables): Likewise.
5260
5261 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5262
5263         PR middle-end/48461
5264         * function.c (emit_use_return_register_into_block): Only define if
5265         HAVE_return.
5266
5267 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5268
5269         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5270
5271 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5272
5273         * config/rx/rx-opts.h: New.
5274         * config/rx/rx.c (rx_cpu_type): Remove.
5275         (rx_handle_option): Don't assert that global structures are in
5276         use.  Access variables via opts pointer.  Defer most handling of
5277         OPT_mint_register_.  Use error_at.
5278         (rx_option_override): Handle deferred OPT_mint_register_ here.
5279         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5280         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5281         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5282         (rx_cpu_types): New Enum and EnumValue entries.
5283         (mint-register=): Use Defer and use Var accordingly.
5284
5285 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5286
5287         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5288         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5289         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5290         Move these...
5291         (debug_free_queue, debug_nesting, symbol_queue_index):
5292         ...and these...
5293         * dbxout.c: ...to here.  Make static.
5294
5295 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5296
5297         * gcse.c (modify_pair): Define.  Define a VEC of it.
5298         (canon_modify_mem_list): Convert to an array of VECs.
5299         (free_insn_expr_list_list): Delete.
5300         (clear_modify_mem_tables): Call VEC_free instead.
5301         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5302         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5303         (canon_list_insert, compute_transp): Likewise.
5304
5305 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5306
5307         PR target/43920
5308         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5309         for size.
5310
5311 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5312
5313         PR target/43920
5314         * function.c (emit_use_return_register_into_block): New function.
5315         (thread_prologue_and_epilogue_insns): Use
5316         emit_use_return_register_into_block.
5317
5318 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5319
5320         PR target/43920
5321         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5322         insn.
5323
5324 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5325
5326         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5327
5328 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5329
5330         * config/arm/arm.md (define_constants for unspec): Replace with
5331         define_c_enum.
5332         (define_constants for unspecv): Replace with define_c_enum.
5333         * config/arm/neon.md (define_constants for unspec): Replace with
5334         define_c_enum.
5335
5336 2011-04-04  Richard Henderson  <rth@redhat.com>
5337
5338         PR bootstrap/48400
5339         * dwarf2out.c (output_line_info): Always emit line info from
5340         at least one section.
5341         (dwarf2out_init): Create text_section_line_info here ...
5342         (set_cur_line_info_table): ... not here.
5343
5344 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5345
5346         PR target/48380
5347         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5348         not called.
5349
5350         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5351
5352 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5353
5354         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5355         (expr_equiv_p): Remove.
5356         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5357         (hash_scan_set): Update call to insert_set_in_table.
5358         (dump_hash_table): Dump <dest, src> pair.
5359         (lookup_set): Simplify.  Lookup <dest, src> pair.
5360         (compute_transp): Remove, fold heavily simplified code into...
5361         (compute_local_properties): ...here.  Expect COMP and TRANSP
5362         unconditionally.
5363         (find_avail_set): Take set directly from struct expr.
5364         (find_bypass-set): Likewise.
5365         (bypass_block): Likewise.
5366         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5367
5368         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5369         checks on form of COND from find_implicit_sets to here.
5370         (find_implicit_sets): Cleanup control flow. Split critical edges
5371         if it exposes implicit sets.  Allocate/resize implicit_sets as
5372         necessary.
5373         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5374         changed something.  Run df_analyze after find_implicit_sets if any
5375         edges were split.  Do not allocate implicit_sets here.
5376
5377         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5378         (gcse_obstack): Renamed to cprop_obstack.
5379         (GNEW, GNEWVEC, GNEWVAR): Remove.
5380         (gmalloc): Remove.
5381         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5382         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5383         (gcse_alloc): Likewise, and rename to cprop_alloc.
5384         (alloc_gcse_men, free_gcse_mem): Remove.
5385         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5386         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5387         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5388
5389         * cprop.c (oprs_not_set_p): Remove.
5390         (mark_set, mark_clobber): Remove.
5391         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5392         (reg_not_set_p): New function.
5393         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5394         (cprop_insn): Likewise.
5395         (cprop_jump): Use FOR_EACH_EDGE.
5396
5397 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5398
5399         PR bootstrap/48403
5400         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5401         (rank_for_schedule): Use scheduled_insns vector instead of
5402         last_scheduled_insn.
5403         (ok_for_early_queue_removal): Likewise.
5404         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5405         we have a dbg_cnt.
5406         (choose_ready): Likewise.
5407         (commit_schedule): Use VEC_iterate.
5408         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5409         a dbg_cnt, use it and ensure the first insn is in the ready list.
5410         (haifa_sched_init): Allocate scheduled_insns.
5411         (sched_extend_ready_list): Don't allocate it; reserve space.
5412         (haifa_sched_finish): Free it.
5413
5414 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5415
5416         * optc-gen.awk: Always remove type from Variable entry before
5417         recording in var_seen.
5418
5419 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5420
5421         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5422         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5423         call to tidy_fallthru_edges.
5424
5425 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5426
5427         * doc/options.texi (ToLower): Document.
5428         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5429         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5430         * opts.h (cl_option): Add cl_tolower field.
5431         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5432         arguments with lowercase strings.
5433         * config/rx/rx.opt (mcpu=): Add ToLower.
5434         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5435         argument.
5436
5437 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5438
5439         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5440
5441 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5442
5443         * config/vax/vax.c: Include reload.h.
5444
5445 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5446
5447         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5448         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5449         (sparc_preferred_reload_class): New function.
5450
5451 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5452
5453         PR debug/48401
5454         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5455         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5456
5457 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5458
5459         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5460         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5461
5462 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5463
5464         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5465         (ASM_OUTPUT_ALIGNED_BSS): Define.
5466
5467 2011-04-03  Michael Matz  <matz@suse.de>
5468
5469         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5470         and next_slot members.
5471         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5472         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5473         (lto_streamer_cache_append): Declare.
5474         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5475         unsigned index, remove offset parameter, ensure that we append
5476         or update existing entries.
5477         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5478         parameter, update next_slot for append.
5479         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5480         parameter.
5481         (lto_streamer_cache_insert_at): Likewise.
5482         (lto_streamer_cache_append): New function.
5483         (lto_streamer_cache_lookup): Use unsigned index.
5484         (lto_streamer_cache_get): Likewise.
5485         (lto_record_common_node): Don't test tree_node_can_be_shared.
5486         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5487         (lto_streamer_cache_delete): Don't free offsets member.
5488         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5489         (lto_output_string_with_length): Use lto_output_data_stream.
5490         (lto_output_tree_header): Remove ix parameter, don't write it.
5491         (lto_output_builtin_tree): Likewise.
5492         (lto_write_tree): Adjust callers to above, don't track and write
5493         offset, write unsigned index.
5494         (output_unreferenced_globals): Don't emit all global vars.
5495         (write_global_references): Use unsigned indices.
5496         (lto_output_decl_state_refs): Likewise.
5497         (write_symbol): Likewise.
5498         * lto-streamer-in.c (lto_input_chain): Move earlier.
5499         (input_function): Use unsigned index.
5500         (input_alias_pairs): Don't read and then ignore all global vars.
5501         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5502         don't pass it back, use lto_streamer_cache_append.
5503         (lto_register_var_decl_in_symtab): Use unsigned index.
5504         (lto_register_function_decl_in_symtab): Likewise.
5505         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5506         index.
5507         (lto_get_builtin_tree): Don't read index, use
5508         lto_streamer_cache_append.
5509         (lto_read_tree): Adjust call to lto_materialize_tree.
5510
5511         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5512         don't use function calls in arguments to MIN.
5513
5514         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5515         twice.
5516
5517         * gimple.c (gimple_type_leader_entry): Mark deletable.
5518
5519 2011-04-03  Alan Modra  <amodra@gmail.com>
5520
5521         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5522
5523 2011-04-03  Michael Matz  <matz@suse.de>
5524
5525         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5526         an integer.
5527         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5528
5529 2011-04-03  Michael Matz  <matz@suse.de>
5530
5531         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5532         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5533         without function context.
5534         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5535         current_function_decl and cfun.
5536
5537 2011-04-03  Michael Matz  <matz@suse.de>
5538
5539         * tree.c (decl_init_priority_insert): Don't create entry for
5540         default priority.
5541         (decl_fini_priority_insert): Ditto.
5542         (fields_compatible_p, find_compatible_field): Remove.
5543         * tree.h (fields_compatible_p, find_compatible_field): Remove.
5544         * gimple.c (gimple_compare_field_offset): Adjust block comment.
5545
5546 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5547
5548         * combine.c (try_combine): Remove useless local variable.
5549
5550 2011-04-03  Richard Guenther  <rguenther@suse.de>
5551             Ira Rosen  <ira.rosen@linaro.org>
5552
5553         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5554         non-variable offsets and compare the remaining bases of the two
5555         accesses instead of looking for exact same data-ref.
5556
5557 2011-04-02  Kai Tietz  <ktietz@redhat.com>
5558
5559         PR target/48416
5560         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5561
5562         * i386.c (ix86_is_msabi_thiscall): New helper function.
5563         (ix86_is_type_thiscall): New helper function.
5564         (ix86_comp_type_attributes): Handle thiscall for method-functions
5565         special.
5566         (init_cumulative_args): Likewise.
5567         (find_drap_reg): Likewise.
5568         (ix86_static_chain): Likewise.
5569         (x86_this_parameter): Likewise.
5570         (x86_output_mi_thunk): Likewise.
5571
5572 2011-04-01  Olivier Hainque  <hainque@adacore.com>
5573             Nicolas Setton  <setton@adacore.com>
5574             Eric Botcazou  <ebotcazou@adacore.com>
5575
5576         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5577         (add_gnat_descriptive_type_attribute): New function.
5578         (gen_array_type_die): Call it.
5579         (gen_enumeration_type_die): Likewise.
5580         (gen_struct_or_union_type_die): Likewise.
5581         (modified_type_die): Likewise.
5582         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5583         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5584         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5585
5586 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5587
5588         PR bootstrap/48148
5589         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5590         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5591
5592         Revert:
5593         2011-03-17  Richard Guenther  <rguenther@suse.de>
5594
5595         PR bootstrap/48148
5596         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5597         origin for decls in other ltrans units.
5598         (input_varpool_node): Likewise.
5599
5600 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5601
5602         PR middle-end/48335
5603         * expr.c (expand_assignment): Handle all possibilities
5604         if TO_RTX is CONCAT.
5605         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5606         (store_split_bit_field): If SUBREG_REG (op0) or
5607         op0 itself has smaller mode than word, return it
5608         for offset 0 and const0_rtx for out-of-bounds stores.
5609         If word is const0_rtx, skip it.
5610
5611 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
5612
5613         * config/h8300/h8300.c (print_operand_address): Rename to...
5614         (h8300_print_operand_address): ...this. Make static. Adjust comments.
5615         Call h8300_print_operand and h8300_print_operand_address instead of
5616         print_operand and print_operand_address. Declare.
5617         (print_operand): Renake to...
5618         (h8300_print_operand): ...this. Make static. Adjust comments.
5619         Call h8300_print_operand instead of print_operand. Declare.
5620         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5621         (h8300_register_move_cost): Likewise.
5622         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5623         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5624         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5625         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5626         * config/h8300/h8300-protos.h (print_operand): Delete.
5627         (print_operand_address): Delete.
5628
5629 2011-04-01  Richard Henderson  <rth@redhat.com>
5630
5631         PR 48400
5632         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5633         in strict mode before dwarf4.  Re-order tests to early out
5634         before switching sections.
5635
5636 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
5637
5638         * config/h8300/constraints.md: New file.
5639         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
5640         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5641         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5642         * config/h8300/predicates.md (bit_operand): Likewise.
5643         (incdec_operand): Use satisfies_constraint_M and
5644         satisfies_constraint_O.  Don't use C code block.
5645         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5646         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5647         (compute_mov_length): Use satisfies_constraint_G.
5648         (fix_bit_operand): Use satisfies_constraint_U.
5649         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5650         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5651         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5652         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5653         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5654         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5655         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5656         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5657         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5658         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5659         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5660         (EXTRA_MEMORY_CONSTRAINT): Delete.
5661
5662 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
5663             Michael Meissner  <meissner@linux.vnet.ibm.com>
5664
5665         PR target/48262
5666         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5667         operands, as per the specifications.
5668
5669         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5670         (vec_extract_evenv4sf): Ditto.
5671         (vec_extract_evenv8hi): Ditto.
5672         (vec_extract_evenv16qi): Ditto.
5673         (vec_extract_oddv4si): Ditto.
5674
5675 2011-03-31  Mark Wielaard  <mjw@redhat.com>
5676
5677         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5678         high_pc attribute if the CU has no associated code. Only output
5679         DW_AT_entry_pc for CU if not generating strict dwarf and
5680         dwarf_version < 4.
5681
5682 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
5683
5684         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5685         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5686         out of ...
5687         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5688         * final.c (final_start_function): Call the new function rather
5689         than using a NULL argument for dwarf2out_frame_debug.
5690
5691         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5692         that contains the prologue.
5693
5694         * haifa-sched.c (queue_insn): New arg REASON.  All callers
5695         changed.  Print it in debugging output.
5696
5697         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5698
5699         * sched-ebb.c (begin_schedule_ready): Remove second argument.
5700         Split most of the code into...
5701         (begin_move_insn): ... here.  New function.
5702         (ebb_sched_info): Add a pointer to it.
5703         * haifa-sched.c (scheduled_insns): New static variable.
5704         (sched_extend_ready_list): Allocate it.
5705         (schedule_block): Use it to record the order of scheduled insns.
5706         Perform RTL changes to move insns only after all scheduling
5707         decisions have been made.
5708         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5709         begin_move_insn field.
5710         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5711         * sched-int.h (struct haifa_sched_info): Remove second argument
5712         from begin_schedule_ready hook.  Add new member begin_move_insn.
5713         * sched-rgn.c (begin_schedule_ready): Remove second argument.
5714         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5715
5716         * haifa-sched.c (prune_ready_list): New function, broken out of
5717         schedule_block.
5718         (schedule_block): Use it.
5719
5720 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5721
5722         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5723
5724 2011-04-01  Kai Tietz  <ktietz@redhat.com>
5725
5726         * config.gcc (*-*-mingw*): Allow as option the
5727         posix threading model.
5728         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
5729         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5730         definition.
5731         (CPP_SPEC): Add pthread/no-pthread handling.
5732         (LIB_SPEC): Likewise.
5733         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5734         (LIB_SPEC): Likewise.
5735         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5736         flag to pass -pthread option for shared libgcc build.
5737         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5738         for shared libgcc build.
5739         * config/i386/t-mingw-pthread: New file.
5740         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5741         New define to enable use of library pthread by default.
5742         * config/i386/mingw.opt (pthread): New driver option.
5743         (no-pthread): New driver option.
5744         * config/i386/cygming.opt: Make sure trailing empty line is retained.
5745         * config/i386/mingw-w64.opt: Likewise.
5746
5747 2011-04-01  Gary Funck <gary@intrepid.com>
5748
5749         * c-decl.c (grokdeclarator): Fix formatting.
5750
5751 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5752
5753         * expr.c (emit_block_move_via_movmem): Use n_generator_args
5754         instead of n_operands.
5755         (set_storage_via_setmem): Likewise.
5756         * optabs.c (maybe_gen_insn): Likewise.
5757         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5758         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5759         (mips_expand_builtin_direct): Likewise.
5760         * config/spu/spu.c (expand_builtin_args): Likewise.
5761
5762 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5763
5764         * recog.h (insn_data_d): Add n_generator_args.
5765         * genoutput.c (data): Likewise.
5766         (output_insn_data): Print it.
5767         (max_opno, num_dups): Delete.
5768         (scan_operands): Just fill in "d->operand[...]".
5769         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5770
5771 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5772
5773         * gensupport.h (pattern_stats): New structure.
5774         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5775         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5776         (max_operand_1, max_operand_vec): Delete.
5777         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5778
5779 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
5780
5781         * emit-rtl.c (emit_pattern_after_setloc): New function.
5782         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5783         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5784         (emit_pattern_after): New function.
5785         (emit_insn_after, emit_jump_insn_after): Call it.
5786         (emit_call_insn_after, emit_debug_insn_after): Likewise.
5787         (emit_pattern_before_setloc): New function.
5788         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5789         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5790         Likewise.
5791         (emit_pattern_before): New function.
5792         (emit_insn_before, emit_jump_insn_before): Call it.
5793         (emit_call_insn_before, emit_debug_insn_before): Likewise.
5794
5795 2011-03-31  Richard Henderson  <rth@redhat.com>
5796
5797         * dwarf2out.c (dw_separate_line_info_ref): Remove.
5798         (dw_separate_line_info_entry): Remove.
5799         (enum dw_line_info_opcode): New.
5800         (dw_line_info_entry): Use it.
5801         (dw_line_info_table, dw_line_info_table_p): New.
5802         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5803         (line_info_table, line_info_label_num): Remove.
5804         (line_info_table_in_use): Remove.
5805         (separate_line_info_table): Remove.
5806         (separate_line_info_table_allocated): Remove.
5807         (separate_line_info_table_in_use): Remove.
5808         (LINE_INFO_TABLE_INCREMENT): Remove.
5809         (line_info_label_num): New.
5810         (cur_line_info_table): New.
5811         (text_section_line_info, cold_text_section_line_info): New.
5812         (separate_line_info): New.
5813         (SEPARATE_LINE_CODE_LABEL): Remove.
5814         (print_dwarf_line_table): Remove.
5815         (debug_dwarf): Don't dump it.
5816         (output_one_line_info_table): New.
5817         (output_line_info): Use it.
5818         (new_line_info_table): New.
5819         (set_cur_line_info_table): New.
5820         (dwarf2out_switch_text_section): Use it.
5821         (dwarf2out_begin_function): Likewise.
5822         (push_dw_line_info_entry): New.
5823         (dwarf2out_source_line): Rewrite for new line info tables.
5824         (dwarf2out_init): Remove dead initailizations.
5825
5826 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5827
5828         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
5829         various flags.
5830         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5831         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5832         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5833         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5834         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5835         * opt-functions.awk (flag_init, switch_bit_fields): New.
5836         (switch_flags): Don't handle flags moved to bit-fields.  Don't
5837         generate CL_MISSING_OK or CL_SAVE.
5838         * optc-gen.awk: Update to generate bit-field output as well as
5839         flags field.
5840         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5841         bit-field instead of CL_REJECT_DRIVER flag.
5842         * opts-common.c (generate_canonical_option,
5843         decode_cmdline_option): Use bit-fields instead of CL_* flags.
5844         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5845         instead of CL_REJECT_NEGATIVE flag.
5846         * toplev.c (print_switch_values): Use cl_report bit-field instead
5847         of CL_REPORT flag.
5848
5849 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5850
5851         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5852         a zero minimum index only if it is redundant.
5853
5854 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5855
5856         PR rtl-optimization/48381
5857         * ira-color.c (assign_hard_reg): Use hard reg set intersection
5858         instead of ira_class_hard_reg_index for calculating conflicting
5859         hard registers.
5860
5861 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
5862
5863         * cprop.c: Clean up hash table building.
5864         (reg_avail_info): Remove.
5865         (oprs_available_p): Remove.
5866         (record_last_reg_set_info): Remove.
5867         (record_last_set_info): Remove.
5868         (reg_available_p): New function.
5869         (gcse_constant_p): Do not treat unfolded conditions as constants.
5870         (make_set_regs_unavailable): New function.
5871         (hash_scan_set): Simplify with new reg_available_p.
5872         (compute_hash_table_work): Traverse insns stream only once.
5873         Do not compute reg_avail_info. Traverse insns in reverse order.
5874         Record implicit sets after recording explicit sets from the block.
5875
5876 2011-03-31  Michael Matz  <matz@suse.de>
5877
5878         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5879
5880 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
5881
5882         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5883         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5884         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5885         (h8300_mode_dependent_address_p): New function.
5886         (h8300_get_index): Make static.
5887
5888 2011-03-31  Jeff Law  <law@redhat.com>
5889
5890         * reload1.c (elimination_effects): Fix typo in recent change.
5891
5892         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5893         typo potentially leading to null pointer dereference.
5894
5895         * caller-save.c (new_saved_hard_reg): Eliminate return value.
5896         (setup_save_areas): Corresponding changes to avoid useless
5897         assignments.
5898
5899         * jump.c (reversed_comparison_code_parts): Avoid successive return
5900         statements when REVERSE_CONDITION is defined.
5901
5902         * expr.c (expand_assignment): Avoid useless assignments.
5903         (expand_expr_real_1): Likewise.
5904         (expand_expr_real_2): Avoid useless statements.
5905
5906         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5907
5908         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5909
5910         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5911         statements.
5912
5913         * stmt.c (expand_expr_stmt): Avoid useless assignment.
5914
5915 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5916
5917         PR target/47109
5918         * doc/tm.texi.in (TARGET_VERSION): Remove.
5919         * doc/tm.texi: Regenerate.
5920         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5921         * collect2.c (main): Don't use TARGET_VERSION.
5922         * mips-tdump.c (main): Don't use TARGET_VERSION.
5923         * mips-tfile.c (main): Don't use TARGET_VERSION.
5924         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5925         * config/rs6000/vxworksae.h: Remove.
5926         * config/alpha/alpha.h (TARGET_VERSION): Remove.
5927         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5928         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5929         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5930         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5931         * config/arm/arm.h (TARGET_VERSION): Remove.
5932         * config/arm/coff.h (TARGET_VERSION): Remove.
5933         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5934         * config/arm/elf.h (TARGET_VERSION): Remove.
5935         * config/arm/freebsd.h (TARGET_VERSION): Remove.
5936         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5937         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5938         * config/arm/pe.h (TARGET_VERSION): Remove.
5939         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5940         * config/arm/semi.h (TARGET_VERSION): Remove.
5941         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5942         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5943         * config/arm/vxworks.h (TARGET_VERSION): Remove.
5944         * config/avr/avr.h (TARGET_VERSION): Remove.
5945         * config/bfin/bfin.h (TARGET_VERSION): Remove.
5946         * config/fr30/fr30.h (TARGET_VERSION): Remove.
5947         * config/frv/frv.h (TARGET_VERSION): Remove.
5948         * config/h8300/h8300.h (TARGET_VERSION): Remove.
5949         * config/i386/cygwin.h (TARGET_VERSION): Remove.
5950         * config/i386/darwin.h (TARGET_VERSION): Remove.
5951         * config/i386/darwin64.h (TARGET_VERSION): Remove.
5952         * config/i386/djgpp.h (TARGET_VERSION): Remove.
5953         * config/i386/freebsd.h (TARGET_VERSION): Remove.
5954         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5955         * config/i386/gnu.h (TARGET_VERSION): Remove.
5956         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5957         * config/i386/i386elf.h (TARGET_VERSION): Remove.
5958         * config/i386/linux.h (TARGET_VERSION): Remove.
5959         * config/i386/linux64.h (TARGET_VERSION): Remove.
5960         * config/i386/lynx.h (TARGET_VERSION): Remove.
5961         * config/i386/mingw32.h (TARGET_VERSION): Remove.
5962         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5963         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5964         * config/i386/netware.h (TARGET_VERSION): Remove.
5965         * config/i386/nto.h (TARGET_VERSION): Remove.
5966         * config/i386/openbsd.h (TARGET_VERSION): Remove.
5967         * config/i386/vxworks.h (TARGET_VERSION): Remove.
5968         * config/ia64/elf.h (TARGET_VERSION): Remove.
5969         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5970         * config/ia64/hpux.h (TARGET_VERSION): Remove.
5971         * config/ia64/linux.h (TARGET_VERSION): Remove.
5972         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5973         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5974         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5975         * config/lm32/lm32.h (TARGET_VERSION): Remove.
5976         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5977         * config/m32c/m32c.h (TARGET_VERSION): Remove.
5978         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5979         * config/m32r/m32r.h (TARGET_VERSION): Remove.
5980         * config/m68k/linux.h (TARGET_VERSION): Remove.
5981         * config/m68k/m68k.h (TARGET_VERSION): Remove.
5982         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5983         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5984         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5985         * config/mep/mep.h (TARGET_VERSION): Remove.
5986         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5987         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5988         * config/mips/iris6.h (MACHINE_TYPE): Remove.
5989         * config/mips/linux.h (TARGET_VERSION): Remove.
5990         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5991         * config/mips/vxworks.h (TARGET_VERSION): Remove.
5992         * config/mmix/mmix.h (TARGET_VERSION): Remove.
5993         * config/mn10300/linux.h (TARGET_VERSION): Remove.
5994         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5995         * config/pa/pa.h (TARGET_VERSION): Remove.
5996         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5997         * config/picochip/picochip.h (TARGET_VERSION): Remove.
5998         * config/rs6000/aix.h (TARGET_VERSION): Remove.
5999         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6000         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6001         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6002         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6003         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6004         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6005         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6006         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6007         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6008         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6009         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6010         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6011         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6012         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6013         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6014         * config/s390/linux.h (TARGET_VERSION): Remove.
6015         * config/s390/s390.h (TARGET_VERSION): Remove.
6016         * config/s390/tpf.h (TARGET_VERSION): Remove.
6017         * config/score/score.h (TARGET_VERSION): Remove.
6018         * config/sh/linux.h (TARGET_VERSION): Remove.
6019         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6020         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6021         * config/sh/sh.h (TARGET_VERSION): Remove.
6022         * config/sh/sh64.h (TARGET_VERSION): Remove.
6023         * config/sh/superh.h (TARGET_VERSION): Remove.
6024         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6025         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6026         * config/sparc/linux.h (TARGET_VERSION): Remove.
6027         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6028         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6029         TARGET_NAME32, TARGET_NAME): Remove.
6030         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6031         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6032         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6033         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6034         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6035         * config/spu/spu.h (TARGET_VERSION): Remove.
6036         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6037         * config/v850/v850.h (TARGET_VERSION): Remove.
6038         * config/vax/linux.h (TARGET_VERSION): Remove.
6039         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6040         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6041         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6042
6043 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6044
6045         PR target/48142
6046         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6047         frame-related from frame-unrelated adjustments to the stack pointer.
6048
6049 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6050
6051         * common.opt (fdebug-types-section): Move earlier.
6052         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6053
6054 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6055
6056         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6057         var.
6058
6059 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6060
6061         * tree.h (CASE_CHAIN): Define.
6062         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6063         (gimple_redirect_edge_and_branch): Likewise.
6064
6065 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6066
6067         PR middle-end/48367
6068         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6069         calculation.
6070
6071 2011-03-30  Jeff Law  <law@redhat.com>
6072
6073         * PR bootstrap/48371
6074         * reload1.c (reload): Fix botch in last change.
6075
6076         * reload.h (struct reload): Fix typo introduced in last change.
6077
6078 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6079
6080         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6081         Undocumented.  Remove help text.
6082         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6083         -mhard-float.
6084
6085 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6086
6087         * doc/options.texi (NegativeAlias): Document.
6088         (Alias): Mention NegativeAlias.
6089         * opt-functions.awk: Handle NegativeAlias.
6090         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6091         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6092         * opts.h (CL_NEGATIVE_ALIAS): Define.
6093         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6094         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6095         OPT_mspe_.
6096         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6097         Alias entries.
6098         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6099         mno-spe and mno-isel instead of mspe=no and -misel=no.
6100
6101 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6102
6103         * common.opt (fdebug-types-section): New flag.
6104         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6105         * dwarf2out.c (use_debug_types): New define.
6106         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6107         (print_die): Guard output of type unit signatures using
6108         use_debug_types.
6109         (build_abbrev_table): Replace assert of dwarf_version >= 4
6110         with assert on use_debug_types.
6111         (size_of_die): Likewise.
6112         (unmark_dies): Likewise.
6113         (value_format): Decide AT_ref_external form on use_debug_types.
6114         (output_die): Replace dwarf_version version check guard with
6115         use_debug_types where appropriate.
6116         (modified_type_die): Likewise.
6117         (gen_reference_type_die): Likewise.
6118         (dwarf2out_start_source_file): Likewise.
6119         (dwarf2out_end_source_file): Likewise.
6120         (prune_unused_types_walk_attribs): Likewise.
6121         (dwarf2out_finish): Likewise.
6122
6123 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6124
6125         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6126
6127 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6128
6129         PR rtl-optimization/48332
6130         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6131         mode of input operand N and modeN to its actual mode.
6132
6133 2011-03-30  Jeff Law  <law@redhat.com>
6134
6135         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6136         define accessor macro.
6137         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6138         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6139         (reg_equiv_init): Likewise.
6140         (reg_equivs_size): New variable.
6141         (reg_equiv_init_size): Remove.
6142         (allocate_initial_values): Move prototype to here from....
6143         * integrate.h (allocate_initial_values): Remove prototype.
6144         * integrate.c: Include reload.h.
6145         (allocate_initial_values): Corresponding changes.
6146         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6147         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6148         (update_equiv_regs): Corresponding changes.
6149         (ira): Corresponding changes.
6150         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6151         (push_secondary_reload): Corresponding changes.
6152         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6153         (make_memloc, find_reloads_address): Corresponding changes.
6154         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6155         (find_reloads_address_1): Corresponding changes.
6156         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6157         (refers_to_regno_for_reload_p): Corresponding changes.
6158         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6159         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6160         * reload1.c: Include ggc.h.
6161         (grow_reg_equivs): New function.
6162         (replace_pseudos_in, reload): Corresponding changes.
6163         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6164         (eliminate_regs_1, elimination_effects): Corresponding changes.
6165         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6166         (delete_output_reload): Likewise.
6167         * caller-save.c (mark_referenced_regs): Corresponding changes.
6168         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6169         * frv/predicates.md (frv_load_operand): Corresponding changes.
6170         * microblaze/microblaze.c (double_memory_operand): Corresponding
6171         changes.
6172         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6173         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6174         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6175         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6176         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6177         changes.
6178         * pa/pa.c (emit_move_sequence): Corresponding changes.
6179         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6180
6181 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6182
6183         PR target/47551
6184         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6185         structure modes.  Don't check neon_vector_mem_operand for
6186         vector or structure modes.
6187
6188 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6189             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6190
6191         PR target/43590
6192         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6193         operand 1 and reshuffle the operands to match.
6194         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6195
6196 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6197
6198         PR driver/48208
6199         * config/c.opt (F): Added 'Driver' to -F option.
6200
6201         PR driver/48260
6202         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6203           handler function.
6204         * config/darwin.opt: Added '-arch' option.
6205
6206 2011-03-30  Nick Clifton  <nickc@redhat.com>
6207
6208         * config/rx/rx.md: Add peepholes and patterns to combine
6209         extending loads and simple arithmetic instructions.
6210         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6211         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6212         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6213         modes to use pre-decrement and post-increment addressing.
6214         (rx_is_restricted_memory_address): Add range checking of REG+INT
6215         addresses.
6216         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6217         (rx_memory_move_cost): Adjust cost of stores.
6218         (rx_adjust_insn_length): New function.
6219
6220 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6221
6222         PR c/48305
6223         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6224         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6225         matching arg00/arg01 types.
6226
6227 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6228
6229         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6230         last_location to UNKNOWN_LOCATION.
6231
6232 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6233
6234         PR target/48349
6235         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6236         FLOAT_SSE_REGS.
6237
6238 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6239             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6240
6241         PR bootstrap/48337
6242         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6243         Init(PROCESSOR_V7).
6244         (sparc_cpu): Likewise.
6245         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6246         PROCESSOR_V7.
6247
6248 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6249
6250         PR target/48336
6251         PR middle-end/48342
6252         PR rtl-optimization/48345
6253         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6254         hard regs for given mode from profitable regs when doing secondary
6255         allocation.
6256
6257 2011-03-29  Jeff Law  <law@redhat.com>
6258
6259         PR bootstrap/48327
6260         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6261         do_not_duplicate field.
6262         (lookup_redirection_data): Corresponding changes.
6263         (create_duplicates): Always create a template block.
6264         (redirect_edges): Remove code which reused the original block
6265         when it was going to become unreachable code.
6266         (thread_block): Don't set do_not_duplicate field.
6267
6268 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6269
6270         * lto-opts.c (register_user_option_p, lto_register_user_option):
6271         Make type argument unsigned.
6272         * lto-streamer.h (lto_register_user_option): Make type argument
6273         unsigned.
6274         * opth-gen.awk: Make CL_* macros unsigned.
6275         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6276         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6277         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6278         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6279         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6280         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6281         (find_opt): Make lang_mask argument unsigned.
6282
6283 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6284
6285         PR rtl-optimization/48331
6286         PR rtl-optimization/48334
6287         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6288         for any used algorithm.
6289
6290 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6291
6292         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6293         to parent_max.
6294
6295 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6296
6297         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6298         (alpha_option_override): Don't set alpha_sr_alias_set.
6299         (emit_frame_store_1): Use gen_frame_mem rather than calling
6300         set_mem_alias_set.
6301         (alpha_expand_epilogue): Ditto.
6302
6303 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6304
6305         PR tree-optimization/48290
6306         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6307         vectorization, check that relevant phis in the basic block after
6308         the inner loop are really inner loop's exit phis.
6309
6310 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6311
6312         PR debug/48190
6313         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6314         (cached_dw_loc_list_def): New structure.
6315         (cached_dw_loc_list): New typedef.
6316         (cached_dw_loc_list_table): New variable.
6317         (cached_dw_loc_list_table_hash): New function.
6318         (cached_dw_loc_list_table_eq): Likewise.
6319         (add_location_or_const_value_attribute): Take a bool cache_p.
6320         Cache the list when the parameter is true.
6321         (gen_formal_parameter_die): Update caller.
6322         (gen_variable_die): Likewise.
6323         (dwarf2out_finish): Likewise.
6324         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6325         while generating debug info for the decl.
6326         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6327         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6328         (resolve_addr): Cache the result of resolving a chain of
6329         location lists.
6330
6331 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6332
6333         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6334         conflict object hard regset nodes have intersecting hard reg sets.
6335
6336         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6337         after regstat_init_n_sets_and_refs.
6338
6339         * ira.c: Add more comments at the top.
6340         (setup_stack_reg_pressure_class, setup_pressure_classes):
6341         Add comments how we compute the register pressure classes.
6342         (setup_allocno_and_important_classes): Add more comments.
6343         (setup_class_translate_array, reorder_important_classes)
6344         (setup_reg_class_relations): Add comments.
6345
6346         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6347         start of the file.
6348
6349         * ira-color.c: Add 2011 to the Copyright line.
6350         (assign_hard_reg):  Add more comments.
6351         (improve_allocation): Ditto.
6352
6353         * ira-costs.c: Add 2011 to the Copyright line.
6354         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6355         comments.
6356         (setup_regno_cost_classes_by_mode): Ditto.
6357
6358         Initial patches from ira-improv branch:
6359
6360         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6361
6362         * ira-build.c (ira_create_object): Remove initialization of
6363         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6364         (ira_create_allocno): Remove initialization of
6365         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6366         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6367         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6368         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6369         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6370         Initialize ALLOCNO_ADD_DATA.
6371         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6372         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6373         ALLOCNO_REG.
6374         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6375         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6376
6377         * ira.c (ira_reallocate): Remove.
6378         (setup_pressure_classes): Call
6379         ira_init_register_move_cost_if_necessary.  Use
6380         ira_register_move_cost instead of ira_get_register_move_cost.
6381         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6382         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6383
6384         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6385         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6386         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6387         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6388         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6389         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6390         Fix formatting.
6391         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6392         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6393         (struct allocno_color_data): New.
6394         (allocno_color_data_t): New typedef.
6395         (allocno_color_data): New definition.
6396         (ALLOCNO_COLOR_DATA): New macro.
6397         (struct object_color_data): New.
6398         (object_color_data_t): New typedef.
6399         (object_color_data): New definition.
6400         (OBJECT_COLOR_DATA): New macro.
6401         (update_copy_costs, calculate_allocno_spill_cost): Call
6402         ira_init_register_move_cost_if_necessary.  Use
6403         ira_register_move_cost instead of ira_get_register_move_cost.
6404         (move_spill_restore, update_curr_costs): Ditto.
6405         (allocno_spill_priority): Make it inline.
6406         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6407         (struct coalesce_data, coalesce_data_t): New.
6408         (allocno_coalesce_data): New definition.
6409         (ALLOCNO_COALESCE_DATA): New macro.
6410         (merge_allocnos, coalesced_allocno_conflict_p): Use
6411         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6412         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6413         (coalesce_allocnos): Ditto.
6414         (setup_coalesced_allocno_costs_and_nums): Ditto.
6415         (collect_spilled_coalesced_allocnos): Ditto.
6416         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6417         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6418         (coalesce_spill_slots): Ditto.
6419         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6420         free allocno_coalesce_data.
6421
6422         * ira-conflicts.c: Fix formatting.
6423         (process_regs_for_copy): Call
6424         ira_init_register_move_cost_if_necessary.  Use
6425         ira_register_move_cost instead of ira_get_register_move_cost.
6426         (build_object_conflicts): Optimize.
6427
6428         * ira-costs.c (record_reg_classes): Optimize.  Call
6429         ira_init_register_move_cost_if_necessary.  Use
6430         ira_register_move_cost, ira_may_move_in_cost, and
6431         ira_may_move_out_cost instead of ira_get_register_move_cost and
6432         ira_get_may_move_cost.
6433         (record_address_regs): Ditto.
6434         (scan_one_insn): Optimize.
6435         (find_costs_and_classes): Optimize.
6436         (process_bb_node_for_hard_reg_moves): Call
6437         ira_init_register_move_cost_if_necessary.  Use
6438         ira_register_move_cost instead of ira_get_register_move_cost.
6439
6440         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6441         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6442         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6443         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6444         definitions.
6445         (ira_initiate_emit_data, ira_finish_emit_data)
6446         (create_new_allocno): New functions.
6447         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6448         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6449         Use ira_register_move_cost instead of ira_get_register_move_cost.
6450
6451         * ira-int.h: Fix some comments.
6452         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6453         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6454         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6455         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6456         add_data.
6457         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6458         bitfield after mode.  Make hard_regno a short int.  Make
6459         hard_regno short.  Remove first_coalesced_allocno and
6460         next_coalesced_allocno.  Move mem_optimized_dest_p,
6461         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6462         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6463         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6464         temp, colorable_p.  Add new member add_data.
6465         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6466         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6467         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6468         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6469         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6470         (ALLOCNO_ADD_DATA): New macro.
6471         (ira_emit_data_t): New typedef.
6472         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6473         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6474         from struct ira_allocno.
6475         (ALLOCNO_EMIT_DATA): New macro.
6476         (ira_allocno_emit_data, allocno_emit_reg): New.
6477         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6478         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6479         (OBJECT_ADD_DATA): New macro.
6480         (ira_reallocate): Remove.
6481         (ira_initiate_emit_data, ira_finish_emit_data): New.
6482         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6483         (ira_init_register_move_cost_if_necessary): New.
6484         (ira_object_conflict_iter_next): Merge into
6485         ira_object_conflict_iter_cond.
6486         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6487
6488         * ira-live.c (process_single_reg_class_operands): Call
6489         ira_init_register_move_cost_if_necessary.  Use
6490         ira_register_move_cost instead of ira_get_register_move_cost.
6491
6492         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6493
6494         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6495
6496         * ira-costs.c: Fix formatting.
6497         (cost_classes, cost_classes_num): Remove.
6498         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6499         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6500         (cost_classes_del, cost_classes_htab): New.
6501         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6502         (initiate_regno_cost_classes, setup_cost_classes): New.
6503         (setup_regno_cost_classes_by_aclass): New.
6504         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6505         (record_reg_classes): Use regno_cost_classes instead of
6506         cost_classes.  Move checking opposite operand up.
6507         (record_address_regs): Use regno_cost_classes
6508         instead of cost_classes.
6509         (scan_one_insn): Ditto.  Use always general register.
6510         (print_allocno_costs): Use regno_cost_classes instead of
6511         cost_classes.
6512         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6513         (find_costs_and_classes): Set up cost classes for each registers.
6514         Use also their mode for this.  Use regno_cost_classes instead of
6515         cost_classes.
6516         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6517         cost_classes.
6518         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6519         (ira_costs, ira_set_pseudo_classes): Call
6520         initiate_regno_cost_classes and finish_regno_cost_classes.
6521
6522         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6523
6524         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6525
6526         * target.def (ira_cover_classes): Remove.
6527
6528         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6529
6530         * doc/tm.texi.in: Ditto.
6531
6532         * ira-conflicts.c: Remove mentioning cover classes from the file.
6533         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6534         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
6535
6536         * targhooks.c (default_ira_cover_classes): Remove.
6537
6538         * targhooks.h (default_ira_cover_classes): Ditto.
6539
6540         * haifa-sched.c: Remove mentioning cover classes from the file.
6541         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6542         ira_pressure_classes and ira_pressure_classes_num instead of
6543         ira_reg_class_cover_size and ira_reg_class_cover.  Use
6544         sched_regno_pressure_class instead of sched_regno_cover_class.
6545         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6546         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6547
6548         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
6549         classes from the file.
6550         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6551         (struct object_hard_regs, struct object_hard_regs_node): New.
6552         (struct ira_object): New members profitable_hard_regs,
6553         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6554         (struct ira_allocno): Rename cover_class to aclass.  Rename
6555         cover_class_cost and updated_cover_class_cost to class_cost and
6556         updated_class_cost.  Remove splay_removed_p and
6557         left_conflict_size.  Add new members colorable_p.
6558         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6559         (ALLOCNO_COLORABLE_P): New macro.
6560         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6561         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6562         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6563         (OBJECT_...): Rename parameter C to O.
6564         (OBJECT_PROFITABLE_HARD_REGS): New macro.
6565         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6566         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6567         (struct target_ira_int): New members x_ira_max_memory_move_cost,
6568         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6569         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6570         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6571         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
6572         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
6573         x_ira_reg_class_subunion.
6574         (ira_max_memory_move_cost, ira_max_register_move_cost)
6575         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6576         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6577         (ira_important_class_nums, ira_reg_class_superunion): New macros.
6578         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6579         (ira_reg_class_union): Rename to ira_reg_class_subunion.
6580         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6581         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6582         (ira_tune_allocno_costs_and_cover_classes): Rename to
6583         ira_tune_allocno_costs.
6584         (ira_debug_hard_regs_forest): New.
6585         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6586         (ira_object_conflict_iter_next): Fix comments.
6587         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6588         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6589         cover_class to aclass.
6590         (ira_allocate_and_accumulate_costs): Ditto.
6591         (ira_allocate_and_set_or_copy_costs): Ditto.
6592
6593         * opts.c (decode_options): Remove ira_cover_class check.
6594
6595         * ira-color.c: Remove mentioning cover classes from the file.  Use
6596         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6597         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6598         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6599         (splay-tree.h): Remove include.
6600         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6601         before copy_freq_compare_func.
6602         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6603         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6604         New definitions.
6605         (hard_regs_roots, hard_regs_node_vec): Ditto.
6606         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6607         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6608         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6609         (create_new_object_hard_regs_node): Ditto.
6610         (add_new_object_hard_regs_node_to_forest): Ditto.
6611         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6612         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6613         Ditto.
6614         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6615         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6616         (remove_unused_object_hard_regs_nodes): Ditto.
6617         (enumerate_object_hard_regs_nodes): Ditto.
6618         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6619         (object_hard_regs_subnode_t): Ditto.
6620         (struct object_hard_regs_subnode): Ditto.
6621         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6622         (setup_object_hard_regs_subnode_index): Ditto.
6623         (get_object_hard_regs_subnodes_num): Ditto.
6624         (form_object_hard_regs_nodes_forest): Ditto.
6625         (finish_object_hard_regs_nodes_tree): Ditto.
6626         (finish_object_hard_regs_nodes_forest): Ditto.
6627         (allocnos_have_intersected_live_ranges_p): Rename to
6628         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6629         (pseudos_have_intersected_live_ranges_p): Rename to
6630         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6631         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6632         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6633         (update_copy_costs): Remove assert.  Skip cost update if the hard
6634         reg does not belong the class.
6635         (assign_hard_reg): Process only profitable hard regs.
6636         (uncolorable_allocnos_num): Make it scalar.
6637         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6638         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6639         and ira_reg_class_max_nregs.
6640         (bucket_allocno_compare_func): Check frequency first.
6641         (sort_bucket): Add compare function as a parameter.
6642         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6643         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6644         (push_allocno_to_stack): Rewrite for checking new allocno
6645         colorability.
6646         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
6647         (push_only_colorable): Pass new parameter to sort_bucket.
6648         (push_allocno_to_spill): Remove.
6649         (allocno_spill_priority_compare): Make it inline and rewrite.
6650         (splay_tree_allocate, splay_tree_free): Remove.
6651         (allocno_spill_sort_compare): New function.
6652         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
6653         build and use splay tree.  Choose first allocno in uncolorable
6654         allocno bucket to spill.  Remove setting spill cost.
6655         (all_conflicting_hard_regs): Remove.
6656         (setup_allocno_available_regs_num): Check only profitable hard
6657         regs.  Print info about hard regs nodes.
6658         (setup_allocno_left_conflicts_size): Remove.
6659         (put_allocno_into_bucket): Don't call
6660         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
6661         (improve_allocation): New.
6662         (color_allocnos): Call setup_profitable_hard_regs,
6663         form_object_hard_regs_nodes_forest, improve_allocation,
6664         finish_object_hard_regs_nodes_forest.  Setup spill cost.
6665         (print_loop_title): Use pressure classes.
6666         (color_allocnso): Ditto.
6667         (do_coloring): Remove allocation and freeing splay_tree_node_pool
6668         and allocnos_for_spilling.
6669         (ira_sort_regnos_for_alter_reg): Don't setup members
6670         {first,next}_coalesced_allocno.
6671         (color): Remove allocating and freeing removed_splay_allocno_vec.
6672         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6673         prohibited_class_mode_regs.
6674
6675         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
6676         formatting.
6677         (update_allocno_pressure_excess_length): Use pressure classes.
6678         (inc_register_pressure, dec_register_pressure): Check for pressure
6679         class.
6680         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6681         pressure class.  Use ira_reg_class_nregs instead of
6682         ira_reg_class_max_nregs.
6683         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6684         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6685         (single_reg_class): Use ira_reg_class_nregs instead of
6686         ira_reg_class_max_nregs.
6687         (process_bb_node_lives): Use pressure classes.
6688
6689         * ira-emit.c: Remove mentioning cover classes from the file.  Use
6690         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6691         (change_loop): Use pressure classes.
6692         (modify_move_list): Call ira_set_allocno_class instead of
6693         ira_set_allocno_cover_class.
6694
6695         * ira-build.c: Remove mentioning cover classes from the file.  Use
6696         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6697         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
6698         ALLOCNO_UPDATED_CLASS_COST instead of
6699         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6700         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6701         (ira_create_allocno): Remove initialization of
6702         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
6703         ALLOCNO_COLORABLE_P.
6704         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6705         Update conflict regs for the objects.
6706         (create_cap_allocno): Remove assert.  Don't propagate
6707         ALLOCNO_AVAILABLE_REGS_NUM.
6708         (ira_free_allocno_costs): New function.
6709         (finish_allocno): Change a part of code into call of
6710         ira_free_allocno_costs.
6711         (low_pressure_loop_node_p): Use pressure classes.
6712         (object_range_compare_func): Don't compare classes.
6713         (setup_min_max_conflict_allocno_ids): Ditto.
6714
6715         * loop-invariant.c: Remove mentioning cover classes from the file.
6716         Use ira_pressure_classes and ira_pressure_classes_num instead of
6717         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
6718         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6719         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6720         Use reg_allocno_class instead of reg_cover_class.
6721         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6722         STACK_REG_COVER_CLASS.
6723         (get_regno_cover_class): Rename to get_regno_pressure_class.
6724         (move_loop_invariants): Initialize and finalize regstat.
6725
6726         * ira.c: Remove mentioning cover classes from the file.  Add
6727         comments about coloring without cover classes.  Use ALLOCNO_CLASS
6728         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6729         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6730         setup_class_subset_and_memory_move_costs.
6731         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6732         (setup_cover_and_important_classes): Rename to
6733         setup_allocno_and_important_classes.
6734         (setup_class_translate_array): New.
6735         (setup_class_translate): Call it for allocno and pressure classes.
6736         (cover_class_order): Rename to allocno_class_order.
6737         (comp_reg_classes_func): Use ira_allocno_class_translate instead
6738         of ira_class_translate.
6739         (reorder_important_classes): Set up ira_important_class_nums.
6740         (setup_reg_class_relations): Set up ira_reg_class_superunion.
6741         (print_class_cover): Rename to print_classes.  Add parameter.
6742         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6743         Print pressure classes too.
6744         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
6745         setup_reg_subclasses.
6746         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6747         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6748         (setup_prohibited_class_mode_regs): Use
6749         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6750         (clarify_prohibited_class_mode_regs): New function.
6751         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6752         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6753         (ira_init_once): Initialize them.
6754         (free_register_move_costs): Process them.
6755         (ira_init): Move calls of find_reg_classes and
6756         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6757         Call clarify_prohibited_class_mode_regs.
6758         (ira_no_alloc_reg): Remove.
6759         (too_high_register_pressure_p): Use pressure classes.
6760
6761         * sched-deps.c: Remove mentioning cover classes from the file.
6762         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6763         ira_pressure_classes and ira_pressure_classes_num instead of
6764         ira_reg_class_cover_size and ira_reg_class_cover.
6765         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6766         sched_regno_pressure_class instead of sched_regno_cover_class.
6767         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
6768         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6769
6770         * ira.h: Add 2010 to Copyright.
6771         (ira_no_alloc_reg): Remove external.
6772         (struct target_ira): Rename x_ira_hard_regno_cover_class,
6773         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6774         x_ira_class_translate to x_ira_hard_regno_allocno_class,
6775         x_ira_allocno_classes_num, x_ira_allocno_classes, and
6776         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
6777         x_ira_pressure_classes, x_ira_pressure_class_translate, and
6778         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
6779         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
6780         x_ira_no_alloc_regs.
6781         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6782         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6783         ira_allocno_classes_num and ira_allocno_classes.
6784         (ira_class_translate): Rename to ira_allocno_class_translate.
6785         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6786         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6787         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6788         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6789         (ira_no_alloc_regs): New.
6790
6791         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
6792         classes from the file.  Use ALLOCNO_CLASS instead of
6793         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
6794         ALLOCNO_COVER_CLASS_COST.
6795         (regno_cover_class): Rename to regno_aclass.
6796         (record_reg_classes): Use ira_reg_class_subunion instead of
6797         ira_reg_class_union.
6798         (record_address_regs): Check overflow.
6799         (scan_one_insn): Ditto.
6800         (print_allocno_costs): Print total mem cost fore regional allocation.
6801         (print_pseudo_costs): Use REG_N_REFS.
6802         (find_costs_and_classes): Use classes intersected with them on the
6803         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
6804         ira_reg_class_union.  Use ira_allocno_class_translate and
6805         regno_aclass instead of ira_class_translate and regno_cover_class.
6806         Modify code for finding regno_aclass.  Setup preferred classes for
6807         the next pass.
6808         (setup_allocno_cover_class_and_costs): Rename to
6809         setup_allocno_class_and_costs.  Use regno_aclass instead of
6810         regno_cover_class.  Use ira_set_allocno_class instead of
6811         ira_set_allocno_cover_class.
6812         (init_costs, finish_costs): Use regno_aclass instead of
6813         regno_cover_class.
6814         (ira_costs): Use setup_allocno_class_and_costs instead of
6815         setup_allocno_cover_class_and_costs.
6816         (ira_tune_allocno_costs_and_cover_classes): Rename to
6817         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
6818         by processing objects.  Use ira_reg_class_max_nregs instead of
6819         ira_reg_class_nregs.
6820
6821         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6822
6823         * sched-int.h: Remove mentioning cover classes from the file.
6824         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6825
6826         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
6827         classes from the file.
6828         (struct reg_pref): Rename coverclass into allocnoclass.
6829         (reg_cover_class): Rename to reg_allocno_class.
6830
6831         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6832
6833         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6834
6835         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6836
6837         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6838
6839         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6840
6841         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6842
6843         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6844
6845         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6846
6847         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6848
6849         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6850
6851         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6852         (i386_ira_cover_classes): Ditto.
6853
6854         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6855
6856         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6857
6858         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6859
6860         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6861
6862         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6863
6864         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6865
6866         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6867         (mips_ira_cover_classes): Ditto.
6868
6869         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6870
6871         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6872
6873         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6874
6875         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6876
6877         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6878
6879         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6880         (IRA_COVER_CLASSES_VSX): Ditto.
6881
6882         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6883         (rs6000_ira_cover_classes): Ditto.
6884
6885         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6886
6887         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6888
6889         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6890
6891         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6892
6893         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6894
6895         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6896
6897         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6898
6899         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6900
6901         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6902
6903         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6904
6905 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
6906
6907         PR debug/48253
6908         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6909         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6910         dw_fde_unlikely_section_end_label, cold_in_std_section,
6911         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6912         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6913         fields.
6914         (output_fde): Use dw_fde_second_{begin,end} if second is
6915         true, otherwise dw_fde_{begin,end}.
6916         (output_call_frame_info): Test dw_fde_second_begin != NULL
6917         instead of dw_fde_switched_sections.
6918         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6919         fields, initialize new fields.  Initialize in_std_section
6920         unconditionally from the first partition.
6921         (dwarf2out_end_epilogue): Don't override dw_fde_end when
6922         dw_fde_second_begin is non-NULL.
6923         (dwarf2out_switch_text_section): Stop initializing removed
6924         dw_fde_struct fields, initialize new fields, initialize
6925         also dw_fde_end here.  Set dw_fde_switch_cfi even when
6926         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
6927         (struct var_loc_list_def): Add last_before_switch field.
6928         (arange_table, arange_table_allocated, arange_table_in_use,
6929         ARANGE_TABLE_INCREMENT, add_arange): Removed.
6930         (size_of_aranges): Count !in_std_section and !second_in_std_section
6931         hunks in fdes, instead of looking at arange_table_in_use.
6932         (output_aranges): Add aranges_length argument, don't call
6933         size_of_aranges here.  Instead of using aranges_table*
6934         emit ranges for fdes when !in_std_section resp.
6935         !second_in_std_section.
6936         (dw_loc_list): Break ranges crossing section switch.
6937         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
6938         use dw_fde_second_end instead of dw_fde_end as end of last range.
6939         (gen_subprogram_die): Don't call add_arange.  Use
6940         dw_fde_{begin,end} for first partition and if switched
6941         section dw_fde_second_{begin,end} for the second.
6942         (var_location_switch_text_section_1,
6943         var_location_switch_text_section): New functions.
6944         (dwarf2out_begin_function): Initialize cold_text_section even
6945         when function_section () isn't text_section.
6946         (prune_unused_types): Don't walk arange_table.
6947         (dwarf2out_finish): Don't needlessly test
6948         flag_reorder_blocks_and_partition when testing cold_text_section_used.
6949         If info_section_emitted, call size_of_aranges and if it indicates
6950         non-empty .debug_aranges, call output_aranges with the computed
6951         size.  Stop using removed dw_fde_struct fields, use
6952         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6953         for second.
6954
6955         PR debug/48203
6956         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6957         create ENTRY_VALUE if incoming or address of incoming's MEM
6958         is a hard REG.
6959         * dwarf2out.c (mem_loc_descriptor): Don't emit
6960         DW_OP_GNU_entry_value of DW_OP_fbreg.
6961         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6962         on ENTRY_VALUE is able to find the canonical parameter VALUE.
6963         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6964         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6965         ENTRY_VALUE_EXPs.
6966         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6967         is a REG_P or MEM_P with REG_P address, compute hash directly
6968         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6969         (preserve_only_constants): Don't clear VALUES forwaring
6970         ENTRY_VALUE to some other VALUE.
6971
6972 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
6973
6974         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6975         instead of GEN_INT.
6976
6977 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
6978
6979         * cfgexpand.c (expand_gimple_cond): Always set the source location and
6980         block before expanding the statement.
6981         (expand_gimple_stmt_1): Likewise.  Set them here...
6982         (expand_gimple_stmt): ...and not here.  Tidy.
6983         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6984         unknown.
6985
6986 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
6987
6988         * Makefile.in: New rule for cprop.o.
6989         * gcse.c: Move constant/copy propagation to cprop.c.
6990         (compute_local_properties): Only handle expression tables.
6991         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6992         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6993         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6994         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6995         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6996         compute_cprop_data, find_used_regs, try_replace_reg,
6997         find_avail_set, cprop_jump, constprop_register, cprop_insn,
6998         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6999         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7000         find_bypass_set, reg_killed_on_edge, bypass_block,
7001         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7002         execute_rtl_cprop, pass_rtl_cprop): Move to...
7003         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7004         moved from gcse.c to here with minor cleanups in duplicated code.
7005
7006 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7007
7008         * config/i386/i386.c (flag_opts): Fix a typo in
7009         -mavx256-split-unaligned-store.
7010
7011 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7012
7013         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7014         LIBCALL_VALUE): Remove macros.
7015         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7016         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7017         (h8300_function_value, h8300_libcall_value,
7018         h8300_function_value_regno_p): New functions.
7019
7020 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7021
7022         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7023
7024 2011-03-28  Jeff Law  <law@redhat.com>
7025
7026         * tree-ssa-threadupdate.c (redirect_edges): Call
7027         create_edge_and_update_destination_phis as needed.
7028         (create_edge_and_update_destination_phis): Accept new BB argument.
7029         All callers updated.
7030         (thread_block): Do not update the profile when threading around
7031         intermediate blocks.
7032         (thread_single_edge): Likewise.
7033         (determine_bb_domination_status): If BB is not a successor of the
7034         loop header, return NONDOMINATING.
7035         (register_jump_thread): Note when we register a jump thread around
7036         an intermediate block.
7037         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7038         (thread_across_edge): Use it.
7039
7040 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7041
7042         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7043         when for_return is 2.
7044
7045 2011-03-28  Jeff Law  <law@redhat.com>
7046
7047         * var-tracking.c (canonicalize_values_mark): Delete unused
7048         lhs assignment.
7049         (canonicalize_values_star, set_variable_part): Likewise.
7050         (clobber_variable_part, delete_variable_part): Likewise.
7051
7052 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7053
7054         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7055
7056 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7057
7058         * tree-inline.c (expand_call_inline): Do not check that destination
7059         node is analyzed.
7060         (optimize_inline_calls): Assert that destination node is analyzed.
7061         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7062         not call tree_lowering_passes.
7063         * cgraph.h (cgraph_analyze_function): Declare.
7064         * cgraphunit.c (cgraph_analyze_function): Make public.
7065
7066 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7067
7068         * config/sparc/sparc-opts.h: New.
7069         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7070         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7071         (sparc_option_override): Store processor_type enumeration rather
7072         than string in cpu_default.  Remove name and enumeration from
7073         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7074         without using sparc_select.  Use target_flags_explicit instead of
7075         fpu_option_set.
7076         * config/sparc/sparc.h (enum processor_type): Move to
7077         sparc-opts.h.
7078         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7079         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7080         HeaderInclude entry.
7081         (mcpu=, mtune=): Use Var and Enum.
7082         (sparc_processor_type): New Enum and EnumValue entries.
7083
7084 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7085             Iain Sandoe  <iains@gcc.gnu.org>
7086
7087         PR target/48245
7088         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7089
7090 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7091
7092         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7093         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7094         Insert new statements at it in lieu of STMT.
7095         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7096         * tree-vect-stmts.c (vectorizable_store): Likewise.
7097         (vectorizable_load): Likewise.
7098
7099 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7100
7101         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7102         (divtf3): Ditto.
7103         (multf3): Ditto.
7104         (subtf3): Ditto.
7105
7106 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7107
7108         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7109         unaligned 256bit load/store.
7110         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7111         (*avx_movdqu<avxmodesuffix>): Likewise.
7112
7113 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7114
7115         PR target/48288
7116         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7117         * config/pa/pa.md (iordi3): Use new predicate in expander.
7118         (iorsi3): Likewise.
7119
7120 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7121
7122         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7123         FUNCTION_VALUE_REGNO_P): Remove macros.
7124         * config/mips/mips-protos.h (mips_function_value): Remove.
7125         * config/mips/mips.c (mips_function_value): Rename to...
7126         (mips_function_value_1): ... this. Make static.  Handle receiving
7127         the function type in 'fn_decl_or_type' argument.
7128         (mips_function_value, mips_libcall_value,
7129         mips_function_value_regno_p): New function.
7130         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7131         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7132
7133 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7134
7135         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7136         and -mavx256-split-unaligned-store.
7137         (ix86_option_override_internal): Split 32-byte AVX unaligned
7138         load/store by default.
7139         (ix86_avx256_split_vector_move_misalign): New.
7140         (ix86_expand_vector_move_misalign): Use it.
7141
7142         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7143         -mavx256-split-unaligned-store.
7144
7145         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7146         256bit load/store.  Generate unaligned store on misaligned memory
7147         operand.
7148         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7149         256bit load/store.
7150         (*avx_movdqu<avxmodesuffix>): Likewise.
7151
7152         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7153         -mavx256-split-unaligned-store.
7154
7155 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7156
7157         PR target/38598
7158         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7159         Update commentary.
7160
7161 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7162
7163         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7164         opno arguments with an expand_operand.  Use create_input_operand.
7165         (mips_prepare_builtin_target): Delete.
7166         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7167         functions.
7168         (mips_expand_builtin_direct): Use create_output_operand and
7169         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7170         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7171         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7172
7173 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7174
7175         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7176         function.
7177         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7178
7179 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7180
7181         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7182         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7183         basic blocks and call commit_edge_insertions directly.
7184         (fixup_abnormal_edges): Move from here to...
7185         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7186         on the edges and return whether some have actually been inserted.
7187         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7188         compensation code.
7189
7190 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7191
7192         PR rtl-optimization/48144
7193         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7194         (merge_expr_data): ... here.
7195         (av_set_intersect): Rename to av_set_code_motion_filter.
7196         Update all callers.  Call merge_history_vect when an expression
7197         is found in both sets.
7198         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7199
7200 2011-03-26  Alan Modra  <amodra@gmail.com>
7201
7202         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7203         cmodel medium addresses.
7204         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7205         64-bit gpr loads and stores.
7206         (rs6000_secondary_reload_ppc64): New function.
7207         * config/rs6000/rs6000-protos.h: Declare it.
7208         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7209
7210 2011-03-26  Alan Modra  <amodra@gmail.com>
7211
7212         PR target/47487
7213         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7214         GNU Go in traceback table.
7215
7216 2011-03-25  Richard Henderson  <rth@redhat.com>
7217
7218         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7219         if there are exactly 6 operands.
7220         (set_storage_via_setmem): Similarly.
7221
7222 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7223
7224         * collect2.c (write_c_file_stat): Handle backslash
7225         as right-hand directory separator.
7226         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7227         checking just for slash.
7228         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7229         instead of checking for trailing slash.
7230         * gcc.c (record_temp_file): Use filename_cmp instead
7231         of strcmp.
7232         (do_spec_1): Likewise.
7233         (replace_outfile_spec_function): Likewise.
7234         (is_directory): Use filename_ncmp instead of strncmp.
7235         (print_multilib_info): Likewise.
7236         * gcov.c (find_source): Use filename_cmp instead
7237         instead of strcmp.
7238         (make_gcov_file_name): Fix order of slash/backslash
7239         checks.
7240         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7241         (add_standard_paths): Likewise.
7242         * mips-tfile.c (saber_stop): Handle backslash.
7243         * prefix.c (update_path): Use filename_ncmp instead of
7244         strncmp.
7245         * profile.c (output_location): Use filename_cmp instead
7246         of strcmp.
7247         * read-md.c (handle_toplevel_file): Handle backslash.
7248         * tlink.c (frob_extension):  Likewise.
7249         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7250         strcmp.
7251         * tree-dump.c (dequeue_and_dump): Handle backslash.
7252         * tree.c (get_file_function_name): Likewise.
7253         * gengtype.c (read_input_list): Likewise.
7254         (get_file_realbasename): Likewise.
7255         (get_output_file_with_visibility): Use filename_cmp
7256         instead of strcmp.
7257
7258 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7259
7260         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7261         case to VFPv1.
7262
7263 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7264
7265         * fold-const.c (expr_location_or): New function.
7266         (fold_truth_not_expr): Call it.
7267
7268 2011-03-25  Jeff Law  <law@redhat.com>
7269
7270         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7271         va_end.
7272         * c-family/c-common.c (def_fn_type): Likewise.
7273         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7274         * emit-rtl.c (gen_rtvec): Likewise.
7275         * lto/lto-lang.c (def_fn_type): Likewise.
7276
7277 2011-03-25  Richard Guenther  <rguenther@suse.de>
7278
7279         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7280         also generate copies.
7281         (fini_copy_prop): Handle constant values properly.
7282
7283 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7284
7285         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7286         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7287         (hash_loc_operands, compare_loc_operands): Handle
7288         DW_OP_GNU_entry_value.
7289
7290 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7291
7292         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7293         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7294         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7295         comment and use macro TARGET_64BIT_MS_ABI instead.
7296         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7297         and change default behavior for 32-bit MS_ABI.
7298         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7299         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7300         32-bit, too.
7301         (ix86_cfun_abi): Likewise.
7302         (ix86_maybe_switch_abi): Adjust comment.
7303         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7304         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7305         instead of checking for SYSV_ABI.
7306         (ix86_nsaved_sseregs): Likewise.
7307         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7308         to 16 bytes.
7309         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7310         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7311         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7312         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7313         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7314
7315 2011-03-25  Richard Guenther  <rguenther@suse.de>
7316
7317         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7318         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7319         (verify_gimple): Remove.
7320         * tree-cfg.c (verify_gimple_call): Merge verification
7321         from verify_stmts.
7322         (verify_gimple_phi): Merge verification from verify_stmts.
7323         (verify_gimple_label): New function.
7324         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7325         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7326         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7327         (verify_stmts): Rename to verify_gimple_in_cfg.
7328         (verify_gimple_in_cfg): New function.
7329         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7330         * tree-ssa.c (verify_ssa): Likewise.
7331         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7332
7333 2011-03-25  Richard Guenther  <rguenther@suse.de>
7334
7335         * passes.c (init_optimization_passes): Add FRE pass after
7336         early SRA.
7337
7338 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7339             Andrew Stubbs  <ams@codesourcery.com>
7340
7341         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7342         for Cortex-A8.
7343         (arm_movdi_vfp_cortexa8): New pattern.
7344         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7345         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7346         instructions when tuning for Cortex-A8.  Set attribute "arch".
7347         * config/arm/arm.md: Move include arm-tune.md up a bit.
7348         (define_attr "arch"): Add "onlya8" and "nota8" values.
7349         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7350
7351 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7352
7353         PR bootstrap/48282
7354         Revert:
7355         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7356
7357         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7358         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7359         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7360         * passes.c (init_optimization_passes): Move
7361         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7362
7363 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7364
7365         * c-typeck.c (comptypes_internal): Replace target
7366         hook call of comp_type_attributes by version in tree.c file.
7367         * gimple.c (gimple_types_compatible_p_1): Likewise.
7368         * tree-ssa.c (useless_type_conversion_p): Likewise.
7369         * tree.c (build_type_attribute_qual_variant): Likewise.
7370         (attribute_value_equal): New static helper function.
7371         (comp_type_attributes): New function.
7372         (merge_attributes): Use attribute_value_equal for comparison.
7373         (attribute_list_contained): Likewise.
7374         * tree.h (comp_type_attributes): New prototype.
7375
7376 2011-03-25  Richard Guenther  <rguenther@suse.de>
7377
7378         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7379         of complex types at -O0.
7380         (verify_gimple_assign_binary): Likewise.
7381         (verify_gimple_assign_ternary): Likewise.
7382
7383 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7384
7385         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7386         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7387
7388 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7389
7390         PR debug/48041
7391         * dwarf2out.c (output_abbrev_section): Only write table when
7392         abbrev_die_table_in_use > 1.
7393
7394 2011-02-24  Richard Henderson  <rth@redhat.com>
7395
7396         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7397         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7398         (alpha_expand_unaligned_load_words): Use extql.
7399         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7400         (emit_insxl): Handle all modes for consistency.
7401
7402 2011-02-24  Richard Henderson  <rth@redhat.com>
7403
7404         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7405         (alpha_expand_unaligned_load): Likewise.
7406         (alpha_expand_unaligned_store): Likewise.
7407         (alpha_expand_unaligned_load_words): Likewise.
7408         (alpha_expand_unaligned_store_words): Likewise.
7409         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7410         (alpha_split_lock_test_and_set_12): Likewise.
7411         (print_operand, alpha_fold_builtin_extxx): Likewise.
7412         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7413         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7414         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7415         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7416         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7417         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7418         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7419         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7420         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7421         (extwl, extll, extql): Similarly.
7422         (inswh, inslh, insqh): Similarly.
7423         (mskbl, mskwl, mskll, mskql): Similarly.
7424         (mskwh, msklh, mskqh): Similarly.
7425
7426 2011-02-24  Richard Henderson  <rth@redhat.com>
7427
7428         * config/alpha/alpha.md (attribute isa): Add er, ner.
7429         (attribute enabled): Handle them.
7430         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7431
7432 2011-02-24  Richard Henderson  <rth@redhat.com>
7433
7434         * config/alpha/alpha.md (attribute isa): Add vms.
7435         (attribute enabled): Handle it.
7436         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7437         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7438         (*movtf): Rename from *movtf_internal for consistency.
7439         (*movsi): Merge with *movsi_nt_vms.
7440         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7441         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7442         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7443         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7444
7445 2011-02-24  Richard Henderson  <rth@redhat.com>
7446
7447         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7448         (extendqisi2, extendhisi2): Likewise.
7449         (extendqidi2): Simplify BWX/non-BWX expansions.
7450         (extendhidi2): Similarly.
7451
7452 2011-02-24  Richard Henderson  <rth@redhat.com>
7453
7454         * config/alpha/alpha.md (attribute isa): New.
7455         (attribute enabled): New.
7456         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7457         (zero_extendqisi2, zero_extendqidi2): Similarly.
7458         (zero_extendhisi2, zero_extendhidi2): Similarly.
7459         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7460
7461 2011-02-24  Richard Henderson  <rth@redhat.com>
7462
7463         * config/alpha/predicates.md (input_operand): Revert last change;
7464         update comment to mention 32-bit VMS rather than Windows.
7465
7466 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7467
7468         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7469         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7470         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7471         * passes.c (init_optimization_passes): Move
7472         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7473
7474 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7475
7476         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7477
7478 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7479
7480         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7481         correctly.
7482
7483 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7484
7485         PR debug/48204
7486         * simplify-rtx.c (simplify_const_unary_operation): Call
7487         real_convert when changing mode class with FLOAT_EXTEND.
7488
7489 2011-03-24  Nick Clifton  <nickc@redhat.com>
7490
7491         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7492         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7493         * config/rx/rx.c (rx_option_override): Set align_jumps,
7494         align_loops and align_labels if not set by the user.
7495         (rx_align_for_label): New function.
7496         (rx_max_skip_for_label): New function.
7497         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7498         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7499         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7500         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7501         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7502
7503 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7504
7505         PR rtl-optimization/48263
7506         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7507         and original commutative_p handling.  Use maybe_gen_insn.
7508
7509 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7510
7511         * reload.c (find_reloads_subreg_address): Add address_reloaded
7512         parameter and return true there if the full address has been
7513         reloaded.
7514         (find_reloads_toplev): Pass address_reloaded flag.
7515         (find_reloads_address_1): Don't use address_reloaded parameter.
7516
7517 2011-03-24  Jeff Law  <law@redhat.com>
7518
7519         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7520         unused variable "ann".
7521         (remove_unused_locals): Likewise.
7522
7523         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7524         statement.
7525
7526         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7527         after it is freed.
7528
7529 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7530
7531         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7532         for invalid symbolic addresses.
7533         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7534         larl operands.
7535
7536 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7537
7538         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7539         the argument in calls to fold_truth_not_expr.
7540
7541 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7542
7543         * tree.c (record_node_allocation_statistics): New function.
7544         (make_node_stat, copy_node_stat, build_string): Call it.
7545         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7546         (build1_stat, build_omp_clause): Likewise.
7547
7548 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7549
7550         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7551         last commit.
7552
7553 2011-03-24  Richard Guenther  <rguenther@suse.de>
7554
7555         PR tree-optimization/48271
7556         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7557         blocks that still exist.
7558
7559 2011-03-24  Richard Guenther  <rguenther@suse.de>
7560
7561         PR tree-optimization/48270
7562         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7563         not free datarefs before ddrs.
7564
7565 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7566
7567         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7568         from the address built for a reference with variable offset.
7569
7570 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7571
7572         PR target/48237
7573         * config/i386/i386.md (*movdf_internal_rex64): Do not split
7574         alternatives that can be handled with movq or movabsq insn.
7575         (*movdf_internal): Disable for !TARGET_64BIT.
7576         (*movdf_internal_nointeger): Ditto.
7577         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7578
7579 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7580
7581         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7582         (FUNCTION_ARG_ADVANCE): Likewise.
7583         * tm.texi.in: Change references to them to hook references.
7584         * tm.texi: Regenerate.
7585         * targhooks.c (default_function_arg): Eliminate check for target macro.
7586         (default_function_incoming_arg): Likewise.
7587         (default_function_arg_advance): Likewise.
7588         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7589         (function_arg_advance): Likewise.
7590         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7591
7592 2011-03-24  Richard Guenther  <rguenther@suse.de>
7593
7594         PR middle-end/48269
7595         * tree-object-size.c (addr_object_size): Do not double-account
7596         for MEM_REF offsets.
7597
7598 2011-03-24  Diego Novillo  <dnovillo@google.com>
7599
7600         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7601         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7602         (lto_input_data_block): Move from lto-opts.c.  Make extern.
7603         Update all users.
7604         (lto_input_string): Rename from input_string.  Make extern.
7605         Update all users.
7606         * lto-streamer-out.c (lto_output_string_with_length): Rename from
7607         output_string_with_length.
7608         Output 0 to indicate a non-NULL string.  Update all callers to
7609         not emit 0.
7610         (lto_output_string): Rename from output_string.  Make extern.
7611         Update all users.
7612         (lto_output_decl_state_streams): Make extern.
7613         (lto_output_decl_state_refs): Make extern.
7614         * lto-streamer.h (lto_input_string): Declare.
7615         (lto_input_data_block): Declare.
7616         (lto_output_string): Declare.
7617         (lto_output_string_with_length): Declare.
7618         (lto_output_decl_state_streams): Declare.
7619         (lto_output_decl_state_refs): Declare.
7620
7621 2011-03-24  Richard Guenther  <rguenther@suse.de>
7622
7623         PR tree-optimization/46562
7624         * tree.c (build_invariant_address): New function.
7625         * tree.h (build_invariant_address): Declare.
7626         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7627         a renamed function moved ...
7628         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7629         Take valueization callback parameter.
7630         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7631         * gimple-fold.h: New file.
7632         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7633         (ccp_fold, fold_const_aggregate_ref,
7634         fold_ctor_reference, fold_nonarray_ctor_reference,
7635         fold_array_ctor_reference, fold_string_cst_ctor_reference,
7636         get_base_constructor): Move ...
7637         * gimple-fold.c: ... here.
7638         (gimple_fold_stmt_to_constant_1): New function
7639         split out from ccp_fold.  Take a valueization callback parameter.
7640         Valueize all operands.
7641         (gimple_fold_stmt_to_constant): New wrapper function.
7642         (fold_const_aggregate_ref_1): New function split out from
7643         fold_const_aggregate_ref.  Take a valueization callback parameter.
7644         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7645         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7646         invariant POINTER_PLUS_EXPRs to invariant form.
7647         (vn_valueize): New function.
7648         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7649         * tree-vrp.c (vrp_valueize): New function.
7650         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7651         to fold statements to constants.
7652         * tree-ssa-pre.c (eliminate): Properly guard propagation of
7653         function declarations.
7654         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7655         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7656
7657 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7658
7659         * config/h8300/predicates.md (jump_address_operand): Fix register
7660         mode check.
7661
7662 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
7663
7664         * doc/invoke.texi (max-stores-to-sink): Document.
7665         * params.h (MAX_STORES_TO_SINK): Define.
7666         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7667         if either vectorization or if-conversion is disabled.
7668         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7669         tree-vect-data-refs.c vect_equal_offsets.
7670         (dr_equal_offsets_p): New function.
7671         (find_data_references_in_bb): Remove static.
7672         * tree-data-ref.h (find_data_references_in_bb): Declare.
7673         (dr_equal_offsets_p): Likewise.
7674         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7675         (vect_drs_dependent_in_basic_block): Update calls to
7676         vect_equal_offsets.
7677         (vect_check_interleaving): Likewise.
7678         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7679         (cond_if_else_store_replacement): Rename to...
7680         (cond_if_else_store_replacement_1): ... this.  Change arguments and
7681         documentation.
7682         (cond_if_else_store_replacement): New function.
7683         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7684         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7685
7686 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
7687
7688         PR target/46934
7689         * config/arm/arm.md (casesi): Use the gen_int_mode() function
7690         to subtract lower bound instead of GEN_INT().
7691
7692 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
7693
7694         PR other/48179
7695         PR other/48221
7696         PR other/48234
7697         * doc/extend.texi (Alignment): Move section to match order in TOC.
7698         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7699         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7700
7701 2011-03-23  Jeff Law  <law@redhat.com>
7702
7703         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7704         before removing the edge.
7705
7706         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7707         it may have been freed by redirect_branch_edge or
7708         redirect_edge_succ_nodup.
7709
7710 2011-03-23  Richard Guenther  <rguenther@suse.de>
7711
7712         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7713         (check_va_list_escapes): Likewise.
7714         (check_all_va_list_escapes): Likewise.
7715
7716 2011-03-23  Richard Guenther  <rguenther@suse.de>
7717
7718         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7719         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7720         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7721         (alias.o): Likewise.
7722         (ipa-type-escape.o): Remove.
7723         (ipa-struct-reorg.o): Likewise.
7724         (GTFILES): Remove ipa-struct-reorg.c.
7725         * alias.c: Do not include ipa-type-escape.h.
7726         * tree-ssa-alias.c: Likewise.
7727         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7728         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7729         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7730         and ipa-type-escape passes.
7731         * tree-pass.h (pass_ipa_type_escape): Remove.
7732         (pass_ipa_struct_reorg): Likewise.
7733         * ipa-struct-reorg.h: Remove.
7734         * ipa-struct-reorg.c: Likewise.
7735         * ipa-type-escape.h: Likewise.
7736         * ipa-type-escape.c: Likewise.
7737         * doc/invoke.texi (-fipa-struct-reorg): Remove.
7738         (--param struct-reorg-cold-struct-ratio): Likewise.
7739         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7740         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7741         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7742
7743 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7744
7745         * config/s390/2084.md: Enable all insn reservations also for z9_ec
7746         cpu attribute value.
7747         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7748         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7749         * config/s390/s390.c (processor_flags_table): New constant array.
7750         (s390_handle_arch_option): Remove.
7751         (s390_handle_option): Remove s390_handle_arch_option invocations
7752         and OPT_mwarn_framesize_ handling.
7753         (s390_option_override): Remove s390_handle_arch_option invocation.
7754         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7755         warnings.
7756         * config/s390/s390.md (cpu attribute): Add z9_ec value.
7757         * config/s390/s390.opt (s390_tune, s390_arch)
7758         (march=): Replace s390_arch_option enum and values with
7759         processor_type.  Set variable name to s390_arch.  Set
7760         initialization value.
7761         (mtune=): Replace s390_arch_option with processor_type.  Set
7762         variable name to s390_tune.  Set initialization value.
7763
7764 2011-03-23  Julian Brown  <julian@codesourcery.com>
7765
7766         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7767         accesses which are not naturally aligned.
7768
7769 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7770
7771         PR target/47553
7772         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7773
7774 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7775
7776         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7777         parameter from "int" to "enum insn_code".
7778         (expand_operand_type): New enum.
7779         (expand_operand): New structure.
7780         (create_expand_operand): New function.
7781         (create_fixed_operand, create_output_operand): Likewise
7782         (create_input_operand, create_convert_operand_to): Likewise.
7783         (create_convert_operand_from, create_address_operand): Likewise.
7784         (create_integer_operand): Likewise.
7785         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7786         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7787         (expand_insn, expand_jump_insn): Likewise.
7788         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7789         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7790         (expand_movstr, expand_builtin___clear_cache): Likewise.
7791         (expand_builtin_lock_release): Likewise.
7792         * explow.c (allocate_dynamic_stack_space): Likewise.
7793         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
7794         and use the default handling in that case.
7795         * expmed.c (check_predicate_volatile_ok): Delete.
7796         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7797         (emit_cstore): Likewise.
7798         * expr.c (emit_block_move_via_movmem): Likewise.
7799         (set_storage_via_setmem, expand_assignment): Likewise.
7800         (emit_storent_insn, try_casesi): Likewise.
7801         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
7802         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7803         (expand_vec_shift_expr, expand_binop_directly): Likewise.
7804         (expand_twoval_unop, expand_twoval_binop): Likewise.
7805         (expand_unop_direct, emit_indirect_jump): Likewise.
7806         (emit_conditional_move, vector_compare_rtx): Likewise.
7807         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7808         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7809         (expand_sync_lock_test_and_set): Likewise.
7810         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
7811         (emit_unop_insn): Likewise.
7812         (expand_copysign_absneg): Change icode to an insn_code.
7813         (create_convert_operand_from_type): New function.
7814         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7815         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7816         (expand_insn, expand_jump_insn): Likewise.
7817         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7818         than const_int_operand for operand 2.
7819
7820 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7821
7822         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7823         if possible.
7824
7825 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7826
7827         * emit-rtl.c (emit_pattern_before_noloc): New function.
7828         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7829         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7830         (emit_pattern_after_noloc): New function.
7831         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7832         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7833
7834 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7835
7836         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7837         (__ffsDI2): Likewise.
7838
7839 2011-03-22  Richard Henderson  <rth@redhat.com>
7840
7841         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7842         of !TARGET_ABI_OPEN_VMS.
7843         (alpha_trampoline_init, alpha_start_function): Likewise.
7844         (alpha_expand_epilogue, alpha_file_start): Likewise.
7845         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7846         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7847         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7848         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7849         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7850
7851 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7852
7853         * config/s390/s390-opts.h: New.
7854         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7855         s390_arch_flags, s390_warn_framesize, s390_stack_size,
7856         s390_stack_guard): Remove.
7857         (s390_handle_arch_option): Return void.  Take enum
7858         s390_arch_option value instead of string and searching array.
7859         (s390_handle_option): Don't assert that global structures are in
7860         use.  Access variables via opts pointer.  Use error_at.  Don't use
7861         sscanf for -mstack-guard= or -mstack-size=.  Update call to
7862         s390_handle_arch_option.
7863         (s390_option_override): Update call to s390_handle_arch_option.
7864         (s390_emit_prologue): Use %d format for s390_stack_size in
7865         diagnostic.  Use %wd for HOST_WIDE_INT.
7866         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7867         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7868         * config/s390/s390.opt (config/s390/s390-opts.h): New
7869         HeaderInclude entry.
7870         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7871         s390_arch_flags, s390_warn_framesize): New Variable entries.
7872         (s390_arch_option): New Enum and EnumValue entries.
7873         (march=): Use Enum instead of Var.
7874         (mstack-guard=, mstack-size=): Use UInteger and Var.
7875         (mtune=): Use Enum.
7876
7877 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7878
7879         * config/score/score.c (score_handle_option): Don't assert that
7880         global structures are in use.  Access target_flags via opts
7881         pointer.  Use value of -march= option to determine target_flags
7882         settings.
7883         * config/score/score.opt (march=): Use Enum.
7884         (score_arch): New Enum and EnumValue entries.
7885
7886 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7887
7888         * config/mep/mep.c (option_mtiny_specified): Remove.
7889         (mep_option_override): Move register handling for -mivc2 from
7890         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
7891         instead of option_mtiny_specified.
7892         (mep_handle_option): Access target_flags via opts pointer.  Don't
7893         assert that global structures are in use.  Defer part of -mivc2
7894         handling and move it to mep_option_override.
7895         * config/mep/mep.opt (IVC2): New Mask entry.
7896         (mivc2): Use Var and Defer instead of Mask.
7897
7898 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7899
7900         * config/v850/v850-opts.h: New.
7901         * config/v850/v850.c (small_memory): Replace with
7902         small_memory_physical_max array.  Make that array static const.
7903         (v850_handle_memory_option): Take integer value of argument.  Take
7904         gcc_options pointer, option text and location.  Return void.
7905         Update for changes to small memory structures.
7906         (v850_handle_option): Access target_flags via opts pointer.  Don't
7907         assert that global structures are in use.  Update calls to
7908         v850_handle_memory_option.
7909         (v850_encode_data_area): Update references to small memory settings.
7910         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7911         (enum small_memory_type): Move to v850-opts.h.
7912         * config/v850/v850.opt (config/v850/v850-opts.h): New
7913         HeaderInclude entry.
7914         (small_memory_max): New Variable entry.
7915         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
7916         (mtda, mzda): Likewise.
7917
7918 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7919
7920         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7921         pointer.  Don't assert that global structures are in use.
7922
7923 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7924
7925         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7926         via opts pointer.  Don't assert that global structures are in use.
7927
7928 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7929
7930         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7931         (munix=93): Use Var.
7932         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7933         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7934         * config/pa/pa-opts.h: New.
7935         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7936         (pa_handle_option): Don't assert that global structures are in
7937         use.  Access target_flags via opts pointer.  Don't handle
7938         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7939         OPT_munix_98 here.
7940         (pa_option_override): Handle deferred OPT_mfixed_range_.
7941
7942 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7943
7944         * config/mn10300/mn10300-opts.h: New.
7945         * config/mn10300/mn10300.c (mn10300_processor,
7946         mn10300_tune_string): Remove.
7947         (mn10300_handle_option): Don't assert that global structures are
7948         in use.  Access mn10300_processor via opts pointer.  Don't handle
7949         OPT_mtune_ here.
7950         * config/mn10300/mn10300.h (enum processor_type): Move to
7951         mn10300-opts.h.
7952         (mn10300_processor): Remove.
7953         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7954         HeaderInclude entry.
7955         (mn10300_processor): New Variable entry.
7956         (mtune=): Use Var.
7957
7958 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7959
7960         * config/microblaze/microblaze.c: Don't include opts.h.
7961         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7962         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7963         (mno-clearbss): Use Var and Warn.
7964
7965 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7966
7967         * config/m32r/m32r-opts.h: New.
7968         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7969         (m32r_handle_option): Don't assert that global structures are in
7970         use.  Access target_flags and m32r_cache_flush_func via opts
7971         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
7972         OPT_mno_flush_trap here.
7973         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7974         include of m32r-opts.h.
7975         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7976         HeaderInclude entry.
7977         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7978         (mmodel=): Use Enum and Var.
7979         (m32r_model): New Enum and EnumValue entries.
7980         (mno-flush-trap): Use Var.
7981         (msdata=): Use Enum and Var.
7982         (m32r_sdata): New Enum and EnumValue entries.
7983
7984 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7985
7986         * config/m32c/m32c.c: Don't include opts.h.
7987         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7988         m32c_handle_option): Remove.
7989         (m32c_option_override): Check global_options_set.x_target_memregs
7990         instead of target_memregs_set.
7991         * config/m32c/m32c.h (target_memregs): Remove.
7992         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7993         variable.
7994
7995 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7996
7997         * config/iq2000/iq2000-opts.h: New.
7998         * config/iq2000/iq2000.c: Don't include opts.h.
7999         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8000         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8001         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8002         HeaderInclude entry.
8003         (iq2000_tune): New Variable entry.
8004         (march=): Add comment.  Use Enum.
8005         (iq2000_arch): New Enum and EnumValue entries.
8006         (mcpu=): Use Enum and Var.
8007         (iq2000_tune): New Enum and EnumValue entries.
8008
8009 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8010
8011         * config/ia64/ia64-opts.h: New.
8012         * config/ia64/ia64.c (ia64_tune): Remove.
8013         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8014         here.  Use error_at.
8015         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8016         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8017         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8018         HeaderInclude entry.
8019         (ia64_tune): New Variable entry.
8020         (mfixed-range=): Use Defer and Var.
8021         (mtune=): Use Enum and Var.
8022         (ia64_tune): New Enum and EnumValue entries.
8023
8024 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8025
8026         * config/frv/frv-opts.h: New.
8027         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8028         frv-opts.h.
8029         (frv_cpu_type): Remove.
8030         * config/frv/frv.c: Don't include opts.h.
8031         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8032         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8033         (frv_cpu_type): New Variable entry.
8034         (frv_cpu): New Enum and EnumValue entries.
8035
8036 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8037
8038         * config/cris/cris.c (cris_handle_option): Access target_flags via
8039         opts pointer.  Don't assert that global structures are in use.
8040         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8041         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8042
8043 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8044
8045         * config/bfin/bfin-opts.h: New.
8046         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8047         bfin_si_revision, bfin_workarounds): Remove.
8048         (bfin_cpus): Make static const.
8049         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8050         not bfin_lib_id_given.
8051         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8052         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8053         pointer. Use error_at.  Don't assert that global structures are in use.
8054         * config/bfin/bfin.h: Include bfin-opts.h.
8055         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8056         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8057         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8058         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8059         entries.
8060
8061 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8062
8063         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8064         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8065         or -msoft-float here.
8066         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8067         -msoft-float and -mhard-float.
8068         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8069         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8070         msoft-float.
8071         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8072         -msoft-float.
8073         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8074         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8075         not mhard-float.
8076         (LIBGCC_SPEC): Don't handle -msoft-float.
8077         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8078         -mhard-float.
8079         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8080         msoft-float.
8081         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8082         -mfloat-abi=*, not -msoft-float and -mhard-float.
8083         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8084         -msoft-float.
8085         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8086         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8087         mhard-float and msoft-float.
8088         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8089         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8090         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8091         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8092         mhard-float.
8093         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8094         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8095         msoft-float.
8096         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8097         not mhard-float.
8098         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8099         not msoft-float.
8100
8101 2011-03-22  Richard Henderson  <rth@redhat.com>
8102
8103         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8104         TARGET_ABI_WINDOWS_NT.
8105         (alpha_output_function_end_prologue): Likewise.
8106         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8107         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8108         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8109         (trap, *movsi_nt_vms): Likewise.
8110         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8111         (*tablejump_osf_nt_internal): Remove.
8112         * config/alpha/predicates.md (input_operand): Only test Pmode.
8113
8114 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8115
8116         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8117         via opts pointer.  Use error_at.  Don't assert that global
8118         structures are in use.
8119
8120 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8121
8122         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8123         (ix86_handle_option): Access ix86_isa_flags and
8124         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8125         global structures are in use.
8126         (ix86_function_specific_save, ix86_function_specific_restore):
8127         Update ix86_isa_flags_explicit field name.
8128         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8129         (ix86_isa_flags_explicit): Rename TargetSave entry to
8130         x_ix86_isa_flags_explicit.
8131
8132 2011-03-22  Richard Henderson  <rth@redhat.com>
8133
8134         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8135         (alpha_option_override, direct_return): Likewise.
8136         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8137         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8138         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8139         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8140         (alpha_expand_epilogue, alpha_end_function): Likewise.
8141         (alpha_init_libfuncs): Likewise.
8142         (struct machine_function): Remove unicosmk members.
8143         (print_operand) ['t']: Remove.
8144         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8145         unicosmk_output_module_name, unicosmk_output_common,
8146         current_section_align, unicosmk_output_text_section_asm_op,
8147         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8148         unicosmk_section_type_flags, unicosmk_unique_section,
8149         unicosmk_asm_named_section, unicosmk_insert_attributes,
8150         unicosmk_output_align, unicosmk_defer_case_vector,
8151         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8152         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8153         unicosmk_output_ssib, unicosmk_add_call_info_word,
8154         unicosmk_extern_head, unicosmk_output_default_externs,
8155         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8156         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8157         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8158         * config/alpha/alpha-protos.h: Update.
8159         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8160         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8161         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8162         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8163         (*mulsi_se, mulvsi3): Likewise.
8164         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8165         (*divmodsi_internal, call, call_value, realign): Likewise.
8166         (moddi3, umoddi3): Likewise; remove duplicate expander.
8167         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8168         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8169         (*movdi_nofix): Remove r/U alternative.
8170         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8171         * config/alpha/constraints.md ("U"): Remove.
8172         * config/alpha/predicates.md (call_operand"): Don't test
8173         TARGET_ABI_UNICOSMK.
8174
8175 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8176
8177         * target.def (handle_option): Take gcc_options and
8178         cl_decoded_option pointers and location_t.
8179         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8180         * doc/tm.texi: Regenerate.
8181         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8182         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8183         * lto-opts.c (lto_reissue_options): Generate option structure for
8184         targetm.handle_option call.
8185         * opts.c (target_handle_option): Update call to
8186         targetm.handle_option.  Remove assertions about values now passed
8187         down to hook.
8188         * targhooks.c (default_target_handle_option): New.
8189         * targhooks.h (default_target_handle_option): Declare.
8190         * config/alpha/alpha.c: Include opts.h.
8191         (alpha_handle_option): Update to new hook interface.
8192         * config/arm/arm.c: Include opts.h.
8193         (arm_handle_option): Update to new hook interface.
8194         * config/arm/t-arm (arm.o): Update dependencies.
8195         * config/bfin/bfin.c: Include opts.h.
8196         (bfin_handle_option): Update to new hook interface.
8197         * config/cris/cris.c: Include opts.h.
8198         (cris_handle_option): Update to new hook interface.
8199         * config/frv/frv.c: Include opts.h.
8200         (frv_handle_option): Update to new hook interface.
8201         * config/i386/i386.c: Include opts.h.
8202         (ix86_handle_option): Update to new hook interface.
8203         (ix86_valid_target_attribute_inner_p): Generate option structure
8204         for call to ix86_handle_option.
8205         * config/i386/t-i386 (i386.o): Update dependencies.
8206         * config/ia64/ia64.c: Include opts.h.
8207         (ia64_handle_option): Update to new hook interface.
8208         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8209         * config/iq2000/iq2000.c: Include opts.h.
8210         (iq2000_handle_option): Update to new hook interface.
8211         * config/m32c/m32c.c: Include opts.h.
8212         (m32c_handle_option): Update to new hook interface.
8213         * config/m32r/m32r.c: Include opts.h.
8214         (m32r_handle_option): Update to new hook interface.
8215         * config/m68k/m68k.c: Include opts.h.
8216         (m68k_handle_option): Update to new hook interface.
8217         * config/mep/mep.c: Include opts.h.
8218         (mep_handle_option): Update to new hook interface.
8219         * config/microblaze/microblaze.c: Include opts.h.
8220         (microblaze_handle_option): Update to new hook interface.
8221         * config/mips/mips.c: Include opts.h.
8222         (mips_handle_option): Update to new hook interface.
8223         * config/mn10300/mn10300.c: Include opts.h.
8224         (mn10300_handle_option): Update to new hook interface.
8225         * config/pa/pa.c: Include opts.h.
8226         (pa_handle_option): Update to new hook interface.
8227         * config/pdp11/pdp11.c: Include opts.h.
8228         (pdp11_handle_option): Update to new hook interface.
8229         * config/rs6000/rs6000.c: Include opts.h.
8230         (rs6000_handle_option): Update to new hook interface.
8231         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8232         * config/rx/rx.c: Include opts.h.
8233         (rx_handle_option): Update to new hook interface.
8234         * config/s390/s390.c: Include opts.h.
8235         (s390_handle_option): Update to new hook interface.
8236         * config/score/score.c: Include opts.h.
8237         (score_handle_option): Update to new hook interface.
8238         * config/sh/sh.c: Include opts.h.
8239         (sh_handle_option): Update to new hook interface.
8240         * config/sparc/sparc.c: Include opts.h.
8241         (sparc_handle_option): Update to new hook interface.
8242         * config/v850/v850.c: Include opts.h.
8243         (v850_handle_option): Update to new hook interface.
8244
8245 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8246
8247         * gcc.c (driver_unknown_option_callback): Only permit and save
8248         unknown -Wno- options.
8249         (driver_wrong_lang_callback): Save options directly instead of via
8250         driver_unknown_option_callback.
8251
8252 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8253
8254         * combine.c (simplify_set): Try harder to find the best CC mode when
8255         simplifying a nested COMPARE on the RHS.
8256
8257 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8258
8259         * config/alpha/gnu.h: Remove.
8260         * config/arc: Remove directory.
8261         * config/arm/netbsd.h: Remove.
8262         * config/arm/t-pe: Remove.
8263         * config/crx: Remove directory.
8264         * config/i386/netbsd.h: Remove.
8265         * config/m68hc11: Remove directory.
8266         * config/m68k/uclinux-oldabi.h: Remove.
8267         * config/mcore/mcore-pe.h: Remove.
8268         * config/mcore/t-mcore-pe: Remove.
8269         * config/netbsd-aout.h: Remove.
8270         * config/rs6000/gnu.h: Remove.
8271         * config/sh/sh-symbian.h: Remove.
8272         * config/sh/symbian-base.c: Remove.
8273         * config/sh/symbian-c.c: Remove.
8274         * config/sh/symbian-cxx.c: Remove.
8275         * config/sh/symbian-post.h: Remove.
8276         * config/sh/symbian-pre.h: Remove.
8277         * config/sh/t-symbian: Remove.
8278         * config/svr3.h: Remove.
8279         * config/vax/netbsd.h: Remove.
8280         * config.build: Don't handle i[34567]86-*-pe.
8281         * config.gcc: Remove handling of deprecations for most deprecated
8282         targets.
8283         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8284         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8285         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8286         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8287         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8288         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8289         Remove cases.
8290         * config.host: Don't handle i[34567]86-*-pe.
8291         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8292         (ASM_SPEC32): Don't handle -mcall-gnu.
8293         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8294         -mcall-gnu.
8295         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8296         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8297         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8298         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8299         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8300         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8301         conditional on SYMBIAN.
8302         * configure.ac: Don't handle powerpc*-*-gnu*.
8303         * configure: Regenerate.
8304         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8305         * doc/install-old.texi (m6811, m6812): Don't mention.
8306         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8307         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8308         (m68k-uclinuxoldabi): Don't mention.
8309         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8310         Remove.
8311         (-mcall-gnu): Remove.
8312         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8313         families): Remove constraint documentation.
8314
8315 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8316
8317         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8318         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8319         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8320
8321 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8322
8323         PR target/48226
8324         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8325         vector when peeking at the next token for vector, don't expand the
8326         keywords.
8327
8328 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8329
8330         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8331         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8332         * config/avr/avr.c (init_cumulative_args)
8333         (avr_function_arg_advance): Use it.
8334         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8335         sibcall epilogues.
8336         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8337         (avr_function_ok_for_sibcall): ...this new function.
8338         (avr_lookup_function_attribute1): New static Function.
8339         (avr_naked_function_p, interrupt_function_p)
8340         (signal_function_p, avr_OS_task_function_p)
8341         (avr_OS_main_function_p): Use it.
8342         * config/avr/avr.md ("sibcall", "sibcall_value")
8343         ("sibcall_epilogue"): New expander.
8344         ("*call_insn", "*call_value_insn"): New insn.
8345         ("call_insn", "call_value_insn"): Remove
8346         ("call", "call_value", "epilogue"): Change expander to handle
8347         sibling calls.
8348
8349 2011-03-21  Nick Clifton  <nickc@redhat.com>
8350
8351         * doc/invoke.texi (Overall Options): Move closing brace to end of
8352         options list.
8353         (Optimization Options): Add missing @gol.
8354         (Directory Options): Likewise.
8355         (i386 and x86-64 Options): Likewise.
8356         (RS6000 and PowerPC Options): Likewise.
8357         (i386 and x86-64 Windows Options): Likewise.
8358         (V850 Options): Add text missing from descriptions.
8359
8360 2011-03-22  Richard Henderson  <rth@redhat.com>
8361
8362         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8363         (avr_incoming_return_addr_rtx): New.
8364         (emit_push_byte): New.
8365         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8366         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8367         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8368         (emit_pop_byte): New.
8369         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8370         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8371         (INCOMING_RETURN_ADDR_RTX): New.
8372         (INCOMING_FRAME_SP_OFFSET): New.
8373         (ARG_POINTER_CFA_OFFSET): New.
8374         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8375         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8376         (pophi): Remove.
8377
8378         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8379
8380 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8381
8382         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8383         (FUNCTION_ARG_ADVANCE): Likewise.
8384         * tm.texi.in: Change references to them to hook references.
8385         * tm.texi: Regenerate.
8386         * targhooks.c (default_function_arg): Eliminate check for target
8387         macro.
8388         (default_function_incoming_arg): Likewise.
8389         (default_function_arg_advance): Likewise.
8390         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8391         (function_arg_advance): Likewise.
8392         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8393
8394 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8395
8396         * tree.c (build_call_1): New function.
8397         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8398
8399 2011-03-22  Richard Guenther  <rguenther@suse.de>
8400
8401         PR tree-optimization/48228
8402         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8403         for single-arg PHIs.
8404
8405 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8406
8407         PR rtl-optimization/48143
8408         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8409         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8410         sse2_cvtps2pd): Likewise.
8411
8412 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8413
8414         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8415
8416 2011-03-22  Richard Guenther  <rguenther@suse.de>
8417
8418         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8419         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8420         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8421         and REALIGN_LOAD_EXPR.
8422         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8423         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8424         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8425         DOT_PROD_EXPR case ...
8426         (expand_expr_real_2): ... here.
8427         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8428         and REALIGN_LOAD_EXPR.
8429         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8430         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8431         (vect_create_epilog_for_reduction): Likewise.
8432         (vectorizable_reduction): Likewise.
8433         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8434         * tree-vect-stmts.c (vectorizable_load): Likewise.
8435
8436 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8437
8438         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8439
8440 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8441
8442         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8443         handling for PLTOFF/GOTOFF.
8444
8445 2011-03-22  Nick Clifton  <nickc@redhat.com>
8446
8447         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8448         trailing backslash from the end of the macro definition.
8449
8450 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8451
8452         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8453         and PLT unspecs.
8454
8455 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8456
8457         * expr.h (prepare_operand): Move to...
8458         * optabs.h (prepare_operand): ...here and change the insn code
8459         parameter from "int" to "enum insn_code".
8460         (insn_operand_matches): Declare.
8461         * expr.c (init_expr_target): Use insn_operand_matches.
8462         (compress_float_constant): Likewise.
8463         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8464         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8465         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8466         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8467         Likewise.
8468         (gen_cond_trap): Likewise.
8469         (prepare_operand): Likewise.  Change icode to an insn_code.
8470         (insn_operand_matches): New function.
8471         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8472         * reload1.c (gen_reload): Likewise.
8473         * targhooks.c (default_secondary_reload): Likewise.
8474
8475 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8476
8477         * config/alpha/alpha.md (unspec): New define_c_enum.
8478         (unspecv): Ditto.
8479
8480 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8481
8482         PR debug/48214
8483         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8484         between a call and its CALL_ARG_LOCATION note.
8485
8486 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8487
8488         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8489
8490 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8491
8492         PR c/42544
8493         PR c/48197
8494         * c-common.c (shorten_compare): If primopN is first sign-extended
8495         to opN and then zero-extended to result type, set primopN to opN.
8496
8497 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8498
8499         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8500         for barrier handlers.
8501
8502 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8503
8504         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8505         UNSPEC constants to be in the unspec enumeration, and redefine
8506         all UNSPECV constants to be in the unspecv enumeration, so that
8507         dumps print which unspec/unspec_volatile this is.
8508         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8509         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8510         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8511         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8512         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8513
8514         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8515         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8516         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8517         * config/rs6000/sync.md (isync, lwsync): Ditto.
8518
8519 2011-03-21  Richard Guenther  <rguenther@suse.de>
8520
8521         * params.def (lto-min-partition): Fix typo.
8522
8523 2011-03-21  Richard Guenther  <rguenther@suse.de>
8524
8525         PR c/47939
8526         * c-decl.c (grokdeclarator): Drop to the main variant only
8527         for array types.  Drop flag_gen_aux_info check.
8528
8529 2011-03-21  Richard Guenther  <rguenther@suse.de>
8530
8531         PR translation/47911
8532         * params.def (lto-partitions): Fix typo.
8533         (lto-min-partition): Fix wording.
8534
8535 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
8536
8537         * config/rs6000/t-freebsd: Remove duplication from file.
8538
8539 2011-03-21  Richard Guenther  <rguenther@suse.de>
8540
8541         PR middle-end/47661
8542         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8543
8544 2011-03-21  Richard Guenther  <rguenther@suse.de>
8545
8546         PR lto/48210
8547         * params.def (lto-partitions): Require at least 1 partition.
8548
8549 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8550
8551         * gthr-solaris.h: Remove.
8552         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8553         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8554         (LIB_SPEC): Likewise.
8555         * config/sol2.opt (threads): Remove.
8556         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8557         (sparc*-*-solaris2*): Likewise.
8558         * configure.ac (enable_threads): Enable solaris support.
8559         * configure: Regenerate.
8560         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8561         * doc/install.texi (Configuration, --enable-threads=lib): Remove
8562         solaris.
8563
8564 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8565
8566         * config.gcc: Obsolete *-*-solaris2.8*.
8567         * doc/install.texi (Specific, *-*-solaris2*): Document it.
8568
8569 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8570
8571         PR bootstrap/48135
8572         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8573         reference.  Solaris 8 perl works.
8574
8575 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8576
8577         PR bootstrap/48135
8578         * doc/install.texi (Prerequisites): Move jar etc. up.
8579         Explain support library version requirements.
8580
8581 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8582
8583         PR bootstrap/48135
8584         * doc/install.texi (Prerequisites): Move Perl to build
8585         requirements.  Always necessary on Solaris 2 with Sun ld.
8586
8587 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8588
8589         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8590         binutils 2.21.
8591         (Specific, i?86-*-solaris2.[89]): Likewise.
8592         (Specific, i?86-*-solaris2.10): Likewise.
8593         (Specific, mips-sgi-irix6): Likewise.
8594         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8595         Update for binutils 2.21.
8596
8597 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8598
8599         * configure.ac (gcc_cv_lto_plugin): Fix typo.
8600         Allow -fuse-linker-plugin for non-default plugin linker.
8601         * configure: Regenerate.
8602
8603 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8604
8605         PR bootstrap/48167
8606         * gengtype.c (files_rules): Added rule for cp/parser.h.
8607
8608 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8609
8610         PR target/48213
8611         * config/s390/s390.c (s390_delegitimize_address): Don't call
8612         lowpart_subreg if orig_x has BLKmode.
8613
8614 2011-03-21  Kai Tietz  <ktietz@redhat.com>
8615
8616         PR target/12171
8617         * doc/plugins.texi: Adjust documentation for plugin register_callback.
8618         * tree.h (attribute_spec): Add new member affects_type_identity.
8619         * attribs.c (empty_attribute_table): Adjust attribute_spec
8620         initializers.
8621         * config/alpha/alpha.c: Likewise.
8622         * config/arc/arc.c: Likewise.
8623         * config/arm/arm.c: Likewise.
8624         * config/avr/avr.c: Likewise.
8625         * config/bfin/bfin.c: Likewise.
8626         * config/crx/crx.c: Likewise.
8627         * config/darwin.h: Likewise.
8628         * config/h8300/h8300.c: Likewise.
8629         * config/i386/cygming.h: Likewise.
8630         * config/i386/i386.c: Likewise.
8631         * config/ia64/ia64.c: Likewise.
8632         * config/m32c/m32c.c: Likewise.
8633         * config/m32r/m32r.c: Likewise.
8634         * config/m68hc11/m68hc11.c: Likewise.
8635         * config/m68k/m68k.c: Likewise.
8636         * config/mcore/mcore.c: Likewise.
8637         * config/mep/mep.c: Likewise.
8638         * config/microblaze/microblaze.c: Likewise.
8639         * config/mips/mips.c: Likewise.
8640         * config/rs6000/rs6000.c: Likewise.
8641         * config/rx/rx.c: Likewise.
8642         * config/sh/sh.c: Likewise.
8643         * config/sol2.h: Likewise.
8644         * config/sparc/sparc.c: Likewise.
8645         * config/spu/spu.c: Likewise.
8646         * config/stormy16/stormy16.c: Likewise.
8647         * config/v850/v850.c: Likewise.
8648
8649 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
8650
8651         * simplify-rtx.c (simplify_binary_operation_1): Handle
8652         (xor (and A B) C) case when B and C are both constants.
8653
8654 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
8655
8656         * tree-dfa.c (add_referenced_var): Fix typo in comment.
8657
8658 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
8659
8660         PR bootstrap/48168
8661         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8662
8663 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
8664
8665         PR rtl-optimization/48156
8666         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8667         assume df and df_lr are not NULL.
8668
8669 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8670
8671         PR debug/48023
8672         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8673         between a call and its CALL_ARG_LOCATION note.
8674
8675 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8676
8677         PR debug/48178
8678         * config/sh/sh.c (find_barrier): Don't emit a constant pool
8679         between a call and its corresponding CALL_ARG_LOCATION note.
8680
8681 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
8682
8683         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8684         instead of loop. Use HARD_REGISTER_NUM_P predicate.
8685         * haifa-sched.c (setup_ref_regs): Ditto.
8686         * caller-save.c (add_used_regs_1): Ditto.
8687         * dse.c (look_for_hardregs): Ditto.
8688         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8689         * sched-rgn.c (check_live_1): Ditto.
8690
8691 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8692
8693         * c-decl.c (diagnose_mismatched_decls): Give an error for
8694         redefining a typedef with variably modified type.
8695
8696 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8697
8698         * c-decl.c (grokfield): Don't allow typedefs for structures or
8699         unions with no tag by default.
8700         * doc/extend.texi (Unnamed Fields): Update.
8701
8702 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
8703
8704         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8705         Rewrite using indirect functions.
8706         (lwp_slwpcb): Ditto.
8707         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8708         (avx_vinsertf128<mode>): Ditto.
8709
8710 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8711
8712         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8713         unspecs.
8714
8715 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8716
8717         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8718         splitting between a call and its corresponding CALL_ARG_LOCATION note.
8719
8720 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8721
8722         PR rtl-optimization/48170
8723         * gcse.c (hoist_code): Remove bogus asserts.
8724
8725 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
8726
8727         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8728         computation for prologue/epilogue.
8729
8730 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8731
8732         * Makefile.in (check-consistency): Remove.
8733
8734 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
8735
8736         PR debug/48176
8737         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8738         arange_table_in_use is 0, but either text_section_used or
8739         cold_text_section_used is true.  Don't call it if
8740         !info_section_emitted.
8741
8742 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
8743
8744         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8745         FUNCTION_VALUE_REGNO_P): Remove.
8746         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8747         Remove.
8748         * config/avr/avr.c (avr_ret_register): Make static inline.
8749         (avr_function_value_regno_p): New function.
8750         (avr_libcall_value): Make static. Add 'func' argument.
8751         (avr_function_value): Make static. Rename 'func' argument to
8752         'fn_decl_or_type', forward it to avr_libcall_value. Call
8753         avr_ret_register function instead of RET_REGISTER macro.
8754         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8755
8756 2011-03-18  Jason Merrill  <jason@redhat.com>
8757
8758         PR c++/23372
8759         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8760
8761 2011-03-18  Richard Guenther  <rguenther@suse.de>
8762
8763         * doc/install.texi (--enable-gold): Remove.
8764         (--with-plugin-ld): Document.
8765         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8766
8767 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
8768
8769         PR middle-end/47790
8770         * expr.c (optimize_bitfield_assignment_op): Revamp to work
8771         again after expansion changes.
8772
8773 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
8774
8775         * combine.c (try_combine): Do simplification only call of
8776         subst() on i2 even when i1 is present. Update comments.
8777
8778 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8779
8780         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8781         and UNSPEC_PCREL_SYMOFF.
8782
8783 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8784
8785         * config/s390/s390.md: Use define_c_enum for the unspec constant
8786         definitions.
8787
8788 2011-03-18  Richard Henderson  <rth@redhat.com>
8789             Jakub Jelinek  <jakub@redhat.com>
8790
8791         PR bootstrap/48161
8792         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8793         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8794
8795 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8796
8797         PR middle-end/47725
8798         * combine.c (cant_combine_insn_p): Don't check zero/sign
8799         extended hard registers.
8800
8801 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8802
8803         PR middle-end/47725
8804         * combine.c (cant_combine_insn_p): Check zero/sign extended
8805         hard registers.
8806
8807 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
8808
8809         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8810         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8811         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8812         Change return type to bool.
8813         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8814
8815 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8816
8817         PR debug/48163
8818         * var-tracking.c (prepare_call_arguments): If CALL target
8819         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8820         pc instead of looking it up using cselib_lookup and use
8821         Pmode for it if x has VOIDmode.
8822         * dwarf2out.c (gen_subprogram_die): If also both first and
8823         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8824
8825         PR debug/48163
8826         * function.c (assign_parms): For data.passed_pointer parms
8827         use MEM of data.entry_parm instead of data.entry_parm itself
8828         as DECL_INCOMING_RTL.
8829         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8830         also when passed and declared mode is the same, DECL_RTL
8831         is a MEM with pseudo as address and DECL_INCOMING_RTL is
8832         a MEM too.
8833
8834 2011-03-16  Jeff Law  <law@redhat.com>
8835
8836         PR rtl-optimization/37273
8837         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8838         handle them like argument loads from stack slots.  Do not double
8839         count memory for memory constants and argument loads from stack slots.
8840
8841 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8842
8843         PR debug/48160
8844         * var-tracking.c (prepare_call_arguments): Check SUBREG.
8845
8846 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8847
8848         PR target/48171
8849         * config/i386/i386.opt: Add Save to -mavx and -mfma.
8850
8851 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8852
8853         PR bootstrap/48153
8854         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8855         if dwarf_strict.
8856         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8857         Clear call_arg_locations and call_arg_loc_last always.
8858
8859         PR middle-end/48152
8860         * var-tracking.c (prepare_call_arguments): If argument needs to be
8861         passed by reference, adjust argtype and mode.
8862
8863 2011-03-17  Richard Guenther  <rguenther@suse.de>
8864
8865         PR middle-end/48134
8866         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8867         a value make sure to fold the statement.
8868
8869 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
8870
8871         PR target/43872
8872         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8873         return condition with !cfun->calls_alloca.
8874
8875 2011-03-17  Richard Guenther  <rguenther@suse.de>
8876
8877         PR bootstrap/48148
8878         * lto-cgraph.c (input_overwrite_node): Clear the abstract
8879         origin for decls in other ltrans units.
8880         (input_varpool_node): Likewise.
8881
8882 2011-03-17  Richard Guenther  <rguenther@suse.de>
8883
8884         PR middle-end/48165
8885         * tree-object-size.c (compute_object_offset): Properly return
8886         the offset operand of MEM_REFs as sizetype.
8887
8888 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8889
8890         PR rtl-optimization/48141
8891         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8892         * dse.c: Include params.h.
8893         (active_local_stores_len): New variable.
8894         (add_wild_read, dse_step1): Clear it when setting active_local_stores
8895         to NULL.
8896         (record_store, check_mem_read_rtx): Decrease it when removing
8897         from the chain.
8898         (scan_insn): Likewise.  Increase it when adding to chain, if it
8899         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8900         set active_local_stores to NULL before the addition.
8901         * Makefile.in (dse.o): Depend on $(PARAMS_H).
8902
8903         PR rtl-optimization/48141
8904         * dse.c (record_store): If no positions are needed in an insn
8905         that cannot be deleted, at least unchain it from active_local_stores.
8906
8907 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
8908
8909         PR debug/47510
8910         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8911         (lookup_type_die_strip_naming_typedef): ... here.
8912         (get_context_die): Use it.
8913         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8914         the anonymous struct named by the naming typedef.
8915
8916 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8917
8918         PR target/48154
8919         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8920         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8921
8922 2011-03-16  Jeff Law  <law@redhat.com>
8923
8924         * tree-vrp.c (identify_jump_threads): Slightly simplify type
8925         check for operands of conditional.  Allow type to be a pointer.
8926
8927 2011-03-16  Richard Guenther  <rguenther@suse.de>
8928
8929         PR tree-optimization/48149
8930         * fold-const.c (fold_binary_loc): Fold
8931         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8932
8933 2011-03-16  Richard Guenther  <rguenther@suse.de>
8934
8935         PR tree-optimization/26134
8936         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8937         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8938         (non_rewritable_mem_ref_base): Handle complex type component
8939         accesses, constrain offsets for vector and complex extracts
8940         more properly.
8941
8942 2011-03-16  Richard Guenther  <rguenther@suse.de>
8943
8944         PR tree-optimization/48146
8945         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8946         operands avoiding the need for renaming.
8947
8948 2011-03-16  Richard Guenther  <rguenther@suse.de>
8949
8950         * gimple-fold.c (maybe_fold_reference): Open-code relevant
8951         constant folding.  Move MEM_REF canonicalization first.
8952         Rely on fold_const_aggregate_ref for initializer folding.
8953         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8954
8955 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
8956
8957         PR middle-end/48136
8958         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8959         arg0/arg1 or their arguments are always fold converted to matching
8960         types.
8961
8962         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8963         to nargs.
8964
8965 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8966
8967         PR lto/46944
8968         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8969         Handle in-tree gold.
8970         (ld_vers): Extract binutils version for gold.
8971         (gcc_cv_ld_hidden): Handle gold here.
8972         (gcc_cv_lto_plugin): Determine level of linker plugin support.
8973         * configure: Regenerate.
8974         * config.in: Regenerate.
8975         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8976         -fuse-linker-plugin otherwise.
8977         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
8978         (LINK_COMMAND_SPEC): Use it.
8979         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8980
8981 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
8982
8983         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8984         * calls.c: Remove debug.h include.
8985         (emit_call_1): Don't call virtual_call_token debug hook.
8986         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8987         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8988         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8989         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8990         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8991         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8992         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8993         dwarf2out_virtual_call): Remove.
8994         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8995         copy_call_info and virtual_call hooks.
8996         (dwarf2out_init): Don't initialize vcall_insn_table,
8997         debug_dcall_section and debug_vcall_section.
8998         (prune_unused_types): Don't mark nodes from dcall_table.
8999         (dwarf2out_finish): Don't output dcall or vcall tables.
9000         * final.c (final_scan_insn): Don't call direct_call or
9001         virtual_call debug hooks.
9002         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9003         virtual_call_token, copy_call_info and virtual_call hooks.
9004         (debug_nothing_uid): Remove prototype.
9005         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9006         copy_call_info and virtual_call hooks.
9007         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9008         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9009         * debug.c (do_nothing_debug_hooks): Likewise.
9010         (debug_nothing_uid): Remove.
9011         * doc/invoke.texi (-fenable-icf-debug): Remove.
9012         * common.opt (-fenable-icf-debug): Likewise.
9013
9014         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9015         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9016         call's MEM.  Handle functions returning aggregate through a hidden
9017         first pointer.  For virtual calls add clobbered pc to call arguments
9018         chain.
9019         * dwarf2out.c (gen_subprogram_die): Emit
9020         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9021         can't be emitted.
9022
9023         PR debug/45882
9024         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9025         * rtl.h (ENTRY_VALUE_EXP): Define.
9026         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9027         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9028         * print-rtl.c (print_rtx): Likewise.
9029         * gengtype.c (adjust_field_rtx_def): Likewise.
9030         * var-tracking.c (vt_add_function_parameter): Adjust
9031         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9032         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9033         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9034         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9035         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9036
9037         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9038         Call var_location debug hook even on CALL_INSNs.
9039         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9040         * rtl.def (ENTRY_VALUE): New.
9041         * dwarf2out.c: Include cfglayout.h.
9042         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9043         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9044         (struct call_arg_loc_node): New type.
9045         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9046         tail_call_site_count): New variables.
9047         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9048         DW_TAG_GNU_call_site_parameter.
9049         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9050         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9051         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9052         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9053         and DW_AT_GNU_all_source_call_sites.
9054         (mem_loc_descriptor): Handle ENTRY_VALUE.
9055         (add_src_coords_attributes): Don't add enything if
9056         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9057         (dwarf2out_abstract_function): Save and clear call_arg_location,
9058         call_site_count and tail_call_site_count around dwarf2out_decl call.
9059         (gen_call_site_die): New function.
9060         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9061         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9062         (dwarf2out_function_decl): Clear call_arg_locations,
9063         call_arg_loc_last, set call_site_count and tail_call_site_count
9064         to -1 and free block_map.
9065         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9066         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9067         followed by any real instructions.
9068         (dwarf2out_begin_function): Set call_site_count and
9069         tail_call_site_count to 0.
9070         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9071         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9072         attempt to force a DIE for it and worst case remove the attribute.
9073         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9074         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9075         the decl itself.
9076         * var-tracking.c: Include tm_p.h.
9077         (vt_stack_adjustments): For calls call note_register_arguments.
9078         (argument_reg_set): New variable.
9079         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9080         ensure the VALUE is resolved.
9081         (call_arguments): New variable.
9082         (prepare_call_arguments): New function.
9083         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9084         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9085         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9086         always use the best expression.
9087         (vt_expand_loc): Add ignore_cur_loc argument.
9088         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9089         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9090         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9091         note for all calls.
9092         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9093         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9094         argument.  Don't call cselib_preserve_only_values and
9095         cselib_reset_table.
9096         (note_register_arguments): New function.
9097         (vt_initialize): Compute argument_reg_set.  Call
9098         vt_add_function_parameters before processing basic blocks instead of
9099         afterwards.  For calls call prepare_call_arguments before calling
9100         cselib_process_insn.
9101         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9102         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9103         (var-tracking.o): Depend on $(TM_P_H).
9104         * cfglayout.h (insn_scope): New prototype.
9105         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9106         * cfglayout.c (insn_scope): No longer static.
9107         * insn-notes.def (CALL_ARG_LOCATION): New.
9108         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9109         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9110         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9111         nothing for DECL_EXTERNAL BLOCK_VARS.
9112
9113 2011-03-16  Alan Modra  <amodra@gmail.com>
9114
9115         PR target/45844
9116         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9117         create invalid offset address for vsx splat insn.
9118         * config/rs6000/predicates.md (splat_input_operand): New.
9119         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9120
9121 2011-03-15  Xinliang David Li  <davidxl@google.com>
9122
9123         PR c/47837
9124         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9125         (normalize_preds): New function.
9126         (is_use_properly_guarded): Normalize def predicates.
9127
9128 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9129
9130         PR target/46788
9131         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9132         in the output template.
9133
9134 2011-03-15  Richard Guenther  <rguenther@suse.de>
9135
9136         PR middle-end/47650
9137         * tree-pretty-print.c (dump_function_declaration): Properly
9138         dump unprototyped and varargs function types.
9139
9140 2011-03-15  Richard Guenther  <rguenther@suse.de>
9141
9142         PR tree-optimization/13954
9143         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9144         and friends.
9145
9146 2011-03-15  Richard Guenther  <rguenther@suse.de>
9147
9148         PR tree-optimization/48037
9149         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9150         selects into BIT_FIELD_REFs.
9151         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9152         vector select.
9153
9154 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9155
9156         PR tree-optimization/48129
9157         * builtins.c (fold_builtin_snprintf): Convert to type of
9158         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9159         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9160
9161 2011-03-15  Richard Guenther  <rguenther@suse.de>
9162
9163         PR tree-optimization/41490
9164         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9165         value but with VUSE.
9166         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9167         return statements.
9168         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9169         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9170         * tree-tailcall.c (find_tail_calls): Ignore returns.
9171
9172 2011-03-15  Richard Guenther  <rguenther@suse.de>
9173
9174         PR middle-end/48031
9175         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9176         or variable-indexed array accesses when in gimple form.
9177
9178 2011-03-15  Richard Guenther  <rguenther@suse.de>
9179
9180         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9181
9182 2011-03-15  Alan Modra  <amodra@gmail.com>
9183
9184         PR target/48032
9185         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9186         presume symbol_refs without a symbol_ref_decl are suitably
9187         aligned, nor other trees we may see here.  Handle anchor symbols.
9188         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9189         Check cmodel=medium addresses.  Adjust all calls.
9190         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9191         creating cmodel=medium optimized access to locals.
9192         * config/rs6000/constraints.md (R): Pass QImode to
9193         legitimate_constant_pool_address_p.
9194         * config/rs6000/predicates.md (input_operand): Pass mode to
9195         legitimate_constant_pool_address_p.
9196         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9197         Update prototype.
9198
9199 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9200
9201         PR target/48053
9202         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9203         64-bit constants being loaded into registers other than GPRs such
9204         as loading 0 into a VSX register.
9205
9206 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9207
9208         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9209
9210 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9211
9212         PR middle-end/47917
9213         * builtins.c (fold_builtin_snprintf): New function.
9214         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9215         (fold_builtin_4): Likewise.
9216
9217         PR middle-end/38878
9218         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9219         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9220         and C - X == X also strip nops from +/-/p+ operand.
9221         When optimizing -X == C, fold C to arg0's type.
9222
9223         PR debug/47946
9224         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9225         emit it as add_AT_int instead of add_AT_unsigned.
9226
9227 2011-03-14  Tom Tromey  <tromey@redhat.com>
9228
9229         * unwind-dw2.c: Include sys/sdt.h if it exists.
9230         (_Unwind_DebugHook): Use STAP_PROBE2.
9231         * config.in, configure: Rebuild.
9232         * configure.ac: Check for sys/sdt.h.
9233
9234 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9235
9236         * config/i386/i386.md (ROUND_FLOOR): New constant.
9237         (ROUND_CEIL): Ditto.
9238         (ROUND_TRUNC): Ditto.
9239         (ROUND_MXCSR): Ditto.
9240         (ROUND_NO_EXC): Ditto.
9241         (rint<mode>2): Use new defines instead of numerical constants.
9242         (floor<mode>2): Ditto.
9243         (ceil<mode>2): Ditto.
9244         (btrunc<mode>2): Ditto.
9245         * config/i386/i386-builtin-types.def: Define ROUND function type
9246         aliases.
9247         * config/i386/i386.c (enum ix86_builtins): Add
9248         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9249         (struct builtin_description): Add
9250         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9251         (ix86_expand_sse_round): New static function.
9252         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9253         function types.
9254         (ix86_builtin_vectorized_function): Handle
9255         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9256
9257 2011-03-14  Tom Tromey  <tromey@redhat.com>
9258
9259         * c-parser.c (c_parser_asm_string_literal): Clear
9260         warn_overlength_strings.
9261
9262 2011-03-14  Tom Tromey  <tromey@redhat.com>
9263
9264         * c-parser.c (disable_extension_diagnostics): Save
9265         warn_overlength_strings.
9266         (restore_extension_diagnostics): Restore warn_overlength_strings.
9267
9268 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9269
9270         * BASE-VER: Change to 4.7.0.
9271
9272 2011-03-14  Richard Guenther  <rguenther@suse.de>
9273
9274         PR middle-end/48098
9275         * tree.c (build_vector_from_val): Adjust assert to requirements
9276         and reality.
9277
9278 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9279
9280         PR bootstrap/48102
9281         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9282
9283 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9284
9285         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9286         terms of target_flags_explicit. Adjust copyright year.
9287
9288         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9289         * config/rs6000/t-freebsd: New file. Add override for
9290         LIB2FUNCS_EXTRA.
9291
9292 2011-03-13  Chris Demetriou  <cgd@google.com>
9293
9294         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9295         (-fno-diagnostics-show-option): this, to reflect current default.
9296         (-Werror=): Update text about -fno-diagnostics-show-option.
9297
9298 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9299
9300         PR target/48053
9301         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9302         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9303         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9304         mode is not V2DImode or V2DFmode.
9305         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9306         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9307         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9308         registers to 0.
9309         (movdi_internal64): Likewise.
9310
9311 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9312
9313         PR tree-optimization/47127
9314         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9315         parameter.
9316         (set_cloog_options): Same.
9317         (scop_to_clast): Same.
9318         (print_clast_stmt): Do not call cloog_state_malloc and
9319         cloog_state_free.
9320         (print_generated_program): Same.
9321         (gloog): Same.
9322         * graphite-clast-to-gimple.h (cloog_state): Declared.
9323         (scop_to_clast): Adjust declaration.
9324         * graphite.c (cloog_state): Defined here.
9325         (graphite_initialize): Call cloog_state_malloc.
9326         (graphite_finalize): Call cloog_state_free.
9327
9328 2011-03-11  Jason Merrill  <jason@redhat.com>
9329
9330         * attribs.c (lookup_attribute_spec): Take const_tree.
9331         * tree.h: Adjust.
9332
9333 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9334
9335         * config/sparc/sparc.c (sparc_option_override): Use
9336         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9337
9338 2011-03-11  Richard Guenther  <rguenther@suse.de>
9339
9340         PR tree-optimization/48067
9341         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9342         multiplication result will be only used once on the target
9343         stmt.
9344
9345 2011-03-11  Richard Guenther  <rguenther@suse.de>
9346
9347         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9348
9349 2011-03-11  Richard Guenther  <rguenther@suse.de>
9350
9351         PR lto/48073
9352         * tree.c (find_decls_types_r): Do not walk types only reachable
9353         from IDENTIFIER_NODEs.
9354
9355 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9356
9357         PR middle-end/48044
9358         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9359         all vnode->force_output nodes as needed.
9360
9361 2011-03-11  Jason Merrill  <jason@redhat.com>
9362
9363         PR c++/48069
9364         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9365         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9366
9367 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9368
9369         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9370         cgraph_node.
9371
9372 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9373
9374         PR tree-optimization/48063
9375         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9376         inline functions called once if !tree_can_inline_p (node->callers).
9377
9378 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9379
9380         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9381         extra_objs.
9382         * config/score/score3.c: Delete.
9383         * config/score/score3.h: Delete.
9384         * config/score/mul-div.S: Delete.
9385         * config/score/sfp-machine.h: Add new file.
9386         * config/score/constraints.md: Add new file.
9387         * config/score/t-score-softfp: Add new file.
9388         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9389         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9390         (score7_extra_constraint): Delete.
9391         (score7_option_override): Remove unused code.
9392         * config/score/score.c: Remove score3 and score5 define and code.
9393         * config/score/score.h: Remove score3 and score5 define and code.
9394         * config/score/score.md: Remove score3 template and unusual insn.
9395         * config/score/score.opt: Remove score3 and score5 options.
9396
9397 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9398
9399         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9400         when _HPUX_SOURCE is defined.
9401         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9402
9403 2011-03-10  Jason Merrill  <jason@redhat.com>
9404
9405         PR c++/48029
9406         * stor-layout.c (layout_type): Don't set structural equality
9407         on arrays of incomplete type.
9408         * tree.c (type_hash_eq): Handle comparing them properly.
9409
9410 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9411
9412         PR debug/48043
9413         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9414         result mode matches original rtl mode.
9415
9416 2011-03-10  Nick Clifton  <nickc@redhat.com>
9417
9418         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9419         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9420
9421 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9422
9423         PR rtl-optimization/47866
9424         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9425         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9426         if target wasn't scalar.
9427         * function.c (assign_stack_temp_for_type): Assert that neither
9428         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9429         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9430         macro.
9431         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9432
9433 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9434
9435         * config/s390/s390-protos.h (s390_label_align): New prototype.
9436         * config/s390/s390.c (s390_label_align): New function.
9437         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9438
9439 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9440
9441         PR target/47755
9442         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9443         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9444         (output_vec_const_move): Ditto.
9445
9446 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9447
9448         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9449         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9450         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9451         Change 'rclass' argument and result type to reg_class_t.
9452         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9453
9454 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9455
9456         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9457         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9458         (TARGET_MEMORY_MOVE_COST): Define.
9459         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9460
9461 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9462
9463         PR debug/47881
9464         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9465         removed anything.
9466
9467         PR tree-optimization/48022
9468         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9469         for EQ/NE_EXPR.
9470
9471 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9472
9473         PR debug/47991
9474         * var-tracking.c (find_use_val): Return NULL for
9475         cui->sets && cui->store_p BLKmode MEMs.
9476
9477 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9478
9479         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9480         Remove.
9481         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9482         xstormy16_print_operand_address): Remove.
9483         * config/stormy16/stormy16.c (xstormy16_print_operand,
9484         xstormy16_print_operand_address): Make static.
9485         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9486
9487 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9488
9489         PR target/47862
9490         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9491         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9492         before definition.
9493
9494 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9495
9496         PR bootstrap/48000
9497         * cfgloopmanip.c (fix_bb_placements): Return immediately
9498         if FROM is BASE_LOOP's header.
9499
9500 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9501
9502         * gimplify.c (gimplify_function_tree): Fix building calls
9503         to __builtin_return_address.
9504
9505 2011-03-07  Alan Modra  <amodra@gmail.com>
9506
9507         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9508         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9509         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9510         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9511         return_mode args.
9512         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9513         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9514         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9515         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9516         * config/rs6000/rs6000.c
9517         (rs6000_elf_end_indicate_exec_stack): Rename to..
9518         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9519         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9520         (rs6000_file_start): ..here.
9521         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9522         file scope variables.
9523         (call_ABI_of_interest): New function.
9524         (init_cumulative_args): Set above vars when function return value
9525         is a float, vector, or small struct.
9526         (rs6000_function_arg_advance_1): Likewise for function args.
9527         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9528         references float args.
9529
9530 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9531
9532         * doc/cfg.texi: Remove "See" before @ref.
9533         * doc/invoke.texi: Likewise.
9534
9535 2011-03-05  Jason Merrill  <jason@redhat.com>
9536
9537         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9538
9539 2011-03-05  Anthony Green  <green@moxielogic.com>
9540
9541         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9542
9543 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
9544
9545         PR rtl-optimization/47899
9546         * cfgloopmanip.c (fix_bb_placements): Fix first argument
9547         to flow_loop_nested_p when moving the loop upward.
9548
9549 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
9550
9551         PR target/47719
9552         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
9553
9554 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
9555
9556         PR tree-optimization/47967
9557         * ipa-cp.c (build_const_val): Return NULL instead of creating
9558         VIEW_CONVERT_EXPR for mismatching sizes.
9559         (ipcp_create_replace_map): Return NULL if build_const_val failed.
9560         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9561         give up on versioning.
9562
9563 2011-03-05  Alan Modra  <amodra@gmail.com>
9564
9565         PR target/47986
9566         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9567         full cmodel medium/large lo_sum + high addresses.
9568
9569 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9570
9571         * config/s390/s390.c (s390_decompose_address): Reject non-literal
9572         pool references in UNSPEC_LTREL_OFFSET.
9573
9574 2011-03-04  Jan Hubicka  <jh@suse.cz>
9575
9576         PR lto/47497
9577         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9578         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9579         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9580         Add node pointers.
9581         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9582         cgraph_add_thunk): Add node pointers.
9583         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9584         associated to right node.
9585         (input_node): Update use of cgraph_same_body_alias
9586         and cgraph_add_thunk.
9587
9588 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9589
9590         * config/i386/i386.opt (mprefer-avx128): New flag.
9591         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9592         modes when the flag -mprefer-avx128 is on.
9593
9594 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9595
9596         * dwarf2out.c (compare_loc_operands): Fix address handling.
9597
9598 2011-03-04  Alan Modra  <amodra@gmail.com>
9599
9600         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9601
9602 2011-03-04  Richard Guenther  <rguenther@suse.de>
9603
9604         PR middle-end/47968
9605         * expmed.c (extract_bit_field_1): Prefer vector modes that
9606         vec_extract patterns can handle.
9607
9608 2011-03-04  Richard Guenther  <rguenther@suse.de>
9609
9610         PR middle-end/47975
9611         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9612
9613 2011-03-04  Richard Henderson  <rth@redhat.com>
9614
9615         * explow.c (emit_stack_save): Remove 'after' parameter.
9616         (emit_stack_restore): Likewise.
9617         * expr.h: Update to match.
9618         * builtins.c, calls.c, stmt.c: Likewise.
9619         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9620         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9621         * function.c (expand_function_end): Insert the emit_stack_save
9622         sequence before parm_birth_insn instead of after.
9623
9624 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
9625
9626         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9627         (ssse3_pmaddubsw128): Ditto.
9628         (ssse3_pmaddubsw): Ditto.
9629
9630 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
9631
9632         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9633
9634 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
9635
9636         PR c/47963
9637         * gimplify.c (omp_add_variable): Only call omp_notice_variable
9638         on TYPE_SIZE_UNIT if it is a DECL.
9639
9640         PR debug/47283
9641         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9642         first operand is not is_gimple_mem_ref_addr, try to fold it.
9643         If the operand still isn't is_gimple_mem_ref_addr, clear
9644         MEM_EXPR on op0.
9645
9646 2011-03-03  Richard Guenther  <rguenther@suse.de>
9647
9648         PR middle-end/47283
9649         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9650         match comment.
9651         (refs_may_alias_p_1): For release branches return true if
9652         we are confused by our input.
9653
9654 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9655
9656         * config/s390/s390.c (s390_function_value): Rename to ...
9657         (s390_function_and_libcall_value): ... this.
9658         (s390_function_value): New function.
9659         (s390_libcall_value): New function.
9660         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9661         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9662         target macro definitions.
9663         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9664
9665 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
9666
9667         * config/i386/freebsd64.h (CC1_SPEC): Define.
9668         * config/i386/linux64.h (CC1_SPEC): Define.
9669         * config/i386/x86-64.h (CC1_SPEC): Don't define.
9670
9671 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
9672
9673         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9674         Remove.
9675         * config/stormy16/stormy16.c: Include reload.h.
9676         (xstormy16_memory_move_cost): New function.
9677         (TARGET_MEMORY_MOVE_COST): Define.
9678
9679 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
9680
9681         PR rtl-optimization/47925
9682         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9683         with side effects.  Remove the more-specific check for volatile asms.
9684
9685 2011-03-02  Alan Modra  <amodra@gmail.com>
9686
9687         PR target/47935
9688         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9689         toc relative addresses for valid offsets.
9690
9691 2011-03-01  Richard Guenther  <rguenther@suse.de>
9692
9693         PR tree-optimization/47890
9694         * tree-vect-loop.c (get_initial_def_for_induction): Set
9695         related stmt properly.
9696
9697 2011-03-01  Richard Guenther  <rguenther@suse.de>
9698
9699         PR lto/47924
9700         * lto-streamer.c (lto_record_common_node): Also register
9701         the canonical type.
9702
9703 2011-03-01  Richard Guenther  <rguenther@suse.de>
9704
9705         PR lto/46911
9706         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9707         Do not stream DECL_ABSTRACT_ORIGIN.
9708         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9709         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9710         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9711         Do not stream DECL_ABSTRACT_ORIGIN.
9712         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9713         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9714
9715 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
9716
9717         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9718         FUNCTION_VALUE_REGNO_P): Remove.
9719         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9720         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9721         Add 'outgoing' argument.
9722         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9723         function.
9724         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9725         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9726
9727 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
9728
9729         PR debug/28047
9730         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9731         (lookup_filename): Likewise.
9732         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9733
9734 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
9735             Jakub Jelinek  <jakub@redhat.com>
9736
9737         PR middle-end/47893
9738         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9739         (assign_stack_local_1): Change last argument type to int.
9740         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9741         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
9742         don't record padding space into frame_space_list nor use those areas.
9743         (assign_stack_local): Adjust caller.
9744         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9745         of assign_stack_local, pass 0 as last argument.
9746         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9747         callers.
9748
9749 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
9750
9751         PR debug/47283
9752         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9753         Use target address_mode and pointer_mode hooks instead of hardcoded
9754         Pmode and ptr_mode.  Handle some simple cases of extending if
9755         POINTERS_EXTEND_UNSIGNED < 0.
9756         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9757         Call convert_debug_memory_address.
9758         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9759         convert_debug_memory_address.
9760
9761         PR middle-end/46790
9762         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9763         * configure: Regenerated.
9764         * config.in: Regenerated.
9765         * varasm.c (default_function_section): Return NULL
9766         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9767
9768 2011-02-28  Martin Jambor  <mjambor@suse.cz>
9769
9770         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9771         the description to match the printed values.
9772
9773 2011-02-28  Richard Guenther  <rguenther@suse.de>
9774
9775         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9776         of the copied scope tree.
9777
9778 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9779
9780         * doc/extend.texi (Function Attributes): Avoid deeply (and
9781         wrongly) nested tables.
9782
9783 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
9784
9785         PR middle-end/47903
9786         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9787         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9788         r isn't op0 nor op1.
9789
9790 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9791
9792         * config/avr/avr.md: Remove magic comment for emacs.
9793
9794 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9795
9796         PR target/45261
9797         * config/avr/avr.c (avr_option_override): Use error on bad options.
9798         (avr_help): New function.
9799         (TARGET_HELP): Define.
9800
9801 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
9802
9803         PR target/42240
9804         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9805         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9806
9807 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
9808
9809         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9810         (ARM Options): Ditto.
9811         (i386 and x86-64 Options): Ditto.
9812         (RX Options): Ditto.
9813         (SPARC Options): Ditto.
9814
9815 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
9816
9817         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9818         FreeBSD 6 and later.  Generally use cpu generic.
9819
9820 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9821
9822         * doc/cpp.texi: Update copyright years.
9823
9824 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9825
9826         PR target/46898
9827         * config/lm32/lm32.md (ashrsi3): Added needed variable.
9828
9829 2011-02-25  Jon Beniston  <jon@beniston.com>
9830
9831         PR target/46898
9832         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9833         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9834         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9835         (lm32_block_move_inline): Add type cast to remove warning.
9836         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9837         (gen_int_relational): Move declarations to start of function.
9838
9839 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9840
9841         PR tree-optimization/45470
9842         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9843         can throw internally only.
9844         * tree-vect-stmts.c (vectorizable_call): Likewise.
9845
9846 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
9847
9848         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9849         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9850         * config/stormy16/stormy16-protos.h
9851         (xstormy16_preferred_reload_class): Remove.
9852         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9853         static. Change 'rclass' argument and return type to reg_class_t.
9854         (TARGET_PREFERRED_RELOAD_CLASS,
9855         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9856
9857 2011-02-24  Richard Guenther  <rguenther@suse.de>
9858
9859         * lto-streamer-in.c (input_bb): Do not find referenced vars
9860         in debug statements.
9861
9862 2011-02-23  Jason Merrill  <jason@redhat.com>
9863
9864         * common.opt (fabi-version): Document v5 and v6.
9865
9866 2011-02-23  Richard Guenther  <rguenther@suse.de>
9867
9868         PR tree-optimization/47849
9869         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9870
9871 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9872
9873         * opts-common.c (decode_cmdline_option): Print empty string
9874         argument as "" in decoded->orig_option_with_args_text.
9875         * gcc.c (execute): Print empty string argument as ""
9876         in the verbose output.
9877         (do_spec_1): Keep empty string argument.
9878
9879 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
9880
9881         * config.gcc: Declare score-* and crx-* obsolete.
9882
9883 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9884
9885         PR rtl-optimization/47763
9886         * web.c (web_main): Ignore naked clobber when replacing register.
9887
9888 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
9889
9890         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9891         Remove.
9892
9893 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9894
9895         PR doc/47848
9896         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9897
9898 2011-02-22  Mike Stump  <mikestump@comcast.net>
9899
9900         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9901         assembler.
9902         * configure: Regenerate.
9903
9904 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
9905
9906         PR rtl-optimization/46002
9907         * ira-color.c (update_copy_costs): Change class intersection
9908         test to reg_class_contents[] test of 'hard_regno'.
9909
9910 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
9911
9912         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9913         than Driver option.
9914         * config/hpux11.opt (mt): Likewise.
9915         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9916         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9917         * config/vax/elf.opt (mno-asm-pic): Likewise.
9918         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9919
9920 2011-02-21  Mike Stump  <mikestump@comcast.net>
9921
9922         PR target/47822
9923         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9924         tree so we can get save the type.
9925         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9926         for CFString instead of trying to use past the end of the builtins.
9927         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9928         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9929         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9930         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9931         Rename to darwin_builtin_cfstring.
9932         (darwin_init_cfstring_builtins): Return the built type.
9933
9934 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
9935
9936         PR target/47840
9937         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9938         (_mm256_insert_epi64): Use _mm_insert_epi64.
9939
9940 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
9941
9942         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9943         * config/stormy16/stormy16-protos.h
9944         (xstormy16_mode_dependent_address_p): Remove.
9945         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9946         Make static. Change return type to bool. Change argument type to
9947         const_rtx. Remove dead code.
9948         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9949
9950 2011-02-21  Richard Guenther  <rguenther@suse.de>
9951
9952         PR lto/47820
9953         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9954         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9955         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9956         TUs context.
9957         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9958         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9959
9960 2011-02-20  Richard Guenther  <rguenther@suse.de>
9961
9962         PR lto/47822
9963         * tree.c (free_lang_data_in_decl): Clean builtins from
9964         the TU decl BLOCK_VARS.
9965
9966 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
9967
9968         PR debug/47620
9969         PR debug/47630
9970         * haifa-sched.c (fix_tick_ready): Skip tick computation
9971         for debug insns.
9972
9973 2011-02-19  Richard Guenther  <rguenther@suse.de>
9974
9975         PR lto/47647
9976         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9977         Remove lazy BLOCK_VARS streaming.
9978         (lto_input_ts_block_tree_pointers): Likewise.
9979         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9980
9981 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
9982
9983         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9984
9985 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
9986
9987         * config/i386/biarch32.h, config/i386/mach.h,
9988         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9989
9990 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
9991
9992         PR target/47800
9993         * config/i386/i386.md (peephole2 for shift and plus): Use
9994         operands[1] original mode in the first insn.
9995
9996 2011-02-18  Mike Stump  <mikestump@comcast.net>
9997
9998         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9999
10000 2011-02-18  Jan Hubicka  <jh@suse.cz>
10001
10002         PR middle-end/47788
10003         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10004         to zero when the function is not inlinable at all.
10005
10006 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10007
10008         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10009         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10010         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10011         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10012         * config/pa/t-pa64: Likewise.
10013         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10014
10015 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10016
10017         PR driver/47787
10018         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10019
10020 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10021
10022         PR target/47792
10023         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10024
10025 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10026
10027         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10028         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10029         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10030         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10031         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10032         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10033         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10034         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10035         m32r_legitimate_address_p): New functions.
10036         * config/m32r/constraints.md (constraint "S"): Don't use
10037         STORE_PREINC_PREDEC_P.
10038         (constraint "U"): Don't use LOAD_POSTINC_P.
10039
10040 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10041
10042         PR rtl-optimization/46178
10043         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10044         compute ira_hard_regno_cover_class[].
10045
10046 2011-02-18  Richard Guenther  <rguenther@suse.de>
10047
10048         PR lto/47798
10049         * lto-streamer.h (lto_global_var_decls): Declare.
10050         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10051         statics for global var processing.
10052
10053 2011-02-18  Richard Guenther  <rguenther@suse.de>
10054
10055         PR tree-optimization/47737
10056         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10057         edge dominance check.
10058
10059 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10060
10061         PR debug/47780
10062         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10063         avoid invalid rtx sharing.
10064
10065 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10066
10067         * doc/cpp.texi (Obsolete Features): Add background on the
10068         origin of assertions.
10069
10070 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10071
10072         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10073         objc_abi == 2.
10074         * config/darwin.c (output_objc_section_asm_op): Added support for
10075         ABI v1 and v2.
10076         (is_objc_metadata): New.
10077         (darwin_objc2_section): New.
10078         (darwin_objc1_section): New.
10079         (machopic_select_section): Added support for ABI v1 and v2.
10080         (darwin_emit_objc_zeroed): New.
10081         (darwin_output_aligned_bss): Detect objc metadata and treat it
10082         appropriately.
10083         (darwin_asm_output_aligned_decl_common): Same.
10084         (darwin_asm_output_aligned_decl_local): Same.
10085         * config/darwin-sections.def: Updated for ABI v1 and v2.
10086         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10087         compiling Objective-C code for the NeXT runtime, default to using
10088         ABI version 0 for 32-bit, and version 2 for 64-bit.
10089
10090 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10091
10092         * common.opt (optimize_fast): New Variable.
10093         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10094         instead of local variable ofast.
10095
10096 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10097
10098         * doc/invoke.texi (fobjc-abi-version): Documented.
10099         (fobjc-nilcheck): Documented.
10100         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10101         version.
10102
10103 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10104
10105         PR driver/47390
10106         * common.opt (export-dynamic): New Driver option.
10107         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10108
10109 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10110
10111         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10112
10113 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10114             Jan Hubicka  <jh@suse.cz>
10115
10116         PR debug/47106
10117         PR debug/47402
10118         * cfgexpand.c (account_used_vars_for_block): Remove.
10119         (estimated_stack_frame_size): Use referenced vars.
10120         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10121         that were referenced in the original function.  Test src_fn
10122         rather than cfun.  Drop redundant get_var_ann.
10123         (setup_one_parameter): Drop redundant get_var_ann.
10124         (declare_return_variable): Likewise.
10125         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10126         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10127         * ipa-inline.c (compute_inline_parameters): Do not compute
10128         disregard_inline_limits here.
10129         (compute_inlinable_for_current, pass_inlinable): New.
10130         (pass_inline_parameters): Require PROP_referenced_vars.
10131         * cgraphunit.c (cgraph_process_new_functions): Don't run
10132         compute_inline_parameters explicitly unless function is in SSA form.
10133         (cgraph_analyze_function): Set .disregard_inline_limits.
10134         * tree-sra.c (convert_callers): Compute inliner parameters
10135         only for functions already in SSA form.
10136
10137 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10138
10139         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10140         -mlittle-endian-data.
10141
10142 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10143
10144         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10145         -mno-fpu, not -fpu and -no-fpu.
10146         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10147         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10148
10149 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10150
10151         PR target/43653
10152         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10153         input reload with PLUS RTX.
10154
10155 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10156
10157         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10158         of InverseVar(MDMX).
10159
10160 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10161
10162         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10163         --m4-340.
10164
10165 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10166
10167         * config/mn10300/mn10300.opt (mno-crt0): New.
10168
10169 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10170
10171         * config/m68k/uclinux.opt (static-libc): New Driver option.
10172
10173 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10174
10175         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10176
10177 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10178
10179         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10180         %{muser-extend-enabled}.
10181
10182 2011-02-16  Richard Guenther  <rguenther@suse.de>
10183
10184         PR tree-optimization/47738
10185         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10186         the TODO from tree_predictive_commoning.
10187
10188 2011-02-15  Jeff Law  <law@redhat.com>
10189
10190         Revert
10191         2011-01-25  Jeff Law  <law@redhat.com>
10192
10193         PR rtl-optimization/37273
10194         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10195         handle them like argument loads from stack slots.  Do not double
10196         count memory for memory constants and argument loads from stack slots.
10197
10198 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10199
10200         PR middle-end/47725
10201         * combine.c (cant_combine_insn_p): Revert the last change.
10202
10203 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10204
10205         PR target/47755
10206         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10207         mode for vector constants.  Remove code that checks for TImode.
10208
10209 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10210
10211         PR debug/47106
10212         PR debug/47402
10213         * cgraph.h (compute_inline_parameters): Return void.
10214         * ipa-inline.c (compute_inline_parameters): Adjust.
10215
10216 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10217
10218         PR debug/47106
10219         PR debug/47402
10220         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10221         rather than decl.
10222         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10223         * ipa-inline.c (compute_inline_parameters): Adjust.
10224
10225 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10226
10227         PR debug/47106
10228         PR debug/47402
10229         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10230         Adjust all users.  Pass FN to...
10231         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10232         fn argument.
10233         * ipa-struct-reorg.c: Adjust.
10234         * tree-dfa.c: Adjust.
10235         * tree-into-ssa.c: Adjust.
10236         * tree-sra.c: Adjust.
10237         * tree-ssa-alias.c: Adjust.
10238         * tree-ssa-live.c: Adjust.
10239         * tree-ssa.c: Adjust.
10240         * tree-ssanames.c: Adjust.
10241         * tree-tailcall.c: Adjust.
10242
10243 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10244
10245         PR debug/47106
10246         PR debug/47402
10247         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10248         Adjust all callers.
10249         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10250         * tree-flow-inline.h: Adjust.
10251         * gimple-pretty-print.c: Adjust.
10252         * tree-into-ssa.c: Adjust.
10253         * tree-ssa.c: Adjust.
10254         * cfgexpand.c: Adjust.
10255
10256 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10257
10258         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10259         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10260         (EXTRA_CONSTRAINT): Delete.
10261         * config/iq2000/constraints.md: New file.
10262         * config/iq2000/iq2000.md: Include it.
10263         (define_insn ""): Delete.
10264         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10265         unsupported constraint letters from patterns.
10266         (call_value, call_value_internal1): Likewise.
10267         (call_value_multiple_internal1): Likewise.
10268
10269 2011-02-15  Nick Clifton  <nickc@redhat.com>
10270
10271         * config/mn10300/mn10300.c: Include tm-constrs.h.
10272         (struct liw_data): New data structure describing an LIW candidate
10273         instruction.
10274         (extract_bundle): Use struct liw_data.  Allow small integer
10275         operands for some instructions.
10276         (check_liw_constraints): Use struct liw_data.  Remove swapped
10277         parameter.  Add comments describing the checks.  Fix bug when
10278         assigning the source of liw1 to the source of liw2.
10279         (liw_candidate): Delete.  Code moved into extract_bundle.
10280         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10281         before swapping.
10282         * config/mn10300/predicates.md (liw_operand): New predicate.
10283         Allows registers and small integer constants.
10284         * config/mn10300/constraints.md (O): New constraint.  Accetps
10285         integers in the range -8 to +7 inclusive.
10286         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10287         for moving a small integer into a register.  Give this alternative
10288         LIW attributes.
10289         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10290         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10291         using the J,K,L and M constraints,
10292         (liw): Remove SI mode on second operands to allow for HI and QI
10293         mode values.
10294         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10295         instruction.
10296
10297 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10298
10299         PR middle-end/47725
10300         * combine.c (cant_combine_insn_p): Check zero/sign extended
10301         hard registers.
10302
10303 2011-02-15  Richard Guenther  <rguenther@suse.de>
10304
10305         PR tree-optimization/47743
10306         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10307         for a non-type-compatible VN lookup bail out.
10308
10309 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10310
10311         * config/fr30/constraints.md: New file.
10312         * config/fr30/fr30.md: Include it.
10313         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10314         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10315         (EXTRA_CONSTRAINT): Delete.
10316
10317 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10318
10319         * config/frv/constraints.md: New file.
10320         * config/frv/predicates.md: Include it.
10321         * config/frv/frv.c (reg_class_from_letter): Delete.
10322         (frv_option_override): Don't initialize it.
10323         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10324         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10325         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10326         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10327         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10328         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10329         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10330         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10331         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10332         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10333         (REG_CLASS_FROM_CONSTRAINT): Delete.
10334
10335 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10336
10337         PR middle-end/47581
10338         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10339         if frame size is 0 in a leaf function.
10340
10341 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10342
10343         PR pch/14940
10344         * config/alpha/host-osf.c: New file.
10345         * config/alpha/x-osf: New file.
10346         * config.host (alpha*-dec-osf*): Use it.
10347
10348 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10349
10350         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10351         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10352         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10353         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10354         type to const_rtx.
10355         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10356
10357 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10358
10359         * config/stormy16/constraints.md: New file.
10360         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10361         Use satisfies_constraint_Q and satisfies_constraint_R.
10362         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10363         Delete.
10364         (xstormy16_legitiamte_address_p): Declare.
10365         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10366         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10367         (EXTRA_CONSTRAINT): Delete.
10368         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10369         Un-staticize.
10370         (xstormy16_extra_constraint_p): Delete.
10371
10372 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10373
10374         PR tree-optimization/46494
10375         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10376         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10377         (pass_rtl_loop_done): Add TODO_verify_flow.
10378         * fwprop.c (pass_rtl_fwprop): Likewise.
10379         * modulo-sched.c (pass_sms): Likewise.
10380         * tree-ssa-dom.c (pass_dominator): Likewise.
10381         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10382         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10383         (pass_tree_loop_done): Likewise.
10384         * tree-ssa-pre.c (execute_pre): Likewise.
10385         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10386         * tree-ssa-sink.c (pass_sink_code): Likewise.
10387         * tree-vrp.c (pass_vrp): Likewise.
10388
10389 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10390
10391         * config/v850/constraints.md: New file.
10392         * config/v850/v850.md: Include it.
10393         * config/v850/predicates.md (reg_or_0_operand): Use
10394         satisfies_constraint_G.
10395         (special_symbolref_operand): Use satisfies_constraint_K.
10396         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10397         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10398         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10399         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10400         (EXTRA_CONSTRAINT): Delete.
10401         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10402         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10403         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10404
10405 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10406
10407         PR target/47696
10408         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10409         description.
10410
10411 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10412
10413         * config/mcore/constraints.md: New file.
10414         * config/mcore/mcore.md: Include it.
10415         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10416         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10417         (REG_CLASS_FROM_LETTER): Delete.
10418         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10419         insn_const_int_ok_for_constraint.
10420         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10421         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10422         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10423         (EXTRA_CONSTRAINT): Delete.
10424
10425 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10426
10427         PR ada/41929
10428         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10429         (IS_SIGHANDLER): Define.
10430         (sparc64_is_sighandler): New function, split off from
10431         sparc64_fallback_frame_state.
10432         (sparc_is_sighandler): New function, split off from
10433         sparc_fallback_frame_state.
10434         (sparc64_fallback_frame_state): Merge with ...
10435         (sparc_fallback_frame_state): ... this into ...
10436         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10437         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10438         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10439         stack instead of hardcoded offsets.
10440
10441 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10442
10443         PR target/45808
10444         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10445
10446 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10447
10448         * configure: Regenerate.
10449
10450 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10451
10452         PR driver/45731
10453         * gcc.c (asm_options): Correct spec matching --target-help.
10454
10455 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10456
10457         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10458         to gimple call error.
10459
10460 2011-02-12  Mike Stump  <mikestump@comcast.net>
10461
10462         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10463         comments in backslash regions.
10464
10465 2011-02-12  Mike Stump  <mikestump@comcast.net>
10466             Jakub Jelinek  <jakub@redhat.com>
10467             Iain Sandoe  <iains@gcc.gnu.org>
10468
10469         PR target/47324
10470         * dwarf2out.c (output_cfa_loc): When required, apply the
10471         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10472         (output_loc_sequence): Likewise.
10473         (output_loc_operands_raw): Likewise.
10474         (output_loc_sequence_raw): Likewise.
10475         (output_cfa_loc): Likewise.
10476         (output_loc_list): Suppress register number adjustment when
10477         calling output_loc_sequence()
10478         (output_die): Likewise.
10479
10480 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10481
10482         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10483         Remove macros.
10484         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10485         xtensa_memory_move_cost): New functions.
10486         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10487
10488 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10489
10490         PR lto/47225
10491         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10492         in the current directory.
10493         * configure: Rebuilt.
10494
10495 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10496
10497         * config/darwin.c (darwin_override_options): Add a hunk missed
10498         from the commit of r168571.  Trim comment line lengths and
10499         correct indents of the preceding block.
10500
10501 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10502
10503         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10504         the switch.
10505
10506 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10507
10508         * common.opt (nostartfiles): New Driver option.
10509
10510 2011-02-11  Xinliang David Li  <davidxl@google.com>
10511
10512         PR tree-optimization/47707
10513         * tree-chrec.c (convert_affine_scev): Keep type precision.
10514
10515 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10516
10517         PR tree-optimization/47420
10518         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10519
10520 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10521
10522         PR rtl-optimization/47614
10523         * rtl.h (check_for_inc_dec): Declare.
10524         * dse.c (check_for_inc_dec): Externalize...
10525         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10526         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10527
10528 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10529
10530         PR driver/47678
10531         * gcc.c (main): Do not compile inputs if there were errors in
10532         option handling.
10533         * opts-common.c (read_cmdline_option): Check for wrong language
10534         after other error checks.
10535
10536 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
10537
10538         * cgraph.c: Fix comment typos.
10539         * cgraph.h: Likewise.
10540         * cgraphunit.c: Likewise.
10541         * ipa-cp.c: Likewise.
10542         * ipa-inline.c: Likewise.
10543         * ipa-prop.c: Likewise.
10544         * ipa-pure-const.c: Likewise.
10545         * ipa-ref.c: Likewise.
10546         * ipa-reference.c: Likewise.
10547
10548 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10549
10550         PR debug/47684
10551         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10552
10553 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10554
10555         PR testsuite/47400
10556         * doc/sourcebuild.texi (Require Support): Document
10557         dg-require-ascii-locale.
10558
10559 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
10560
10561         * doc/lto.texi (Write summary): Fix missing parentheses.
10562
10563 2011-02-10  DJ Delorie  <dj@redhat.com>
10564
10565         * config/m32c/m32c.c (m32c_option_override): Disable
10566         -fcombine-stack-adjustments until flag value tracking and compare
10567         optimization can be rewritten.
10568
10569 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
10570
10571         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10572         PROCESSOR_POWER7.
10573         (PROCESSOR_DEFAULT64): Likewise.
10574
10575 2011-02-10  Richard Henderson  <rth@redhat.com>
10576
10577         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10578         change from 2011-02-03.
10579         * config/rx/rx.c (flags_from_code): Likewise.
10580         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10581         is valid, n/pz otherwise.
10582         (rx_select_cc_mode): Return CCmode if Y is not zero.
10583
10584 2011-02-10  Richard Guenther  <rguenther@suse.de>
10585
10586         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10587
10588 2011-02-10  Richard Guenther  <rguenther@suse.de>
10589
10590         PR tree-optimization/47677
10591         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10592
10593 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10594
10595         PR target/47665
10596         * combine.c (make_compound_operation): Only change shifts into
10597         multiplication for SCALAR_INT_MODE_P.
10598
10599 2011-02-10  Jie Zhang  <jie@codesourcery.com>
10600
10601         PR testsuite/47622
10602         Revert
10603         2011-02-05  Jie Zhang  <jie@codesourcery.com>
10604         PR debug/42631
10605         * web.c (entry_register): Don't clobber the number of the
10606         first uninitialized reference in used[].
10607
10608 2011-02-09  Richard Guenther  <rguenther@suse.de>
10609
10610         PR tree-optimization/47664
10611         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10612         all edges again.
10613
10614 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
10615
10616         PR target/46481
10617         PR target/47032
10618         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10619         PROCESSOR_POWER7.
10620         (PROCESSOR_DEFAULT64): Same.
10621         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10622
10623 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10624
10625         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10626
10627 2011-02-09  Martin Jambor  <mjambor@suse.cz>
10628
10629         PR middle-end/45505
10630         * tree-sra.c (struct access): New flags grp_scalar_read and
10631         grp_scalar_write.  Changed description of assignment read and write
10632         flags.
10633         (dump_access): Dump new flags, reorder all of them.
10634         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10635         to detect multiple scalar reads.
10636         (analyze_access_subtree): Use the new scalar read write flags instead
10637         of the old flags.  Adjusted comments.
10638
10639 2011-02-08  DJ Delorie  <dj@redhat.com>
10640
10641         PR target/47548
10642         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10643         patterns.
10644
10645 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10646
10647         * config/m68k/uclinux.opt: New.
10648         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10649
10650 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10651
10652         * config/cris/elf.opt (sim): New Driver option.
10653
10654 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10655
10656         * config/xtensa/elf.opt: New.
10657         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10658
10659 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10660
10661         * config/vax/elf.opt: New.
10662         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10663
10664 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10665
10666         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10667
10668 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10669
10670         * config/gnu-user.opt: New.
10671         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10672         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10673         *-*-uclinux*): Use gnu-user.opt.
10674
10675 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
10676
10677         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10678         * config/i386/gnu.h (CPP_SPEC): Likewise.
10679
10680 2011-02-08  Ian Lance Taylor  <iant@google.com>
10681
10682         * common.opt (fcx-limited-range): Add SetByCombined flag.
10683         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10684         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10685         (fassociative-math, freciprocal-math): Likewise.
10686         (funsafe-math-optimizations): Likewise.
10687         * opth-gen.awk: Handle SetByCombined.
10688         * optc-gen.awk: Likewise.
10689         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10690         (set_unsafe_math_optimizations_flags): Likewise.
10691         * doc/options.texi (Option properties): Document SetByCombined.
10692
10693 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10694
10695         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10696         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10697         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10698         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10699         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10700
10701 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
10702
10703         PR tree-optimization/46834
10704         PR tree-optimization/46994
10705         PR tree-optimization/46995
10706         * graphite-sese-to-poly.c (used_outside_reduction): New.
10707         (detect_commutative_reduction): Call used_outside_reduction.
10708         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10709         translate_scalar_reduction_to_array only when at least one
10710         loop-phi/close-phi tuple has been detected.
10711
10712 2011-02-08  Richard Guenther  <rguenther@suse.de>
10713
10714         PR middle-end/47639
10715         * tree-vect-generic.c (expand_vector_operations_1): Update
10716         stmts here ...
10717         (expand_vector_operations): ... not here.  Cleanup EH info
10718         and the CFG if required.
10719
10720 2011-02-08  Richard Guenther  <rguenther@suse.de>
10721
10722         PR tree-optimization/47641
10723         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10724         require type compatibility.
10725
10726 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10727
10728         * gimple-low.c (lower_function_body): Don't remove the location of
10729         the return statement here.
10730         (lower_gimple_return): Do it here instead but only if the return
10731         statement is actually used twice.
10732
10733 2011-02-08  Richard Guenther  <rguenther@suse.de>
10734
10735         PR tree-optimization/47632
10736         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10737         unused up_to_stmt parameter, return whether cfg-cleanup is
10738         necessary, remove EH info properly.
10739         (forward_propagate_into_gimple_cond): Adjust caller.
10740         (forward_propagate_into_cond): Likewise.
10741         (forward_propagate_comparison): Likewise.
10742         (tree_ssa_forward_propagate_single_use_vars): Make
10743         forward_propagate_comparison case similar to the two others.
10744
10745 2011-02-08  Nick Clifton  <nickc@redhat.com>
10746
10747         * config/mn10300/mn10300.opt (mliw): New command line option.
10748         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10749         (liw_bundling): New automaton.
10750         (liw): New attribute.
10751         (liw_op): New attribute.
10752         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10753         (movsi_internal): Add LIW attributes.
10754         (andsi3): Likewise.
10755         (iorsi3): Likewise.
10756         (xorsi3): Likewise.
10757         (addsi3): Separate register and immediate alternatives.
10758         Add LIW attributes.
10759         (subsi3): Likewise.
10760         (cmpsi): Likewise.
10761         (aslsi3): Likewise.
10762         (lshrsi3): Likewise.
10763         (ashrsi3): Likewise.
10764         (liw): New pattern.
10765         * config/mn10300/mn10300.c (liw_op_names): New
10766         (mn10300_print_operand): Handle 'W' operand descriptor.
10767         (extract_bundle): New function.
10768         (check_liw_constraints): New function.
10769         (liw_candidate): New function.
10770         (mn10300_bundle_liw): New function.
10771         (mn10300_reorg): New function.
10772         (TARGET_MACHINE_DEPENDENT_REORG): Define.
10773         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10774         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10775         __LIW__ or __NO_LIW__.
10776         * doc/invoke.texi: Describe the -mliw command line option.
10777
10778 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10779
10780         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10781         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10782         pthread_mutex_unlock): Remove.
10783         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10784         * config/pa/t-pa64: Likewise.
10785         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10786         shared libc if not linking against libpthread.
10787         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10788
10789 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
10790
10791         PR target/47558
10792         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10793         on 10.6 and later to ensure that we always use the unwinder from
10794         the system.  Only add -no_compact_unwind when tarteting darwin
10795         10.6 or later.
10796
10797 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
10798
10799         PR target/46997
10800         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10801         (vec_interleave_lowv2sf): Ditto.
10802         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10803         (vec_extract_oddv2sf): Ditto.
10804
10805 2011-02-07  Mike Stump  <mikestump@comcast.net>
10806
10807         PR target/42333
10808         Add __ieee_divdc3 entry point.
10809         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10810         entry point.
10811         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10812         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10813         * config/darwin.c (darwin_rename_builtins): Add.
10814         * config/darwin-protos.h (darwin_rename_builtins): Add.
10815
10816 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
10817
10818         PR target/47636
10819         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10820         for the condition.
10821
10822 2011-02-07  Mike Stump  <mikestump@comcast.net>
10823
10824         * config/darwin.opt (mmacosx-version-min): Update default OS version.
10825
10826 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
10827
10828         PR target/47534
10829         * config/avr/libgcc.S (exit): Move .endfunc
10830
10831 2011-02-07  Richard Guenther  <rguenther@suse.de>
10832
10833         PR tree-optimization/47615
10834         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10835         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10836         (run_scc_vn): Initialize it.
10837         (visit_reference_op_load): Use it.
10838         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10839
10840 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10841
10842         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10843         DImode trapping arithmetic libfuncs.
10844
10845 2011-02-07  Richard Guenther  <rguenther@suse.de>
10846
10847         PR tree-optimization/47621
10848         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10849         two duplicates ...
10850         (execute_update_addresses_taken): ... here.  Make it more
10851         conservative in what we accept.
10852
10853 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10854
10855         * config/sparc/freebsd.h (ASM_SPEC): Define.
10856         * config/sparc/vxworks.h (ASM_SPEC): Define.
10857
10858 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10859
10860         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10861
10862 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
10863
10864         * doc/invoke.texi: Remove reference to compiler internals from
10865         user documentation.
10866
10867         * reg-notes.def: Remove REG_VALUE_PROFILE.
10868         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10869
10870 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
10871
10872         PR middle-end/47610
10873         * varasm.c (default_section_type_flags): If decl is NULL,
10874         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10875
10876 2011-02-05  Jie Zhang  <jie@codesourcery.com>
10877
10878         PR debug/42631
10879         * web.c (entry_register): Don't clobber the number of the
10880         first uninitialized reference in used[].
10881
10882 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
10883
10884         PR tree-optimization/46194
10885         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10886         (build_classic_dist_vector_1): Do not represent classic distance
10887         vectors when the access functions are variating in different loops.
10888
10889 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10890
10891         * config/mips/iris6.opt: New.
10892         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10893
10894 2011-02-04  Richard Henderson  <rth@redhat.com>
10895             Steve Ellcey  <sje@cup.hp.com>
10896
10897         PR target/46997
10898         * config/ia64/predicates.md (mux1_brcst_element): New.
10899         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10900         * config/ia64/ia64.c (ia64_unpack_assemble): New.
10901         (ia64_unpack_sign): New.
10902         (ia64_expand_unpack): Rewrite using new routines.
10903         (ia64_expand_widen_sum): Ditto.
10904         (ia64_expand_dot_prod_v8qi): Ditto.
10905         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10906         routines, add endian check.
10907         (pmpy2_even): Rename from pmpy2_r, add endian check.
10908         (pmpy2_odd): Rename from pmpy2_l, add endian check.
10909         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10910         (vec_widen_smult_hi_v4hi): Ditto.
10911         (vec_widen_umult_lo_v4hi): Ditto.
10912         (vec_widen_umult_hi_v4hi): Ditto.
10913         (mulv2si3): Change endian checks.
10914         (sdot_prodv4hi): Rewrite with new calls.
10915         (udot_prodv4hi): New.
10916         (vec_pack_ssat_v4hi): Add endian check.
10917         (vec_pack_usat_v4hi): Ditto.
10918         (vec_pack_ssat_v2si): Ditto.
10919         (max1_even): Rename from max1_r, add endian check.
10920         (max1_odd): Rename from max1_l, add endian check.
10921         (*mux1_rev): Format change.
10922         (*mux1_mix): Ditto.
10923         (*mux1_shuf): Ditto.
10924         (*mux1_alt): Ditto.
10925         (*mux1_brcst_v8qi): Use new predicate.
10926         (vec_extract_evenv8qi): Remove endian check.
10927         (vec_extract_oddv8qi): Ditto.
10928         (vec_interleave_lowv4hi): Format change.
10929         (vec_interleave_highv4hi): Ditto.
10930         (mix2_even): Rename from mix2_r, add endian check.
10931         (mix2_odd): Rename from mux2_l, add endian check.
10932         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10933         (vec_extract_evenodd_helper): Format change.
10934         (vec_extract_evenv4hi): Remove endian check.
10935         (vec_extract_oddv4hi): Remove endian check.
10936         (vec_interleave_lowv2si): Format change.
10937         (vec_interleave_highv2si): Format change.
10938         (vec_initv2si): Remove endian check.
10939         (vecinit_v2si): Add endian check.
10940         (reduc_splus_v2sf): Add endian check.
10941         (reduc_smax_v2sf): Ditto.
10942         (reduc_smin_v2sf): Ditto.
10943         (vec_initv2sf): Remove endian check.
10944         (fpack): Add endian check.
10945         (fswap): Add endian check.
10946         (vec_interleave_highv2sf): Add endian check.
10947         (vec_interleave_lowv2sf): Add endian check.
10948         (fmix_lr): Add endian check.
10949         (vec_setv2sf): Format change.
10950         (*vec_extractv2sf_0_be): Use shift to extract operand.
10951         (*vec_extractv2sf_1_be): New.
10952         (vec_pack_trunc_v4hi): Add endian check.
10953         (vec_pack_trunc_v2si): Format change.
10954
10955 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
10956
10957         PR inline-asm/23200
10958         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
10959         do bb, locus and block comparison and disallow loads if it is not set.
10960         (stmt_is_replaceable_p): New function.
10961         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10962         callers.
10963         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10964         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10965         SSA_NAME_DEF_STMT.
10966         * tree-flow.h (stmt_is_replaceable_p): New prototype.
10967
10968 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10969
10970         * config/rs6000/xilinx.opt: New.
10971         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10972
10973 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10974
10975         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10976
10977 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
10978
10979         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10980         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10981         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10982         secondary_reload_info, xtensa_secondary_reload): Remove.
10983         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10984         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10985         (xtensa_preferred_reload_class): Make static. Change return and
10986         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10987         Use CONST_DOUBLE_P predicate.
10988         (xtensa_preferred_output_reload_class): New function.
10989         (xtensa_secondary_reload): Make static.
10990
10991 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
10992
10993         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10994         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10995         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10996
10997 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10998
10999         PR middle-end/31490
11000         * output.h (SECTION_RELRO): Define.
11001         (SECTION_MACH_DEP): Adjust.
11002         (get_variable_section): New prototype.
11003         * varpool.c (varpool_finalize_named_section_flags): New function.
11004         (varpool_assemble_pending_decls): Call it.
11005         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11006         * cgraphunit.c (cgraph_output_in_order): Call
11007         varpool_finalize_named_section_flags.
11008         * varasm.c (get_section): Allow section flags conflicts between
11009         relro and read-only sections if the section hasn't been declared yet.
11010         Set SECTION_OVERRIDE after diagnosing section type conflict.
11011         (get_variable_section): No longer static.
11012         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11013         readonly sections that need relocations.
11014         (decl_readonly_section_1): New function.
11015         (decl_readonly_section): Use it.
11016
11017         Revert:
11018         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11019                     Steve Ellcey  <sje@cup.hp.com>
11020
11021         PR middle-end/31490
11022         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11023         if section attribute used.
11024
11025 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11026
11027         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11028         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11029         (darwin_init_sections): Remove assertion.
11030
11031 2011-02-03  Nick Clifton  <nickc@redhat.com>
11032
11033         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11034         lt and ge.
11035         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11036         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11037         instead of "n" and "pz".
11038         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11039         CC_FLAG_S.
11040
11041 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11042
11043         PR target/47312
11044         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11045         fma, expand FMA_EXPR as fma{,f,l} call.
11046
11047         PR lto/47274
11048         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11049         copy them into a unsigned char variable and pass address of it to
11050         lto_output_data_stream.
11051
11052         PR target/47564
11053         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11054         around backend_init_target and lang_dependent_init_target calls.
11055         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11056         (verify_cgraph_node): Don't call set_cfun here.  Use
11057         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11058         Set error_found for incorrectly represented calls to thunks.
11059
11060 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11061
11062         PR debug/43092
11063         PR rtl-optimization/43494
11064         * rtl.h (for_each_inc_dec_fn): New type.
11065         (for_each_inc_dec): Declare.
11066         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11067         (for_each_inc_dec_find_inc_dec): New fn.
11068         (for_each_inc_dec_find_mem): New fn.
11069         (for_each_inc_dec): New fn.
11070         * dse.c (struct insn_size): Remove.
11071         (replace_inc_dec, replace_inc_dec_mem): Remove.
11072         (emit_inc_dec_insn_before): New fn.
11073         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11074         (canon_address): Pass mem modes to cselib_lookup.
11075         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11076         (cselib_lookup_from_insn): Likewise.
11077         (cselib_subst_to_values): Likewise.
11078         * cselib.c (find_slot_memmode): New var.
11079         (cselib_find_slot): New fn.  Use it instead of
11080         htab_find_slot_with_hash everywhere.
11081         (entry_and_rtx_equal_p): Use find_slot_memmode.
11082         (autoinc_split): New fn.
11083         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11084         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11085         Deal with autoinc.  Special-case recursion into MEMs.
11086         (cselib_hash_rtx): Likewise.
11087         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11088         address and MEM modes.
11089         (cselib_subst_to_values): Add memmode, pass it on.
11090         Deal with autoinc.
11091         (cselib_lookup): Add memmode argument, pass it on.
11092         (cselib_lookup_from_insn): Add memmode.
11093         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11094         (struct cselib_record_autoinc_data): New.
11095         (cselib_record_autoinc_cb): New fn.
11096         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11097         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11098         (cselib_process_insn): ... here.
11099         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11100         to cselib_lookup.
11101         (add_uses): Likewise, also to cselib_subst_to_values.
11102         (add_stores): Likewise.
11103         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11104         cselib_subst_to_values.
11105         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11106         * gcse.c (do_local_cprop): Adjusted.
11107         * postreload.c (reload_cse_simplify_set): Adjusted.
11108         (reload_cse_simplify_operands): Adjusted.
11109         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11110
11111 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11112
11113         PR tree-optimization/45122
11114         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11115         unsafe assumptions when there's more than one loop exit.
11116
11117 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11118
11119         PR target/47272
11120         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11121         Document using vector double with the load/store builtins, and
11122         that the load/store builtins always use Altivec instructions.
11123
11124         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11125         to use altivec memory instructions, even on VSX.
11126         (vector_altivec_store_<mode>): Ditto.
11127
11128         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11129         function.
11130
11131         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11132         V2DF, V2DI support to load/store overloaded builtins.
11133
11134         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11135         altivec load/store builtins for V2DF/V2DI types.
11136
11137         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11138         set avoid indexed addresses on power6 if -maltivec.
11139         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11140         vector_altivec_load/vector_altivec_store builtins.
11141         (altivec_expand_st_builtin): Ditto.
11142         (altivec_expand_builtin): Add VSX memory builtins.
11143         (rs6000_init_builtins): Add V2DI types to internal types.
11144         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11145         load/store builtins.
11146         (rs6000_address_for_altivec): Insure memory address is appropriate
11147         for Altivec.
11148
11149         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11150         vec_vsx_ld and vec_vsx_st.
11151         (vsx_store_<mode>): Ditto.
11152
11153         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11154         variables to hold long long types for VSX vector memory builtins.
11155         (RS6000_BTI_unsigned_long_long): Ditto.
11156         (long_long_integer_type_internal_node): Ditti.
11157         (long_long_unsigned_type_internal_node): Ditti.
11158
11159         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11160         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11161         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11162
11163         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11164         short cuts.
11165         (vec_vsx_st): Ditto.
11166
11167 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11168
11169         * config/pa/pa-hpux10.opt: New.
11170         * config/hpux11.opt (pthread): New Driver option.
11171         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11172         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11173
11174 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11175
11176         * config/ia64/vms.opt: New.
11177         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11178
11179 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11180
11181         PR target/47580
11182         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11183         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11184         generator functions.
11185         (vsx_floatuns<VSi><mode>2): Ditto.
11186         (vsx_fix_trunc<mode><VSi>2): Ditto.
11187         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11188
11189 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11190
11191         * config/i386/djgpp.opt (posix): New Driver option.
11192
11193 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11194
11195         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11196         Move to the unsupported targets list.
11197
11198 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11199
11200         PR rtl-optimization/47525
11201         * df-scan.c: Update copyright years.
11202         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11203         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11204
11205 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11206
11207         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11208         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11209         (ASM_OUTPUT_ASCII): Remove.
11210         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11211
11212 2011-02-02  Jeff Law  <law@redhat.com>
11213
11214         PR middle-end/47543
11215         * reload.c (find_reloads_address): Handle reg+d address where both
11216         components are invalid by reloading the entire address.
11217
11218 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11219             Richard Guenther  <rguenther@suse.de>
11220
11221         PR tree-optimization/40979
11222         PR bootstrap/47044
11223         * passes.c (init_optimization_passes): After LIM call copy_prop
11224         and DCE to clean up.
11225         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11226
11227 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11228
11229         PR tree-optimization/47576
11230         PR tree-optimization/47555
11231         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11232         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11233         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11234         * tree-scalar-evolution.c (follow_ssa_edge): Use
11235         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11236
11237 2011-02-02  Richard Guenther  <rguenther@suse.de>
11238
11239         PR tree-optimization/47566
11240         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11241
11242 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11243
11244         PR debug/47106
11245         PR debug/47402
11246         * tree-inline.c (declare_return_variable): Remove unused caller
11247         variable.
11248
11249         PR debug/47106
11250         PR debug/47402
11251         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11252         * cfgexpand.c (account_used_vars_for_block): Use them.
11253         * tree-nrv.c (tree_nrv): Likewise.
11254         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11255         (dump_scope_block): Likewise.
11256         (remove_unused_locals): Likewise.
11257
11258         PR debug/47106
11259         PR debug/47402
11260         * tree-inline.c (declare_return_variable): Add result decl to
11261         local decls only once.
11262         * gimple-low.c (record_vars_into): Mark newly-created variables
11263         as referenced.
11264
11265 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11266
11267         PR debug/47498
11268         PR debug/47501
11269         PR debug/45136
11270         PR debug/45130
11271         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11272         debug insns.
11273         (no_real_insns_p, schedule_block, set_priorities): Drop special
11274         treatment of boundary debug insns.
11275         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11276         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11277         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11278         (BOUNDARY_DEBUG_INSN_P): Likewise.
11279         (SCHEDULE_DEBUG_INSN_P): Likewise.
11280         * sched-rgn.c (init_ready_list): Drop special treatment of
11281         boundary debug insns.
11282         * final.c (rest_of_clean_state): Clear notes' BB.
11283
11284 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11285
11286         * config/openbsd.opt (assert=): New Driver option.
11287
11288 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11289
11290         * config/i386/nto.opt: New.
11291         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11292
11293 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11294
11295         * config/i386/netware.opt: New.
11296         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11297
11298 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11299
11300         * config/interix.opt (posix): New Driver option.
11301
11302 2011-02-01  DJ Delorie  <dj@redhat.com>
11303
11304         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11305
11306         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11307         class for A0/A1.
11308
11309 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11310
11311         PR tree-optimization/47561
11312         * toplev.c (process_options): Print the Graphite flags.  Add
11313         flag_loop_flatten to the list of options requiring Graphite.
11314
11315 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11316
11317         * config/i386/cygming.opt (posix): New Driver option.
11318
11319 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11320
11321         * config/arm/vxworks.opt: New.
11322         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11323
11324 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11325
11326         * config/alpha/elf.opt: New.
11327         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11328         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11329
11330 2011-02-01  Richard Guenther  <rguenther@suse.de>
11331
11332         PR tree-optimization/47559
11333         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11334         store-motion on references that can throw.
11335
11336 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11337
11338         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11339         * tree-pass.h (TDF_CSELIB): New macro.
11340         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11341         cselib_lookup): Check for it rather than for TDF_DETAILS.
11342
11343 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11344
11345         PR driver/47547
11346         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11347         is HOST_BIT_BUCKET.
11348
11349         * opts.c (finish_options): Don't add x_aux_base_name if it is
11350         HOST_BIT_BUCKET.
11351
11352 2011-02-01  Richard Guenther  <rguenther@suse.de>
11353
11354         PR tree-optimization/47555
11355         Revert
11356         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11357
11358         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11359
11360 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11361
11362         PR gcc/46692
11363         * config/lm32/t-lm32: Add multilib for all CPU options.
11364
11365 2011-02-01  Richard Guenther  <rguenther@suse.de>
11366
11367         PR tree-optimization/47541
11368         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11369         sure to have a field at offset zero.
11370
11371 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11372
11373         * config/arc/arc.opt (EB, EL): New Driver options.
11374
11375 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11376
11377         * config/alpha/osf5.opt: New.
11378         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11379
11380 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11381
11382         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11383
11384 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11385
11386         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11387         -floop-interchange.
11388         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11389         is an alias of -floop-interchange and that it requires the
11390         Graphite infrastructure.
11391         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11392         flag_loop_interchange based on the value of flag_tree_loop_linear.
11393
11394 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11395             Richard Guenther  <rguenther@suse.de>
11396
11397         PR tree-optimization/47538
11398         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11399         type instead of r1type, except for comparisons.  For right
11400         shifts and comparisons punt if there are mismatches in
11401         sizetype vs. non-sizetype types.
11402
11403 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11404
11405         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11406         avx_runtime.
11407
11408 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11409
11410         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11411         version number.
11412         * configure: Regenerate.
11413
11414 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11415
11416         * configure.ac (gcc_cv_ld_static_option): Define.
11417         (gcc_cv_ld_dynamic_option): Define.
11418         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11419         instead.
11420         (HAVE_LD_STATIC_DYNAMIC): Update message.
11421         (LD_STATIC_OPTION): Define.
11422         (LD_DYNAMIC_OPTION): Define.
11423         * configure: Regenerate.
11424         * config.in: Regenerate.
11425         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11426         HAVE_LD_STATIC_DYNAMIC]: Use them.
11427
11428 2011-01-31  Nick Clifton  <nickc@redhat.com>
11429
11430         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11431         registers inside interrupt handlers if the handler is not a leaf
11432         function.
11433
11434 2011-01-31  Nick Clifton  <nickc@redhat.com>
11435
11436         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11437         reg_renumber returning an INVALID_REGNUM.
11438
11439 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11440
11441         PR libgcj/44341
11442         * doc/install.texi: Document host options discarded when cross
11443         configuring target libraries.
11444
11445 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11446
11447         Reverted:
11448         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11449         PR debug/45136
11450         PR debug/45130
11451         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11452         debug insns.
11453         (no_real_insns_p, schedule_block, set_priorities): Drop special
11454         treatment of boundary debug insns.
11455         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11456         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11457         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11458         (BOUNDARY_DEBUG_INSN_P): Likewise.
11459         (SCHEDULE_DEBUG_INSN_P): Likewise.
11460         * sched-rgn.c (init_ready_list): Drop special treatment of
11461         boundary debug insns.
11462         * final.c (rest_of_clean-state): Clear notes' BB.
11463
11464 2011-01-31  Alan Modra  <amodra@gmail.com>
11465
11466         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11467         toc relative expressions as we do in print_operand_address.
11468
11469 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11470
11471         * doc/extend.texi: Follow spelling conventions.
11472         * doc/invoke.texi: Fix a typo.
11473
11474 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11475
11476         * config/hpux11.opt: New.
11477         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11478         ia64*-*-hpux*): Use hpux11.opt.
11479
11480 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11481
11482         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11483         to tmake_file.
11484
11485 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11486
11487         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11488         support sites.
11489
11490 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11491
11492         * doc/install.texi (Binaries): Remove outdated reference for
11493         Motorola 68HC11/68HC12 downloads.
11494
11495 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11496
11497         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11498         Drepper's paper.
11499
11500 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11501
11502         PR bootstrap/47147
11503         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11504         used by NetBSD.
11505
11506 2011-01-28  Ahmad Sharif  <asharif@google.com>
11507
11508         * value-prof.c (check_counter): Corrected error message.
11509
11510 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11511
11512         * config/arm/arm.c (arm_legitimize_reload_address): New.
11513         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11514         arm_legitimize_reload_address.
11515         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11516
11517 2011-01-28  Ian Lance Taylor  <iant@google.com>
11518
11519         * godump.c (go_define): Ignore macros whose definitions include
11520         two adjacent operands.
11521
11522 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11523
11524         PR target/42894
11525         * varasm.c (force_const_mem): Store copy of x in desc->constant
11526         instead of x itself.
11527         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11528         itself into REG_EQUAL note.
11529
11530 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11531
11532         * config/freebsd.opt (posix, rdynamic): New Driver options.
11533
11534 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11535
11536         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11537         -Bstatic/-Bdynamic.
11538         * configure: Regenerate.
11539
11540 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
11541
11542         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11543         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11544
11545 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
11546
11547         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11548         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11549         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11550         (s390_preferred_reload_class): Make static. Change return and
11551         'rclass' argument type to reg_class_t.
11552
11553 2011-01-27  Jan Hubicka  <jh@suse.cz>
11554
11555         PR middle-end/46949
11556         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11557         (process_function_and_variable_attributes): Check defined weakrefs.
11558
11559 2011-01-27  Martin Jambor  <mjambor@suse.cz>
11560
11561         PR tree-optimization/47228
11562         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11563         build_ref_for_offset.
11564
11565 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11566
11567         * config/spu/spu-elf.h (ASM_SPEC): Remove.
11568
11569 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
11570
11571         PR rtl-optimization/46856
11572         * postreload.c (reload_combine_recognize_const_pattern): Do not
11573         separate cc0 setter and user on cc0 targets.
11574
11575 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
11576
11577         PR c/43082
11578         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11579         passed a VOID_TYPE expression, immediately emit an error and
11580         return error_mark_node.
11581
11582 2011-01-26  Jeff Law  <law@redhat.com>
11583
11584         PR rtl-optimization/47464
11585         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11586         rather than may_trap_p as needed.
11587
11588 2011-01-26  DJ Delorie  <dj@redhat.com>
11589
11590         PR rtl-optimization/46878
11591         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11592         setter/user dependency as well.
11593
11594 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11595
11596         PR rtl-optimization/44469
11597         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11598         after removing trivially dead basic blocks.
11599
11600 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11601
11602         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11603         * config/frv/frv.h (LINK_SPEC): Likewise.
11604         * config/i386/netware.h (LINK_SPEC): Likewise.
11605         * config/m68k/linux.h (ASM_SPEC): Likewise.
11606         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11607         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11608         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11609         * config/sparc/linux.h (ASM_SPEC): Likewise.
11610         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11611         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11612
11613 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11614
11615         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11616         * config/frv/frv.h (ASM_SPEC): Likewise.
11617         * config/m68k/linux.h (ASM_SPEC): Likewise.
11618         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11619         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11620         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11621         * config/sparc/linux.h (ASM_SPEC): Likewise.
11622         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11623         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11624
11625 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11626
11627         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11628         * config/frv/frv.h (LINK_SPEC): Likewise.
11629         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11630
11631 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11632
11633         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11634         * config/frv/frv.h (ASM_SPEC): Likewise.
11635         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11636         * config/m68k/linux.h (ASM_SPEC): Likewise.
11637         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11638         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11639         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11640         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11641         * config/sparc/linux.h (ASM_SPEC): Likewise.
11642         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11643         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11644         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11645
11646 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
11647
11648         PR target/46997
11649         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11650         (*mux2): Ditto.
11651         (vec_extract_evenodd_help): Ditto.
11652         (vec_extract_evenv4hi): Ditto.
11653         (vec_extract_oddv4hi): Ditto.
11654         (vec_interleave_lowv2si): Ditto.
11655         (vec_interleave_highv2si): Ditto.
11656         (vec_extract_evenv2si): Ditto.
11657         (vec_extract_oddv2si: Ditto.
11658         (vec_pack_trunc_v2si): Ditto.
11659
11660 2011-01-22  Jan Hubicka  <jh@suse.cz>
11661
11662         PR target/47237
11663         * cgraph.h (cgraph_local_info): New field can_change_signature.
11664         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11665         signature can change.
11666         (ipcp_estimate_growth): Call sequence simplify only if calle signature
11667         can change.
11668         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11669         (cgraph_function_versioning): We can not change signature of functions
11670         that don't allow that.
11671         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11672         (lto_input_node): Likewise.
11673         * ipa-inline.c (compute_inline_parameters): Compute
11674         local.can_change_signature.
11675         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11676         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11677         functions that can not change signature.
11678         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11679         init_cumulative_args): Do not use local calling conventions
11680         for functions that can not change signature.
11681
11682 2011-01-22  Jan Hubicka  <jh@suse.cz>
11683
11684         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11685
11686 2011-01-26  Richard Guenther  <rguenther@suse.de>
11687
11688         PR tree-optimization/47190
11689         * cgraphunit.c (process_common_attributes): New function.
11690         (process_function_and_variable_attributes): Use it.
11691
11692 2011-01-26  Richard Guenther  <rguenther@suse.de>
11693
11694         PR lto/47423
11695         * cgraphbuild.c (record_eh_tables): Record reference to personality
11696         function.
11697
11698 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
11699
11700         PR debug/45454
11701         * sel-sched.c (moveup_expr): Don't let debug insns prevent
11702         non-debug insns from moving up.
11703
11704 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11705
11706         PR target/40125
11707         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11708         t-dlldir{,-x} fragment for build and add it to tmake_file.
11709         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11710         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11711         * config/i386/t-dlldir: New file.
11712         (SHLIB_DLLDIR): Define.
11713         * config/i386/t-dlldir-x: New file.
11714         (SHLIB_DLLDIR): Define.
11715         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11716         (SHLIB_INSTALL): Use it.
11717
11718 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
11719
11720         PR target/47246
11721         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11722         lower bound of the allowed Thumb-2 coprocessor load/store
11723         index range to -256. Add explaining comment.
11724
11725 2011-01-25  Ian Lance Taylor  <iant@google.com>
11726
11727         * godump.c (go_define): Improve lexing of macro expansion to only
11728         accept expressions which match Go spec.
11729
11730 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11731
11732         PR c++/43601
11733         * tree.c (handle_dll_attribute): Handle it.
11734         * doc/extend.texi (@item dllexport): Mention it.
11735         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11736
11737 2011-01-25  Ian Lance Taylor  <iant@google.com>
11738
11739         PR tree-optimization/26854
11740         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11741         (decl_jump_unsafe): Move higher in file, with no other change.
11742         (bind): Set has_jump_unsafe_decl if appropriate.
11743         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11744         (check_earlier_gotos): Likewise.
11745         (c_check_switch_jump_warnings): Likewise.
11746
11747 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
11748
11749         * doc/invoke.texi (Warning Options): Add missing hyphen.
11750         (-fprofile-dir): Minor grammatical fixes.
11751         (-fbranch-probabilities): Likewise.
11752
11753 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11754
11755         PR debug/45136
11756         PR debug/45130
11757         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11758         debug insns.
11759         (no_real_insns_p, schedule_block, set_priorities): Drop special
11760         treatment of boundary debug insns.
11761         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11762         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11763         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11764         (BOUNDARY_DEBUG_INSN_P): Likewise.
11765         (SCHEDULE_DEBUG_INSN_P): Likewise.
11766         * sched-rgn.c (init_ready_list): Drop special treatment of
11767         boundary debug insns.
11768         * final.c (rest_of_clean-state): Clear notes' BB.
11769
11770 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11771
11772         * Makefile.in (LAMBDA_H): Removed.
11773         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11774         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11775         lambda-trans.o, and tree-loop-linear.o.
11776         (lto-symtab.o): Remove dependence on LAMBDA_H.
11777         (tree-loop-linear.o): Remove rule.
11778         (lambda-mat.o): Same.
11779         (lambda-trans.o): Same.
11780         (lambda-code.o): Same.
11781         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11782         (tree-vect-slp.o): Same.
11783         * hwint.h (gcd): Moved here.
11784         (least_common_multiple): Same.
11785         * lambda-code.c: Removed.
11786         * lambda-mat.c: Removed.
11787         * lambda-trans.c: Removed.
11788         * lambda.h: Removed.
11789         * tree-loop-linear.c: Removed.
11790         * lto-symtab.c: Do not include lambda.h.
11791         * omega.c (gcd): Removed.
11792         * passes.c (init_optimization_passes): Remove pass_linear_transform.
11793         * tree-data-ref.c (print_lambda_vector): Moved here.
11794         (lambda_vector_copy): Same.
11795         (lambda_matrix_copy): Same.
11796         (lambda_matrix_id): Same.
11797         (lambda_vector_first_nz): Same.
11798         (lambda_matrix_row_add): Same.
11799         (lambda_matrix_row_exchange): Same.
11800         (lambda_vector_mult_const): Same.
11801         (lambda_vector_negate): Same.
11802         (lambda_matrix_row_negate): Same.
11803         (lambda_vector_equal): Same.
11804         (lambda_matrix_right_hermite): Same.
11805         * tree-data-ref.h: Do not include lambda.h.
11806         (lambda_vector): Moved here.
11807         (lambda_matrix): Same.
11808         (dependence_level): Same.
11809         (lambda_transform_legal_p): Removed declaration.
11810         (lambda_collect_parameters): Same.
11811         (lambda_compute_access_matrices): Same.
11812         (lambda_vector_gcd): Same.
11813         (lambda_vector_new): Same.
11814         (lambda_vector_clear): Same.
11815         (lambda_vector_lexico_pos): Same.
11816         (lambda_vector_zerop): Same.
11817         (lambda_matrix_new): Same.
11818         * tree-flow.h (least_common_multiple): Removed declaration.
11819         * tree-parloops.c (lambda_trans_matrix): Moved here.
11820         (LTM_MATRIX): Same.
11821         (LTM_ROWSIZE): Same.
11822         (LTM_COLSIZE): Same.
11823         (LTM_DENOMINATOR): Same.
11824         (lambda_trans_matrix_new): Same.
11825         (lambda_matrix_vector_mult): Same.
11826         (lambda_transform_legal_p): Same.
11827         * tree-pass.h (pass_linear_transform): Removed declaration.
11828         * tree-ssa-loop.c (tree_linear_transform): Removed.
11829         (gate_tree_linear_transform): Removed.
11830         (pass_linear_transform): Removed.
11831         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11832         flag_loop_interchange.
11833
11834 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11835
11836         PR tree-optimization/47265
11837         PR tree-optimization/47443
11838         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11839         if name still has some uses.
11840
11841 2011-01-25  Martin Jambor  <mjambor@suse.cz>
11842
11843         PR tree-optimization/47382
11844         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11845         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11846
11847 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
11848
11849         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11850         sjlj_except_unwind_info.
11851
11852 2011-01-25  Richard Guenther  <rguenther@suse.de>
11853
11854         PR tree-optimization/47426
11855         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11856         visible functions results escape.
11857
11858 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11859
11860         PR target/45701
11861         * config/arm/arm.c (any_sibcall_uses_r3): New function.
11862         (arm_get_frame_offsets): Use it.
11863
11864 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11865             Jakub Jelinek  <jakub@redhat.com>
11866
11867         PR tree-optimization/47271
11868         * tree-if-conv.c (bb_postdominates_preds): New.
11869         (if_convertible_bb_p): Call bb_postdominates_preds.
11870         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11871         (predicate_scalar_phi): Call bb_postdominates_preds.
11872
11873 2011-01-25  Nick Clifton  <nickc@redhat.com>
11874
11875         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11876         * config/rx/rx.c (rx_function_value): Likewise.
11877         (rx_promote_function_mode): Likewise.
11878         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11879         in order to make it legitimate.
11880         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11881         make sure that the first operand is the same as the result register.
11882         (addsi3_unspec): Delete.
11883         (subdi3): Do not accept immediate operands.
11884         (subdi3_internal): Likewise.
11885
11886 2011-01-25  Jeff Law  <law@redhat.com>
11887
11888         PR rtl-optimization/37273
11889         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11890         handle them like argument loads from stack slots.  Do not double
11891         count memory for memory constants and argument loads from stack slots.
11892
11893 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11894
11895         PR tree-optimization/47427
11896         PR tree-optimization/47428
11897         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11898         coalesce if the new root var would be TREE_READONLY.
11899
11900 2011-01-25  Richard Guenther  <rguenther@suse.de>
11901
11902         PR middle-end/47414
11903         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11904         correct type for TBAA.
11905
11906 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11907
11908         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11909         (close_phi_written_to_memory): Call for_each_index with
11910         dr_indices_valid_in_loop.
11911
11912 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11913
11914         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11915         when it is initialized.
11916
11917 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11918
11919         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11920         call to graphite_find_data_references_in_stmt.
11921         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11922         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
11923         call to graphite_find_data_references_in_stmt.
11924         (analyze_drs_in_stmts): Same.
11925         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11926         in which the scalar analysis of indices is performed.
11927         (create_data_ref): Same.  Update call to dr_analyze_indices.
11928         (find_data_references_in_stmt): Update call to create_data_ref.
11929         (graphite_find_data_references_in_stmt): Same.
11930         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11931         declaration.
11932         (create_data_ref): Same.
11933         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11934         call to create_data_ref.
11935
11936 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11937
11938         * graphite-sese-to-poly.c (build_poly_scop): Move
11939         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11940
11941 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11942
11943         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11944         VAR_DECL, PARM_DECL, and RESULT_DECL.
11945
11946 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11947
11948         * graphite-dependences.c (reduction_dr_1): Allow several reductions
11949         in a reduction PBB.
11950         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11951         that have already been marked as PBB_IS_REDUCTION.
11952
11953 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11954
11955         * graphite-scop-detection.c (same_close_phi_node): New.
11956         (remove_duplicate_close_phi): New.
11957         (make_close_phi_nodes_unique): New.
11958         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11959
11960 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11961
11962         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11963         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11964         of both data references to be the same.
11965
11966 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11967
11968         * graphite-dependences.c (build_lexicographical_constraint): Remove
11969         the gdim parameter.
11970         (build_lexicographical_constraint): Adjust call to
11971         ppl_powerset_is_empty.
11972         (dependence_polyhedron): Same.
11973         (graphite_legal_transform_dr): Same.
11974         (graphite_carried_dependence_level_k): Same.
11975         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11976         parameter.
11977         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11978
11979 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11980
11981         * graphite-sese-to-poly.c
11982         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11983         (close_phi_written_to_memory): New.
11984         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11985         and unshare_expr.
11986
11987 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11988
11989         * doc/install.texi: Update the expected version number of PPL to 0.11.
11990         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11991         #if PPL_VERSION_MINOR < 11.
11992
11993 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11994
11995         * graphite-dependences.c: Include graphite-cloog-util.h.
11996         (new_poly_ddr): Inlined into dependence_polyhedron.
11997         (free_poly_ddr): Moved close by new_poly_ddr.
11998         (dependence_polyhedron_1): Renamed dependence_polyhedron.
11999         Early return NULL when ppl_powerset_is_empty returns true.
12000         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12001         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12002         (graphite_legal_transform_dr): Call new_poly_ddr.
12003         (graphite_carried_dependence_level_k): Same.
12004         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12005         (dot_transformed_deps_stmt_1): Removed.
12006         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12007         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12008         (dot_deps_1): Call dot_deps_2.
12009         * Makefile.in (graphite-dependences.o): Add missing dependence on
12010         graphite-cloog-util.h.
12011
12012 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12013
12014         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12015         (build_lexicographical_constraint): Same.
12016         (dependence_polyhedron_1): Same.
12017         (graphite_legal_transform_dr): Same.
12018         (graphite_carried_dependence_level_k): Same.
12019         * graphite-ppl.c (ppl_powerset_is_empty): New.
12020         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12021         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12022
12023 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12024
12025         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12026         the "a followed by b" relation and document it.
12027
12028 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12029
12030         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12031         iteration when the bag of constraints is empty.
12032
12033 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12034
12035         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12036
12037 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12038
12039         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12040         nest and two loop depths as parameters.
12041         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12042         lst_perfect_nestify.
12043
12044 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12045
12046         * graphite-dependences.c (print_pddr): Call
12047         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12048
12049 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12050
12051         * graphite-ppl.c (debug_gmp_value): New.
12052         * graphite-ppl.h (debug_gmp_value): Declared.
12053
12054 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12055
12056         * doc/install.texi: Document availability of cloog-0.16.
12057
12058 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12059
12060         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12061         invalid postdominance info.
12062
12063 2011-01-24  Jan Hubicka  <jh@suse.cz>
12064
12065         PR c/21659
12066         * doc/extend.texi (weak pragma): Drop claim that it must
12067         appear before definition.
12068         * varasm.c (merge_weak, declare_weak): Only sanity check
12069         that DECL is not output at a time it is declared weak.
12070
12071 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12072
12073         * machmode.def: Fixed comments.
12074
12075 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12076
12077         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12078
12079 2011-01-24  Paul Koning  <ni1d@arrl.net>
12080
12081         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12082         WORDS_BIG_ENDIAN.
12083
12084 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12085
12086         PR target/46519
12087         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12088         (block_info): Add scanned and prev.
12089         (move_or_delete_vzeroupper_2): Return if the basic block
12090         has been scanned and the upper 128bit state is unchanged
12091         from the last scan.
12092         (move_or_delete_vzeroupper_1): Return true if the exit
12093         state is changed.
12094         (move_or_delete_vzeroupper): Visit basic blocks using the
12095         work-list based algorithm based on vt_find_locations in
12096         var-tracking.c.
12097
12098         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12099
12100 2011-01-24  Nick Clifton  <nickc@redhat.com>
12101
12102         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12103         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12104         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12105         then define __v850e1__.
12106         * doc/invoke.texi: Document -mv850es.
12107
12108 2011-01-24  Richard Henderson  <rth@redhat.com>
12109
12110         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12111         compound unordered comparisons.
12112         * config/rx/rx.c (rx_split_fp_compare): Remove.
12113         * config/rx/rx-protos.h: Update.
12114         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12115         (cbranchsf4): Don't call rx_split_fp_compare.
12116         (*cbranchsf4): Use rx_split_cbranch.
12117         (*cmpsf): Don't accept "i" constraint.
12118         (*conditional_branch): Only valid after reload.
12119         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12120
12121 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12122
12123         PR target/47385
12124         * config/rs6000/altivec.md (vector constant splitters): Add
12125         support for creating vector single precision constants if -mvsx is
12126         used and we would create the constant using Altivec primitives.
12127
12128 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12129             Richard Sandiford  <rdsandiford@googlemail.com>
12130
12131         PR rtl-optimization/47166
12132         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12133         mechanism for PRE_MODIFY and POST_MODIFY.
12134         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12135         reloadreg.
12136
12137 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12138
12139         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12140
12141 2011-01-22  Jan Hubicka  <jh@suse.cz>
12142
12143         PR lto/47333
12144         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12145
12146 2011-01-22  Jan Hubicka  <jh@suse.cz>
12147
12148         PR tree-optimization/43884
12149         PR lto/44334
12150         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12151         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12152
12153 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12154
12155         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12156         * config/s390/s390.c (s390_register_move_cost,
12157         s390_memory_move_cost): New.
12158         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12159
12160 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12161
12162         PR middle-end/47401
12163         * except.c (sjlj_assign_call_site_values): Move setting the
12164         crtl->uses_eh_lsda flag to ...
12165         (sjlj_mark_call_sites): ... here.
12166         (sjlj_emit_function_enter): Support NULL dispatch label.
12167         (sjlj_build_landing_pads): In a function with no landing pads
12168         that still has must-not-throw regions, generate code to register
12169         a personality function with empty LSDA.
12170
12171 2011-01-21  Richard Henderson  <rth@redhat.com>
12172
12173         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12174
12175         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12176
12177         * compare-elim.c: New file.
12178         * Makefile.in (OBJS-common): Add it.
12179         (compare-elim.o): New.
12180         * common.opt (fcompare-elim): New.
12181         * opts.c (default_options_table): Add OPT_fcompare_elim.
12182         * tree-pass.h (pass_compare_elim_after_reload): New.
12183         * passes.c (init_optimization_passes): Add it.
12184         * recog.h: Protect against re-inclusion.
12185         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12186         * doc/invoke.texi (-fcompare-elim): Document it.
12187         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12188         * doc/tm.texi: Rebuild.
12189
12190 2011-01-22  Nick Clifton  <nickc@redhat.com>
12191
12192         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12193         rx_split_fp_compare.
12194
12195 2011-01-22  Nick Clifton  <nickc@redhat.com>
12196
12197         * config/rx/rx.md (UNSPEC_CONST): New.
12198         (deallocate_and_return): Wrap the amount popped off the stack in
12199         an UNSPEC_CONST in order to stop it being rejected by
12200         -mmax-constant-size.
12201         (pop_and_return): Add a "(return)" rtx.
12202         (call): Drop the immediate operand.
12203         (call_internal): Likewise.
12204         (call_value): Likewise.
12205         (call_value_internal): Likewise.
12206         (sibcall_internal): Likewise.
12207         (sibcall_value_internal): Likewise.
12208         (sibcall): Likewise.  Generate an explicit call using
12209         sibcall_internal.
12210         (sibcall_value): Likewise.
12211         (mov<>): FAIL if a constant operand is not legitimate.
12212         (addsi3_unpsec): New pattern.
12213
12214         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12215         (ok_for_max_constant): New function.
12216         (gen_safe_add): New function.
12217         (rx_expand_prologue): Use gen_safe_add.
12218         (rx_expand_epilogue): Likewise.
12219         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12220         UNSPEC CONSTs.
12221
12222 2011-01-21  Jeff Law  <law@redhat.com>
12223
12224         PR tree-optimization/47053
12225         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12226         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12227         statements are deleted.
12228         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12229         is nonempty, then purge dead edges and cleanup the CFG.
12230
12231 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12232
12233         PR debug/47402
12234         Temporarily revert:
12235         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12236         PR debug/47106
12237         * tree-dfa.c (create_var_ann): Mark variable as used.
12238
12239 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12240
12241         PR middle-end/45566
12242         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12243         notes from other section in hot/cold partitioning even if
12244         last_action is -3.  Increment call_site_base.
12245
12246         PR rtl-optimization/47366
12247         * fwprop.c (forward_propagate_into): Return bool.  If
12248         any changes are made, -fnon-call-exceptions is used and
12249         REG_EH_REGION note is present, call purge_dead_edges
12250         and return true if it purged anything.
12251         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12252         any EH edges were purged.
12253
12254 2011-01-21  Jeff Law  <law@redhat.com>
12255
12256         PR rtl-optimization/41619
12257         * caller-save.c (setup_save_areas): Break out code to determine
12258         which hard regs are live across calls by examining the reload chains
12259         so that it is always used.
12260         Eliminate code which checked REG_N_CALLS_CROSSED.
12261
12262 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12263
12264         PR tree-optimization/47355
12265         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12266         NOP has non-debug uses beyond PHIs in new_bb.
12267
12268 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12269
12270         PR debug/47106
12271         * cfgexpand.c (account_used_vars_for_block): Only account vars
12272         that are annotated as used.
12273         (estimated_stack_frame_size): Don't set TREE_USED.
12274         * tree-dfa.c (create_var_ann): Mark variable as used.
12275
12276 2011-01-21  Richard Guenther  <rguenther@suse.de>
12277
12278         PR middle-end/47395
12279         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12280
12281 2011-01-21  Richard Guenther  <rguenther@suse.de>
12282
12283         PR tree-optimization/47365
12284         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12285         (vn_reference_lookup_pieces): Adjust.
12286         (vn_reference_lookup): Likewise.
12287         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12288         (vn_reference_lookup_3): Only look through kills if in
12289         VN_WALKREWRITE mode.
12290         (vn_reference_lookup_pieces): Adjust.
12291         (vn_reference_lookup): Likewise.
12292         (visit_reference_op_load): Likewise.
12293         (visit_reference_op_store): Likewise.
12294         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12295         (compute_avail): Likewise.
12296         (eliminate): Likewise.
12297
12298 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12299
12300         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12301         DECL_IGNORED_P non-reg vars if they are used.
12302
12303         PR tree-optimization/47391
12304         * varpool.c (const_value_known_p): Return false if
12305         decl is volatile.
12306
12307 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12308
12309         PR bootstrap/47215
12310         * config/i386/i386.c (ix86_local_alignment): Handle
12311         case for va_list_type_node is nil.
12312         (ix86_canonical_va_list_type): Likewise.
12313
12314 2011-01-21  Alan Modra  <amodra@gmail.com>
12315
12316         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12317         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12318
12319 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12320
12321         * config/arm/arm.md (define_attr type): Rename f_load
12322         and f_store to f_fpa_load and f_fpa_store. Update.
12323         (write_conflict): Deal with rename fallout.
12324         (*push_fp_multi): Likewise.
12325         * config/arm/fpa.md (f_load): Use f_fpa_load.
12326         (f_store): Use f_fpa_store.
12327         (*movsf_fpa): Likewise.
12328         (*movdf_fpa): Likewise.
12329         (*movxf_fpa): Likewise.
12330         (*thumb2_movsf_fpa): Likewise.
12331         (*thumb2_movdf_fpa): Likewise.
12332         (*thumb2_movxf_fpa): Likewise.
12333         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12334         f_loadd and f_stored.
12335         (*thumb2_movdi_vfp): Likewise.
12336         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12337         (*thumb2_movsi_vfp): Likewise.
12338         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12339         Use f_loads instead of f_load.
12340         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12341
12342 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12343
12344         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12345         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12346         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12347         (xtensa_mode_dependent_address_p): New function.
12348         (constantpool_address_p): Make static. Change return type to bool.
12349         Change argument type to const_rtx. Use CONST_INT_P predicate.
12350
12351 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12352
12353         PR debug/46583
12354         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12355
12356 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12357
12358         PR debug/47283
12359         * cfgexpand.c (expand_debug_expr): Instead of generating
12360         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12361         etc. handling.
12362
12363 2011-01-20  Richard Guenther  <rguenther@suse.de>
12364
12365         PR middle-end/47370
12366         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12367         the pointer operand of MEM_REFs.
12368
12369 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12370
12371         PR tree-optimization/46130
12372         * ipa-split.c (consider_split): If return_bb contains non-virtual
12373         PHIs other than for retval or if split_function would not adjust it,
12374         refuse to split.
12375
12376 2011-01-20  Richard Guenther  <rguenther@suse.de>
12377
12378         PR tree-optimization/47167
12379         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12380         Revert previous change, only avoid enumeral type changes.
12381
12382 2011-01-19  Mike Stump  <mikestump@comcast.net>
12383
12384         * doc/tm.texi.in (BRANCH_COST): Englishify.
12385         * doc/tm.texi (BRANCH_COST): Likewise.
12386
12387 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12388
12389         PR c++/47291
12390         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12391         (gen_scheduled_generic_parms_dies): New functions.
12392         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12393         generation for the end of CU compilation.
12394         (dwarf2out_finish): Generate template parameters DIEs here.
12395
12396 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12397
12398         PR debug/46240
12399         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12400         debug bind stmt on merge edges.
12401
12402 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12403
12404         PR debug/47079
12405         PR debug/46724
12406         * function.c (instantiate_expr): Instantiate incoming rtl of
12407         implicit arguments, and recurse on VALUE_EXPRs.
12408         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12409         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12410
12411 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12412
12413         * c-parser.c (c_parser_for_statement): Initialize
12414         collection_expression.
12415
12416 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12417
12418         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12419
12420 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12421
12422         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12423         (LINK_SHLIB_SPEC): Don't use %(link_path).
12424         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12425
12426 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12427
12428         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12429         (NO_SHARED_LIB_SUPPORT): Remove.
12430         (LINK_SHLIB_SPEC): Remove one conditional definition.
12431
12432 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12433
12434         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12435         %{call_shared}.
12436         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12437         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12438         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12439         %{call_shared} and conditionals on these options not being passed.
12440         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12441         %{call_shared}.
12442
12443 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12444
12445         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12446         simplify.
12447
12448         * ipa-split.c: Spelling fixes.
12449
12450 2011-01-19  Richard Henderson  <rth@redhat.com>
12451
12452         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12453         (*mulsi3): Likewise.
12454
12455         * longlong.h [__mn10300__] (count_leading_zeros): New.
12456         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12457         [__mn10300__] (add_ssaaaa, subddmmss): New.
12458         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12459         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12460
12461 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12462
12463         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12464
12465 2011-01-19  Richard Henderson  <rth@redhat.com>
12466
12467         * config/mn10300/mn10300.md (addsi3_flags): New.
12468         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12469         (subsi3_flags, subc_internal, subdi3): New.
12470         (subdi3_internal, *subdi3_degenerate): New.
12471         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12472
12473         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12474         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12475         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12476         * config/mn10300/mn10300-protos.h: Update.
12477         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12478         (return_ret): Likewise.  Rename from return_internal_regs.
12479         (return_internal): Remove.
12480
12481         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12482         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12483         (mn10300_legitimate_constant_p): Likewise.
12484         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12485         (mn10300_frame_size): New.
12486         (mn10300_expand_prologue): Use it.
12487         (mn10300_expand_epilogue): Likewise.
12488         (mn10300_initial_offset): Likewise.
12489         * config/mn10300/mn10300-protos.h: Update.
12490         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12491         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12492         (prologue, epilogue, return_internal): Tidy output code.
12493         (mn10300_store_multiple_operation, return): Likewise.
12494         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12495         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12496         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12497         (load_pic, am33_load_pic): New.
12498         (mn10300_load_pic0, mn10300_load_pic1): New.
12499
12500         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12501         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12502         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12503         (cc_flags_for_mode, cc_flags_for_code): New.
12504         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12505         overflow flag is not valid.  Validate that the flags we need
12506         for the comparison are valid.
12507         (mn10300_output_cmp): Remove.
12508         (mn10300_output_add): New.
12509         (mn10300_select_cc_mode): Use cc_flags_for_code.
12510         (mn10300_split_cbranch): New.
12511         (mn10300_match_ccmode): New.
12512         (mn10300_split_and_operand_count): New.
12513         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12514         to the function.
12515         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12516         (addsi3): ... here.  Use mn10300_output_add.
12517         (*addsi3_flags): New.
12518         (*am33_subsi3, *mn10300_subsi3): Merge...
12519         (subsi3): ... here.  Use attribute isa.
12520         (*subsi3_flags): New.
12521         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12522         when possible.
12523         (*am33_andsi3, *mn10300_andsi3): Merge...
12524         (andsi3): ... here.
12525         (*andsi3_flags): New.
12526         (andsi3 splitters): New.
12527         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12528         (iorsi3): ... here.
12529         (*iorsi3_flags): New.
12530         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12531         (xorsi3): ... here.
12532         (*xorsi3_flags): New.
12533         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12534         (one_cmplsi2): ... here.
12535         (*one_cmplsi2_flags): New.
12536         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
12537         instead of "dax" in constraints.  Use mn10300_split_cbranch.
12538         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
12539         use matching constraints to eliminate a self-comparison.
12540         (*integer_conditional_branch): Rename from integer_conditional_branch.
12541         Use int_mode_flags to match CC_REG.
12542         (*cbranchsi4_btst, *btstsi): New.
12543         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
12544         mn10300_split_cbranch.
12545         (*am33_cmpsf): Rename from am33_cmpsf.
12546         (*float_conditional_branch): Rename from float_conditional_branch.
12547         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12548         (zero_extendqisi2): ... here.
12549         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12550         (zero_extendhisi2): ... here.
12551         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12552         (extendqisi2): ... here.
12553         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12554         (extendhisi2): ... here.
12555         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12556         (ashlsi3): ... here.
12557         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12558         (lshrsi3): ... here.
12559         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12560         (ashrsi3): ... here.
12561         (consecutive add peephole): Remove.
12562         * config/mn10300/predicates.md (label_ref_operand): New.
12563         (int_mode_flags): New.
12564         (CCZN_comparison_operator): New.
12565
12566         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12567         (throughput_42_latency_43): New reservation.
12568         (mulsidi3, umulsidi3): New expanders.
12569         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
12570         the MDR register to allocation; separately allocate the low and
12571         high parts of the DImode result.
12572         (umulsidi3_internal): Similarly.
12573         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12574         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
12575         (udivsi3, umodsi3): Remove.
12576         (udivmodsi4, divmodsi4): New expanders.
12577         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
12578         (*divmodsi4): Simiarly.
12579         (ext_internal): New.
12580
12581         * config/mn10300/constraints.md ("z"): New constraint.
12582         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12583         (FIXED_REGISTERS): Don't fix MDR.
12584         (CALL_USED_REGSITERS): Reformat nicely.
12585         (REG_ALLOC_ORDER): Add MDR.
12586         (enum regclass): Add MDR_REGS.
12587         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12588         (IRA_COVER_CLASSES): Add MDR_REGS.
12589         (REGNO_REG_CLASS): Handle MDR_REG.
12590         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12591         (mn10300_register_move_cost): Likewise.
12592         * config/mn10300/mn10300.md (MDR_REG): New.
12593         (*movsi_internal): Handle moves to/from MDR_REGS.
12594
12595         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12596         POST_MODIFY.
12597         (mn10300_secondary_reload): Tidy combination reload classes.
12598         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12599         addresses for AM33.  Allow symbolic offsets for reg+imm.
12600         (mn10300_regno_in_class_p): New.
12601         (mn10300_legitimize_reload_address): New.
12602         * config/mn10300/mn10300.h (enum reg_class): Remove
12603         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12604         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
12605         SP_OR_GENERAL_REGS.
12606         (REG_CLASS_NAMES): Update to match.
12607         (REG_CLASS_CONTENTS): Likewise.
12608         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12609         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12610         (REGNO_IN_RANGE_P): Remove.
12611         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12612         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12613         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12614         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12615         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12616         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12617         (REGNO_GENERAL_P): New.
12618         (HAVE_POST_MODIFY_DISP): New.
12619         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12620         (LEGITIMIZE_RELOAD_ADDRESS): New.
12621         * config/mn10300/mn10300-protos.h: Update.
12622
12623         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12624         DATA_REGS for AM33 stack-pointer destination.
12625         (mn10300_preferred_output_reload_class): Likewise.
12626         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12627         into a form appropriate for ...
12628         (TARGET_SECONDARY_RELOAD): New.
12629         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12630         * config/mn10300/mn10300-protos.h: Update.
12631         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12632         reload_insi; use the "A" constraint for the scratch; handle AM33
12633         moves of sp to non-address registers.
12634
12635         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12636         (*movqi_internal): ... here.
12637         (*am33_movhi, *mn10300_movhi): Merge into...
12638         (*movhi_internal): ... here.
12639         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
12640         as the source/destination of moves from/to SP.
12641         (movsf): Only allow for AM33-2.
12642         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12643         any integer constant constraint.  Only allow for AM33-2.  Tidy
12644         all of the alternative outputs.
12645         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12646         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
12647         for MN103.
12648         (udivsi3, umodsi3): New patterns for MN103 only.
12649
12650 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
12651
12652         * doc/tm.texi.in: Spell out that a lack of register class unions
12653         can lead to ICEs.
12654         * doc/tm.texi: Regenerate.
12655
12656 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12657
12658         PR rtl-optimization/47337
12659         * dce.c (check_argument_store): New function.
12660         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
12661
12662         PR tree-optimization/47290
12663         * tree-eh.c (infinite_empty_loop_p): New function.
12664         (cleanup_empty_eh): Use it.
12665
12666 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
12667
12668         PR target/46997
12669         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12670         (a64_expand_widen_sum): Ditto.
12671         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12672         (vec_extract_evenodd_help): Ditto.
12673         (vec_extract_evenv4hi): Ditto.
12674         (vec_extract_oddv4hi): Ditto.
12675         (vec_extract_evenv2si): Ditto.
12676         (vec_extract_oddv2si): Ditto.
12677         (vec_extract_evenv2sf): Ditto.
12678         (vec_extract_oddv2sf): Ditto.
12679         (vec_pack_trunc_v4hi: Ditto.
12680         (vec_pack_trunc_v2si): Ditto.
12681         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12682         (vec_interleave_highv8qi): Ditto.
12683         (mix1_r): Ditto.
12684         (vec_extract_oddv8qi): Ditto.
12685         (vec_interleave_lowv4hi): Ditto.
12686         (vec_interleave_highv4hi): Ditto.
12687         (vec_interleave_lowv2si): Ditto.
12688         (vec_interleave_highv2si): Ditto.
12689
12690 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12691
12692         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12693         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12694         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
12695         (pa_c_mode_for_suffix): New.
12696         (TARGET_EXPAND_BUILTIN): Define.
12697         (TARGET_C_MODE_FOR_SUFFIX): Define.
12698         (pa_builtins): Define.
12699         (pa_init_builtins): Register __float128 type and init new support
12700         builtins.
12701         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12702         * config/pa/quadlib.c (_U_Qfcopysign): New.
12703
12704 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
12705
12706         PR middle-end/46894
12707         * explow.c (allocate_dynamic_stack_space): Do not assume more than
12708         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12709         are defined.
12710
12711 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12712
12713         PR tree-optimization/47179
12714         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12715         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12716
12717 2011-01-18  Richard Guenther  <rguenther@suse.de>
12718
12719         PR rtl-optimization/47216
12720         * emit-rtl.c: Include tree-flow.h.
12721         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12722         of replicating it with different semantics.
12723         * Makefile.in (emit-rtl.o): Adjust.
12724
12725 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12726
12727         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12728         (cortex_a9_dp): Handle neon types correctly.
12729
12730 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
12731
12732         PR rtl-optimization/47299
12733         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12734         subtarget.  Use normal multiplication if both operands are constants.
12735         * expmed.c (expand_widening_mult): Don't try to optimize constant
12736         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
12737         before using it.
12738
12739 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12740
12741         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
12742         spacing after 'e.g.', typos, comma, hyphenation.
12743
12744 2011-01-17  Richard Henderson  <rth@redhat.com>
12745
12746         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12747         (rx_restricted_mem_operand): New.
12748         (rx_shift_operand): Use register_operand.
12749         (rx_source_operand, rx_compare_operand): Likewise.
12750         * config/rx/rx.md (addsi3_flags): New expander.
12751         (adddi3): Rewrite as expander.
12752         (adc_internal, *adc_flags, adddi3_internal): New patterns.
12753         (subsi3_flags): New expander.
12754         (subdi3): Rewrite as expander.
12755         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12756
12757         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12758         (rx_init_builtins): Remove sat builtin.
12759         (rx_expand_builtin): Likewise.
12760         * config/rx/rx.md (ssaddsi3): New.
12761         (*sat): Rename from sat.  Represent the CC_REG input.
12762
12763         * config/rx/predicates.md (rshift_operator): New.
12764         * config/rx/rx.c (rx_expand_insv): Remove.
12765         * config/rx/rx-protos.h: Update.
12766         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
12767         operand to the canonical position.
12768         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12769         (*bitclr, *bitclr_in_memory): Similarly.
12770         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12771         (insv): Retain the zero_extract in the expansion.
12772
12773         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12774         (bswaphi2, bitinvert, revw): Likewise.
12775
12776         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12777         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12778         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12779         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12780         (bitset, bitset_in_memory): Likewise.
12781         (bitinvert, bitinvert_in_memory): Likewise.
12782         (bitclr, bitclr_in_memory): Likewise.
12783         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12784         (rx_strend, rx_cmpstrn): Likewise.
12785         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
12786         (bitop peep2 patterns): Remove.
12787
12788         * config/rx/rx.c (rx_match_ccmode): New.
12789         * config/rx/rx-protos.h: Update.
12790         * config/rx/rx.md (abssi2): Clobber, don't set flags.
12791         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12792         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12793         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12794         (fix_truncsfsi2, floatsisf2): Likewise.
12795         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12796         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12797         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12798         (*subsi3_flags, *xorsi3_flags): New.
12799
12800         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12801
12802         * config/rx/rx.c (rx_print_operand): Remove workaround for
12803         unsplit comparison operations.
12804
12805         * config/rx/rx.md (movsicc): Split after reload.
12806         (*movsicc): Merge *movsieq and *movsine via match_operator.
12807         (*stcc): New pattern.
12808
12809         * config/rx/rx.c (rx_float_compare_mode): Remove.
12810         * config/rx/rx.h (rx_float_compare_mode): Remove.
12811         * config/rx/rx.md (cstoresi4): Split after reload.
12812         (*sccc): New pattern.
12813
12814         * config/rx/predicates.md (label_ref_operand): New.
12815         (rx_z_comparison_operator): New.
12816         (rx_zs_comparison_operator): New.
12817         (rx_fp_comparison_operator): New.
12818         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12819         Validate that the flags are set properly for the comparison.
12820         (rx_gen_cond_branch_template): Remove.
12821         (rx_cc_modes_compatible): Remove.
12822         (mode_from_flags): New.
12823         (flags_from_code): Rename from flags_needed_for_conditional.
12824         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12825         (rx_select_cc_mode): Likewise.
12826         (rx_split_fp_compare): New.
12827         (rx_split_cbranch): New.
12828         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12829         (*cbranchsi4): Use match_operator and rx_split_cbranch.
12830         (*cbranchsf4): Similarly.
12831         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
12832         match_operator and rx_split_cbranch.
12833         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12834         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
12835         (*cmpsi): Rename from cmpsi.
12836         (*tstsi): Rename from tstsi.
12837         (*cmpsf): Rename from cmpsf; use CC_Fmode.
12838         (*conditional_branch): Rename from conditional_branch.
12839         (*reveresed_conditional_branch): Remove.
12840         (b<code>): Remove expander.
12841         * config/rx/rx-protos.h: Update.
12842
12843         * config/rx/rx.c (rx_compare_redundant): Remove.
12844         * config/rx/rx.md (cmpsi): Don't use it.
12845         * config/rx/rx-protos.h: Update.
12846
12847         * config/rx/rx-modes.def (CC_F): New mode.
12848         * config/rx/rx.c (rx_select_cc_mode): New.
12849         * config/rx/rx.h (SELECT_CC_MODE): Use it.
12850         * config/rx/rx-protos.h: Update.
12851
12852 2011-01-17  Richard Henderson  <rth@redhat.com>
12853
12854         * except.c (dump_eh_tree): Fix stray ; after for statement.
12855
12856 2011-01-17  Richard Guenther  <rguenther@suse.de>
12857
12858         PR tree-optimization/47313
12859         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12860         handling before copying the body.  Properly deal with
12861         by-reference result in SSA form.
12862
12863 2011-01-17  Ian Lance Taylor  <iant@google.com>
12864
12865         PR target/47219
12866         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12867         (struct_value_alias_set): Don't define.
12868         (sparc_option_override): Don't set sparc_sr_alias_set and
12869         struct_value_alias_set.
12870         (save_or_restore_regs): Use gen_frame_mem rather than calling
12871         set_mem_alias_set.
12872         (sparc_struct_value_rtx): Likewise.
12873
12874 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
12875
12876         PR target/47318
12877         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12878         (_mm_maskstore_pd): Likewise.
12879         (_mm_maskload_ps): Likewise.
12880         (_mm_maskstore_ps): Likewise.
12881         (_mm256_maskload_pd): Change mask to __m256i.
12882         (_mm256_maskstore_pd): Likewise.
12883         (_mm256_maskload_ps): Likewise.
12884         (_mm256_maskstore_ps): Likewise.
12885
12886         * config/i386/i386-builtin-types.def: Updated.
12887         (ix86_expand_special_args_builtin): Likewise.
12888
12889         * config/i386/i386.c (bdesc_special_args): Update
12890         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12891         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12892         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12893         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12894
12895         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12896         Use <avxpermvecmode> on mask register.
12897         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12898
12899 2011-01-17  Olivier Hainque  <hainque@adacore.com>
12900             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12901             Eric Botcazou  <ebotcazou@adacore.com>
12902
12903         PR target/46655
12904         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12905         if <= USHRT_MAX in 32-bit mode.
12906
12907 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12908
12909         * doc/install.texi (Configuration, Specific): Wrap long
12910         lines in examples.  Allow line wrapping in long options
12911         and URLs where beneficial for PDF output.
12912
12913 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
12914
12915         * config/mips/mips.c (mips_classify_symbol): Don't return
12916         SYMBOL_PC_RELATIVE for nonlocal labels.
12917
12918 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
12919
12920         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12921
12922 2011-01-15  Jan Hubicka  <jh@suse.cz>
12923
12924         PR tree-optimization/47276
12925         * ipa.c (function_and_variable_visibility): Do not try to mark alias
12926         declarations as needed.
12927
12928 2011-01-15  Martin Jambor  <mjambor@suse.cz>
12929
12930         * common.opt (fdevirtualize): New flag.
12931         * doc/invoke.texi (Option Summary): Document it.
12932         * opts.c (default_options_table): Add devirtualize flag.
12933         * ipa-prop.c (detect_type_change): Return immediately if
12934         devirtualize flag is not set.
12935         (detect_type_change_ssa): Likewise.
12936         (compute_known_type_jump_func): Likewise.
12937         (ipa_analyze_virtual_call_uses): Likewise.
12938
12939 2011-01-14  Martin Jambor  <mjambor@suse.cz>
12940
12941         PR tree-optimization/45934
12942         PR tree-optimization/46302
12943         * ipa-prop.c (type_change_info): New type.
12944         (stmt_may_be_vtbl_ptr_store): New function.
12945         (check_stmt_for_type_change): Likewise.
12946         (detect_type_change): Likewise.
12947         (detect_type_change_ssa): Likewise.
12948         (compute_complex_assign_jump_func): Check for dynamic type change.
12949         (compute_complex_ancestor_jump_func): Likewise.
12950         (compute_known_type_jump_func): Likewise.
12951         (compute_scalar_jump_functions): Likewise.
12952         (ipa_analyze_virtual_call_uses): Likewise.
12953         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12954
12955 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12956
12957         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12958         * config/i386/i386.opt (msse5): New Alias.
12959
12960 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12961
12962         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12963         * config/sparc/linux64.h (CC1_SPEC): Likewise.
12964         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12965         * config/sparc/sparc.h (CC1_SPEC): Likewise.
12966
12967 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12968
12969         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12970         -mcpu options.
12971         * config/sparc/linux64.h (CC1_SPEC): Likewise.
12972         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12973         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12974         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12975         Likewise.
12976         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12977
12978 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12979
12980         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12981
12982 2011-01-14  Mike Stump  <mikestump@comcast.net>
12983
12984         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12985         * config/fr30/fr30.md: Likweise
12986         (movsi_push): Likewise.
12987         (movsi_pop): Likewise.
12988         (enter_func): Likewise.
12989         * config/moxie/moxie.md (movsi_push): Likewise.
12990         (movsi_pop): Likewise.
12991
12992 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12993
12994         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12995         %{no_archive} %{exact_version}.
12996         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12997         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12998         %{no_archive} %{exact_version}.
12999         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13000         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13001         * config/mips/vxworks.h: Likewise.
13002
13003 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13004
13005         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13006
13007 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13008
13009         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13010         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13011
13012 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13013
13014         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13015         -nodefaultlib.
13016
13017 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13018
13019         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13020         for mcpu not cpu.
13021         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13022         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13023         not cpu.
13024         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13025         Don't handle -shlib.
13026
13027 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13028
13029         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13030         (CC1_SPEC): Don't handle -profile.
13031
13032 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13033
13034         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13035         * config/mips/mips.h (CC1_SPEC): Likewise.
13036
13037 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13038
13039         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13040         * config/mips/mips.h (CC1_SPEC): Likewise.
13041
13042 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13043
13044         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13045         * config/m32r/linux.h (LINK_SPEC): Likewise.
13046         * config/mips/linux.h (LINK_SPEC): Likewise.
13047         * config/mips/linux64.h (LINK_SPEC): Likewise.
13048         * config/sparc/linux.h (LINK_SPEC): Likewise.
13049         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13050         LINK_SPEC): Likewise.
13051         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13052
13053 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13054
13055         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13056         %{version:-v}.
13057         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13058
13059 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13060
13061         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13062         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13063
13064 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13065
13066         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13067
13068 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13069
13070         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13071         supports -Bstatic/-Bdynamic.
13072         * configure: Regenerate.
13073
13074 2011-01-14  Jan Hubicka  <jh@suse.cz>
13075             Jack Howarth  <howarth@bromo.med.uc.edu>
13076
13077         PR target/46037
13078         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13079         when checking debug_info_level. Test write_symbols instead of
13080         debug_hooks->var_location when setting flag_var_tracking_uninit.
13081
13082 2011-01-14  Richard Guenther  <rguenther@suse.de>
13083
13084         PR tree-optimization/47179
13085         * target.def (ref_may_alias_errno): New target hook.
13086         * targhooks.h (default_ref_may_alias_errno): Declare.
13087         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13088         (default_ref_may_alias_errno): New function.
13089         * target.h (struct ao_ref_s): Declare.
13090         * tree-ssa-alias.c: Include target.h.
13091         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13092         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13093         (targhooks.o): Likewise.
13094         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13095         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13096
13097 2011-01-14  Richard Guenther  <rguenther@suse.de>
13098
13099         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13100
13101 2011-01-14  Richard Guenther  <rguenther@suse.de>
13102
13103         PR tree-optimization/47280
13104         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13105         return CFG changes.
13106         (tree_ssa_forward_propagate_single_use_vars): Deal with
13107         CFG changes from associate_plusminus.
13108
13109 2011-01-14  Richard Guenther  <rguenther@suse.de>
13110
13111         PR middle-end/47281
13112         Revert
13113         2011-01-11  Richard Guenther  <rguenther@suse.de>
13114
13115         PR tree-optimization/46076
13116         * tree-ssa.c (useless_type_conversion_p): Conversions from
13117         unprototyped to empty argument list function types are useless.
13118
13119 2011-01-14  Richard Guenther  <rguenther@suse.de>
13120
13121         PR tree-optimization/47286
13122         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13123
13124 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13125
13126         PR middle-end/46823
13127         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13128
13129 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13130
13131         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13132         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13133         * config/xtensa/xtensa.c (xtensa_libcall_value,
13134         xtensa_function_value_regno_p): New functions.
13135         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13136
13137 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13138
13139         PR c++/47213
13140         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13141         PE specific hook.
13142         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13143         New function prototype.
13144         * config/i386/winnt.c (i386_pe_assemble_visibility):
13145         Warn only if attribute was specified by user.
13146
13147 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13148
13149         PR target/47251
13150         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13151         floating point.
13152         (floatunsdidf2_fcfidu): Ditto.
13153
13154 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13155
13156         * config/s390/s390.c (print_operand_address): Replace 'error' with
13157         'output_operand_lossage'.
13158         (print_operand): Likewise.
13159
13160 2011-01-13  Jeff Law  <law@redhat.com>
13161
13162         PR rtl-optimization/39077
13163         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13164         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13165         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13166         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13167         * gcse.c (prune_insertions_deletions): New function.
13168         (compute_pre_data): Use it.
13169
13170 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13171
13172         PR debug/PR46973
13173         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13174         static function.
13175         (prune_unused_types_mark): Use it.
13176
13177 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13178
13179         PR rtl-optimization/45352
13180         * sel-sched.c: Update copyright years.
13181         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13182         in the advancing loop when we have issued issue_rate insns.
13183
13184 2011-01-12  Richard Henderson  <rth@redhat.com>
13185
13186         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13187         (TARGET_MD_ASM_CLOBBERS): New.
13188
13189         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13190         (TARGET_DELEGITIMIZE_ADDRESS): New.
13191
13192         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13193         (clzsi2, *bsch): New patterns.
13194
13195         * config/mn10300/mn10300.md (INT): New mode iterator.
13196         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13197
13198         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13199         flag_split_wide_types.
13200
13201         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13202         (mn10300_trampoline_init): Rewrite without a template, an immediate
13203         load and a direct branch.
13204         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13205
13206 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13207
13208         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13209         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13210         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13211         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13212
13213 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13214
13215         PR debug/47209
13216         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13217         of type.
13218
13219 2011-01-12  Jan Hubicka  <jh@suse.cz>
13220
13221         PR driver/47244
13222         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13223         (PLUGIN_COND_CLOSE): New macro.
13224         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13225
13226 2011-01-12  Richard Guenther  <rguenther@suse.de>
13227
13228         PR lto/47259
13229         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13230         register variables in a MEM_REF.
13231
13232 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13233
13234         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13235         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13236         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13237         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13238         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13239         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13240         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13241         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13242         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13243         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13244         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13245         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13246         * config/gnu-user.h: New.  Copied from linux.h.
13247         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13248         GNU_USER_TARGET_STARTFILE_SPEC.
13249         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13250         GNU_USER_TARGET_ENDFILE_SPEC.
13251         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13252         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13253         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13254         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13255         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13256         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13257         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13258         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13259         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13260         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13261         * config/arm/linux-eabi.h (CC1_SPEC): Use
13262         GNU_USER_TARGET_CC1_SPEC.
13263         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13264         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13265         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13266         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13267         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13268         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13269         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13270         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13271
13272 2011-01-12  Richard Guenther  <rguenther@suse.de>
13273
13274         PR other/46946
13275         * doc/invoke.texi (ffast-math): Document it is turned on
13276         with -Ofast.
13277
13278 2011-01-12  Jan Hubicka  <jh@suse.cz>
13279
13280         PR tree-optimization/47233
13281         * opts.c (common_handle_option): Disable ipa-reference with profile
13282         feedback.
13283
13284 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13285
13286         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13287         error message.
13288
13289 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13290
13291         * c-parser.c (c_lex_one_token): Updated and reindented some
13292         comments.  No changes in code.
13293
13294 2011-01-11  Ian Lance Taylor  <iant@google.com>
13295
13296         * godump.c (go_output_var): Don't output the variable if there is
13297         already a type with the same name.
13298
13299 2011-01-11  Ian Lance Taylor  <iant@google.com>
13300
13301         * godump.c (go_format_type): Don't generate float80.
13302
13303 2011-01-11  Richard Henderson  <rth@redhat.com>
13304
13305         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13306         declaration.  Rewrite for both speed and size.
13307         (mn10300_address_cost_1): Remove.
13308         (mn10300_register_move_cost): New.
13309         (mn10300_memory_move_cost): New.
13310         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13311         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13312         extensions, shifts, BSWAP, CLZ.
13313         (mn10300_wide_const_load_uses_clr): Remove.
13314         (TARGET_REGISTER_MOVE_COST): New.
13315         (TARGET_MEMORY_MOVE_COST): New.
13316         * config/mn10300/mn10300-protos.h: Update.
13317         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13318
13319         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13320         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13321         * config/mn10300/mn10300-protos.h: Update.
13322         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13323         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13324         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13325         (*test_int_bitfield, *test_byte_bitfield): Remove.
13326         (*bit_test, *subreg_bit_test): Remove.
13327         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13328
13329         * config/mn10300/constraints.md ("c"): Rename from "A".
13330         ("A", "D"): New constraint letters.
13331         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13332         (fmssf4, fnmasf4, fnmssf4): Likewise.
13333
13334         * config/mn10300/mn10300.md (isa): New attribute.
13335         (enabled): New attribute.
13336
13337         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13338         (abssf2, negsf2): Define only for hardware fp.
13339         (sqrtsf2): Reformat.
13340         (addsf3, subsf3, mulsf3): Merge expander and insn.
13341
13342         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13343         (DEBUGGER_AUTO_OFFSET): Remove.
13344         (DEBUGGER_ARG_OFFSET): Remove.
13345
13346         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13347         Emit register stores with the same offsets as the hardware.
13348         (mn10300_store_multiple_operation): Don't check that the register
13349         save offsets are monotonic.
13350         * config/mn10300/mn10300-protos.h: Update.
13351
13352         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13353
13354         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13355         in terms of the value on the stack, not the MDR register.
13356
13357 2011-01-11  Jan Hubicka  <jh@suse.cz>
13358
13359         PR lto/45721
13360         PR lto/45375
13361         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13362         (symbol_alias_set_destroy, symbol_alias_set_contains,
13363         propagate_aliases_backward): Declare.
13364         * lto-streamer-out.c (struct sets): New sturcture.
13365         (trivally_defined_alias): New function.
13366         (output_alias_pair_p): Rewrite.
13367         (output_unreferenced_globals): Fix output of alias pairs.
13368         (produce_symtab): Likewise.
13369         * ipa.c (function_and_variable_visibility): Set weak alias destination
13370         as needed in lto.
13371         * varasm.c (symbol_alias_set_t): Remove.
13372         (symbol_alias_set_destroy): Export.
13373         (propagate_aliases_forward, propagate_aliases_backward): New functions
13374         based on ...
13375         (compute_visible_aliases): ... this one; remove.
13376         (trivially_visible_alias): New
13377         (trivially_defined_alias): New.
13378         (remove_unreachable_alias_pairs): Rewrite.
13379         (finish_aliases_1): Reorganize code checking if alias is defined.
13380         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13381         in LTO mode.
13382
13383 2011-01-11  Richard Guenther  <rguenther@suse.de>
13384
13385         PR tree-optimization/46076
13386         * tree-ssa.c (useless_type_conversion_p): Conversions from
13387         unprototyped to empty argument list function types are useless.
13388
13389 2011-01-11  Richard Guenther  <rguenther@suse.de>
13390
13391         PR middle-end/45235
13392         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13393         volatile MEMs as MEM_READONLY_P.
13394
13395 2011-01-11  Richard Guenther  <rguenther@suse.de>
13396
13397         PR tree-optimization/47239
13398         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13399
13400 2011-01-11  Jeff Law  <law@redhat.com>
13401
13402         PR tree-optimization/47086
13403         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13404         IVs from statements that might throw.
13405
13406 2011-01-10  Jan Hubicka  <jh@suse.cz>
13407
13408         PR lto/45375
13409         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13410
13411 2011-01-10  Jan Hubicka  <jh@suse.cz>
13412
13413         PR lto/45375
13414         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13415         when correcting profile.
13416
13417 2011-01-10  Jan Hubicka  <jh@suse.cz>
13418
13419         PR lto/46083
13420         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13421         DECL_FINI_PRIORITY.
13422         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13423         Restore DECL_FINI_PRIORITY.
13424
13425 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13426
13427         * doc/gimple.texi: Fix quoting of multi-word return values in
13428         @deftypefn statements.  Ensure presence of return value.  Wrap
13429         overlong @deftypefn lines.
13430         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13431         descriptions of removed functions.
13432         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13433         of multi-word return value in @deftypefn statement.
13434
13435 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13436
13437         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13438         (Conditional Expressions, Logical Operators)
13439         (Statement and operand traversals): Do not indent smallexample
13440         code.  Fix duplicate function argument in example.
13441
13442 2011-01-10  Jeff Law  <law@redhat.com>
13443
13444         PR tree-optimization/47141
13445         * ipa-split.c (split_function): Handle case where we are
13446         returning a value and the return block has a virtual operand phi.
13447
13448 2011-01-10  Jan Hubicka  <jh@suse.cz>
13449
13450         PR tree-optimization/47234
13451         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13452         (pass_feedback_split_functions): Declare.
13453         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13454         tree-profile.
13455         * ipa-split.c (gate_split_functions): Update comments; disable
13456         split-functions for profile_arc_flag and branch_probabilities.
13457         (gate_feedback_split_functions): New function.
13458         (execute_feedback_split_functions): New function.
13459         (pass_feedback_split_functions): New global var.
13460
13461 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13462
13463         PR lto/46760
13464         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13465         calling gimple_call_set_cannot_inline.
13466
13467 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13468
13469         * config/darwin-sections.def: Remove unused section.
13470
13471 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13472
13473         PR c++/47218
13474         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13475
13476 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13477
13478         PR objc/47232
13479         * c-parser.c (c_parser_declaration_or_fndef): Improved
13480         error message.
13481
13482 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13483
13484         * config/i386/winnt.c (i386_pe_start_function): Make sure
13485         to switch back to function's section.
13486
13487 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13488
13489         PR gcc/46902
13490         PR testsuite/46912
13491         * plugin.c: Move include of dlfcn.h from here...
13492         * system.h: ... to here.
13493
13494 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13495
13496         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13497         file name.
13498         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13499         two extra empty pages in PDF output.
13500
13501 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13502
13503         PR objc/47078
13504         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13505         for error recovery purposes behave as if it was not specified so
13506         that the default type is usd.
13507
13508 2011-01-07  Jan Hubicka  <jh@suse.cz>
13509
13510         PR tree-optmization/46469
13511         * ipa.c (function_and_variable_visibility): Clear needed flags on
13512         nodes with external decls; handle weakrefs merging correctly.
13513
13514 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13515
13516         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13517         not false.
13518
13519 2011-01-07  Jan Hubicka  <jh@suse.cz>
13520
13521         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13522         and no longer claim that gold is required for linker plugin.
13523         * configure: Regenerate.
13524         * gcc.c (PLUGIN_COND): New macro.
13525         (LINK_COMMAND_SPEC): Use it.
13526         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13527         * config.in (HAVE_LTO_PLUGIN): New.
13528         * configure.ac (--with-lto-plugin): New parameter; autodetect
13529         HAVE_LTO_PLUGIN.
13530
13531 2011-01-07  Jan Hubicka  <jh@suse.cz>
13532
13533         PR tree-optimization/46367
13534         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13535         when we can update original.
13536         (cgraph_mark_inline_edge): Sanity check.
13537         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13538
13539 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13540
13541         * config/spu/spu.h (ASM_COMMENT_START): Define.
13542
13543 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13544
13545         PR driver/42445
13546         * gcc.c (%>S): New.
13547         (SWITCH_KEEP_FOR_GCC): Likewise.
13548         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13549         (do_spec_1): Handle "%>".
13550
13551         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13552
13553 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
13554
13555         PR target/47201
13556         * config/i386/i386.c (ix86_delegitimize_address): If
13557         simplify_gen_subreg fails, return orig_x.
13558
13559         PR bootstrap/47187
13560         * value-prof.c (gimple_stringop_fixed_value): Handle
13561         lhs of the call properly.
13562
13563 2011-01-07  Jan Hubicka  <jh@suse.cz>
13564
13565         PR lto/45375
13566         * lto-opt.c (lto_reissue_options): Set flag_shlib.
13567
13568 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13569
13570         * target.def (function_switched_text_sections): New hook.
13571         * doc/tm.texi: Regenerated.
13572         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13573         * final.c (default_function_switched_text_sections): New.
13574         (final_scan_insn): Call function_switched_text_sections when a
13575         mid-function section change occurs.
13576         * output.h (default_function_switched_text_sections): Declare.
13577         * config/darwin-protos.h (darwin_function_switched_text_sections):
13578         Likewise.
13579         * config/darwin.c (darwin_function_switched_text_sections): New.
13580         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13581
13582 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13583
13584         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13585         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13586         the secondary code fragment when outputting for DWARF == 2.
13587
13588 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13589
13590         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13591         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13592         Remove.
13593         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13594         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13595
13596 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13597
13598         PR debug/46704
13599         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13600         when it is not empty.
13601
13602 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
13603
13604         Bobcat Enablement
13605         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13606         (case ${target}): Add btver1.
13607         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13608         -march=native recognize btver1 processors.
13609         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13610         btver1 def_and_undef
13611         * config/i386/i386.c (struct processor_costs btver1_cost): New
13612         btver1 cost table.
13613         (m_BTVER1): New definition.
13614         (m_AMD_MULTIPLE): Includes m_BTVER1.
13615         (initial_ix86_tune_features): Add btver1 tune.
13616         (processor_target_table): Add btver1 entry.
13617         (static const char *const cpu_names): Add btver1 entry.
13618         (software_prefetching_beneficial_p): Add btver1.
13619         (ix86_option_override_internal): Add btver1 instruction sets.
13620         (ix86_issue_rate): Add btver1.
13621         (ix86_adjust_cost): Add btver1.
13622         * config/i386/i386.h (TARGET_BTVER1): New definition.
13623         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13624         (enum processor_type): Add PROCESSOR_BTVER1.
13625         * config/i386/i386.md (define_attr "cpu"): Add btver1.
13626
13627 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13628
13629         PR target/43309
13630         * config/i386/i386.c (legitimize_tls_address)
13631         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13632         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13633         (tls_initial_exec_64_sun): New pattern.
13634
13635 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
13636
13637         * doc/invoke.texi (Overall Options): Improve wording and markup
13638         of the description of -wrapper.
13639
13640 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13641
13642         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13643         rdynamic, threads): New Driver options.
13644
13645 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13646
13647         PR target/38118
13648         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13649         if coming from .tdata.
13650         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13651
13652 2011-01-06  Jan Hubicka  <jh@suse.cz>
13653
13654         PR lto/47188
13655         * collect2.c (main): Do not enable LTOmode when plugin is active.
13656
13657 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13658
13659         PR other/45915
13660         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13661         --version output if supported.
13662         * configure: Regenerate.
13663
13664 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13665
13666         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13667         Driver options.
13668
13669 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
13670
13671         PR c/47150
13672         * c-convert.c (convert): When converting a complex expression
13673         other than COMPLEX_EXPR to a different complex type, ensure
13674         c_save_expr is called instead of save_expr, unless in_late_binary_op.
13675         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13676         when converting COMPLEX_TYPE.
13677
13678 2011-01-06  Ira Rosen  <irar@il.ibm.com>
13679
13680         PR tree-optimization/47139
13681         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13682         only the last reduction value is used outside the loop.  Update
13683         documentation.
13684
13685 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
13686
13687         * config/rtems.opt: New.
13688         * config.gcc (*-*-rtems*): Use rtems.opt.
13689
13690 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
13691
13692         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13693         processors do not support 3DNow instructions.
13694
13695 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13696
13697         * config/spu/spu.c (spu_option_override): Set parameter
13698         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13699
13700 2011-01-05  Jan Hubicka  <jh@suse.cz>
13701
13702         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13703         at the command line.
13704
13705 2011-01-05  Martin Jambor  <mjambor@suse.cz>
13706
13707         PR lto/47162
13708         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13709         deltas on streamed outgoing edges.
13710         (output_node_opt_summary): Output info for outgoing edges only when
13711         the node is in new parameter set.
13712         (output_cgraph_opt_summary): New parameter set, passed to the two
13713         aforementioned functions.  Update its forward declaration and its
13714         callee too.
13715
13716 2011-01-05  Tom Tromey  <tromey@redhat.com>
13717
13718         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13719         operator to c_finish_omp_atomic.
13720         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13721         (build_unary_op): Update.
13722         (build_modify_expr): Update.
13723         (build_asm_expr): Update.
13724
13725 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13726
13727         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13728         newly inserted insns.
13729         (pad_bb): Likewise.
13730         (spu_emit_branch_hint): Likewise.
13731         (insert_hbrp_for_ilb_runout): Likewise.
13732         (spu_machine_dependent_reorg): Call df_finish_pass after
13733         schedule_insns returns.
13734
13735 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13736
13737         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13738
13739 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13740
13741         PR tree-optimization/47005
13742         * tree-sra.c (struct access): Add 'non_addressable' bit.
13743         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13744         (decide_one_param_reduction): Return 0 if the parameter is passed by
13745         reference and one of the accesses in the group is non_addressable.
13746
13747 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13748
13749         PR tree-optimization/47056
13750         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13751         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
13752         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
13753
13754 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13755
13756         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13757         initializer.  Skip view conversions from aggregate types.
13758
13759 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
13760
13761         PR bootstrap/47055
13762         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13763
13764 2011-01-04  Philipp Thomas  <pth@suse.de>
13765
13766         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13767         obvious typo.
13768
13769 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13770
13771         * function.c (thread_prologue_and_epilogue_insns): Do not crash
13772         on empty epilogue sequences.
13773
13774 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
13775
13776         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13777         non-static): New Driver options.
13778
13779 2011-01-04  Jie Zhang  <jie@codesourcery.com>
13780
13781         PR driver/47137
13782         * gcc.c (default_compilers[]): Set combinable field to 0
13783         for all assembly languages.
13784
13785 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
13786
13787         * config/mips/loongson3a.md: New file.
13788         * config/mips/mips.md: Include loongson3a.md.
13789         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13790         TUNE_LOONGSON_3A.
13791
13792 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13793
13794         PR middle-end/47017
13795         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13796         instead of convert_memory_address_addr_space on the base expression.
13797
13798 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13799
13800         * config/spu/spu.c (spu_option_override): Update error text
13801         for bad -march= / -mtune= values.
13802
13803 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13804
13805         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13806         if branch-hint optimization will be performed.
13807
13808 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13809
13810         PR tree-optimization/47148
13811         * ipa-split.c (split_function): Convert arguments to
13812         DECL_ARG_TYPE if possible.
13813
13814         PR tree-optimization/47155
13815         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13816         when computing uns.
13817
13818         PR rtl-optimization/47157
13819         * combine.c (try_combine): If undobuf.other_insn becomes
13820         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13821         and set *new_direct_jump_p too.
13822
13823 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
13824
13825         PR tree-optimization/47021
13826         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13827
13828 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13829
13830         * gcc.c (process_command): Update copyright notice dates.
13831         * gcov.c (print_version): Likewise.
13832         * gcov-dump.c (print_version): Likewise.
13833         * mips-tfile.c (main): Likewise.
13834         * mips-tdump.c (main): Likewise.
13835
13836 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13837
13838         PR tree-optimization/46801
13839         * tree-sra.c (type_internals_preclude_sra_p): Check whether
13840         aggregate fields start at byte boundary instead of the bit-field flag.
13841
13842 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
13843
13844         PR driver/47137
13845         * gcc.c (main): Revert revision 168407.
13846
13847 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13848
13849         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13850
13851 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13852
13853         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13854         vector optab to expand vector/scalar shift, update gimple to vector.
13855
13856 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13857
13858         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13859         a thunk.
13860
13861 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13862
13863         PR tree-optimization/46984
13864         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13865         HOST_WIDE_INT.
13866         (cgraph_create_indirect_edge): Fixed line length.
13867         (cgraph_indirect_call_info): Declare.
13868         (cgraph_make_edge_direct) Update declaration.
13869         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13870         (cgraph_create_indirect_edge): Use it.
13871         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
13872         callees.
13873         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13874         the new thunk_delta representation.
13875         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13876         HOST_WIDE_INT.
13877         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13878         (ipa_read_indirect_edge_info): Likewise.
13879         * lto-cgraph.c (output_edge_opt_summary): New function.
13880         (output_node_opt_summary): Call it on all outgoing edges.
13881         (input_edge_opt_summary): New function.
13882         (input_node_opt_summary): Call it on all outgoing edges.
13883
13884 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
13885
13886         PR driver/47137
13887         * gcc.c (main): Don't check have_o when settting combine_inputs.
13888
13889 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
13890
13891         * regrename.c: Add general comment describing the pass.
13892         (struct du_head): Remove 'length' field.
13893         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13894         (regrename_optimize): Do not sort chains.  Rework comments, add others.
13895         Force renaming to the preferred class (if any) in the first pass and do
13896         not consider registers that belong to it in the second pass.
13897         (create_new_chain): Do not set 'length' field.
13898         (scan_rtx_reg): Likewise.
13899
13900 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
13901
13902         PR tree-optimization/47140
13903         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13904         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13905         to bit_value_binop.
13906
13907         PR rtl-optimization/47028
13908         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13909         parm_birth_insn instead of at the beginning of first bb.
13910
13911 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
13912
13913         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13914         Remove the word "see" before "@pxref".
13915         * doc/rtl.texi: Remove the word "see" before "@pxref".
13916
13917 2011-01-01  Jan Hubicka  <jh@suse.cz>
13918
13919         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13920         memory.
13921
13922 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
13923
13924         PR target/38662
13925         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13926
13927 \f
13928 Copyright (C) 2011 Free Software Foundation, Inc.
13929
13930 Copying and distribution of this file, with or without modification,
13931 are permitted in any medium without royalty provided the copyright
13932 notice and this notice are preserved.