OSDN Git Service

* c-decl.c (c_override_global_bindings_to_false): Remove.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2
3         * c-decl.c (c_override_global_bindings_to_false): Remove.
4         (global_bindings_p): Don't check
5         c_override_global_bindings_to_false.
6         * c-tree.h (c_override_global_bindings_to_false): Remove.
7         * c-typeck.c (composite_type): Don't set
8         c_override_global_bindings_to_false.
9
10 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
11
12         PR target/48857, 48495
13         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
14         (VSX_MODE): Ditto.
15         (VSX_MOVE_MODE): Ditto.
16         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
17         VSX vector types.  Add V2DImode.
18         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
19         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
20         (MODES_TIEABLE_P): Ditto.
21
22         * config/rs6000/rs6000.c (rs6000_emit_move): Use
23         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
24         VSX_VECTOR_MODE.
25         (init_cumulative_args): Ditto.
26         (rs6000_function_arg_boundary): Ditto.
27         (rs6000_function_arg_advance_1): Ditto.
28         (rs6000_function_arg): Ditto.
29         (rs6000_function_ok_for_sibcall): Ditto.
30         (emit_frame_save): Ditto.
31         (rs6000_function_value): Ditto.
32         (rs6000_libcall_value): Ditto.
33
34 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
35
36         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
37         i386/darwin-lib.h to $libgcc_tm_file.
38         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
39
40 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
41
42         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
43
44 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
45
46         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New
47         files.
48         * config/rs6000/rs6000-tables.opt: New file (generated).
49         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
50         rs6000/rs6000-tables.opt to extra_options.
51         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
52         * config/rs6000/rs6000.c (rs6000_select): Remove.
53         (processor_target_table): Move contents to rs6000-cpus.def.
54         (darwin_rs6000_override_options): Check
55         global_options_set.x_rs6000_cpu_index instead of
56         rs6000_select[1].string.
57         (rs6000_option_override_internal): Likewise.
58         (rs6000_handle_option): Don't assert that global structures are in
59         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
60         (rs6000_default_cpu): New variable.
61         (rs6000_file_start): Set it instead of local default_cpu.  Check
62         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
63         global_options_set.x_rs6000_tune_index instead of rs6000_select.
64         (rs6000_darwin_file_start): Check rs6000_default_cpu and
65         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
66         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
67         rs6000_select): Remove.
68         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
69         Remove.
70         (mcpu=, mtune=): Use Var, Init, Enum and Save.
71         * config/rs6000/t-rs6000
72         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
73         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
74         global_options_set.x_rs6000_cpu_index instead of
75         rs6000_select[1].string.
76         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
77         global_options_set.x_rs6000_cpu_index instead of
78         rs6000_select[1].string.
79
80 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
81
82         * config.gcc (libgcc_tm_file): Define instead of including files
83         from ../../libgcc/config/ in tm_file.
84         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list):
85         Define.
86         * configure: Regenerate.
87         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
88         libgcc_tm.h, cs-libgcc_tm.h): New.
89         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
90         (clean): Remove libgcc_tm.h.
91         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
92         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
93         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
94
95 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
96
97         PR target/48896
98         * config/avr/avr.c (avr_ret_register): Return unsigned int
99         instead of int.
100         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
101         it to avr_libcall_value.
102         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
103         expand_expr.
104         (avr_expand_binop_builtin): Ditto.
105         (avr_expand_unop_builtin): Ditto.
106
107 2011-05-10  DJ Delorie  <dj@redhat.com>
108
109         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
110         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
111         * config/rx/rx.c (rx_align_for_label): Add label and
112         uses_threshold parameters.  Do not align when the label is not
113         used enough.
114         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
115
116 2011-05-10  Richard Guenther  <rguenther@suse.de>
117
118         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
119         a series of conversions and apply foldings similar to what
120         fold-const does.
121         (tree_ssa_forward_propagate_single_use_vars): Call it.
122
123 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
124
125         PR tree-optimization/48611
126         PR tree-optimization/48794
127         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
128         referenced from RESX or EH_DISPATCH arguments.
129
130         PR debug/48928
131         * dfp.c (decimal_to_decnumber): Handle conversion from
132         dconst{1,2,m1,half}.
133
134 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
135
136         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
137         for !flag_prefer_avx128.
138         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
139
140 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
141
142         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
143         (fold_ternary_loc): Use expr_location_or.
144
145 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
146
147         PR debug/48853
148         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
149         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
150         Pmode and mem_mode is not VOIDmode.
151
152 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
153
154         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
155         TYPE_QUAL_RESTRICT): Convert to enum.
156
157 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
158
159         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
160         (const_pow2_1_to_8_operand): Ditto.
161         (const_pow2_1_to_128_operand): Ditto.
162         (const_pow2_1_to_32768_operand): Ditto.
163         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
164         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
165         in insn constraint to check integer value of operand 3.
166         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
167
168         (PINSR_MODE): New mode iterator.
169         (sse2p4_1): New mode attribute.
170         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
171         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
172         iterator.  Use const_int_operand instead of
173         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
174         exact_log2 in insn constraint to check integer value of operand 3.
175
176 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
177
178         * config/i386/sse.md (blendbits): Remove mode attribute.
179         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
180         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
181         Check integer value of operand 3 in insn constraint.
182
183 2011-05-09  Richard Guenther  <rguenther@suse.de>
184
185         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
186         for diagnostics.
187         (lto_symtab_merge): Likewise.  Do not register types here.
188         (lto_symtab_merge_decls_2): Likewise.
189         (lto_symtab_merge_decls_1): Likewise.
190         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
191         * gimple.c (enum gtc_mode): Declare.
192         (gimple_types_compatible_p): Make static.
193
194 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
195
196         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
197         temporary register to match Pmode.
198
199 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
200
201         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
202         and *vec_concatv4si_1_avx.
203
204 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
205
206         PR rtl-optimization/48927
207         * ira-conflicts.c (commutative_constraint_p): Use
208         recog_data.alternative_enabled_p to disable alternatives where
209         "enabled" attribute is false.
210         (get_dup_num): Ditto.
211         * ira-lives.c (single_reg_class): Ditto.
212         (ira_implicitly_set_insn_hard_regs): Ditto.
213
214 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
215
216         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
217         (dataflow_set_preserve_mem_locs): Likewise.
218
219 2011-05-09  Philipp Thomas  <pth@suse.de>
220
221         * config/mep/mep.c (mep_validate_vliw): Syntax description
222         should not be translated.
223
224 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
225
226         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
227         * config/mips/mips-tables.opt: New file (generated).
228         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
229         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
230         MIPS_ARCH_OPTION_NATIVE): Define.
231         * config/mips/mips.c (mips_cpu_info_table): Move contents to
232         mips-cpus.def.
233         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
234         mips_parse_cpu): Remove.
235         (mips_cpu_info_from_opt, mips_default_arch): New.
236         (mips_handle_option): Don't assert that global structures are in
237         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
238         (mips_option_override): Use new variables and functions to set
239         state of these options.  Use strcmp to check for individual CPU names.
240         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
241         definition.
242         * config/mips/mips.opt (march=): Use ToLower and Enum.
243         (mips): Use ToLower, Enum and Var.
244         (mtune=): Use ToLower and Enum.
245         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
246
247 2011-05-08  Jan Hubicka  <jh@suse.cz>
248
249         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
250         Arrange type pairs to be UID ordered.
251         (gimple_lookup_type_leader): Make inline.
252
253 2011-05-09  Nick Clifton  <nickc@redhat.com>
254
255         PR target/48899
256         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
257         PROCESSOR_DEFAULT.
258
259         PR target/48897
260         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
261         variable 's'.
262
263 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
264
265         * combine.c (simplify_comparison): Abstract out parts into...
266         (simplify_compare_const): ... new function.
267         (try_combine): Generalize parallel arithmetic/compare combining
268         to call simplify_compare_const() and CANONICALIZE_COMPARE().
269
270 2011-05-08  Jan Hubicka  <jh@suse.cz>
271
272         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
273         (cgraph_create_virtual_clone): Call hooks once virtual clone
274         is finished.
275         * cgraph.h (cgraph_clone_node): Update prototype.
276         * ipa-cp.c (ipcp_estimate_growth): Use
277         estimate_ipcp_clone_size_and_time.
278         * ipa-inline-transform.c (clone_inlined_nodes): Update.
279         * lto-cgraph.c (input_node): Update.
280         * ipa-inline.c (recursive_inlining): Update.
281         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
282         (evaluate_conditions_for_known_args): Break out from ...
283         (evaluate_conditions_for_edge): ... here.
284         (evaluate_conditions_for_ipcp_clone): New function.
285         (inline_node_duplication_hook): Update clone summary based
286         on parameter map.
287         (estimate_callee_size_and_time): Rename to ...
288         (estimate_node_size_and_time): take NODE instead of EDGE;
289         take POSSIBLE_TRUTHS as argument.
290         (estimate_callee_size_and_time): Update.
291         (estimate_ipcp_clone_size_and_time): New function.
292         (do_estimate_edge_time): Update.
293
294 2011-05-08  Richard Guenther  <rguenther@suse.de>
295
296         PR middle-end/48908
297         PR middle-end/48905
298         * expmed.c (expand_shift_1): Compute adjusted constant shift
299         amount manually.
300
301 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
302
303         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
304
305 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
306
307         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
308
309 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
310
311         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
312
313 2011-05-07  Jan Hubicka  <jh@suse.cz>
314
315         * ipa-inline-transform.c (inline_call): Account when program size
316         decreases.
317         * ipa-inline.c (relative_time_benefit): New function.
318         (edge_badness): Reorganize to be power 2 based; fix thinko when
319         computing badness for negative growth; update comments to match
320         reality; better dumps.
321
322 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
323
324         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
325         type to bool and adjust comment.
326         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
327         (fold_mathfn_compare): Remove calls to global_bindings_p.
328         (fold_inf_compare): Likewise.
329         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
330         * c-tree.h (global_bindings_p): Adjust prototype.
331         * c-decl.c (global_bindings_p): Return bool and simplify.
332
333 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
334
335         PR tree-optimization/48837
336         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
337         when accumulator transformation is performed.
338
339 2011-05-06  Jan Hubicka  <jh@suse.cz>
340
341         * i386.h (ix86_tune_indices): Add
342         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
343         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
344         * i386.c (initial_ix86_tune_features): Add
345         X86_SOFTARE_PREFETCHING_BENEFICIAL.
346         (software_prefetching_beneficial_p): Remove predicate.
347         (ix86_option_override_internal): Use new macro.
348
349 2011-05-06  Jan Hubicka  <jh@suse.cz>
350
351         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
352
353 2011-05-06  Jan Hubicka  <jh@suse.cz>
354
355         * cgraph.c (cgraph_add_thunk): Create real function node instead
356         of alias node; finalize it and mark needed/reachale; arrange visibility
357         to be right and add it into the corresponding same comdat group list.
358         (dump_cgraph_node): Dump thunks.
359         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
360         cgraph_function_with_gimple_body_p,
361         cgraph_first_function_with_gimple_body,
362         cgraph_next_function_with_gimple_body): New functions.
363         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
364         New macros.
365         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
366         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
367         * cgraphunit.c (cgraph_finalize_function): Only look into possible
368         devirtualization when optimizing.
369         (verify_cgraph_node): Verify thunks.
370         (cgraph_analyze_function): Analyze thunks.
371         (cgraph_mark_functions_to_output): Output thunks only in combination
372         with function they are assigned to.
373         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
374         alias into normal node.
375         (assemble_thunks): New functoin.
376         (cgraph_expand_function): Use it.
377         * lto-cgraph.c (lto_output_node): Stream thunks.
378         (input_overwrite_node): Stream in thunks.
379         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
380         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
381         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
382         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
383         (inline_analyze_function): Do not care about thunk jump functions.
384         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
385         * ipa-prop.c (ipa_prop_write_jump_functions): Use
386         cgraph_function_with_gimple_body_p.
387         * passes.c (do_per_function_toporder): Use
388         cgraph_function_with_gimple_body_p.
389         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
390         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
391         (function_called_by_processed_nodes_p): Likewise.
392
393 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
394
395         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
396         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
397         entries.
398         (mabi=): Replace with separate entries for mabi=altivec,
399         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
400         mabi=ieeelongdouble and mabi=ibmlongdouble.
401         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
402         check for -mabi=spe without SPE ABI support here.
403         (rs6000_handle_option): Replace OPT_mabi_ handling with
404         OPT_mabi_altivec and OPT_mabi_spe handling.
405
406 2011-05-06  Cary Coutant  <ccoutant@google.com>
407
408         * dwarf2out.c (contains_subprogram_definition): New function.
409         (should_move_die_to_comdat): Call it.
410
411 2011-05-06  Jeff Law  <law@redhat.com>
412
413         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
414         remove_ctrl_stmt_and_useless_edges.
415         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
416         (fixup_template_block, thread_single_edge): Likewise.
417         (mark_threaded_blocks): Use THREAD_TARGET.
418
419 2011-05-06  Alan Modra  <amodra@gmail.com>
420
421         PR target/48900
422         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
423         const0_rtx as the arg to the dummy __tls_get_addr libcall.
424
425 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
426
427         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
428         constraint modifier to "r".
429
430 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
431
432         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
433         fall through for OPT_mcmodel_.
434
435 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
436
437         * config/s390/s390.c (s390_asm_trampoline_template): Comment
438         instruction sizes.
439         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
440
441 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
442
443         PR target/47930
444         * config/arm/arm.opt (marm): Document it.
445         (mthumb): Reject negative variant.
446
447 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
448
449         PR target/48898
450         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
451         Fix typo in "ccvt" variable name.
452
453 2011-05-06  Tristan Gingold  <gingold@adacore.com>
454
455         PR target/48895
456         * config/vms/vms-ar.c (main): Remove cwd variable.
457
458 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
459
460         PR debug/48902
461         * var-tracking.c (prepare_call_arguments): Move else before #endif.
462
463 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
464
465         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
466         * gimplify.c (gimplify_switch_expr): Likewise.
467         * omp-low.c (expand_omp_sections): Likewise.
468         * tree-eh.c (lower_try_finally_switch): Likewise.
469         (lower_eh_dispatch): Likewise.
470         * tree.h (build_case_label): Declare.
471         * tree.c (build_case_label): Define.
472
473 2011-05-05  Jason Merrill  <jason@redhat.com>
474
475         PR c++/40975
476         * tree-inline.c (copy_tree_r): Use copy_statement_list.
477         (copy_statement_list): Don't recurse.
478         * stor-layout.c (copy_self_referential_tree_r): Don't allow
479         STATEMENT_LIST.
480
481 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
482
483         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
484         through from -mfpu= handling.
485         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
486
487 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
488
489         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
490         POST_MODIFY.
491
492 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
493
494         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
495         for 11.31.
496         (hppa[12]*-*-hpux11*): Ditto.
497         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
498         * config/ia64/hpux-unix2003.h: New.
499         * config/pa/pa-hpux1131.opt: New.
500         * config/pa/pa-hpux1131.h: New.
501         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
502         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
503         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
504
505 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
506
507         PR debug/48853
508         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
509         instead of mode as 3rd argument to recursive call.
510         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
511         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
512         VOIDmode.
513         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
514         don't give up if mode is Pmode and mem_mode is not VOIDmode.
515         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
516         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
517
518 2011-05-05  Julian Brown  <julian@codesourcery.com>
519
520         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
521         parenthesis in D-register case.
522
523 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
524
525         * opt-functions.awk (var_type_struct): Handle Enum options.
526         * optc-gen.awk: Don't check range of variables of character type.
527         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
528         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
529         rs6000_sdata_name, rs6000_explicit_options): Remove.
530         (rs6000_option_override_internal): Check for -malign-power here.
531         Use global_options_set instead of rs6000_explicit_options.
532         (rs6000_parse_fpu_option): Remove.
533         (rs6000_handle_option): Access variables via opts and opts_set
534         pointers.  Use error_at and warning_at.  Add fall-through
535         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
536         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
537         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
538         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
539         here.  Don't use rs6000_parse_fpu_option.
540         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
541         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
542         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
543         (mrecip=): Use Var.
544         (mspe): Use Var and Save.
545         (mtraceback=): Use Enum and Var.
546         (rs6000_traceback_type): New Enum and EnumValue entries.
547         (mfloat-gprs=): Use Enum, Var and Save.
548         (rs6000_float_gprs): New Enum and EnumValue entries.
549         (mlong-double-): use Var and Save.
550         (msched-costly-dep=, minsert-sched-nops=): Use Var.
551         (malign-): Use Enum and Var.
552         (rs6000_alignment_flags): New Enum and EnumValue entries.
553         (mfpu=): Use Enum.
554         (fpu_type_t): New Enum and EnumValue entries.
555         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
556         global_options_set instead of rs6000_explicit_options.
557         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
558         global_options_set instead of rs6000_explicit_options.
559         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
560         global_options_set instead of rs6000_explicit_options.
561         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
562         global_options_set instead of rs6000_explicit_options.
563         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
564         global_options_set instead of rs6000_explicit_options.
565         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
566         global_options_set instead of rs6000_explicit_options.
567         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
568         definition.
569         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
570         global_options_set instead of rs6000_explicit_options.
571         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
572         (rs6000_cmodel): New Enum and EnumValue entries.
573         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
574         global_options_set instead of rs6000_explicit_options.
575         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
576         (mtls-size=): Use Enum and Var.
577         (rs6000_tls_size): New Enum and EnumValue entries.
578
579 2011-05-05  Michael Matz  <matz@suse.de>
580
581         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
582         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
583         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
584         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
585         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
586         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
587         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
588         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
589         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
590         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
591         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
592         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
593         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
594         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
595         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
596         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
597
598 2011-05-05  Richard Guenther  <rguenther@suse.de>
599
600         * expmed.c (expand_variable_shift): Rename to ...
601         (expand_shift_1): ... this.  Take an expanded shift amount.
602         For rotates recurse directly not building trees for the shift amount.
603         (expand_variable_shift): Wrap around expand_shift_1.
604         (expand_shift): Adjust.
605
606 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
607
608         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
609
610 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
611
612         * tree.h (get_pending_sizes): Remove prototype.
613         (put_pending_size): Likewise.
614         (put_pending_sizes): Likewise.
615         * stor-layout.c (pending_sizes): Delete.
616         (get_pending_sizes): Likewise.
617         (put_pending_size): Likewise.
618         (put_pending_sizes): Likewise.
619         (variable_size): Do not call put_pending_size and tidy up.
620         * function.h (struct function): Remove dont_save_pending_sizes_p.
621         * lto-streamer-in.c (input_function): Do not stream it.
622         * lto-streamer-out.c (output_function): Likewise.
623         * tree-inline.c (initialize_cfun): Do not copy it.
624         * c-decl.c (store_parm_decls): Do not set it.
625         * omp-low.c (create_task_copyfn): Likewise.
626         * tree-optimize.c (tree_rest_of_compilation): Likewise.
627
628 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
629
630         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
631         conditions.
632         (*movdf_internal): Ditto.
633         (*movdf_internal_nointeger): Ditto.
634         (*movsf_internal): Ditto.
635
636 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
637
638         * c-decl.c (finish_decl): Don't call get_pending_sizes.
639         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
640         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
641         (c_variable_size): Remove.
642         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
643         call put_pending_sizes.
644         (get_parm_info): Add parameter expr.  Use it to set
645         arg_info->pending_sizes.
646         (store_parm_decls): Use arg_info->pending_sizes instead or calling
647         get_pending_sizes.
648         * c-parser.c (c_parser_parms_declarator): Update call to
649         c_parser_parms_list_declarator.
650         (c_parser_parms_list_declarator): Take parameter expr.  Update
651         call to push_parm_decl.  Update recursive call.  Don't call
652         get_pending_sizes.  Update calls to get_parm_info.
653         (c_parser_objc_method_definition): Update calls to
654         c_parser_objc_method_decl and objc_start_method_definition.
655         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
656         (c_parser_objc_method_decl): Add parameter expr.  Update call to
657         grokparm.
658         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
659         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
660         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
661
662 2011-05-05  Michael Hope  <michael.hope@linaro.org>
663
664         PR pch/45979
665         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
666         __ARM_EABI__ hosts.
667
668 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
669
670         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
671         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
672         (spu_output_mi_thunk): New function.
673
674 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
675
676         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
677         targetm.asm_out.print_operand.
678         * config/sol2.c: Include target.h.
679
680 2011-05-04  Jan Hubicka  <jh@suse.cz>
681
682         * ipa-inline.c (reset_edge_caches): New function.
683         (update_caller_keys): Add check_inlinablity_for; do not
684         reset edge caches; remove now unnecesary loop.
685         (update_callee_keys): Add comments; reset node_growth_cache of callee.
686         (update_all_callee_keys): Likewise.
687         (inline_small_functions): Sanity check cache; update code
688         recomputing it.
689
690 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
691
692         PR rtl-optimization/47612
693         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
694         as the last insn of the sequence to be moved.
695
696 2011-05-04  Tobias Burnus  <burnus@net-b.de>
697
698         PR fortran/48864
699         * doc/invoke.texi (Ofast): Document that it
700         enables Fortran's -fno-protect-parens.
701
702 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
703
704         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
705
706 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
707
708         * stor-layout.c (variable_size): Do not issue errors.
709
710 2011-05-04  Richard Guenther  <rguenther@suse.de>
711
712         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
713         for array-ref indices.
714         (tree_coverage_counter_addr): Likewise.
715         (build_fn_info_type): Use size_int for index types.
716         (build_gcov_info): Likewise.
717
718 2011-05-04  Richard Guenther  <rguenther@suse.de>
719
720         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
721         to build_int_cst.
722         * c-typeck.c (really_start_incremental_init): Use bitsize_int
723         for constructor indices.
724         (push_init_level): Likewise.
725
726 2011-05-04  Richard Guenther  <rguenther@suse.de>
727
728         * explow.c (promote_mode): Move variable declarations before code.
729
730 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
731
732         * tree.h (build_function_type_array): Declare.
733         (build_varargs_function_type_array): Declare.
734         (build_function_type_vec, build_varargs_function_type_vec): Define.
735         * tree.c (build_function_type_array_1): New function.
736         (build_function_type_array): New function.
737         (build_varargs_function_type_array): New function.
738
739 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
740
741         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
742         before setting STMT_VINFO_TYPE.
743
744 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
745
746         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
747         instead of spu_pass_by_reference.
748
749 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
750
751         * calls.c (emit_library_call_value_1): Invoke
752         promote_function_mode hook on libcall arguments.
753         * explow.c (promote_function_mode, promote_mode): Handle TYPE
754         argument being NULL.
755         * targhooks.c (default_promote_function_mode): Lisewise.
756         * config/s390/s390.c (s390_promote_function_mode): Likewise.
757         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
758
759         * doc/tm.texi: Document that TYPE argument might be NULL.
760
761 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
762
763         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
764
765 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
766
767         From Bernd Schmidt
768         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
769
770 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
771
772         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
773         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
774         Move ...
775         * mips-tfile.c: ... here.
776         Don't include coretypes.h, tm.h, filenames.h.
777         (saber_stop): Remove definition and all calls.
778         [__SABER__]: Remove.
779         (__LINE__): Remove default.
780         (Size_t, Ptrdiff_t): Remove definitions.
781         Replace by size_t, ptrdiff_t.
782         [!MIPS_DEBUGGING_INFO]: Remove.
783         (SHASH_SIZE, THASH_SIZE): Remove defaults.
784         (progname): Add const.
785         (STATIC): Remove.
786         Replace all uses by static.
787         (ALIGN_SYMTABLE_OFFSET): Remove default.
788         * mips-tdump.c: Don't include coretypes.h, tm.h.
789         Remove !MIPS_IS_STAB guard.
790         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
791         $(TM_H), filenames.h dependencies.
792         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
793
794 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
795
796         From Jie Zhang
797         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
798         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
799
800 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
801
802         From Bernd Schmidt
803         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
804         account and save/restore RETS.
805         (PROFILE_BEFORE_PROLOGUE): Define.
806         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
807         the push insn to use predecrement.
808
809 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
810
811         From Jie Zhang
812         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
813
814 2011-05-04  Nick Clifton  <nickc@redhat.com>
815
816         * config/mn10300/mn10300.c: Include cfgloop.h.
817         (DUMP): New macro.
818         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
819         Lcc or a FLcc insn into the instruction stream.
820         (mn10300_block_contains_call): New function.  Returns true if the
821         given basic block contains a CALL insn.
822         (mn10300_loop_contains_call_insn): New function.  Returns true if
823         the given loop contains a CALL insn.
824         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
825         to use the SETLB and Lcc or FLcc insns.
826         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
827         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
828         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
829         disable the SETLB optimization.
830         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
831         __SETLB__ or __NO_SETLB__.
832         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
833         (movsf_internal): Handle MDR register.
834         (cmpsi): Make visible.
835         (setlb): New pattern.
836         (Lcc): New pattern.
837         (FLcc): New pattern.
838
839 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
840
841         PR target/48860
842         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
843         for reg<->xmm moves.
844         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
845         (vec_concatv2di_rex64_sse): Ditto.
846         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
847         (*vec_extractv2di_1_rex64): Ditto.
848
849         Revert:
850         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
851
852         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
853         reg<->xmm moves.
854         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
855
856 2011-05-04  Richard Guenther  <rguenther@suse.de>
857
858         * tree.h (int_const_binop): Remove notrunc argument.
859         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
860         create integer constants that are properly truncated.
861         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
862         (const_binop): Remove zero notrunc argument to int_const_binop.
863         (size_binop_loc): Likewise.
864         (fold_div_compare): Likewise.
865         (maybe_canonicalize_comparison_1): Likewise.
866         (fold_comparison): Likewise.
867         (fold_binary_loc): Likewise.
868         (multiple_of_p): Likewise.
869         * expr.c (store_constructor): Likewise.
870         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
871         (maybe_fold_stmt_addition): Likewise.
872         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
873         * stor-layout.c (layout_type): Likewise.
874         * tree-data-ref.c (tree_fold_divides_p): Likewise.
875         * tree-sra.c (build_ref_for_offset): Likewise.
876         (build_user_friendly_ref_for_offset): Likewise.
877         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
878         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
879         * tree-ssa-loop-niter.c (inverse): Likewise.
880         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
881         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
882         * tree-switch-conversion.c (check_range): Likewise.
883         (build_constructors): Likewise.
884         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
885         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
886         (extract_range_from_assert): Likewise.
887         (vrp_int_const_binop): Likewise.
888         (extract_range_from_binary_expr): Likewise.
889         (extract_range_from_unary_expr): Likewise.
890         (check_array_ref): Likewise.
891         (find_case_label_range): Likewise.
892         (simplify_div_or_mod_using_ranges): Likewise.
893         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
894         comparing case labels for merging.
895
896 2011-05-03  Mark Wielaard  <mjw@redhat.com>
897
898         * dwarf2out.c (debug_str_hash_forced): Removed.
899         (gen_label_for_indirect_string): Removed.
900         (get_debug_string_label): Removed.
901         (AT_string_form): Generate label directly.
902         (output_indirect_string): Test indirect_string_node for
903         DW_FORM_strp instead of checking label and refcount.
904         (prune_indirect_string): Removed.
905         (prune_unused_types): Don't check debug_str_hash_forced or
906         call prune_indirect_string.
907
908 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
909
910         PR other/48093
911         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
912
913 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
914
915         PR debug/47994
916         PR debug/47919
917         * combine.c (try_combine): Skip debug insns at m_split tests.
918
919 2011-04-26  Mark Wielaard  <mjw@redhat.com>
920
921         PR42288
922         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
923         when info_section_emitted.
924
925 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
926
927         * config/mips/mips-opts.h: New.
928         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
929         to mips-opts.h.
930         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
931         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
932         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
933         via opts pointer.
934         * config/mips/mips.h (enum mips_code_readable_setting): Move to
935         mips-opts.h.
936         (mips_abi, mips_code_readable): Don't declare.
937         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
938         (mabi=): Use Enum and Var.
939         (mips_abi): New Enum and EnumValue entries.
940         (mcode-readable=): Use Enum and Var.
941         (mips_code_readable_setting): New Enum and EnumValue entries.
942         (mr10k-cache-barrier=): Use Enum and Var.
943         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
944
945 2011-05-03  Jan Hubicka  <jh@suse.cz>
946
947         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
948         replace hash by pointer map.
949         (cgraph_node_set_element_def, cgraph_node_set_element,
950         const_cgraph_node_set_element, varpool_node_set_element_def,
951         varpool_node_set_element, const_varpool_node_set_element): Remove.
952         (free_cgraph_node_set, free_varpool_node_set): New function.
953         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
954         * tree-emutls.c: Free varpool node set.
955         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
956         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
957         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
958         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
959         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
960         Move here from ipa.c; implement using pointer_map
961         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
962         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
963         debug_cgraph_node_set, varpool_node_set_new,
964         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
965         dump_varpool_node_set, debug_varpool_node_set):
966         Move to ipa-uitls.c.
967         * passes.c (ipa_write_summaries): Update.
968
969 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
970
971         From Mike Frysinger:
972         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
973         bf542/bf544/bf547/bf548/bf549.
974
975 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
976
977         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
978
979 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
980
981         From Bernd Schmidt:
982         * config/bfin/bfin.md (MOVCC): New mode_macro.
983         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
984         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
985         comments from generated assembly.
986
987 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
988
989         From Bernd Schmidt
990         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
991         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
992         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
993         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
994         * config/bfin/lib1funcs.asm (___muldi3): New function.
995
996 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
997
998         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
999         build_function_type_list instead of build_function_type.
1000         Rearrange initialization of `args' to do so.
1001
1002 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1003
1004         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1005         instead of build_function_type.
1006
1007 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1008
1009         * config/rs6000/rs6000.c (spe_init_builtins): Call
1010         build_function_type_list instead of build_function_type.
1011         (paired_init_builtins, altivec_init_builtins): Likewise.
1012         (builtin_function_type): Likewise.
1013
1014 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1015
1016         * config/sh/sh.c (sh_media_init_builtins): Call
1017         build_function_type_list instead of build_function_type.
1018
1019 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1020
1021         * config/sparc/sparc.c (sparc_file_end): Call
1022         build_function_type_list instead of build_function_type.
1023
1024 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1025
1026         * config/alpha/alpha.c (alpha_init_builtins): Call
1027         build_function_type_list instead of build_function_type.
1028
1029 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1030
1031         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1032         build_function_type_list instead of build_function_type.
1033
1034 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1035
1036         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1037         build_function_type_list instead of build_function_type.
1038         Delete `endlink' variable.
1039
1040 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1041
1042         * config/avr/avr.c (avr_init_builtins): Call
1043         build_function_type_list instead of build_function_type.
1044
1045 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1046
1047         * config/picochip/picochip.c (picochip_init_builtins): Call
1048         build_function_type_list instead of build_function_type.
1049         Delete `endlink' variable.
1050
1051 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1052
1053         * config/bfin/bfin.c (bfin_init_builtins): Call
1054         build_function_type_list instead of build_function_type.
1055
1056 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1057
1058         From Bernd Schmidt
1059         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1060         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1061
1062 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1063
1064         From Jie Zhang:
1065         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1066         libbffastfp overrides libgcc when -mfast-fp.
1067
1068 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
1069
1070         Originally from Bernd Schmidt
1071         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1072         * config/bfin/bfin.c (override_options): Test it and error if
1073         TARGET_FDPIC.
1074
1075 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1076
1077         Originally From Bernd Schmidt
1078         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1079         FD-PIC.
1080
1081 2011-05-03  Jeff Law  <law@redhat.com>
1082
1083         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1084         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1085         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1086         than accessing AUX field directly.  Free the AUX field before
1087         clearing it.
1088         (thread_block, thread_through_loop_header): Likewise.
1089         (thread_single_edge, mark_threaded_blocks): Likewise.
1090         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1091         (register_jump_thread): Do not attempt to thread to a NULL edge.
1092
1093 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1094
1095         * function.c (init_function_start): Call decide_function_section.
1096         * varasm.c (decide_function_section): New function.
1097         (assemble_start_function): When not using
1098         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1099         or first_function_block_is_cold.
1100         * rtl.h (decide_function_section): Declare.
1101
1102 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1103             Jakub Jelinek  <jakub@redhat.com>
1104
1105         PR target/48774
1106         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1107         only succeed if req_mode is the same as set_mode.
1108
1109 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1110
1111         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1112         * genemit.c (gen_exp): Handle RETURN.
1113         * emit-rtl.c (verify_rtx_sharing): Likewise.
1114         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1115         * rtl.c (copy_rtx): RETURN is shared.
1116         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1117         (ret_rtx): New.
1118         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1119         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1120         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1121         * config/cris/cris.c (cris_expand_return): Likewise.
1122         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1123         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1124         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1125         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1126         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1127         Likewise.
1128         * config/v850/v850.c (expand_epilogue): Likewise.
1129         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1130         * config/arm/arm.md (epilogue): Likewise.
1131         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1132         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1133         variable to ret_reg.
1134
1135 2011-05-03  Richard Guenther  <rguenther@suse.de>
1136
1137         PR lto/48846
1138         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1139         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1140         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1141
1142 2011-05-03  Richard Guenther  <rguenther@suse.de>
1143
1144         * c-decl.c (grokdeclarator): Instead of looking at
1145         TREE_OVERFLOW check if the constant fits in the index type.
1146
1147 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1148
1149         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1150         (vec_store_lanes<mode><mode>): Likewise.
1151
1152 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1153
1154         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1155         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1156         convert_optab_index values.
1157         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1158         * genopinit.c (optabs): Initialize the new optabs.
1159         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1160         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1161         (expand_STORE_LANES): New functions.
1162         * tree.h (build_array_type_nelts): Declare.
1163         * tree.c (build_array_type_nelts): New function.
1164         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1165         (vect_model_load_cost): Likewise.
1166         (vect_store_lanes_supported, vect_load_lanes_supported)
1167         (vect_record_strided_load_vectors): Declare.
1168         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1169         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1170         (vect_transform_strided_load): Split out statement recording into...
1171         (vect_record_strided_load_vectors): ...this new function.
1172         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1173         (write_vector_array, create_array_ref): New functions.
1174         (vect_model_store_cost): Add store_lanes_p argument.
1175         (vect_model_load_cost): Add load_lanes_p argument.
1176         (vectorizable_store): Try to use store-lanes functions for
1177         interleaved stores.
1178         (vectorizable_load): Likewise load-lanes and loads.
1179         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1180         to vect_model_store_cost.
1181         (vect_build_slp_tree): Likewise vect_model_load_cost.
1182
1183 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1184
1185         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1186         * hooks.c (hook_bool_mode_uhwi_false): New function.
1187         * target.def (array_mode_supported_p): New hook.
1188         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1189         * doc/tm.texi: Regenerate.
1190         * stor-layout.c (mode_for_array): New function.
1191         (layout_type): Use it.
1192         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1193         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1194
1195 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1196
1197         PR target/48723
1198         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1199         for -fstack-check if the size to allocate is negative.
1200
1201 2011-05-02  Lawrence Crowl  <crowl@google.com>
1202
1203         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1204         (timevar_cond_start): New for starting a timer only when it is not
1205         already running.
1206         (timevar_cond_stop): New for stopping a timer when it was not already
1207         running.
1208
1209         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1210         (timevar_cond_start): New as above.
1211         (timevar_cond_stop): New as above.
1212
1213         * timevar.def: Add start/stop timers for compiler phases,
1214         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1215         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1216         and TV_PHASE_FINALIZE.
1217         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1218         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1219         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1220         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1221         Make unused TV_OVERLOAD into a start/stop timer.
1222
1223         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1224         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1225         to indicate that they are start/stop timers.
1226
1227         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1228         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1229         Move initialization to do_compile.
1230         (do_compile): Add initialization from above.
1231         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1232
1233         * c-decl.c (c_write_global_declarations): Add start/stop of
1234         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1235
1236         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1237         or TV_PARSE_INLINE, as appropriate.
1238         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1239         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1240
1241 2011-05-02  Jason Merrill  <jason@redhat.com>
1242
1243         PR c++/40975
1244         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1245
1246 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1247
1248         PR c/35445
1249         * c-decl.c (finish_decl): Only create a composite if the types are
1250         compatible.
1251
1252 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1253
1254         * config/fr30/fr30-protos.h (Mmode): Don't define.
1255         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1256         definition where used.
1257         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1258         define.  Expand definitions where used.
1259         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1260         Expand definitions where used.
1261         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1262         rx_function_arg, rx_function_arg_advance,
1263         rx_function_arg_boundary): Expand definitions of those macros.
1264         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1265         definition where used.
1266
1267 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1268
1269         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1270         reg<->xmm moves.
1271         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1272         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1273         with *movv2sf_internal_rex64_avx.
1274         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1275         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1276         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1277         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1278         "vex" in "prefix" attribute calculation.
1279         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1280
1281 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1282
1283         PR target/47951
1284         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1285         inputs match the output.
1286
1287 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1288
1289         PR target/47955
1290         * config/m68k/m68k.c (m68k_expand_prologue): Set
1291         current_function_static_stack_size.
1292
1293 2011-05-02   Jan Hubicka  <jh@suse.cz>
1294
1295         * lto-streamer.c (lto_streamer_cache_insert_1,
1296         lto_streamer_cache_lookup, lto_streamer_cache_create,
1297         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1298         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1299
1300 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1301
1302         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1303         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1304         config/m68k/t-opts: New files.
1305         * config/m68k/m68k-tables.opt: New file (generated).
1306         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1307         extra_options and m68k/t-opts to tmake_file.
1308         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1309         (all_isas): Initialize using m68k-isas.def.
1310         (all_microarchs): Initialize using m68k-microarchs.def.
1311         (m68k_find_selection): Remove.
1312         (m68k_handle_option): Don't assert that global structures are in
1313         use.  Use error_at.  Access variables via opts pointer.  Don't
1314         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1315         directly for -m68020-40 and -m68020-60.
1316         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1317         m68k_tune_entry here.
1318         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1319         to m68k-opts.h.
1320         (m68k_library_id_string): Remove declaration.
1321         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1322         (m68k_library_id_string): New Variable.
1323         (march=, mcpu=, mtune=): Use Enum and Var.
1324
1325 2011-05-02  Richard Guenther  <rguenther@suse.de>
1326
1327         * varasm.c (output_constructor_regular_field): Compute zero-based
1328         index with double-ints.  Make sure to ICE instead of producing
1329         wrong code.
1330         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1331         in asserts.  Properly use a signed type.
1332
1333 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1334
1335         * config/i386/sse.md (V): New mode iterator.
1336         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1337         TARGET_SSE2.
1338         (V_256): Rename from AVX256MODE.
1339         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1340         condition to all users.
1341         (VF1): Ditto.
1342         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1343         condition to all users.
1344         (VF_128): Make V4SF mode unconditional.
1345         (VF_256): Rename from AVX256MODEF2P.
1346         (VI4F_128): Rename from SSEMODE4S.
1347         (VI8F_128): Rename from SSEMODE2D.
1348         (VI4F_256): Rename from AVX256MODE8P.
1349         (VI8F_256): Rename from AVX256MODE4P.
1350         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1351         (ssescalarmodesuffix): Remove SF and DF modes.
1352         (SSEMODE124): Remove.
1353         (SSEMODE1248): Ditto.
1354         (SSEMODEF2P): Ditto.
1355         (AVXMODEF2P): Ditto.
1356         (AVXMODEFDP): Ditto.
1357         (AVXMODEFSP): Ditto.
1358         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1359         unconditional.
1360         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1361         unconditional.
1362         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1363         xop_pcmov_<mode>256.  Use V mode iterator.
1364
1365         Adjust RTX patterns globally for renamed mode attributes.
1366
1367 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1368
1369         * haifa-sched.c (sched_emit_insn): Emit insn before first
1370         non-scheduled insn.  Inform back-end about new insn.  Add
1371         new insn to scheduled_insns list.
1372
1373 2011-05-02  Richard Guenther  <rguenther@suse.de>
1374
1375         PR tree-optimization/48822
1376         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1377         (process_scc): Indicate which iteration we start.
1378
1379 2011-05-02  Jan Hubicka  <jh@suse.cz>
1380
1381         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1382         (lto_section_overrun): New.
1383         * lto-section-out.c (append_block): Rename to ...
1384         (lto_append_block): ... this one; export.
1385         (lto_output_1_stream): Move lto lto-streamer.h
1386         (lto_output_data_stream): Update.
1387         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1388         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1389         functions.
1390
1391 2011-05-02  Richard Guenther  <rguenther@suse.de>
1392
1393         * tree.c (tree_code_counts): New global array.
1394         (record_node_allocation_statistics): Count individual tree codes.
1395         (dump_tree_statistics): Dump individual code stats.
1396
1397 2011-05-01  Jan Hubicka  <jh@suse.cz>
1398
1399         * ipa-inline.c (caller_growth_limits): Fix thinko when
1400         looking for largest stack frame.
1401         * ipa-inline.h (dump_inline_summary): Declare.
1402         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1403         on stack usage.
1404         (dump_inline_summary): Export.
1405         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1406
1407 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1408
1409         * reginfo.c (memory_move_cost): Change rclass argument type form
1410         'enum reg_class' to reg_class_t.
1411         * reload.h (memory_move_cost): Update prototype.
1412         * postreload.c reload_cse_simplify_set): Change type dclass var to
1413         reg_class_t.
1414         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1415         Update prototype.
1416         (ira_allocate_and_set_costs): Change aclass argument type form
1417         'enum reg_class' to reg_class_t.
1418         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1419         Change aclass argument type to reg_class_t.
1420         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1421         to reg_class_t.
1422         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1423         memory_move_cost call.
1424
1425         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1426         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1427         Change type tmp var to reg_class_t.
1428
1429 2011-04-30  Jan Hubicka  <jh@suse.cz>
1430
1431         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1432         inlining into function with flatten attribute.
1433         (want_inline_small_function_p): Be more realistic about inlining
1434         cold calls where callee size grows.
1435
1436 2011-04-30  Jan Hubicka  <jh@suse.cz>
1437
1438         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1439         flags.
1440
1441 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1442
1443         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1444         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1445         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1446         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1447         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1448         (print_operand): Rename to...
1449         (sparc_print_operand): ...this. Make static. Adjust
1450         sparc_print_operand function call.
1451         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1452         functions.
1453
1454 2011-04-30  Jan Hubicka  <jh@suse.cz>
1455
1456         PR middle-end/48752
1457         * ipa-inline.c (early_inliner): Disable when doing late
1458         addition of function.
1459
1460 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1461
1462         * dwarf2out.c (get_address_mode): New inline.
1463         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1464         if not dwarf_strict emit
1465         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1466         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1467         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1468         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1469         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1470         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1471         mem_loc_descriptor callers.
1472         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1473         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1474         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1475         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1476         (base_types): New variable.
1477         (get_base_type_offset, calc_base_type_die_sizes,
1478         base_type_for_mode, mark_base_types, base_type_cmp,
1479         move_marked_base_types): New functions.
1480         (calc_die_sizes): Assert that die_offset is 0 or equal to
1481         next_die_offset.
1482         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1483         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1484         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1485         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1486         (gen_subprogram_die): Don't give up on call site parameters
1487         with non-integral or large integral modes.  Adjust
1488         mem_loc_descriptor callers.
1489         (prune_unused_types): Call prune_unused_types_mark on base_types
1490         vector entries.
1491         (resolve_addr): Call mark_base_types.
1492         (dwarf2out_finish): Call move_marked_base_types.
1493
1494         PR tree-optimization/48809
1495         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1496         type.
1497         (gen_inbound_check): Don't compute index_expr - range_min in utype
1498         again, instead reuse SSA_NAME initialized in build_arrays.
1499         Remove two useless gsi_for_stmt calls.
1500
1501 2011-04-29  Jeff Law  <law@redhat.com>
1502
1503         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1504
1505 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1506
1507         * cgraph.h (cgraph_postorder): Remove declaration.
1508         * ipa-utils.h (ipa_free_postorder_info): Declare.
1509         (ipa_reverse_postorder): Likewise.
1510         * cgraphunit.c: Include ipa-utils.h.
1511         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1512         * ipa-inline.c: Include ipa-utils.h.
1513         (ipa_inline): Update call to ipa_reverse_postorder.
1514         * ipa-pure-const.c (propagate_pure_const): Update call to
1515         ipa_reduced_postorder and ipa_print_order.  Call
1516         ipa_free_postorder_info to clean up.
1517         (propagate_nothrow): Likewise.
1518         * ipa-reference.c (propagate): Removed a useless call to
1519         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1520         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1521         * ipa.c: Include ipa-utils.h.
1522         (ipa_profile): Update call to ipa_reverse_postorder.
1523         (cgraph_postorder): Moved to...
1524         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1525         (ipa_utils_print_order): Renamed to ipa_print_order.
1526         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1527         comments.
1528         (ipa_free_postorder_info): New function.
1529         * passes.c: Include ipa-utils.h.
1530         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1531         (ipa_write_summaries): Likewise.
1532         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1533         (cgraphunit.o): Likewise.
1534         (ipa.o): Likewise.
1535         (ipa-inline.o): Likewise.
1536
1537 2011-04-29  Jan Hubicka  <jh@suse.cz>
1538
1539         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1540         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1541         * ipa-inline.h (clause_t): Turn into unsigned int.
1542         * ipa-inline-analysis.c (add_clause): Do more simplification.
1543         (and_predicates): Shortcut more cases.
1544         (predicates_equal_p): Move forward; check that clauses are properly
1545         ordered.
1546         (or_predicates): Shortcut more cases.
1547         (edge_execution_predicate): Rewrite as...
1548         (set_cond_stmt_execution_predicate): ... this function; handle
1549         __builtin_constant_p.
1550         (set_switch_stmt_execution_predicate): New .
1551         (compute_bb_predicates): New.
1552         (will_be_nonconstant_predicate): Update TODO.
1553         (estimate_function_body_sizes): Use compute_bb_predicates
1554         and free them later, always try to estimate if stmt is constant.
1555         (estimate_time_after_inlining, estimate_size_after_inlining):
1556         Gracefully handle optimized out edges.
1557         (read_predicate): Fix off by one error.
1558
1559 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1560
1561         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1562
1563 2011-04-27  Xinliang David Li  <davidxl@google.com>
1564
1565         * tree-profile.c (init_ic_make_global_vars): Set
1566         tls attribute on ic vars.
1567         * coverage.c (coverage_end_function): Initialize
1568         function_list with zero.
1569
1570 2011-04-29  Richard Guenther  <rguenther@suse.de>
1571
1572         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1573         for the type of the result.
1574         (fold_builtin_isascii): Likewise.
1575         (fold_builtin_toascii): Use integer_type_node where appropriate.
1576         (fold_builtin_logb): Likewise.
1577         (fold_builtin_frexp): Likewise.
1578         (fold_builtin_strstr): Likewise.
1579         (fold_builtin_strpbrk): Likewise.
1580         (fold_builtin_fputs): Likewise.
1581         (fold_builtin_sprintf): Likewise.
1582         (fold_builtin_snprintf): Likewise.
1583         (fold_builtin_printf): Likewise.
1584         (do_mpfr_remquo): Use a proper type for the assigned constant.
1585         (do_mpfr_lgamma_r): Likewise.
1586         * dwarf2out.c (resolve_one_addr): Use size_int.
1587         * except.c (init_eh): Likewise.
1588         (assign_filter_values): Use integer_type_node for filter values.
1589         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1590         indices.
1591         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1592         for EH region numbers.
1593         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1594         for the shift amount.
1595
1596 2011-04-29  Richard Guenther  <rguenther@suse.de>
1597
1598         * expr.h (expand_shift): Rename to ...
1599         (expand_variable_shift): ... this.
1600         (expand_shift): Take a constant shift amount.
1601         * expmed.c (expand_shift): Rename to ...
1602         (expand_variable_shift): ... this.
1603         (expand_shift): New wrapper around expand_variable_shift.
1604         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1605         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1606         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1607         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1608         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1609         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1610         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1611         emit_store_flag_1, emit_store_flag): Likewise.
1612         * builtins.c (expand_builtin_signbit): Likewise.
1613         * calls.c (load_register_parameters): Likewise.
1614         * function.c (assign_parm_setup_block): Likewise.
1615         * lower-subreg.c (resolve_shift_zext): Likewise.
1616         * optabs.c (widen_bswap, expand_abs_nojump,
1617         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1618         * spu/spu.c (spu_expand_extv): Likewise.
1619         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1620
1621 2011-04-29  Richard Guenther  <rguenther@suse.de>
1622
1623         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1624         for the remapped region number.
1625         * predict.c (build_predict_expr): Use integer_type_node for the
1626         predict kind.
1627         * fold-const.c (fold_binary_loc): Use integer_type_node for
1628         the shift amount.  Use a proper type for the PLUS_EXPR operand.
1629
1630 2011-04-29  Michael Matz  <matz@suse.de>
1631
1632         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1633         other trees that just builtins.
1634         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1635
1636 2011-04-29  Richard Guenther  <rguenther@suse.de>
1637
1638         * tree-nested.c (get_trampoline_type): Use size_int.
1639         (get_nl_goto_field): Likewise.
1640         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1641         for all indexes.
1642         (lower_eh_constructs_2): Likewise.
1643         (lower_resx): Likewise.
1644         (lower_eh_dispatch): Likewise.
1645         * tree-mudflap.c (mf_build_string): Use size_int.
1646         (mudflap_register_call): Use integer_type_node for the flag.
1647         (mudflap_enqueue_constant): Use size_int.
1648         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1649         instead of rebuilding it.
1650
1651 2011-04-29  Richard Guenther  <rguenther@suse.de>
1652
1653         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1654         Handle OBJ_TYPE_REF.
1655         (find_func_aliases_for_call): Use it more consistently.
1656
1657 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
1658
1659         * haifa-sched.c (last_nondebug_scheduled_insn): New.
1660         (rank_for_schedule): Use it.
1661         (schedule_block): Set it.
1662
1663 2011-04-28  David Li  <davidxl@google.com>
1664
1665         * tree.c (crc32_string): Use crc32_byte.
1666         (crc32_byte): New function.
1667         * tree.h (crc32_byte): New function.
1668         * gcov.c (read_graph_file): Handle new cfg_cksum.
1669         (read_count_file): Ditto.
1670         * profile.c (instrument_values): Ditto.
1671         (get_exec_counts): Ditto.
1672         (read_profile_edge_counts): Ditto.
1673         (compute_branch_probabilities): Ditto.
1674         (compute_value_histograms): Ditto.
1675         (branch_prob): Ditto.
1676         (end_branch_prob): Ditto.
1677         * coverage.c (read_counts_file): Ditto.
1678         (get_coverage_counts): Ditto.
1679         (tree_coverage_counter_addr): Ditto.
1680         (coverage_checksum_string): Ditto.
1681         (coverage_begin_output): Ditto.
1682         (coverage_end_function): Ditto.
1683         (build_fn_info_type): Ditto.
1684         (build_fn_info_value): Ditto.
1685         * libgcov.c (gcov_exit): Ditto.
1686         * gcov-dump.c (tag_function): Ditto.
1687         (compute_checksum): Remove.
1688
1689 2011-04-29  Alan Modra  <amodra@gmail.com>
1690
1691         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1692         unspec plus offset.  Tidy macho code.
1693
1694 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1695
1696         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1697         node instead of a decl.  Update all callers.
1698         * cgraph.h: Update declaration.
1699
1700 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
1701
1702         PR tree-optimization/48765
1703         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1704         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1705         to indicate if loop aware SLP is being used.  Scan the statements
1706         and update the vectorization factor according to the type of
1707         vectorization before statement analysis.
1708         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1709         pass it to vect_analyze_loop_operations.
1710         (vectorizable_reduction): Set number of copies to 1 in case of pure
1711         SLP statement.
1712         * tree-vect-stmts.c (vectorizable_conversion,
1713         vectorizable_assignment, vectorizable_shift,
1714         vectorizable_operation, vectorizable_type_demotion,
1715         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1716         Likewise.
1717         (vectorizable_condition): Move the check that it is not SLP
1718         vectorization before the number of copies check.
1719         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1720         to vectorize the loop using SLP.
1721
1722 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
1723
1724         PR middle-end/48597
1725         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1726         inline asm.
1727
1728 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
1729
1730         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1731         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1732         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1733         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1734         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1735         linux*.h headers.
1736         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1737         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1738         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1739         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1740         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1741         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1742         REG_NAME.
1743         * config/i386/linux.h (REG_NAME): Don't define.
1744         * config/i386/linux64.h (REG_NAME): Don't define.
1745         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1746         Undefine before defining.
1747
1748 2011-04-28  Jan Hubicka  <jh@suse.cz>
1749
1750         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1751         nonconstant_names array.
1752         (estimate_function_body_sizes): Build nonconstant_names array; handle
1753         BUILT_IN_CONSTANT_P.
1754
1755 2011-04-28  Richard Guenther  <rguenther@suse.de>
1756
1757         PR bootstrap/48804
1758         Revert
1759         2011-04-28  Richard Guenther  <rguenther@suse.de>
1760
1761         * tree-ssa-structalias.c (solve_constraints): Build succ graph
1762         as late as possible.
1763
1764 2011-04-28  Richard Guenther  <rguenther@suse.de>
1765
1766         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1767         (debug_constraint): Do it here.
1768         (dump_constraints): And here.
1769         (rewrite_constraints): And here.
1770         (dump_constraint_edge): Remove.
1771         (dump_constraint_graph): Rewrite to produce DOT output.
1772         (solve_constraints): Build succ graph as late as possible.
1773         Dump constraint graphs before and after solving.
1774
1775 2011-04-28  Richard Guenther  <rguenther@suse.de>
1776
1777         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1778         New function split out from ...
1779         (find_func_aliases): ... here.  Call it.
1780         (find_func_aliases_for_call): Likewise.
1781
1782 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1783
1784         * internal-fn.h (internal_fn_name_array): Declare.
1785         (internal_fn_flags_array): Likewise.
1786
1787 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1788
1789         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
1790         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1791         Move from sse.md.
1792         (ssemodefsuffix): Remove.
1793         (ssevecmodesuffix): New mode attribute.
1794         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1795         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1796         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1797         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1798         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1799         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1800         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1801         ssemodesuffix mode attribute.
1802         (float splitters): Use ssevecmodesuffix mode attribute.
1803         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1804         (sseinsmode): Rename from avxvecmode.
1805         (avxsizesuffix): Rename from avxmodesuffix.
1806         (sseintvecmode): Rename from avxpermvecmode.
1807         (ssedoublevecmode): Rename from ssedoublesizemode.
1808         (ssehalfvecmode): Rename from avxhalfvecmode.
1809         (ssescalarmode): Rename from avxscalarmode.
1810         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1811         templates for ssemodesuffix mode attribute.
1812         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1813         mode attribute.
1814
1815         Adjust RTX patterns globally for renamed mode attributes.
1816
1817 2011-04-27  Jan Hubcika  <jh@suse.cz>
1818
1819         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1820         * ipa-inline-analysis.c: Include alloc-pool.h.
1821         (edge_predicate_pool): New.
1822         (trye_predicate_p): New function
1823         (false_predicate_p): New function.
1824         (add_clause): Sanity check that false clauses are "optimized";
1825         never add clauses to predicate that is already known to be false.
1826         (and_predicate): Use flase_predicate_p.
1827         (evaulate_predicate): Rename to ...
1828         (evaluate_predicate): ... this one; update all callers; assert
1829         that false is not listed among possible truths.
1830         (dump_predicate): Use true_predicate_p.
1831         (account_size_time): Use false_predicate_p.
1832         (evaulate_conditions_for_edge): Rename to ...
1833         (evaluate_conditions_for_edge) ... this one.
1834         (edge_set_predicate): New function.
1835         (inline_edge_duplication_hook): Duplicate edge predicates.
1836         (inline_edge_removal_hook): Free edge predicates.
1837         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1838         (dump_inline_summary): Update.
1839         (estimate_function_body_sizes): Set edge predicates.
1840         (estimate_calls_size_and_time): Handle predicates.
1841         (estimate_callee_size_and_time): Update.
1842         (remap_predicate): Add toplev_predicate; update comment.
1843         (remap_edge_predicates): New function.
1844         (inline_merge_summary): Compute toplev predicate; update.
1845         (read_predicate): New function.
1846         (read_inline_edge_summary): Use it.
1847         (inline_read_section): Likewise.
1848         (write_predicate): New function.
1849         (write_inline_edge_summary): Use it.
1850         (inline_write_summary): Likewise.
1851         (inline_free_summary): Free alloc pool and edge summary vec.
1852
1853 2011-04-27  Richard Guenther  <rguenther@suse.de>
1854
1855         * tree-ssa-structalias.c (changed_count): Remove.
1856         (changed): Use a bitmap.
1857         (unify_nodes): Adjust.
1858         (do_sd_constraint): Likewise.
1859         (do_ds_constraint): Likewise.
1860         (do_complex_constraint): Likewise.
1861         (solve_graph): Likewise.
1862
1863 2011-04-27  Jan Hubicka  <jh@suse.cz>
1864
1865         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1866
1867 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1868
1869         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1870         (avx_vperm2f128_*_operand): Ditto.
1871         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1872         Use avx_vpermilp_parallel in insn condition.
1873         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1874         Use avx_vperm2f128_parallel in insn condition.
1875
1876 2011-04-27  Richard Guenther  <rguenther@suse.de>
1877
1878         * Makefile.in (tree-ssa-structalias.o): Remove
1879         gt-tree-ssa-structalias.h dependency.
1880         (GTFILES): Remove tree-ssa-structalias.c.
1881         * tree.c (allocate_decl_uid): New function.
1882         (make_node_stat): Use it.
1883         (copy_node_stat): Likewise.
1884         * tree.h (allocate_decl_uid): Declare.
1885         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1886         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1887         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1888         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1889         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1890         (struct heapvar_map): Likewise.
1891         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1892         heapvar_insert): Likewise.
1893         (make_heapvar_for): Rename to ...
1894         (make_heapvar): ... this.  Simplify.
1895         (fake_var_decl_obstack): New global var.
1896         (build_fake_var_decl): New function.
1897         (make_constraint_from_heapvar): Adjust.
1898         (handle_lhs_call): Likewise.
1899         (create_function_info_for): Likewise.
1900         (intra_create_variable_infos): Likewise.
1901         (init_alias_vars): Allocate fake_var_decl_obstack.
1902         (init_alias_heapvars, delete_alias_heapvars): Remove.
1903         (compute_points_to_sets): Do not call init_alias_heapvars.
1904         (ipa_pta_execute): Likewise.
1905         (delete_points_to_sets): Free fake_var_decl_obstack.
1906
1907 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1908
1909         * config/spu/divmovti4.c (union qword_UTItype): New data type.
1910         (si_from_UTItype, si_to_UTItype): New functions.
1911         (__udivmodti4): Use them to implement type-punning.
1912         * config/spu/multi3.c (union qword_TItype): New data type.
1913         (si_from_TItype, si_to_TItype): New functions.
1914         (__multi3): Use them to implement type-punning.
1915
1916 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1917
1918         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1919
1920 2011-04-27  Jan Hubicka  <jh@suse.cz>
1921
1922         * ipa-prop.c (function_insertion_hook_holder): New holder.
1923         (ipa_add_new_function): New function.
1924         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1925         Register/deregister holder.
1926
1927 2011-04-27  Richard Guenther  <rguenther@suse.de>
1928
1929         PR tree-optimization/48772
1930         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1931
1932 2011-04-27  Richard Guenther  <rguenther@suse.de>
1933
1934         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1935         TARGET_MEM_REF handling.
1936
1937 2011-04-27  Nick Clifton  <nickc@redhat.com>
1938
1939         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1940         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1941         (REG_CLASS_NAMES): Likewise.
1942         (REG_CLASS_CONTENTS): Likewise.
1943         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1944         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1945         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
1946         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
1947         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
1948         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1949         duplicate register classes.
1950         (frv_class_likely_spilled_p): Likewise.
1951         (frv_register_move_cost): Likewise.
1952
1953         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1954         end of the regno_reg_class array.
1955
1956 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
1957
1958         PR c/48742
1959         * c-typeck.c (build_binary_op): Don't wrap arguments if
1960         int_operands is true.
1961
1962 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
1963
1964         PR target/48767
1965         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1966         targetm.calls.must_pass_in_stack for void type.
1967
1968 2011-04-26  Jan Hubicka  <jh@suse.cz>
1969
1970         * cgraphbuild.c (build_cgraph_edges): Update call
1971         of cgraph_create_edge and cgraph_create_indirect_edge.
1972         * cgraph.c (cgraph_create_edge_including_clones,
1973         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1974         cgraph_update_edges_for_call_stmt_node): Do not take nest
1975         argument; do not initialize call_stmt_size/time.
1976         (dump_cgraph_node): Do not dump nest.
1977         (cgraph_clone_edge): Do not take loop_nest argument;
1978         do not propagate it; do not clone call_stmt_size/time.
1979         (cgraph_clone_node): Likewise.
1980         (cgraph_create_virtual_clone): Update.
1981         * cgraph.h (struct cgraph_edge): Remove
1982         call_stmt_size/call_stmt_time/loop_nest.
1983         (cgraph_create_edge, cgraph_create_indirect_edge,
1984         cgraph_create_edge_including_clones, cgraph_clone_node): Update
1985         prototype.
1986         * tree-emutls.c (gen_emutls_addr): Update.
1987         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1988         loop_nest; handle indirect calls, too.
1989         (clone_inlined_nodes): Do not care about updating inline summaries.
1990         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1991         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1992         stream call_stmt_size/call_stmt_time/loop_nest.
1993         * ipa-inline.c (edge_badness): Update.
1994         (ipa_inline): dump summaries after inlining.
1995         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1996         New.
1997         (inline_edge_summary): New function.
1998         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1999         (inline_edge_removal_hook): Handle edge summaries.
2000         (inline_edge_duplication_hook): New hook.
2001         (inline_summary_alloc): Alloc hooks.
2002         (initialize_growth_caches): Do not register removal hooks.
2003         (free_growth_caches); Do not free removal hook.
2004         (dump_inline_edge_summary): New function.
2005         (dump_inline_summary): Use it.
2006         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2007         (inline_update_callee_summaries): New function.
2008         (inline_merge_summary): Use it.
2009         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2010         (read_inline_edge_summary): New function.
2011         (inline_read_section): Use it.
2012         (write_inline_edge_summary): New function.
2013         (inline_write_summary): Use it.
2014         (inline_free_summary): Free edge new holders.
2015         * tree-inline.c (copy_bb): Update.
2016
2017 2011-04-26  Jason Merrill  <jason@redhat.com>
2018
2019         * tree-eh.c (lower_try_finally_switch): Create the label along with
2020         the CASE_LABEL_EXPR.
2021
2022 2011-04-26  David S. Miller  <davem@davemloft.net>
2023             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2024
2025         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2026         * configure: Regenerate.
2027
2028 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2029
2030         PR target/48258
2031         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2032         reduction.
2033         (VEC_reduc): New code iterator and splitters for vector reduction.
2034         (VEC_reduc_name): Ditto.
2035         (VEC_reduc_rtx): Ditto.
2036         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2037         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2038
2039         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2040         support for extracting SF on VSX.
2041
2042         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2043         generating xscvspdp.
2044         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2045         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2046         double add, minimum, maximum vector reduction.
2047         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2048         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2049         optimize double vector reduction.
2050         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2051
2052 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2053
2054         * config/fr30/fr30.h (inhibit_libc): Don't define.
2055         * config/m32r/m32r-protos.h: Correct comment.
2056         * config/v850/v850.h (GHS_default_section_names,
2057         GHS_current_section_names): Use tree, not union tree_node *.
2058
2059 2011-04-26  Xinliang David Li  <davidxl@google.com>
2060
2061         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2062         * c-family/c-opts.c (c_common_handle_option): Set
2063         warn_maybe_uninitialized.
2064         * opts.c (common_handle_option): Ditto.
2065         * common.opt:  New option.
2066         * tree-ssa.c (warn_uninit): Add one more parameter.
2067         (warn_uninitialized_var): Pass warning code.
2068         * tree-flow.h: Interface change.
2069
2070
2071 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2072
2073         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2074         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2075         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2076
2077 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2078
2079         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2080         * config/mips/mips.opt (mmips-tfile): Remove.
2081
2082         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2083         mips-tdump reference to ...
2084         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2085         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2086         reference by Tru64 UNIX.
2087
2088 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2089
2090         PR debug/48768
2091         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2092         is error_mark_node, set value to NULL.
2093
2094         PR tree-optimization/48734
2095         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2096         if return value from maybe_fold_*_comparsions isn't something
2097         the code is prepared to handle.
2098
2099 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2100
2101         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2102         mode check.
2103         (ext_QIreg_nomode_operands): Remove.
2104         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2105         (*andsi_1): Ditto.
2106         (*andhi_1): Ditto.
2107
2108 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2109
2110         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2111
2112 2011-04-26  Richard Guenther  <rguenther@suse.de>
2113
2114         * c-typeck.c (build_unary_op): Do not expand array-refs via
2115         pointer arithmetic.  Only adjust qualifiers for function types.
2116
2117 2011-04-26  Richard Guenther  <rguenther@suse.de>
2118
2119         PR middle-end/48694
2120         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2121         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2122         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2123         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2124
2125 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2126
2127         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2128         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2129         * doc/extend.texi: Document __underlying_type.
2130
2131 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2132
2133         * config/rs6000/titan.md (automata_option "progress"): Remove.
2134
2135 2011-04-25  Jeff Law  <law@redhat.com>
2136
2137         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2138
2139 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2140
2141         * system.h (ENUM_BITFIELD): Remove.
2142
2143 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2144             Eric Botcazou  <ebotcazou@adacore.com>
2145
2146         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2147         for STORE_FLAG_VALUE==-1 case.
2148
2149 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2150
2151         PR target/43804
2152         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2153         LEGITIMATE_PIC_OPERAND_P.
2154
2155 2011-04-24  Jan Hubicka  <jh@suse.cz>
2156
2157         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2158         WPA hack.
2159         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2160         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2161         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2162         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2163         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2164         Sanity check predicate length.
2165         (remap_predicate): Likewise; sanity check jump functions.
2166         (inline_read_section, inline_write_summary): Sanity check
2167         predicate length.
2168
2169 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2170
2171         PR other/48748
2172         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2173         __is_literal_type, and __is_trivial; update throughout about
2174         possibly cv-qualified void types.
2175
2176 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2177
2178         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2179         testsuite and make it version agnostic.
2180
2181 2011-04-22  Jan Hubicka  <jh@suse.cz>
2182
2183         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2184
2185 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2186
2187         PR c/48685
2188         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2189         to VOID_TYPE even around MODIFY_EXPR.
2190
2191 2011-04-22  Mike Stump  <mikestump@comcast.net>
2192
2193         * gensupport.c (read_md_rtx): Fix typo in comment.
2194         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2195         comment.
2196
2197 2011-04-22  Jan Hubicka  <jh@suse.cz>
2198
2199         * gengtype.c (open_base_files): Add ipa-inline.h include.
2200         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2201         ipa-prop.c; update all uses.
2202         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2203         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2204         merge summary of inlined function into former caller.
2205         * ipa-inline.c (max_benefit): Remove.
2206         (edge_badness): Compensate for removal of benefits.
2207         (update_caller_keys): Use
2208         reset_node_growth_cache/reset_edge_growth_cache.
2209         (update_callee_keys): Likewise.
2210         (update_all_callee_keys): Likewise.
2211         (inline_small_functions): Do not collect max_benefit; do not reset
2212         estimated_growth; call free_growth_caches and initialize_growth_caches.
2213         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2214         struct size_time_entry): New structures.
2215         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2216         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2217         and estimated_growth.
2218         (edge_growth_cache_entry): New structure.
2219         (node_growth_cache, edge_growth_cache): New global vars.
2220         (estimate_growth): Turn into inline.
2221         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2222         initialize_growth_caches, free_growth_caches): Declare.
2223         (estimate_edge_growth): Rewrite.
2224         (estimate_edge_time): Implement as inline cache lookup.
2225         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2226         functions.
2227         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2228         (NUM_CONDITIONS): New constant.
2229         (predicate_conditions): New enum.
2230         (IS_NOT_CONSTANT): New constant.
2231         (edge_removal_hook_holder): New var.
2232         (node_growth_cache, edge_growth_cache): New global vars.
2233         (true_predicate, single_cond_predicate, false_predicate,
2234         not_inlined_predicate, add_condition, add_clause, and_predicates,
2235         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2236         dump_clause, dump_predicate, account_size_time,
2237         evaulate_conditions_for_edge): New functions.
2238         (inline_summary_alloc): Move to heap.
2239         (inline_node_removal_hook): Clear condition and entry vectors.
2240         (inline_edge_removal_hook): New function.
2241         (initialize_growth_caches, free_growth_caches): New function.
2242         (dump_inline_summary): Update.
2243         (edge_execution_predicate): New function.
2244         (will_be_nonconstant_predicate): New function.
2245         (estimate_function_body_sizes): Compute BB and constantness predicates.
2246         (compute_inline_parameters): Do not clear estimated_growth.
2247         (estimate_edge_size_and_time): New function.
2248         (estimate_calls_size_and_time): New function.
2249         (estimate_callee_size_and_time): New function.
2250         (remap_predicate): New function.
2251         (inline_merge_summary): New function.
2252         (do_estimate_edge_time): New function based on...
2253         (estimate_edge_time): ... this one.
2254         (do_estimate_edge_growth): New function.
2255         (do_estimate_growth): New function based on....
2256         (estimate_growth): ... this one.
2257         (inline_analyze_function): Analyze after deciding on jump functions.
2258         (inline_read_section): New function.
2259         (inline_read_summary): Use it.
2260         (inline_write_summary): Write all the new data.
2261         * ipa-prop.c (ipa_get_param_decl_index): Export.
2262         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2263         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2264         Declare.
2265         (ipa_get_lattice): Move here from ipa-cp.c
2266         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2267         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2268         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2269         cgraph_edge_inlinable_p): Remove.
2270         * cgraphunit.c: Include ipainline.h
2271         (cgraph_process_new_functions): Update call of
2272         compute_inline_parameters.
2273
2274 2011-04-22  Richard Guenther  <rguenther@suse.de>
2275
2276         * tree.c (build_int_cst): Properly create canonicalized integer
2277         constants.
2278         (build_int_cst_type): Remove scary comments.
2279
2280 2011-04-22  Xinliang David Li  <davidxl@google.com>
2281
2282         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2283         by default when -Wno-error is not specified.
2284         * opts-global.c (decode_options): Remove call to
2285         control_warning_options.
2286
2287 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2288
2289         PR tree-optimization/48717
2290         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2291         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2292
2293 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2294
2295         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2296         definition where used.
2297
2298 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2299
2300         PR c/48716
2301         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2302         TREE_STATIC variables declared inside of some OpenMP construct.
2303
2304 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2305
2306         PR middle-end/48585
2307         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2308
2309 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2310
2311         PR c/36750
2312         * c-typeck.c (pop_init_level): Do not warn about initializing
2313         with ` = {0}'.
2314
2315 2011-04-22  Alan Modra  <amodra@gmail.com>
2316
2317         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2318         when returning call_cookie.
2319         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2320         pointers, to functions with no more vector args than the current
2321         function, and some non-local calls for ABI_V4.
2322         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2323         sibcall_nonlocal_aix64): Combine to ..
2324         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2325         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2326         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2327         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2328         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2329         operand.
2330         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2331         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2332         sibcall_value_symbolic_64): Delete.
2333
2334 2011-04-21  Xinliang David Li  <davidxl@google.com>
2335
2336         * cgraph.h: Remove pid.
2337         * cgraph.c: Remove pid.
2338         * value-prof.c (init_node_map): New function.
2339         (del_node_map): New function.
2340         (find_func_by_funcdef_no): New function.
2341         (gimple_ic_transform): Call new function.
2342         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2343         * function.c (get_last_funcdef_no): New function.
2344         * function.h (get_last_funcdef_no): New function.
2345         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2346         to libgcov function.
2347         (tree-profiling): Call node map init and delete function.
2348
2349 2011-04-21  Ian Lance Taylor  <iant@google.com>
2350
2351         * godump.c (go_format_type): Use exported Go name for anonymous
2352         field name.
2353
2354 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2355
2356         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2357         Call builtin_function_type_list instead of builtin_function_type.
2358         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2359
2360 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2361
2362         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2363         build_function_type_list instead of build_function_type.
2364         Delete variable `endlink'.
2365
2366 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2367
2368         * config/s390/s390.c (s390_init_builtins): Call
2369         build_function_type_list instead of build_function_type.
2370
2371 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2372
2373         * config/ia64/ia64.c (ia64_init_builtins): Call
2374         build_function_type_list instead of builtin_function_type.
2375
2376 2011-04-21  Easwaran Raman  <eraman@google.com>
2377
2378         * cfgexpand.c (stack_var): Remove OFFSET...
2379         (add_stack_var): ...and its reference here...
2380         (expand_stack_vars): ...and here.
2381         (stack_var_cmp): Sort by descending order of size.
2382         (partition_stack_vars): Change heuristic.
2383         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2384         (dump_stack_var_partition): Add newline after each partition.
2385
2386 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2387             Jeff Law  <law@redhat.com>
2388
2389         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2390         * gengtype.c (matching_file_name_substitute): Likewise.
2391
2392 2011-04-21  Richard Guenther  <rguenther@suse.de>
2393
2394         PR lto/48703
2395         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2396
2397 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2398
2399         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2400
2401 2011-04-21  Richard Guenther  <rguenther@suse.de>
2402
2403         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2404         file name.
2405
2406 2011-04-21  Richard Guenther  <rguenther@suse.de>
2407
2408         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2409         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2410         Use DECL_P, not SSA_VAR_P.
2411         (ptr_derefs_may_alias_p): Likewise.
2412         (ptr_deref_may_alias_ref_p_1): Likewise.
2413         (decl_refs_may_alias_p): Likewise.
2414         (refs_may_alias_p_1): Likewise.
2415         (ref_maybe_used_by_call_p_1): Likewise.
2416         (call_may_clobber_ref_p_1): Likewise.
2417         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2418         are either MEM_REF or TARGET_MEM_REF.
2419         (indirect_refs_may_alias_p): Likewise.
2420         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2421         for MEM_EXPR of indirect calls.
2422
2423 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2424
2425         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2426         (dst_file_info_struct): Remove flen field.
2427         (lookup_filename): Remove code that set flen field.
2428
2429 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2430
2431         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2432
2433 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2434
2435         PR target/48708
2436         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2437         vec_extract and vec_concat for non-SSE4_1 targets.
2438
2439 2011-04-21  Richard Guenther  <rguenther@suse.de>
2440
2441         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2442         return statements.
2443
2444 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2445
2446         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2447         undefine.
2448         (FILE): Don't undefine.
2449
2450 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2451
2452         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2453         struct rtx_def *.
2454         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2455         struct rtx_def *.
2456         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2457         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2458         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2459         rtx_def *.
2460         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2461         definitions where used.
2462         * config/microblaze/microblaze.h (struct microblaze_args): Use
2463         rtx, not struct rtx_def *.
2464         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2465         rtx_def *.
2466         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2467         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2468         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2469         not struct rtx_def *.
2470         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2471         struct rtx_def *.
2472         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2473         rtx_def *.
2474         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2475
2476 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2477
2478         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2479         operand_equal_p to compare DR_BASE_ADDRESSes.
2480         (vect_check_interleaving): Likewise.
2481
2482 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2483
2484         PR target/46329
2485         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2486         for all Neon struct constants.
2487
2488 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2489
2490         * target.def (legitimate_constant_p): New hook.
2491         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2492         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2493         * doc/tm.texi: Regenerate.
2494         * hooks.h (hook_bool_mode_rtx_true): Declare.
2495         * hooks.c (hook_bool_mode_rtx_true): Define.
2496         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2497         * calls.c (precompute_register_parameters): Replace uses of
2498         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2499         (emit_library_call_value_1): Likewise.
2500         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2501         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2502         * ira-costs.c (scan_one_insn): Likewise.
2503         * recog.c (general_operand, immediate_operand): Likewise.
2504         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2505         * reload1.c (init_eliminable_invariants): Likewise.
2506
2507         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2508         mode argument.
2509         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2510         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2511         argument.
2512         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2513         * config/alpha/predicates.md (input_operand): Update call to
2514         alpha_legitimate_constant_p.
2515
2516         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2517         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2518         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2519         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2520         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2521         (arm_legitimate_constant_p): New functions.
2522         (arm_cannot_force_const_mem): Make static.
2523
2524         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2525
2526         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2527         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2528         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2529         instead of bfin_legitimate_constant_p.
2530         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2531         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2532
2533         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2534
2535         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2536
2537         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2538         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2539         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2540         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2541
2542         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2543         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2544         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2545
2546         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2547         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2548         * config/i386/i386.c (legitimate_constant_p): Rename to...
2549         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2550         argument.
2551         (ix86_cannot_force_const_mem): Update accordingly.
2552         (ix86_legitimate_address_p): Likewise.
2553         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2554         * config/i386/i386.md: Update commentary.
2555
2556         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2557         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2558         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2559         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2560
2561         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2562
2563         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2564         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2565         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2566         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2567
2568         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2569         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2570         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2571
2572         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2573         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2574         (m32r_legitimate_constant_p): New function.
2575
2576         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2577         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2578         LEGITIMATE_CONSTANT_P.
2579         (LEGITIMATE_CONSTANT_P): Delete.
2580         * config/m68k/m68k.c (m68k_expand_prologue): Call
2581         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2582         (m68k_legitimate_constant_p): New function.
2583         * config/m68k/m68k.md: Update comments.
2584
2585         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2586         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2587         (mcore_legitimate_constant_p): New function.
2588
2589         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2590         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2591         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2592         Add a mode argument.
2593         (mep_legitimate_address): Update accordingly.
2594         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2595
2596         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2597         Delete.
2598         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2599         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2600         static.  Check OP's mode for VOIDmode.
2601         (microblaze_legitimate_constant_p): New function.
2602         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2603
2604         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2605         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2606         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2607         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2608         * config/mips/predicates.md: Update comments.
2609
2610         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2611         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2612         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2613         (mmix_legitimate_constant_p): Make static, return a bool, and take
2614         a mode argument.
2615         (mmix_print_operand_address): Update accordingly.
2616
2617         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2618         Delete.
2619         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2620         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2621         static.  Add a mode argument.
2622         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2623
2624         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2625
2626         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2627         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2628         (pa_legitimate_constant_p): New function.
2629
2630         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2631
2632         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2633         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2634         (pdp11_legitimate_constant_p): New function.
2635
2636         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2637         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2638         (rs6000_legitimate_constant_p): New function.
2639
2640         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2641         (rx_legitimate_constant_p): ...this.
2642         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2643         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2644         (rx_legitimate_constant_p): ...this.
2645         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2646         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2647
2648         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2649         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2650         * config/s390/s390.c (legitimate_constant_p): Rename to...
2651         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
2652         and add a mode argument.
2653         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2654
2655         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2656
2657         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2658         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2659         (sh_legitimate_constant_p): New function.
2660
2661         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2662         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2663         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2664         (legitimate_constant_p): Rename to...
2665         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
2666         argument.
2667         (constant_address_p): Update accordingly.
2668
2669         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2670         argument and return a bool.
2671         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2672         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2673         (spu_legitimate_constant_p): Add a mode argument and return a bool.
2674         (spu_rtx_costs): Update accordingly.
2675         * config/spu/predicates.md (vec_imm_operand): Likewise.
2676
2677         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2678
2679         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2680         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2681         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2682
2683         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2684         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2685         * config/vax/vax.c (legitimate_constant_p): Likewise.
2686
2687         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2688         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2689         (xtensa_legitimate_constant_p): New function.
2690
2691 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2692
2693         * target.def (cannot_force_const_mem): Add a mode argument.
2694         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2695         * doc/tm.texi: Regenerate.
2696         * hooks.h (hook_bool_mode_rtx_false): Declare.
2697         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2698         (hook_bool_mode_const_rtx_true): Likewise.
2699         (hook_bool_mode_rtx_false): New function.
2700         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2701         to be non-VOID.  Update call to cannot_force_const_mem.
2702         (find_reloads): Update accordingly.
2703         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2704         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2705         argument.
2706         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2707         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2708         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2709         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2710         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2711         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2712         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2713         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2714         (m68k_cannot_force_const_mem): ...this new function.
2715         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2716         argument.
2717         (mips_const_insns, mips_legitimize_const_move): Update calls.
2718         (mips_secondary_reload_class): Likewise.
2719         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2720         (pa_cannot_force_const_mem): ...this new function.
2721         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2722         (rs6000_cannot_force_const_mem): ...this new function.
2723         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2724         argument.
2725         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2726         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2727         to...
2728         (xtensa_cannot_force_const_mem): ...this new function.
2729
2730 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2731
2732         * config/mips/mips.c (mips16_build_function_stub): Call
2733         build_function_type_list instead of build_function_type.
2734         (mips16_build_call_stub): Likewise.
2735
2736 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2737
2738         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2739         instead of build_function_type.
2740
2741 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2742
2743         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2744         instead of build_function_type.
2745
2746 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
2747
2748         PR target/48678
2749         * config/i386/i386.md (insv): Change operand 0 constraint to
2750         "register_operand".  Change operand 1 and 2 constraint to
2751         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
2752         * config/i386/sse.md (sse4_1_pinsrb): Export.
2753         (sse2_pinsrw): Ditto.
2754         (sse4_1_pinsrd): Ditto.
2755         (sse4_1_pinsrq): Ditto.
2756         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2757         * config/i386/i386.c (ix86_expand_pinsr): New.
2758
2759 2011-04-20  Easwaran Raman  <eraman@google.com>
2760
2761         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2762         containing union type only with -fstrict-aliasing.
2763
2764 2011-04-20  Jim Meyering  <meyering@redhat.com>
2765
2766         Remove useless if-before-free tests.
2767         * calls.c (expand_call, save_area): Likewise.
2768         * cfgcleanup.c (try_forward_edges): Likewise.
2769         * collect2.c (collect_execute): Likewise.
2770         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2771         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2772         * coverage.c (coverage_checksum_string): Likewise.
2773         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2774         * cselib.c (cselib_init): Likewise.
2775         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2776         (df_set_clean_cfg): Likewise.
2777         * function.c (free_after_compilation): Likewise.
2778         * gcc.c (do_spec_1, main): Likewise.
2779         * gcov.c (create_file_names): Likewise.
2780         * gensupport.c (identify_predicable_attribute): Likewise.
2781         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2782         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2783         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2784         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2785         * ipa-pure-const.c (local_pure_const): Likewise.
2786         * ipa-reference.c (propagate): Likewise.
2787         * ira-costs.c (free_ira_costs): Likewise.
2788         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2789         * matrix-reorg.c (mat_free): Likewise.
2790         * prefix.c (get_key_value): Likewise.
2791         * profile.c (compute_value_histograms): Likewise.
2792         * reload1.c (free_reg_equiv): Likewise.
2793         * sched-deps.c (free_deps): Likewise.
2794         * sel-sched-ir.c (fence_clear): Likewise.
2795         * sese.c (set_rename, if_region_set_false_region): Likewise.
2796         * tree-data-ref.c (free_rdg): Likewise.
2797         * tree-eh.c (lower_try_finally): Likewise.
2798         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2799         * tree-ssa-live.c (delete_var_map): Likewise.
2800         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2801         * tree-ssa-pre.c (phi_trans_add): Likewise.
2802
2803 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
2804
2805         PR tree-optimization/48611
2806         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2807         beyond ERT_MUST_NOT_THROW region.
2808
2809 2011-04-20  Catherine Moore  <clm@codesourcery.com>
2810
2811         * config/mips/mips.opt (mfix-24k): New.
2812         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2813         * config/mips/mips.md (length): Increase by 4 for stores if
2814         fixing 24K errata.
2815         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2816         all noreorder if fixing 24K errata.
2817         * doc/invoke.texi: Document mfix-24k.
2818
2819 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
2820
2821         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2822         quad-word modes, reduce to 9-bit index range when above 1016 limit.
2823
2824 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2825
2826         * config/arm/arm.c (arm_gen_constant): Move movw support ....
2827         (const_ok_for_op): ... to here.
2828
2829 2011-04-20  Kai Tietz  <ktietz@redhat.com>
2830
2831         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2832         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2833
2834 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2835
2836         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2837
2838 2011-04-20  Richard Guenther  <rguenther@suse.de>
2839
2840         PR tree-optimization/47892
2841         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2842         are if-convertible.
2843
2844 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2845
2846         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2847
2848 2011-04-20  Tristan Gingold  <gingold@adacore.com>
2849
2850         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2851
2852 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
2853
2854         PR target/18145
2855
2856         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2857         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2858         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2859         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2860         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2861
2862         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2863         New prototype.
2864
2865         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2866         (avr_asm_named_section, avr_asm_output_aligned_common,
2867         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2868         New functions to update...
2869         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2870         (avr_asm_init_sections): Overwrite section callbacks for
2871         data_section, bss_section.
2872         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2873         from here to...
2874         (avr_file_end): ...here.
2875
2876 2011-04-20  Richard Guenther  <rguenther@suse.de>
2877
2878         PR middle-end/48695
2879         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2880         objects and types here.  Adjust for their offset before comparing.
2881
2882 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2883
2884         * tree-vect-stmts.c (vectorizable_store): Only chain one related
2885         statement per copy.
2886
2887 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2888
2889         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2890         (GIMPLE_H): Include $(INTERNAL_FN_H).
2891         (OBJS-common): Add internal-fn.o.
2892         (internal-fn.o): New rule.
2893         * internal-fn.def: New file.
2894         * internal-fn.h: Likewise.
2895         * internal-fn.c: Likewise.
2896         * gimple.h: Include internal-fn.h.
2897         (GF_CALL_INTERNAL): New gf_mask.
2898         (gimple_statement_call): Put fntype into a union with a new
2899         internal_fn field.
2900         (gimple_build_call_internal): Declare.
2901         (gimple_build_call_internal_vec): Likewise.
2902         (gimple_call_same_target_p): Likewise.
2903         (gimple_call_internal_p): New function.
2904         (gimple_call_internal_fn): Likewise.
2905         (gimple_call_fntype): Return null for internal calls.
2906         (gimple_call_set_fntype): Assert that the function is not internal.
2907         (gimple_call_set_fn): Likewise.
2908         (gimple_call_set_fndecl): Likewise.
2909         (gimple_call_set_internal_fn): New function.
2910         (gimple_call_addr_fndecl): Handle null functions.
2911         (gimple_call_return_type): Likewise null types.
2912         * gimple.c (gimple_build_call_internal_1): New function.
2913         (gimple_build_call_internal): Likewise.
2914         (gimple_build_call_internal_vec): Likewise.
2915         (gimple_call_same_target_p): Likewise.
2916         (gimple_call_flags): Handle calls to internal functions.
2917         (gimple_call_fnspec): New function.
2918         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2919         (gimple_has_side_effects): Handle null functions.
2920         (gimple_rhs_has_side_effects): Likewise.
2921         (gimple_call_copy_skip_args): Handle calls to internal functions.
2922         * cfgexpand.c (expand_call_stmt): Likewise.
2923         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2924         * gimple-fold.c (gimple_fold_call): Handle null functions.
2925         (gimple_fold_stmt_to_constant_1): Don't fold
2926         calls to internal functions.
2927         * gimple-low.c (gimple_check_call_args): Handle calls to internal
2928         functions.
2929         * gimple-pretty-print.c (dump_gimple_call): Likewise.
2930         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2931         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2932         (do_warn_unused_result): Likewise.
2933         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2934         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2935         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2936         the target of a call.
2937         (initialize_hash_element): Update accordingly.
2938         (hashable_expr_equal_p): Use gimple_call_same_target_p.
2939         (iterative_hash_hashable_expr): Handle calls to internal functions.
2940         (print_expr_hash_elt): Likewise.
2941         * tree-ssa-pre.c (can_value_number_call): Likewise.
2942         (eliminate): Handle null functions.
2943         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2944         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2945         (find_func_aliases): Likewise.
2946         * value-prof.c (gimple_ic_transform): Likewise.
2947         (gimple_indirect_call_to_profile): Likewise.
2948         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2949         * lto-streamer-out.c (output_gimple_stmt): Likewise.
2950
2951 2011-04-19  Jan Hubicka  <jh@suse.cz>
2952
2953         * ipa-inline-transform.c (save_inline_function_body): Add comments.
2954         * ipa-inline.c (inline_small_functions): Compute summaries first,
2955         populate heap later.
2956
2957 2011-04-19  Jan Hubicka  <jh@suse.cz>
2958
2959         * cgraph.h (save_inline_function_body): Remove.
2960         * ipa-inline-transform.c: New file, broke out of...
2961         * ipa-inline.c: ... this one; Update toplevel comment.
2962         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2963         make global.
2964         (update_noncloned_frequencies): Move to ipa-inline-transform.c
2965         (cgraph_mark_inline_edge): Rename to inline_call; move to
2966         ipa-inline-transform.c.
2967         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2968         move to ipa-inline-transform.c
2969         (recursive_inlining, inline_small_functions, flatten_function,
2970         ipa_inline, inline_always_inline_functions,
2971         early_inline_small_functions): Update.
2972         (inline_transform): Move to ipa-inline-transform.c.
2973         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2974         Declare.
2975         * Makefile.in (ipa-inline-transform.o): New file.
2976         * cgraphunit.c (save_inline_function_body): Move to
2977         ipa-inline-transform.c
2978
2979 2011-04-19  DJ Delorie  <dj@redhat.com>
2980
2981         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2982         registers if we already know there aren't any.
2983         (m32c_emit_epilogue): Don't emit a barrier here.
2984         (m32c_emit_eh_epilogue): Likewise.
2985         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2986         operands at expand time.
2987         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2988         int" wchar type.
2989         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2990         duplicates.  Provide aliases instead.
2991         * config/m32c/prologue.md (eh_return): Emit a barrier here.
2992         (eh_epilogue): Add a "(return)" here as a hint to other parts of
2993         the compiler.
2994
2995 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
2996
2997         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2998         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2999         (general_or_i64_p, sparc_register_move_cost): New function.
3000
3001 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3002
3003         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3004         Add lynx, mipssde.  Sort table.
3005
3006 2011-04-19  Xinliang David Li  <davidxl@google.com>
3007
3008         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3009         not negative.
3010
3011 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3012
3013         PR target/48678
3014         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3015         is a SUBREG with non-MODE_INT mode inside of it.
3016
3017 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3018
3019         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3020         also according to actual contants.
3021         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3022         (gimple_fold_call): Use it.
3023         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3024
3025 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3026
3027         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3028         non-pointer assignments.
3029
3030 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3031
3032         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3033         account anc_offset and otr_type from the indirect edge info.
3034         * ipa-prop.c (get_ancestor_addr_info): New function.
3035         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3036         get_ancestor_addr_info, call it.
3037         (ipa_note_param_call): Do not initialize information about polymorphic
3038         calls, return the indirect call graph edge.  Remove the last
3039         parameter, adjust all callers.
3040         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3041         parameters.  Initialize polymorphic information in the indirect edge.
3042
3043 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3044
3045         PR lto/48148
3046         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3047         the types if they have different enumeration identifiers.
3048
3049 2011-04-19  Jan Hubicka  <jh@suse.cz>
3050
3051         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3052         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3053         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3054         (optimize_function_for_size_p) ... here.
3055
3056 2011-04-19  Richard Guenther  <rguenther@suse.de>
3057
3058         PR lto/48207
3059         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3060         langhook.
3061
3062 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3063
3064         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3065         if DECL_NO_INLINE_WARNING_P is set on the function.
3066
3067 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3068
3069         PR fortran/47976
3070         * reload1.c (inc_for_reload): Return void. All callers changed.
3071         (emit_input_reload_insns): Don't try to delete previous output
3072         reloads to a register, or record spill_reg_store for autoincs.
3073
3074 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3075
3076         * gengtype.h: Updated copyright year.
3077         (struct input_file_st): Add inpisplugin field.
3078         (type_fileloc): New function.
3079         * gengtype.c
3080         (write_typed_struct_alloc_def): Add gcc_assert.
3081         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3082         (write_typed_alloc_defns): Don't output for plugin files.
3083         (input_file_by_name): Clear inpisplugin field.
3084         (main): Set inpisplugin field for plugin files.
3085
3086 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3087
3088         * gengtype-state.c (string_eq): New.
3089         (read_state): Use string_eq instead of strcmp when creating the
3090         state_ident_tab.
3091
3092 2011-04-19  Wei Guozhi  <carrot@google.com>
3093
3094         PR target/47855
3095         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3096         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3097         linkage.
3098         * config/arm/constraints.md (Uu): New constraint.
3099         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3100
3101 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3102
3103         * config.gcc (-*-*-*vms): Added.
3104         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3105         definitions moved.
3106         * config/vms/vms-ld.c: New file.
3107         * config/vms/vms-ar.c: New file.
3108         * config/vms/t-vmsnative: New file.
3109
3110 2011-04-18  Xinliang David Li  <davidxl@google.com>
3111
3112         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3113
3114 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3115
3116         PR middle-end/48661
3117         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3118         if TREE_TYPE (v) is non-NULL.
3119
3120         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3121         gimple_get_virt_mehtod_for_binfo.
3122         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3123         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3124         callers.
3125         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3126
3127 2011-04-18  Michael Matz  <matz@suse.de>
3128             Steve Ellcey  <sje@cup.hp.com>
3129
3130         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3131         use its mode as source mode if it isn't VOIDmode.
3132
3133 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3134
3135         * doc/passes.texi: Fill crossref nodes.
3136
3137 2011-04-18  Jim Meyering  <meyering@redhat.com>
3138
3139         Fix doubled-word typos in comments and strings
3140         * config/alpha/vms-unwind.h: s/for for/for/
3141         * config/arm/unwind-arm.h: Likewise.
3142         * config/microblaze/microblaze.c: Likewise.
3143         * config/sh/constraints.md: s/in in/in/
3144         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3145
3146 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3147
3148         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3149         (AVX_FLOAT_MODE_P): Ditto.
3150         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3151         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3152         (AVX_VEC_FLOAT_MODE_P): Ditto.
3153         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3154         (UNSPEC_MASKSTORE): Ditto.
3155         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3156         Merge from <sse>_movmsk<ssemodesuffix> and
3157         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3158         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3159         iterator.
3160         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3161         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3162         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3163
3164 2011-04-18  Jan Hubicka  <jh@suse.cz>
3165
3166         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3167
3168         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3169         (want_inline_function_called_once_p): Break out the logic from
3170         ipa_inline.
3171         (edge_badness): Ensure that profile is not misupdated.
3172         (lookup_recursive_calls): Prioritize by call frequencies.
3173         (inline_small_functions): Move program size estimates here;
3174         actually process whole queue even when unit growth has been
3175         met. (to properly compute inline_failed reasons and for the
3176         case unit size decrease.) Revisit comments on recursive inlining.
3177         (ipa_inline): Remove unit summary code; first inline hot calls
3178         of functions called once, cold calls next.
3179         (order, nnodes): Remove unused variables.
3180         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3181         (GTFILES): Remove ipa-inline.c
3182         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3183
3184 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3185
3186         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3187
3188 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3189             Richard Earnshaw  <rearnsha@arm.com>
3190
3191         * arm.c (neon_builtin_type_bits): Remove.
3192         (typedef enum neon_builtin_mode): New.
3193         (T_MAX): Don't define.
3194         (typedef enum neon_builtin_datum): Remove bits, codes[],
3195         num_vars and base_fcode.  Add mode, code and fcode.
3196         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3197         VAR10): Change accordingly.
3198         (neon_builtin_data[]): Change accordingly
3199         (arm_init_neon_builtins): Change accordingly.
3200         (neon_builtin_compare): Remove.
3201         (locate_neon_builtin_icode): Remove.
3202         (arm_expand_neon_builtin): Change accordingly.
3203
3204         * arm.h (enum arm_builtins): Move to ...
3205         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3206
3207         * arm.c (arm_builtin_decl): Declare.
3208         (TARGET_BUILTIN_DECL): Define.
3209         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3210         (arm_builtin_decls[]): New.
3211         (arm_init_neon_builtins): Store builtin declarations in
3212         arm_builtin_decls[].
3213         (arm_init_tls_builtins): Likewise.
3214         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3215         (arm_builtin_decl): New.
3216
3217 2011-04-18  Richard Guenther  <rguenther@suse.de>
3218
3219         * tree.c (upper_bound_in_type): Build properly canonicalized
3220         INTEGER_CSTs.
3221         (lower_bound_in_type): Likewise.
3222
3223 2011-04-18  Richard Guenther  <rguenther@suse.de>
3224
3225         * gimple.h (gimple_call_addr_fndecl): New function.
3226         (gimple_call_fndecl): Use it.
3227         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3228         for direct calls.
3229         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3230         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3231
3232 2011-04-18  Richard Guenther  <rguenther@suse.de>
3233
3234         PR middle-end/48650
3235         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3236
3237 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3238
3239         PR lto/48492
3240         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3241         DECL_IN_CONSTANT_POOL without RTL.
3242
3243 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3244             Ira Rosen  <ira.rosen@linaro.org>
3245
3246         PR target/48252
3247         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3248         to match neon_vzip/vuzp/vtrn_internal.
3249         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3250         outputs explicitly dependent on both inputs.
3251         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3252
3253 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3254
3255         PR tree-optimization/48616
3256         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3257         whether the shift is by scalar or vector based on whether all SLP
3258         scalar stmts have the same rhs.
3259
3260 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3261
3262         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3263         memory operands.
3264
3265 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3266
3267         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3268         registers.
3269
3270 2011-04-17  Jan Hubicka  <jh@suse.cz>
3271
3272         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3273         * cgrpahunit.c (cgraph_finalize_function): Do not set
3274         finalized_by_frontend.
3275         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3276         finalized_by_frontend.
3277
3278 2011-04-17  Jan Hubicka  <jh@suse.cz>
3279
3280         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3281         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3282         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3283         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3284         method.
3285         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3286         gimple-fold.c
3287         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3288
3289 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3290
3291         PR lto/48538
3292         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3293         is non-null before accessing it.
3294         (input_cgraph): Remove trailing spaces.
3295
3296 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3297
3298         * params.def (sms-min-sc): New param flag.
3299         * modulo-sched.c (sms_schedule): Use it.
3300         * doc/invoke.texi (sms-min-sc): Document it.
3301
3302 2011-04-17  Jan Hubicka  <jh@suse.cz>
3303
3304         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3305         present, also set gimple_call_set_cannot_inline.
3306         * ipa-inline.c: Update toplevel comment.
3307         (MAX_TIME): Remove.
3308         (cgraph_clone_inlined_nodes): Fix linebreaks.
3309         (cgraph_check_inline_limits): Restructure to ...
3310         (caller_growth_limits): ... this one; be more tolerant
3311         on growth in nested inline chains; add explanatory comment;
3312         fix stack accounting thinko introduced by previous patch.
3313         (cgraph_default_inline_p): Remove.
3314         (report_inline_failed_reason): New function.
3315         (can_inline_edge_p): New function.
3316         (can_early_inline_edge_p): New function.
3317         (leaf_node_p): Move upwards in file.
3318         (want_early_inline_function_p): New function.
3319         (want_inline_small_function_p): New function.
3320         (want_inline_self_recursive_call_p): New function.
3321         (cgraph_edge_badness): Rename to ...
3322         (edge_badness) ... this one; fix linebreaks.
3323         (update_edge_key): Update call of edge_baddness; add
3324         detailed dump about queue updates.
3325         (update_caller_keys): Use can_inline_edge_p and
3326         want_inline_small_function_p.
3327         (cgraph_decide_recursive_inlining): Rename to...
3328         (recursive_inlining): Use can_inline_edge_p and
3329         want_inline_self_recursive_call_p; simplify and remove no longer
3330         valid FIXME.
3331         (cgraph_set_inline_failed): Remove.
3332         (add_new_edges_to_heap): Use can_inline_edge_p and
3333         want_inline_small_function_p.
3334         (cgraph_decide_inlining_of_small_functions): Rename to ...
3335         (inline_small_functions): ... this one; cleanup; use
3336         can/want predicates; cleanup debug ouput; work edges till fibheap
3337         is exhausted and do not stop once unit growth is reached; remove
3338         later loop processing remaining edges.
3339         (cgraph_flatten): Rename to ...
3340         (flatten_function): ... this one; use can_inline_edge_p
3341         and can_early_inline_edge_p predicates.
3342         (cgraph_decide_inlining): Rename to ...
3343         (ipa_inline): ... this one; remove unreachable nodes before
3344         inlining functions called once; simplify the pass.
3345         (cgraph_perform_always_inlining): Rename to ...
3346         (inline_always_inline_functions): ... this one; use
3347         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3348         (cgraph_decide_inlining_incrementally): Rename to ...
3349         (early_inline_small_functions): ... this one; simplify
3350         using new predicates; cleanup; make dumps prettier.
3351         (cgraph_early_inlining): Rename to ...
3352         (early_inliner): newer inline regular functions into always-inlines;
3353         fix updating of call stmt summaries.
3354         (pass_early_inline): Update for new names.
3355         (inline_transform): Fix formating.
3356         (gate_cgraph_decide_inlining): Rename to ...
3357         (pass_ipa_inline): ... this one.
3358         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3359         * ipa-inline-analysis.c (dump_inline_summary): Update.
3360         (compute_inline_parameters): Do not compute disregard_inline_limits;
3361         look for mismatching arguments.
3362         (estimate_growth): Fix handlig of non-trivial self recursion.
3363         (inline_read_summary): Do not read info->disregard_inline_limits.
3364         (inline_write_summary): Do not write info->disregard_inline_limits.
3365         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3366         and move all checks into can_inline_edge_p predicate; re-enable code
3367         comparing optimization levels.
3368         (expand_call_inline): Do not test inline_forbidden_into_p.
3369         * Makefile.in (ipa-inline.o): Update arguments.
3370
3371 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3372
3373         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3374
3375 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3376
3377         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3378
3379 2011-04-17  Michael Matz  <matz@suse.de>
3380
3381         PR tree-optimization/48622
3382         PR lto/48645
3383         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3384         in same order as they're written.
3385
3386 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3387
3388         * config/pa/predicates.md: Reorganize and simplify predicates.
3389         Eliminate duplicate code checks.
3390         (arith_operand): Rename to arith14_operand
3391         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3392         * config/pa/pa.md: Use renamed operands.
3393         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3394         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3395         arith11_operand, adddi3_operand, indexed_memory_operand,
3396         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3397         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3398         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3399         move_dest_operand, move_src_operand, prefetch_cc_operand,
3400         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3401         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3402         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3403         div_operand, int5_operand, movb_comparison_operator,
3404         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3405         arith_double_operand, ireg_operand, lhs_lshift_operand,
3406         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3407         integer_store_memory_operand): Likewise.
3408         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3409         (integer_store_memory_operand, read_only_operand,
3410         function_label_operand, borx_reg_operand,
3411         non_hard_reg_operand): Likewise.
3412         (eq_neq_comparison_operator): Delete unused operator.
3413         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3414         function_label_operand.
3415         (emit_move_sequence): Likewise.
3416
3417 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3418
3419         * config/i386/sse.md (sseunpackmode): New mode attribute.
3420         (ssepackmode): Ditto.
3421         (vec_pack_trunc_<mode>): Macroize expander from
3422         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3423         (vec_unpacks_lo_<mode>): Macroize expander from
3424         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3425         (vec_unpacks_hi_<mode>): Macroize expander from
3426         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3427         (vec_unpacku_lo_<mode>): Macroize expander from
3428         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3429         (vec_unpacku_hi_<mode>): Macroize expander from
3430         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3431         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3432         ix86_expand_sse4_unpack.
3433         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3434
3435 2011-04-16  Jan Hubicka  <jh@suse.cz>
3436
3437         * cgraphbuild.c: Include ipa-inline.h.
3438         (reset_inline_failed): Use initialize_inline_failed.
3439         * cgraph.c: Include ipa-inline.h.
3440         (cgraph_create_node_1): Do not initialize estimated_growth.
3441         (initialize_inline_failed): More to ipa-inline-analysis.c
3442         (dump_cgraph_node): Do not dump inline flags.
3443         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3444         and disregard_inline_limits flags.
3445         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3446         time, size, estimated_growth.
3447         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3448         Update.
3449         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3450         DECL_DISREGARD_INLINE_LIMITS.
3451         (cgraph_analyze_function): Do not initialize
3452         node->local.disregard_inline_limits.
3453         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3454         inlinable, versionable and disregard_inline_limits.
3455         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3456         cgraph_check_inline_limits, cgraph_default_inline_p,
3457         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3458         add_new_edges_to_heap): Update.
3459         (cgraph_decide_inlining_of_small_function): Update; set
3460         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3461         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3462         cgraph_decide_inlining_incrementally): Update.
3463         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3464         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3465         time, size and estimated_growth parameters.
3466         (estimate_edge_growth): Update.
3467         (initialize_inline_failed): Declare.
3468         * ipa-split.c: Include ipa-inline.h
3469         (execute_split_functions): Update.
3470         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3471         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3472         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3473         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3474         estimated_growth to INT_MIN.
3475         (inline_node_duplication_hook): Likewise.
3476         (dump_inline_summary): Dump new fields.
3477         (compute_inline_parameters): Update.
3478         (estimate_edge_time, estimate_time_after_inlining,
3479         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3480         inline_write_summary):
3481         (initialize_inline_failed): Move here from cgraph.c.
3482         * tree-sra.c: Include ipa-inline.h.
3483         (ipa_sra_preliminary_function_checks): Update.
3484         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3485         ipa-inline.h.
3486
3487 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3488
3489         * config/i386/sse.md (V16): New mode iterator.
3490         (VI1, VI8): Ditto.
3491         (AVXMODEQI, AVXMODEDI): Remove.
3492         (sse2, sse3): New mode attribute.
3493         (mov<mode>): Use V16 mode iterator.
3494         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3495         (push<mode>1): Use V16 mode iterator.
3496         (movmisalign<mode>): Ditto.
3497         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3498         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3499         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3500         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3501         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3502         avx_movdqu<avxmodesuffix>.
3503         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3504         *avx_movdqu<avxmodesuffix>.
3505         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3506         avx_lddqu<avxmodesuffix>.
3507         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3508         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3509         avx_movnt<AVXMODEDI:mode>.
3510         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3511         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3512
3513 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3514
3515         PR target/48629
3516         * haifa-sched.c (prune_ready_list, schedule_block): Use
3517         sched_pressure_p rather than flag_sched_pressure.
3518
3519 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3520
3521         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3522         cgraph_get_node instead of cgraph_get_create_node.
3523
3524 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3525
3526         * cfgexpand.c (expand_debug_expr): Use
3527         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3528
3529 2011-04-15  Michael Matz  <matz@suse.de>
3530
3531         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3532         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3533         * function.c (gimplify_parameters): Ditto.
3534         * gimplify.c (gimplify_vla_decl): Ditto.
3535
3536         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3537         (gimple_call_set_alloca_for_var): New inline function.
3538         (gimple_call_alloca_for_var_p): Ditto.
3539         * gimple.c (gimple_build_call_from_tree): Remember
3540         CALL_ALLOCA_FOR_VAR_P state.
3541         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3542
3543         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3544         calls if they were for VLA objects.
3545
3546 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3547
3548         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3549         of ADR_EXPRs.
3550
3551 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3552
3553         PR middle-end/48601
3554         * tree-emutls.c (lower_emutls_function_body): Call
3555         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3556         result is non-NULL.
3557
3558 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3559
3560         * c-decl.c (detect_field_duplicates): Call
3561         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3562
3563 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3564
3565         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3566         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3567         * ipa-pure-const.c (check_stmt): Call it.
3568         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3569
3570 2011-04-15  Richard Guenther  <rguenther@suse.de>
3571
3572         PR tree-optimization/48290
3573         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3574         Properly decide inhibiting propagation based on the valueized
3575         operand.  Do loop-closed SSA form preserving here ...
3576         (init_copy_prop): ... not here.
3577
3578 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3579
3580         PR target/48612
3581         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3582         (*ieee_smax<mode>3): Likewise.
3583
3584 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3585
3586         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3587         Replace match_operand with match_dup for the third operand in
3588         these expanders.
3589
3590 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3591
3592         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3593         to track processing of conditionals.  Update all callers.
3594         (try_combine, simplify_if_then_else): Update.
3595
3596 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3597
3598         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3599         -fsched-pressure.
3600
3601 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3602
3603         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3604         instead of match_operand for operand 3.
3605
3606 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3607
3608         * recog.h (insn_operand_data): Add an "allows_mem" field.
3609         * genoutput.c (output_operand_data): Initialize it.
3610         * optabs.c (maybe_legitimize_operand_same_code): New function.
3611         (maybe_legitimize_operand): Use it when matching the original
3612         op->value.
3613
3614 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3615
3616         * gimplify.c: Fix issues in comments throughout.
3617         (voidify_wrapper_expr): Fix long line.
3618         (build_stack_save_restore): Likewise.
3619         (gimplify_loop_expr): Likewise.
3620         (gimplify_compound_lval): Likewise.
3621         (gimplify_init_ctor_eval): Likewise.
3622         (gimplify_modify_expr_rhs): Likewise.
3623         (omp_notice_threadprivate_variable): Likewise.
3624
3625 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3626
3627         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3628         original one if this is not a builtin function.
3629
3630 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
3631
3632         PR target/48605
3633         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3634         offset it as needed based on top 2 bits in operands[3], change
3635         MEM mode to SFmode and mask those 2 bits away from operands[3].
3636
3637 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3638
3639         * c-parser.c (c_parser_objc_protocol_definition): Updated for
3640         change from objc_declare_protocols() to objc_declare_protocol().
3641
3642 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
3643
3644         * config/i386/sse.md (sse4_1): New mode attribute.
3645         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3646         avx_blend<ssemodesuffix><avxmodesuffix> and
3647         sse4_1_blend<ssemodesuffix> using VF mode iterator.
3648         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3649         avx_blendv<ssemodesuffix><avxmodesuffix> and
3650         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3651         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3652         avx_dp<ssemodesuffix><avxmodesuffix> and
3653         sse4_1_dp<ssemodesuffix> using VF mode iterator.
3654         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3655         (sse4_1_packusdw): Merge with *avx_packusdw.
3656         (sse4_1_pblendvb): Merge with *avx_pblendvb.
3657         (sse4_1_pblendw): Merge with *avx_pblendw.
3658         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3659         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3660         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3661         VF mode iterator.
3662         (sse4_1_round<ssescalarmodesuffix>): Merge with
3663         *avx_round<ssescalarmodesuffix>.
3664         (aesenc): Merge with *avx_aesenc.
3665         (aesenclast): Merge with *avx_aesenclast.
3666         (aesdec): Merge with *avx_aesdec.
3667         (aesdeclast): Merge with *avx_aesdeclast.
3668         (pclmulqdq): Merge with *pclmulqdq.
3669         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3670         New predicate.
3671         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3672
3673 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3674
3675         PR middle-end/48608
3676         * cfgexpand.c (get_decl_align_unit): Renamed to ...
3677         (align_local_variable): This.  Update DECL_ALIGN.
3678         (add_stack_var): Updated.
3679         (expand_one_stack_var): Likewise.
3680
3681 2011-04-14  Richard Guenther  <rguenther@suse.de>
3682
3683         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3684         Remove.
3685         (dse_initialize_block_local_data, dse_leave_block,
3686         record_voperand_set, get_stmt_uid): Likewise.
3687         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3688         (dse_optimize_stmt): Remove voperand set handling code.
3689         Simplify and improve to handle any kind of killing stmt.
3690         (dse_record_phi): Remove.
3691         (dse_enter_block): Simplify.
3692         (tree_ssa_dse): Likewise.
3693         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3694
3695 2011-04-14  Jan Hubicka  <jh@suse.cz>
3696
3697         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3698         * cgraph.h (struct inline_summary): Move to ipa-inline.h
3699         (cgraph_local_info): Remove inline_summary.
3700         * ipa-cp.c: Include ipa-inline.h.
3701         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3702         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3703         accesor.
3704         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3705         (input_overwrite_node): Do not set inline summary.
3706         (input_node): Do not stream inline summary.
3707         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3708         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3709         growth; we do not have inline parameters computed for that anyway.
3710         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3711         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3712         (inline_summary_t): New type and VECtor.
3713         (debug_inline_summary, dump_inline_summaries): Declare.
3714         (inline_summary): Use VOCtor.
3715         (estimate_edge_growth): Kill hack computing call stmt size directly.
3716         * lto-section-in.c (lto_section_name): Add inline section.
3717         * ipa-inline-analysis.c: Include lto-streamer.h
3718         (node_removal_hook_holder, node_duplication_hook_holder): New holders
3719         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3720         (inline_summary_vec): Define.
3721         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3722         dump_inline_summaries): New functions.
3723         (estimate_function_body_sizes): Properly compute size/time of outgoing
3724         calls.
3725         (compute_inline_parameters): Alloc inline_summary; do not compute
3726         size/time of incomming calls.
3727         (estimate_edge_time): Avoid missing time summary hack.
3728         (inline_read_summary): Read inline summary info.
3729         (inline_write_summary): Write inline summary info.
3730         (inline_free_summary): Free all hooks and inline summary vector.
3731         * lto-streamer.h: Add LTO_section_inline_summary section.
3732         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3733         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3734
3735 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3736
3737         * tree-vectorizer.h (vect_strided_store_supported): Add a
3738         HOST_WIDE_INT argument.
3739         (vect_strided_load_supported): Likewise.
3740         (vect_permute_store_chain): Return void.
3741         (vect_transform_strided_load): Likewise.
3742         (vect_permute_load_chain): Delete.
3743         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3744         count argument.  Check that the count is a power of two.
3745         (vect_strided_load_supported): Likewise.
3746         (vect_permute_store_chain): Return void.  Update after above changes.
3747         Assert that the access is supported.
3748         (vect_permute_load_chain): Likewise.
3749         (vect_transform_strided_load): Return void.
3750         * tree-vect-stmts.c (vectorizable_store): Update calls after
3751         above interface changes.
3752         (vectorizable_load): Likewise.
3753         (vect_analyze_stmt): Don't check for strided powers of two here.
3754
3755 2011-04-14  Richard Guenther  <rguenther@suse.de>
3756
3757         PR tree-optimization/48590
3758         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3759         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3760         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3761         BUILT_IN_STACK_SAVE.
3762         * tree-ssa-dce.c (propagate_necessity): Handle
3763         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3764
3765 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3766
3767         * c-parser.c (c_parser_objc_class_declaration): Updated call to
3768         objc_declare_class.
3769
3770 2011-04-14  Richard Guenther  <rguenther@suse.de>
3771
3772         * tree.h (get_object_alignment_1): Declare.
3773         * builtins.c (get_object_alignment_1): Split out worker from ...
3774         (get_object_alignment): ... here.
3775         * fold-const.c (get_pointer_modulus_and_residue): Use
3776         get_object_alignment_1.
3777
3778 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3779
3780         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3781         type parameter.
3782         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3783         parameter.  Generalise code to handle arrays as well as vectors.
3784         (vect_setup_realignment): Update accordingly.
3785         * tree-vect-stmts.c (vectorizable_store): Likewise.
3786         (vectorizable_load): Likewise.
3787
3788 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3789
3790         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3791         within the per-copy loop.
3792
3793 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3794
3795         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3796         in the dump file.
3797
3798 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3799
3800         * doc/options.texi (Negative): Explicitly mention that the
3801         Negative chain must be circular.
3802
3803 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
3804
3805         * function.h (block_chainon): Declare.
3806         * function.c (block_chainon): Define.
3807
3808 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
3809             Eric Weddington  <eric.weddington@atmel.com>
3810             Georg-Johann Lay <avr@gjlay.de>
3811
3812         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3813         New Includes
3814         (avr_init_builtins, avr_expand_builtin,
3815         avr_expand_delay_cycles, avr_expand_unop_builtin,
3816         avr_expand_binop_builtin ): New functions.
3817         (avr_builtin_id): New enum
3818         (struct avr_builtin_description): New struct
3819         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3820         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3821
3822         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3823         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3824         UNSPECV_DELAY_CYCLES): new enumeration values
3825         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3826         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3827         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3828         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3829         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3830         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3831         "fmulsu"): New insns
3832
3833         * config/avr/avr-c.c: fix line endings
3834         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3835         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3836         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3837         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3838         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3839
3840         * doc/extend.texi (AVR Built-in Functions): New node
3841         (Target Builtins): Add documentation of AVR
3842         built-in functions.
3843
3844 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
3845
3846         PR target/44643
3847         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3848         alone. Error if non-const data has attribute progmem.
3849
3850 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3851
3852         * tree.h (struct tree_constructor): Include tree_typed instead of
3853         tree_common.
3854         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3855         TS_TYPED instead of TS_COMMON.
3856
3857 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3858
3859         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3860         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3861         (sse2_psadbw): Merge with *avx_psadbw.
3862         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3863         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3864         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3865         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3866         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3867         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3868         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3869         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3870         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3871         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3872         (ssse3_palignrti): Merge with *avx_palignrti.
3873
3874 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3875
3876         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3877         * tree-ssanames.c (fini_ssanames): VEC_free it.
3878         (make_ssa_name_fn): Update for VECness of free_ssanames.
3879         (release_ssa_name, release_dead_ssa_names): Likewise.
3880         * tree.h (struct tree_ssa_name): Include tree_typed instead of
3881         tree_common.
3882         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3883         TS_TYPED instead of TS_COMMON.
3884
3885 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3886
3887         * postreload-gcse.c (gcse_after_reload_main): Add calls to
3888         statistics_counter_event.
3889         * tree-ssa-copyrename.c (stats): Define.
3890         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
3891         statistics_counter_event.
3892         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3893         (bswap_stats, widen_mul_stats): Define.
3894         (insert_reciprocals): Increment rdivs_inserted.
3895         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
3896         rfuncs_inserted.  Add calls to statistics_counter_event.
3897         (execute_cse_sincos_1): Increment inserted.
3898         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
3899         statistics_counter_event.
3900         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
3901         of bswap_stats.  Add calls to statistics_counter_event.
3902         (convert_mult_to_widen): Increment widen_mults_inserted.
3903         (convert_plusminus_to_widen): Increment maccs_inserted.
3904         (convert_mult_to_fma): Increment fmas_inserted.
3905         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
3906         calls to statistics_counter_event.
3907
3908 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3909
3910         PR rtl-optimization/48455
3911         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3912         `temp_costs->mem_cost'.
3913
3914 2011-04-13  Jan Hubicka  <jh@suse.cz>
3915
3916         * ipa-inline.h: New file.
3917         * ipa-inline-analysis.c: New file. Broken out of ...
3918         * ipa-inline.c: ... this file; update toplevel comment;
3919         include ipa-inline.h
3920         (inline_summary): Move to ipa-inline.h
3921         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3922         ipa-inline-analysis.c.
3923         (cgraph_estimate_time_after_inlining): Rename to
3924         estiamte_time_after_inlining; move to ipa-inline-analysis.c
3925         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3926         to estimate_edge_growth.
3927         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3928         rename to estimate_size_after_inlining.
3929         (cgraph_mark_inline_edge): Update for new naming convention.
3930         (cgraph_check_inline_limits): Likewise.
3931         (cgraph_edge_badness): Likewise.
3932         (cgraph_decide_recursive_inlining): Likewise.
3933         (cgraph_decide_inlining_of_small_functions): Likewise.
3934         (cgraph_decide_inlining_incrementally): Likewise.
3935         (cgraph_estimate_growth): Rename to estimate_growth; move to
3936         ipa-inline-analysis.c.
3937         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3938         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3939         (compute_inline_parameters): Likewise.
3940         (compute_inline_parameters_for_current): Likewise.
3941         (pass_inline_parameters): Likewise.
3942         (inline_indirect_intraprocedural_analysis): Likewise.
3943         (analyze_function): Rename to inline_analyze_function; likewise.
3944         (add_new_function): Move to ipa-inline-analysis.c.
3945         (inline_generate_summary): Likewise.
3946         (inline_read_summary): Likewise.
3947         (inline_write_summary): Likewise.
3948         * Makefile.in (ipa-inline-analysis.c): New file.
3949
3950 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3951
3952         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3953         * configure: Regenerate.
3954
3955 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3956
3957         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3958         instead of tree_common.
3959         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3960         Likewise.
3961         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3962         TS_TYPED rather than TS_COMMON.
3963         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3964
3965 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
3966
3967         PR target/45263
3968         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3969         r20 around calls of __tablejump_elpm__
3970
3971 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
3972
3973         PR middle-end/48591
3974         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3975         NULL.
3976         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3977
3978 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
3979
3980         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3981         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3982         (cfi_vec): New typedef.
3983         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3984         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3985         (cie_cfi_vec): New static variable.
3986         (cie_cfi_head): Delete.
3987         (add_cfi): Accept a cfi_vec * as first argument. All callers and
3988         declaration changed. Use vector rather than list operations.
3989         (new_cfi): Don't initialize the dw_cfi_next field.
3990         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3991         rather than list operations.
3992         (lookup_cfa): Use vector rather than list operations.
3993         (output_cfis): New argument upto. Accept a cfi_vec rather than
3994         a dw_cfi_ref list head as argument. All callers changed.
3995         Iterate over the vector using upto as a maximum index.
3996         (output_all_cfis): New static function.
3997         (output_fde): Use vector rather than list operations. Use the
3998         new upto argument for output_cfis rather than manipulating a
3999         list.
4000         (dwarf2out_begin_prologue): Change initializations to match
4001         new struct members.
4002         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4003         from the vector length rather than searching for the end of a list.
4004         Use output_all_cfis.
4005         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4006
4007 2011-04-13  Nick Clifton  <nickc@redhat.com>
4008
4009         * config/rx/rx.md (movmemsi): Do not use this pattern when
4010         volatile pointers are involved.
4011
4012 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4013
4014         * config/i386/sse.md (pinsrbits): Remove.
4015         (sse2_packsswb): Merge with *avx_packsswb.
4016         (sse2_packssdw): Merge with *avx_packssdw.
4017         (sse2_packuswb): Merge with *avx_packuswb.
4018         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4019         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4020         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4021         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4022         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4023         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4024         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4025         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4026         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4027         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4028         (sse2_loadld): Merge with *avx_loadld.
4029         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4030         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4031         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4032         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4033         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4034
4035 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4036
4037         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4038         calling TREE_CHAIN.
4039         * print-tree.c (print_node): Likewise.
4040         * tree-inline.c (copy_tree_r): Likewise.
4041         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4042         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4043         instead of TS_COMMON.
4044         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4045         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4046         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4047         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4048         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4049         ...and these...
4050         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4051         * tree.h: ...here.
4052         (TREE_CHAIN): Check for a TS_COMMON structure.
4053         (TREE_TYPE): Check for a TS_TYPED structure.
4054
4055 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
4056
4057         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4058         cgraph_get_create_node instead of cgraph_node.
4059
4060 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4061
4062         * c-parser.c (c_parser_initelt): Updated call to
4063         objc_build_message_expr.
4064         (c_parser_postfix_expression): Likewise.
4065
4066 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4067
4068         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4069         MASK_MS_BITFIELD_LAYOUT bit.
4070
4071 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4072
4073         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4074         assert it is always true.
4075         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4076         moves.
4077
4078 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4079
4080         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4081         compiling Objective-C to be more efficient.
4082
4083 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4084
4085         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4086         argv_copied.
4087
4088 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4089
4090         * recog.h, genoutput.c, optabs.c: Revert last patch.
4091
4092 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4093
4094         PR target/48090
4095         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4096
4097 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4098
4099         * recog.h (insn_operand_data): Add an "allows_mem" field.
4100         * genoutput.c (output_operand_data): Initialize it.
4101         * optabs.c (maybe_legitimize_operand_same_code): New function.
4102         (maybe_legitimize_operand): Use it when matching the original
4103         op->value.
4104
4105 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4106
4107         * genpreds.c (process_define_predicate): Move most processing
4108         to gensupport.c.  Continue to validate the expression.
4109         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4110         (process_define_predicate): Move processing to gensupport.c.
4111         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4112         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4113         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4114         argument.
4115         (valid_predicate_name_p): New function, split out from old
4116         genpreds.c:process_define_predicate.
4117         (process_define_predicate): New function, combining code from
4118         old genpreds.c and genrecog.c functions.
4119         (process_rtx): Call it for DEFINE_PREDICATE and
4120         DEFINE_SPECIAL_PREDICATE.
4121
4122 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4123
4124         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4125         size of a '%A' memory reference.
4126         (T_DREG, T_QREG): New neon_builtin_type_bits.
4127         (arm_init_neon_builtins): Assert that the load and store operands
4128         are neon_struct_operands.
4129         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4130         (NEON_ARG_MEMORY): New builtin_arg.
4131         (neon_dereference_pointer): New function.
4132         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4133         Handle NEON_ARG_MEMORY.
4134         (arm_expand_neon_builtin): Update after above interface changes.
4135         Use NEON_ARG_MEMORY for loads and stores.
4136         * config/arm/predicates.md (neon_struct_operand): New predicate.
4137         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4138         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4139         (V_four_elem): Tweak formatting.
4140         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4141         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4142         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4143         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4144         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4145         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4146         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4147         Use %A in the output template.
4148         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4149         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4150         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4151         the width of the memory access.  Remove post-increment.
4152         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4153
4154 2011-04-12  Nick Clifton  <nickc@redhat.com>
4155
4156         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4157         instruction for interrupt handlers if the target is the basic V850
4158         architecture.
4159         (expand_epilogue): Likewise.
4160
4161 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4162
4163         PR rtl-optimization/48549
4164         * combine.c (propagate_for_debug): Also stop after BB_END of
4165         this_basic_block.  Process LAST and just stop processing after it.
4166         (combine_instructions): If last_combined_insn has been deleted,
4167         set last_combined_insn to its PREV_INSN.
4168
4169 2011-04-12  Richard Guenther  <rguenther@suse.de>
4170
4171         PR tree-optimization/46076
4172         * gimple.h (struct gimple_statement_call): Add fntype field.
4173         (gimple_call_fntype): Adjust.
4174         (gimple_call_set_fntype): New function.
4175         * gimple.c (gimple_build_call_1): Set the call function type.
4176         * gimplify.c (gimplify_call_expr): Preserve the function
4177         type the frontend used for the call.
4178         (gimplify_modify_expr): Likewise.
4179         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4180         function type.
4181         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4182         function type.
4183         * tree-ssa.c (useless_type_conversion_p): Function pointer
4184         conversions are useless.
4185
4186 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4187
4188         * cgraph.h (cgraph_node): Remove function declaration.
4189         (cgraph_create_node): Declare.
4190         (cgraph_get_create_node): Likewise.
4191         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4192         Updated all callers.
4193         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4194         the decl does not already exist.  Call cgraph_get_create_node instead
4195         of cgraph_node.
4196         (cgraph_get_create_node): New function.
4197         (cgraph_same_body_alias): Update comment.
4198         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4199         assert it does not return NULL.
4200         (cgraph_update_edges_for_call_stmt): Likewise.
4201         (cgraph_clone_edge): Likewise.
4202         (cgraph_create_virtual_clone): Likewise.
4203         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4204         instead of cgraph_node.
4205         (cgraph_add_new_function): Call cgraph_create_node or
4206         cgraph_get_create_node instead of cgraph_node.
4207         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4208         instead of cgraph_node.
4209         (record_eh_tables): Likewise.
4210         (mark_address): Likewise.
4211         (mark_load): Likewise.
4212         (build_cgraph_edges): Call cgraph_get_create_node instead
4213         of cgraph_node.
4214         (rebuild_cgraph_edges): Likewise.
4215         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4216         instead of cgraph_node.
4217         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4218         cgraph_node.
4219         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4220         cgraph_create_node instead of cgraph_node.
4221         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4222         of cgraph_node.
4223         * lto-cgraph.c (input_node): Likewise.
4224         * lto-streamer-in.c (input_function): Likewise.
4225         * varasm.c (mark_decl_referenced): Likewise.
4226         (assemble_alias): Likewise.
4227
4228 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4229
4230         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4231         instead of cgraph_node and assert it does not return NULL.
4232         * lto-streamer-in.c (lto_read_body): Likewise.
4233         * omp-low.c (new_omp_context): Likewise.
4234         (create_task_copyfn): Likewise.
4235         * tree-emutls.c (lower_emutls_function_body): Likewise.
4236         * matrix-reorg.c (transform_allocation_sites): Likewise.
4237
4238 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4239
4240         PR c/48552
4241         * c-typeck.c (build_asm_expr): Error out on attempts to use
4242         void type outputs or inputs for constraints that allow reg or
4243         don't allow memory.
4244
4245 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4246             Richard Earnshaw  <rearnsha@arm.com>
4247
4248         PR target/48250
4249         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4250         to use sign-magnitude offsets. Reject unsupported unaligned
4251         cases. Add detailed description in comments.
4252         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4253         condition from TARGET_32BIT to TARGET_ARM.
4254
4255 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4256
4257         * tree.h (struct typed_tree): New.
4258         (struct tree_common): Include it instead of tree_base.
4259         (TREE_TYPE): Update for new location of type field.
4260         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4261         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4262         (union tree_node): Add typed field.
4263         * treestruct.def (TS_TYPED): New.
4264         * lto-streamer.c (check_handled_ts_structures): Handle it.
4265         * tree.c (MARK_TS_TYPED): New macro.
4266         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4267
4268 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4269
4270         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4271         (force_nonfallthru): Do not alter the loop nest if no basic block
4272         was created.
4273
4274 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4275
4276         * config/i386/sse.md (VI): New mode iterator.
4277         (SSEMODEI): Remove.
4278         (AVX256MODEI): Ditto.
4279         (AVXMODEF4P): Ditto.
4280         (avxvecpsmode): Ditto.
4281         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4282         (sse2_andnot<mode>3): New expander.
4283         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4284         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4285         (<any_logic:code><mode>3): Use VI mode iterator.
4286         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4287         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4288         (*andnottf3): Handle AVX three-operand constraints.
4289         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4290
4291 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4292             Robert Millan  <rmh@gnu.org>
4293
4294         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4295         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4296         GNU_USER_DYNAMIC_LINKER64): Define.
4297         (REG_NAME): Don't undefine.
4298         (MD_UNWIND_SUPPORT): Undefine.
4299         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4300         (REG_NAME): Don't undefine.
4301         (MD_UNWIND_SUPPORT): Undefine.
4302         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4303
4304 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4305
4306         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4307         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4308
4309 2011-04-11  Xinliang David Li  <davidxl@google.com>
4310
4311         * value-profile.c (check_ic_target): New function.
4312         (gimple_ic_transform): Sanity check indirect call target.
4313         * gimple-low.c (gimple_check_call_args): Interface change.
4314         (gimple_check_call_matching_types): New function.
4315         * tree-inline.c (tree_can_inline_p): Call new function.
4316
4317 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4318
4319         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4320         tree-pretty-print.h & realmpfr.h.
4321
4322 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4323
4324         PR middle-end/48464
4325         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4326         (setup_allocno_and_important_classes): Ditto.
4327
4328 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4329
4330         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4331         GNU_USER_DYNAMIC_LINKER.
4332         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4333         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4334         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4335         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4336         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4337         GNU_USER_TARGET_OS_CPP_BUILTINS.
4338         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4339         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4340         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4341         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4342         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4343         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4344         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4345         GNU_USER_TARGET_OS_CPP_BUILTINS.
4346         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4347         GNU_USER_DYNAMIC_LINKER.
4348         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4349         GNU_USER_TARGET_OS_CPP_BUILTINS.
4350         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4351         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4352         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4353         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4354         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4355         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4356         GNU_USER_DYNAMIC_LINKER64): Remove.
4357         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4358         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4359         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4360         GNU_USER_DYNAMIC_LINKER.
4361         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4362         GNU_USER_TARGET_OS_CPP_BUILTINS.
4363         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4364         GNU_USER_TARGET_OS_CPP_BUILTINS.
4365         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4366         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4367         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4368         GNU_USER_TARGET_OS_CPP_BUILTINS.
4369         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4370         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4371         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4372         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4373         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4374         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4375         GNU_USER_DYNAMIC_LINKER.
4376         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4377         GNU_USER_TARGET_OS_CPP_BUILTINS.
4378         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4379         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4380         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4381         GNU_USER_DYNAMIC_LINKER.
4382         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4383         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4384         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4385         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4386         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4387         GNU_USER_DYNAMIC_LINKER.
4388         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4389         GNU_USER_DYNAMIC_LINKERN32.
4390         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4391         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4392         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4393         GNU_USER_DYNAMIC_LINKER32.
4394         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4395         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4396         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4397         GNU_USER_DYNAMIC_LINKER.
4398         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4399         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4400         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4401         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4402         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4403         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4404         GNU_USER_DYNAMIC_LINKER32.
4405         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4406         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4407         GNU_USER_DYNAMIC_LINKER.
4408         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4409         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4410         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4411         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4412         GNU_USER_DYNAMIC_LINKER64.
4413         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4414         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4415         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4416         GNU_USER_DYNAMIC_LINKER.
4417         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4418         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4419         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4420         GNU_USER_DYNAMIC_LINKER.
4421         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4422         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4423         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4424         GNU_USER_DYNAMIC_LINKER32.
4425         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4426         GNU_USER_DYNAMIC_LINKER64.
4427         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4428         GNU_USER_DYNAMIC_LINKER64.
4429         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4430         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4431         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4432         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4433         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4434
4435 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4436
4437         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4438         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4439         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4440         GNU_USER_DYNAMIC_LINKER.
4441         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4442         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4443         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4444         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4445         GNU_USER_DYNAMIC_LINKER64.
4446         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4447         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4448         GNU_USER_LINK_EMULATION.
4449         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4450         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4451         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4452         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4453         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4454         CPP_SPEC, CC1_SPEC): Remove.
4455         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4456         (GNU_USER_DYNAMIC_LINKER): Define.
4457         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4458         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4459         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4460         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4461         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4462         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4463         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4464         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4465         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4466         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4467         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4468         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4469         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4470         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4471         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4472         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4473         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4474         GNU_USER_DYNAMIC_LINKER.
4475         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4476         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4477         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4478         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4479         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4480         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4481         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4482         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4483         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4484         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4485
4486 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4487
4488         PR target/9601
4489         PR target/11772
4490         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4491         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4492         comment.
4493         (ix86_is_msabi_thiscall): Removed.
4494         (ix86_is_type_thiscall): Likewise.
4495         (ix86_get_callcvt): New function.
4496         (ix86_comp_type_attributes): Simplify check.
4497         (ix86_function_regparm): Use ix86_get_callcvt for calling
4498         convention attribute checks.
4499         (ix86_return_pops_args): Likewise.
4500         (ix86_static_chain): Likewise.
4501         (x86_this_parameter): Likewise.
4502         (x86_output_mi_thunk): Likewise.
4503         (ix86_function_type_abi): Optimize check for types without attributes.
4504         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4505         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4506         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4507         by flag-values.
4508         (IX86_BASE_CALLCVT): Helper macro.
4509         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4510         Use ix86_get_callcvt for calling convention attribute checks and avoid
4511         symbol-decoration for stdcall in TARGET_RTD case.
4512         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4513         Likewise.
4514         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4515         for declaration.
4516
4517 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4518
4519         * config/i386/sse.md (VI_128): New mode iterator.
4520         (VI12_128): Rename from SSEMODE12.
4521         (VI14_128): Rename from SSEMODE14.
4522         (VI124_128): New mode iterator.
4523         (VI24_128): Rename from SSEMODE248.
4524         (VI248_128): Rename from SSEMODE248.
4525         (SSEMODE124C8): Remove.
4526         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4527         (*sse2_<plusminus_insn><mode>3): Merge with
4528         *avx_<plusminus_insn><mode>3.
4529         (*mulv8hi3): Merge with *avx_mulv8hi3.
4530         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4531         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4532         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4533         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4534         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4535         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4536         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4537         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4538         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4539         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4540         (*<smaxmin:code>v8hi3): Ditto.
4541         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4542         (*<smaxmin:code>v16qi3): Ditto.
4543         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4544         (*sse2_eq<mode>3): Ditto.
4545         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4546         (*sse2_gt<mode>3): Ditto.
4547         (vcondv2di): Split out of vcond<mode>.
4548         (vconduv2di): Split out of vcondu<mode>.
4549
4550 2011-04-11  Richard Guenther  <rguenther@suse.de>
4551
4552         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4553         before calling tree_low_cst.
4554
4555 2011-04-11  Richard Guenther  <rguenther@suse.de>
4556
4557         * stor-layout.c (layout_type): Compute all array index size operations
4558         in the original type.
4559         (initialize_sizetypes): Add comment.
4560         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4561
4562 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4563
4564         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4565
4566 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4567
4568         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4569         of cgraph_node, handle NULL return value.
4570         (cgraph_global_info): Likewise.
4571         (cgraph_rtl_info): Likewise.
4572         * tree-inline.c (estimate_num_insns): Likewise.
4573         * gimplify.c (unshare_body): Likewise.
4574         (unvisit_body): Likewise.
4575         (gimplify_body): Likewise.
4576         * predict.c (optimize_function_for_size_p): Likewise.
4577         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4578         (call_may_clobber_ref_p_1): Likewise.
4579         * varasm.c (function_section_1): Likewise.
4580         (assemble_start_function): Likewise.
4581
4582 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4583
4584         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4585         of cgraph_node.
4586         * final.c (rest_of_clean_state): Likewise.
4587         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4588         * passes.c (pass_init_dump_file): Likewise.
4589         (execute_all_ipa_transforms): Likewise.
4590         (function_called_by_processed_nodes_p): Likewise.
4591         * predict.c (maybe_hot_frequency_p): Likewise.
4592         (probably_never_executed_bb_p): Likewise.
4593         (compute_function_frequency): Likewise.
4594         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4595         (unnest_nesting_tree_1): Likewise.
4596         (lower_nested_functions): Likewise.
4597         * tree-optimize.c (execute_fixup_cfg): Likewise.
4598         (tree_rest_of_compilation): Likewise.
4599         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4600         * tree-sra.c (ipa_early_sra): Likewise.
4601         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4602         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4603         * ipa.c (record_cdtor_fn): Likewise.
4604         * ipa-inline.c (cgraph_early_inlining): Likewise.
4605         (compute_inline_parameters_for_current): Likewise.
4606         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4607         * ipa-pure-const.c (local_pure_const): Likewise.
4608         * ipa-split.c (split_function): Likewise.
4609         (execute_split_functions): Likewise.
4610         * cgraphbuild.c (build_cgraph_edges): Likewise.
4611         (rebuild_cgraph_edges): Likewise.
4612         (cgraph_rebuild_references): Likewise.
4613         (remove_cgraph_callee_edges): Likewise.
4614         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4615         (verify_cgraph_node): Likewise.
4616         (cgraph_analyze_functions): Likewise.
4617         (cgraph_preserve_function_body_p): Likewise.
4618         (save_inline_function_body): Likewise.
4619         (save_inline_function_body): Likewise.
4620         * tree-inline.c (copy_bb): Likewise.
4621         (optimize_inline_calls): Likewise.
4622
4623 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4624
4625         PR tree-optimization/48195
4626         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4627         ipa_check_create_edge_args.
4628         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4629         ipa_check_create_edge_args.
4630         * ipa-inline.c (inline_generate_summary): Do not call
4631         ipa_check_create_node_params and ipa_check_create_edge_args.
4632         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4633         ipa_check_create_edge_args.
4634
4635 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
4636
4637         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4638         instead of loop.
4639         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4640         * function.c (record_hard_reg_sets): Likewise.
4641         * ira.c (compute_regs_asm_clobbered): Likewise.
4642         * sched-deps.c (sched_analyze_1): Likewise.
4643         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4644
4645 2011-04-09  Xinliang David Li  <davidxl@google.com>
4646
4647         PR tree-optimization/PR48484
4648         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4649         has_valid_pred lazily
4650
4651 2011-04-09  Duncan Sands  <baldrick@free.fr>
4652
4653         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4654
4655 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4656
4657         * combine.c (combine_validate_cost): Adjust comments.  Set registered
4658         cost of I0 to zero at the end, if any.
4659
4660 2011-04-08  Xinliang David Li  <davidxl@google.com>
4661
4662         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4663         to insane profile data.
4664
4665 2011-04-08  Xinliang David Li  <davidxl@google.com>
4666
4667         * ipa-cp.c (ipcp_update_profiling): Correct
4668          negative scale factor due to insane profile data.
4669
4670 2011-04-08  Xinliang David Li  <davidxl@google.com>
4671
4672         * final.c (dump_basic_block_info): New function.
4673         (final): Dump basic block.
4674         (final_scan_insn): Remove old dump.
4675
4676 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4677
4678         PR target/47829
4679         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4680         crtbegin/crtend.
4681
4682 2011-04-08  Michael Matz  <matz@suse.de>
4683
4684         PR middle-end/48389
4685         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4686         functions.
4687         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4688         * rtl.h (rebuild_jump_labels_chain): Declare.
4689         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4690         insns inserted on edges.
4691
4692 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
4693
4694         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4695         * config/arm/arm-arches.def: New.
4696         * config/arm/arm-opts.h: New.
4697         * config/arm/genopt.sh: New.
4698         * config/arm/arm-tables.opt: New (generated).
4699         * config/arm/arm.c (arm_handle_option, arm_target_help,
4700         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4701         (all_architectures): Get most table contents from arm-arches.def.
4702         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4703         arm_selected_tune here.
4704         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4705         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4706         (march=, mcpu=, mtune=): Use Enum and Var.
4707         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4708         (arm.o): Update dependencies.
4709
4710 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
4711
4712         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4713         of header_file.
4714         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4715         (write_typed_alloc_defns): Likewise.
4716         (main): Calls write_typed_alloc_defns with output_header.
4717
4718 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4719
4720         PR inline-asm/48435
4721         * ira-color.c (setup_profitable_hard_regs): Add comments.
4722         Don't take prohibited hard regs into account.
4723         (setup_conflict_profitable_regs): Rename to
4724         get_conflict_profitable_regs.
4725         (check_hard_reg_p): Check prohibited hard regs.
4726
4727 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4728
4729         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4730         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4731         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4732
4733 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4734
4735         PR target/48366
4736         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4737         move from floating point to shift amount register.
4738         (emit_move_sequence): Remove secondary reload support for floating
4739         point to shift amount amount register copies.
4740         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4741         amount register copies.
4742         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4743         register, return false if mode isn't a scalar integer mode.
4744         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4745
4746 2011-04-08  Richard Guenther  <rguenther@suse.de>
4747
4748         * gimple.c (gimple_call_flags): Remove kludge.
4749
4750 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4751
4752         * sel-sched.c (sel_region_init): Move call to
4753         sel_setup_region_sched_flags after setup_current_loop_nest.
4754
4755 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
4756
4757         PR rtl-optimization/48272
4758         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4759         init_insn_reg_pressure_info.  Adjust a caller.
4760         * sched-int.h (init_insn_reg_pressure_info): Declare.
4761         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4762         when sched-pressure is enabled.
4763
4764 2011-04-08  Richard Guenther  <rguenther@suse.de>
4765
4766         * gimple.c (gimple_set_modified): Do not queue calls to
4767         MODIFIED_NORETURN_CALLS here ...
4768         * tree-ssa-operands.c (update_stmt_operands): ... but here.
4769
4770 2011-04-08  Richard Guenther  <rguenther@suse.de>
4771
4772         PR lto/48467
4773         * toplev.c (lang_dependent_init): Do not open asm_out_file
4774         in WPA mode, nor perform debug machinery initialization.
4775         (finalize): Do not unlink asm_out_file in WPA mode.
4776
4777 2011-04-08  Richard Guenther  <rguenther@suse.de>
4778
4779         * gimple.h (gimple_call_fntype): New function.
4780         (gimple_call_return_type): Use it.
4781         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4782         * gimple-low.c (gimple_check_call_args): Likewise.
4783         * gimple.c (gimple_call_flags): Likewise.
4784         (gimple_call_arg_flags): Likewise.
4785         (gimple_call_return_flags): Likewise.
4786         * tree-cfg.c (verify_gimple_call): Likewise.
4787         (do_warn_unused_result): Likewise.
4788         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4789         * value-prof.c (gimple_ic_transform): Fix fndecl check.
4790
4791 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
4792
4793         PR rtl-optimization/48235
4794         * sel-sched.c (code_motion_process_successors): Recompute the last
4795         insn in basic block if control flow changed.
4796         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
4797         Update condition for ilist_remove.
4798
4799 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4800
4801         PR rtl-optimization/48302
4802         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4803         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
4804         it to record added preheader blocks.
4805         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
4806         on to sel_add_loop_preheaders.
4807         (sel_region_init): Move call to setup_current_loop_nest after
4808         sel_init_bbs.
4809
4810 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4811
4812         PR target/48273
4813         * cfgloop.h (loop_has_exit_edges): New helper.
4814         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4815         non-clonable.
4816         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4817         that have no exit edges.
4818
4819 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4820
4821         PR rtl-optimization/48442
4822         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
4823         all callers.  Adjust assert.
4824
4825 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
4826
4827         PR tree-optimization/48377
4828         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4829         is_packed to true even for types with smaller TYPE_ALIGN than
4830         TYPE_SIZE.
4831
4832 2011-04-08  Richard Guenther  <rguenther@suse.de>
4833
4834         PR bootstrap/48513
4835         * doc/tm.texi: Re-generate.
4836
4837 2011-04-08  Wei Guozhi  <carrot@google.com>
4838
4839         PR target/47855
4840         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4841         * config/arm/arm.c (arm_attr_length_push_multi): New function.
4842         * config/arm/arm.md (*push_multi): Change the length computation to
4843         call a C function.
4844
4845 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
4846
4847         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4848         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4849         * doc/tm.texi: Regenerate.
4850         * system.h (ASM_OUTPUT_BSS): Poison.
4851         * varasm.c (asm_output_bss): Remove function.
4852         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4853
4854         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4855         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4856         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4857         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4858         Likewise.
4859         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4860         Likewise.
4861         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4862         Likewise.
4863         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4864
4865 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4866
4867         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4868         EnumValue lines.
4869
4870 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4871
4872         * config/m68k/m68k.c (m68k_handle_option): Don't handle
4873         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4874         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4875         OPT_mcpu32.
4876         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4877         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4878         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4879         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4880         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4881         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4882         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4883         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4884         options.  Don't map other m68k options manually.  Don't handle
4885         old-style options as canonical.
4886         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4887         * doc/install.texi (m68k-*-*): Document binutils version requirement.
4888
4889 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4890
4891         * basic-block.h (force_nonfallthru): Move to...
4892         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4893         (force_nonfallthru): ...here.
4894         * cfghooks.c (force_nonfallthru): New function.
4895         * cfgrtl.c (force_nonfallthru): Rename into...
4896         (rtl_force_nonfallthru): ...this.
4897         (commit_one_edge_insertion): Do not set AUX field.
4898         (commit_edge_insertions): Do not discover new basic blocks.
4899         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4900         (cfg_layout_rtl_cfg_hooks): Likewise.
4901         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4902         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
4903         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4904
4905 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
4906
4907         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4908         Remove macros.
4909
4910 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
4911
4912         * config/i386/sse.md: Update copyright year.
4913         (avxcvtvecmode): Remove.
4914         (sse_movhlps): Merge with *avx_movhlps.
4915         (sse_movlhps): Merge with *avx_movlhps.
4916         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4917         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4918         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4919         (sse_loadhps): Merge with *avx_loadhps.
4920         (sse_storelps): Merge with *avx_storelps.
4921         (sse_loadlps): Merge with *avx_loadlps.
4922         (sse_movss): Merge with *avx_movss.
4923         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4924         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4925         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4926         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4927         (vec_set<mode>_0): Ditto.
4928         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4929         (sse4_1_insertps): Merge with *avx_insertps.
4930         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4931         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4932         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4933         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4934         (sse2_storehpd): Merge with *avx_storehpd.
4935         (sse2_loadhpd): Merge with *avx_loadhpd.
4936         (sse2_loadlpd): Merge with *avx_loadlpd.
4937         (sse2_movsd): Merge with *avx_movsd.
4938         (*vec_concatv2df): Merge with *vec_concatv2df.
4939
4940 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
4941
4942         PR debug/48343
4943         * combine.c (combine_instructions): Add last_combined_insn,
4944         update it if insn is after it, pass it to all try_combine calls.
4945         (try_combine): Add last_combined_insn parameter, pass it instead of
4946         i3 to propagate_for_debug.
4947
4948 2011-04-07  Nick Clifton  <nickc@redhat.com>
4949
4950         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4951         to handle MDR <-> data register transfers.
4952         (movhi_internal): Likewise.
4953
4954 2011-04-07  Alan Modra  <amodra@gmail.com>
4955
4956         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4957         previous stack info.
4958
4959 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4960
4961         PR target/43920
4962         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
4963         flow_find_cross_jump.  Swap variables to implement backward replacement.
4964         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4965
4966 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4967
4968         PR target/43920
4969         * cfgcleanup.c (walk_to_nondebug_insn): New function.
4970         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
4971         and bb2.
4972         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4973         src1 or src2.  Redirect edges to the last basic block.  Update
4974         frequency and count on multiple basic blocks in case of fallthru.
4975
4976 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4977
4978         PR target/43920
4979         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4980         function.
4981         (old_insns_match_p): Change return type.  Replace return false/true
4982         with return dir_none/dir_both.  Use can_replace_by.
4983         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
4984         direction from dir_p.  Register replacement direction in dir, last_dir
4985         and afterlast_dir.  Handle new return type of old_insns_match_p using
4986         merge_dir.  Return replacement direction in dir_p.
4987         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4988         return type of old_insns_match_p.
4989         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4990         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4991         flow_find_cross_jump.
4992         * basic-block.h (enum replace_direction): New type.
4993         (flow_find_cross_jump): Add parameter to declaration.
4994
4995 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4996
4997         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4998         (AVXMODEDCVTPS2DQ): Ditto.
4999         (VEC_FLOAT_MODE): Ditto.
5000         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5001         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5002         (<any_logic:code><mode>3): Use VF mode iterator.
5003         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5004         Use VF mode iterator.
5005         (copysign<mode>3): Use VF mode iterator.
5006         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5007         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5008         (*<any_logic:code><MODEF:mode>3): Merge with
5009         *avx_<any_logic:code><MODEF:mode>3.
5010         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5011         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5012         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5013         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5014         (sse2_cvtdq2ps): Use %v modifier.
5015         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5016         (avx_cvtps2dq<avxmodesuffix>): Remove.
5017         (sse2_cvtps2dq): Use %v modifier.
5018         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5019         (avx_cvttps2dq<avxmodesuffix>): Remove.
5020         (sse2_cvttps2dq): Use %v modifier.
5021         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5022         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5023         (sse2_cvtsd2siq): Fix insn template.
5024         (sse2_cvtsd2siq_2): Ditto.
5025         (sse2_cvttsd2siq): Ditto.
5026         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5027         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5028
5029 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5030
5031         * gcov-io.c: Use GCC Runtime Library Exception.
5032
5033 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5034
5035         PR debug/48466
5036         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5037         as base_reg whatever register reg has been eliminated to, instead
5038         of hardcoding STACK_POINTER_REGNUM.
5039
5040 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5041
5042         * doc/tm.texi.in: Document C target hooks as separate from general
5043         target hooks.
5044         * doc/tm.texi: Regenerate.
5045         * genhooks.c (struct hook_desc): Add docname field.
5046         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5047         docname field.
5048         (hook_array): Include c-target.def.
5049         (emit_documentation): Use docname field in output.
5050         (emit_init_macros): Take docname argument.  Only emit definitions
5051         for hooks matching docname.
5052         (main): Expect additional arguments in all cases.  Pass argument
5053         to emit_init_macros.
5054         * target.def: Move initial macro definitions and comments to
5055         target-hooks-macros.h.
5056         (gcc_targetcm): Move to c-family/c-target.def.
5057         * target.h (targetcm): Move declaration to c-family/c-target.h.
5058         * targhooks.c (default_handle_c_option): Move to
5059         c-family/c-opts.c.
5060         * targhooks.h (default_handle_c_option): Move declaration to
5061         c-family/c-common.h.
5062         * target-hooks-macros.h: New file.
5063         * config.gcc (target_has_targetcm): Define and use to add to
5064         c_target_objs and cxx_target_objs.
5065         * config/default-c.c: New file.
5066         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5067         of target.h and target-def.h.
5068         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5069         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5070         darwin_check_cfstring_format_arg): Make static.
5071         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5072         TARGET_STRING_OBJECT_REF_TYPE_P,
5073         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5074         * config/darwin-protos.h (darwin_objc_construct_string,
5075         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5076         declare.
5077         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5078         TARGET_STRING_OBJECT_REF_TYPE_P,
5079         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5080         * config/t-darwin (darwin-c.o): Update dependencies.
5081         * system.h (TARGET_HAS_TARGETCM): Poison.
5082         * Makefile.in (TARGET_H): Update.
5083         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5084         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5085         (default-c.o): New target.
5086         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5087         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5088         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5089         c-target.def.
5090         (build/genhooks.o): Update dependencies.
5091
5092 2011-04-06  Richard Guenther  <rguenther@suse.de>
5093
5094         * ipa-inline.c (enum inlining_mode): Remove.
5095         (cgraph_flatten): Use some other token.
5096         (cgraph_edge_early_inlinable_p): New function, split out from ...
5097         (cgraph_perform_always_inlining): New function, split out from ...
5098         (cgraph_decide_inlining_incrementally): ... here.
5099         (cgraph_mark_inline_edge): Adjust.
5100         (cgraph_early_inlining): Re-structure.
5101         (pass_early_inline): Require SSA form.
5102
5103 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5104             Julian Brown  <julian@codesourcery.com>
5105             Mark Shinwell  <shinwell@codesourcery.com>
5106
5107         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5108         LO_REGS only for Thumb-1.
5109         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5110         be used in short instructions when optimising for size on Thumb-2.
5111
5112 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5113
5114         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5115         associated with user returns to be preserved.
5116
5117 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5118
5119         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5120         symbol_queue_size, DBXOUT_DECR_NESTING,
5121         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5122         if XCOFF_DEBUGGING_INFO.
5123
5124 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5125
5126         * config/i386/i386.md (attribute isa): New.
5127         (attribute enabled): New.
5128         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5129         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5130         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5131         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5132         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5133         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5134         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5135         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5136
5137         * config/i386/sse.md (VF): New mode iterator.
5138         (VF1): Ditto.
5139         (VF2): Ditto.
5140         (VF_128): Ditto.
5141         (SSEMODEF4): Remove.
5142         (attribute sse): Handle V8SF and V4DF modes.
5143         (<absneg:code><mode>2): Use VF mode iterator.
5144         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5145         mode iterator.
5146         (<plusminus_insn><mode>3): Use VF mode iterator.
5147         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5148         Use VF mode iterator.
5149         (<sse>_vm<plusminus_insn><mode>3): Merge with
5150         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5151         (mul<mode>3): Use VF mode iterator.
5152         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5153         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5154         mode iterator.
5155         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5156         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5157         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5158         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5159         mode iterator.
5160         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5161         Use VF1 mode iterator.
5162         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5163         (sqrt<VF2:mode>2): New expander.
5164         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5165         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5166         and sqrtv2df2.  Use VF mode iterator.
5167         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5168         mode iterator.
5169         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5170         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5171         Use VF1 mode iterator.
5172         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5173         (<smaxmin:code><mode>3): Use VF mode iterator.
5174         (*<smaxmin:code><mode>3_finite): Merge with
5175         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5176         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5177         (<sse>_vm<smaxmin:code><mode>2): Merge with
5178         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5179         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5180         mode iterator.
5181         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5182         mode iterator.
5183         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5184         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5185         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5186         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5187         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5188         VF mode iterator.
5189         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5190         Use VF_128 mode iterator.
5191         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5192         mode iterator.
5193         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5194         VF_128 mode iterator.
5195         (vcond<mode>): Use VF mode iterator.
5196         * config/i386/predicates.md (sse_comparison_operator): Merge with
5197         avx_comparison_float_operator.  Do not declare as special_predicate.
5198         * config/i386/i386.c (struct builtin_description): Update for renamed
5199         compare patterns.
5200         (ix86_expand_args_builtin): Ditto.
5201         (ix86_expand_sse_compare_mask): Ditto.
5202
5203 2011-04-06  Richard Guenther  <rguenther@suse.de>
5204
5205         * tree-inline.c (estimate_num_insns): For calls simply account
5206         for all passed arguments and a used return value.
5207
5208 2011-04-06  Richard Guenther  <rguenther@suse.de>
5209
5210         PR tree-optimization/47663
5211         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5212         call_stmt_time fields.
5213         (cgraph_edge_inlinable_p): Declare.
5214         (cgraph_edge_recursive_p): New inline function.
5215         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5216         (cgraph_clone_edge): Copy it.
5217         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5218         Account for call stmt time.
5219         (cgraph_estimate_time_after_inlining): Take edge argument.
5220         (cgraph_estimate_edge_growth): Account call stmt size.
5221         (cgraph_estimate_size_after_inlining): Take edge argument.
5222         (cgraph_mark_inline_edge): Adjust.
5223         (cgraph_check_inline_limits): Likewise.
5224         (cgraph_recursive_inlining_p): Remove.
5225         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5226         (cgraph_decide_recursive_inlining): Take edge argument and
5227         adjust.
5228         (cgraph_decide_inlining_of_small_functions): Do not avoid
5229         diags for recursive inlining here.
5230         (cgraph_flatten): Adjust.
5231         (cgraph_decide_inlining_incrementally): Likewise.
5232         (estimate_function_body_sizes): Remove call cost handling.
5233         (compute_inline_parameters): Initialize caller edge call costs.
5234         (cgraph_estimate_edge_growth): New function.
5235         (cgraph_estimate_growth): Use it.
5236         (cgraph_edge_badness): Likewise.
5237         (cgraph_check_inline_limits): Take an edge argument.
5238         (cgraph_decide_inlining_of_small_functions): Adjust.
5239         (cgraph_decide_inlining): Likewise.
5240         * tree-inline.c (estimate_num_insns): Only account for call
5241         return value if it is used.
5242         (expand_call_inline): Avoid diagnostics on recursive inline
5243         functions here.
5244         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5245         (input_edge): Input edge call costs.
5246
5247 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5248
5249         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5250
5251 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5252
5253         * doc/invoke.texi (Spec Files): Fix typo.
5254
5255 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5256
5257         * profile.c (branch_prob): Move declaration of local variable.  Remove
5258         obsolete ??? comment.  Expand the location explicitly instead of using
5259         the LOCATION_FILE and LOCATION_LINE macros.
5260
5261 2011-04-06  Wei Guozhi  <carrot@google.com>
5262
5263         PR target/47855
5264         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5265         (arm_cond_branch): Likewise.
5266         (arm_cond_branch_reversed): Likewise.
5267         (arm_jump): Likewise.
5268         (push_multi): Likewise.
5269         * config/arm/constraints.md (Py): New constraint.
5270
5271 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5272
5273         PR bootstrap/48471
5274         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5275         Move these...
5276         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5277         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5278         #ifdef DBX_DEBUGGING_INFO.
5279
5280 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5281
5282         PR bootstrap/48403
5283         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5284         if old and new states differ.
5285
5286 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5287
5288         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5289         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5290         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5291         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5292         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5293         mcfv4e): Use Alias.
5294         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5295         ColdFire options to -mcpu= options.
5296
5297 2011-04-05  Jeff Law  <law@redhat.com>
5298
5299         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5300         check if BB is a successor of LOOP->header and return
5301         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5302
5303 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5304
5305         * cprop.c (struct reg_use): Remove.
5306         (reg_use_table): Make an array of RTX.
5307         (find_used_regs, constprop_register, local_cprop_pass,
5308         bypass_block): Simplify users of reg_use_table.
5309         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5310         on one of the uses found by find_used_regs.
5311
5312 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5313
5314         PR bootstrap/48469
5315         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5316         declaration.
5317
5318 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5319
5320         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5321         as an rtx.
5322         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5323
5324 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5325
5326         PR middle-end/48441
5327         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5328
5329 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5330
5331         * combine.c: Include obstack.h.
5332         (struct insn_link): Define.
5333         (uid_log_links): Adjust type.
5334         (FOR_EACH_LOG_LINK): New macro.
5335         (insn_link_obstack): Declare.
5336         (alloc_insn_link): Define.
5337         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5338         type of link variables.
5339         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5340         (try_combine, record_promoted_values, distribute_notes): Likewise.
5341         (distribute_links): Likewise.  Tweak prototype.
5342         (clear_log_links): Delete.
5343         (adjust_for_new_dest): Call alloc_insn_link.
5344         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5345
5346 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5347
5348         * gcse.c (modify_mem_list): Convert to an array of VECs.
5349         (canon_modify_mem_list, compute_transp): Tweak formatting.
5350         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5351         (load_killed_in_block_p): Likewise.
5352         (record_last_mem_set_info): Likewise.
5353         (clear_modify_mem_tables): Likewise.
5354
5355 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5356
5357         PR middle-end/48461
5358         * function.c (emit_use_return_register_into_block): Only define if
5359         HAVE_return.
5360
5361 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5362
5363         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5364
5365 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5366
5367         * config/rx/rx-opts.h: New.
5368         * config/rx/rx.c (rx_cpu_type): Remove.
5369         (rx_handle_option): Don't assert that global structures are in
5370         use.  Access variables via opts pointer.  Defer most handling of
5371         OPT_mint_register_.  Use error_at.
5372         (rx_option_override): Handle deferred OPT_mint_register_ here.
5373         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5374         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5375         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5376         (rx_cpu_types): New Enum and EnumValue entries.
5377         (mint-register=): Use Defer and use Var accordingly.
5378
5379 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5380
5381         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5382         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5383         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5384         Move these...
5385         (debug_free_queue, debug_nesting, symbol_queue_index):
5386         ...and these...
5387         * dbxout.c: ...to here.  Make static.
5388
5389 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5390
5391         * gcse.c (modify_pair): Define.  Define a VEC of it.
5392         (canon_modify_mem_list): Convert to an array of VECs.
5393         (free_insn_expr_list_list): Delete.
5394         (clear_modify_mem_tables): Call VEC_free instead.
5395         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5396         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5397         (canon_list_insert, compute_transp): Likewise.
5398
5399 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5400
5401         PR target/43920
5402         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5403         for size.
5404
5405 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5406
5407         PR target/43920
5408         * function.c (emit_use_return_register_into_block): New function.
5409         (thread_prologue_and_epilogue_insns): Use
5410         emit_use_return_register_into_block.
5411
5412 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5413
5414         PR target/43920
5415         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5416         insn.
5417
5418 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5419
5420         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5421
5422 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5423
5424         * config/arm/arm.md (define_constants for unspec): Replace with
5425         define_c_enum.
5426         (define_constants for unspecv): Replace with define_c_enum.
5427         * config/arm/neon.md (define_constants for unspec): Replace with
5428         define_c_enum.
5429
5430 2011-04-04  Richard Henderson  <rth@redhat.com>
5431
5432         PR bootstrap/48400
5433         * dwarf2out.c (output_line_info): Always emit line info from
5434         at least one section.
5435         (dwarf2out_init): Create text_section_line_info here ...
5436         (set_cur_line_info_table): ... not here.
5437
5438 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5439
5440         PR target/48380
5441         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5442         not called.
5443
5444         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5445
5446 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5447
5448         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5449         (expr_equiv_p): Remove.
5450         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5451         (hash_scan_set): Update call to insert_set_in_table.
5452         (dump_hash_table): Dump <dest, src> pair.
5453         (lookup_set): Simplify.  Lookup <dest, src> pair.
5454         (compute_transp): Remove, fold heavily simplified code into...
5455         (compute_local_properties): ...here.  Expect COMP and TRANSP
5456         unconditionally.
5457         (find_avail_set): Take set directly from struct expr.
5458         (find_bypass-set): Likewise.
5459         (bypass_block): Likewise.
5460         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5461
5462         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5463         checks on form of COND from find_implicit_sets to here.
5464         (find_implicit_sets): Cleanup control flow. Split critical edges
5465         if it exposes implicit sets.  Allocate/resize implicit_sets as
5466         necessary.
5467         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5468         changed something.  Run df_analyze after find_implicit_sets if any
5469         edges were split.  Do not allocate implicit_sets here.
5470
5471         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5472         (gcse_obstack): Renamed to cprop_obstack.
5473         (GNEW, GNEWVEC, GNEWVAR): Remove.
5474         (gmalloc): Remove.
5475         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5476         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5477         (gcse_alloc): Likewise, and rename to cprop_alloc.
5478         (alloc_gcse_men, free_gcse_mem): Remove.
5479         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5480         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5481         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5482
5483         * cprop.c (oprs_not_set_p): Remove.
5484         (mark_set, mark_clobber): Remove.
5485         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5486         (reg_not_set_p): New function.
5487         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5488         (cprop_insn): Likewise.
5489         (cprop_jump): Use FOR_EACH_EDGE.
5490
5491 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5492
5493         PR bootstrap/48403
5494         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5495         (rank_for_schedule): Use scheduled_insns vector instead of
5496         last_scheduled_insn.
5497         (ok_for_early_queue_removal): Likewise.
5498         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5499         we have a dbg_cnt.
5500         (choose_ready): Likewise.
5501         (commit_schedule): Use VEC_iterate.
5502         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5503         a dbg_cnt, use it and ensure the first insn is in the ready list.
5504         (haifa_sched_init): Allocate scheduled_insns.
5505         (sched_extend_ready_list): Don't allocate it; reserve space.
5506         (haifa_sched_finish): Free it.
5507
5508 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5509
5510         * optc-gen.awk: Always remove type from Variable entry before
5511         recording in var_seen.
5512
5513 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5514
5515         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5516         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5517         call to tidy_fallthru_edges.
5518
5519 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5520
5521         * doc/options.texi (ToLower): Document.
5522         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5523         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5524         * opts.h (cl_option): Add cl_tolower field.
5525         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5526         arguments with lowercase strings.
5527         * config/rx/rx.opt (mcpu=): Add ToLower.
5528         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5529         argument.
5530
5531 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5532
5533         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5534
5535 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5536
5537         * config/vax/vax.c: Include reload.h.
5538
5539 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5540
5541         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5542         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5543         (sparc_preferred_reload_class): New function.
5544
5545 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5546
5547         PR debug/48401
5548         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5549         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5550
5551 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5552
5553         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5554         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5555
5556 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5557
5558         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5559         (ASM_OUTPUT_ALIGNED_BSS): Define.
5560
5561 2011-04-03  Michael Matz  <matz@suse.de>
5562
5563         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5564         and next_slot members.
5565         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5566         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5567         (lto_streamer_cache_append): Declare.
5568         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5569         unsigned index, remove offset parameter, ensure that we append
5570         or update existing entries.
5571         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5572         parameter, update next_slot for append.
5573         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5574         parameter.
5575         (lto_streamer_cache_insert_at): Likewise.
5576         (lto_streamer_cache_append): New function.
5577         (lto_streamer_cache_lookup): Use unsigned index.
5578         (lto_streamer_cache_get): Likewise.
5579         (lto_record_common_node): Don't test tree_node_can_be_shared.
5580         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5581         (lto_streamer_cache_delete): Don't free offsets member.
5582         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5583         (lto_output_string_with_length): Use lto_output_data_stream.
5584         (lto_output_tree_header): Remove ix parameter, don't write it.
5585         (lto_output_builtin_tree): Likewise.
5586         (lto_write_tree): Adjust callers to above, don't track and write
5587         offset, write unsigned index.
5588         (output_unreferenced_globals): Don't emit all global vars.
5589         (write_global_references): Use unsigned indices.
5590         (lto_output_decl_state_refs): Likewise.
5591         (write_symbol): Likewise.
5592         * lto-streamer-in.c (lto_input_chain): Move earlier.
5593         (input_function): Use unsigned index.
5594         (input_alias_pairs): Don't read and then ignore all global vars.
5595         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5596         don't pass it back, use lto_streamer_cache_append.
5597         (lto_register_var_decl_in_symtab): Use unsigned index.
5598         (lto_register_function_decl_in_symtab): Likewise.
5599         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5600         index.
5601         (lto_get_builtin_tree): Don't read index, use
5602         lto_streamer_cache_append.
5603         (lto_read_tree): Adjust call to lto_materialize_tree.
5604
5605         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5606         don't use function calls in arguments to MIN.
5607
5608         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5609         twice.
5610
5611         * gimple.c (gimple_type_leader_entry): Mark deletable.
5612
5613 2011-04-03  Alan Modra  <amodra@gmail.com>
5614
5615         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5616
5617 2011-04-03  Michael Matz  <matz@suse.de>
5618
5619         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5620         an integer.
5621         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5622
5623 2011-04-03  Michael Matz  <matz@suse.de>
5624
5625         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5626         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5627         without function context.
5628         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5629         current_function_decl and cfun.
5630
5631 2011-04-03  Michael Matz  <matz@suse.de>
5632
5633         * tree.c (decl_init_priority_insert): Don't create entry for
5634         default priority.
5635         (decl_fini_priority_insert): Ditto.
5636         (fields_compatible_p, find_compatible_field): Remove.
5637         * tree.h (fields_compatible_p, find_compatible_field): Remove.
5638         * gimple.c (gimple_compare_field_offset): Adjust block comment.
5639
5640 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5641
5642         * combine.c (try_combine): Remove useless local variable.
5643
5644 2011-04-03  Richard Guenther  <rguenther@suse.de>
5645             Ira Rosen  <ira.rosen@linaro.org>
5646
5647         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5648         non-variable offsets and compare the remaining bases of the two
5649         accesses instead of looking for exact same data-ref.
5650
5651 2011-04-02  Kai Tietz  <ktietz@redhat.com>
5652
5653         PR target/48416
5654         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5655
5656         * i386.c (ix86_is_msabi_thiscall): New helper function.
5657         (ix86_is_type_thiscall): New helper function.
5658         (ix86_comp_type_attributes): Handle thiscall for method-functions
5659         special.
5660         (init_cumulative_args): Likewise.
5661         (find_drap_reg): Likewise.
5662         (ix86_static_chain): Likewise.
5663         (x86_this_parameter): Likewise.
5664         (x86_output_mi_thunk): Likewise.
5665
5666 2011-04-01  Olivier Hainque  <hainque@adacore.com>
5667             Nicolas Setton  <setton@adacore.com>
5668             Eric Botcazou  <ebotcazou@adacore.com>
5669
5670         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5671         (add_gnat_descriptive_type_attribute): New function.
5672         (gen_array_type_die): Call it.
5673         (gen_enumeration_type_die): Likewise.
5674         (gen_struct_or_union_type_die): Likewise.
5675         (modified_type_die): Likewise.
5676         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5677         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5678         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5679
5680 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5681
5682         PR bootstrap/48148
5683         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5684         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5685
5686         Revert:
5687         2011-03-17  Richard Guenther  <rguenther@suse.de>
5688
5689         PR bootstrap/48148
5690         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5691         origin for decls in other ltrans units.
5692         (input_varpool_node): Likewise.
5693
5694 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5695
5696         PR middle-end/48335
5697         * expr.c (expand_assignment): Handle all possibilities
5698         if TO_RTX is CONCAT.
5699         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5700         (store_split_bit_field): If SUBREG_REG (op0) or
5701         op0 itself has smaller mode than word, return it
5702         for offset 0 and const0_rtx for out-of-bounds stores.
5703         If word is const0_rtx, skip it.
5704
5705 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
5706
5707         * config/h8300/h8300.c (print_operand_address): Rename to...
5708         (h8300_print_operand_address): ...this. Make static. Adjust comments.
5709         Call h8300_print_operand and h8300_print_operand_address instead of
5710         print_operand and print_operand_address. Declare.
5711         (print_operand): Renake to...
5712         (h8300_print_operand): ...this. Make static. Adjust comments.
5713         Call h8300_print_operand instead of print_operand. Declare.
5714         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5715         (h8300_register_move_cost): Likewise.
5716         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5717         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5718         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5719         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5720         * config/h8300/h8300-protos.h (print_operand): Delete.
5721         (print_operand_address): Delete.
5722
5723 2011-04-01  Richard Henderson  <rth@redhat.com>
5724
5725         PR 48400
5726         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5727         in strict mode before dwarf4.  Re-order tests to early out
5728         before switching sections.
5729
5730 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
5731
5732         * config/h8300/constraints.md: New file.
5733         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
5734         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5735         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5736         * config/h8300/predicates.md (bit_operand): Likewise.
5737         (incdec_operand): Use satisfies_constraint_M and
5738         satisfies_constraint_O.  Don't use C code block.
5739         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5740         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5741         (compute_mov_length): Use satisfies_constraint_G.
5742         (fix_bit_operand): Use satisfies_constraint_U.
5743         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5744         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5745         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5746         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5747         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5748         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5749         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5750         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5751         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5752         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5753         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5754         (EXTRA_MEMORY_CONSTRAINT): Delete.
5755
5756 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
5757             Michael Meissner  <meissner@linux.vnet.ibm.com>
5758
5759         PR target/48262
5760         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5761         operands, as per the specifications.
5762
5763         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5764         (vec_extract_evenv4sf): Ditto.
5765         (vec_extract_evenv8hi): Ditto.
5766         (vec_extract_evenv16qi): Ditto.
5767         (vec_extract_oddv4si): Ditto.
5768
5769 2011-03-31  Mark Wielaard  <mjw@redhat.com>
5770
5771         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5772         high_pc attribute if the CU has no associated code. Only output
5773         DW_AT_entry_pc for CU if not generating strict dwarf and
5774         dwarf_version < 4.
5775
5776 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
5777
5778         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5779         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5780         out of ...
5781         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5782         * final.c (final_start_function): Call the new function rather
5783         than using a NULL argument for dwarf2out_frame_debug.
5784
5785         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5786         that contains the prologue.
5787
5788         * haifa-sched.c (queue_insn): New arg REASON.  All callers
5789         changed.  Print it in debugging output.
5790
5791         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5792
5793         * sched-ebb.c (begin_schedule_ready): Remove second argument.
5794         Split most of the code into...
5795         (begin_move_insn): ... here.  New function.
5796         (ebb_sched_info): Add a pointer to it.
5797         * haifa-sched.c (scheduled_insns): New static variable.
5798         (sched_extend_ready_list): Allocate it.
5799         (schedule_block): Use it to record the order of scheduled insns.
5800         Perform RTL changes to move insns only after all scheduling
5801         decisions have been made.
5802         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5803         begin_move_insn field.
5804         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5805         * sched-int.h (struct haifa_sched_info): Remove second argument
5806         from begin_schedule_ready hook.  Add new member begin_move_insn.
5807         * sched-rgn.c (begin_schedule_ready): Remove second argument.
5808         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5809
5810         * haifa-sched.c (prune_ready_list): New function, broken out of
5811         schedule_block.
5812         (schedule_block): Use it.
5813
5814 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5815
5816         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5817
5818 2011-04-01  Kai Tietz  <ktietz@redhat.com>
5819
5820         * config.gcc (*-*-mingw*): Allow as option the
5821         posix threading model.
5822         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
5823         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5824         definition.
5825         (CPP_SPEC): Add pthread/no-pthread handling.
5826         (LIB_SPEC): Likewise.
5827         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5828         (LIB_SPEC): Likewise.
5829         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5830         flag to pass -pthread option for shared libgcc build.
5831         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5832         for shared libgcc build.
5833         * config/i386/t-mingw-pthread: New file.
5834         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5835         New define to enable use of library pthread by default.
5836         * config/i386/mingw.opt (pthread): New driver option.
5837         (no-pthread): New driver option.
5838         * config/i386/cygming.opt: Make sure trailing empty line is retained.
5839         * config/i386/mingw-w64.opt: Likewise.
5840
5841 2011-04-01  Gary Funck <gary@intrepid.com>
5842
5843         * c-decl.c (grokdeclarator): Fix formatting.
5844
5845 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5846
5847         * expr.c (emit_block_move_via_movmem): Use n_generator_args
5848         instead of n_operands.
5849         (set_storage_via_setmem): Likewise.
5850         * optabs.c (maybe_gen_insn): Likewise.
5851         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5852         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5853         (mips_expand_builtin_direct): Likewise.
5854         * config/spu/spu.c (expand_builtin_args): Likewise.
5855
5856 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5857
5858         * recog.h (insn_data_d): Add n_generator_args.
5859         * genoutput.c (data): Likewise.
5860         (output_insn_data): Print it.
5861         (max_opno, num_dups): Delete.
5862         (scan_operands): Just fill in "d->operand[...]".
5863         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5864
5865 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5866
5867         * gensupport.h (pattern_stats): New structure.
5868         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5869         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5870         (max_operand_1, max_operand_vec): Delete.
5871         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5872
5873 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
5874
5875         * emit-rtl.c (emit_pattern_after_setloc): New function.
5876         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5877         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5878         (emit_pattern_after): New function.
5879         (emit_insn_after, emit_jump_insn_after): Call it.
5880         (emit_call_insn_after, emit_debug_insn_after): Likewise.
5881         (emit_pattern_before_setloc): New function.
5882         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5883         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5884         Likewise.
5885         (emit_pattern_before): New function.
5886         (emit_insn_before, emit_jump_insn_before): Call it.
5887         (emit_call_insn_before, emit_debug_insn_before): Likewise.
5888
5889 2011-03-31  Richard Henderson  <rth@redhat.com>
5890
5891         * dwarf2out.c (dw_separate_line_info_ref): Remove.
5892         (dw_separate_line_info_entry): Remove.
5893         (enum dw_line_info_opcode): New.
5894         (dw_line_info_entry): Use it.
5895         (dw_line_info_table, dw_line_info_table_p): New.
5896         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5897         (line_info_table, line_info_label_num): Remove.
5898         (line_info_table_in_use): Remove.
5899         (separate_line_info_table): Remove.
5900         (separate_line_info_table_allocated): Remove.
5901         (separate_line_info_table_in_use): Remove.
5902         (LINE_INFO_TABLE_INCREMENT): Remove.
5903         (line_info_label_num): New.
5904         (cur_line_info_table): New.
5905         (text_section_line_info, cold_text_section_line_info): New.
5906         (separate_line_info): New.
5907         (SEPARATE_LINE_CODE_LABEL): Remove.
5908         (print_dwarf_line_table): Remove.
5909         (debug_dwarf): Don't dump it.
5910         (output_one_line_info_table): New.
5911         (output_line_info): Use it.
5912         (new_line_info_table): New.
5913         (set_cur_line_info_table): New.
5914         (dwarf2out_switch_text_section): Use it.
5915         (dwarf2out_begin_function): Likewise.
5916         (push_dw_line_info_entry): New.
5917         (dwarf2out_source_line): Rewrite for new line info tables.
5918         (dwarf2out_init): Remove dead initailizations.
5919
5920 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5921
5922         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
5923         various flags.
5924         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5925         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5926         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5927         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5928         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5929         * opt-functions.awk (flag_init, switch_bit_fields): New.
5930         (switch_flags): Don't handle flags moved to bit-fields.  Don't
5931         generate CL_MISSING_OK or CL_SAVE.
5932         * optc-gen.awk: Update to generate bit-field output as well as
5933         flags field.
5934         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5935         bit-field instead of CL_REJECT_DRIVER flag.
5936         * opts-common.c (generate_canonical_option,
5937         decode_cmdline_option): Use bit-fields instead of CL_* flags.
5938         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5939         instead of CL_REJECT_NEGATIVE flag.
5940         * toplev.c (print_switch_values): Use cl_report bit-field instead
5941         of CL_REPORT flag.
5942
5943 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5944
5945         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5946         a zero minimum index only if it is redundant.
5947
5948 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5949
5950         PR rtl-optimization/48381
5951         * ira-color.c (assign_hard_reg): Use hard reg set intersection
5952         instead of ira_class_hard_reg_index for calculating conflicting
5953         hard registers.
5954
5955 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
5956
5957         * cprop.c: Clean up hash table building.
5958         (reg_avail_info): Remove.
5959         (oprs_available_p): Remove.
5960         (record_last_reg_set_info): Remove.
5961         (record_last_set_info): Remove.
5962         (reg_available_p): New function.
5963         (gcse_constant_p): Do not treat unfolded conditions as constants.
5964         (make_set_regs_unavailable): New function.
5965         (hash_scan_set): Simplify with new reg_available_p.
5966         (compute_hash_table_work): Traverse insns stream only once.
5967         Do not compute reg_avail_info. Traverse insns in reverse order.
5968         Record implicit sets after recording explicit sets from the block.
5969
5970 2011-03-31  Michael Matz  <matz@suse.de>
5971
5972         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5973
5974 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
5975
5976         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5977         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5978         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5979         (h8300_mode_dependent_address_p): New function.
5980         (h8300_get_index): Make static.
5981
5982 2011-03-31  Jeff Law  <law@redhat.com>
5983
5984         * reload1.c (elimination_effects): Fix typo in recent change.
5985
5986         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5987         typo potentially leading to null pointer dereference.
5988
5989         * caller-save.c (new_saved_hard_reg): Eliminate return value.
5990         (setup_save_areas): Corresponding changes to avoid useless
5991         assignments.
5992
5993         * jump.c (reversed_comparison_code_parts): Avoid successive return
5994         statements when REVERSE_CONDITION is defined.
5995
5996         * expr.c (expand_assignment): Avoid useless assignments.
5997         (expand_expr_real_1): Likewise.
5998         (expand_expr_real_2): Avoid useless statements.
5999
6000         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6001
6002         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6003
6004         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6005         statements.
6006
6007         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6008
6009 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6010
6011         PR target/47109
6012         * doc/tm.texi.in (TARGET_VERSION): Remove.
6013         * doc/tm.texi: Regenerate.
6014         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6015         * collect2.c (main): Don't use TARGET_VERSION.
6016         * mips-tdump.c (main): Don't use TARGET_VERSION.
6017         * mips-tfile.c (main): Don't use TARGET_VERSION.
6018         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6019         * config/rs6000/vxworksae.h: Remove.
6020         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6021         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6022         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6023         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6024         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6025         * config/arm/arm.h (TARGET_VERSION): Remove.
6026         * config/arm/coff.h (TARGET_VERSION): Remove.
6027         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6028         * config/arm/elf.h (TARGET_VERSION): Remove.
6029         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6030         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6031         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6032         * config/arm/pe.h (TARGET_VERSION): Remove.
6033         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6034         * config/arm/semi.h (TARGET_VERSION): Remove.
6035         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6036         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6037         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6038         * config/avr/avr.h (TARGET_VERSION): Remove.
6039         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6040         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6041         * config/frv/frv.h (TARGET_VERSION): Remove.
6042         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6043         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6044         * config/i386/darwin.h (TARGET_VERSION): Remove.
6045         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6046         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6047         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6048         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6049         * config/i386/gnu.h (TARGET_VERSION): Remove.
6050         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6051         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6052         * config/i386/linux.h (TARGET_VERSION): Remove.
6053         * config/i386/linux64.h (TARGET_VERSION): Remove.
6054         * config/i386/lynx.h (TARGET_VERSION): Remove.
6055         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6056         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6057         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6058         * config/i386/netware.h (TARGET_VERSION): Remove.
6059         * config/i386/nto.h (TARGET_VERSION): Remove.
6060         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6061         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6062         * config/ia64/elf.h (TARGET_VERSION): Remove.
6063         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6064         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6065         * config/ia64/linux.h (TARGET_VERSION): Remove.
6066         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6067         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6068         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6069         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6070         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6071         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6072         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6073         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6074         * config/m68k/linux.h (TARGET_VERSION): Remove.
6075         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6076         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6077         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6078         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6079         * config/mep/mep.h (TARGET_VERSION): Remove.
6080         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6081         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6082         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6083         * config/mips/linux.h (TARGET_VERSION): Remove.
6084         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6085         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6086         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6087         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6088         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6089         * config/pa/pa.h (TARGET_VERSION): Remove.
6090         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6091         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6092         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6093         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6094         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6095         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6096         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6097         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6098         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6099         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6100         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6101         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6102         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6103         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6104         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6105         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6106         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6107         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6108         * config/s390/linux.h (TARGET_VERSION): Remove.
6109         * config/s390/s390.h (TARGET_VERSION): Remove.
6110         * config/s390/tpf.h (TARGET_VERSION): Remove.
6111         * config/score/score.h (TARGET_VERSION): Remove.
6112         * config/sh/linux.h (TARGET_VERSION): Remove.
6113         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6114         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6115         * config/sh/sh.h (TARGET_VERSION): Remove.
6116         * config/sh/sh64.h (TARGET_VERSION): Remove.
6117         * config/sh/superh.h (TARGET_VERSION): Remove.
6118         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6119         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6120         * config/sparc/linux.h (TARGET_VERSION): Remove.
6121         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6122         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6123         TARGET_NAME32, TARGET_NAME): Remove.
6124         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6125         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6126         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6127         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6128         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6129         * config/spu/spu.h (TARGET_VERSION): Remove.
6130         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6131         * config/v850/v850.h (TARGET_VERSION): Remove.
6132         * config/vax/linux.h (TARGET_VERSION): Remove.
6133         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6134         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6135         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6136
6137 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6138
6139         PR target/48142
6140         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6141         frame-related from frame-unrelated adjustments to the stack pointer.
6142
6143 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6144
6145         * common.opt (fdebug-types-section): Move earlier.
6146         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6147
6148 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6149
6150         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6151         var.
6152
6153 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6154
6155         * tree.h (CASE_CHAIN): Define.
6156         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6157         (gimple_redirect_edge_and_branch): Likewise.
6158
6159 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6160
6161         PR middle-end/48367
6162         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6163         calculation.
6164
6165 2011-03-30  Jeff Law  <law@redhat.com>
6166
6167         * PR bootstrap/48371
6168         * reload1.c (reload): Fix botch in last change.
6169
6170         * reload.h (struct reload): Fix typo introduced in last change.
6171
6172 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6173
6174         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6175         Undocumented.  Remove help text.
6176         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6177         -mhard-float.
6178
6179 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6180
6181         * doc/options.texi (NegativeAlias): Document.
6182         (Alias): Mention NegativeAlias.
6183         * opt-functions.awk: Handle NegativeAlias.
6184         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6185         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6186         * opts.h (CL_NEGATIVE_ALIAS): Define.
6187         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6188         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6189         OPT_mspe_.
6190         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6191         Alias entries.
6192         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6193         mno-spe and mno-isel instead of mspe=no and -misel=no.
6194
6195 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6196
6197         * common.opt (fdebug-types-section): New flag.
6198         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6199         * dwarf2out.c (use_debug_types): New define.
6200         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6201         (print_die): Guard output of type unit signatures using
6202         use_debug_types.
6203         (build_abbrev_table): Replace assert of dwarf_version >= 4
6204         with assert on use_debug_types.
6205         (size_of_die): Likewise.
6206         (unmark_dies): Likewise.
6207         (value_format): Decide AT_ref_external form on use_debug_types.
6208         (output_die): Replace dwarf_version version check guard with
6209         use_debug_types where appropriate.
6210         (modified_type_die): Likewise.
6211         (gen_reference_type_die): Likewise.
6212         (dwarf2out_start_source_file): Likewise.
6213         (dwarf2out_end_source_file): Likewise.
6214         (prune_unused_types_walk_attribs): Likewise.
6215         (dwarf2out_finish): Likewise.
6216
6217 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6218
6219         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6220
6221 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6222
6223         PR rtl-optimization/48332
6224         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6225         mode of input operand N and modeN to its actual mode.
6226
6227 2011-03-30  Jeff Law  <law@redhat.com>
6228
6229         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6230         define accessor macro.
6231         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6232         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6233         (reg_equiv_init): Likewise.
6234         (reg_equivs_size): New variable.
6235         (reg_equiv_init_size): Remove.
6236         (allocate_initial_values): Move prototype to here from....
6237         * integrate.h (allocate_initial_values): Remove prototype.
6238         * integrate.c: Include reload.h.
6239         (allocate_initial_values): Corresponding changes.
6240         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6241         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6242         (update_equiv_regs): Corresponding changes.
6243         (ira): Corresponding changes.
6244         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6245         (push_secondary_reload): Corresponding changes.
6246         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6247         (make_memloc, find_reloads_address): Corresponding changes.
6248         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6249         (find_reloads_address_1): Corresponding changes.
6250         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6251         (refers_to_regno_for_reload_p): Corresponding changes.
6252         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6253         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6254         * reload1.c: Include ggc.h.
6255         (grow_reg_equivs): New function.
6256         (replace_pseudos_in, reload): Corresponding changes.
6257         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6258         (eliminate_regs_1, elimination_effects): Corresponding changes.
6259         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6260         (delete_output_reload): Likewise.
6261         * caller-save.c (mark_referenced_regs): Corresponding changes.
6262         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6263         * frv/predicates.md (frv_load_operand): Corresponding changes.
6264         * microblaze/microblaze.c (double_memory_operand): Corresponding
6265         changes.
6266         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6267         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6268         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6269         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6270         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6271         changes.
6272         * pa/pa.c (emit_move_sequence): Corresponding changes.
6273         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6274
6275 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6276
6277         PR target/47551
6278         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6279         structure modes.  Don't check neon_vector_mem_operand for
6280         vector or structure modes.
6281
6282 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6283             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6284
6285         PR target/43590
6286         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6287         operand 1 and reshuffle the operands to match.
6288         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6289
6290 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6291
6292         PR driver/48208
6293         * config/c.opt (F): Added 'Driver' to -F option.
6294
6295         PR driver/48260
6296         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6297           handler function.
6298         * config/darwin.opt: Added '-arch' option.
6299
6300 2011-03-30  Nick Clifton  <nickc@redhat.com>
6301
6302         * config/rx/rx.md: Add peepholes and patterns to combine
6303         extending loads and simple arithmetic instructions.
6304         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6305         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6306         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6307         modes to use pre-decrement and post-increment addressing.
6308         (rx_is_restricted_memory_address): Add range checking of REG+INT
6309         addresses.
6310         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6311         (rx_memory_move_cost): Adjust cost of stores.
6312         (rx_adjust_insn_length): New function.
6313
6314 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6315
6316         PR c/48305
6317         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6318         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6319         matching arg00/arg01 types.
6320
6321 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6322
6323         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6324         last_location to UNKNOWN_LOCATION.
6325
6326 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6327
6328         PR target/48349
6329         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6330         FLOAT_SSE_REGS.
6331
6332 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6333             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6334
6335         PR bootstrap/48337
6336         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6337         Init(PROCESSOR_V7).
6338         (sparc_cpu): Likewise.
6339         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6340         PROCESSOR_V7.
6341
6342 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6343
6344         PR target/48336
6345         PR middle-end/48342
6346         PR rtl-optimization/48345
6347         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6348         hard regs for given mode from profitable regs when doing secondary
6349         allocation.
6350
6351 2011-03-29  Jeff Law  <law@redhat.com>
6352
6353         PR bootstrap/48327
6354         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6355         do_not_duplicate field.
6356         (lookup_redirection_data): Corresponding changes.
6357         (create_duplicates): Always create a template block.
6358         (redirect_edges): Remove code which reused the original block
6359         when it was going to become unreachable code.
6360         (thread_block): Don't set do_not_duplicate field.
6361
6362 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6363
6364         * lto-opts.c (register_user_option_p, lto_register_user_option):
6365         Make type argument unsigned.
6366         * lto-streamer.h (lto_register_user_option): Make type argument
6367         unsigned.
6368         * opth-gen.awk: Make CL_* macros unsigned.
6369         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6370         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6371         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6372         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6373         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6374         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6375         (find_opt): Make lang_mask argument unsigned.
6376
6377 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6378
6379         PR rtl-optimization/48331
6380         PR rtl-optimization/48334
6381         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6382         for any used algorithm.
6383
6384 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6385
6386         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6387         to parent_max.
6388
6389 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6390
6391         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6392         (alpha_option_override): Don't set alpha_sr_alias_set.
6393         (emit_frame_store_1): Use gen_frame_mem rather than calling
6394         set_mem_alias_set.
6395         (alpha_expand_epilogue): Ditto.
6396
6397 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6398
6399         PR tree-optimization/48290
6400         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6401         vectorization, check that relevant phis in the basic block after
6402         the inner loop are really inner loop's exit phis.
6403
6404 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6405
6406         PR debug/48190
6407         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6408         (cached_dw_loc_list_def): New structure.
6409         (cached_dw_loc_list): New typedef.
6410         (cached_dw_loc_list_table): New variable.
6411         (cached_dw_loc_list_table_hash): New function.
6412         (cached_dw_loc_list_table_eq): Likewise.
6413         (add_location_or_const_value_attribute): Take a bool cache_p.
6414         Cache the list when the parameter is true.
6415         (gen_formal_parameter_die): Update caller.
6416         (gen_variable_die): Likewise.
6417         (dwarf2out_finish): Likewise.
6418         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6419         while generating debug info for the decl.
6420         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6421         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6422         (resolve_addr): Cache the result of resolving a chain of
6423         location lists.
6424
6425 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6426
6427         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6428         conflict object hard regset nodes have intersecting hard reg sets.
6429
6430         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6431         after regstat_init_n_sets_and_refs.
6432
6433         * ira.c: Add more comments at the top.
6434         (setup_stack_reg_pressure_class, setup_pressure_classes):
6435         Add comments how we compute the register pressure classes.
6436         (setup_allocno_and_important_classes): Add more comments.
6437         (setup_class_translate_array, reorder_important_classes)
6438         (setup_reg_class_relations): Add comments.
6439
6440         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6441         start of the file.
6442
6443         * ira-color.c: Add 2011 to the Copyright line.
6444         (assign_hard_reg):  Add more comments.
6445         (improve_allocation): Ditto.
6446
6447         * ira-costs.c: Add 2011 to the Copyright line.
6448         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6449         comments.
6450         (setup_regno_cost_classes_by_mode): Ditto.
6451
6452         Initial patches from ira-improv branch:
6453
6454         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6455
6456         * ira-build.c (ira_create_object): Remove initialization of
6457         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6458         (ira_create_allocno): Remove initialization of
6459         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6460         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6461         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6462         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6463         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6464         Initialize ALLOCNO_ADD_DATA.
6465         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6466         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6467         ALLOCNO_REG.
6468         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6469         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6470
6471         * ira.c (ira_reallocate): Remove.
6472         (setup_pressure_classes): Call
6473         ira_init_register_move_cost_if_necessary.  Use
6474         ira_register_move_cost instead of ira_get_register_move_cost.
6475         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6476         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6477
6478         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6479         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6480         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6481         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6482         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6483         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6484         Fix formatting.
6485         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6486         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6487         (struct allocno_color_data): New.
6488         (allocno_color_data_t): New typedef.
6489         (allocno_color_data): New definition.
6490         (ALLOCNO_COLOR_DATA): New macro.
6491         (struct object_color_data): New.
6492         (object_color_data_t): New typedef.
6493         (object_color_data): New definition.
6494         (OBJECT_COLOR_DATA): New macro.
6495         (update_copy_costs, calculate_allocno_spill_cost): Call
6496         ira_init_register_move_cost_if_necessary.  Use
6497         ira_register_move_cost instead of ira_get_register_move_cost.
6498         (move_spill_restore, update_curr_costs): Ditto.
6499         (allocno_spill_priority): Make it inline.
6500         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6501         (struct coalesce_data, coalesce_data_t): New.
6502         (allocno_coalesce_data): New definition.
6503         (ALLOCNO_COALESCE_DATA): New macro.
6504         (merge_allocnos, coalesced_allocno_conflict_p): Use
6505         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6506         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6507         (coalesce_allocnos): Ditto.
6508         (setup_coalesced_allocno_costs_and_nums): Ditto.
6509         (collect_spilled_coalesced_allocnos): Ditto.
6510         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6511         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6512         (coalesce_spill_slots): Ditto.
6513         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6514         free allocno_coalesce_data.
6515
6516         * ira-conflicts.c: Fix formatting.
6517         (process_regs_for_copy): Call
6518         ira_init_register_move_cost_if_necessary.  Use
6519         ira_register_move_cost instead of ira_get_register_move_cost.
6520         (build_object_conflicts): Optimize.
6521
6522         * ira-costs.c (record_reg_classes): Optimize.  Call
6523         ira_init_register_move_cost_if_necessary.  Use
6524         ira_register_move_cost, ira_may_move_in_cost, and
6525         ira_may_move_out_cost instead of ira_get_register_move_cost and
6526         ira_get_may_move_cost.
6527         (record_address_regs): Ditto.
6528         (scan_one_insn): Optimize.
6529         (find_costs_and_classes): Optimize.
6530         (process_bb_node_for_hard_reg_moves): Call
6531         ira_init_register_move_cost_if_necessary.  Use
6532         ira_register_move_cost instead of ira_get_register_move_cost.
6533
6534         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6535         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6536         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6537         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6538         definitions.
6539         (ira_initiate_emit_data, ira_finish_emit_data)
6540         (create_new_allocno): New functions.
6541         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6542         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6543         Use ira_register_move_cost instead of ira_get_register_move_cost.
6544
6545         * ira-int.h: Fix some comments.
6546         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6547         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6548         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6549         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6550         add_data.
6551         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6552         bitfield after mode.  Make hard_regno a short int.  Make
6553         hard_regno short.  Remove first_coalesced_allocno and
6554         next_coalesced_allocno.  Move mem_optimized_dest_p,
6555         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6556         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6557         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6558         temp, colorable_p.  Add new member add_data.
6559         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6560         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6561         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6562         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6563         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6564         (ALLOCNO_ADD_DATA): New macro.
6565         (ira_emit_data_t): New typedef.
6566         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6567         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6568         from struct ira_allocno.
6569         (ALLOCNO_EMIT_DATA): New macro.
6570         (ira_allocno_emit_data, allocno_emit_reg): New.
6571         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6572         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6573         (OBJECT_ADD_DATA): New macro.
6574         (ira_reallocate): Remove.
6575         (ira_initiate_emit_data, ira_finish_emit_data): New.
6576         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6577         (ira_init_register_move_cost_if_necessary): New.
6578         (ira_object_conflict_iter_next): Merge into
6579         ira_object_conflict_iter_cond.
6580         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6581
6582         * ira-live.c (process_single_reg_class_operands): Call
6583         ira_init_register_move_cost_if_necessary.  Use
6584         ira_register_move_cost instead of ira_get_register_move_cost.
6585
6586         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6587
6588         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6589
6590         * ira-costs.c: Fix formatting.
6591         (cost_classes, cost_classes_num): Remove.
6592         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6593         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6594         (cost_classes_del, cost_classes_htab): New.
6595         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6596         (initiate_regno_cost_classes, setup_cost_classes): New.
6597         (setup_regno_cost_classes_by_aclass): New.
6598         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6599         (record_reg_classes): Use regno_cost_classes instead of
6600         cost_classes.  Move checking opposite operand up.
6601         (record_address_regs): Use regno_cost_classes
6602         instead of cost_classes.
6603         (scan_one_insn): Ditto.  Use always general register.
6604         (print_allocno_costs): Use regno_cost_classes instead of
6605         cost_classes.
6606         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6607         (find_costs_and_classes): Set up cost classes for each registers.
6608         Use also their mode for this.  Use regno_cost_classes instead of
6609         cost_classes.
6610         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6611         cost_classes.
6612         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6613         (ira_costs, ira_set_pseudo_classes): Call
6614         initiate_regno_cost_classes and finish_regno_cost_classes.
6615
6616         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6617
6618         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6619
6620         * target.def (ira_cover_classes): Remove.
6621
6622         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6623
6624         * doc/tm.texi.in: Ditto.
6625
6626         * ira-conflicts.c: Remove mentioning cover classes from the file.
6627         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6628         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
6629
6630         * targhooks.c (default_ira_cover_classes): Remove.
6631
6632         * targhooks.h (default_ira_cover_classes): Ditto.
6633
6634         * haifa-sched.c: Remove mentioning cover classes from the file.
6635         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6636         ira_pressure_classes and ira_pressure_classes_num instead of
6637         ira_reg_class_cover_size and ira_reg_class_cover.  Use
6638         sched_regno_pressure_class instead of sched_regno_cover_class.
6639         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6640         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6641
6642         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
6643         classes from the file.
6644         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6645         (struct object_hard_regs, struct object_hard_regs_node): New.
6646         (struct ira_object): New members profitable_hard_regs,
6647         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6648         (struct ira_allocno): Rename cover_class to aclass.  Rename
6649         cover_class_cost and updated_cover_class_cost to class_cost and
6650         updated_class_cost.  Remove splay_removed_p and
6651         left_conflict_size.  Add new members colorable_p.
6652         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6653         (ALLOCNO_COLORABLE_P): New macro.
6654         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6655         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6656         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6657         (OBJECT_...): Rename parameter C to O.
6658         (OBJECT_PROFITABLE_HARD_REGS): New macro.
6659         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6660         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6661         (struct target_ira_int): New members x_ira_max_memory_move_cost,
6662         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6663         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6664         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6665         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
6666         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
6667         x_ira_reg_class_subunion.
6668         (ira_max_memory_move_cost, ira_max_register_move_cost)
6669         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6670         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6671         (ira_important_class_nums, ira_reg_class_superunion): New macros.
6672         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6673         (ira_reg_class_union): Rename to ira_reg_class_subunion.
6674         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6675         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6676         (ira_tune_allocno_costs_and_cover_classes): Rename to
6677         ira_tune_allocno_costs.
6678         (ira_debug_hard_regs_forest): New.
6679         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6680         (ira_object_conflict_iter_next): Fix comments.
6681         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6682         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6683         cover_class to aclass.
6684         (ira_allocate_and_accumulate_costs): Ditto.
6685         (ira_allocate_and_set_or_copy_costs): Ditto.
6686
6687         * opts.c (decode_options): Remove ira_cover_class check.
6688
6689         * ira-color.c: Remove mentioning cover classes from the file.  Use
6690         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6691         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6692         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6693         (splay-tree.h): Remove include.
6694         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6695         before copy_freq_compare_func.
6696         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6697         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6698         New definitions.
6699         (hard_regs_roots, hard_regs_node_vec): Ditto.
6700         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6701         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6702         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6703         (create_new_object_hard_regs_node): Ditto.
6704         (add_new_object_hard_regs_node_to_forest): Ditto.
6705         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6706         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6707         Ditto.
6708         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6709         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6710         (remove_unused_object_hard_regs_nodes): Ditto.
6711         (enumerate_object_hard_regs_nodes): Ditto.
6712         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6713         (object_hard_regs_subnode_t): Ditto.
6714         (struct object_hard_regs_subnode): Ditto.
6715         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6716         (setup_object_hard_regs_subnode_index): Ditto.
6717         (get_object_hard_regs_subnodes_num): Ditto.
6718         (form_object_hard_regs_nodes_forest): Ditto.
6719         (finish_object_hard_regs_nodes_tree): Ditto.
6720         (finish_object_hard_regs_nodes_forest): Ditto.
6721         (allocnos_have_intersected_live_ranges_p): Rename to
6722         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6723         (pseudos_have_intersected_live_ranges_p): Rename to
6724         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6725         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6726         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6727         (update_copy_costs): Remove assert.  Skip cost update if the hard
6728         reg does not belong the class.
6729         (assign_hard_reg): Process only profitable hard regs.
6730         (uncolorable_allocnos_num): Make it scalar.
6731         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6732         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6733         and ira_reg_class_max_nregs.
6734         (bucket_allocno_compare_func): Check frequency first.
6735         (sort_bucket): Add compare function as a parameter.
6736         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6737         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6738         (push_allocno_to_stack): Rewrite for checking new allocno
6739         colorability.
6740         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
6741         (push_only_colorable): Pass new parameter to sort_bucket.
6742         (push_allocno_to_spill): Remove.
6743         (allocno_spill_priority_compare): Make it inline and rewrite.
6744         (splay_tree_allocate, splay_tree_free): Remove.
6745         (allocno_spill_sort_compare): New function.
6746         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
6747         build and use splay tree.  Choose first allocno in uncolorable
6748         allocno bucket to spill.  Remove setting spill cost.
6749         (all_conflicting_hard_regs): Remove.
6750         (setup_allocno_available_regs_num): Check only profitable hard
6751         regs.  Print info about hard regs nodes.
6752         (setup_allocno_left_conflicts_size): Remove.
6753         (put_allocno_into_bucket): Don't call
6754         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
6755         (improve_allocation): New.
6756         (color_allocnos): Call setup_profitable_hard_regs,
6757         form_object_hard_regs_nodes_forest, improve_allocation,
6758         finish_object_hard_regs_nodes_forest.  Setup spill cost.
6759         (print_loop_title): Use pressure classes.
6760         (color_allocnso): Ditto.
6761         (do_coloring): Remove allocation and freeing splay_tree_node_pool
6762         and allocnos_for_spilling.
6763         (ira_sort_regnos_for_alter_reg): Don't setup members
6764         {first,next}_coalesced_allocno.
6765         (color): Remove allocating and freeing removed_splay_allocno_vec.
6766         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6767         prohibited_class_mode_regs.
6768
6769         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
6770         formatting.
6771         (update_allocno_pressure_excess_length): Use pressure classes.
6772         (inc_register_pressure, dec_register_pressure): Check for pressure
6773         class.
6774         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6775         pressure class.  Use ira_reg_class_nregs instead of
6776         ira_reg_class_max_nregs.
6777         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6778         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6779         (single_reg_class): Use ira_reg_class_nregs instead of
6780         ira_reg_class_max_nregs.
6781         (process_bb_node_lives): Use pressure classes.
6782
6783         * ira-emit.c: Remove mentioning cover classes from the file.  Use
6784         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6785         (change_loop): Use pressure classes.
6786         (modify_move_list): Call ira_set_allocno_class instead of
6787         ira_set_allocno_cover_class.
6788
6789         * ira-build.c: Remove mentioning cover classes from the file.  Use
6790         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6791         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
6792         ALLOCNO_UPDATED_CLASS_COST instead of
6793         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6794         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6795         (ira_create_allocno): Remove initialization of
6796         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
6797         ALLOCNO_COLORABLE_P.
6798         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6799         Update conflict regs for the objects.
6800         (create_cap_allocno): Remove assert.  Don't propagate
6801         ALLOCNO_AVAILABLE_REGS_NUM.
6802         (ira_free_allocno_costs): New function.
6803         (finish_allocno): Change a part of code into call of
6804         ira_free_allocno_costs.
6805         (low_pressure_loop_node_p): Use pressure classes.
6806         (object_range_compare_func): Don't compare classes.
6807         (setup_min_max_conflict_allocno_ids): Ditto.
6808
6809         * loop-invariant.c: Remove mentioning cover classes from the file.
6810         Use ira_pressure_classes and ira_pressure_classes_num instead of
6811         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
6812         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6813         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6814         Use reg_allocno_class instead of reg_cover_class.
6815         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6816         STACK_REG_COVER_CLASS.
6817         (get_regno_cover_class): Rename to get_regno_pressure_class.
6818         (move_loop_invariants): Initialize and finalize regstat.
6819
6820         * ira.c: Remove mentioning cover classes from the file.  Add
6821         comments about coloring without cover classes.  Use ALLOCNO_CLASS
6822         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6823         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6824         setup_class_subset_and_memory_move_costs.
6825         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6826         (setup_cover_and_important_classes): Rename to
6827         setup_allocno_and_important_classes.
6828         (setup_class_translate_array): New.
6829         (setup_class_translate): Call it for allocno and pressure classes.
6830         (cover_class_order): Rename to allocno_class_order.
6831         (comp_reg_classes_func): Use ira_allocno_class_translate instead
6832         of ira_class_translate.
6833         (reorder_important_classes): Set up ira_important_class_nums.
6834         (setup_reg_class_relations): Set up ira_reg_class_superunion.
6835         (print_class_cover): Rename to print_classes.  Add parameter.
6836         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6837         Print pressure classes too.
6838         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
6839         setup_reg_subclasses.
6840         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6841         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6842         (setup_prohibited_class_mode_regs): Use
6843         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6844         (clarify_prohibited_class_mode_regs): New function.
6845         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6846         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6847         (ira_init_once): Initialize them.
6848         (free_register_move_costs): Process them.
6849         (ira_init): Move calls of find_reg_classes and
6850         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6851         Call clarify_prohibited_class_mode_regs.
6852         (ira_no_alloc_reg): Remove.
6853         (too_high_register_pressure_p): Use pressure classes.
6854
6855         * sched-deps.c: Remove mentioning cover classes from the file.
6856         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6857         ira_pressure_classes and ira_pressure_classes_num instead of
6858         ira_reg_class_cover_size and ira_reg_class_cover.
6859         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6860         sched_regno_pressure_class instead of sched_regno_cover_class.
6861         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
6862         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6863
6864         * ira.h: Add 2010 to Copyright.
6865         (ira_no_alloc_reg): Remove external.
6866         (struct target_ira): Rename x_ira_hard_regno_cover_class,
6867         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6868         x_ira_class_translate to x_ira_hard_regno_allocno_class,
6869         x_ira_allocno_classes_num, x_ira_allocno_classes, and
6870         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
6871         x_ira_pressure_classes, x_ira_pressure_class_translate, and
6872         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
6873         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
6874         x_ira_no_alloc_regs.
6875         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6876         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6877         ira_allocno_classes_num and ira_allocno_classes.
6878         (ira_class_translate): Rename to ira_allocno_class_translate.
6879         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6880         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6881         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6882         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6883         (ira_no_alloc_regs): New.
6884
6885         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
6886         classes from the file.  Use ALLOCNO_CLASS instead of
6887         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
6888         ALLOCNO_COVER_CLASS_COST.
6889         (regno_cover_class): Rename to regno_aclass.
6890         (record_reg_classes): Use ira_reg_class_subunion instead of
6891         ira_reg_class_union.
6892         (record_address_regs): Check overflow.
6893         (scan_one_insn): Ditto.
6894         (print_allocno_costs): Print total mem cost fore regional allocation.
6895         (print_pseudo_costs): Use REG_N_REFS.
6896         (find_costs_and_classes): Use classes intersected with them on the
6897         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
6898         ira_reg_class_union.  Use ira_allocno_class_translate and
6899         regno_aclass instead of ira_class_translate and regno_cover_class.
6900         Modify code for finding regno_aclass.  Setup preferred classes for
6901         the next pass.
6902         (setup_allocno_cover_class_and_costs): Rename to
6903         setup_allocno_class_and_costs.  Use regno_aclass instead of
6904         regno_cover_class.  Use ira_set_allocno_class instead of
6905         ira_set_allocno_cover_class.
6906         (init_costs, finish_costs): Use regno_aclass instead of
6907         regno_cover_class.
6908         (ira_costs): Use setup_allocno_class_and_costs instead of
6909         setup_allocno_cover_class_and_costs.
6910         (ira_tune_allocno_costs_and_cover_classes): Rename to
6911         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
6912         by processing objects.  Use ira_reg_class_max_nregs instead of
6913         ira_reg_class_nregs.
6914
6915         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6916
6917         * sched-int.h: Remove mentioning cover classes from the file.
6918         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6919
6920         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
6921         classes from the file.
6922         (struct reg_pref): Rename coverclass into allocnoclass.
6923         (reg_cover_class): Rename to reg_allocno_class.
6924
6925         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6926
6927         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6928
6929         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6930
6931         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6932
6933         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6934
6935         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6936
6937         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6938
6939         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6940
6941         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6942
6943         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6944
6945         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6946         (i386_ira_cover_classes): Ditto.
6947
6948         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6949
6950         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6951
6952         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6953
6954         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6955
6956         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6957
6958         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6959
6960         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6961         (mips_ira_cover_classes): Ditto.
6962
6963         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6964
6965         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6966
6967         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6968
6969         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6970
6971         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6972
6973         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6974         (IRA_COVER_CLASSES_VSX): Ditto.
6975
6976         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6977         (rs6000_ira_cover_classes): Ditto.
6978
6979         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6980
6981         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6982
6983         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6984
6985         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6986
6987         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6988
6989         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6990
6991         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6992
6993         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6994
6995         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6996
6997         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6998
6999 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7000
7001         PR debug/48253
7002         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7003         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7004         dw_fde_unlikely_section_end_label, cold_in_std_section,
7005         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7006         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7007         fields.
7008         (output_fde): Use dw_fde_second_{begin,end} if second is
7009         true, otherwise dw_fde_{begin,end}.
7010         (output_call_frame_info): Test dw_fde_second_begin != NULL
7011         instead of dw_fde_switched_sections.
7012         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7013         fields, initialize new fields.  Initialize in_std_section
7014         unconditionally from the first partition.
7015         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7016         dw_fde_second_begin is non-NULL.
7017         (dwarf2out_switch_text_section): Stop initializing removed
7018         dw_fde_struct fields, initialize new fields, initialize
7019         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7020         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7021         (struct var_loc_list_def): Add last_before_switch field.
7022         (arange_table, arange_table_allocated, arange_table_in_use,
7023         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7024         (size_of_aranges): Count !in_std_section and !second_in_std_section
7025         hunks in fdes, instead of looking at arange_table_in_use.
7026         (output_aranges): Add aranges_length argument, don't call
7027         size_of_aranges here.  Instead of using aranges_table*
7028         emit ranges for fdes when !in_std_section resp.
7029         !second_in_std_section.
7030         (dw_loc_list): Break ranges crossing section switch.
7031         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7032         use dw_fde_second_end instead of dw_fde_end as end of last range.
7033         (gen_subprogram_die): Don't call add_arange.  Use
7034         dw_fde_{begin,end} for first partition and if switched
7035         section dw_fde_second_{begin,end} for the second.
7036         (var_location_switch_text_section_1,
7037         var_location_switch_text_section): New functions.
7038         (dwarf2out_begin_function): Initialize cold_text_section even
7039         when function_section () isn't text_section.
7040         (prune_unused_types): Don't walk arange_table.
7041         (dwarf2out_finish): Don't needlessly test
7042         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7043         If info_section_emitted, call size_of_aranges and if it indicates
7044         non-empty .debug_aranges, call output_aranges with the computed
7045         size.  Stop using removed dw_fde_struct fields, use
7046         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7047         for second.
7048
7049         PR debug/48203
7050         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7051         create ENTRY_VALUE if incoming or address of incoming's MEM
7052         is a hard REG.
7053         * dwarf2out.c (mem_loc_descriptor): Don't emit
7054         DW_OP_GNU_entry_value of DW_OP_fbreg.
7055         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7056         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7057         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7058         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7059         ENTRY_VALUE_EXPs.
7060         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7061         is a REG_P or MEM_P with REG_P address, compute hash directly
7062         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7063         (preserve_only_constants): Don't clear VALUES forwaring
7064         ENTRY_VALUE to some other VALUE.
7065
7066 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7067
7068         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7069         instead of GEN_INT.
7070
7071 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7072
7073         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7074         block before expanding the statement.
7075         (expand_gimple_stmt_1): Likewise.  Set them here...
7076         (expand_gimple_stmt): ...and not here.  Tidy.
7077         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7078         unknown.
7079
7080 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7081
7082         * Makefile.in: New rule for cprop.o.
7083         * gcse.c: Move constant/copy propagation to cprop.c.
7084         (compute_local_properties): Only handle expression tables.
7085         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7086         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7087         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7088         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7089         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7090         compute_cprop_data, find_used_regs, try_replace_reg,
7091         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7092         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7093         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7094         find_bypass_set, reg_killed_on_edge, bypass_block,
7095         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7096         execute_rtl_cprop, pass_rtl_cprop): Move to...
7097         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7098         moved from gcse.c to here with minor cleanups in duplicated code.
7099
7100 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7101
7102         * config/i386/i386.c (flag_opts): Fix a typo in
7103         -mavx256-split-unaligned-store.
7104
7105 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7106
7107         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7108         LIBCALL_VALUE): Remove macros.
7109         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7110         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7111         (h8300_function_value, h8300_libcall_value,
7112         h8300_function_value_regno_p): New functions.
7113
7114 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7115
7116         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7117
7118 2011-03-28  Jeff Law  <law@redhat.com>
7119
7120         * tree-ssa-threadupdate.c (redirect_edges): Call
7121         create_edge_and_update_destination_phis as needed.
7122         (create_edge_and_update_destination_phis): Accept new BB argument.
7123         All callers updated.
7124         (thread_block): Do not update the profile when threading around
7125         intermediate blocks.
7126         (thread_single_edge): Likewise.
7127         (determine_bb_domination_status): If BB is not a successor of the
7128         loop header, return NONDOMINATING.
7129         (register_jump_thread): Note when we register a jump thread around
7130         an intermediate block.
7131         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7132         (thread_across_edge): Use it.
7133
7134 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7135
7136         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7137         when for_return is 2.
7138
7139 2011-03-28  Jeff Law  <law@redhat.com>
7140
7141         * var-tracking.c (canonicalize_values_mark): Delete unused
7142         lhs assignment.
7143         (canonicalize_values_star, set_variable_part): Likewise.
7144         (clobber_variable_part, delete_variable_part): Likewise.
7145
7146 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7147
7148         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7149
7150 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7151
7152         * tree-inline.c (expand_call_inline): Do not check that destination
7153         node is analyzed.
7154         (optimize_inline_calls): Assert that destination node is analyzed.
7155         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7156         not call tree_lowering_passes.
7157         * cgraph.h (cgraph_analyze_function): Declare.
7158         * cgraphunit.c (cgraph_analyze_function): Make public.
7159
7160 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7161
7162         * config/sparc/sparc-opts.h: New.
7163         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7164         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7165         (sparc_option_override): Store processor_type enumeration rather
7166         than string in cpu_default.  Remove name and enumeration from
7167         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7168         without using sparc_select.  Use target_flags_explicit instead of
7169         fpu_option_set.
7170         * config/sparc/sparc.h (enum processor_type): Move to
7171         sparc-opts.h.
7172         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7173         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7174         HeaderInclude entry.
7175         (mcpu=, mtune=): Use Var and Enum.
7176         (sparc_processor_type): New Enum and EnumValue entries.
7177
7178 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7179             Iain Sandoe  <iains@gcc.gnu.org>
7180
7181         PR target/48245
7182         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7183
7184 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7185
7186         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7187         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7188         Insert new statements at it in lieu of STMT.
7189         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7190         * tree-vect-stmts.c (vectorizable_store): Likewise.
7191         (vectorizable_load): Likewise.
7192
7193 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7194
7195         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7196         (divtf3): Ditto.
7197         (multf3): Ditto.
7198         (subtf3): Ditto.
7199
7200 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7201
7202         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7203         unaligned 256bit load/store.
7204         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7205         (*avx_movdqu<avxmodesuffix>): Likewise.
7206
7207 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7208
7209         PR target/48288
7210         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7211         * config/pa/pa.md (iordi3): Use new predicate in expander.
7212         (iorsi3): Likewise.
7213
7214 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7215
7216         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7217         FUNCTION_VALUE_REGNO_P): Remove macros.
7218         * config/mips/mips-protos.h (mips_function_value): Remove.
7219         * config/mips/mips.c (mips_function_value): Rename to...
7220         (mips_function_value_1): ... this. Make static.  Handle receiving
7221         the function type in 'fn_decl_or_type' argument.
7222         (mips_function_value, mips_libcall_value,
7223         mips_function_value_regno_p): New function.
7224         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7225         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7226
7227 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7228
7229         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7230         and -mavx256-split-unaligned-store.
7231         (ix86_option_override_internal): Split 32-byte AVX unaligned
7232         load/store by default.
7233         (ix86_avx256_split_vector_move_misalign): New.
7234         (ix86_expand_vector_move_misalign): Use it.
7235
7236         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7237         -mavx256-split-unaligned-store.
7238
7239         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7240         256bit load/store.  Generate unaligned store on misaligned memory
7241         operand.
7242         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7243         256bit load/store.
7244         (*avx_movdqu<avxmodesuffix>): Likewise.
7245
7246         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7247         -mavx256-split-unaligned-store.
7248
7249 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7250
7251         PR target/38598
7252         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7253         Update commentary.
7254
7255 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7256
7257         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7258         opno arguments with an expand_operand.  Use create_input_operand.
7259         (mips_prepare_builtin_target): Delete.
7260         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7261         functions.
7262         (mips_expand_builtin_direct): Use create_output_operand and
7263         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7264         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7265         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7266
7267 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7268
7269         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7270         function.
7271         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7272
7273 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7274
7275         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7276         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7277         basic blocks and call commit_edge_insertions directly.
7278         (fixup_abnormal_edges): Move from here to...
7279         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7280         on the edges and return whether some have actually been inserted.
7281         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7282         compensation code.
7283
7284 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7285
7286         PR rtl-optimization/48144
7287         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7288         (merge_expr_data): ... here.
7289         (av_set_intersect): Rename to av_set_code_motion_filter.
7290         Update all callers.  Call merge_history_vect when an expression
7291         is found in both sets.
7292         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7293
7294 2011-03-26  Alan Modra  <amodra@gmail.com>
7295
7296         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7297         cmodel medium addresses.
7298         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7299         64-bit gpr loads and stores.
7300         (rs6000_secondary_reload_ppc64): New function.
7301         * config/rs6000/rs6000-protos.h: Declare it.
7302         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7303
7304 2011-03-26  Alan Modra  <amodra@gmail.com>
7305
7306         PR target/47487
7307         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7308         GNU Go in traceback table.
7309
7310 2011-03-25  Richard Henderson  <rth@redhat.com>
7311
7312         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7313         if there are exactly 6 operands.
7314         (set_storage_via_setmem): Similarly.
7315
7316 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7317
7318         * collect2.c (write_c_file_stat): Handle backslash
7319         as right-hand directory separator.
7320         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7321         checking just for slash.
7322         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7323         instead of checking for trailing slash.
7324         * gcc.c (record_temp_file): Use filename_cmp instead
7325         of strcmp.
7326         (do_spec_1): Likewise.
7327         (replace_outfile_spec_function): Likewise.
7328         (is_directory): Use filename_ncmp instead of strncmp.
7329         (print_multilib_info): Likewise.
7330         * gcov.c (find_source): Use filename_cmp instead
7331         instead of strcmp.
7332         (make_gcov_file_name): Fix order of slash/backslash
7333         checks.
7334         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7335         (add_standard_paths): Likewise.
7336         * mips-tfile.c (saber_stop): Handle backslash.
7337         * prefix.c (update_path): Use filename_ncmp instead of
7338         strncmp.
7339         * profile.c (output_location): Use filename_cmp instead
7340         of strcmp.
7341         * read-md.c (handle_toplevel_file): Handle backslash.
7342         * tlink.c (frob_extension):  Likewise.
7343         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7344         strcmp.
7345         * tree-dump.c (dequeue_and_dump): Handle backslash.
7346         * tree.c (get_file_function_name): Likewise.
7347         * gengtype.c (read_input_list): Likewise.
7348         (get_file_realbasename): Likewise.
7349         (get_output_file_with_visibility): Use filename_cmp
7350         instead of strcmp.
7351
7352 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7353
7354         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7355         case to VFPv1.
7356
7357 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7358
7359         * fold-const.c (expr_location_or): New function.
7360         (fold_truth_not_expr): Call it.
7361
7362 2011-03-25  Jeff Law  <law@redhat.com>
7363
7364         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7365         va_end.
7366         * c-family/c-common.c (def_fn_type): Likewise.
7367         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7368         * emit-rtl.c (gen_rtvec): Likewise.
7369         * lto/lto-lang.c (def_fn_type): Likewise.
7370
7371 2011-03-25  Richard Guenther  <rguenther@suse.de>
7372
7373         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7374         also generate copies.
7375         (fini_copy_prop): Handle constant values properly.
7376
7377 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7378
7379         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7380         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7381         (hash_loc_operands, compare_loc_operands): Handle
7382         DW_OP_GNU_entry_value.
7383
7384 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7385
7386         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7387         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7388         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7389         comment and use macro TARGET_64BIT_MS_ABI instead.
7390         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7391         and change default behavior for 32-bit MS_ABI.
7392         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7393         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7394         32-bit, too.
7395         (ix86_cfun_abi): Likewise.
7396         (ix86_maybe_switch_abi): Adjust comment.
7397         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7398         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7399         instead of checking for SYSV_ABI.
7400         (ix86_nsaved_sseregs): Likewise.
7401         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7402         to 16 bytes.
7403         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7404         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7405         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7406         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7407         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7408
7409 2011-03-25  Richard Guenther  <rguenther@suse.de>
7410
7411         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7412         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7413         (verify_gimple): Remove.
7414         * tree-cfg.c (verify_gimple_call): Merge verification
7415         from verify_stmts.
7416         (verify_gimple_phi): Merge verification from verify_stmts.
7417         (verify_gimple_label): New function.
7418         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7419         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7420         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7421         (verify_stmts): Rename to verify_gimple_in_cfg.
7422         (verify_gimple_in_cfg): New function.
7423         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7424         * tree-ssa.c (verify_ssa): Likewise.
7425         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7426
7427 2011-03-25  Richard Guenther  <rguenther@suse.de>
7428
7429         * passes.c (init_optimization_passes): Add FRE pass after
7430         early SRA.
7431
7432 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7433             Andrew Stubbs  <ams@codesourcery.com>
7434
7435         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7436         for Cortex-A8.
7437         (arm_movdi_vfp_cortexa8): New pattern.
7438         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7439         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7440         instructions when tuning for Cortex-A8.  Set attribute "arch".
7441         * config/arm/arm.md: Move include arm-tune.md up a bit.
7442         (define_attr "arch"): Add "onlya8" and "nota8" values.
7443         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7444
7445 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7446
7447         PR bootstrap/48282
7448         Revert:
7449         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7450
7451         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7452         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7453         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7454         * passes.c (init_optimization_passes): Move
7455         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7456
7457 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7458
7459         * c-typeck.c (comptypes_internal): Replace target
7460         hook call of comp_type_attributes by version in tree.c file.
7461         * gimple.c (gimple_types_compatible_p_1): Likewise.
7462         * tree-ssa.c (useless_type_conversion_p): Likewise.
7463         * tree.c (build_type_attribute_qual_variant): Likewise.
7464         (attribute_value_equal): New static helper function.
7465         (comp_type_attributes): New function.
7466         (merge_attributes): Use attribute_value_equal for comparison.
7467         (attribute_list_contained): Likewise.
7468         * tree.h (comp_type_attributes): New prototype.
7469
7470 2011-03-25  Richard Guenther  <rguenther@suse.de>
7471
7472         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7473         of complex types at -O0.
7474         (verify_gimple_assign_binary): Likewise.
7475         (verify_gimple_assign_ternary): Likewise.
7476
7477 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7478
7479         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7480         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7481
7482 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7483
7484         PR debug/48041
7485         * dwarf2out.c (output_abbrev_section): Only write table when
7486         abbrev_die_table_in_use > 1.
7487
7488 2011-02-24  Richard Henderson  <rth@redhat.com>
7489
7490         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7491         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7492         (alpha_expand_unaligned_load_words): Use extql.
7493         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7494         (emit_insxl): Handle all modes for consistency.
7495
7496 2011-02-24  Richard Henderson  <rth@redhat.com>
7497
7498         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7499         (alpha_expand_unaligned_load): Likewise.
7500         (alpha_expand_unaligned_store): Likewise.
7501         (alpha_expand_unaligned_load_words): Likewise.
7502         (alpha_expand_unaligned_store_words): Likewise.
7503         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7504         (alpha_split_lock_test_and_set_12): Likewise.
7505         (print_operand, alpha_fold_builtin_extxx): Likewise.
7506         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7507         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7508         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7509         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7510         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7511         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7512         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7513         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7514         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7515         (extwl, extll, extql): Similarly.
7516         (inswh, inslh, insqh): Similarly.
7517         (mskbl, mskwl, mskll, mskql): Similarly.
7518         (mskwh, msklh, mskqh): Similarly.
7519
7520 2011-02-24  Richard Henderson  <rth@redhat.com>
7521
7522         * config/alpha/alpha.md (attribute isa): Add er, ner.
7523         (attribute enabled): Handle them.
7524         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7525
7526 2011-02-24  Richard Henderson  <rth@redhat.com>
7527
7528         * config/alpha/alpha.md (attribute isa): Add vms.
7529         (attribute enabled): Handle it.
7530         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7531         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7532         (*movtf): Rename from *movtf_internal for consistency.
7533         (*movsi): Merge with *movsi_nt_vms.
7534         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7535         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7536         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7537         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7538
7539 2011-02-24  Richard Henderson  <rth@redhat.com>
7540
7541         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7542         (extendqisi2, extendhisi2): Likewise.
7543         (extendqidi2): Simplify BWX/non-BWX expansions.
7544         (extendhidi2): Similarly.
7545
7546 2011-02-24  Richard Henderson  <rth@redhat.com>
7547
7548         * config/alpha/alpha.md (attribute isa): New.
7549         (attribute enabled): New.
7550         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7551         (zero_extendqisi2, zero_extendqidi2): Similarly.
7552         (zero_extendhisi2, zero_extendhidi2): Similarly.
7553         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7554
7555 2011-02-24  Richard Henderson  <rth@redhat.com>
7556
7557         * config/alpha/predicates.md (input_operand): Revert last change;
7558         update comment to mention 32-bit VMS rather than Windows.
7559
7560 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7561
7562         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7563         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7564         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7565         * passes.c (init_optimization_passes): Move
7566         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7567
7568 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7569
7570         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7571
7572 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7573
7574         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7575         correctly.
7576
7577 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7578
7579         PR debug/48204
7580         * simplify-rtx.c (simplify_const_unary_operation): Call
7581         real_convert when changing mode class with FLOAT_EXTEND.
7582
7583 2011-03-24  Nick Clifton  <nickc@redhat.com>
7584
7585         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7586         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7587         * config/rx/rx.c (rx_option_override): Set align_jumps,
7588         align_loops and align_labels if not set by the user.
7589         (rx_align_for_label): New function.
7590         (rx_max_skip_for_label): New function.
7591         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7592         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7593         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7594         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7595         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7596
7597 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7598
7599         PR rtl-optimization/48263
7600         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7601         and original commutative_p handling.  Use maybe_gen_insn.
7602
7603 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7604
7605         * reload.c (find_reloads_subreg_address): Add address_reloaded
7606         parameter and return true there if the full address has been
7607         reloaded.
7608         (find_reloads_toplev): Pass address_reloaded flag.
7609         (find_reloads_address_1): Don't use address_reloaded parameter.
7610
7611 2011-03-24  Jeff Law  <law@redhat.com>
7612
7613         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7614         unused variable "ann".
7615         (remove_unused_locals): Likewise.
7616
7617         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7618         statement.
7619
7620         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7621         after it is freed.
7622
7623 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7624
7625         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7626         for invalid symbolic addresses.
7627         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7628         larl operands.
7629
7630 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7631
7632         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7633         the argument in calls to fold_truth_not_expr.
7634
7635 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7636
7637         * tree.c (record_node_allocation_statistics): New function.
7638         (make_node_stat, copy_node_stat, build_string): Call it.
7639         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7640         (build1_stat, build_omp_clause): Likewise.
7641
7642 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7643
7644         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7645         last commit.
7646
7647 2011-03-24  Richard Guenther  <rguenther@suse.de>
7648
7649         PR tree-optimization/48271
7650         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7651         blocks that still exist.
7652
7653 2011-03-24  Richard Guenther  <rguenther@suse.de>
7654
7655         PR tree-optimization/48270
7656         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7657         not free datarefs before ddrs.
7658
7659 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7660
7661         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7662         from the address built for a reference with variable offset.
7663
7664 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7665
7666         PR target/48237
7667         * config/i386/i386.md (*movdf_internal_rex64): Do not split
7668         alternatives that can be handled with movq or movabsq insn.
7669         (*movdf_internal): Disable for !TARGET_64BIT.
7670         (*movdf_internal_nointeger): Ditto.
7671         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7672
7673 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7674
7675         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7676         (FUNCTION_ARG_ADVANCE): Likewise.
7677         * tm.texi.in: Change references to them to hook references.
7678         * tm.texi: Regenerate.
7679         * targhooks.c (default_function_arg): Eliminate check for target macro.
7680         (default_function_incoming_arg): Likewise.
7681         (default_function_arg_advance): Likewise.
7682         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7683         (function_arg_advance): Likewise.
7684         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7685
7686 2011-03-24  Richard Guenther  <rguenther@suse.de>
7687
7688         PR middle-end/48269
7689         * tree-object-size.c (addr_object_size): Do not double-account
7690         for MEM_REF offsets.
7691
7692 2011-03-24  Diego Novillo  <dnovillo@google.com>
7693
7694         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7695         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7696         (lto_input_data_block): Move from lto-opts.c.  Make extern.
7697         Update all users.
7698         (lto_input_string): Rename from input_string.  Make extern.
7699         Update all users.
7700         * lto-streamer-out.c (lto_output_string_with_length): Rename from
7701         output_string_with_length.
7702         Output 0 to indicate a non-NULL string.  Update all callers to
7703         not emit 0.
7704         (lto_output_string): Rename from output_string.  Make extern.
7705         Update all users.
7706         (lto_output_decl_state_streams): Make extern.
7707         (lto_output_decl_state_refs): Make extern.
7708         * lto-streamer.h (lto_input_string): Declare.
7709         (lto_input_data_block): Declare.
7710         (lto_output_string): Declare.
7711         (lto_output_string_with_length): Declare.
7712         (lto_output_decl_state_streams): Declare.
7713         (lto_output_decl_state_refs): Declare.
7714
7715 2011-03-24  Richard Guenther  <rguenther@suse.de>
7716
7717         PR tree-optimization/46562
7718         * tree.c (build_invariant_address): New function.
7719         * tree.h (build_invariant_address): Declare.
7720         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7721         a renamed function moved ...
7722         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7723         Take valueization callback parameter.
7724         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7725         * gimple-fold.h: New file.
7726         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7727         (ccp_fold, fold_const_aggregate_ref,
7728         fold_ctor_reference, fold_nonarray_ctor_reference,
7729         fold_array_ctor_reference, fold_string_cst_ctor_reference,
7730         get_base_constructor): Move ...
7731         * gimple-fold.c: ... here.
7732         (gimple_fold_stmt_to_constant_1): New function
7733         split out from ccp_fold.  Take a valueization callback parameter.
7734         Valueize all operands.
7735         (gimple_fold_stmt_to_constant): New wrapper function.
7736         (fold_const_aggregate_ref_1): New function split out from
7737         fold_const_aggregate_ref.  Take a valueization callback parameter.
7738         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7739         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7740         invariant POINTER_PLUS_EXPRs to invariant form.
7741         (vn_valueize): New function.
7742         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7743         * tree-vrp.c (vrp_valueize): New function.
7744         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7745         to fold statements to constants.
7746         * tree-ssa-pre.c (eliminate): Properly guard propagation of
7747         function declarations.
7748         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7749         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7750
7751 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7752
7753         * config/h8300/predicates.md (jump_address_operand): Fix register
7754         mode check.
7755
7756 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
7757
7758         * doc/invoke.texi (max-stores-to-sink): Document.
7759         * params.h (MAX_STORES_TO_SINK): Define.
7760         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7761         if either vectorization or if-conversion is disabled.
7762         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7763         tree-vect-data-refs.c vect_equal_offsets.
7764         (dr_equal_offsets_p): New function.
7765         (find_data_references_in_bb): Remove static.
7766         * tree-data-ref.h (find_data_references_in_bb): Declare.
7767         (dr_equal_offsets_p): Likewise.
7768         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7769         (vect_drs_dependent_in_basic_block): Update calls to
7770         vect_equal_offsets.
7771         (vect_check_interleaving): Likewise.
7772         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7773         (cond_if_else_store_replacement): Rename to...
7774         (cond_if_else_store_replacement_1): ... this.  Change arguments and
7775         documentation.
7776         (cond_if_else_store_replacement): New function.
7777         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7778         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7779
7780 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
7781
7782         PR target/46934
7783         * config/arm/arm.md (casesi): Use the gen_int_mode() function
7784         to subtract lower bound instead of GEN_INT().
7785
7786 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
7787
7788         PR other/48179
7789         PR other/48221
7790         PR other/48234
7791         * doc/extend.texi (Alignment): Move section to match order in TOC.
7792         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7793         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7794
7795 2011-03-23  Jeff Law  <law@redhat.com>
7796
7797         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7798         before removing the edge.
7799
7800         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7801         it may have been freed by redirect_branch_edge or
7802         redirect_edge_succ_nodup.
7803
7804 2011-03-23  Richard Guenther  <rguenther@suse.de>
7805
7806         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7807         (check_va_list_escapes): Likewise.
7808         (check_all_va_list_escapes): Likewise.
7809
7810 2011-03-23  Richard Guenther  <rguenther@suse.de>
7811
7812         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7813         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7814         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7815         (alias.o): Likewise.
7816         (ipa-type-escape.o): Remove.
7817         (ipa-struct-reorg.o): Likewise.
7818         (GTFILES): Remove ipa-struct-reorg.c.
7819         * alias.c: Do not include ipa-type-escape.h.
7820         * tree-ssa-alias.c: Likewise.
7821         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7822         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7823         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7824         and ipa-type-escape passes.
7825         * tree-pass.h (pass_ipa_type_escape): Remove.
7826         (pass_ipa_struct_reorg): Likewise.
7827         * ipa-struct-reorg.h: Remove.
7828         * ipa-struct-reorg.c: Likewise.
7829         * ipa-type-escape.h: Likewise.
7830         * ipa-type-escape.c: Likewise.
7831         * doc/invoke.texi (-fipa-struct-reorg): Remove.
7832         (--param struct-reorg-cold-struct-ratio): Likewise.
7833         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7834         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7835         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7836
7837 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7838
7839         * config/s390/2084.md: Enable all insn reservations also for z9_ec
7840         cpu attribute value.
7841         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7842         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7843         * config/s390/s390.c (processor_flags_table): New constant array.
7844         (s390_handle_arch_option): Remove.
7845         (s390_handle_option): Remove s390_handle_arch_option invocations
7846         and OPT_mwarn_framesize_ handling.
7847         (s390_option_override): Remove s390_handle_arch_option invocation.
7848         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7849         warnings.
7850         * config/s390/s390.md (cpu attribute): Add z9_ec value.
7851         * config/s390/s390.opt (s390_tune, s390_arch)
7852         (march=): Replace s390_arch_option enum and values with
7853         processor_type.  Set variable name to s390_arch.  Set
7854         initialization value.
7855         (mtune=): Replace s390_arch_option with processor_type.  Set
7856         variable name to s390_tune.  Set initialization value.
7857
7858 2011-03-23  Julian Brown  <julian@codesourcery.com>
7859
7860         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7861         accesses which are not naturally aligned.
7862
7863 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7864
7865         PR target/47553
7866         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7867
7868 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7869
7870         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7871         parameter from "int" to "enum insn_code".
7872         (expand_operand_type): New enum.
7873         (expand_operand): New structure.
7874         (create_expand_operand): New function.
7875         (create_fixed_operand, create_output_operand): Likewise
7876         (create_input_operand, create_convert_operand_to): Likewise.
7877         (create_convert_operand_from, create_address_operand): Likewise.
7878         (create_integer_operand): Likewise.
7879         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7880         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7881         (expand_insn, expand_jump_insn): Likewise.
7882         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7883         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7884         (expand_movstr, expand_builtin___clear_cache): Likewise.
7885         (expand_builtin_lock_release): Likewise.
7886         * explow.c (allocate_dynamic_stack_space): Likewise.
7887         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
7888         and use the default handling in that case.
7889         * expmed.c (check_predicate_volatile_ok): Delete.
7890         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7891         (emit_cstore): Likewise.
7892         * expr.c (emit_block_move_via_movmem): Likewise.
7893         (set_storage_via_setmem, expand_assignment): Likewise.
7894         (emit_storent_insn, try_casesi): Likewise.
7895         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
7896         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7897         (expand_vec_shift_expr, expand_binop_directly): Likewise.
7898         (expand_twoval_unop, expand_twoval_binop): Likewise.
7899         (expand_unop_direct, emit_indirect_jump): Likewise.
7900         (emit_conditional_move, vector_compare_rtx): Likewise.
7901         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7902         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7903         (expand_sync_lock_test_and_set): Likewise.
7904         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
7905         (emit_unop_insn): Likewise.
7906         (expand_copysign_absneg): Change icode to an insn_code.
7907         (create_convert_operand_from_type): New function.
7908         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7909         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7910         (expand_insn, expand_jump_insn): Likewise.
7911         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7912         than const_int_operand for operand 2.
7913
7914 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7915
7916         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7917         if possible.
7918
7919 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7920
7921         * emit-rtl.c (emit_pattern_before_noloc): New function.
7922         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7923         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7924         (emit_pattern_after_noloc): New function.
7925         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7926         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7927
7928 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7929
7930         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7931         (__ffsDI2): Likewise.
7932
7933 2011-03-22  Richard Henderson  <rth@redhat.com>
7934
7935         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7936         of !TARGET_ABI_OPEN_VMS.
7937         (alpha_trampoline_init, alpha_start_function): Likewise.
7938         (alpha_expand_epilogue, alpha_file_start): Likewise.
7939         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7940         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7941         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7942         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7943         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7944
7945 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7946
7947         * config/s390/s390-opts.h: New.
7948         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7949         s390_arch_flags, s390_warn_framesize, s390_stack_size,
7950         s390_stack_guard): Remove.
7951         (s390_handle_arch_option): Return void.  Take enum
7952         s390_arch_option value instead of string and searching array.
7953         (s390_handle_option): Don't assert that global structures are in
7954         use.  Access variables via opts pointer.  Use error_at.  Don't use
7955         sscanf for -mstack-guard= or -mstack-size=.  Update call to
7956         s390_handle_arch_option.
7957         (s390_option_override): Update call to s390_handle_arch_option.
7958         (s390_emit_prologue): Use %d format for s390_stack_size in
7959         diagnostic.  Use %wd for HOST_WIDE_INT.
7960         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7961         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7962         * config/s390/s390.opt (config/s390/s390-opts.h): New
7963         HeaderInclude entry.
7964         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7965         s390_arch_flags, s390_warn_framesize): New Variable entries.
7966         (s390_arch_option): New Enum and EnumValue entries.
7967         (march=): Use Enum instead of Var.
7968         (mstack-guard=, mstack-size=): Use UInteger and Var.
7969         (mtune=): Use Enum.
7970
7971 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7972
7973         * config/score/score.c (score_handle_option): Don't assert that
7974         global structures are in use.  Access target_flags via opts
7975         pointer.  Use value of -march= option to determine target_flags
7976         settings.
7977         * config/score/score.opt (march=): Use Enum.
7978         (score_arch): New Enum and EnumValue entries.
7979
7980 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7981
7982         * config/mep/mep.c (option_mtiny_specified): Remove.
7983         (mep_option_override): Move register handling for -mivc2 from
7984         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
7985         instead of option_mtiny_specified.
7986         (mep_handle_option): Access target_flags via opts pointer.  Don't
7987         assert that global structures are in use.  Defer part of -mivc2
7988         handling and move it to mep_option_override.
7989         * config/mep/mep.opt (IVC2): New Mask entry.
7990         (mivc2): Use Var and Defer instead of Mask.
7991
7992 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7993
7994         * config/v850/v850-opts.h: New.
7995         * config/v850/v850.c (small_memory): Replace with
7996         small_memory_physical_max array.  Make that array static const.
7997         (v850_handle_memory_option): Take integer value of argument.  Take
7998         gcc_options pointer, option text and location.  Return void.
7999         Update for changes to small memory structures.
8000         (v850_handle_option): Access target_flags via opts pointer.  Don't
8001         assert that global structures are in use.  Update calls to
8002         v850_handle_memory_option.
8003         (v850_encode_data_area): Update references to small memory settings.
8004         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8005         (enum small_memory_type): Move to v850-opts.h.
8006         * config/v850/v850.opt (config/v850/v850-opts.h): New
8007         HeaderInclude entry.
8008         (small_memory_max): New Variable entry.
8009         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8010         (mtda, mzda): Likewise.
8011
8012 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8013
8014         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8015         pointer.  Don't assert that global structures are in use.
8016
8017 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8018
8019         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8020         via opts pointer.  Don't assert that global structures are in use.
8021
8022 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8023
8024         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8025         (munix=93): Use Var.
8026         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8027         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8028         * config/pa/pa-opts.h: New.
8029         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8030         (pa_handle_option): Don't assert that global structures are in
8031         use.  Access target_flags via opts pointer.  Don't handle
8032         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8033         OPT_munix_98 here.
8034         (pa_option_override): Handle deferred OPT_mfixed_range_.
8035
8036 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8037
8038         * config/mn10300/mn10300-opts.h: New.
8039         * config/mn10300/mn10300.c (mn10300_processor,
8040         mn10300_tune_string): Remove.
8041         (mn10300_handle_option): Don't assert that global structures are
8042         in use.  Access mn10300_processor via opts pointer.  Don't handle
8043         OPT_mtune_ here.
8044         * config/mn10300/mn10300.h (enum processor_type): Move to
8045         mn10300-opts.h.
8046         (mn10300_processor): Remove.
8047         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8048         HeaderInclude entry.
8049         (mn10300_processor): New Variable entry.
8050         (mtune=): Use Var.
8051
8052 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8053
8054         * config/microblaze/microblaze.c: Don't include opts.h.
8055         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8056         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8057         (mno-clearbss): Use Var and Warn.
8058
8059 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8060
8061         * config/m32r/m32r-opts.h: New.
8062         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8063         (m32r_handle_option): Don't assert that global structures are in
8064         use.  Access target_flags and m32r_cache_flush_func via opts
8065         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8066         OPT_mno_flush_trap here.
8067         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8068         include of m32r-opts.h.
8069         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8070         HeaderInclude entry.
8071         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8072         (mmodel=): Use Enum and Var.
8073         (m32r_model): New Enum and EnumValue entries.
8074         (mno-flush-trap): Use Var.
8075         (msdata=): Use Enum and Var.
8076         (m32r_sdata): New Enum and EnumValue entries.
8077
8078 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8079
8080         * config/m32c/m32c.c: Don't include opts.h.
8081         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8082         m32c_handle_option): Remove.
8083         (m32c_option_override): Check global_options_set.x_target_memregs
8084         instead of target_memregs_set.
8085         * config/m32c/m32c.h (target_memregs): Remove.
8086         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8087         variable.
8088
8089 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8090
8091         * config/iq2000/iq2000-opts.h: New.
8092         * config/iq2000/iq2000.c: Don't include opts.h.
8093         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8094         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8095         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8096         HeaderInclude entry.
8097         (iq2000_tune): New Variable entry.
8098         (march=): Add comment.  Use Enum.
8099         (iq2000_arch): New Enum and EnumValue entries.
8100         (mcpu=): Use Enum and Var.
8101         (iq2000_tune): New Enum and EnumValue entries.
8102
8103 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8104
8105         * config/ia64/ia64-opts.h: New.
8106         * config/ia64/ia64.c (ia64_tune): Remove.
8107         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8108         here.  Use error_at.
8109         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8110         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8111         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8112         HeaderInclude entry.
8113         (ia64_tune): New Variable entry.
8114         (mfixed-range=): Use Defer and Var.
8115         (mtune=): Use Enum and Var.
8116         (ia64_tune): New Enum and EnumValue entries.
8117
8118 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8119
8120         * config/frv/frv-opts.h: New.
8121         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8122         frv-opts.h.
8123         (frv_cpu_type): Remove.
8124         * config/frv/frv.c: Don't include opts.h.
8125         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8126         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8127         (frv_cpu_type): New Variable entry.
8128         (frv_cpu): New Enum and EnumValue entries.
8129
8130 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8131
8132         * config/cris/cris.c (cris_handle_option): Access target_flags via
8133         opts pointer.  Don't assert that global structures are in use.
8134         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8135         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8136
8137 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8138
8139         * config/bfin/bfin-opts.h: New.
8140         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8141         bfin_si_revision, bfin_workarounds): Remove.
8142         (bfin_cpus): Make static const.
8143         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8144         not bfin_lib_id_given.
8145         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8146         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8147         pointer. Use error_at.  Don't assert that global structures are in use.
8148         * config/bfin/bfin.h: Include bfin-opts.h.
8149         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8150         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8151         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8152         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8153         entries.
8154
8155 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8156
8157         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8158         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8159         or -msoft-float here.
8160         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8161         -msoft-float and -mhard-float.
8162         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8163         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8164         msoft-float.
8165         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8166         -msoft-float.
8167         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8168         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8169         not mhard-float.
8170         (LIBGCC_SPEC): Don't handle -msoft-float.
8171         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8172         -mhard-float.
8173         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8174         msoft-float.
8175         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8176         -mfloat-abi=*, not -msoft-float and -mhard-float.
8177         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8178         -msoft-float.
8179         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8180         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8181         mhard-float and msoft-float.
8182         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8183         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8184         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8185         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8186         mhard-float.
8187         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8188         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8189         msoft-float.
8190         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8191         not mhard-float.
8192         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8193         not msoft-float.
8194
8195 2011-03-22  Richard Henderson  <rth@redhat.com>
8196
8197         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8198         TARGET_ABI_WINDOWS_NT.
8199         (alpha_output_function_end_prologue): Likewise.
8200         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8201         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8202         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8203         (trap, *movsi_nt_vms): Likewise.
8204         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8205         (*tablejump_osf_nt_internal): Remove.
8206         * config/alpha/predicates.md (input_operand): Only test Pmode.
8207
8208 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8209
8210         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8211         via opts pointer.  Use error_at.  Don't assert that global
8212         structures are in use.
8213
8214 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8215
8216         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8217         (ix86_handle_option): Access ix86_isa_flags and
8218         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8219         global structures are in use.
8220         (ix86_function_specific_save, ix86_function_specific_restore):
8221         Update ix86_isa_flags_explicit field name.
8222         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8223         (ix86_isa_flags_explicit): Rename TargetSave entry to
8224         x_ix86_isa_flags_explicit.
8225
8226 2011-03-22  Richard Henderson  <rth@redhat.com>
8227
8228         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8229         (alpha_option_override, direct_return): Likewise.
8230         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8231         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8232         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8233         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8234         (alpha_expand_epilogue, alpha_end_function): Likewise.
8235         (alpha_init_libfuncs): Likewise.
8236         (struct machine_function): Remove unicosmk members.
8237         (print_operand) ['t']: Remove.
8238         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8239         unicosmk_output_module_name, unicosmk_output_common,
8240         current_section_align, unicosmk_output_text_section_asm_op,
8241         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8242         unicosmk_section_type_flags, unicosmk_unique_section,
8243         unicosmk_asm_named_section, unicosmk_insert_attributes,
8244         unicosmk_output_align, unicosmk_defer_case_vector,
8245         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8246         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8247         unicosmk_output_ssib, unicosmk_add_call_info_word,
8248         unicosmk_extern_head, unicosmk_output_default_externs,
8249         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8250         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8251         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8252         * config/alpha/alpha-protos.h: Update.
8253         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8254         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8255         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8256         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8257         (*mulsi_se, mulvsi3): Likewise.
8258         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8259         (*divmodsi_internal, call, call_value, realign): Likewise.
8260         (moddi3, umoddi3): Likewise; remove duplicate expander.
8261         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8262         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8263         (*movdi_nofix): Remove r/U alternative.
8264         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8265         * config/alpha/constraints.md ("U"): Remove.
8266         * config/alpha/predicates.md (call_operand"): Don't test
8267         TARGET_ABI_UNICOSMK.
8268
8269 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8270
8271         * target.def (handle_option): Take gcc_options and
8272         cl_decoded_option pointers and location_t.
8273         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8274         * doc/tm.texi: Regenerate.
8275         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8276         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8277         * lto-opts.c (lto_reissue_options): Generate option structure for
8278         targetm.handle_option call.
8279         * opts.c (target_handle_option): Update call to
8280         targetm.handle_option.  Remove assertions about values now passed
8281         down to hook.
8282         * targhooks.c (default_target_handle_option): New.
8283         * targhooks.h (default_target_handle_option): Declare.
8284         * config/alpha/alpha.c: Include opts.h.
8285         (alpha_handle_option): Update to new hook interface.
8286         * config/arm/arm.c: Include opts.h.
8287         (arm_handle_option): Update to new hook interface.
8288         * config/arm/t-arm (arm.o): Update dependencies.
8289         * config/bfin/bfin.c: Include opts.h.
8290         (bfin_handle_option): Update to new hook interface.
8291         * config/cris/cris.c: Include opts.h.
8292         (cris_handle_option): Update to new hook interface.
8293         * config/frv/frv.c: Include opts.h.
8294         (frv_handle_option): Update to new hook interface.
8295         * config/i386/i386.c: Include opts.h.
8296         (ix86_handle_option): Update to new hook interface.
8297         (ix86_valid_target_attribute_inner_p): Generate option structure
8298         for call to ix86_handle_option.
8299         * config/i386/t-i386 (i386.o): Update dependencies.
8300         * config/ia64/ia64.c: Include opts.h.
8301         (ia64_handle_option): Update to new hook interface.
8302         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8303         * config/iq2000/iq2000.c: Include opts.h.
8304         (iq2000_handle_option): Update to new hook interface.
8305         * config/m32c/m32c.c: Include opts.h.
8306         (m32c_handle_option): Update to new hook interface.
8307         * config/m32r/m32r.c: Include opts.h.
8308         (m32r_handle_option): Update to new hook interface.
8309         * config/m68k/m68k.c: Include opts.h.
8310         (m68k_handle_option): Update to new hook interface.
8311         * config/mep/mep.c: Include opts.h.
8312         (mep_handle_option): Update to new hook interface.
8313         * config/microblaze/microblaze.c: Include opts.h.
8314         (microblaze_handle_option): Update to new hook interface.
8315         * config/mips/mips.c: Include opts.h.
8316         (mips_handle_option): Update to new hook interface.
8317         * config/mn10300/mn10300.c: Include opts.h.
8318         (mn10300_handle_option): Update to new hook interface.
8319         * config/pa/pa.c: Include opts.h.
8320         (pa_handle_option): Update to new hook interface.
8321         * config/pdp11/pdp11.c: Include opts.h.
8322         (pdp11_handle_option): Update to new hook interface.
8323         * config/rs6000/rs6000.c: Include opts.h.
8324         (rs6000_handle_option): Update to new hook interface.
8325         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8326         * config/rx/rx.c: Include opts.h.
8327         (rx_handle_option): Update to new hook interface.
8328         * config/s390/s390.c: Include opts.h.
8329         (s390_handle_option): Update to new hook interface.
8330         * config/score/score.c: Include opts.h.
8331         (score_handle_option): Update to new hook interface.
8332         * config/sh/sh.c: Include opts.h.
8333         (sh_handle_option): Update to new hook interface.
8334         * config/sparc/sparc.c: Include opts.h.
8335         (sparc_handle_option): Update to new hook interface.
8336         * config/v850/v850.c: Include opts.h.
8337         (v850_handle_option): Update to new hook interface.
8338
8339 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8340
8341         * gcc.c (driver_unknown_option_callback): Only permit and save
8342         unknown -Wno- options.
8343         (driver_wrong_lang_callback): Save options directly instead of via
8344         driver_unknown_option_callback.
8345
8346 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8347
8348         * combine.c (simplify_set): Try harder to find the best CC mode when
8349         simplifying a nested COMPARE on the RHS.
8350
8351 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8352
8353         * config/alpha/gnu.h: Remove.
8354         * config/arc: Remove directory.
8355         * config/arm/netbsd.h: Remove.
8356         * config/arm/t-pe: Remove.
8357         * config/crx: Remove directory.
8358         * config/i386/netbsd.h: Remove.
8359         * config/m68hc11: Remove directory.
8360         * config/m68k/uclinux-oldabi.h: Remove.
8361         * config/mcore/mcore-pe.h: Remove.
8362         * config/mcore/t-mcore-pe: Remove.
8363         * config/netbsd-aout.h: Remove.
8364         * config/rs6000/gnu.h: Remove.
8365         * config/sh/sh-symbian.h: Remove.
8366         * config/sh/symbian-base.c: Remove.
8367         * config/sh/symbian-c.c: Remove.
8368         * config/sh/symbian-cxx.c: Remove.
8369         * config/sh/symbian-post.h: Remove.
8370         * config/sh/symbian-pre.h: Remove.
8371         * config/sh/t-symbian: Remove.
8372         * config/svr3.h: Remove.
8373         * config/vax/netbsd.h: Remove.
8374         * config.build: Don't handle i[34567]86-*-pe.
8375         * config.gcc: Remove handling of deprecations for most deprecated
8376         targets.
8377         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8378         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8379         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8380         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8381         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8382         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8383         Remove cases.
8384         * config.host: Don't handle i[34567]86-*-pe.
8385         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8386         (ASM_SPEC32): Don't handle -mcall-gnu.
8387         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8388         -mcall-gnu.
8389         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8390         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8391         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8392         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8393         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8394         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8395         conditional on SYMBIAN.
8396         * configure.ac: Don't handle powerpc*-*-gnu*.
8397         * configure: Regenerate.
8398         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8399         * doc/install-old.texi (m6811, m6812): Don't mention.
8400         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8401         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8402         (m68k-uclinuxoldabi): Don't mention.
8403         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8404         Remove.
8405         (-mcall-gnu): Remove.
8406         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8407         families): Remove constraint documentation.
8408
8409 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8410
8411         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8412         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8413         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8414
8415 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8416
8417         PR target/48226
8418         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8419         vector when peeking at the next token for vector, don't expand the
8420         keywords.
8421
8422 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8423
8424         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8425         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8426         * config/avr/avr.c (init_cumulative_args)
8427         (avr_function_arg_advance): Use it.
8428         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8429         sibcall epilogues.
8430         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8431         (avr_function_ok_for_sibcall): ...this new function.
8432         (avr_lookup_function_attribute1): New static Function.
8433         (avr_naked_function_p, interrupt_function_p)
8434         (signal_function_p, avr_OS_task_function_p)
8435         (avr_OS_main_function_p): Use it.
8436         * config/avr/avr.md ("sibcall", "sibcall_value")
8437         ("sibcall_epilogue"): New expander.
8438         ("*call_insn", "*call_value_insn"): New insn.
8439         ("call_insn", "call_value_insn"): Remove
8440         ("call", "call_value", "epilogue"): Change expander to handle
8441         sibling calls.
8442
8443 2011-03-21  Nick Clifton  <nickc@redhat.com>
8444
8445         * doc/invoke.texi (Overall Options): Move closing brace to end of
8446         options list.
8447         (Optimization Options): Add missing @gol.
8448         (Directory Options): Likewise.
8449         (i386 and x86-64 Options): Likewise.
8450         (RS6000 and PowerPC Options): Likewise.
8451         (i386 and x86-64 Windows Options): Likewise.
8452         (V850 Options): Add text missing from descriptions.
8453
8454 2011-03-22  Richard Henderson  <rth@redhat.com>
8455
8456         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8457         (avr_incoming_return_addr_rtx): New.
8458         (emit_push_byte): New.
8459         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8460         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8461         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8462         (emit_pop_byte): New.
8463         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8464         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8465         (INCOMING_RETURN_ADDR_RTX): New.
8466         (INCOMING_FRAME_SP_OFFSET): New.
8467         (ARG_POINTER_CFA_OFFSET): New.
8468         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8469         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8470         (pophi): Remove.
8471
8472         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8473
8474 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8475
8476         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8477         (FUNCTION_ARG_ADVANCE): Likewise.
8478         * tm.texi.in: Change references to them to hook references.
8479         * tm.texi: Regenerate.
8480         * targhooks.c (default_function_arg): Eliminate check for target
8481         macro.
8482         (default_function_incoming_arg): Likewise.
8483         (default_function_arg_advance): Likewise.
8484         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8485         (function_arg_advance): Likewise.
8486         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8487
8488 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8489
8490         * tree.c (build_call_1): New function.
8491         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8492
8493 2011-03-22  Richard Guenther  <rguenther@suse.de>
8494
8495         PR tree-optimization/48228
8496         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8497         for single-arg PHIs.
8498
8499 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8500
8501         PR rtl-optimization/48143
8502         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8503         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8504         sse2_cvtps2pd): Likewise.
8505
8506 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8507
8508         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8509
8510 2011-03-22  Richard Guenther  <rguenther@suse.de>
8511
8512         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8513         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8514         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8515         and REALIGN_LOAD_EXPR.
8516         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8517         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8518         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8519         DOT_PROD_EXPR case ...
8520         (expand_expr_real_2): ... here.
8521         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8522         and REALIGN_LOAD_EXPR.
8523         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8524         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8525         (vect_create_epilog_for_reduction): Likewise.
8526         (vectorizable_reduction): Likewise.
8527         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8528         * tree-vect-stmts.c (vectorizable_load): Likewise.
8529
8530 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8531
8532         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8533
8534 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8535
8536         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8537         handling for PLTOFF/GOTOFF.
8538
8539 2011-03-22  Nick Clifton  <nickc@redhat.com>
8540
8541         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8542         trailing backslash from the end of the macro definition.
8543
8544 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8545
8546         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8547         and PLT unspecs.
8548
8549 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8550
8551         * expr.h (prepare_operand): Move to...
8552         * optabs.h (prepare_operand): ...here and change the insn code
8553         parameter from "int" to "enum insn_code".
8554         (insn_operand_matches): Declare.
8555         * expr.c (init_expr_target): Use insn_operand_matches.
8556         (compress_float_constant): Likewise.
8557         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8558         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8559         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8560         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8561         Likewise.
8562         (gen_cond_trap): Likewise.
8563         (prepare_operand): Likewise.  Change icode to an insn_code.
8564         (insn_operand_matches): New function.
8565         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8566         * reload1.c (gen_reload): Likewise.
8567         * targhooks.c (default_secondary_reload): Likewise.
8568
8569 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8570
8571         * config/alpha/alpha.md (unspec): New define_c_enum.
8572         (unspecv): Ditto.
8573
8574 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8575
8576         PR debug/48214
8577         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8578         between a call and its CALL_ARG_LOCATION note.
8579
8580 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8581
8582         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8583
8584 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8585
8586         PR c/42544
8587         PR c/48197
8588         * c-common.c (shorten_compare): If primopN is first sign-extended
8589         to opN and then zero-extended to result type, set primopN to opN.
8590
8591 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8592
8593         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8594         for barrier handlers.
8595
8596 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8597
8598         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8599         UNSPEC constants to be in the unspec enumeration, and redefine
8600         all UNSPECV constants to be in the unspecv enumeration, so that
8601         dumps print which unspec/unspec_volatile this is.
8602         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8603         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8604         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8605         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8606         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8607
8608         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8609         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8610         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8611         * config/rs6000/sync.md (isync, lwsync): Ditto.
8612
8613 2011-03-21  Richard Guenther  <rguenther@suse.de>
8614
8615         * params.def (lto-min-partition): Fix typo.
8616
8617 2011-03-21  Richard Guenther  <rguenther@suse.de>
8618
8619         PR c/47939
8620         * c-decl.c (grokdeclarator): Drop to the main variant only
8621         for array types.  Drop flag_gen_aux_info check.
8622
8623 2011-03-21  Richard Guenther  <rguenther@suse.de>
8624
8625         PR translation/47911
8626         * params.def (lto-partitions): Fix typo.
8627         (lto-min-partition): Fix wording.
8628
8629 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
8630
8631         * config/rs6000/t-freebsd: Remove duplication from file.
8632
8633 2011-03-21  Richard Guenther  <rguenther@suse.de>
8634
8635         PR middle-end/47661
8636         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8637
8638 2011-03-21  Richard Guenther  <rguenther@suse.de>
8639
8640         PR lto/48210
8641         * params.def (lto-partitions): Require at least 1 partition.
8642
8643 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8644
8645         * gthr-solaris.h: Remove.
8646         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8647         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8648         (LIB_SPEC): Likewise.
8649         * config/sol2.opt (threads): Remove.
8650         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8651         (sparc*-*-solaris2*): Likewise.
8652         * configure.ac (enable_threads): Enable solaris support.
8653         * configure: Regenerate.
8654         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8655         * doc/install.texi (Configuration, --enable-threads=lib): Remove
8656         solaris.
8657
8658 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8659
8660         * config.gcc: Obsolete *-*-solaris2.8*.
8661         * doc/install.texi (Specific, *-*-solaris2*): Document it.
8662
8663 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8664
8665         PR bootstrap/48135
8666         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8667         reference.  Solaris 8 perl works.
8668
8669 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8670
8671         PR bootstrap/48135
8672         * doc/install.texi (Prerequisites): Move jar etc. up.
8673         Explain support library version requirements.
8674
8675 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8676
8677         PR bootstrap/48135
8678         * doc/install.texi (Prerequisites): Move Perl to build
8679         requirements.  Always necessary on Solaris 2 with Sun ld.
8680
8681 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8682
8683         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8684         binutils 2.21.
8685         (Specific, i?86-*-solaris2.[89]): Likewise.
8686         (Specific, i?86-*-solaris2.10): Likewise.
8687         (Specific, mips-sgi-irix6): Likewise.
8688         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8689         Update for binutils 2.21.
8690
8691 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8692
8693         * configure.ac (gcc_cv_lto_plugin): Fix typo.
8694         Allow -fuse-linker-plugin for non-default plugin linker.
8695         * configure: Regenerate.
8696
8697 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8698
8699         PR bootstrap/48167
8700         * gengtype.c (files_rules): Added rule for cp/parser.h.
8701
8702 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8703
8704         PR target/48213
8705         * config/s390/s390.c (s390_delegitimize_address): Don't call
8706         lowpart_subreg if orig_x has BLKmode.
8707
8708 2011-03-21  Kai Tietz  <ktietz@redhat.com>
8709
8710         PR target/12171
8711         * doc/plugins.texi: Adjust documentation for plugin register_callback.
8712         * tree.h (attribute_spec): Add new member affects_type_identity.
8713         * attribs.c (empty_attribute_table): Adjust attribute_spec
8714         initializers.
8715         * config/alpha/alpha.c: Likewise.
8716         * config/arc/arc.c: Likewise.
8717         * config/arm/arm.c: Likewise.
8718         * config/avr/avr.c: Likewise.
8719         * config/bfin/bfin.c: Likewise.
8720         * config/crx/crx.c: Likewise.
8721         * config/darwin.h: Likewise.
8722         * config/h8300/h8300.c: Likewise.
8723         * config/i386/cygming.h: Likewise.
8724         * config/i386/i386.c: Likewise.
8725         * config/ia64/ia64.c: Likewise.
8726         * config/m32c/m32c.c: Likewise.
8727         * config/m32r/m32r.c: Likewise.
8728         * config/m68hc11/m68hc11.c: Likewise.
8729         * config/m68k/m68k.c: Likewise.
8730         * config/mcore/mcore.c: Likewise.
8731         * config/mep/mep.c: Likewise.
8732         * config/microblaze/microblaze.c: Likewise.
8733         * config/mips/mips.c: Likewise.
8734         * config/rs6000/rs6000.c: Likewise.
8735         * config/rx/rx.c: Likewise.
8736         * config/sh/sh.c: Likewise.
8737         * config/sol2.h: Likewise.
8738         * config/sparc/sparc.c: Likewise.
8739         * config/spu/spu.c: Likewise.
8740         * config/stormy16/stormy16.c: Likewise.
8741         * config/v850/v850.c: Likewise.
8742
8743 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
8744
8745         * simplify-rtx.c (simplify_binary_operation_1): Handle
8746         (xor (and A B) C) case when B and C are both constants.
8747
8748 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
8749
8750         * tree-dfa.c (add_referenced_var): Fix typo in comment.
8751
8752 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
8753
8754         PR bootstrap/48168
8755         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8756
8757 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
8758
8759         PR rtl-optimization/48156
8760         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8761         assume df and df_lr are not NULL.
8762
8763 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8764
8765         PR debug/48023
8766         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8767         between a call and its CALL_ARG_LOCATION note.
8768
8769 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8770
8771         PR debug/48178
8772         * config/sh/sh.c (find_barrier): Don't emit a constant pool
8773         between a call and its corresponding CALL_ARG_LOCATION note.
8774
8775 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
8776
8777         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8778         instead of loop. Use HARD_REGISTER_NUM_P predicate.
8779         * haifa-sched.c (setup_ref_regs): Ditto.
8780         * caller-save.c (add_used_regs_1): Ditto.
8781         * dse.c (look_for_hardregs): Ditto.
8782         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8783         * sched-rgn.c (check_live_1): Ditto.
8784
8785 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8786
8787         * c-decl.c (diagnose_mismatched_decls): Give an error for
8788         redefining a typedef with variably modified type.
8789
8790 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8791
8792         * c-decl.c (grokfield): Don't allow typedefs for structures or
8793         unions with no tag by default.
8794         * doc/extend.texi (Unnamed Fields): Update.
8795
8796 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
8797
8798         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8799         Rewrite using indirect functions.
8800         (lwp_slwpcb): Ditto.
8801         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8802         (avx_vinsertf128<mode>): Ditto.
8803
8804 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8805
8806         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8807         unspecs.
8808
8809 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8810
8811         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8812         splitting between a call and its corresponding CALL_ARG_LOCATION note.
8813
8814 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8815
8816         PR rtl-optimization/48170
8817         * gcse.c (hoist_code): Remove bogus asserts.
8818
8819 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
8820
8821         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8822         computation for prologue/epilogue.
8823
8824 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8825
8826         * Makefile.in (check-consistency): Remove.
8827
8828 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
8829
8830         PR debug/48176
8831         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8832         arange_table_in_use is 0, but either text_section_used or
8833         cold_text_section_used is true.  Don't call it if
8834         !info_section_emitted.
8835
8836 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
8837
8838         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8839         FUNCTION_VALUE_REGNO_P): Remove.
8840         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8841         Remove.
8842         * config/avr/avr.c (avr_ret_register): Make static inline.
8843         (avr_function_value_regno_p): New function.
8844         (avr_libcall_value): Make static. Add 'func' argument.
8845         (avr_function_value): Make static. Rename 'func' argument to
8846         'fn_decl_or_type', forward it to avr_libcall_value. Call
8847         avr_ret_register function instead of RET_REGISTER macro.
8848         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8849
8850 2011-03-18  Jason Merrill  <jason@redhat.com>
8851
8852         PR c++/23372
8853         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8854
8855 2011-03-18  Richard Guenther  <rguenther@suse.de>
8856
8857         * doc/install.texi (--enable-gold): Remove.
8858         (--with-plugin-ld): Document.
8859         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8860
8861 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
8862
8863         PR middle-end/47790
8864         * expr.c (optimize_bitfield_assignment_op): Revamp to work
8865         again after expansion changes.
8866
8867 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
8868
8869         * combine.c (try_combine): Do simplification only call of
8870         subst() on i2 even when i1 is present. Update comments.
8871
8872 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8873
8874         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8875         and UNSPEC_PCREL_SYMOFF.
8876
8877 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8878
8879         * config/s390/s390.md: Use define_c_enum for the unspec constant
8880         definitions.
8881
8882 2011-03-18  Richard Henderson  <rth@redhat.com>
8883             Jakub Jelinek  <jakub@redhat.com>
8884
8885         PR bootstrap/48161
8886         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8887         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8888
8889 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8890
8891         PR middle-end/47725
8892         * combine.c (cant_combine_insn_p): Don't check zero/sign
8893         extended hard registers.
8894
8895 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8896
8897         PR middle-end/47725
8898         * combine.c (cant_combine_insn_p): Check zero/sign extended
8899         hard registers.
8900
8901 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
8902
8903         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8904         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8905         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8906         Change return type to bool.
8907         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8908
8909 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8910
8911         PR debug/48163
8912         * var-tracking.c (prepare_call_arguments): If CALL target
8913         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8914         pc instead of looking it up using cselib_lookup and use
8915         Pmode for it if x has VOIDmode.
8916         * dwarf2out.c (gen_subprogram_die): If also both first and
8917         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8918
8919         PR debug/48163
8920         * function.c (assign_parms): For data.passed_pointer parms
8921         use MEM of data.entry_parm instead of data.entry_parm itself
8922         as DECL_INCOMING_RTL.
8923         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8924         also when passed and declared mode is the same, DECL_RTL
8925         is a MEM with pseudo as address and DECL_INCOMING_RTL is
8926         a MEM too.
8927
8928 2011-03-16  Jeff Law  <law@redhat.com>
8929
8930         PR rtl-optimization/37273
8931         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8932         handle them like argument loads from stack slots.  Do not double
8933         count memory for memory constants and argument loads from stack slots.
8934
8935 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8936
8937         PR debug/48160
8938         * var-tracking.c (prepare_call_arguments): Check SUBREG.
8939
8940 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8941
8942         PR target/48171
8943         * config/i386/i386.opt: Add Save to -mavx and -mfma.
8944
8945 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8946
8947         PR bootstrap/48153
8948         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8949         if dwarf_strict.
8950         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8951         Clear call_arg_locations and call_arg_loc_last always.
8952
8953         PR middle-end/48152
8954         * var-tracking.c (prepare_call_arguments): If argument needs to be
8955         passed by reference, adjust argtype and mode.
8956
8957 2011-03-17  Richard Guenther  <rguenther@suse.de>
8958
8959         PR middle-end/48134
8960         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8961         a value make sure to fold the statement.
8962
8963 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
8964
8965         PR target/43872
8966         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8967         return condition with !cfun->calls_alloca.
8968
8969 2011-03-17  Richard Guenther  <rguenther@suse.de>
8970
8971         PR bootstrap/48148
8972         * lto-cgraph.c (input_overwrite_node): Clear the abstract
8973         origin for decls in other ltrans units.
8974         (input_varpool_node): Likewise.
8975
8976 2011-03-17  Richard Guenther  <rguenther@suse.de>
8977
8978         PR middle-end/48165
8979         * tree-object-size.c (compute_object_offset): Properly return
8980         the offset operand of MEM_REFs as sizetype.
8981
8982 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8983
8984         PR rtl-optimization/48141
8985         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8986         * dse.c: Include params.h.
8987         (active_local_stores_len): New variable.
8988         (add_wild_read, dse_step1): Clear it when setting active_local_stores
8989         to NULL.
8990         (record_store, check_mem_read_rtx): Decrease it when removing
8991         from the chain.
8992         (scan_insn): Likewise.  Increase it when adding to chain, if it
8993         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8994         set active_local_stores to NULL before the addition.
8995         * Makefile.in (dse.o): Depend on $(PARAMS_H).
8996
8997         PR rtl-optimization/48141
8998         * dse.c (record_store): If no positions are needed in an insn
8999         that cannot be deleted, at least unchain it from active_local_stores.
9000
9001 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9002
9003         PR debug/47510
9004         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9005         (lookup_type_die_strip_naming_typedef): ... here.
9006         (get_context_die): Use it.
9007         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9008         the anonymous struct named by the naming typedef.
9009
9010 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9011
9012         PR target/48154
9013         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9014         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9015
9016 2011-03-16  Jeff Law  <law@redhat.com>
9017
9018         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9019         check for operands of conditional.  Allow type to be a pointer.
9020
9021 2011-03-16  Richard Guenther  <rguenther@suse.de>
9022
9023         PR tree-optimization/48149
9024         * fold-const.c (fold_binary_loc): Fold
9025         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9026
9027 2011-03-16  Richard Guenther  <rguenther@suse.de>
9028
9029         PR tree-optimization/26134
9030         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9031         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9032         (non_rewritable_mem_ref_base): Handle complex type component
9033         accesses, constrain offsets for vector and complex extracts
9034         more properly.
9035
9036 2011-03-16  Richard Guenther  <rguenther@suse.de>
9037
9038         PR tree-optimization/48146
9039         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9040         operands avoiding the need for renaming.
9041
9042 2011-03-16  Richard Guenther  <rguenther@suse.de>
9043
9044         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9045         constant folding.  Move MEM_REF canonicalization first.
9046         Rely on fold_const_aggregate_ref for initializer folding.
9047         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9048
9049 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9050
9051         PR middle-end/48136
9052         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9053         arg0/arg1 or their arguments are always fold converted to matching
9054         types.
9055
9056         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9057         to nargs.
9058
9059 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9060
9061         PR lto/46944
9062         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9063         Handle in-tree gold.
9064         (ld_vers): Extract binutils version for gold.
9065         (gcc_cv_ld_hidden): Handle gold here.
9066         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9067         * configure: Regenerate.
9068         * config.in: Regenerate.
9069         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9070         -fuse-linker-plugin otherwise.
9071         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9072         (LINK_COMMAND_SPEC): Use it.
9073         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9074
9075 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9076
9077         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9078         * calls.c: Remove debug.h include.
9079         (emit_call_1): Don't call virtual_call_token debug hook.
9080         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9081         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9082         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9083         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9084         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9085         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9086         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9087         dwarf2out_virtual_call): Remove.
9088         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9089         copy_call_info and virtual_call hooks.
9090         (dwarf2out_init): Don't initialize vcall_insn_table,
9091         debug_dcall_section and debug_vcall_section.
9092         (prune_unused_types): Don't mark nodes from dcall_table.
9093         (dwarf2out_finish): Don't output dcall or vcall tables.
9094         * final.c (final_scan_insn): Don't call direct_call or
9095         virtual_call debug hooks.
9096         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9097         virtual_call_token, copy_call_info and virtual_call hooks.
9098         (debug_nothing_uid): Remove prototype.
9099         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9100         copy_call_info and virtual_call hooks.
9101         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9102         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9103         * debug.c (do_nothing_debug_hooks): Likewise.
9104         (debug_nothing_uid): Remove.
9105         * doc/invoke.texi (-fenable-icf-debug): Remove.
9106         * common.opt (-fenable-icf-debug): Likewise.
9107
9108         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9109         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9110         call's MEM.  Handle functions returning aggregate through a hidden
9111         first pointer.  For virtual calls add clobbered pc to call arguments
9112         chain.
9113         * dwarf2out.c (gen_subprogram_die): Emit
9114         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9115         can't be emitted.
9116
9117         PR debug/45882
9118         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9119         * rtl.h (ENTRY_VALUE_EXP): Define.
9120         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9121         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9122         * print-rtl.c (print_rtx): Likewise.
9123         * gengtype.c (adjust_field_rtx_def): Likewise.
9124         * var-tracking.c (vt_add_function_parameter): Adjust
9125         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9126         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9127         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9128         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9129         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9130
9131         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9132         Call var_location debug hook even on CALL_INSNs.
9133         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9134         * rtl.def (ENTRY_VALUE): New.
9135         * dwarf2out.c: Include cfglayout.h.
9136         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9137         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9138         (struct call_arg_loc_node): New type.
9139         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9140         tail_call_site_count): New variables.
9141         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9142         DW_TAG_GNU_call_site_parameter.
9143         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9144         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9145         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9146         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9147         and DW_AT_GNU_all_source_call_sites.
9148         (mem_loc_descriptor): Handle ENTRY_VALUE.
9149         (add_src_coords_attributes): Don't add enything if
9150         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9151         (dwarf2out_abstract_function): Save and clear call_arg_location,
9152         call_site_count and tail_call_site_count around dwarf2out_decl call.
9153         (gen_call_site_die): New function.
9154         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9155         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9156         (dwarf2out_function_decl): Clear call_arg_locations,
9157         call_arg_loc_last, set call_site_count and tail_call_site_count
9158         to -1 and free block_map.
9159         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9160         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9161         followed by any real instructions.
9162         (dwarf2out_begin_function): Set call_site_count and
9163         tail_call_site_count to 0.
9164         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9165         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9166         attempt to force a DIE for it and worst case remove the attribute.
9167         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9168         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9169         the decl itself.
9170         * var-tracking.c: Include tm_p.h.
9171         (vt_stack_adjustments): For calls call note_register_arguments.
9172         (argument_reg_set): New variable.
9173         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9174         ensure the VALUE is resolved.
9175         (call_arguments): New variable.
9176         (prepare_call_arguments): New function.
9177         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9178         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9179         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9180         always use the best expression.
9181         (vt_expand_loc): Add ignore_cur_loc argument.
9182         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9183         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9184         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9185         note for all calls.
9186         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9187         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9188         argument.  Don't call cselib_preserve_only_values and
9189         cselib_reset_table.
9190         (note_register_arguments): New function.
9191         (vt_initialize): Compute argument_reg_set.  Call
9192         vt_add_function_parameters before processing basic blocks instead of
9193         afterwards.  For calls call prepare_call_arguments before calling
9194         cselib_process_insn.
9195         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9196         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9197         (var-tracking.o): Depend on $(TM_P_H).
9198         * cfglayout.h (insn_scope): New prototype.
9199         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9200         * cfglayout.c (insn_scope): No longer static.
9201         * insn-notes.def (CALL_ARG_LOCATION): New.
9202         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9203         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9204         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9205         nothing for DECL_EXTERNAL BLOCK_VARS.
9206
9207 2011-03-16  Alan Modra  <amodra@gmail.com>
9208
9209         PR target/45844
9210         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9211         create invalid offset address for vsx splat insn.
9212         * config/rs6000/predicates.md (splat_input_operand): New.
9213         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9214
9215 2011-03-15  Xinliang David Li  <davidxl@google.com>
9216
9217         PR c/47837
9218         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9219         (normalize_preds): New function.
9220         (is_use_properly_guarded): Normalize def predicates.
9221
9222 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9223
9224         PR target/46788
9225         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9226         in the output template.
9227
9228 2011-03-15  Richard Guenther  <rguenther@suse.de>
9229
9230         PR middle-end/47650
9231         * tree-pretty-print.c (dump_function_declaration): Properly
9232         dump unprototyped and varargs function types.
9233
9234 2011-03-15  Richard Guenther  <rguenther@suse.de>
9235
9236         PR tree-optimization/13954
9237         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9238         and friends.
9239
9240 2011-03-15  Richard Guenther  <rguenther@suse.de>
9241
9242         PR tree-optimization/48037
9243         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9244         selects into BIT_FIELD_REFs.
9245         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9246         vector select.
9247
9248 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9249
9250         PR tree-optimization/48129
9251         * builtins.c (fold_builtin_snprintf): Convert to type of
9252         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9253         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9254
9255 2011-03-15  Richard Guenther  <rguenther@suse.de>
9256
9257         PR tree-optimization/41490
9258         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9259         value but with VUSE.
9260         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9261         return statements.
9262         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9263         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9264         * tree-tailcall.c (find_tail_calls): Ignore returns.
9265
9266 2011-03-15  Richard Guenther  <rguenther@suse.de>
9267
9268         PR middle-end/48031
9269         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9270         or variable-indexed array accesses when in gimple form.
9271
9272 2011-03-15  Richard Guenther  <rguenther@suse.de>
9273
9274         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9275
9276 2011-03-15  Alan Modra  <amodra@gmail.com>
9277
9278         PR target/48032
9279         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9280         presume symbol_refs without a symbol_ref_decl are suitably
9281         aligned, nor other trees we may see here.  Handle anchor symbols.
9282         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9283         Check cmodel=medium addresses.  Adjust all calls.
9284         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9285         creating cmodel=medium optimized access to locals.
9286         * config/rs6000/constraints.md (R): Pass QImode to
9287         legitimate_constant_pool_address_p.
9288         * config/rs6000/predicates.md (input_operand): Pass mode to
9289         legitimate_constant_pool_address_p.
9290         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9291         Update prototype.
9292
9293 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9294
9295         PR target/48053
9296         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9297         64-bit constants being loaded into registers other than GPRs such
9298         as loading 0 into a VSX register.
9299
9300 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9301
9302         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9303
9304 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9305
9306         PR middle-end/47917
9307         * builtins.c (fold_builtin_snprintf): New function.
9308         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9309         (fold_builtin_4): Likewise.
9310
9311         PR middle-end/38878
9312         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9313         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9314         and C - X == X also strip nops from +/-/p+ operand.
9315         When optimizing -X == C, fold C to arg0's type.
9316
9317         PR debug/47946
9318         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9319         emit it as add_AT_int instead of add_AT_unsigned.
9320
9321 2011-03-14  Tom Tromey  <tromey@redhat.com>
9322
9323         * unwind-dw2.c: Include sys/sdt.h if it exists.
9324         (_Unwind_DebugHook): Use STAP_PROBE2.
9325         * config.in, configure: Rebuild.
9326         * configure.ac: Check for sys/sdt.h.
9327
9328 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9329
9330         * config/i386/i386.md (ROUND_FLOOR): New constant.
9331         (ROUND_CEIL): Ditto.
9332         (ROUND_TRUNC): Ditto.
9333         (ROUND_MXCSR): Ditto.
9334         (ROUND_NO_EXC): Ditto.
9335         (rint<mode>2): Use new defines instead of numerical constants.
9336         (floor<mode>2): Ditto.
9337         (ceil<mode>2): Ditto.
9338         (btrunc<mode>2): Ditto.
9339         * config/i386/i386-builtin-types.def: Define ROUND function type
9340         aliases.
9341         * config/i386/i386.c (enum ix86_builtins): Add
9342         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9343         (struct builtin_description): Add
9344         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9345         (ix86_expand_sse_round): New static function.
9346         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9347         function types.
9348         (ix86_builtin_vectorized_function): Handle
9349         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9350
9351 2011-03-14  Tom Tromey  <tromey@redhat.com>
9352
9353         * c-parser.c (c_parser_asm_string_literal): Clear
9354         warn_overlength_strings.
9355
9356 2011-03-14  Tom Tromey  <tromey@redhat.com>
9357
9358         * c-parser.c (disable_extension_diagnostics): Save
9359         warn_overlength_strings.
9360         (restore_extension_diagnostics): Restore warn_overlength_strings.
9361
9362 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9363
9364         * BASE-VER: Change to 4.7.0.
9365
9366 2011-03-14  Richard Guenther  <rguenther@suse.de>
9367
9368         PR middle-end/48098
9369         * tree.c (build_vector_from_val): Adjust assert to requirements
9370         and reality.
9371
9372 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9373
9374         PR bootstrap/48102
9375         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9376
9377 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9378
9379         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9380         terms of target_flags_explicit. Adjust copyright year.
9381
9382         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9383         * config/rs6000/t-freebsd: New file. Add override for
9384         LIB2FUNCS_EXTRA.
9385
9386 2011-03-13  Chris Demetriou  <cgd@google.com>
9387
9388         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9389         (-fno-diagnostics-show-option): this, to reflect current default.
9390         (-Werror=): Update text about -fno-diagnostics-show-option.
9391
9392 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9393
9394         PR target/48053
9395         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9396         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9397         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9398         mode is not V2DImode or V2DFmode.
9399         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9400         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9401         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9402         registers to 0.
9403         (movdi_internal64): Likewise.
9404
9405 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9406
9407         PR tree-optimization/47127
9408         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9409         parameter.
9410         (set_cloog_options): Same.
9411         (scop_to_clast): Same.
9412         (print_clast_stmt): Do not call cloog_state_malloc and
9413         cloog_state_free.
9414         (print_generated_program): Same.
9415         (gloog): Same.
9416         * graphite-clast-to-gimple.h (cloog_state): Declared.
9417         (scop_to_clast): Adjust declaration.
9418         * graphite.c (cloog_state): Defined here.
9419         (graphite_initialize): Call cloog_state_malloc.
9420         (graphite_finalize): Call cloog_state_free.
9421
9422 2011-03-11  Jason Merrill  <jason@redhat.com>
9423
9424         * attribs.c (lookup_attribute_spec): Take const_tree.
9425         * tree.h: Adjust.
9426
9427 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9428
9429         * config/sparc/sparc.c (sparc_option_override): Use
9430         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9431
9432 2011-03-11  Richard Guenther  <rguenther@suse.de>
9433
9434         PR tree-optimization/48067
9435         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9436         multiplication result will be only used once on the target
9437         stmt.
9438
9439 2011-03-11  Richard Guenther  <rguenther@suse.de>
9440
9441         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9442
9443 2011-03-11  Richard Guenther  <rguenther@suse.de>
9444
9445         PR lto/48073
9446         * tree.c (find_decls_types_r): Do not walk types only reachable
9447         from IDENTIFIER_NODEs.
9448
9449 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9450
9451         PR middle-end/48044
9452         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9453         all vnode->force_output nodes as needed.
9454
9455 2011-03-11  Jason Merrill  <jason@redhat.com>
9456
9457         PR c++/48069
9458         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9459         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9460
9461 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9462
9463         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9464         cgraph_node.
9465
9466 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9467
9468         PR tree-optimization/48063
9469         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9470         inline functions called once if !tree_can_inline_p (node->callers).
9471
9472 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9473
9474         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9475         extra_objs.
9476         * config/score/score3.c: Delete.
9477         * config/score/score3.h: Delete.
9478         * config/score/mul-div.S: Delete.
9479         * config/score/sfp-machine.h: Add new file.
9480         * config/score/constraints.md: Add new file.
9481         * config/score/t-score-softfp: Add new file.
9482         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9483         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9484         (score7_extra_constraint): Delete.
9485         (score7_option_override): Remove unused code.
9486         * config/score/score.c: Remove score3 and score5 define and code.
9487         * config/score/score.h: Remove score3 and score5 define and code.
9488         * config/score/score.md: Remove score3 template and unusual insn.
9489         * config/score/score.opt: Remove score3 and score5 options.
9490
9491 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9492
9493         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9494         when _HPUX_SOURCE is defined.
9495         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9496
9497 2011-03-10  Jason Merrill  <jason@redhat.com>
9498
9499         PR c++/48029
9500         * stor-layout.c (layout_type): Don't set structural equality
9501         on arrays of incomplete type.
9502         * tree.c (type_hash_eq): Handle comparing them properly.
9503
9504 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9505
9506         PR debug/48043
9507         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9508         result mode matches original rtl mode.
9509
9510 2011-03-10  Nick Clifton  <nickc@redhat.com>
9511
9512         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9513         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9514
9515 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9516
9517         PR rtl-optimization/47866
9518         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9519         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9520         if target wasn't scalar.
9521         * function.c (assign_stack_temp_for_type): Assert that neither
9522         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9523         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9524         macro.
9525         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9526
9527 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9528
9529         * config/s390/s390-protos.h (s390_label_align): New prototype.
9530         * config/s390/s390.c (s390_label_align): New function.
9531         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9532
9533 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9534
9535         PR target/47755
9536         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9537         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9538         (output_vec_const_move): Ditto.
9539
9540 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9541
9542         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9543         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9544         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9545         Change 'rclass' argument and result type to reg_class_t.
9546         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9547
9548 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9549
9550         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9551         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9552         (TARGET_MEMORY_MOVE_COST): Define.
9553         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9554
9555 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9556
9557         PR debug/47881
9558         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9559         removed anything.
9560
9561         PR tree-optimization/48022
9562         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9563         for EQ/NE_EXPR.
9564
9565 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9566
9567         PR debug/47991
9568         * var-tracking.c (find_use_val): Return NULL for
9569         cui->sets && cui->store_p BLKmode MEMs.
9570
9571 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9572
9573         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9574         Remove.
9575         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9576         xstormy16_print_operand_address): Remove.
9577         * config/stormy16/stormy16.c (xstormy16_print_operand,
9578         xstormy16_print_operand_address): Make static.
9579         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9580
9581 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9582
9583         PR target/47862
9584         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9585         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9586         before definition.
9587
9588 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9589
9590         PR bootstrap/48000
9591         * cfgloopmanip.c (fix_bb_placements): Return immediately
9592         if FROM is BASE_LOOP's header.
9593
9594 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9595
9596         * gimplify.c (gimplify_function_tree): Fix building calls
9597         to __builtin_return_address.
9598
9599 2011-03-07  Alan Modra  <amodra@gmail.com>
9600
9601         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9602         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9603         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9604         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9605         return_mode args.
9606         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9607         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9608         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9609         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9610         * config/rs6000/rs6000.c
9611         (rs6000_elf_end_indicate_exec_stack): Rename to..
9612         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9613         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9614         (rs6000_file_start): ..here.
9615         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9616         file scope variables.
9617         (call_ABI_of_interest): New function.
9618         (init_cumulative_args): Set above vars when function return value
9619         is a float, vector, or small struct.
9620         (rs6000_function_arg_advance_1): Likewise for function args.
9621         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9622         references float args.
9623
9624 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9625
9626         * doc/cfg.texi: Remove "See" before @ref.
9627         * doc/invoke.texi: Likewise.
9628
9629 2011-03-05  Jason Merrill  <jason@redhat.com>
9630
9631         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9632
9633 2011-03-05  Anthony Green  <green@moxielogic.com>
9634
9635         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9636
9637 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
9638
9639         PR rtl-optimization/47899
9640         * cfgloopmanip.c (fix_bb_placements): Fix first argument
9641         to flow_loop_nested_p when moving the loop upward.
9642
9643 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
9644
9645         PR target/47719
9646         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
9647
9648 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
9649
9650         PR tree-optimization/47967
9651         * ipa-cp.c (build_const_val): Return NULL instead of creating
9652         VIEW_CONVERT_EXPR for mismatching sizes.
9653         (ipcp_create_replace_map): Return NULL if build_const_val failed.
9654         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9655         give up on versioning.
9656
9657 2011-03-05  Alan Modra  <amodra@gmail.com>
9658
9659         PR target/47986
9660         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9661         full cmodel medium/large lo_sum + high addresses.
9662
9663 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9664
9665         * config/s390/s390.c (s390_decompose_address): Reject non-literal
9666         pool references in UNSPEC_LTREL_OFFSET.
9667
9668 2011-03-04  Jan Hubicka  <jh@suse.cz>
9669
9670         PR lto/47497
9671         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9672         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9673         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9674         Add node pointers.
9675         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9676         cgraph_add_thunk): Add node pointers.
9677         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9678         associated to right node.
9679         (input_node): Update use of cgraph_same_body_alias
9680         and cgraph_add_thunk.
9681
9682 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9683
9684         * config/i386/i386.opt (mprefer-avx128): New flag.
9685         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9686         modes when the flag -mprefer-avx128 is on.
9687
9688 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9689
9690         * dwarf2out.c (compare_loc_operands): Fix address handling.
9691
9692 2011-03-04  Alan Modra  <amodra@gmail.com>
9693
9694         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9695
9696 2011-03-04  Richard Guenther  <rguenther@suse.de>
9697
9698         PR middle-end/47968
9699         * expmed.c (extract_bit_field_1): Prefer vector modes that
9700         vec_extract patterns can handle.
9701
9702 2011-03-04  Richard Guenther  <rguenther@suse.de>
9703
9704         PR middle-end/47975
9705         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9706
9707 2011-03-04  Richard Henderson  <rth@redhat.com>
9708
9709         * explow.c (emit_stack_save): Remove 'after' parameter.
9710         (emit_stack_restore): Likewise.
9711         * expr.h: Update to match.
9712         * builtins.c, calls.c, stmt.c: Likewise.
9713         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9714         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9715         * function.c (expand_function_end): Insert the emit_stack_save
9716         sequence before parm_birth_insn instead of after.
9717
9718 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
9719
9720         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9721         (ssse3_pmaddubsw128): Ditto.
9722         (ssse3_pmaddubsw): Ditto.
9723
9724 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
9725
9726         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9727
9728 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
9729
9730         PR c/47963
9731         * gimplify.c (omp_add_variable): Only call omp_notice_variable
9732         on TYPE_SIZE_UNIT if it is a DECL.
9733
9734         PR debug/47283
9735         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9736         first operand is not is_gimple_mem_ref_addr, try to fold it.
9737         If the operand still isn't is_gimple_mem_ref_addr, clear
9738         MEM_EXPR on op0.
9739
9740 2011-03-03  Richard Guenther  <rguenther@suse.de>
9741
9742         PR middle-end/47283
9743         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9744         match comment.
9745         (refs_may_alias_p_1): For release branches return true if
9746         we are confused by our input.
9747
9748 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9749
9750         * config/s390/s390.c (s390_function_value): Rename to ...
9751         (s390_function_and_libcall_value): ... this.
9752         (s390_function_value): New function.
9753         (s390_libcall_value): New function.
9754         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9755         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9756         target macro definitions.
9757         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9758
9759 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
9760
9761         * config/i386/freebsd64.h (CC1_SPEC): Define.
9762         * config/i386/linux64.h (CC1_SPEC): Define.
9763         * config/i386/x86-64.h (CC1_SPEC): Don't define.
9764
9765 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
9766
9767         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9768         Remove.
9769         * config/stormy16/stormy16.c: Include reload.h.
9770         (xstormy16_memory_move_cost): New function.
9771         (TARGET_MEMORY_MOVE_COST): Define.
9772
9773 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
9774
9775         PR rtl-optimization/47925
9776         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9777         with side effects.  Remove the more-specific check for volatile asms.
9778
9779 2011-03-02  Alan Modra  <amodra@gmail.com>
9780
9781         PR target/47935
9782         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9783         toc relative addresses for valid offsets.
9784
9785 2011-03-01  Richard Guenther  <rguenther@suse.de>
9786
9787         PR tree-optimization/47890
9788         * tree-vect-loop.c (get_initial_def_for_induction): Set
9789         related stmt properly.
9790
9791 2011-03-01  Richard Guenther  <rguenther@suse.de>
9792
9793         PR lto/47924
9794         * lto-streamer.c (lto_record_common_node): Also register
9795         the canonical type.
9796
9797 2011-03-01  Richard Guenther  <rguenther@suse.de>
9798
9799         PR lto/46911
9800         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9801         Do not stream DECL_ABSTRACT_ORIGIN.
9802         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9803         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9804         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9805         Do not stream DECL_ABSTRACT_ORIGIN.
9806         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9807         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9808
9809 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
9810
9811         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9812         FUNCTION_VALUE_REGNO_P): Remove.
9813         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9814         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9815         Add 'outgoing' argument.
9816         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9817         function.
9818         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9819         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9820
9821 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
9822
9823         PR debug/28047
9824         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9825         (lookup_filename): Likewise.
9826         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9827
9828 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
9829             Jakub Jelinek  <jakub@redhat.com>
9830
9831         PR middle-end/47893
9832         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9833         (assign_stack_local_1): Change last argument type to int.
9834         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9835         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
9836         don't record padding space into frame_space_list nor use those areas.
9837         (assign_stack_local): Adjust caller.
9838         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9839         of assign_stack_local, pass 0 as last argument.
9840         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9841         callers.
9842
9843 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
9844
9845         PR debug/47283
9846         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9847         Use target address_mode and pointer_mode hooks instead of hardcoded
9848         Pmode and ptr_mode.  Handle some simple cases of extending if
9849         POINTERS_EXTEND_UNSIGNED < 0.
9850         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9851         Call convert_debug_memory_address.
9852         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9853         convert_debug_memory_address.
9854
9855         PR middle-end/46790
9856         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9857         * configure: Regenerated.
9858         * config.in: Regenerated.
9859         * varasm.c (default_function_section): Return NULL
9860         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9861
9862 2011-02-28  Martin Jambor  <mjambor@suse.cz>
9863
9864         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9865         the description to match the printed values.
9866
9867 2011-02-28  Richard Guenther  <rguenther@suse.de>
9868
9869         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9870         of the copied scope tree.
9871
9872 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9873
9874         * doc/extend.texi (Function Attributes): Avoid deeply (and
9875         wrongly) nested tables.
9876
9877 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
9878
9879         PR middle-end/47903
9880         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9881         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9882         r isn't op0 nor op1.
9883
9884 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9885
9886         * config/avr/avr.md: Remove magic comment for emacs.
9887
9888 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9889
9890         PR target/45261
9891         * config/avr/avr.c (avr_option_override): Use error on bad options.
9892         (avr_help): New function.
9893         (TARGET_HELP): Define.
9894
9895 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
9896
9897         PR target/42240
9898         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9899         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9900
9901 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
9902
9903         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9904         (ARM Options): Ditto.
9905         (i386 and x86-64 Options): Ditto.
9906         (RX Options): Ditto.
9907         (SPARC Options): Ditto.
9908
9909 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
9910
9911         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9912         FreeBSD 6 and later.  Generally use cpu generic.
9913
9914 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9915
9916         * doc/cpp.texi: Update copyright years.
9917
9918 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9919
9920         PR target/46898
9921         * config/lm32/lm32.md (ashrsi3): Added needed variable.
9922
9923 2011-02-25  Jon Beniston  <jon@beniston.com>
9924
9925         PR target/46898
9926         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9927         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9928         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9929         (lm32_block_move_inline): Add type cast to remove warning.
9930         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9931         (gen_int_relational): Move declarations to start of function.
9932
9933 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9934
9935         PR tree-optimization/45470
9936         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9937         can throw internally only.
9938         * tree-vect-stmts.c (vectorizable_call): Likewise.
9939
9940 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
9941
9942         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9943         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9944         * config/stormy16/stormy16-protos.h
9945         (xstormy16_preferred_reload_class): Remove.
9946         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9947         static. Change 'rclass' argument and return type to reg_class_t.
9948         (TARGET_PREFERRED_RELOAD_CLASS,
9949         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9950
9951 2011-02-24  Richard Guenther  <rguenther@suse.de>
9952
9953         * lto-streamer-in.c (input_bb): Do not find referenced vars
9954         in debug statements.
9955
9956 2011-02-23  Jason Merrill  <jason@redhat.com>
9957
9958         * common.opt (fabi-version): Document v5 and v6.
9959
9960 2011-02-23  Richard Guenther  <rguenther@suse.de>
9961
9962         PR tree-optimization/47849
9963         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9964
9965 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9966
9967         * opts-common.c (decode_cmdline_option): Print empty string
9968         argument as "" in decoded->orig_option_with_args_text.
9969         * gcc.c (execute): Print empty string argument as ""
9970         in the verbose output.
9971         (do_spec_1): Keep empty string argument.
9972
9973 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
9974
9975         * config.gcc: Declare score-* and crx-* obsolete.
9976
9977 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9978
9979         PR rtl-optimization/47763
9980         * web.c (web_main): Ignore naked clobber when replacing register.
9981
9982 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
9983
9984         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9985         Remove.
9986
9987 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9988
9989         PR doc/47848
9990         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9991
9992 2011-02-22  Mike Stump  <mikestump@comcast.net>
9993
9994         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9995         assembler.
9996         * configure: Regenerate.
9997
9998 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
9999
10000         PR rtl-optimization/46002
10001         * ira-color.c (update_copy_costs): Change class intersection
10002         test to reg_class_contents[] test of 'hard_regno'.
10003
10004 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10005
10006         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10007         than Driver option.
10008         * config/hpux11.opt (mt): Likewise.
10009         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10010         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10011         * config/vax/elf.opt (mno-asm-pic): Likewise.
10012         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10013
10014 2011-02-21  Mike Stump  <mikestump@comcast.net>
10015
10016         PR target/47822
10017         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10018         tree so we can get save the type.
10019         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10020         for CFString instead of trying to use past the end of the builtins.
10021         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10022         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10023         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10024         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10025         Rename to darwin_builtin_cfstring.
10026         (darwin_init_cfstring_builtins): Return the built type.
10027
10028 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10029
10030         PR target/47840
10031         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10032         (_mm256_insert_epi64): Use _mm_insert_epi64.
10033
10034 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10035
10036         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10037         * config/stormy16/stormy16-protos.h
10038         (xstormy16_mode_dependent_address_p): Remove.
10039         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10040         Make static. Change return type to bool. Change argument type to
10041         const_rtx. Remove dead code.
10042         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10043
10044 2011-02-21  Richard Guenther  <rguenther@suse.de>
10045
10046         PR lto/47820
10047         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10048         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10049         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10050         TUs context.
10051         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10052         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10053
10054 2011-02-20  Richard Guenther  <rguenther@suse.de>
10055
10056         PR lto/47822
10057         * tree.c (free_lang_data_in_decl): Clean builtins from
10058         the TU decl BLOCK_VARS.
10059
10060 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10061
10062         PR debug/47620
10063         PR debug/47630
10064         * haifa-sched.c (fix_tick_ready): Skip tick computation
10065         for debug insns.
10066
10067 2011-02-19  Richard Guenther  <rguenther@suse.de>
10068
10069         PR lto/47647
10070         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10071         Remove lazy BLOCK_VARS streaming.
10072         (lto_input_ts_block_tree_pointers): Likewise.
10073         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10074
10075 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10076
10077         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10078
10079 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10080
10081         * config/i386/biarch32.h, config/i386/mach.h,
10082         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10083
10084 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10085
10086         PR target/47800
10087         * config/i386/i386.md (peephole2 for shift and plus): Use
10088         operands[1] original mode in the first insn.
10089
10090 2011-02-18  Mike Stump  <mikestump@comcast.net>
10091
10092         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10093
10094 2011-02-18  Jan Hubicka  <jh@suse.cz>
10095
10096         PR middle-end/47788
10097         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10098         to zero when the function is not inlinable at all.
10099
10100 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10101
10102         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10103         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10104         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10105         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10106         * config/pa/t-pa64: Likewise.
10107         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10108
10109 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10110
10111         PR driver/47787
10112         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10113
10114 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10115
10116         PR target/47792
10117         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10118
10119 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10120
10121         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10122         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10123         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10124         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10125         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10126         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10127         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10128         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10129         m32r_legitimate_address_p): New functions.
10130         * config/m32r/constraints.md (constraint "S"): Don't use
10131         STORE_PREINC_PREDEC_P.
10132         (constraint "U"): Don't use LOAD_POSTINC_P.
10133
10134 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10135
10136         PR rtl-optimization/46178
10137         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10138         compute ira_hard_regno_cover_class[].
10139
10140 2011-02-18  Richard Guenther  <rguenther@suse.de>
10141
10142         PR lto/47798
10143         * lto-streamer.h (lto_global_var_decls): Declare.
10144         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10145         statics for global var processing.
10146
10147 2011-02-18  Richard Guenther  <rguenther@suse.de>
10148
10149         PR tree-optimization/47737
10150         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10151         edge dominance check.
10152
10153 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10154
10155         PR debug/47780
10156         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10157         avoid invalid rtx sharing.
10158
10159 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10160
10161         * doc/cpp.texi (Obsolete Features): Add background on the
10162         origin of assertions.
10163
10164 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10165
10166         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10167         objc_abi == 2.
10168         * config/darwin.c (output_objc_section_asm_op): Added support for
10169         ABI v1 and v2.
10170         (is_objc_metadata): New.
10171         (darwin_objc2_section): New.
10172         (darwin_objc1_section): New.
10173         (machopic_select_section): Added support for ABI v1 and v2.
10174         (darwin_emit_objc_zeroed): New.
10175         (darwin_output_aligned_bss): Detect objc metadata and treat it
10176         appropriately.
10177         (darwin_asm_output_aligned_decl_common): Same.
10178         (darwin_asm_output_aligned_decl_local): Same.
10179         * config/darwin-sections.def: Updated for ABI v1 and v2.
10180         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10181         compiling Objective-C code for the NeXT runtime, default to using
10182         ABI version 0 for 32-bit, and version 2 for 64-bit.
10183
10184 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10185
10186         * common.opt (optimize_fast): New Variable.
10187         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10188         instead of local variable ofast.
10189
10190 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10191
10192         * doc/invoke.texi (fobjc-abi-version): Documented.
10193         (fobjc-nilcheck): Documented.
10194         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10195         version.
10196
10197 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10198
10199         PR driver/47390
10200         * common.opt (export-dynamic): New Driver option.
10201         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10202
10203 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10204
10205         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10206
10207 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10208             Jan Hubicka  <jh@suse.cz>
10209
10210         PR debug/47106
10211         PR debug/47402
10212         * cfgexpand.c (account_used_vars_for_block): Remove.
10213         (estimated_stack_frame_size): Use referenced vars.
10214         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10215         that were referenced in the original function.  Test src_fn
10216         rather than cfun.  Drop redundant get_var_ann.
10217         (setup_one_parameter): Drop redundant get_var_ann.
10218         (declare_return_variable): Likewise.
10219         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10220         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10221         * ipa-inline.c (compute_inline_parameters): Do not compute
10222         disregard_inline_limits here.
10223         (compute_inlinable_for_current, pass_inlinable): New.
10224         (pass_inline_parameters): Require PROP_referenced_vars.
10225         * cgraphunit.c (cgraph_process_new_functions): Don't run
10226         compute_inline_parameters explicitly unless function is in SSA form.
10227         (cgraph_analyze_function): Set .disregard_inline_limits.
10228         * tree-sra.c (convert_callers): Compute inliner parameters
10229         only for functions already in SSA form.
10230
10231 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10232
10233         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10234         -mlittle-endian-data.
10235
10236 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10237
10238         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10239         -mno-fpu, not -fpu and -no-fpu.
10240         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10241         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10242
10243 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10244
10245         PR target/43653
10246         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10247         input reload with PLUS RTX.
10248
10249 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10250
10251         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10252         of InverseVar(MDMX).
10253
10254 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10255
10256         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10257         --m4-340.
10258
10259 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10260
10261         * config/mn10300/mn10300.opt (mno-crt0): New.
10262
10263 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10264
10265         * config/m68k/uclinux.opt (static-libc): New Driver option.
10266
10267 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10268
10269         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10270
10271 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10272
10273         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10274         %{muser-extend-enabled}.
10275
10276 2011-02-16  Richard Guenther  <rguenther@suse.de>
10277
10278         PR tree-optimization/47738
10279         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10280         the TODO from tree_predictive_commoning.
10281
10282 2011-02-15  Jeff Law  <law@redhat.com>
10283
10284         Revert
10285         2011-01-25  Jeff Law  <law@redhat.com>
10286
10287         PR rtl-optimization/37273
10288         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10289         handle them like argument loads from stack slots.  Do not double
10290         count memory for memory constants and argument loads from stack slots.
10291
10292 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10293
10294         PR middle-end/47725
10295         * combine.c (cant_combine_insn_p): Revert the last change.
10296
10297 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10298
10299         PR target/47755
10300         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10301         mode for vector constants.  Remove code that checks for TImode.
10302
10303 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10304
10305         PR debug/47106
10306         PR debug/47402
10307         * cgraph.h (compute_inline_parameters): Return void.
10308         * ipa-inline.c (compute_inline_parameters): Adjust.
10309
10310 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10311
10312         PR debug/47106
10313         PR debug/47402
10314         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10315         rather than decl.
10316         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10317         * ipa-inline.c (compute_inline_parameters): Adjust.
10318
10319 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10320
10321         PR debug/47106
10322         PR debug/47402
10323         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10324         Adjust all users.  Pass FN to...
10325         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10326         fn argument.
10327         * ipa-struct-reorg.c: Adjust.
10328         * tree-dfa.c: Adjust.
10329         * tree-into-ssa.c: Adjust.
10330         * tree-sra.c: Adjust.
10331         * tree-ssa-alias.c: Adjust.
10332         * tree-ssa-live.c: Adjust.
10333         * tree-ssa.c: Adjust.
10334         * tree-ssanames.c: Adjust.
10335         * tree-tailcall.c: Adjust.
10336
10337 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10338
10339         PR debug/47106
10340         PR debug/47402
10341         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10342         Adjust all callers.
10343         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10344         * tree-flow-inline.h: Adjust.
10345         * gimple-pretty-print.c: Adjust.
10346         * tree-into-ssa.c: Adjust.
10347         * tree-ssa.c: Adjust.
10348         * cfgexpand.c: Adjust.
10349
10350 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10351
10352         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10353         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10354         (EXTRA_CONSTRAINT): Delete.
10355         * config/iq2000/constraints.md: New file.
10356         * config/iq2000/iq2000.md: Include it.
10357         (define_insn ""): Delete.
10358         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10359         unsupported constraint letters from patterns.
10360         (call_value, call_value_internal1): Likewise.
10361         (call_value_multiple_internal1): Likewise.
10362
10363 2011-02-15  Nick Clifton  <nickc@redhat.com>
10364
10365         * config/mn10300/mn10300.c: Include tm-constrs.h.
10366         (struct liw_data): New data structure describing an LIW candidate
10367         instruction.
10368         (extract_bundle): Use struct liw_data.  Allow small integer
10369         operands for some instructions.
10370         (check_liw_constraints): Use struct liw_data.  Remove swapped
10371         parameter.  Add comments describing the checks.  Fix bug when
10372         assigning the source of liw1 to the source of liw2.
10373         (liw_candidate): Delete.  Code moved into extract_bundle.
10374         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10375         before swapping.
10376         * config/mn10300/predicates.md (liw_operand): New predicate.
10377         Allows registers and small integer constants.
10378         * config/mn10300/constraints.md (O): New constraint.  Accetps
10379         integers in the range -8 to +7 inclusive.
10380         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10381         for moving a small integer into a register.  Give this alternative
10382         LIW attributes.
10383         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10384         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10385         using the J,K,L and M constraints,
10386         (liw): Remove SI mode on second operands to allow for HI and QI
10387         mode values.
10388         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10389         instruction.
10390
10391 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10392
10393         PR middle-end/47725
10394         * combine.c (cant_combine_insn_p): Check zero/sign extended
10395         hard registers.
10396
10397 2011-02-15  Richard Guenther  <rguenther@suse.de>
10398
10399         PR tree-optimization/47743
10400         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10401         for a non-type-compatible VN lookup bail out.
10402
10403 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10404
10405         * config/fr30/constraints.md: New file.
10406         * config/fr30/fr30.md: Include it.
10407         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10408         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10409         (EXTRA_CONSTRAINT): Delete.
10410
10411 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10412
10413         * config/frv/constraints.md: New file.
10414         * config/frv/predicates.md: Include it.
10415         * config/frv/frv.c (reg_class_from_letter): Delete.
10416         (frv_option_override): Don't initialize it.
10417         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10418         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10419         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10420         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10421         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10422         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10423         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10424         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10425         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10426         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10427         (REG_CLASS_FROM_CONSTRAINT): Delete.
10428
10429 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10430
10431         PR middle-end/47581
10432         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10433         if frame size is 0 in a leaf function.
10434
10435 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10436
10437         PR pch/14940
10438         * config/alpha/host-osf.c: New file.
10439         * config/alpha/x-osf: New file.
10440         * config.host (alpha*-dec-osf*): Use it.
10441
10442 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10443
10444         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10445         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10446         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10447         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10448         type to const_rtx.
10449         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10450
10451 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10452
10453         * config/stormy16/constraints.md: New file.
10454         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10455         Use satisfies_constraint_Q and satisfies_constraint_R.
10456         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10457         Delete.
10458         (xstormy16_legitiamte_address_p): Declare.
10459         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10460         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10461         (EXTRA_CONSTRAINT): Delete.
10462         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10463         Un-staticize.
10464         (xstormy16_extra_constraint_p): Delete.
10465
10466 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10467
10468         PR tree-optimization/46494
10469         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10470         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10471         (pass_rtl_loop_done): Add TODO_verify_flow.
10472         * fwprop.c (pass_rtl_fwprop): Likewise.
10473         * modulo-sched.c (pass_sms): Likewise.
10474         * tree-ssa-dom.c (pass_dominator): Likewise.
10475         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10476         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10477         (pass_tree_loop_done): Likewise.
10478         * tree-ssa-pre.c (execute_pre): Likewise.
10479         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10480         * tree-ssa-sink.c (pass_sink_code): Likewise.
10481         * tree-vrp.c (pass_vrp): Likewise.
10482
10483 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10484
10485         * config/v850/constraints.md: New file.
10486         * config/v850/v850.md: Include it.
10487         * config/v850/predicates.md (reg_or_0_operand): Use
10488         satisfies_constraint_G.
10489         (special_symbolref_operand): Use satisfies_constraint_K.
10490         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10491         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10492         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10493         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10494         (EXTRA_CONSTRAINT): Delete.
10495         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10496         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10497         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10498
10499 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10500
10501         PR target/47696
10502         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10503         description.
10504
10505 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10506
10507         * config/mcore/constraints.md: New file.
10508         * config/mcore/mcore.md: Include it.
10509         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10510         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10511         (REG_CLASS_FROM_LETTER): Delete.
10512         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10513         insn_const_int_ok_for_constraint.
10514         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10515         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10516         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10517         (EXTRA_CONSTRAINT): Delete.
10518
10519 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10520
10521         PR ada/41929
10522         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10523         (IS_SIGHANDLER): Define.
10524         (sparc64_is_sighandler): New function, split off from
10525         sparc64_fallback_frame_state.
10526         (sparc_is_sighandler): New function, split off from
10527         sparc_fallback_frame_state.
10528         (sparc64_fallback_frame_state): Merge with ...
10529         (sparc_fallback_frame_state): ... this into ...
10530         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10531         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10532         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10533         stack instead of hardcoded offsets.
10534
10535 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10536
10537         PR target/45808
10538         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10539
10540 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10541
10542         * configure: Regenerate.
10543
10544 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10545
10546         PR driver/45731
10547         * gcc.c (asm_options): Correct spec matching --target-help.
10548
10549 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10550
10551         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10552         to gimple call error.
10553
10554 2011-02-12  Mike Stump  <mikestump@comcast.net>
10555
10556         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10557         comments in backslash regions.
10558
10559 2011-02-12  Mike Stump  <mikestump@comcast.net>
10560             Jakub Jelinek  <jakub@redhat.com>
10561             Iain Sandoe  <iains@gcc.gnu.org>
10562
10563         PR target/47324
10564         * dwarf2out.c (output_cfa_loc): When required, apply the
10565         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10566         (output_loc_sequence): Likewise.
10567         (output_loc_operands_raw): Likewise.
10568         (output_loc_sequence_raw): Likewise.
10569         (output_cfa_loc): Likewise.
10570         (output_loc_list): Suppress register number adjustment when
10571         calling output_loc_sequence()
10572         (output_die): Likewise.
10573
10574 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10575
10576         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10577         Remove macros.
10578         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10579         xtensa_memory_move_cost): New functions.
10580         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10581
10582 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10583
10584         PR lto/47225
10585         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10586         in the current directory.
10587         * configure: Rebuilt.
10588
10589 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10590
10591         * config/darwin.c (darwin_override_options): Add a hunk missed
10592         from the commit of r168571.  Trim comment line lengths and
10593         correct indents of the preceding block.
10594
10595 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10596
10597         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10598         the switch.
10599
10600 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10601
10602         * common.opt (nostartfiles): New Driver option.
10603
10604 2011-02-11  Xinliang David Li  <davidxl@google.com>
10605
10606         PR tree-optimization/47707
10607         * tree-chrec.c (convert_affine_scev): Keep type precision.
10608
10609 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10610
10611         PR tree-optimization/47420
10612         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10613
10614 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10615
10616         PR rtl-optimization/47614
10617         * rtl.h (check_for_inc_dec): Declare.
10618         * dse.c (check_for_inc_dec): Externalize...
10619         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10620         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10621
10622 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10623
10624         PR driver/47678
10625         * gcc.c (main): Do not compile inputs if there were errors in
10626         option handling.
10627         * opts-common.c (read_cmdline_option): Check for wrong language
10628         after other error checks.
10629
10630 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
10631
10632         * cgraph.c: Fix comment typos.
10633         * cgraph.h: Likewise.
10634         * cgraphunit.c: Likewise.
10635         * ipa-cp.c: Likewise.
10636         * ipa-inline.c: Likewise.
10637         * ipa-prop.c: Likewise.
10638         * ipa-pure-const.c: Likewise.
10639         * ipa-ref.c: Likewise.
10640         * ipa-reference.c: Likewise.
10641
10642 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10643
10644         PR debug/47684
10645         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10646
10647 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10648
10649         PR testsuite/47400
10650         * doc/sourcebuild.texi (Require Support): Document
10651         dg-require-ascii-locale.
10652
10653 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
10654
10655         * doc/lto.texi (Write summary): Fix missing parentheses.
10656
10657 2011-02-10  DJ Delorie  <dj@redhat.com>
10658
10659         * config/m32c/m32c.c (m32c_option_override): Disable
10660         -fcombine-stack-adjustments until flag value tracking and compare
10661         optimization can be rewritten.
10662
10663 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
10664
10665         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10666         PROCESSOR_POWER7.
10667         (PROCESSOR_DEFAULT64): Likewise.
10668
10669 2011-02-10  Richard Henderson  <rth@redhat.com>
10670
10671         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10672         change from 2011-02-03.
10673         * config/rx/rx.c (flags_from_code): Likewise.
10674         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10675         is valid, n/pz otherwise.
10676         (rx_select_cc_mode): Return CCmode if Y is not zero.
10677
10678 2011-02-10  Richard Guenther  <rguenther@suse.de>
10679
10680         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10681
10682 2011-02-10  Richard Guenther  <rguenther@suse.de>
10683
10684         PR tree-optimization/47677
10685         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10686
10687 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10688
10689         PR target/47665
10690         * combine.c (make_compound_operation): Only change shifts into
10691         multiplication for SCALAR_INT_MODE_P.
10692
10693 2011-02-10  Jie Zhang  <jie@codesourcery.com>
10694
10695         PR testsuite/47622
10696         Revert
10697         2011-02-05  Jie Zhang  <jie@codesourcery.com>
10698         PR debug/42631
10699         * web.c (entry_register): Don't clobber the number of the
10700         first uninitialized reference in used[].
10701
10702 2011-02-09  Richard Guenther  <rguenther@suse.de>
10703
10704         PR tree-optimization/47664
10705         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10706         all edges again.
10707
10708 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
10709
10710         PR target/46481
10711         PR target/47032
10712         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10713         PROCESSOR_POWER7.
10714         (PROCESSOR_DEFAULT64): Same.
10715         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10716
10717 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10718
10719         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10720
10721 2011-02-09  Martin Jambor  <mjambor@suse.cz>
10722
10723         PR middle-end/45505
10724         * tree-sra.c (struct access): New flags grp_scalar_read and
10725         grp_scalar_write.  Changed description of assignment read and write
10726         flags.
10727         (dump_access): Dump new flags, reorder all of them.
10728         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10729         to detect multiple scalar reads.
10730         (analyze_access_subtree): Use the new scalar read write flags instead
10731         of the old flags.  Adjusted comments.
10732
10733 2011-02-08  DJ Delorie  <dj@redhat.com>
10734
10735         PR target/47548
10736         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10737         patterns.
10738
10739 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10740
10741         * config/m68k/uclinux.opt: New.
10742         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10743
10744 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10745
10746         * config/cris/elf.opt (sim): New Driver option.
10747
10748 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10749
10750         * config/xtensa/elf.opt: New.
10751         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10752
10753 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10754
10755         * config/vax/elf.opt: New.
10756         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10757
10758 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10759
10760         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10761
10762 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10763
10764         * config/gnu-user.opt: New.
10765         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10766         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10767         *-*-uclinux*): Use gnu-user.opt.
10768
10769 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
10770
10771         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10772         * config/i386/gnu.h (CPP_SPEC): Likewise.
10773
10774 2011-02-08  Ian Lance Taylor  <iant@google.com>
10775
10776         * common.opt (fcx-limited-range): Add SetByCombined flag.
10777         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10778         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10779         (fassociative-math, freciprocal-math): Likewise.
10780         (funsafe-math-optimizations): Likewise.
10781         * opth-gen.awk: Handle SetByCombined.
10782         * optc-gen.awk: Likewise.
10783         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10784         (set_unsafe_math_optimizations_flags): Likewise.
10785         * doc/options.texi (Option properties): Document SetByCombined.
10786
10787 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10788
10789         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10790         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10791         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10792         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10793         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10794
10795 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
10796
10797         PR tree-optimization/46834
10798         PR tree-optimization/46994
10799         PR tree-optimization/46995
10800         * graphite-sese-to-poly.c (used_outside_reduction): New.
10801         (detect_commutative_reduction): Call used_outside_reduction.
10802         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10803         translate_scalar_reduction_to_array only when at least one
10804         loop-phi/close-phi tuple has been detected.
10805
10806 2011-02-08  Richard Guenther  <rguenther@suse.de>
10807
10808         PR middle-end/47639
10809         * tree-vect-generic.c (expand_vector_operations_1): Update
10810         stmts here ...
10811         (expand_vector_operations): ... not here.  Cleanup EH info
10812         and the CFG if required.
10813
10814 2011-02-08  Richard Guenther  <rguenther@suse.de>
10815
10816         PR tree-optimization/47641
10817         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10818         require type compatibility.
10819
10820 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10821
10822         * gimple-low.c (lower_function_body): Don't remove the location of
10823         the return statement here.
10824         (lower_gimple_return): Do it here instead but only if the return
10825         statement is actually used twice.
10826
10827 2011-02-08  Richard Guenther  <rguenther@suse.de>
10828
10829         PR tree-optimization/47632
10830         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10831         unused up_to_stmt parameter, return whether cfg-cleanup is
10832         necessary, remove EH info properly.
10833         (forward_propagate_into_gimple_cond): Adjust caller.
10834         (forward_propagate_into_cond): Likewise.
10835         (forward_propagate_comparison): Likewise.
10836         (tree_ssa_forward_propagate_single_use_vars): Make
10837         forward_propagate_comparison case similar to the two others.
10838
10839 2011-02-08  Nick Clifton  <nickc@redhat.com>
10840
10841         * config/mn10300/mn10300.opt (mliw): New command line option.
10842         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10843         (liw_bundling): New automaton.
10844         (liw): New attribute.
10845         (liw_op): New attribute.
10846         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10847         (movsi_internal): Add LIW attributes.
10848         (andsi3): Likewise.
10849         (iorsi3): Likewise.
10850         (xorsi3): Likewise.
10851         (addsi3): Separate register and immediate alternatives.
10852         Add LIW attributes.
10853         (subsi3): Likewise.
10854         (cmpsi): Likewise.
10855         (aslsi3): Likewise.
10856         (lshrsi3): Likewise.
10857         (ashrsi3): Likewise.
10858         (liw): New pattern.
10859         * config/mn10300/mn10300.c (liw_op_names): New
10860         (mn10300_print_operand): Handle 'W' operand descriptor.
10861         (extract_bundle): New function.
10862         (check_liw_constraints): New function.
10863         (liw_candidate): New function.
10864         (mn10300_bundle_liw): New function.
10865         (mn10300_reorg): New function.
10866         (TARGET_MACHINE_DEPENDENT_REORG): Define.
10867         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10868         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10869         __LIW__ or __NO_LIW__.
10870         * doc/invoke.texi: Describe the -mliw command line option.
10871
10872 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10873
10874         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10875         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10876         pthread_mutex_unlock): Remove.
10877         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10878         * config/pa/t-pa64: Likewise.
10879         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10880         shared libc if not linking against libpthread.
10881         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10882
10883 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
10884
10885         PR target/47558
10886         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10887         on 10.6 and later to ensure that we always use the unwinder from
10888         the system.  Only add -no_compact_unwind when tarteting darwin
10889         10.6 or later.
10890
10891 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
10892
10893         PR target/46997
10894         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10895         (vec_interleave_lowv2sf): Ditto.
10896         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10897         (vec_extract_oddv2sf): Ditto.
10898
10899 2011-02-07  Mike Stump  <mikestump@comcast.net>
10900
10901         PR target/42333
10902         Add __ieee_divdc3 entry point.
10903         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10904         entry point.
10905         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10906         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10907         * config/darwin.c (darwin_rename_builtins): Add.
10908         * config/darwin-protos.h (darwin_rename_builtins): Add.
10909
10910 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
10911
10912         PR target/47636
10913         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10914         for the condition.
10915
10916 2011-02-07  Mike Stump  <mikestump@comcast.net>
10917
10918         * config/darwin.opt (mmacosx-version-min): Update default OS version.
10919
10920 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
10921
10922         PR target/47534
10923         * config/avr/libgcc.S (exit): Move .endfunc
10924
10925 2011-02-07  Richard Guenther  <rguenther@suse.de>
10926
10927         PR tree-optimization/47615
10928         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10929         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10930         (run_scc_vn): Initialize it.
10931         (visit_reference_op_load): Use it.
10932         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10933
10934 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10935
10936         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10937         DImode trapping arithmetic libfuncs.
10938
10939 2011-02-07  Richard Guenther  <rguenther@suse.de>
10940
10941         PR tree-optimization/47621
10942         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10943         two duplicates ...
10944         (execute_update_addresses_taken): ... here.  Make it more
10945         conservative in what we accept.
10946
10947 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10948
10949         * config/sparc/freebsd.h (ASM_SPEC): Define.
10950         * config/sparc/vxworks.h (ASM_SPEC): Define.
10951
10952 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10953
10954         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10955
10956 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
10957
10958         * doc/invoke.texi: Remove reference to compiler internals from
10959         user documentation.
10960
10961         * reg-notes.def: Remove REG_VALUE_PROFILE.
10962         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10963
10964 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
10965
10966         PR middle-end/47610
10967         * varasm.c (default_section_type_flags): If decl is NULL,
10968         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10969
10970 2011-02-05  Jie Zhang  <jie@codesourcery.com>
10971
10972         PR debug/42631
10973         * web.c (entry_register): Don't clobber the number of the
10974         first uninitialized reference in used[].
10975
10976 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
10977
10978         PR tree-optimization/46194
10979         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10980         (build_classic_dist_vector_1): Do not represent classic distance
10981         vectors when the access functions are variating in different loops.
10982
10983 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10984
10985         * config/mips/iris6.opt: New.
10986         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10987
10988 2011-02-04  Richard Henderson  <rth@redhat.com>
10989             Steve Ellcey  <sje@cup.hp.com>
10990
10991         PR target/46997
10992         * config/ia64/predicates.md (mux1_brcst_element): New.
10993         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10994         * config/ia64/ia64.c (ia64_unpack_assemble): New.
10995         (ia64_unpack_sign): New.
10996         (ia64_expand_unpack): Rewrite using new routines.
10997         (ia64_expand_widen_sum): Ditto.
10998         (ia64_expand_dot_prod_v8qi): Ditto.
10999         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11000         routines, add endian check.
11001         (pmpy2_even): Rename from pmpy2_r, add endian check.
11002         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11003         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11004         (vec_widen_smult_hi_v4hi): Ditto.
11005         (vec_widen_umult_lo_v4hi): Ditto.
11006         (vec_widen_umult_hi_v4hi): Ditto.
11007         (mulv2si3): Change endian checks.
11008         (sdot_prodv4hi): Rewrite with new calls.
11009         (udot_prodv4hi): New.
11010         (vec_pack_ssat_v4hi): Add endian check.
11011         (vec_pack_usat_v4hi): Ditto.
11012         (vec_pack_ssat_v2si): Ditto.
11013         (max1_even): Rename from max1_r, add endian check.
11014         (max1_odd): Rename from max1_l, add endian check.
11015         (*mux1_rev): Format change.
11016         (*mux1_mix): Ditto.
11017         (*mux1_shuf): Ditto.
11018         (*mux1_alt): Ditto.
11019         (*mux1_brcst_v8qi): Use new predicate.
11020         (vec_extract_evenv8qi): Remove endian check.
11021         (vec_extract_oddv8qi): Ditto.
11022         (vec_interleave_lowv4hi): Format change.
11023         (vec_interleave_highv4hi): Ditto.
11024         (mix2_even): Rename from mix2_r, add endian check.
11025         (mix2_odd): Rename from mux2_l, add endian check.
11026         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11027         (vec_extract_evenodd_helper): Format change.
11028         (vec_extract_evenv4hi): Remove endian check.
11029         (vec_extract_oddv4hi): Remove endian check.
11030         (vec_interleave_lowv2si): Format change.
11031         (vec_interleave_highv2si): Format change.
11032         (vec_initv2si): Remove endian check.
11033         (vecinit_v2si): Add endian check.
11034         (reduc_splus_v2sf): Add endian check.
11035         (reduc_smax_v2sf): Ditto.
11036         (reduc_smin_v2sf): Ditto.
11037         (vec_initv2sf): Remove endian check.
11038         (fpack): Add endian check.
11039         (fswap): Add endian check.
11040         (vec_interleave_highv2sf): Add endian check.
11041         (vec_interleave_lowv2sf): Add endian check.
11042         (fmix_lr): Add endian check.
11043         (vec_setv2sf): Format change.
11044         (*vec_extractv2sf_0_be): Use shift to extract operand.
11045         (*vec_extractv2sf_1_be): New.
11046         (vec_pack_trunc_v4hi): Add endian check.
11047         (vec_pack_trunc_v2si): Format change.
11048
11049 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11050
11051         PR inline-asm/23200
11052         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11053         do bb, locus and block comparison and disallow loads if it is not set.
11054         (stmt_is_replaceable_p): New function.
11055         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11056         callers.
11057         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11058         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11059         SSA_NAME_DEF_STMT.
11060         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11061
11062 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11063
11064         * config/rs6000/xilinx.opt: New.
11065         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11066
11067 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11068
11069         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11070
11071 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11072
11073         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11074         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11075         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11076         secondary_reload_info, xtensa_secondary_reload): Remove.
11077         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11078         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11079         (xtensa_preferred_reload_class): Make static. Change return and
11080         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11081         Use CONST_DOUBLE_P predicate.
11082         (xtensa_preferred_output_reload_class): New function.
11083         (xtensa_secondary_reload): Make static.
11084
11085 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11086
11087         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11088         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11089         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11090
11091 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11092
11093         PR middle-end/31490
11094         * output.h (SECTION_RELRO): Define.
11095         (SECTION_MACH_DEP): Adjust.
11096         (get_variable_section): New prototype.
11097         * varpool.c (varpool_finalize_named_section_flags): New function.
11098         (varpool_assemble_pending_decls): Call it.
11099         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11100         * cgraphunit.c (cgraph_output_in_order): Call
11101         varpool_finalize_named_section_flags.
11102         * varasm.c (get_section): Allow section flags conflicts between
11103         relro and read-only sections if the section hasn't been declared yet.
11104         Set SECTION_OVERRIDE after diagnosing section type conflict.
11105         (get_variable_section): No longer static.
11106         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11107         readonly sections that need relocations.
11108         (decl_readonly_section_1): New function.
11109         (decl_readonly_section): Use it.
11110
11111         Revert:
11112         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11113                     Steve Ellcey  <sje@cup.hp.com>
11114
11115         PR middle-end/31490
11116         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11117         if section attribute used.
11118
11119 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11120
11121         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11122         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11123         (darwin_init_sections): Remove assertion.
11124
11125 2011-02-03  Nick Clifton  <nickc@redhat.com>
11126
11127         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11128         lt and ge.
11129         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11130         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11131         instead of "n" and "pz".
11132         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11133         CC_FLAG_S.
11134
11135 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11136
11137         PR target/47312
11138         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11139         fma, expand FMA_EXPR as fma{,f,l} call.
11140
11141         PR lto/47274
11142         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11143         copy them into a unsigned char variable and pass address of it to
11144         lto_output_data_stream.
11145
11146         PR target/47564
11147         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11148         around backend_init_target and lang_dependent_init_target calls.
11149         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11150         (verify_cgraph_node): Don't call set_cfun here.  Use
11151         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11152         Set error_found for incorrectly represented calls to thunks.
11153
11154 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11155
11156         PR debug/43092
11157         PR rtl-optimization/43494
11158         * rtl.h (for_each_inc_dec_fn): New type.
11159         (for_each_inc_dec): Declare.
11160         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11161         (for_each_inc_dec_find_inc_dec): New fn.
11162         (for_each_inc_dec_find_mem): New fn.
11163         (for_each_inc_dec): New fn.
11164         * dse.c (struct insn_size): Remove.
11165         (replace_inc_dec, replace_inc_dec_mem): Remove.
11166         (emit_inc_dec_insn_before): New fn.
11167         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11168         (canon_address): Pass mem modes to cselib_lookup.
11169         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11170         (cselib_lookup_from_insn): Likewise.
11171         (cselib_subst_to_values): Likewise.
11172         * cselib.c (find_slot_memmode): New var.
11173         (cselib_find_slot): New fn.  Use it instead of
11174         htab_find_slot_with_hash everywhere.
11175         (entry_and_rtx_equal_p): Use find_slot_memmode.
11176         (autoinc_split): New fn.
11177         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11178         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11179         Deal with autoinc.  Special-case recursion into MEMs.
11180         (cselib_hash_rtx): Likewise.
11181         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11182         address and MEM modes.
11183         (cselib_subst_to_values): Add memmode, pass it on.
11184         Deal with autoinc.
11185         (cselib_lookup): Add memmode argument, pass it on.
11186         (cselib_lookup_from_insn): Add memmode.
11187         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11188         (struct cselib_record_autoinc_data): New.
11189         (cselib_record_autoinc_cb): New fn.
11190         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11191         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11192         (cselib_process_insn): ... here.
11193         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11194         to cselib_lookup.
11195         (add_uses): Likewise, also to cselib_subst_to_values.
11196         (add_stores): Likewise.
11197         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11198         cselib_subst_to_values.
11199         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11200         * gcse.c (do_local_cprop): Adjusted.
11201         * postreload.c (reload_cse_simplify_set): Adjusted.
11202         (reload_cse_simplify_operands): Adjusted.
11203         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11204
11205 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11206
11207         PR tree-optimization/45122
11208         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11209         unsafe assumptions when there's more than one loop exit.
11210
11211 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11212
11213         PR target/47272
11214         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11215         Document using vector double with the load/store builtins, and
11216         that the load/store builtins always use Altivec instructions.
11217
11218         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11219         to use altivec memory instructions, even on VSX.
11220         (vector_altivec_store_<mode>): Ditto.
11221
11222         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11223         function.
11224
11225         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11226         V2DF, V2DI support to load/store overloaded builtins.
11227
11228         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11229         altivec load/store builtins for V2DF/V2DI types.
11230
11231         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11232         set avoid indexed addresses on power6 if -maltivec.
11233         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11234         vector_altivec_load/vector_altivec_store builtins.
11235         (altivec_expand_st_builtin): Ditto.
11236         (altivec_expand_builtin): Add VSX memory builtins.
11237         (rs6000_init_builtins): Add V2DI types to internal types.
11238         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11239         load/store builtins.
11240         (rs6000_address_for_altivec): Insure memory address is appropriate
11241         for Altivec.
11242
11243         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11244         vec_vsx_ld and vec_vsx_st.
11245         (vsx_store_<mode>): Ditto.
11246
11247         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11248         variables to hold long long types for VSX vector memory builtins.
11249         (RS6000_BTI_unsigned_long_long): Ditto.
11250         (long_long_integer_type_internal_node): Ditti.
11251         (long_long_unsigned_type_internal_node): Ditti.
11252
11253         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11254         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11255         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11256
11257         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11258         short cuts.
11259         (vec_vsx_st): Ditto.
11260
11261 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11262
11263         * config/pa/pa-hpux10.opt: New.
11264         * config/hpux11.opt (pthread): New Driver option.
11265         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11266         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11267
11268 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11269
11270         * config/ia64/vms.opt: New.
11271         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11272
11273 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11274
11275         PR target/47580
11276         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11277         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11278         generator functions.
11279         (vsx_floatuns<VSi><mode>2): Ditto.
11280         (vsx_fix_trunc<mode><VSi>2): Ditto.
11281         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11282
11283 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11284
11285         * config/i386/djgpp.opt (posix): New Driver option.
11286
11287 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11288
11289         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11290         Move to the unsupported targets list.
11291
11292 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11293
11294         PR rtl-optimization/47525
11295         * df-scan.c: Update copyright years.
11296         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11297         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11298
11299 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11300
11301         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11302         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11303         (ASM_OUTPUT_ASCII): Remove.
11304         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11305
11306 2011-02-02  Jeff Law  <law@redhat.com>
11307
11308         PR middle-end/47543
11309         * reload.c (find_reloads_address): Handle reg+d address where both
11310         components are invalid by reloading the entire address.
11311
11312 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11313             Richard Guenther  <rguenther@suse.de>
11314
11315         PR tree-optimization/40979
11316         PR bootstrap/47044
11317         * passes.c (init_optimization_passes): After LIM call copy_prop
11318         and DCE to clean up.
11319         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11320
11321 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11322
11323         PR tree-optimization/47576
11324         PR tree-optimization/47555
11325         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11326         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11327         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11328         * tree-scalar-evolution.c (follow_ssa_edge): Use
11329         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11330
11331 2011-02-02  Richard Guenther  <rguenther@suse.de>
11332
11333         PR tree-optimization/47566
11334         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11335
11336 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11337
11338         PR debug/47106
11339         PR debug/47402
11340         * tree-inline.c (declare_return_variable): Remove unused caller
11341         variable.
11342
11343         PR debug/47106
11344         PR debug/47402
11345         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11346         * cfgexpand.c (account_used_vars_for_block): Use them.
11347         * tree-nrv.c (tree_nrv): Likewise.
11348         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11349         (dump_scope_block): Likewise.
11350         (remove_unused_locals): Likewise.
11351
11352         PR debug/47106
11353         PR debug/47402
11354         * tree-inline.c (declare_return_variable): Add result decl to
11355         local decls only once.
11356         * gimple-low.c (record_vars_into): Mark newly-created variables
11357         as referenced.
11358
11359 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11360
11361         PR debug/47498
11362         PR debug/47501
11363         PR debug/45136
11364         PR debug/45130
11365         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11366         debug insns.
11367         (no_real_insns_p, schedule_block, set_priorities): Drop special
11368         treatment of boundary debug insns.
11369         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11370         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11371         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11372         (BOUNDARY_DEBUG_INSN_P): Likewise.
11373         (SCHEDULE_DEBUG_INSN_P): Likewise.
11374         * sched-rgn.c (init_ready_list): Drop special treatment of
11375         boundary debug insns.
11376         * final.c (rest_of_clean_state): Clear notes' BB.
11377
11378 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11379
11380         * config/openbsd.opt (assert=): New Driver option.
11381
11382 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11383
11384         * config/i386/nto.opt: New.
11385         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11386
11387 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11388
11389         * config/i386/netware.opt: New.
11390         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11391
11392 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11393
11394         * config/interix.opt (posix): New Driver option.
11395
11396 2011-02-01  DJ Delorie  <dj@redhat.com>
11397
11398         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11399
11400         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11401         class for A0/A1.
11402
11403 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11404
11405         PR tree-optimization/47561
11406         * toplev.c (process_options): Print the Graphite flags.  Add
11407         flag_loop_flatten to the list of options requiring Graphite.
11408
11409 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11410
11411         * config/i386/cygming.opt (posix): New Driver option.
11412
11413 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11414
11415         * config/arm/vxworks.opt: New.
11416         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11417
11418 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11419
11420         * config/alpha/elf.opt: New.
11421         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11422         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11423
11424 2011-02-01  Richard Guenther  <rguenther@suse.de>
11425
11426         PR tree-optimization/47559
11427         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11428         store-motion on references that can throw.
11429
11430 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11431
11432         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11433         * tree-pass.h (TDF_CSELIB): New macro.
11434         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11435         cselib_lookup): Check for it rather than for TDF_DETAILS.
11436
11437 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11438
11439         PR driver/47547
11440         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11441         is HOST_BIT_BUCKET.
11442
11443         * opts.c (finish_options): Don't add x_aux_base_name if it is
11444         HOST_BIT_BUCKET.
11445
11446 2011-02-01  Richard Guenther  <rguenther@suse.de>
11447
11448         PR tree-optimization/47555
11449         Revert
11450         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11451
11452         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11453
11454 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11455
11456         PR gcc/46692
11457         * config/lm32/t-lm32: Add multilib for all CPU options.
11458
11459 2011-02-01  Richard Guenther  <rguenther@suse.de>
11460
11461         PR tree-optimization/47541
11462         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11463         sure to have a field at offset zero.
11464
11465 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11466
11467         * config/arc/arc.opt (EB, EL): New Driver options.
11468
11469 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11470
11471         * config/alpha/osf5.opt: New.
11472         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11473
11474 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11475
11476         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11477
11478 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11479
11480         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11481         -floop-interchange.
11482         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11483         is an alias of -floop-interchange and that it requires the
11484         Graphite infrastructure.
11485         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11486         flag_loop_interchange based on the value of flag_tree_loop_linear.
11487
11488 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11489             Richard Guenther  <rguenther@suse.de>
11490
11491         PR tree-optimization/47538
11492         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11493         type instead of r1type, except for comparisons.  For right
11494         shifts and comparisons punt if there are mismatches in
11495         sizetype vs. non-sizetype types.
11496
11497 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11498
11499         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11500         avx_runtime.
11501
11502 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11503
11504         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11505         version number.
11506         * configure: Regenerate.
11507
11508 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11509
11510         * configure.ac (gcc_cv_ld_static_option): Define.
11511         (gcc_cv_ld_dynamic_option): Define.
11512         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11513         instead.
11514         (HAVE_LD_STATIC_DYNAMIC): Update message.
11515         (LD_STATIC_OPTION): Define.
11516         (LD_DYNAMIC_OPTION): Define.
11517         * configure: Regenerate.
11518         * config.in: Regenerate.
11519         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11520         HAVE_LD_STATIC_DYNAMIC]: Use them.
11521
11522 2011-01-31  Nick Clifton  <nickc@redhat.com>
11523
11524         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11525         registers inside interrupt handlers if the handler is not a leaf
11526         function.
11527
11528 2011-01-31  Nick Clifton  <nickc@redhat.com>
11529
11530         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11531         reg_renumber returning an INVALID_REGNUM.
11532
11533 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11534
11535         PR libgcj/44341
11536         * doc/install.texi: Document host options discarded when cross
11537         configuring target libraries.
11538
11539 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11540
11541         Reverted:
11542         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11543         PR debug/45136
11544         PR debug/45130
11545         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11546         debug insns.
11547         (no_real_insns_p, schedule_block, set_priorities): Drop special
11548         treatment of boundary debug insns.
11549         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11550         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11551         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11552         (BOUNDARY_DEBUG_INSN_P): Likewise.
11553         (SCHEDULE_DEBUG_INSN_P): Likewise.
11554         * sched-rgn.c (init_ready_list): Drop special treatment of
11555         boundary debug insns.
11556         * final.c (rest_of_clean-state): Clear notes' BB.
11557
11558 2011-01-31  Alan Modra  <amodra@gmail.com>
11559
11560         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11561         toc relative expressions as we do in print_operand_address.
11562
11563 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11564
11565         * doc/extend.texi: Follow spelling conventions.
11566         * doc/invoke.texi: Fix a typo.
11567
11568 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11569
11570         * config/hpux11.opt: New.
11571         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11572         ia64*-*-hpux*): Use hpux11.opt.
11573
11574 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11575
11576         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11577         to tmake_file.
11578
11579 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11580
11581         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11582         support sites.
11583
11584 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11585
11586         * doc/install.texi (Binaries): Remove outdated reference for
11587         Motorola 68HC11/68HC12 downloads.
11588
11589 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11590
11591         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11592         Drepper's paper.
11593
11594 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11595
11596         PR bootstrap/47147
11597         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11598         used by NetBSD.
11599
11600 2011-01-28  Ahmad Sharif  <asharif@google.com>
11601
11602         * value-prof.c (check_counter): Corrected error message.
11603
11604 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11605
11606         * config/arm/arm.c (arm_legitimize_reload_address): New.
11607         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11608         arm_legitimize_reload_address.
11609         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11610
11611 2011-01-28  Ian Lance Taylor  <iant@google.com>
11612
11613         * godump.c (go_define): Ignore macros whose definitions include
11614         two adjacent operands.
11615
11616 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11617
11618         PR target/42894
11619         * varasm.c (force_const_mem): Store copy of x in desc->constant
11620         instead of x itself.
11621         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11622         itself into REG_EQUAL note.
11623
11624 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11625
11626         * config/freebsd.opt (posix, rdynamic): New Driver options.
11627
11628 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11629
11630         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11631         -Bstatic/-Bdynamic.
11632         * configure: Regenerate.
11633
11634 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
11635
11636         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11637         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11638
11639 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
11640
11641         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11642         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11643         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11644         (s390_preferred_reload_class): Make static. Change return and
11645         'rclass' argument type to reg_class_t.
11646
11647 2011-01-27  Jan Hubicka  <jh@suse.cz>
11648
11649         PR middle-end/46949
11650         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11651         (process_function_and_variable_attributes): Check defined weakrefs.
11652
11653 2011-01-27  Martin Jambor  <mjambor@suse.cz>
11654
11655         PR tree-optimization/47228
11656         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11657         build_ref_for_offset.
11658
11659 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11660
11661         * config/spu/spu-elf.h (ASM_SPEC): Remove.
11662
11663 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
11664
11665         PR rtl-optimization/46856
11666         * postreload.c (reload_combine_recognize_const_pattern): Do not
11667         separate cc0 setter and user on cc0 targets.
11668
11669 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
11670
11671         PR c/43082
11672         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11673         passed a VOID_TYPE expression, immediately emit an error and
11674         return error_mark_node.
11675
11676 2011-01-26  Jeff Law  <law@redhat.com>
11677
11678         PR rtl-optimization/47464
11679         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11680         rather than may_trap_p as needed.
11681
11682 2011-01-26  DJ Delorie  <dj@redhat.com>
11683
11684         PR rtl-optimization/46878
11685         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11686         setter/user dependency as well.
11687
11688 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11689
11690         PR rtl-optimization/44469
11691         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11692         after removing trivially dead basic blocks.
11693
11694 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11695
11696         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11697         * config/frv/frv.h (LINK_SPEC): Likewise.
11698         * config/i386/netware.h (LINK_SPEC): Likewise.
11699         * config/m68k/linux.h (ASM_SPEC): Likewise.
11700         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11701         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11702         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11703         * config/sparc/linux.h (ASM_SPEC): Likewise.
11704         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11705         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11706
11707 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11708
11709         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11710         * config/frv/frv.h (ASM_SPEC): Likewise.
11711         * config/m68k/linux.h (ASM_SPEC): Likewise.
11712         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11713         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11714         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11715         * config/sparc/linux.h (ASM_SPEC): Likewise.
11716         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11717         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11718
11719 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11720
11721         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11722         * config/frv/frv.h (LINK_SPEC): Likewise.
11723         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11724
11725 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11726
11727         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11728         * config/frv/frv.h (ASM_SPEC): Likewise.
11729         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11730         * config/m68k/linux.h (ASM_SPEC): Likewise.
11731         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11732         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11733         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11734         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11735         * config/sparc/linux.h (ASM_SPEC): Likewise.
11736         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11737         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11738         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11739
11740 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
11741
11742         PR target/46997
11743         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11744         (*mux2): Ditto.
11745         (vec_extract_evenodd_help): Ditto.
11746         (vec_extract_evenv4hi): Ditto.
11747         (vec_extract_oddv4hi): Ditto.
11748         (vec_interleave_lowv2si): Ditto.
11749         (vec_interleave_highv2si): Ditto.
11750         (vec_extract_evenv2si): Ditto.
11751         (vec_extract_oddv2si: Ditto.
11752         (vec_pack_trunc_v2si): Ditto.
11753
11754 2011-01-22  Jan Hubicka  <jh@suse.cz>
11755
11756         PR target/47237
11757         * cgraph.h (cgraph_local_info): New field can_change_signature.
11758         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11759         signature can change.
11760         (ipcp_estimate_growth): Call sequence simplify only if calle signature
11761         can change.
11762         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11763         (cgraph_function_versioning): We can not change signature of functions
11764         that don't allow that.
11765         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11766         (lto_input_node): Likewise.
11767         * ipa-inline.c (compute_inline_parameters): Compute
11768         local.can_change_signature.
11769         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11770         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11771         functions that can not change signature.
11772         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11773         init_cumulative_args): Do not use local calling conventions
11774         for functions that can not change signature.
11775
11776 2011-01-22  Jan Hubicka  <jh@suse.cz>
11777
11778         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11779
11780 2011-01-26  Richard Guenther  <rguenther@suse.de>
11781
11782         PR tree-optimization/47190
11783         * cgraphunit.c (process_common_attributes): New function.
11784         (process_function_and_variable_attributes): Use it.
11785
11786 2011-01-26  Richard Guenther  <rguenther@suse.de>
11787
11788         PR lto/47423
11789         * cgraphbuild.c (record_eh_tables): Record reference to personality
11790         function.
11791
11792 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
11793
11794         PR debug/45454
11795         * sel-sched.c (moveup_expr): Don't let debug insns prevent
11796         non-debug insns from moving up.
11797
11798 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11799
11800         PR target/40125
11801         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11802         t-dlldir{,-x} fragment for build and add it to tmake_file.
11803         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11804         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11805         * config/i386/t-dlldir: New file.
11806         (SHLIB_DLLDIR): Define.
11807         * config/i386/t-dlldir-x: New file.
11808         (SHLIB_DLLDIR): Define.
11809         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11810         (SHLIB_INSTALL): Use it.
11811
11812 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
11813
11814         PR target/47246
11815         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11816         lower bound of the allowed Thumb-2 coprocessor load/store
11817         index range to -256. Add explaining comment.
11818
11819 2011-01-25  Ian Lance Taylor  <iant@google.com>
11820
11821         * godump.c (go_define): Improve lexing of macro expansion to only
11822         accept expressions which match Go spec.
11823
11824 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11825
11826         PR c++/43601
11827         * tree.c (handle_dll_attribute): Handle it.
11828         * doc/extend.texi (@item dllexport): Mention it.
11829         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11830
11831 2011-01-25  Ian Lance Taylor  <iant@google.com>
11832
11833         PR tree-optimization/26854
11834         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11835         (decl_jump_unsafe): Move higher in file, with no other change.
11836         (bind): Set has_jump_unsafe_decl if appropriate.
11837         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11838         (check_earlier_gotos): Likewise.
11839         (c_check_switch_jump_warnings): Likewise.
11840
11841 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
11842
11843         * doc/invoke.texi (Warning Options): Add missing hyphen.
11844         (-fprofile-dir): Minor grammatical fixes.
11845         (-fbranch-probabilities): Likewise.
11846
11847 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11848
11849         PR debug/45136
11850         PR debug/45130
11851         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11852         debug insns.
11853         (no_real_insns_p, schedule_block, set_priorities): Drop special
11854         treatment of boundary debug insns.
11855         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11856         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11857         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11858         (BOUNDARY_DEBUG_INSN_P): Likewise.
11859         (SCHEDULE_DEBUG_INSN_P): Likewise.
11860         * sched-rgn.c (init_ready_list): Drop special treatment of
11861         boundary debug insns.
11862         * final.c (rest_of_clean-state): Clear notes' BB.
11863
11864 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11865
11866         * Makefile.in (LAMBDA_H): Removed.
11867         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11868         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11869         lambda-trans.o, and tree-loop-linear.o.
11870         (lto-symtab.o): Remove dependence on LAMBDA_H.
11871         (tree-loop-linear.o): Remove rule.
11872         (lambda-mat.o): Same.
11873         (lambda-trans.o): Same.
11874         (lambda-code.o): Same.
11875         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11876         (tree-vect-slp.o): Same.
11877         * hwint.h (gcd): Moved here.
11878         (least_common_multiple): Same.
11879         * lambda-code.c: Removed.
11880         * lambda-mat.c: Removed.
11881         * lambda-trans.c: Removed.
11882         * lambda.h: Removed.
11883         * tree-loop-linear.c: Removed.
11884         * lto-symtab.c: Do not include lambda.h.
11885         * omega.c (gcd): Removed.
11886         * passes.c (init_optimization_passes): Remove pass_linear_transform.
11887         * tree-data-ref.c (print_lambda_vector): Moved here.
11888         (lambda_vector_copy): Same.
11889         (lambda_matrix_copy): Same.
11890         (lambda_matrix_id): Same.
11891         (lambda_vector_first_nz): Same.
11892         (lambda_matrix_row_add): Same.
11893         (lambda_matrix_row_exchange): Same.
11894         (lambda_vector_mult_const): Same.
11895         (lambda_vector_negate): Same.
11896         (lambda_matrix_row_negate): Same.
11897         (lambda_vector_equal): Same.
11898         (lambda_matrix_right_hermite): Same.
11899         * tree-data-ref.h: Do not include lambda.h.
11900         (lambda_vector): Moved here.
11901         (lambda_matrix): Same.
11902         (dependence_level): Same.
11903         (lambda_transform_legal_p): Removed declaration.
11904         (lambda_collect_parameters): Same.
11905         (lambda_compute_access_matrices): Same.
11906         (lambda_vector_gcd): Same.
11907         (lambda_vector_new): Same.
11908         (lambda_vector_clear): Same.
11909         (lambda_vector_lexico_pos): Same.
11910         (lambda_vector_zerop): Same.
11911         (lambda_matrix_new): Same.
11912         * tree-flow.h (least_common_multiple): Removed declaration.
11913         * tree-parloops.c (lambda_trans_matrix): Moved here.
11914         (LTM_MATRIX): Same.
11915         (LTM_ROWSIZE): Same.
11916         (LTM_COLSIZE): Same.
11917         (LTM_DENOMINATOR): Same.
11918         (lambda_trans_matrix_new): Same.
11919         (lambda_matrix_vector_mult): Same.
11920         (lambda_transform_legal_p): Same.
11921         * tree-pass.h (pass_linear_transform): Removed declaration.
11922         * tree-ssa-loop.c (tree_linear_transform): Removed.
11923         (gate_tree_linear_transform): Removed.
11924         (pass_linear_transform): Removed.
11925         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11926         flag_loop_interchange.
11927
11928 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11929
11930         PR tree-optimization/47265
11931         PR tree-optimization/47443
11932         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11933         if name still has some uses.
11934
11935 2011-01-25  Martin Jambor  <mjambor@suse.cz>
11936
11937         PR tree-optimization/47382
11938         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11939         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11940
11941 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
11942
11943         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11944         sjlj_except_unwind_info.
11945
11946 2011-01-25  Richard Guenther  <rguenther@suse.de>
11947
11948         PR tree-optimization/47426
11949         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11950         visible functions results escape.
11951
11952 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11953
11954         PR target/45701
11955         * config/arm/arm.c (any_sibcall_uses_r3): New function.
11956         (arm_get_frame_offsets): Use it.
11957
11958 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11959             Jakub Jelinek  <jakub@redhat.com>
11960
11961         PR tree-optimization/47271
11962         * tree-if-conv.c (bb_postdominates_preds): New.
11963         (if_convertible_bb_p): Call bb_postdominates_preds.
11964         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11965         (predicate_scalar_phi): Call bb_postdominates_preds.
11966
11967 2011-01-25  Nick Clifton  <nickc@redhat.com>
11968
11969         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11970         * config/rx/rx.c (rx_function_value): Likewise.
11971         (rx_promote_function_mode): Likewise.
11972         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11973         in order to make it legitimate.
11974         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11975         make sure that the first operand is the same as the result register.
11976         (addsi3_unspec): Delete.
11977         (subdi3): Do not accept immediate operands.
11978         (subdi3_internal): Likewise.
11979
11980 2011-01-25  Jeff Law  <law@redhat.com>
11981
11982         PR rtl-optimization/37273
11983         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11984         handle them like argument loads from stack slots.  Do not double
11985         count memory for memory constants and argument loads from stack slots.
11986
11987 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11988
11989         PR tree-optimization/47427
11990         PR tree-optimization/47428
11991         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11992         coalesce if the new root var would be TREE_READONLY.
11993
11994 2011-01-25  Richard Guenther  <rguenther@suse.de>
11995
11996         PR middle-end/47414
11997         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11998         correct type for TBAA.
11999
12000 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12001
12002         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12003         (close_phi_written_to_memory): Call for_each_index with
12004         dr_indices_valid_in_loop.
12005
12006 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12007
12008         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12009         when it is initialized.
12010
12011 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12012
12013         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12014         call to graphite_find_data_references_in_stmt.
12015         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12016         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12017         call to graphite_find_data_references_in_stmt.
12018         (analyze_drs_in_stmts): Same.
12019         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12020         in which the scalar analysis of indices is performed.
12021         (create_data_ref): Same.  Update call to dr_analyze_indices.
12022         (find_data_references_in_stmt): Update call to create_data_ref.
12023         (graphite_find_data_references_in_stmt): Same.
12024         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12025         declaration.
12026         (create_data_ref): Same.
12027         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12028         call to create_data_ref.
12029
12030 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12031
12032         * graphite-sese-to-poly.c (build_poly_scop): Move
12033         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12034
12035 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12036
12037         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12038         VAR_DECL, PARM_DECL, and RESULT_DECL.
12039
12040 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12041
12042         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12043         in a reduction PBB.
12044         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12045         that have already been marked as PBB_IS_REDUCTION.
12046
12047 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12048
12049         * graphite-scop-detection.c (same_close_phi_node): New.
12050         (remove_duplicate_close_phi): New.
12051         (make_close_phi_nodes_unique): New.
12052         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12053
12054 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12055
12056         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12057         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12058         of both data references to be the same.
12059
12060 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12061
12062         * graphite-dependences.c (build_lexicographical_constraint): Remove
12063         the gdim parameter.
12064         (build_lexicographical_constraint): Adjust call to
12065         ppl_powerset_is_empty.
12066         (dependence_polyhedron): Same.
12067         (graphite_legal_transform_dr): Same.
12068         (graphite_carried_dependence_level_k): Same.
12069         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12070         parameter.
12071         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12072
12073 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12074
12075         * graphite-sese-to-poly.c
12076         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12077         (close_phi_written_to_memory): New.
12078         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12079         and unshare_expr.
12080
12081 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12082
12083         * doc/install.texi: Update the expected version number of PPL to 0.11.
12084         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12085         #if PPL_VERSION_MINOR < 11.
12086
12087 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12088
12089         * graphite-dependences.c: Include graphite-cloog-util.h.
12090         (new_poly_ddr): Inlined into dependence_polyhedron.
12091         (free_poly_ddr): Moved close by new_poly_ddr.
12092         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12093         Early return NULL when ppl_powerset_is_empty returns true.
12094         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12095         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12096         (graphite_legal_transform_dr): Call new_poly_ddr.
12097         (graphite_carried_dependence_level_k): Same.
12098         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12099         (dot_transformed_deps_stmt_1): Removed.
12100         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12101         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12102         (dot_deps_1): Call dot_deps_2.
12103         * Makefile.in (graphite-dependences.o): Add missing dependence on
12104         graphite-cloog-util.h.
12105
12106 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12107
12108         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12109         (build_lexicographical_constraint): Same.
12110         (dependence_polyhedron_1): Same.
12111         (graphite_legal_transform_dr): Same.
12112         (graphite_carried_dependence_level_k): Same.
12113         * graphite-ppl.c (ppl_powerset_is_empty): New.
12114         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12115         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12116
12117 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12118
12119         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12120         the "a followed by b" relation and document it.
12121
12122 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12123
12124         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12125         iteration when the bag of constraints is empty.
12126
12127 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12128
12129         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12130
12131 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12132
12133         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12134         nest and two loop depths as parameters.
12135         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12136         lst_perfect_nestify.
12137
12138 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12139
12140         * graphite-dependences.c (print_pddr): Call
12141         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12142
12143 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12144
12145         * graphite-ppl.c (debug_gmp_value): New.
12146         * graphite-ppl.h (debug_gmp_value): Declared.
12147
12148 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12149
12150         * doc/install.texi: Document availability of cloog-0.16.
12151
12152 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12153
12154         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12155         invalid postdominance info.
12156
12157 2011-01-24  Jan Hubicka  <jh@suse.cz>
12158
12159         PR c/21659
12160         * doc/extend.texi (weak pragma): Drop claim that it must
12161         appear before definition.
12162         * varasm.c (merge_weak, declare_weak): Only sanity check
12163         that DECL is not output at a time it is declared weak.
12164
12165 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12166
12167         * machmode.def: Fixed comments.
12168
12169 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12170
12171         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12172
12173 2011-01-24  Paul Koning  <ni1d@arrl.net>
12174
12175         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12176         WORDS_BIG_ENDIAN.
12177
12178 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12179
12180         PR target/46519
12181         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12182         (block_info): Add scanned and prev.
12183         (move_or_delete_vzeroupper_2): Return if the basic block
12184         has been scanned and the upper 128bit state is unchanged
12185         from the last scan.
12186         (move_or_delete_vzeroupper_1): Return true if the exit
12187         state is changed.
12188         (move_or_delete_vzeroupper): Visit basic blocks using the
12189         work-list based algorithm based on vt_find_locations in
12190         var-tracking.c.
12191
12192         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12193
12194 2011-01-24  Nick Clifton  <nickc@redhat.com>
12195
12196         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12197         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12198         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12199         then define __v850e1__.
12200         * doc/invoke.texi: Document -mv850es.
12201
12202 2011-01-24  Richard Henderson  <rth@redhat.com>
12203
12204         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12205         compound unordered comparisons.
12206         * config/rx/rx.c (rx_split_fp_compare): Remove.
12207         * config/rx/rx-protos.h: Update.
12208         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12209         (cbranchsf4): Don't call rx_split_fp_compare.
12210         (*cbranchsf4): Use rx_split_cbranch.
12211         (*cmpsf): Don't accept "i" constraint.
12212         (*conditional_branch): Only valid after reload.
12213         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12214
12215 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12216
12217         PR target/47385
12218         * config/rs6000/altivec.md (vector constant splitters): Add
12219         support for creating vector single precision constants if -mvsx is
12220         used and we would create the constant using Altivec primitives.
12221
12222 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12223             Richard Sandiford  <rdsandiford@googlemail.com>
12224
12225         PR rtl-optimization/47166
12226         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12227         mechanism for PRE_MODIFY and POST_MODIFY.
12228         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12229         reloadreg.
12230
12231 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12232
12233         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12234
12235 2011-01-22  Jan Hubicka  <jh@suse.cz>
12236
12237         PR lto/47333
12238         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12239
12240 2011-01-22  Jan Hubicka  <jh@suse.cz>
12241
12242         PR tree-optimization/43884
12243         PR lto/44334
12244         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12245         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12246
12247 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12248
12249         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12250         * config/s390/s390.c (s390_register_move_cost,
12251         s390_memory_move_cost): New.
12252         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12253
12254 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12255
12256         PR middle-end/47401
12257         * except.c (sjlj_assign_call_site_values): Move setting the
12258         crtl->uses_eh_lsda flag to ...
12259         (sjlj_mark_call_sites): ... here.
12260         (sjlj_emit_function_enter): Support NULL dispatch label.
12261         (sjlj_build_landing_pads): In a function with no landing pads
12262         that still has must-not-throw regions, generate code to register
12263         a personality function with empty LSDA.
12264
12265 2011-01-21  Richard Henderson  <rth@redhat.com>
12266
12267         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12268
12269         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12270
12271         * compare-elim.c: New file.
12272         * Makefile.in (OBJS-common): Add it.
12273         (compare-elim.o): New.
12274         * common.opt (fcompare-elim): New.
12275         * opts.c (default_options_table): Add OPT_fcompare_elim.
12276         * tree-pass.h (pass_compare_elim_after_reload): New.
12277         * passes.c (init_optimization_passes): Add it.
12278         * recog.h: Protect against re-inclusion.
12279         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12280         * doc/invoke.texi (-fcompare-elim): Document it.
12281         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12282         * doc/tm.texi: Rebuild.
12283
12284 2011-01-22  Nick Clifton  <nickc@redhat.com>
12285
12286         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12287         rx_split_fp_compare.
12288
12289 2011-01-22  Nick Clifton  <nickc@redhat.com>
12290
12291         * config/rx/rx.md (UNSPEC_CONST): New.
12292         (deallocate_and_return): Wrap the amount popped off the stack in
12293         an UNSPEC_CONST in order to stop it being rejected by
12294         -mmax-constant-size.
12295         (pop_and_return): Add a "(return)" rtx.
12296         (call): Drop the immediate operand.
12297         (call_internal): Likewise.
12298         (call_value): Likewise.
12299         (call_value_internal): Likewise.
12300         (sibcall_internal): Likewise.
12301         (sibcall_value_internal): Likewise.
12302         (sibcall): Likewise.  Generate an explicit call using
12303         sibcall_internal.
12304         (sibcall_value): Likewise.
12305         (mov<>): FAIL if a constant operand is not legitimate.
12306         (addsi3_unpsec): New pattern.
12307
12308         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12309         (ok_for_max_constant): New function.
12310         (gen_safe_add): New function.
12311         (rx_expand_prologue): Use gen_safe_add.
12312         (rx_expand_epilogue): Likewise.
12313         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12314         UNSPEC CONSTs.
12315
12316 2011-01-21  Jeff Law  <law@redhat.com>
12317
12318         PR tree-optimization/47053
12319         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12320         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12321         statements are deleted.
12322         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12323         is nonempty, then purge dead edges and cleanup the CFG.
12324
12325 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12326
12327         PR debug/47402
12328         Temporarily revert:
12329         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12330         PR debug/47106
12331         * tree-dfa.c (create_var_ann): Mark variable as used.
12332
12333 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12334
12335         PR middle-end/45566
12336         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12337         notes from other section in hot/cold partitioning even if
12338         last_action is -3.  Increment call_site_base.
12339
12340         PR rtl-optimization/47366
12341         * fwprop.c (forward_propagate_into): Return bool.  If
12342         any changes are made, -fnon-call-exceptions is used and
12343         REG_EH_REGION note is present, call purge_dead_edges
12344         and return true if it purged anything.
12345         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12346         any EH edges were purged.
12347
12348 2011-01-21  Jeff Law  <law@redhat.com>
12349
12350         PR rtl-optimization/41619
12351         * caller-save.c (setup_save_areas): Break out code to determine
12352         which hard regs are live across calls by examining the reload chains
12353         so that it is always used.
12354         Eliminate code which checked REG_N_CALLS_CROSSED.
12355
12356 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12357
12358         PR tree-optimization/47355
12359         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12360         NOP has non-debug uses beyond PHIs in new_bb.
12361
12362 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12363
12364         PR debug/47106
12365         * cfgexpand.c (account_used_vars_for_block): Only account vars
12366         that are annotated as used.
12367         (estimated_stack_frame_size): Don't set TREE_USED.
12368         * tree-dfa.c (create_var_ann): Mark variable as used.
12369
12370 2011-01-21  Richard Guenther  <rguenther@suse.de>
12371
12372         PR middle-end/47395
12373         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12374
12375 2011-01-21  Richard Guenther  <rguenther@suse.de>
12376
12377         PR tree-optimization/47365
12378         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12379         (vn_reference_lookup_pieces): Adjust.
12380         (vn_reference_lookup): Likewise.
12381         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12382         (vn_reference_lookup_3): Only look through kills if in
12383         VN_WALKREWRITE mode.
12384         (vn_reference_lookup_pieces): Adjust.
12385         (vn_reference_lookup): Likewise.
12386         (visit_reference_op_load): Likewise.
12387         (visit_reference_op_store): Likewise.
12388         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12389         (compute_avail): Likewise.
12390         (eliminate): Likewise.
12391
12392 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12393
12394         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12395         DECL_IGNORED_P non-reg vars if they are used.
12396
12397         PR tree-optimization/47391
12398         * varpool.c (const_value_known_p): Return false if
12399         decl is volatile.
12400
12401 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12402
12403         PR bootstrap/47215
12404         * config/i386/i386.c (ix86_local_alignment): Handle
12405         case for va_list_type_node is nil.
12406         (ix86_canonical_va_list_type): Likewise.
12407
12408 2011-01-21  Alan Modra  <amodra@gmail.com>
12409
12410         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12411         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12412
12413 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12414
12415         * config/arm/arm.md (define_attr type): Rename f_load
12416         and f_store to f_fpa_load and f_fpa_store. Update.
12417         (write_conflict): Deal with rename fallout.
12418         (*push_fp_multi): Likewise.
12419         * config/arm/fpa.md (f_load): Use f_fpa_load.
12420         (f_store): Use f_fpa_store.
12421         (*movsf_fpa): Likewise.
12422         (*movdf_fpa): Likewise.
12423         (*movxf_fpa): Likewise.
12424         (*thumb2_movsf_fpa): Likewise.
12425         (*thumb2_movdf_fpa): Likewise.
12426         (*thumb2_movxf_fpa): Likewise.
12427         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12428         f_loadd and f_stored.
12429         (*thumb2_movdi_vfp): Likewise.
12430         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12431         (*thumb2_movsi_vfp): Likewise.
12432         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12433         Use f_loads instead of f_load.
12434         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12435
12436 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12437
12438         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12439         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12440         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12441         (xtensa_mode_dependent_address_p): New function.
12442         (constantpool_address_p): Make static. Change return type to bool.
12443         Change argument type to const_rtx. Use CONST_INT_P predicate.
12444
12445 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12446
12447         PR debug/46583
12448         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12449
12450 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12451
12452         PR debug/47283
12453         * cfgexpand.c (expand_debug_expr): Instead of generating
12454         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12455         etc. handling.
12456
12457 2011-01-20  Richard Guenther  <rguenther@suse.de>
12458
12459         PR middle-end/47370
12460         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12461         the pointer operand of MEM_REFs.
12462
12463 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12464
12465         PR tree-optimization/46130
12466         * ipa-split.c (consider_split): If return_bb contains non-virtual
12467         PHIs other than for retval or if split_function would not adjust it,
12468         refuse to split.
12469
12470 2011-01-20  Richard Guenther  <rguenther@suse.de>
12471
12472         PR tree-optimization/47167
12473         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12474         Revert previous change, only avoid enumeral type changes.
12475
12476 2011-01-19  Mike Stump  <mikestump@comcast.net>
12477
12478         * doc/tm.texi.in (BRANCH_COST): Englishify.
12479         * doc/tm.texi (BRANCH_COST): Likewise.
12480
12481 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12482
12483         PR c++/47291
12484         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12485         (gen_scheduled_generic_parms_dies): New functions.
12486         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12487         generation for the end of CU compilation.
12488         (dwarf2out_finish): Generate template parameters DIEs here.
12489
12490 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12491
12492         PR debug/46240
12493         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12494         debug bind stmt on merge edges.
12495
12496 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12497
12498         PR debug/47079
12499         PR debug/46724
12500         * function.c (instantiate_expr): Instantiate incoming rtl of
12501         implicit arguments, and recurse on VALUE_EXPRs.
12502         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12503         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12504
12505 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12506
12507         * c-parser.c (c_parser_for_statement): Initialize
12508         collection_expression.
12509
12510 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12511
12512         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12513
12514 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12515
12516         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12517         (LINK_SHLIB_SPEC): Don't use %(link_path).
12518         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12519
12520 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12521
12522         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12523         (NO_SHARED_LIB_SUPPORT): Remove.
12524         (LINK_SHLIB_SPEC): Remove one conditional definition.
12525
12526 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12527
12528         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12529         %{call_shared}.
12530         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12531         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12532         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12533         %{call_shared} and conditionals on these options not being passed.
12534         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12535         %{call_shared}.
12536
12537 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12538
12539         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12540         simplify.
12541
12542         * ipa-split.c: Spelling fixes.
12543
12544 2011-01-19  Richard Henderson  <rth@redhat.com>
12545
12546         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12547         (*mulsi3): Likewise.
12548
12549         * longlong.h [__mn10300__] (count_leading_zeros): New.
12550         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12551         [__mn10300__] (add_ssaaaa, subddmmss): New.
12552         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12553         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12554
12555 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12556
12557         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12558
12559 2011-01-19  Richard Henderson  <rth@redhat.com>
12560
12561         * config/mn10300/mn10300.md (addsi3_flags): New.
12562         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12563         (subsi3_flags, subc_internal, subdi3): New.
12564         (subdi3_internal, *subdi3_degenerate): New.
12565         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12566
12567         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12568         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12569         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12570         * config/mn10300/mn10300-protos.h: Update.
12571         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12572         (return_ret): Likewise.  Rename from return_internal_regs.
12573         (return_internal): Remove.
12574
12575         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12576         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12577         (mn10300_legitimate_constant_p): Likewise.
12578         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12579         (mn10300_frame_size): New.
12580         (mn10300_expand_prologue): Use it.
12581         (mn10300_expand_epilogue): Likewise.
12582         (mn10300_initial_offset): Likewise.
12583         * config/mn10300/mn10300-protos.h: Update.
12584         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12585         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12586         (prologue, epilogue, return_internal): Tidy output code.
12587         (mn10300_store_multiple_operation, return): Likewise.
12588         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12589         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12590         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12591         (load_pic, am33_load_pic): New.
12592         (mn10300_load_pic0, mn10300_load_pic1): New.
12593
12594         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12595         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12596         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12597         (cc_flags_for_mode, cc_flags_for_code): New.
12598         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12599         overflow flag is not valid.  Validate that the flags we need
12600         for the comparison are valid.
12601         (mn10300_output_cmp): Remove.
12602         (mn10300_output_add): New.
12603         (mn10300_select_cc_mode): Use cc_flags_for_code.
12604         (mn10300_split_cbranch): New.
12605         (mn10300_match_ccmode): New.
12606         (mn10300_split_and_operand_count): New.
12607         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12608         to the function.
12609         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12610         (addsi3): ... here.  Use mn10300_output_add.
12611         (*addsi3_flags): New.
12612         (*am33_subsi3, *mn10300_subsi3): Merge...
12613         (subsi3): ... here.  Use attribute isa.
12614         (*subsi3_flags): New.
12615         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12616         when possible.
12617         (*am33_andsi3, *mn10300_andsi3): Merge...
12618         (andsi3): ... here.
12619         (*andsi3_flags): New.
12620         (andsi3 splitters): New.
12621         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12622         (iorsi3): ... here.
12623         (*iorsi3_flags): New.
12624         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12625         (xorsi3): ... here.
12626         (*xorsi3_flags): New.
12627         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12628         (one_cmplsi2): ... here.
12629         (*one_cmplsi2_flags): New.
12630         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
12631         instead of "dax" in constraints.  Use mn10300_split_cbranch.
12632         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
12633         use matching constraints to eliminate a self-comparison.
12634         (*integer_conditional_branch): Rename from integer_conditional_branch.
12635         Use int_mode_flags to match CC_REG.
12636         (*cbranchsi4_btst, *btstsi): New.
12637         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
12638         mn10300_split_cbranch.
12639         (*am33_cmpsf): Rename from am33_cmpsf.
12640         (*float_conditional_branch): Rename from float_conditional_branch.
12641         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12642         (zero_extendqisi2): ... here.
12643         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12644         (zero_extendhisi2): ... here.
12645         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12646         (extendqisi2): ... here.
12647         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12648         (extendhisi2): ... here.
12649         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12650         (ashlsi3): ... here.
12651         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12652         (lshrsi3): ... here.
12653         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12654         (ashrsi3): ... here.
12655         (consecutive add peephole): Remove.
12656         * config/mn10300/predicates.md (label_ref_operand): New.
12657         (int_mode_flags): New.
12658         (CCZN_comparison_operator): New.
12659
12660         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12661         (throughput_42_latency_43): New reservation.
12662         (mulsidi3, umulsidi3): New expanders.
12663         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
12664         the MDR register to allocation; separately allocate the low and
12665         high parts of the DImode result.
12666         (umulsidi3_internal): Similarly.
12667         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12668         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
12669         (udivsi3, umodsi3): Remove.
12670         (udivmodsi4, divmodsi4): New expanders.
12671         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
12672         (*divmodsi4): Simiarly.
12673         (ext_internal): New.
12674
12675         * config/mn10300/constraints.md ("z"): New constraint.
12676         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12677         (FIXED_REGISTERS): Don't fix MDR.
12678         (CALL_USED_REGSITERS): Reformat nicely.
12679         (REG_ALLOC_ORDER): Add MDR.
12680         (enum regclass): Add MDR_REGS.
12681         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12682         (IRA_COVER_CLASSES): Add MDR_REGS.
12683         (REGNO_REG_CLASS): Handle MDR_REG.
12684         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12685         (mn10300_register_move_cost): Likewise.
12686         * config/mn10300/mn10300.md (MDR_REG): New.
12687         (*movsi_internal): Handle moves to/from MDR_REGS.
12688
12689         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12690         POST_MODIFY.
12691         (mn10300_secondary_reload): Tidy combination reload classes.
12692         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12693         addresses for AM33.  Allow symbolic offsets for reg+imm.
12694         (mn10300_regno_in_class_p): New.
12695         (mn10300_legitimize_reload_address): New.
12696         * config/mn10300/mn10300.h (enum reg_class): Remove
12697         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12698         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
12699         SP_OR_GENERAL_REGS.
12700         (REG_CLASS_NAMES): Update to match.
12701         (REG_CLASS_CONTENTS): Likewise.
12702         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12703         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12704         (REGNO_IN_RANGE_P): Remove.
12705         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12706         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12707         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12708         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12709         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12710         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12711         (REGNO_GENERAL_P): New.
12712         (HAVE_POST_MODIFY_DISP): New.
12713         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12714         (LEGITIMIZE_RELOAD_ADDRESS): New.
12715         * config/mn10300/mn10300-protos.h: Update.
12716
12717         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12718         DATA_REGS for AM33 stack-pointer destination.
12719         (mn10300_preferred_output_reload_class): Likewise.
12720         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12721         into a form appropriate for ...
12722         (TARGET_SECONDARY_RELOAD): New.
12723         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12724         * config/mn10300/mn10300-protos.h: Update.
12725         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12726         reload_insi; use the "A" constraint for the scratch; handle AM33
12727         moves of sp to non-address registers.
12728
12729         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12730         (*movqi_internal): ... here.
12731         (*am33_movhi, *mn10300_movhi): Merge into...
12732         (*movhi_internal): ... here.
12733         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
12734         as the source/destination of moves from/to SP.
12735         (movsf): Only allow for AM33-2.
12736         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12737         any integer constant constraint.  Only allow for AM33-2.  Tidy
12738         all of the alternative outputs.
12739         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12740         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
12741         for MN103.
12742         (udivsi3, umodsi3): New patterns for MN103 only.
12743
12744 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
12745
12746         * doc/tm.texi.in: Spell out that a lack of register class unions
12747         can lead to ICEs.
12748         * doc/tm.texi: Regenerate.
12749
12750 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12751
12752         PR rtl-optimization/47337
12753         * dce.c (check_argument_store): New function.
12754         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
12755
12756         PR tree-optimization/47290
12757         * tree-eh.c (infinite_empty_loop_p): New function.
12758         (cleanup_empty_eh): Use it.
12759
12760 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
12761
12762         PR target/46997
12763         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12764         (a64_expand_widen_sum): Ditto.
12765         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12766         (vec_extract_evenodd_help): Ditto.
12767         (vec_extract_evenv4hi): Ditto.
12768         (vec_extract_oddv4hi): Ditto.
12769         (vec_extract_evenv2si): Ditto.
12770         (vec_extract_oddv2si): Ditto.
12771         (vec_extract_evenv2sf): Ditto.
12772         (vec_extract_oddv2sf): Ditto.
12773         (vec_pack_trunc_v4hi: Ditto.
12774         (vec_pack_trunc_v2si): Ditto.
12775         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12776         (vec_interleave_highv8qi): Ditto.
12777         (mix1_r): Ditto.
12778         (vec_extract_oddv8qi): Ditto.
12779         (vec_interleave_lowv4hi): Ditto.
12780         (vec_interleave_highv4hi): Ditto.
12781         (vec_interleave_lowv2si): Ditto.
12782         (vec_interleave_highv2si): Ditto.
12783
12784 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12785
12786         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12787         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12788         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
12789         (pa_c_mode_for_suffix): New.
12790         (TARGET_EXPAND_BUILTIN): Define.
12791         (TARGET_C_MODE_FOR_SUFFIX): Define.
12792         (pa_builtins): Define.
12793         (pa_init_builtins): Register __float128 type and init new support
12794         builtins.
12795         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12796         * config/pa/quadlib.c (_U_Qfcopysign): New.
12797
12798 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
12799
12800         PR middle-end/46894
12801         * explow.c (allocate_dynamic_stack_space): Do not assume more than
12802         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12803         are defined.
12804
12805 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12806
12807         PR tree-optimization/47179
12808         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12809         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12810
12811 2011-01-18  Richard Guenther  <rguenther@suse.de>
12812
12813         PR rtl-optimization/47216
12814         * emit-rtl.c: Include tree-flow.h.
12815         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12816         of replicating it with different semantics.
12817         * Makefile.in (emit-rtl.o): Adjust.
12818
12819 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12820
12821         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12822         (cortex_a9_dp): Handle neon types correctly.
12823
12824 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
12825
12826         PR rtl-optimization/47299
12827         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12828         subtarget.  Use normal multiplication if both operands are constants.
12829         * expmed.c (expand_widening_mult): Don't try to optimize constant
12830         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
12831         before using it.
12832
12833 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12834
12835         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
12836         spacing after 'e.g.', typos, comma, hyphenation.
12837
12838 2011-01-17  Richard Henderson  <rth@redhat.com>
12839
12840         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12841         (rx_restricted_mem_operand): New.
12842         (rx_shift_operand): Use register_operand.
12843         (rx_source_operand, rx_compare_operand): Likewise.
12844         * config/rx/rx.md (addsi3_flags): New expander.
12845         (adddi3): Rewrite as expander.
12846         (adc_internal, *adc_flags, adddi3_internal): New patterns.
12847         (subsi3_flags): New expander.
12848         (subdi3): Rewrite as expander.
12849         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12850
12851         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12852         (rx_init_builtins): Remove sat builtin.
12853         (rx_expand_builtin): Likewise.
12854         * config/rx/rx.md (ssaddsi3): New.
12855         (*sat): Rename from sat.  Represent the CC_REG input.
12856
12857         * config/rx/predicates.md (rshift_operator): New.
12858         * config/rx/rx.c (rx_expand_insv): Remove.
12859         * config/rx/rx-protos.h: Update.
12860         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
12861         operand to the canonical position.
12862         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12863         (*bitclr, *bitclr_in_memory): Similarly.
12864         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12865         (insv): Retain the zero_extract in the expansion.
12866
12867         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12868         (bswaphi2, bitinvert, revw): Likewise.
12869
12870         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12871         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12872         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12873         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12874         (bitset, bitset_in_memory): Likewise.
12875         (bitinvert, bitinvert_in_memory): Likewise.
12876         (bitclr, bitclr_in_memory): Likewise.
12877         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12878         (rx_strend, rx_cmpstrn): Likewise.
12879         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
12880         (bitop peep2 patterns): Remove.
12881
12882         * config/rx/rx.c (rx_match_ccmode): New.
12883         * config/rx/rx-protos.h: Update.
12884         * config/rx/rx.md (abssi2): Clobber, don't set flags.
12885         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12886         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12887         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12888         (fix_truncsfsi2, floatsisf2): Likewise.
12889         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12890         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12891         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12892         (*subsi3_flags, *xorsi3_flags): New.
12893
12894         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12895
12896         * config/rx/rx.c (rx_print_operand): Remove workaround for
12897         unsplit comparison operations.
12898
12899         * config/rx/rx.md (movsicc): Split after reload.
12900         (*movsicc): Merge *movsieq and *movsine via match_operator.
12901         (*stcc): New pattern.
12902
12903         * config/rx/rx.c (rx_float_compare_mode): Remove.
12904         * config/rx/rx.h (rx_float_compare_mode): Remove.
12905         * config/rx/rx.md (cstoresi4): Split after reload.
12906         (*sccc): New pattern.
12907
12908         * config/rx/predicates.md (label_ref_operand): New.
12909         (rx_z_comparison_operator): New.
12910         (rx_zs_comparison_operator): New.
12911         (rx_fp_comparison_operator): New.
12912         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12913         Validate that the flags are set properly for the comparison.
12914         (rx_gen_cond_branch_template): Remove.
12915         (rx_cc_modes_compatible): Remove.
12916         (mode_from_flags): New.
12917         (flags_from_code): Rename from flags_needed_for_conditional.
12918         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12919         (rx_select_cc_mode): Likewise.
12920         (rx_split_fp_compare): New.
12921         (rx_split_cbranch): New.
12922         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12923         (*cbranchsi4): Use match_operator and rx_split_cbranch.
12924         (*cbranchsf4): Similarly.
12925         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
12926         match_operator and rx_split_cbranch.
12927         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12928         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
12929         (*cmpsi): Rename from cmpsi.
12930         (*tstsi): Rename from tstsi.
12931         (*cmpsf): Rename from cmpsf; use CC_Fmode.
12932         (*conditional_branch): Rename from conditional_branch.
12933         (*reveresed_conditional_branch): Remove.
12934         (b<code>): Remove expander.
12935         * config/rx/rx-protos.h: Update.
12936
12937         * config/rx/rx.c (rx_compare_redundant): Remove.
12938         * config/rx/rx.md (cmpsi): Don't use it.
12939         * config/rx/rx-protos.h: Update.
12940
12941         * config/rx/rx-modes.def (CC_F): New mode.
12942         * config/rx/rx.c (rx_select_cc_mode): New.
12943         * config/rx/rx.h (SELECT_CC_MODE): Use it.
12944         * config/rx/rx-protos.h: Update.
12945
12946 2011-01-17  Richard Henderson  <rth@redhat.com>
12947
12948         * except.c (dump_eh_tree): Fix stray ; after for statement.
12949
12950 2011-01-17  Richard Guenther  <rguenther@suse.de>
12951
12952         PR tree-optimization/47313
12953         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12954         handling before copying the body.  Properly deal with
12955         by-reference result in SSA form.
12956
12957 2011-01-17  Ian Lance Taylor  <iant@google.com>
12958
12959         PR target/47219
12960         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12961         (struct_value_alias_set): Don't define.
12962         (sparc_option_override): Don't set sparc_sr_alias_set and
12963         struct_value_alias_set.
12964         (save_or_restore_regs): Use gen_frame_mem rather than calling
12965         set_mem_alias_set.
12966         (sparc_struct_value_rtx): Likewise.
12967
12968 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
12969
12970         PR target/47318
12971         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12972         (_mm_maskstore_pd): Likewise.
12973         (_mm_maskload_ps): Likewise.
12974         (_mm_maskstore_ps): Likewise.
12975         (_mm256_maskload_pd): Change mask to __m256i.
12976         (_mm256_maskstore_pd): Likewise.
12977         (_mm256_maskload_ps): Likewise.
12978         (_mm256_maskstore_ps): Likewise.
12979
12980         * config/i386/i386-builtin-types.def: Updated.
12981         (ix86_expand_special_args_builtin): Likewise.
12982
12983         * config/i386/i386.c (bdesc_special_args): Update
12984         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12985         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12986         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12987         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12988
12989         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12990         Use <avxpermvecmode> on mask register.
12991         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12992
12993 2011-01-17  Olivier Hainque  <hainque@adacore.com>
12994             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12995             Eric Botcazou  <ebotcazou@adacore.com>
12996
12997         PR target/46655
12998         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12999         if <= USHRT_MAX in 32-bit mode.
13000
13001 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13002
13003         * doc/install.texi (Configuration, Specific): Wrap long
13004         lines in examples.  Allow line wrapping in long options
13005         and URLs where beneficial for PDF output.
13006
13007 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13008
13009         * config/mips/mips.c (mips_classify_symbol): Don't return
13010         SYMBOL_PC_RELATIVE for nonlocal labels.
13011
13012 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13013
13014         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13015
13016 2011-01-15  Jan Hubicka  <jh@suse.cz>
13017
13018         PR tree-optimization/47276
13019         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13020         declarations as needed.
13021
13022 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13023
13024         * common.opt (fdevirtualize): New flag.
13025         * doc/invoke.texi (Option Summary): Document it.
13026         * opts.c (default_options_table): Add devirtualize flag.
13027         * ipa-prop.c (detect_type_change): Return immediately if
13028         devirtualize flag is not set.
13029         (detect_type_change_ssa): Likewise.
13030         (compute_known_type_jump_func): Likewise.
13031         (ipa_analyze_virtual_call_uses): Likewise.
13032
13033 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13034
13035         PR tree-optimization/45934
13036         PR tree-optimization/46302
13037         * ipa-prop.c (type_change_info): New type.
13038         (stmt_may_be_vtbl_ptr_store): New function.
13039         (check_stmt_for_type_change): Likewise.
13040         (detect_type_change): Likewise.
13041         (detect_type_change_ssa): Likewise.
13042         (compute_complex_assign_jump_func): Check for dynamic type change.
13043         (compute_complex_ancestor_jump_func): Likewise.
13044         (compute_known_type_jump_func): Likewise.
13045         (compute_scalar_jump_functions): Likewise.
13046         (ipa_analyze_virtual_call_uses): Likewise.
13047         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13048
13049 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13050
13051         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13052         * config/i386/i386.opt (msse5): New Alias.
13053
13054 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13055
13056         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13057         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13058         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13059         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13060
13061 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13062
13063         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13064         -mcpu options.
13065         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13066         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13067         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13068         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13069         Likewise.
13070         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13071
13072 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13073
13074         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13075
13076 2011-01-14  Mike Stump  <mikestump@comcast.net>
13077
13078         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13079         * config/fr30/fr30.md: Likweise
13080         (movsi_push): Likewise.
13081         (movsi_pop): Likewise.
13082         (enter_func): Likewise.
13083         * config/moxie/moxie.md (movsi_push): Likewise.
13084         (movsi_pop): Likewise.
13085
13086 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13087
13088         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13089         %{no_archive} %{exact_version}.
13090         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13091         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13092         %{no_archive} %{exact_version}.
13093         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13094         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13095         * config/mips/vxworks.h: Likewise.
13096
13097 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13098
13099         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13100
13101 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13102
13103         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13104         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13105
13106 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13107
13108         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13109         -nodefaultlib.
13110
13111 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13112
13113         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13114         for mcpu not cpu.
13115         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13116         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13117         not cpu.
13118         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13119         Don't handle -shlib.
13120
13121 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13122
13123         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13124         (CC1_SPEC): Don't handle -profile.
13125
13126 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13127
13128         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13129         * config/mips/mips.h (CC1_SPEC): Likewise.
13130
13131 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13132
13133         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13134         * config/mips/mips.h (CC1_SPEC): Likewise.
13135
13136 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13137
13138         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13139         * config/m32r/linux.h (LINK_SPEC): Likewise.
13140         * config/mips/linux.h (LINK_SPEC): Likewise.
13141         * config/mips/linux64.h (LINK_SPEC): Likewise.
13142         * config/sparc/linux.h (LINK_SPEC): Likewise.
13143         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13144         LINK_SPEC): Likewise.
13145         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13146
13147 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13148
13149         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13150         %{version:-v}.
13151         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13152
13153 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13154
13155         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13156         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13157
13158 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13159
13160         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13161
13162 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13163
13164         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13165         supports -Bstatic/-Bdynamic.
13166         * configure: Regenerate.
13167
13168 2011-01-14  Jan Hubicka  <jh@suse.cz>
13169             Jack Howarth  <howarth@bromo.med.uc.edu>
13170
13171         PR target/46037
13172         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13173         when checking debug_info_level. Test write_symbols instead of
13174         debug_hooks->var_location when setting flag_var_tracking_uninit.
13175
13176 2011-01-14  Richard Guenther  <rguenther@suse.de>
13177
13178         PR tree-optimization/47179
13179         * target.def (ref_may_alias_errno): New target hook.
13180         * targhooks.h (default_ref_may_alias_errno): Declare.
13181         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13182         (default_ref_may_alias_errno): New function.
13183         * target.h (struct ao_ref_s): Declare.
13184         * tree-ssa-alias.c: Include target.h.
13185         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13186         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13187         (targhooks.o): Likewise.
13188         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13189         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13190
13191 2011-01-14  Richard Guenther  <rguenther@suse.de>
13192
13193         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13194
13195 2011-01-14  Richard Guenther  <rguenther@suse.de>
13196
13197         PR tree-optimization/47280
13198         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13199         return CFG changes.
13200         (tree_ssa_forward_propagate_single_use_vars): Deal with
13201         CFG changes from associate_plusminus.
13202
13203 2011-01-14  Richard Guenther  <rguenther@suse.de>
13204
13205         PR middle-end/47281
13206         Revert
13207         2011-01-11  Richard Guenther  <rguenther@suse.de>
13208
13209         PR tree-optimization/46076
13210         * tree-ssa.c (useless_type_conversion_p): Conversions from
13211         unprototyped to empty argument list function types are useless.
13212
13213 2011-01-14  Richard Guenther  <rguenther@suse.de>
13214
13215         PR tree-optimization/47286
13216         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13217
13218 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13219
13220         PR middle-end/46823
13221         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13222
13223 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13224
13225         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13226         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13227         * config/xtensa/xtensa.c (xtensa_libcall_value,
13228         xtensa_function_value_regno_p): New functions.
13229         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13230
13231 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13232
13233         PR c++/47213
13234         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13235         PE specific hook.
13236         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13237         New function prototype.
13238         * config/i386/winnt.c (i386_pe_assemble_visibility):
13239         Warn only if attribute was specified by user.
13240
13241 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13242
13243         PR target/47251
13244         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13245         floating point.
13246         (floatunsdidf2_fcfidu): Ditto.
13247
13248 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13249
13250         * config/s390/s390.c (print_operand_address): Replace 'error' with
13251         'output_operand_lossage'.
13252         (print_operand): Likewise.
13253
13254 2011-01-13  Jeff Law  <law@redhat.com>
13255
13256         PR rtl-optimization/39077
13257         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13258         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13259         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13260         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13261         * gcse.c (prune_insertions_deletions): New function.
13262         (compute_pre_data): Use it.
13263
13264 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13265
13266         PR debug/PR46973
13267         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13268         static function.
13269         (prune_unused_types_mark): Use it.
13270
13271 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13272
13273         PR rtl-optimization/45352
13274         * sel-sched.c: Update copyright years.
13275         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13276         in the advancing loop when we have issued issue_rate insns.
13277
13278 2011-01-12  Richard Henderson  <rth@redhat.com>
13279
13280         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13281         (TARGET_MD_ASM_CLOBBERS): New.
13282
13283         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13284         (TARGET_DELEGITIMIZE_ADDRESS): New.
13285
13286         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13287         (clzsi2, *bsch): New patterns.
13288
13289         * config/mn10300/mn10300.md (INT): New mode iterator.
13290         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13291
13292         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13293         flag_split_wide_types.
13294
13295         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13296         (mn10300_trampoline_init): Rewrite without a template, an immediate
13297         load and a direct branch.
13298         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13299
13300 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13301
13302         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13303         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13304         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13305         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13306
13307 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13308
13309         PR debug/47209
13310         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13311         of type.
13312
13313 2011-01-12  Jan Hubicka  <jh@suse.cz>
13314
13315         PR driver/47244
13316         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13317         (PLUGIN_COND_CLOSE): New macro.
13318         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13319
13320 2011-01-12  Richard Guenther  <rguenther@suse.de>
13321
13322         PR lto/47259
13323         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13324         register variables in a MEM_REF.
13325
13326 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13327
13328         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13329         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13330         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13331         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13332         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13333         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13334         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13335         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13336         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13337         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13338         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13339         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13340         * config/gnu-user.h: New.  Copied from linux.h.
13341         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13342         GNU_USER_TARGET_STARTFILE_SPEC.
13343         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13344         GNU_USER_TARGET_ENDFILE_SPEC.
13345         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13346         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13347         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13348         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13349         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13350         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13351         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13352         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13353         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13354         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13355         * config/arm/linux-eabi.h (CC1_SPEC): Use
13356         GNU_USER_TARGET_CC1_SPEC.
13357         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13358         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13359         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13360         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13361         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13362         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13363         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13364         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13365
13366 2011-01-12  Richard Guenther  <rguenther@suse.de>
13367
13368         PR other/46946
13369         * doc/invoke.texi (ffast-math): Document it is turned on
13370         with -Ofast.
13371
13372 2011-01-12  Jan Hubicka  <jh@suse.cz>
13373
13374         PR tree-optimization/47233
13375         * opts.c (common_handle_option): Disable ipa-reference with profile
13376         feedback.
13377
13378 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13379
13380         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13381         error message.
13382
13383 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13384
13385         * c-parser.c (c_lex_one_token): Updated and reindented some
13386         comments.  No changes in code.
13387
13388 2011-01-11  Ian Lance Taylor  <iant@google.com>
13389
13390         * godump.c (go_output_var): Don't output the variable if there is
13391         already a type with the same name.
13392
13393 2011-01-11  Ian Lance Taylor  <iant@google.com>
13394
13395         * godump.c (go_format_type): Don't generate float80.
13396
13397 2011-01-11  Richard Henderson  <rth@redhat.com>
13398
13399         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13400         declaration.  Rewrite for both speed and size.
13401         (mn10300_address_cost_1): Remove.
13402         (mn10300_register_move_cost): New.
13403         (mn10300_memory_move_cost): New.
13404         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13405         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13406         extensions, shifts, BSWAP, CLZ.
13407         (mn10300_wide_const_load_uses_clr): Remove.
13408         (TARGET_REGISTER_MOVE_COST): New.
13409         (TARGET_MEMORY_MOVE_COST): New.
13410         * config/mn10300/mn10300-protos.h: Update.
13411         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13412
13413         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13414         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13415         * config/mn10300/mn10300-protos.h: Update.
13416         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13417         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13418         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13419         (*test_int_bitfield, *test_byte_bitfield): Remove.
13420         (*bit_test, *subreg_bit_test): Remove.
13421         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13422
13423         * config/mn10300/constraints.md ("c"): Rename from "A".
13424         ("A", "D"): New constraint letters.
13425         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13426         (fmssf4, fnmasf4, fnmssf4): Likewise.
13427
13428         * config/mn10300/mn10300.md (isa): New attribute.
13429         (enabled): New attribute.
13430
13431         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13432         (abssf2, negsf2): Define only for hardware fp.
13433         (sqrtsf2): Reformat.
13434         (addsf3, subsf3, mulsf3): Merge expander and insn.
13435
13436         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13437         (DEBUGGER_AUTO_OFFSET): Remove.
13438         (DEBUGGER_ARG_OFFSET): Remove.
13439
13440         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13441         Emit register stores with the same offsets as the hardware.
13442         (mn10300_store_multiple_operation): Don't check that the register
13443         save offsets are monotonic.
13444         * config/mn10300/mn10300-protos.h: Update.
13445
13446         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13447
13448         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13449         in terms of the value on the stack, not the MDR register.
13450
13451 2011-01-11  Jan Hubicka  <jh@suse.cz>
13452
13453         PR lto/45721
13454         PR lto/45375
13455         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13456         (symbol_alias_set_destroy, symbol_alias_set_contains,
13457         propagate_aliases_backward): Declare.
13458         * lto-streamer-out.c (struct sets): New sturcture.
13459         (trivally_defined_alias): New function.
13460         (output_alias_pair_p): Rewrite.
13461         (output_unreferenced_globals): Fix output of alias pairs.
13462         (produce_symtab): Likewise.
13463         * ipa.c (function_and_variable_visibility): Set weak alias destination
13464         as needed in lto.
13465         * varasm.c (symbol_alias_set_t): Remove.
13466         (symbol_alias_set_destroy): Export.
13467         (propagate_aliases_forward, propagate_aliases_backward): New functions
13468         based on ...
13469         (compute_visible_aliases): ... this one; remove.
13470         (trivially_visible_alias): New
13471         (trivially_defined_alias): New.
13472         (remove_unreachable_alias_pairs): Rewrite.
13473         (finish_aliases_1): Reorganize code checking if alias is defined.
13474         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13475         in LTO mode.
13476
13477 2011-01-11  Richard Guenther  <rguenther@suse.de>
13478
13479         PR tree-optimization/46076
13480         * tree-ssa.c (useless_type_conversion_p): Conversions from
13481         unprototyped to empty argument list function types are useless.
13482
13483 2011-01-11  Richard Guenther  <rguenther@suse.de>
13484
13485         PR middle-end/45235
13486         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13487         volatile MEMs as MEM_READONLY_P.
13488
13489 2011-01-11  Richard Guenther  <rguenther@suse.de>
13490
13491         PR tree-optimization/47239
13492         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13493
13494 2011-01-11  Jeff Law  <law@redhat.com>
13495
13496         PR tree-optimization/47086
13497         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13498         IVs from statements that might throw.
13499
13500 2011-01-10  Jan Hubicka  <jh@suse.cz>
13501
13502         PR lto/45375
13503         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13504
13505 2011-01-10  Jan Hubicka  <jh@suse.cz>
13506
13507         PR lto/45375
13508         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13509         when correcting profile.
13510
13511 2011-01-10  Jan Hubicka  <jh@suse.cz>
13512
13513         PR lto/46083
13514         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13515         DECL_FINI_PRIORITY.
13516         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13517         Restore DECL_FINI_PRIORITY.
13518
13519 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13520
13521         * doc/gimple.texi: Fix quoting of multi-word return values in
13522         @deftypefn statements.  Ensure presence of return value.  Wrap
13523         overlong @deftypefn lines.
13524         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13525         descriptions of removed functions.
13526         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13527         of multi-word return value in @deftypefn statement.
13528
13529 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13530
13531         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13532         (Conditional Expressions, Logical Operators)
13533         (Statement and operand traversals): Do not indent smallexample
13534         code.  Fix duplicate function argument in example.
13535
13536 2011-01-10  Jeff Law  <law@redhat.com>
13537
13538         PR tree-optimization/47141
13539         * ipa-split.c (split_function): Handle case where we are
13540         returning a value and the return block has a virtual operand phi.
13541
13542 2011-01-10  Jan Hubicka  <jh@suse.cz>
13543
13544         PR tree-optimization/47234
13545         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13546         (pass_feedback_split_functions): Declare.
13547         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13548         tree-profile.
13549         * ipa-split.c (gate_split_functions): Update comments; disable
13550         split-functions for profile_arc_flag and branch_probabilities.
13551         (gate_feedback_split_functions): New function.
13552         (execute_feedback_split_functions): New function.
13553         (pass_feedback_split_functions): New global var.
13554
13555 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13556
13557         PR lto/46760
13558         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13559         calling gimple_call_set_cannot_inline.
13560
13561 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13562
13563         * config/darwin-sections.def: Remove unused section.
13564
13565 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13566
13567         PR c++/47218
13568         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13569
13570 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13571
13572         PR objc/47232
13573         * c-parser.c (c_parser_declaration_or_fndef): Improved
13574         error message.
13575
13576 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13577
13578         * config/i386/winnt.c (i386_pe_start_function): Make sure
13579         to switch back to function's section.
13580
13581 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13582
13583         PR gcc/46902
13584         PR testsuite/46912
13585         * plugin.c: Move include of dlfcn.h from here...
13586         * system.h: ... to here.
13587
13588 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13589
13590         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13591         file name.
13592         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13593         two extra empty pages in PDF output.
13594
13595 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13596
13597         PR objc/47078
13598         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13599         for error recovery purposes behave as if it was not specified so
13600         that the default type is usd.
13601
13602 2011-01-07  Jan Hubicka  <jh@suse.cz>
13603
13604         PR tree-optmization/46469
13605         * ipa.c (function_and_variable_visibility): Clear needed flags on
13606         nodes with external decls; handle weakrefs merging correctly.
13607
13608 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13609
13610         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13611         not false.
13612
13613 2011-01-07  Jan Hubicka  <jh@suse.cz>
13614
13615         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13616         and no longer claim that gold is required for linker plugin.
13617         * configure: Regenerate.
13618         * gcc.c (PLUGIN_COND): New macro.
13619         (LINK_COMMAND_SPEC): Use it.
13620         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13621         * config.in (HAVE_LTO_PLUGIN): New.
13622         * configure.ac (--with-lto-plugin): New parameter; autodetect
13623         HAVE_LTO_PLUGIN.
13624
13625 2011-01-07  Jan Hubicka  <jh@suse.cz>
13626
13627         PR tree-optimization/46367
13628         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13629         when we can update original.
13630         (cgraph_mark_inline_edge): Sanity check.
13631         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13632
13633 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13634
13635         * config/spu/spu.h (ASM_COMMENT_START): Define.
13636
13637 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13638
13639         PR driver/42445
13640         * gcc.c (%>S): New.
13641         (SWITCH_KEEP_FOR_GCC): Likewise.
13642         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13643         (do_spec_1): Handle "%>".
13644
13645         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13646
13647 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
13648
13649         PR target/47201
13650         * config/i386/i386.c (ix86_delegitimize_address): If
13651         simplify_gen_subreg fails, return orig_x.
13652
13653         PR bootstrap/47187
13654         * value-prof.c (gimple_stringop_fixed_value): Handle
13655         lhs of the call properly.
13656
13657 2011-01-07  Jan Hubicka  <jh@suse.cz>
13658
13659         PR lto/45375
13660         * lto-opt.c (lto_reissue_options): Set flag_shlib.
13661
13662 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13663
13664         * target.def (function_switched_text_sections): New hook.
13665         * doc/tm.texi: Regenerated.
13666         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13667         * final.c (default_function_switched_text_sections): New.
13668         (final_scan_insn): Call function_switched_text_sections when a
13669         mid-function section change occurs.
13670         * output.h (default_function_switched_text_sections): Declare.
13671         * config/darwin-protos.h (darwin_function_switched_text_sections):
13672         Likewise.
13673         * config/darwin.c (darwin_function_switched_text_sections): New.
13674         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13675
13676 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13677
13678         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13679         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13680         the secondary code fragment when outputting for DWARF == 2.
13681
13682 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13683
13684         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13685         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13686         Remove.
13687         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13688         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13689
13690 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13691
13692         PR debug/46704
13693         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13694         when it is not empty.
13695
13696 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
13697
13698         Bobcat Enablement
13699         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13700         (case ${target}): Add btver1.
13701         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13702         -march=native recognize btver1 processors.
13703         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13704         btver1 def_and_undef
13705         * config/i386/i386.c (struct processor_costs btver1_cost): New
13706         btver1 cost table.
13707         (m_BTVER1): New definition.
13708         (m_AMD_MULTIPLE): Includes m_BTVER1.
13709         (initial_ix86_tune_features): Add btver1 tune.
13710         (processor_target_table): Add btver1 entry.
13711         (static const char *const cpu_names): Add btver1 entry.
13712         (software_prefetching_beneficial_p): Add btver1.
13713         (ix86_option_override_internal): Add btver1 instruction sets.
13714         (ix86_issue_rate): Add btver1.
13715         (ix86_adjust_cost): Add btver1.
13716         * config/i386/i386.h (TARGET_BTVER1): New definition.
13717         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13718         (enum processor_type): Add PROCESSOR_BTVER1.
13719         * config/i386/i386.md (define_attr "cpu"): Add btver1.
13720
13721 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13722
13723         PR target/43309
13724         * config/i386/i386.c (legitimize_tls_address)
13725         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13726         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13727         (tls_initial_exec_64_sun): New pattern.
13728
13729 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
13730
13731         * doc/invoke.texi (Overall Options): Improve wording and markup
13732         of the description of -wrapper.
13733
13734 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13735
13736         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13737         rdynamic, threads): New Driver options.
13738
13739 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13740
13741         PR target/38118
13742         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13743         if coming from .tdata.
13744         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13745
13746 2011-01-06  Jan Hubicka  <jh@suse.cz>
13747
13748         PR lto/47188
13749         * collect2.c (main): Do not enable LTOmode when plugin is active.
13750
13751 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13752
13753         PR other/45915
13754         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13755         --version output if supported.
13756         * configure: Regenerate.
13757
13758 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13759
13760         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13761         Driver options.
13762
13763 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
13764
13765         PR c/47150
13766         * c-convert.c (convert): When converting a complex expression
13767         other than COMPLEX_EXPR to a different complex type, ensure
13768         c_save_expr is called instead of save_expr, unless in_late_binary_op.
13769         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13770         when converting COMPLEX_TYPE.
13771
13772 2011-01-06  Ira Rosen  <irar@il.ibm.com>
13773
13774         PR tree-optimization/47139
13775         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13776         only the last reduction value is used outside the loop.  Update
13777         documentation.
13778
13779 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
13780
13781         * config/rtems.opt: New.
13782         * config.gcc (*-*-rtems*): Use rtems.opt.
13783
13784 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
13785
13786         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13787         processors do not support 3DNow instructions.
13788
13789 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13790
13791         * config/spu/spu.c (spu_option_override): Set parameter
13792         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13793
13794 2011-01-05  Jan Hubicka  <jh@suse.cz>
13795
13796         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13797         at the command line.
13798
13799 2011-01-05  Martin Jambor  <mjambor@suse.cz>
13800
13801         PR lto/47162
13802         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13803         deltas on streamed outgoing edges.
13804         (output_node_opt_summary): Output info for outgoing edges only when
13805         the node is in new parameter set.
13806         (output_cgraph_opt_summary): New parameter set, passed to the two
13807         aforementioned functions.  Update its forward declaration and its
13808         callee too.
13809
13810 2011-01-05  Tom Tromey  <tromey@redhat.com>
13811
13812         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13813         operator to c_finish_omp_atomic.
13814         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13815         (build_unary_op): Update.
13816         (build_modify_expr): Update.
13817         (build_asm_expr): Update.
13818
13819 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13820
13821         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13822         newly inserted insns.
13823         (pad_bb): Likewise.
13824         (spu_emit_branch_hint): Likewise.
13825         (insert_hbrp_for_ilb_runout): Likewise.
13826         (spu_machine_dependent_reorg): Call df_finish_pass after
13827         schedule_insns returns.
13828
13829 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13830
13831         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13832
13833 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13834
13835         PR tree-optimization/47005
13836         * tree-sra.c (struct access): Add 'non_addressable' bit.
13837         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13838         (decide_one_param_reduction): Return 0 if the parameter is passed by
13839         reference and one of the accesses in the group is non_addressable.
13840
13841 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13842
13843         PR tree-optimization/47056
13844         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13845         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
13846         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
13847
13848 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13849
13850         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13851         initializer.  Skip view conversions from aggregate types.
13852
13853 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
13854
13855         PR bootstrap/47055
13856         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13857
13858 2011-01-04  Philipp Thomas  <pth@suse.de>
13859
13860         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13861         obvious typo.
13862
13863 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13864
13865         * function.c (thread_prologue_and_epilogue_insns): Do not crash
13866         on empty epilogue sequences.
13867
13868 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
13869
13870         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13871         non-static): New Driver options.
13872
13873 2011-01-04  Jie Zhang  <jie@codesourcery.com>
13874
13875         PR driver/47137
13876         * gcc.c (default_compilers[]): Set combinable field to 0
13877         for all assembly languages.
13878
13879 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
13880
13881         * config/mips/loongson3a.md: New file.
13882         * config/mips/mips.md: Include loongson3a.md.
13883         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13884         TUNE_LOONGSON_3A.
13885
13886 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13887
13888         PR middle-end/47017
13889         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13890         instead of convert_memory_address_addr_space on the base expression.
13891
13892 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13893
13894         * config/spu/spu.c (spu_option_override): Update error text
13895         for bad -march= / -mtune= values.
13896
13897 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13898
13899         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13900         if branch-hint optimization will be performed.
13901
13902 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13903
13904         PR tree-optimization/47148
13905         * ipa-split.c (split_function): Convert arguments to
13906         DECL_ARG_TYPE if possible.
13907
13908         PR tree-optimization/47155
13909         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13910         when computing uns.
13911
13912         PR rtl-optimization/47157
13913         * combine.c (try_combine): If undobuf.other_insn becomes
13914         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13915         and set *new_direct_jump_p too.
13916
13917 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
13918
13919         PR tree-optimization/47021
13920         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13921
13922 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13923
13924         * gcc.c (process_command): Update copyright notice dates.
13925         * gcov.c (print_version): Likewise.
13926         * gcov-dump.c (print_version): Likewise.
13927         * mips-tfile.c (main): Likewise.
13928         * mips-tdump.c (main): Likewise.
13929
13930 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13931
13932         PR tree-optimization/46801
13933         * tree-sra.c (type_internals_preclude_sra_p): Check whether
13934         aggregate fields start at byte boundary instead of the bit-field flag.
13935
13936 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
13937
13938         PR driver/47137
13939         * gcc.c (main): Revert revision 168407.
13940
13941 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13942
13943         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13944
13945 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13946
13947         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13948         vector optab to expand vector/scalar shift, update gimple to vector.
13949
13950 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13951
13952         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13953         a thunk.
13954
13955 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13956
13957         PR tree-optimization/46984
13958         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13959         HOST_WIDE_INT.
13960         (cgraph_create_indirect_edge): Fixed line length.
13961         (cgraph_indirect_call_info): Declare.
13962         (cgraph_make_edge_direct) Update declaration.
13963         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13964         (cgraph_create_indirect_edge): Use it.
13965         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
13966         callees.
13967         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13968         the new thunk_delta representation.
13969         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13970         HOST_WIDE_INT.
13971         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13972         (ipa_read_indirect_edge_info): Likewise.
13973         * lto-cgraph.c (output_edge_opt_summary): New function.
13974         (output_node_opt_summary): Call it on all outgoing edges.
13975         (input_edge_opt_summary): New function.
13976         (input_node_opt_summary): Call it on all outgoing edges.
13977
13978 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
13979
13980         PR driver/47137
13981         * gcc.c (main): Don't check have_o when settting combine_inputs.
13982
13983 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
13984
13985         * regrename.c: Add general comment describing the pass.
13986         (struct du_head): Remove 'length' field.
13987         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13988         (regrename_optimize): Do not sort chains.  Rework comments, add others.
13989         Force renaming to the preferred class (if any) in the first pass and do
13990         not consider registers that belong to it in the second pass.
13991         (create_new_chain): Do not set 'length' field.
13992         (scan_rtx_reg): Likewise.
13993
13994 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
13995
13996         PR tree-optimization/47140
13997         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13998         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13999         to bit_value_binop.
14000
14001         PR rtl-optimization/47028
14002         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14003         parm_birth_insn instead of at the beginning of first bb.
14004
14005 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14006
14007         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14008         Remove the word "see" before "@pxref".
14009         * doc/rtl.texi: Remove the word "see" before "@pxref".
14010
14011 2011-01-01  Jan Hubicka  <jh@suse.cz>
14012
14013         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14014         memory.
14015
14016 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14017
14018         PR target/38662
14019         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14020
14021 \f
14022 Copyright (C) 2011 Free Software Foundation, Inc.
14023
14024 Copying and distribution of this file, with or without modification,
14025 are permitted in any medium without royalty provided the copyright
14026 notice and this notice are preserved.