OSDN Git Service

* doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2
3         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
4
5 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6
7         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New
8         files.
9         * config/rs6000/rs6000-tables.opt: New file (generated).
10         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
11         rs6000/rs6000-tables.opt to extra_options.
12         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
13         * config/rs6000/rs6000.c (rs6000_select): Remove.
14         (processor_target_table): Move contents to rs6000-cpus.def.
15         (darwin_rs6000_override_options): Check
16         global_options_set.x_rs6000_cpu_index instead of
17         rs6000_select[1].string.
18         (rs6000_option_override_internal): Likewise.
19         (rs6000_handle_option): Don't assert that global structures are in
20         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
21         (rs6000_default_cpu): New variable.
22         (rs6000_file_start): Set it instead of local default_cpu.  Check
23         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
24         global_options_set.x_rs6000_tune_index instead of rs6000_select.
25         (rs6000_darwin_file_start): Check rs6000_default_cpu and
26         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
27         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
28         rs6000_select): Remove.
29         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
30         Remove.
31         (mcpu=, mtune=): Use Var, Init, Enum and Save.
32         * config/rs6000/t-rs6000
33         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
34         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
35         global_options_set.x_rs6000_cpu_index instead of
36         rs6000_select[1].string.
37         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
38         global_options_set.x_rs6000_cpu_index instead of
39         rs6000_select[1].string.
40
41 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
42
43         * config.gcc (libgcc_tm_file): Define instead of including files
44         from ../../libgcc/config/ in tm_file.
45         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list):
46         Define.
47         * configure: Regenerate.
48         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
49         libgcc_tm.h, cs-libgcc_tm.h): New.
50         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
51         (clean): Remove libgcc_tm.h.
52         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
53         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
54         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
55
56 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
57
58         PR target/48896
59         * config/avr/avr.c (avr_ret_register): Return unsigned int
60         instead of int.
61         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
62         it to avr_libcall_value.
63         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
64         expand_expr.
65         (avr_expand_binop_builtin): Ditto.
66         (avr_expand_unop_builtin): Ditto.
67
68 2011-05-10  DJ Delorie  <dj@redhat.com>
69
70         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
71         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
72         * config/rx/rx.c (rx_align_for_label): Add label and
73         uses_threshold parameters.  Do not align when the label is not
74         used enough.
75         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
76
77 2011-05-10  Richard Guenther  <rguenther@suse.de>
78
79         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
80         a series of conversions and apply foldings similar to what
81         fold-const does.
82         (tree_ssa_forward_propagate_single_use_vars): Call it.
83
84 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
85
86         PR tree-optimization/48611
87         PR tree-optimization/48794
88         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
89         referenced from RESX or EH_DISPATCH arguments.
90
91         PR debug/48928
92         * dfp.c (decimal_to_decnumber): Handle conversion from
93         dconst{1,2,m1,half}.
94
95 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
96
97         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
98         for !flag_prefer_avx128.
99         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
100
101 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
102
103         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
104         (fold_ternary_loc): Use expr_location_or.
105
106 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
107
108         PR debug/48853
109         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
110         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
111         Pmode and mem_mode is not VOIDmode.
112
113 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
114
115         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
116         TYPE_QUAL_RESTRICT): Convert to enum.
117
118 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
119
120         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
121         (const_pow2_1_to_8_operand): Ditto.
122         (const_pow2_1_to_128_operand): Ditto.
123         (const_pow2_1_to_32768_operand): Ditto.
124         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
125         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
126         in insn constraint to check integer value of operand 3.
127         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
128
129         (PINSR_MODE): New mode iterator.
130         (sse2p4_1): New mode attribute.
131         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
132         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
133         iterator.  Use const_int_operand instead of
134         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
135         exact_log2 in insn constraint to check integer value of operand 3.
136
137 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
138
139         * config/i386/sse.md (blendbits): Remove mode attribute.
140         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
141         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
142         Check integer value of operand 3 in insn constraint.
143
144 2011-05-09  Richard Guenther  <rguenther@suse.de>
145
146         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
147         for diagnostics.
148         (lto_symtab_merge): Likewise.  Do not register types here.
149         (lto_symtab_merge_decls_2): Likewise.
150         (lto_symtab_merge_decls_1): Likewise.
151         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
152         * gimple.c (enum gtc_mode): Declare.
153         (gimple_types_compatible_p): Make static.
154
155 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
156
157         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
158         temporary register to match Pmode.
159
160 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
161
162         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
163         and *vec_concatv4si_1_avx.
164
165 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
166
167         PR rtl-optimization/48927
168         * ira-conflicts.c (commutative_constraint_p): Use
169         recog_data.alternative_enabled_p to disable alternatives where
170         "enabled" attribute is false.
171         (get_dup_num): Ditto.
172         * ira-lives.c (single_reg_class): Ditto.
173         (ira_implicitly_set_insn_hard_regs): Ditto.
174
175 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
176
177         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
178         (dataflow_set_preserve_mem_locs): Likewise.
179
180 2011-05-09  Philipp Thomas  <pth@suse.de>
181
182         * config/mep/mep.c (mep_validate_vliw): Syntax description
183         should not be translated.
184
185 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
186
187         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
188         * config/mips/mips-tables.opt: New file (generated).
189         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
190         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
191         MIPS_ARCH_OPTION_NATIVE): Define.
192         * config/mips/mips.c (mips_cpu_info_table): Move contents to
193         mips-cpus.def.
194         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
195         mips_parse_cpu): Remove.
196         (mips_cpu_info_from_opt, mips_default_arch): New.
197         (mips_handle_option): Don't assert that global structures are in
198         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
199         (mips_option_override): Use new variables and functions to set
200         state of these options.  Use strcmp to check for individual CPU names.
201         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
202         definition.
203         * config/mips/mips.opt (march=): Use ToLower and Enum.
204         (mips): Use ToLower, Enum and Var.
205         (mtune=): Use ToLower and Enum.
206         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
207
208 2011-05-08  Jan Hubicka  <jh@suse.cz>
209
210         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
211         Arrange type pairs to be UID ordered.
212         (gimple_lookup_type_leader): Make inline.
213
214 2011-05-09  Nick Clifton  <nickc@redhat.com>
215
216         PR target/48899
217         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
218         PROCESSOR_DEFAULT.
219
220         PR target/48897
221         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
222         variable 's'.
223
224 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
225
226         * combine.c (simplify_comparison): Abstract out parts into...
227         (simplify_compare_const): ... new function.
228         (try_combine): Generalize parallel arithmetic/compare combining
229         to call simplify_compare_const() and CANONICALIZE_COMPARE().
230
231 2011-05-08  Jan Hubicka  <jh@suse.cz>
232
233         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
234         (cgraph_create_virtual_clone): Call hooks once virtual clone
235         is finished.
236         * cgraph.h (cgraph_clone_node): Update prototype.
237         * ipa-cp.c (ipcp_estimate_growth): Use
238         estimate_ipcp_clone_size_and_time.
239         * ipa-inline-transform.c (clone_inlined_nodes): Update.
240         * lto-cgraph.c (input_node): Update.
241         * ipa-inline.c (recursive_inlining): Update.
242         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
243         (evaluate_conditions_for_known_args): Break out from ...
244         (evaluate_conditions_for_edge): ... here.
245         (evaluate_conditions_for_ipcp_clone): New function.
246         (inline_node_duplication_hook): Update clone summary based
247         on parameter map.
248         (estimate_callee_size_and_time): Rename to ...
249         (estimate_node_size_and_time): take NODE instead of EDGE;
250         take POSSIBLE_TRUTHS as argument.
251         (estimate_callee_size_and_time): Update.
252         (estimate_ipcp_clone_size_and_time): New function.
253         (do_estimate_edge_time): Update.
254
255 2011-05-08  Richard Guenther  <rguenther@suse.de>
256
257         PR middle-end/48908
258         PR middle-end/48905
259         * expmed.c (expand_shift_1): Compute adjusted constant shift
260         amount manually.
261
262 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
263
264         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
265
266 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
267
268         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
269
270 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
271
272         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
273
274 2011-05-07  Jan Hubicka  <jh@suse.cz>
275
276         * ipa-inline-transform.c (inline_call): Account when program size
277         decreases.
278         * ipa-inline.c (relative_time_benefit): New function.
279         (edge_badness): Reorganize to be power 2 based; fix thinko when
280         computing badness for negative growth; update comments to match
281         reality; better dumps.
282
283 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
284
285         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
286         type to bool and adjust comment.
287         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
288         (fold_mathfn_compare): Remove calls to global_bindings_p.
289         (fold_inf_compare): Likewise.
290         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
291         * c-tree.h (global_bindings_p): Adjust prototype.
292         * c-decl.c (global_bindings_p): Return bool and simplify.
293
294 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
295
296         PR tree-optimization/48837
297         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
298         when accumulator transformation is performed.
299
300 2011-05-06  Jan Hubicka  <jh@suse.cz>
301
302         * i386.h (ix86_tune_indices): Add
303         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
304         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
305         * i386.c (initial_ix86_tune_features): Add
306         X86_SOFTARE_PREFETCHING_BENEFICIAL.
307         (software_prefetching_beneficial_p): Remove predicate.
308         (ix86_option_override_internal): Use new macro.
309
310 2011-05-06  Jan Hubicka  <jh@suse.cz>
311
312         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
313
314 2011-05-06  Jan Hubicka  <jh@suse.cz>
315
316         * cgraph.c (cgraph_add_thunk): Create real function node instead
317         of alias node; finalize it and mark needed/reachale; arrange visibility
318         to be right and add it into the corresponding same comdat group list.
319         (dump_cgraph_node): Dump thunks.
320         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
321         cgraph_function_with_gimple_body_p,
322         cgraph_first_function_with_gimple_body,
323         cgraph_next_function_with_gimple_body): New functions.
324         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
325         New macros.
326         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
327         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
328         * cgraphunit.c (cgraph_finalize_function): Only look into possible
329         devirtualization when optimizing.
330         (verify_cgraph_node): Verify thunks.
331         (cgraph_analyze_function): Analyze thunks.
332         (cgraph_mark_functions_to_output): Output thunks only in combination
333         with function they are assigned to.
334         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
335         alias into normal node.
336         (assemble_thunks): New functoin.
337         (cgraph_expand_function): Use it.
338         * lto-cgraph.c (lto_output_node): Stream thunks.
339         (input_overwrite_node): Stream in thunks.
340         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
341         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
342         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
343         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
344         (inline_analyze_function): Do not care about thunk jump functions.
345         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
346         * ipa-prop.c (ipa_prop_write_jump_functions): Use
347         cgraph_function_with_gimple_body_p.
348         * passes.c (do_per_function_toporder): Use
349         cgraph_function_with_gimple_body_p.
350         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
351         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
352         (function_called_by_processed_nodes_p): Likewise.
353
354 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
355
356         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
357         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
358         entries.
359         (mabi=): Replace with separate entries for mabi=altivec,
360         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
361         mabi=ieeelongdouble and mabi=ibmlongdouble.
362         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
363         check for -mabi=spe without SPE ABI support here.
364         (rs6000_handle_option): Replace OPT_mabi_ handling with
365         OPT_mabi_altivec and OPT_mabi_spe handling.
366
367 2011-05-06  Cary Coutant  <ccoutant@google.com>
368
369         * dwarf2out.c (contains_subprogram_definition): New function.
370         (should_move_die_to_comdat): Call it.
371
372 2011-05-06  Jeff Law  <law@redhat.com>
373
374         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
375         remove_ctrl_stmt_and_useless_edges.
376         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
377         (fixup_template_block, thread_single_edge): Likewise.
378         (mark_threaded_blocks): Use THREAD_TARGET.
379
380 2011-05-06  Alan Modra  <amodra@gmail.com>
381
382         PR target/48900
383         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
384         const0_rtx as the arg to the dummy __tls_get_addr libcall.
385
386 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
387
388         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
389         constraint modifier to "r".
390
391 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
392
393         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
394         fall through for OPT_mcmodel_.
395
396 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
397
398         * config/s390/s390.c (s390_asm_trampoline_template): Comment
399         instruction sizes.
400         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
401
402 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
403
404         PR target/47930
405         * config/arm/arm.opt (marm): Document it.
406         (mthumb): Reject negative variant.
407
408 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
409
410         PR target/48898
411         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
412         Fix typo in "ccvt" variable name.
413
414 2011-05-06  Tristan Gingold  <gingold@adacore.com>
415
416         PR target/48895
417         * config/vms/vms-ar.c (main): Remove cwd variable.
418
419 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
420
421         PR debug/48902
422         * var-tracking.c (prepare_call_arguments): Move else before #endif.
423
424 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
425
426         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
427         * gimplify.c (gimplify_switch_expr): Likewise.
428         * omp-low.c (expand_omp_sections): Likewise.
429         * tree-eh.c (lower_try_finally_switch): Likewise.
430         (lower_eh_dispatch): Likewise.
431         * tree.h (build_case_label): Declare.
432         * tree.c (build_case_label): Define.
433
434 2011-05-05  Jason Merrill  <jason@redhat.com>
435
436         PR c++/40975
437         * tree-inline.c (copy_tree_r): Use copy_statement_list.
438         (copy_statement_list): Don't recurse.
439         * stor-layout.c (copy_self_referential_tree_r): Don't allow
440         STATEMENT_LIST.
441
442 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
443
444         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
445         through from -mfpu= handling.
446         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
447
448 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
449
450         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
451         POST_MODIFY.
452
453 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
454
455         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
456         for 11.31.
457         (hppa[12]*-*-hpux11*): Ditto.
458         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
459         * config/ia64/hpux-unix2003.h: New.
460         * config/pa/pa-hpux1131.opt: New.
461         * config/pa/pa-hpux1131.h: New.
462         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
463         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
464         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
465
466 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
467
468         PR debug/48853
469         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
470         instead of mode as 3rd argument to recursive call.
471         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
472         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
473         VOIDmode.
474         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
475         don't give up if mode is Pmode and mem_mode is not VOIDmode.
476         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
477         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
478
479 2011-05-05  Julian Brown  <julian@codesourcery.com>
480
481         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
482         parenthesis in D-register case.
483
484 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
485
486         * opt-functions.awk (var_type_struct): Handle Enum options.
487         * optc-gen.awk: Don't check range of variables of character type.
488         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
489         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
490         rs6000_sdata_name, rs6000_explicit_options): Remove.
491         (rs6000_option_override_internal): Check for -malign-power here.
492         Use global_options_set instead of rs6000_explicit_options.
493         (rs6000_parse_fpu_option): Remove.
494         (rs6000_handle_option): Access variables via opts and opts_set
495         pointers.  Use error_at and warning_at.  Add fall-through
496         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
497         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
498         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
499         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
500         here.  Don't use rs6000_parse_fpu_option.
501         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
502         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
503         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
504         (mrecip=): Use Var.
505         (mspe): Use Var and Save.
506         (mtraceback=): Use Enum and Var.
507         (rs6000_traceback_type): New Enum and EnumValue entries.
508         (mfloat-gprs=): Use Enum, Var and Save.
509         (rs6000_float_gprs): New Enum and EnumValue entries.
510         (mlong-double-): use Var and Save.
511         (msched-costly-dep=, minsert-sched-nops=): Use Var.
512         (malign-): Use Enum and Var.
513         (rs6000_alignment_flags): New Enum and EnumValue entries.
514         (mfpu=): Use Enum.
515         (fpu_type_t): New Enum and EnumValue entries.
516         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
517         global_options_set instead of rs6000_explicit_options.
518         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
519         global_options_set instead of rs6000_explicit_options.
520         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
521         global_options_set instead of rs6000_explicit_options.
522         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
523         global_options_set instead of rs6000_explicit_options.
524         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
525         global_options_set instead of rs6000_explicit_options.
526         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
527         global_options_set instead of rs6000_explicit_options.
528         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
529         definition.
530         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
531         global_options_set instead of rs6000_explicit_options.
532         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
533         (rs6000_cmodel): New Enum and EnumValue entries.
534         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
535         global_options_set instead of rs6000_explicit_options.
536         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
537         (mtls-size=): Use Enum and Var.
538         (rs6000_tls_size): New Enum and EnumValue entries.
539
540 2011-05-05  Michael Matz  <matz@suse.de>
541
542         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
543         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
544         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
545         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
546         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
547         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
548         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
549         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
550         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
551         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
552         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
553         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
554         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
555         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
556         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
557         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
558
559 2011-05-05  Richard Guenther  <rguenther@suse.de>
560
561         * expmed.c (expand_variable_shift): Rename to ...
562         (expand_shift_1): ... this.  Take an expanded shift amount.
563         For rotates recurse directly not building trees for the shift amount.
564         (expand_variable_shift): Wrap around expand_shift_1.
565         (expand_shift): Adjust.
566
567 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
568
569         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
570
571 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
572
573         * tree.h (get_pending_sizes): Remove prototype.
574         (put_pending_size): Likewise.
575         (put_pending_sizes): Likewise.
576         * stor-layout.c (pending_sizes): Delete.
577         (get_pending_sizes): Likewise.
578         (put_pending_size): Likewise.
579         (put_pending_sizes): Likewise.
580         (variable_size): Do not call put_pending_size and tidy up.
581         * function.h (struct function): Remove dont_save_pending_sizes_p.
582         * lto-streamer-in.c (input_function): Do not stream it.
583         * lto-streamer-out.c (output_function): Likewise.
584         * tree-inline.c (initialize_cfun): Do not copy it.
585         * c-decl.c (store_parm_decls): Do not set it.
586         * omp-low.c (create_task_copyfn): Likewise.
587         * tree-optimize.c (tree_rest_of_compilation): Likewise.
588
589 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
590
591         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
592         conditions.
593         (*movdf_internal): Ditto.
594         (*movdf_internal_nointeger): Ditto.
595         (*movsf_internal): Ditto.
596
597 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
598
599         * c-decl.c (finish_decl): Don't call get_pending_sizes.
600         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
601         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
602         (c_variable_size): Remove.
603         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
604         call put_pending_sizes.
605         (get_parm_info): Add parameter expr.  Use it to set
606         arg_info->pending_sizes.
607         (store_parm_decls): Use arg_info->pending_sizes instead or calling
608         get_pending_sizes.
609         * c-parser.c (c_parser_parms_declarator): Update call to
610         c_parser_parms_list_declarator.
611         (c_parser_parms_list_declarator): Take parameter expr.  Update
612         call to push_parm_decl.  Update recursive call.  Don't call
613         get_pending_sizes.  Update calls to get_parm_info.
614         (c_parser_objc_method_definition): Update calls to
615         c_parser_objc_method_decl and objc_start_method_definition.
616         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
617         (c_parser_objc_method_decl): Add parameter expr.  Update call to
618         grokparm.
619         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
620         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
621         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
622
623 2011-05-05  Michael Hope  <michael.hope@linaro.org>
624
625         PR pch/45979
626         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
627         __ARM_EABI__ hosts.
628
629 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
630
631         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
632         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
633         (spu_output_mi_thunk): New function.
634
635 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
636
637         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
638         targetm.asm_out.print_operand.
639         * config/sol2.c: Include target.h.
640
641 2011-05-04  Jan Hubicka  <jh@suse.cz>
642
643         * ipa-inline.c (reset_edge_caches): New function.
644         (update_caller_keys): Add check_inlinablity_for; do not
645         reset edge caches; remove now unnecesary loop.
646         (update_callee_keys): Add comments; reset node_growth_cache of callee.
647         (update_all_callee_keys): Likewise.
648         (inline_small_functions): Sanity check cache; update code
649         recomputing it.
650
651 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
652
653         PR rtl-optimization/47612
654         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
655         as the last insn of the sequence to be moved.
656
657 2011-05-04  Tobias Burnus  <burnus@net-b.de>
658
659         PR fortran/48864
660         * doc/invoke.texi (Ofast): Document that it
661         enables Fortran's -fno-protect-parens.
662
663 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
664
665         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
666
667 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
668
669         * stor-layout.c (variable_size): Do not issue errors.
670
671 2011-05-04  Richard Guenther  <rguenther@suse.de>
672
673         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
674         for array-ref indices.
675         (tree_coverage_counter_addr): Likewise.
676         (build_fn_info_type): Use size_int for index types.
677         (build_gcov_info): Likewise.
678
679 2011-05-04  Richard Guenther  <rguenther@suse.de>
680
681         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
682         to build_int_cst.
683         * c-typeck.c (really_start_incremental_init): Use bitsize_int
684         for constructor indices.
685         (push_init_level): Likewise.
686
687 2011-05-04  Richard Guenther  <rguenther@suse.de>
688
689         * explow.c (promote_mode): Move variable declarations before code.
690
691 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
692
693         * tree.h (build_function_type_array): Declare.
694         (build_varargs_function_type_array): Declare.
695         (build_function_type_vec, build_varargs_function_type_vec): Define.
696         * tree.c (build_function_type_array_1): New function.
697         (build_function_type_array): New function.
698         (build_varargs_function_type_array): New function.
699
700 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
701
702         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
703         before setting STMT_VINFO_TYPE.
704
705 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
706
707         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
708         instead of spu_pass_by_reference.
709
710 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
711
712         * calls.c (emit_library_call_value_1): Invoke
713         promote_function_mode hook on libcall arguments.
714         * explow.c (promote_function_mode, promote_mode): Handle TYPE
715         argument being NULL.
716         * targhooks.c (default_promote_function_mode): Lisewise.
717         * config/s390/s390.c (s390_promote_function_mode): Likewise.
718         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
719
720         * doc/tm.texi: Document that TYPE argument might be NULL.
721
722 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
723
724         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
725
726 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
727
728         From Bernd Schmidt
729         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
730
731 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
732
733         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
734         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
735         Move ...
736         * mips-tfile.c: ... here.
737         Don't include coretypes.h, tm.h, filenames.h.
738         (saber_stop): Remove definition and all calls.
739         [__SABER__]: Remove.
740         (__LINE__): Remove default.
741         (Size_t, Ptrdiff_t): Remove definitions.
742         Replace by size_t, ptrdiff_t.
743         [!MIPS_DEBUGGING_INFO]: Remove.
744         (SHASH_SIZE, THASH_SIZE): Remove defaults.
745         (progname): Add const.
746         (STATIC): Remove.
747         Replace all uses by static.
748         (ALIGN_SYMTABLE_OFFSET): Remove default.
749         * mips-tdump.c: Don't include coretypes.h, tm.h.
750         Remove !MIPS_IS_STAB guard.
751         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
752         $(TM_H), filenames.h dependencies.
753         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
754
755 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
756
757         From Jie Zhang
758         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
759         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
760
761 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
762
763         From Bernd Schmidt
764         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
765         account and save/restore RETS.
766         (PROFILE_BEFORE_PROLOGUE): Define.
767         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
768         the push insn to use predecrement.
769
770 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
771
772         From Jie Zhang
773         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
774
775 2011-05-04  Nick Clifton  <nickc@redhat.com>
776
777         * config/mn10300/mn10300.c: Include cfgloop.h.
778         (DUMP): New macro.
779         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
780         Lcc or a FLcc insn into the instruction stream.
781         (mn10300_block_contains_call): New function.  Returns true if the
782         given basic block contains a CALL insn.
783         (mn10300_loop_contains_call_insn): New function.  Returns true if
784         the given loop contains a CALL insn.
785         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
786         to use the SETLB and Lcc or FLcc insns.
787         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
788         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
789         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
790         disable the SETLB optimization.
791         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
792         __SETLB__ or __NO_SETLB__.
793         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
794         (movsf_internal): Handle MDR register.
795         (cmpsi): Make visible.
796         (setlb): New pattern.
797         (Lcc): New pattern.
798         (FLcc): New pattern.
799
800 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
801
802         PR target/48860
803         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
804         for reg<->xmm moves.
805         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
806         (vec_concatv2di_rex64_sse): Ditto.
807         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
808         (*vec_extractv2di_1_rex64): Ditto.
809
810         Revert:
811         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
812
813         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
814         reg<->xmm moves.
815         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
816
817 2011-05-04  Richard Guenther  <rguenther@suse.de>
818
819         * tree.h (int_const_binop): Remove notrunc argument.
820         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
821         create integer constants that are properly truncated.
822         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
823         (const_binop): Remove zero notrunc argument to int_const_binop.
824         (size_binop_loc): Likewise.
825         (fold_div_compare): Likewise.
826         (maybe_canonicalize_comparison_1): Likewise.
827         (fold_comparison): Likewise.
828         (fold_binary_loc): Likewise.
829         (multiple_of_p): Likewise.
830         * expr.c (store_constructor): Likewise.
831         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
832         (maybe_fold_stmt_addition): Likewise.
833         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
834         * stor-layout.c (layout_type): Likewise.
835         * tree-data-ref.c (tree_fold_divides_p): Likewise.
836         * tree-sra.c (build_ref_for_offset): Likewise.
837         (build_user_friendly_ref_for_offset): Likewise.
838         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
839         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
840         * tree-ssa-loop-niter.c (inverse): Likewise.
841         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
842         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
843         * tree-switch-conversion.c (check_range): Likewise.
844         (build_constructors): Likewise.
845         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
846         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
847         (extract_range_from_assert): Likewise.
848         (vrp_int_const_binop): Likewise.
849         (extract_range_from_binary_expr): Likewise.
850         (extract_range_from_unary_expr): Likewise.
851         (check_array_ref): Likewise.
852         (find_case_label_range): Likewise.
853         (simplify_div_or_mod_using_ranges): Likewise.
854         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
855         comparing case labels for merging.
856
857 2011-05-03  Mark Wielaard  <mjw@redhat.com>
858
859         * dwarf2out.c (debug_str_hash_forced): Removed.
860         (gen_label_for_indirect_string): Removed.
861         (get_debug_string_label): Removed.
862         (AT_string_form): Generate label directly.
863         (output_indirect_string): Test indirect_string_node for
864         DW_FORM_strp instead of checking label and refcount.
865         (prune_indirect_string): Removed.
866         (prune_unused_types): Don't check debug_str_hash_forced or
867         call prune_indirect_string.
868
869 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
870
871         PR other/48093
872         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
873
874 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
875
876         PR debug/47994
877         PR debug/47919
878         * combine.c (try_combine): Skip debug insns at m_split tests.
879
880 2011-04-26  Mark Wielaard  <mjw@redhat.com>
881
882         PR42288
883         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
884         when info_section_emitted.
885
886 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
887
888         * config/mips/mips-opts.h: New.
889         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
890         to mips-opts.h.
891         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
892         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
893         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
894         via opts pointer.
895         * config/mips/mips.h (enum mips_code_readable_setting): Move to
896         mips-opts.h.
897         (mips_abi, mips_code_readable): Don't declare.
898         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
899         (mabi=): Use Enum and Var.
900         (mips_abi): New Enum and EnumValue entries.
901         (mcode-readable=): Use Enum and Var.
902         (mips_code_readable_setting): New Enum and EnumValue entries.
903         (mr10k-cache-barrier=): Use Enum and Var.
904         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
905
906 2011-05-03  Jan Hubicka  <jh@suse.cz>
907
908         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
909         replace hash by pointer map.
910         (cgraph_node_set_element_def, cgraph_node_set_element,
911         const_cgraph_node_set_element, varpool_node_set_element_def,
912         varpool_node_set_element, const_varpool_node_set_element): Remove.
913         (free_cgraph_node_set, free_varpool_node_set): New function.
914         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
915         * tree-emutls.c: Free varpool node set.
916         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
917         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
918         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
919         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
920         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
921         Move here from ipa.c; implement using pointer_map
922         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
923         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
924         debug_cgraph_node_set, varpool_node_set_new,
925         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
926         dump_varpool_node_set, debug_varpool_node_set):
927         Move to ipa-uitls.c.
928         * passes.c (ipa_write_summaries): Update.
929
930 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
931
932         From Mike Frysinger:
933         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
934         bf542/bf544/bf547/bf548/bf549.
935
936 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
937
938         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
939
940 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
941
942         From Bernd Schmidt:
943         * config/bfin/bfin.md (MOVCC): New mode_macro.
944         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
945         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
946         comments from generated assembly.
947
948 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
949
950         From Bernd Schmidt
951         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
952         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
953         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
954         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
955         * config/bfin/lib1funcs.asm (___muldi3): New function.
956
957 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
958
959         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
960         build_function_type_list instead of build_function_type.
961         Rearrange initialization of `args' to do so.
962
963 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
964
965         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
966         instead of build_function_type.
967
968 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
969
970         * config/rs6000/rs6000.c (spe_init_builtins): Call
971         build_function_type_list instead of build_function_type.
972         (paired_init_builtins, altivec_init_builtins): Likewise.
973         (builtin_function_type): Likewise.
974
975 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
976
977         * config/sh/sh.c (sh_media_init_builtins): Call
978         build_function_type_list instead of build_function_type.
979
980 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
981
982         * config/sparc/sparc.c (sparc_file_end): Call
983         build_function_type_list instead of build_function_type.
984
985 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
986
987         * config/alpha/alpha.c (alpha_init_builtins): Call
988         build_function_type_list instead of build_function_type.
989
990 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
991
992         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
993         build_function_type_list instead of build_function_type.
994
995 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
996
997         * config/iq2000/i2000.c (iq2000_init_builtins): Call
998         build_function_type_list instead of build_function_type.
999         Delete `endlink' variable.
1000
1001 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1002
1003         * config/avr/avr.c (avr_init_builtins): Call
1004         build_function_type_list instead of build_function_type.
1005
1006 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1007
1008         * config/picochip/picochip.c (picochip_init_builtins): Call
1009         build_function_type_list instead of build_function_type.
1010         Delete `endlink' variable.
1011
1012 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1013
1014         * config/bfin/bfin.c (bfin_init_builtins): Call
1015         build_function_type_list instead of build_function_type.
1016
1017 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1018
1019         From Bernd Schmidt
1020         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1021         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1022
1023 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1024
1025         From Jie Zhang:
1026         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1027         libbffastfp overrides libgcc when -mfast-fp.
1028
1029 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
1030
1031         Originally from Bernd Schmidt
1032         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1033         * config/bfin/bfin.c (override_options): Test it and error if
1034         TARGET_FDPIC.
1035
1036 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1037
1038         Originally From Bernd Schmidt
1039         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1040         FD-PIC.
1041
1042 2011-05-03  Jeff Law  <law@redhat.com>
1043
1044         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1045         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1046         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1047         than accessing AUX field directly.  Free the AUX field before
1048         clearing it.
1049         (thread_block, thread_through_loop_header): Likewise.
1050         (thread_single_edge, mark_threaded_blocks): Likewise.
1051         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1052         (register_jump_thread): Do not attempt to thread to a NULL edge.
1053
1054 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1055
1056         * function.c (init_function_start): Call decide_function_section.
1057         * varasm.c (decide_function_section): New function.
1058         (assemble_start_function): When not using
1059         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1060         or first_function_block_is_cold.
1061         * rtl.h (decide_function_section): Declare.
1062
1063 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1064             Jakub Jelinek  <jakub@redhat.com>
1065
1066         PR target/48774
1067         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1068         only succeed if req_mode is the same as set_mode.
1069
1070 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1071
1072         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1073         * genemit.c (gen_exp): Handle RETURN.
1074         * emit-rtl.c (verify_rtx_sharing): Likewise.
1075         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1076         * rtl.c (copy_rtx): RETURN is shared.
1077         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1078         (ret_rtx): New.
1079         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1080         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1081         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1082         * config/cris/cris.c (cris_expand_return): Likewise.
1083         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1084         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1085         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1086         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1087         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1088         Likewise.
1089         * config/v850/v850.c (expand_epilogue): Likewise.
1090         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1091         * config/arm/arm.md (epilogue): Likewise.
1092         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1093         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1094         variable to ret_reg.
1095
1096 2011-05-03  Richard Guenther  <rguenther@suse.de>
1097
1098         PR lto/48846
1099         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1100         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1101         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1102
1103 2011-05-03  Richard Guenther  <rguenther@suse.de>
1104
1105         * c-decl.c (grokdeclarator): Instead of looking at
1106         TREE_OVERFLOW check if the constant fits in the index type.
1107
1108 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1109
1110         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1111         (vec_store_lanes<mode><mode>): Likewise.
1112
1113 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1114
1115         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1116         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1117         convert_optab_index values.
1118         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1119         * genopinit.c (optabs): Initialize the new optabs.
1120         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1121         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1122         (expand_STORE_LANES): New functions.
1123         * tree.h (build_array_type_nelts): Declare.
1124         * tree.c (build_array_type_nelts): New function.
1125         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1126         (vect_model_load_cost): Likewise.
1127         (vect_store_lanes_supported, vect_load_lanes_supported)
1128         (vect_record_strided_load_vectors): Declare.
1129         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1130         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1131         (vect_transform_strided_load): Split out statement recording into...
1132         (vect_record_strided_load_vectors): ...this new function.
1133         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1134         (write_vector_array, create_array_ref): New functions.
1135         (vect_model_store_cost): Add store_lanes_p argument.
1136         (vect_model_load_cost): Add load_lanes_p argument.
1137         (vectorizable_store): Try to use store-lanes functions for
1138         interleaved stores.
1139         (vectorizable_load): Likewise load-lanes and loads.
1140         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1141         to vect_model_store_cost.
1142         (vect_build_slp_tree): Likewise vect_model_load_cost.
1143
1144 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1145
1146         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1147         * hooks.c (hook_bool_mode_uhwi_false): New function.
1148         * target.def (array_mode_supported_p): New hook.
1149         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1150         * doc/tm.texi: Regenerate.
1151         * stor-layout.c (mode_for_array): New function.
1152         (layout_type): Use it.
1153         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1154         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1155
1156 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1157
1158         PR target/48723
1159         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1160         for -fstack-check if the size to allocate is negative.
1161
1162 2011-05-02  Lawrence Crowl  <crowl@google.com>
1163
1164         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1165         (timevar_cond_start): New for starting a timer only when it is not
1166         already running.
1167         (timevar_cond_stop): New for stopping a timer when it was not already
1168         running.
1169
1170         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1171         (timevar_cond_start): New as above.
1172         (timevar_cond_stop): New as above.
1173
1174         * timevar.def: Add start/stop timers for compiler phases,
1175         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1176         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1177         and TV_PHASE_FINALIZE.
1178         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1179         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1180         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1181         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1182         Make unused TV_OVERLOAD into a start/stop timer.
1183
1184         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1185         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1186         to indicate that they are start/stop timers.
1187
1188         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1189         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1190         Move initialization to do_compile.
1191         (do_compile): Add initialization from above.
1192         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1193
1194         * c-decl.c (c_write_global_declarations): Add start/stop of
1195         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1196
1197         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1198         or TV_PARSE_INLINE, as appropriate.
1199         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1200         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1201
1202 2011-05-02  Jason Merrill  <jason@redhat.com>
1203
1204         PR c++/40975
1205         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1206
1207 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1208
1209         PR c/35445
1210         * c-decl.c (finish_decl): Only create a composite if the types are
1211         compatible.
1212
1213 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1214
1215         * config/fr30/fr30-protos.h (Mmode): Don't define.
1216         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1217         definition where used.
1218         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1219         define.  Expand definitions where used.
1220         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1221         Expand definitions where used.
1222         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1223         rx_function_arg, rx_function_arg_advance,
1224         rx_function_arg_boundary): Expand definitions of those macros.
1225         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1226         definition where used.
1227
1228 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1229
1230         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1231         reg<->xmm moves.
1232         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1233         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1234         with *movv2sf_internal_rex64_avx.
1235         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1236         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1237         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1238         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1239         "vex" in "prefix" attribute calculation.
1240         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1241
1242 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1243
1244         PR target/47951
1245         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1246         inputs match the output.
1247
1248 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1249
1250         PR target/47955
1251         * config/m68k/m68k.c (m68k_expand_prologue): Set
1252         current_function_static_stack_size.
1253
1254 2011-05-02   Jan Hubicka  <jh@suse.cz>
1255
1256         * lto-streamer.c (lto_streamer_cache_insert_1,
1257         lto_streamer_cache_lookup, lto_streamer_cache_create,
1258         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1259         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1260
1261 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1262
1263         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1264         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1265         config/m68k/t-opts: New files.
1266         * config/m68k/m68k-tables.opt: New file (generated).
1267         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1268         extra_options and m68k/t-opts to tmake_file.
1269         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1270         (all_isas): Initialize using m68k-isas.def.
1271         (all_microarchs): Initialize using m68k-microarchs.def.
1272         (m68k_find_selection): Remove.
1273         (m68k_handle_option): Don't assert that global structures are in
1274         use.  Use error_at.  Access variables via opts pointer.  Don't
1275         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1276         directly for -m68020-40 and -m68020-60.
1277         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1278         m68k_tune_entry here.
1279         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1280         to m68k-opts.h.
1281         (m68k_library_id_string): Remove declaration.
1282         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1283         (m68k_library_id_string): New Variable.
1284         (march=, mcpu=, mtune=): Use Enum and Var.
1285
1286 2011-05-02  Richard Guenther  <rguenther@suse.de>
1287
1288         * varasm.c (output_constructor_regular_field): Compute zero-based
1289         index with double-ints.  Make sure to ICE instead of producing
1290         wrong code.
1291         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1292         in asserts.  Properly use a signed type.
1293
1294 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1295
1296         * config/i386/sse.md (V): New mode iterator.
1297         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1298         TARGET_SSE2.
1299         (V_256): Rename from AVX256MODE.
1300         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1301         condition to all users.
1302         (VF1): Ditto.
1303         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1304         condition to all users.
1305         (VF_128): Make V4SF mode unconditional.
1306         (VF_256): Rename from AVX256MODEF2P.
1307         (VI4F_128): Rename from SSEMODE4S.
1308         (VI8F_128): Rename from SSEMODE2D.
1309         (VI4F_256): Rename from AVX256MODE8P.
1310         (VI8F_256): Rename from AVX256MODE4P.
1311         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1312         (ssescalarmodesuffix): Remove SF and DF modes.
1313         (SSEMODE124): Remove.
1314         (SSEMODE1248): Ditto.
1315         (SSEMODEF2P): Ditto.
1316         (AVXMODEF2P): Ditto.
1317         (AVXMODEFDP): Ditto.
1318         (AVXMODEFSP): Ditto.
1319         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1320         unconditional.
1321         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1322         unconditional.
1323         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1324         xop_pcmov_<mode>256.  Use V mode iterator.
1325
1326         Adjust RTX patterns globally for renamed mode attributes.
1327
1328 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1329
1330         * haifa-sched.c (sched_emit_insn): Emit insn before first
1331         non-scheduled insn.  Inform back-end about new insn.  Add
1332         new insn to scheduled_insns list.
1333
1334 2011-05-02  Richard Guenther  <rguenther@suse.de>
1335
1336         PR tree-optimization/48822
1337         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1338         (process_scc): Indicate which iteration we start.
1339
1340 2011-05-02  Jan Hubicka  <jh@suse.cz>
1341
1342         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1343         (lto_section_overrun): New.
1344         * lto-section-out.c (append_block): Rename to ...
1345         (lto_append_block): ... this one; export.
1346         (lto_output_1_stream): Move lto lto-streamer.h
1347         (lto_output_data_stream): Update.
1348         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1349         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1350         functions.
1351
1352 2011-05-02  Richard Guenther  <rguenther@suse.de>
1353
1354         * tree.c (tree_code_counts): New global array.
1355         (record_node_allocation_statistics): Count individual tree codes.
1356         (dump_tree_statistics): Dump individual code stats.
1357
1358 2011-05-01  Jan Hubicka  <jh@suse.cz>
1359
1360         * ipa-inline.c (caller_growth_limits): Fix thinko when
1361         looking for largest stack frame.
1362         * ipa-inline.h (dump_inline_summary): Declare.
1363         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1364         on stack usage.
1365         (dump_inline_summary): Export.
1366         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1367
1368 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1369
1370         * reginfo.c (memory_move_cost): Change rclass argument type form
1371         'enum reg_class' to reg_class_t.
1372         * reload.h (memory_move_cost): Update prototype.
1373         * postreload.c reload_cse_simplify_set): Change type dclass var to
1374         reg_class_t.
1375         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1376         Update prototype.
1377         (ira_allocate_and_set_costs): Change aclass argument type form
1378         'enum reg_class' to reg_class_t.
1379         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1380         Change aclass argument type to reg_class_t.
1381         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1382         to reg_class_t.
1383         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1384         memory_move_cost call.
1385
1386         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1387         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1388         Change type tmp var to reg_class_t.
1389
1390 2011-04-30  Jan Hubicka  <jh@suse.cz>
1391
1392         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1393         inlining into function with flatten attribute.
1394         (want_inline_small_function_p): Be more realistic about inlining
1395         cold calls where callee size grows.
1396
1397 2011-04-30  Jan Hubicka  <jh@suse.cz>
1398
1399         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1400         flags.
1401
1402 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1403
1404         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1405         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1406         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1407         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1408         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1409         (print_operand): Rename to...
1410         (sparc_print_operand): ...this. Make static. Adjust
1411         sparc_print_operand function call.
1412         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1413         functions.
1414
1415 2011-04-30  Jan Hubicka  <jh@suse.cz>
1416
1417         PR middle-end/48752
1418         * ipa-inline.c (early_inliner): Disable when doing late
1419         addition of function.
1420
1421 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1422
1423         * dwarf2out.c (get_address_mode): New inline.
1424         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1425         if not dwarf_strict emit
1426         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1427         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1428         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1429         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1430         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1431         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1432         mem_loc_descriptor callers.
1433         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1434         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1435         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1436         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1437         (base_types): New variable.
1438         (get_base_type_offset, calc_base_type_die_sizes,
1439         base_type_for_mode, mark_base_types, base_type_cmp,
1440         move_marked_base_types): New functions.
1441         (calc_die_sizes): Assert that die_offset is 0 or equal to
1442         next_die_offset.
1443         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1444         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1445         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1446         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1447         (gen_subprogram_die): Don't give up on call site parameters
1448         with non-integral or large integral modes.  Adjust
1449         mem_loc_descriptor callers.
1450         (prune_unused_types): Call prune_unused_types_mark on base_types
1451         vector entries.
1452         (resolve_addr): Call mark_base_types.
1453         (dwarf2out_finish): Call move_marked_base_types.
1454
1455         PR tree-optimization/48809
1456         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1457         type.
1458         (gen_inbound_check): Don't compute index_expr - range_min in utype
1459         again, instead reuse SSA_NAME initialized in build_arrays.
1460         Remove two useless gsi_for_stmt calls.
1461
1462 2011-04-29  Jeff Law  <law@redhat.com>
1463
1464         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1465
1466 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1467
1468         * cgraph.h (cgraph_postorder): Remove declaration.
1469         * ipa-utils.h (ipa_free_postorder_info): Declare.
1470         (ipa_reverse_postorder): Likewise.
1471         * cgraphunit.c: Include ipa-utils.h.
1472         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1473         * ipa-inline.c: Include ipa-utils.h.
1474         (ipa_inline): Update call to ipa_reverse_postorder.
1475         * ipa-pure-const.c (propagate_pure_const): Update call to
1476         ipa_reduced_postorder and ipa_print_order.  Call
1477         ipa_free_postorder_info to clean up.
1478         (propagate_nothrow): Likewise.
1479         * ipa-reference.c (propagate): Removed a useless call to
1480         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1481         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1482         * ipa.c: Include ipa-utils.h.
1483         (ipa_profile): Update call to ipa_reverse_postorder.
1484         (cgraph_postorder): Moved to...
1485         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1486         (ipa_utils_print_order): Renamed to ipa_print_order.
1487         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1488         comments.
1489         (ipa_free_postorder_info): New function.
1490         * passes.c: Include ipa-utils.h.
1491         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1492         (ipa_write_summaries): Likewise.
1493         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1494         (cgraphunit.o): Likewise.
1495         (ipa.o): Likewise.
1496         (ipa-inline.o): Likewise.
1497
1498 2011-04-29  Jan Hubicka  <jh@suse.cz>
1499
1500         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1501         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1502         * ipa-inline.h (clause_t): Turn into unsigned int.
1503         * ipa-inline-analysis.c (add_clause): Do more simplification.
1504         (and_predicates): Shortcut more cases.
1505         (predicates_equal_p): Move forward; check that clauses are properly
1506         ordered.
1507         (or_predicates): Shortcut more cases.
1508         (edge_execution_predicate): Rewrite as...
1509         (set_cond_stmt_execution_predicate): ... this function; handle
1510         __builtin_constant_p.
1511         (set_switch_stmt_execution_predicate): New .
1512         (compute_bb_predicates): New.
1513         (will_be_nonconstant_predicate): Update TODO.
1514         (estimate_function_body_sizes): Use compute_bb_predicates
1515         and free them later, always try to estimate if stmt is constant.
1516         (estimate_time_after_inlining, estimate_size_after_inlining):
1517         Gracefully handle optimized out edges.
1518         (read_predicate): Fix off by one error.
1519
1520 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1521
1522         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1523
1524 2011-04-27  Xinliang David Li  <davidxl@google.com>
1525
1526         * tree-profile.c (init_ic_make_global_vars): Set
1527         tls attribute on ic vars.
1528         * coverage.c (coverage_end_function): Initialize
1529         function_list with zero.
1530
1531 2011-04-29  Richard Guenther  <rguenther@suse.de>
1532
1533         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1534         for the type of the result.
1535         (fold_builtin_isascii): Likewise.
1536         (fold_builtin_toascii): Use integer_type_node where appropriate.
1537         (fold_builtin_logb): Likewise.
1538         (fold_builtin_frexp): Likewise.
1539         (fold_builtin_strstr): Likewise.
1540         (fold_builtin_strpbrk): Likewise.
1541         (fold_builtin_fputs): Likewise.
1542         (fold_builtin_sprintf): Likewise.
1543         (fold_builtin_snprintf): Likewise.
1544         (fold_builtin_printf): Likewise.
1545         (do_mpfr_remquo): Use a proper type for the assigned constant.
1546         (do_mpfr_lgamma_r): Likewise.
1547         * dwarf2out.c (resolve_one_addr): Use size_int.
1548         * except.c (init_eh): Likewise.
1549         (assign_filter_values): Use integer_type_node for filter values.
1550         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1551         indices.
1552         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1553         for EH region numbers.
1554         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1555         for the shift amount.
1556
1557 2011-04-29  Richard Guenther  <rguenther@suse.de>
1558
1559         * expr.h (expand_shift): Rename to ...
1560         (expand_variable_shift): ... this.
1561         (expand_shift): Take a constant shift amount.
1562         * expmed.c (expand_shift): Rename to ...
1563         (expand_variable_shift): ... this.
1564         (expand_shift): New wrapper around expand_variable_shift.
1565         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1566         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1567         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1568         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1569         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1570         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1571         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1572         emit_store_flag_1, emit_store_flag): Likewise.
1573         * builtins.c (expand_builtin_signbit): Likewise.
1574         * calls.c (load_register_parameters): Likewise.
1575         * function.c (assign_parm_setup_block): Likewise.
1576         * lower-subreg.c (resolve_shift_zext): Likewise.
1577         * optabs.c (widen_bswap, expand_abs_nojump,
1578         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1579         * spu/spu.c (spu_expand_extv): Likewise.
1580         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1581
1582 2011-04-29  Richard Guenther  <rguenther@suse.de>
1583
1584         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1585         for the remapped region number.
1586         * predict.c (build_predict_expr): Use integer_type_node for the
1587         predict kind.
1588         * fold-const.c (fold_binary_loc): Use integer_type_node for
1589         the shift amount.  Use a proper type for the PLUS_EXPR operand.
1590
1591 2011-04-29  Michael Matz  <matz@suse.de>
1592
1593         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1594         other trees that just builtins.
1595         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1596
1597 2011-04-29  Richard Guenther  <rguenther@suse.de>
1598
1599         * tree-nested.c (get_trampoline_type): Use size_int.
1600         (get_nl_goto_field): Likewise.
1601         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1602         for all indexes.
1603         (lower_eh_constructs_2): Likewise.
1604         (lower_resx): Likewise.
1605         (lower_eh_dispatch): Likewise.
1606         * tree-mudflap.c (mf_build_string): Use size_int.
1607         (mudflap_register_call): Use integer_type_node for the flag.
1608         (mudflap_enqueue_constant): Use size_int.
1609         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1610         instead of rebuilding it.
1611
1612 2011-04-29  Richard Guenther  <rguenther@suse.de>
1613
1614         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1615         Handle OBJ_TYPE_REF.
1616         (find_func_aliases_for_call): Use it more consistently.
1617
1618 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
1619
1620         * haifa-sched.c (last_nondebug_scheduled_insn): New.
1621         (rank_for_schedule): Use it.
1622         (schedule_block): Set it.
1623
1624 2011-04-28  David Li  <davidxl@google.com>
1625
1626         * tree.c (crc32_string): Use crc32_byte.
1627         (crc32_byte): New function.
1628         * tree.h (crc32_byte): New function.
1629         * gcov.c (read_graph_file): Handle new cfg_cksum.
1630         (read_count_file): Ditto.
1631         * profile.c (instrument_values): Ditto.
1632         (get_exec_counts): Ditto.
1633         (read_profile_edge_counts): Ditto.
1634         (compute_branch_probabilities): Ditto.
1635         (compute_value_histograms): Ditto.
1636         (branch_prob): Ditto.
1637         (end_branch_prob): Ditto.
1638         * coverage.c (read_counts_file): Ditto.
1639         (get_coverage_counts): Ditto.
1640         (tree_coverage_counter_addr): Ditto.
1641         (coverage_checksum_string): Ditto.
1642         (coverage_begin_output): Ditto.
1643         (coverage_end_function): Ditto.
1644         (build_fn_info_type): Ditto.
1645         (build_fn_info_value): Ditto.
1646         * libgcov.c (gcov_exit): Ditto.
1647         * gcov-dump.c (tag_function): Ditto.
1648         (compute_checksum): Remove.
1649
1650 2011-04-29  Alan Modra  <amodra@gmail.com>
1651
1652         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1653         unspec plus offset.  Tidy macho code.
1654
1655 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1656
1657         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1658         node instead of a decl.  Update all callers.
1659         * cgraph.h: Update declaration.
1660
1661 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
1662
1663         PR tree-optimization/48765
1664         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1665         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1666         to indicate if loop aware SLP is being used.  Scan the statements
1667         and update the vectorization factor according to the type of
1668         vectorization before statement analysis.
1669         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1670         pass it to vect_analyze_loop_operations.
1671         (vectorizable_reduction): Set number of copies to 1 in case of pure
1672         SLP statement.
1673         * tree-vect-stmts.c (vectorizable_conversion,
1674         vectorizable_assignment, vectorizable_shift,
1675         vectorizable_operation, vectorizable_type_demotion,
1676         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1677         Likewise.
1678         (vectorizable_condition): Move the check that it is not SLP
1679         vectorization before the number of copies check.
1680         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1681         to vectorize the loop using SLP.
1682
1683 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
1684
1685         PR middle-end/48597
1686         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1687         inline asm.
1688
1689 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
1690
1691         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1692         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1693         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1694         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1695         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1696         linux*.h headers.
1697         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1698         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1699         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1700         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1701         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1702         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1703         REG_NAME.
1704         * config/i386/linux.h (REG_NAME): Don't define.
1705         * config/i386/linux64.h (REG_NAME): Don't define.
1706         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1707         Undefine before defining.
1708
1709 2011-04-28  Jan Hubicka  <jh@suse.cz>
1710
1711         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1712         nonconstant_names array.
1713         (estimate_function_body_sizes): Build nonconstant_names array; handle
1714         BUILT_IN_CONSTANT_P.
1715
1716 2011-04-28  Richard Guenther  <rguenther@suse.de>
1717
1718         PR bootstrap/48804
1719         Revert
1720         2011-04-28  Richard Guenther  <rguenther@suse.de>
1721
1722         * tree-ssa-structalias.c (solve_constraints): Build succ graph
1723         as late as possible.
1724
1725 2011-04-28  Richard Guenther  <rguenther@suse.de>
1726
1727         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1728         (debug_constraint): Do it here.
1729         (dump_constraints): And here.
1730         (rewrite_constraints): And here.
1731         (dump_constraint_edge): Remove.
1732         (dump_constraint_graph): Rewrite to produce DOT output.
1733         (solve_constraints): Build succ graph as late as possible.
1734         Dump constraint graphs before and after solving.
1735
1736 2011-04-28  Richard Guenther  <rguenther@suse.de>
1737
1738         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1739         New function split out from ...
1740         (find_func_aliases): ... here.  Call it.
1741         (find_func_aliases_for_call): Likewise.
1742
1743 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1744
1745         * internal-fn.h (internal_fn_name_array): Declare.
1746         (internal_fn_flags_array): Likewise.
1747
1748 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1749
1750         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
1751         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1752         Move from sse.md.
1753         (ssemodefsuffix): Remove.
1754         (ssevecmodesuffix): New mode attribute.
1755         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1756         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1757         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1758         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1759         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1760         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1761         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1762         ssemodesuffix mode attribute.
1763         (float splitters): Use ssevecmodesuffix mode attribute.
1764         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1765         (sseinsmode): Rename from avxvecmode.
1766         (avxsizesuffix): Rename from avxmodesuffix.
1767         (sseintvecmode): Rename from avxpermvecmode.
1768         (ssedoublevecmode): Rename from ssedoublesizemode.
1769         (ssehalfvecmode): Rename from avxhalfvecmode.
1770         (ssescalarmode): Rename from avxscalarmode.
1771         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1772         templates for ssemodesuffix mode attribute.
1773         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1774         mode attribute.
1775
1776         Adjust RTX patterns globally for renamed mode attributes.
1777
1778 2011-04-27  Jan Hubcika  <jh@suse.cz>
1779
1780         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1781         * ipa-inline-analysis.c: Include alloc-pool.h.
1782         (edge_predicate_pool): New.
1783         (trye_predicate_p): New function
1784         (false_predicate_p): New function.
1785         (add_clause): Sanity check that false clauses are "optimized";
1786         never add clauses to predicate that is already known to be false.
1787         (and_predicate): Use flase_predicate_p.
1788         (evaulate_predicate): Rename to ...
1789         (evaluate_predicate): ... this one; update all callers; assert
1790         that false is not listed among possible truths.
1791         (dump_predicate): Use true_predicate_p.
1792         (account_size_time): Use false_predicate_p.
1793         (evaulate_conditions_for_edge): Rename to ...
1794         (evaluate_conditions_for_edge) ... this one.
1795         (edge_set_predicate): New function.
1796         (inline_edge_duplication_hook): Duplicate edge predicates.
1797         (inline_edge_removal_hook): Free edge predicates.
1798         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1799         (dump_inline_summary): Update.
1800         (estimate_function_body_sizes): Set edge predicates.
1801         (estimate_calls_size_and_time): Handle predicates.
1802         (estimate_callee_size_and_time): Update.
1803         (remap_predicate): Add toplev_predicate; update comment.
1804         (remap_edge_predicates): New function.
1805         (inline_merge_summary): Compute toplev predicate; update.
1806         (read_predicate): New function.
1807         (read_inline_edge_summary): Use it.
1808         (inline_read_section): Likewise.
1809         (write_predicate): New function.
1810         (write_inline_edge_summary): Use it.
1811         (inline_write_summary): Likewise.
1812         (inline_free_summary): Free alloc pool and edge summary vec.
1813
1814 2011-04-27  Richard Guenther  <rguenther@suse.de>
1815
1816         * tree-ssa-structalias.c (changed_count): Remove.
1817         (changed): Use a bitmap.
1818         (unify_nodes): Adjust.
1819         (do_sd_constraint): Likewise.
1820         (do_ds_constraint): Likewise.
1821         (do_complex_constraint): Likewise.
1822         (solve_graph): Likewise.
1823
1824 2011-04-27  Jan Hubicka  <jh@suse.cz>
1825
1826         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1827
1828 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1829
1830         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1831         (avx_vperm2f128_*_operand): Ditto.
1832         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1833         Use avx_vpermilp_parallel in insn condition.
1834         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1835         Use avx_vperm2f128_parallel in insn condition.
1836
1837 2011-04-27  Richard Guenther  <rguenther@suse.de>
1838
1839         * Makefile.in (tree-ssa-structalias.o): Remove
1840         gt-tree-ssa-structalias.h dependency.
1841         (GTFILES): Remove tree-ssa-structalias.c.
1842         * tree.c (allocate_decl_uid): New function.
1843         (make_node_stat): Use it.
1844         (copy_node_stat): Likewise.
1845         * tree.h (allocate_decl_uid): Declare.
1846         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1847         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1848         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1849         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1850         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1851         (struct heapvar_map): Likewise.
1852         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1853         heapvar_insert): Likewise.
1854         (make_heapvar_for): Rename to ...
1855         (make_heapvar): ... this.  Simplify.
1856         (fake_var_decl_obstack): New global var.
1857         (build_fake_var_decl): New function.
1858         (make_constraint_from_heapvar): Adjust.
1859         (handle_lhs_call): Likewise.
1860         (create_function_info_for): Likewise.
1861         (intra_create_variable_infos): Likewise.
1862         (init_alias_vars): Allocate fake_var_decl_obstack.
1863         (init_alias_heapvars, delete_alias_heapvars): Remove.
1864         (compute_points_to_sets): Do not call init_alias_heapvars.
1865         (ipa_pta_execute): Likewise.
1866         (delete_points_to_sets): Free fake_var_decl_obstack.
1867
1868 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1869
1870         * config/spu/divmovti4.c (union qword_UTItype): New data type.
1871         (si_from_UTItype, si_to_UTItype): New functions.
1872         (__udivmodti4): Use them to implement type-punning.
1873         * config/spu/multi3.c (union qword_TItype): New data type.
1874         (si_from_TItype, si_to_TItype): New functions.
1875         (__multi3): Use them to implement type-punning.
1876
1877 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1878
1879         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1880
1881 2011-04-27  Jan Hubicka  <jh@suse.cz>
1882
1883         * ipa-prop.c (function_insertion_hook_holder): New holder.
1884         (ipa_add_new_function): New function.
1885         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1886         Register/deregister holder.
1887
1888 2011-04-27  Richard Guenther  <rguenther@suse.de>
1889
1890         PR tree-optimization/48772
1891         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1892
1893 2011-04-27  Richard Guenther  <rguenther@suse.de>
1894
1895         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1896         TARGET_MEM_REF handling.
1897
1898 2011-04-27  Nick Clifton  <nickc@redhat.com>
1899
1900         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1901         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1902         (REG_CLASS_NAMES): Likewise.
1903         (REG_CLASS_CONTENTS): Likewise.
1904         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1905         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1906         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
1907         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
1908         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
1909         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1910         duplicate register classes.
1911         (frv_class_likely_spilled_p): Likewise.
1912         (frv_register_move_cost): Likewise.
1913
1914         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1915         end of the regno_reg_class array.
1916
1917 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
1918
1919         PR c/48742
1920         * c-typeck.c (build_binary_op): Don't wrap arguments if
1921         int_operands is true.
1922
1923 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
1924
1925         PR target/48767
1926         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1927         targetm.calls.must_pass_in_stack for void type.
1928
1929 2011-04-26  Jan Hubicka  <jh@suse.cz>
1930
1931         * cgraphbuild.c (build_cgraph_edges): Update call
1932         of cgraph_create_edge and cgraph_create_indirect_edge.
1933         * cgraph.c (cgraph_create_edge_including_clones,
1934         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1935         cgraph_update_edges_for_call_stmt_node): Do not take nest
1936         argument; do not initialize call_stmt_size/time.
1937         (dump_cgraph_node): Do not dump nest.
1938         (cgraph_clone_edge): Do not take loop_nest argument;
1939         do not propagate it; do not clone call_stmt_size/time.
1940         (cgraph_clone_node): Likewise.
1941         (cgraph_create_virtual_clone): Update.
1942         * cgraph.h (struct cgraph_edge): Remove
1943         call_stmt_size/call_stmt_time/loop_nest.
1944         (cgraph_create_edge, cgraph_create_indirect_edge,
1945         cgraph_create_edge_including_clones, cgraph_clone_node): Update
1946         prototype.
1947         * tree-emutls.c (gen_emutls_addr): Update.
1948         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1949         loop_nest; handle indirect calls, too.
1950         (clone_inlined_nodes): Do not care about updating inline summaries.
1951         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1952         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1953         stream call_stmt_size/call_stmt_time/loop_nest.
1954         * ipa-inline.c (edge_badness): Update.
1955         (ipa_inline): dump summaries after inlining.
1956         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1957         New.
1958         (inline_edge_summary): New function.
1959         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1960         (inline_edge_removal_hook): Handle edge summaries.
1961         (inline_edge_duplication_hook): New hook.
1962         (inline_summary_alloc): Alloc hooks.
1963         (initialize_growth_caches): Do not register removal hooks.
1964         (free_growth_caches); Do not free removal hook.
1965         (dump_inline_edge_summary): New function.
1966         (dump_inline_summary): Use it.
1967         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1968         (inline_update_callee_summaries): New function.
1969         (inline_merge_summary): Use it.
1970         (do_estimate_edge_time, do_estimate_edge_growth): Update.
1971         (read_inline_edge_summary): New function.
1972         (inline_read_section): Use it.
1973         (write_inline_edge_summary): New function.
1974         (inline_write_summary): Use it.
1975         (inline_free_summary): Free edge new holders.
1976         * tree-inline.c (copy_bb): Update.
1977
1978 2011-04-26  Jason Merrill  <jason@redhat.com>
1979
1980         * tree-eh.c (lower_try_finally_switch): Create the label along with
1981         the CASE_LABEL_EXPR.
1982
1983 2011-04-26  David S. Miller  <davem@davemloft.net>
1984             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1985
1986         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1987         * configure: Regenerate.
1988
1989 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1990
1991         PR target/48258
1992         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1993         reduction.
1994         (VEC_reduc): New code iterator and splitters for vector reduction.
1995         (VEC_reduc_name): Ditto.
1996         (VEC_reduc_rtx): Ditto.
1997         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1998         (reduc_<VEC_reduc_name>_v4sf): Ditto.
1999
2000         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2001         support for extracting SF on VSX.
2002
2003         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2004         generating xscvspdp.
2005         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2006         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2007         double add, minimum, maximum vector reduction.
2008         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2009         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2010         optimize double vector reduction.
2011         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2012
2013 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2014
2015         * config/fr30/fr30.h (inhibit_libc): Don't define.
2016         * config/m32r/m32r-protos.h: Correct comment.
2017         * config/v850/v850.h (GHS_default_section_names,
2018         GHS_current_section_names): Use tree, not union tree_node *.
2019
2020 2011-04-26  Xinliang David Li  <davidxl@google.com>
2021
2022         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2023         * c-family/c-opts.c (c_common_handle_option): Set
2024         warn_maybe_uninitialized.
2025         * opts.c (common_handle_option): Ditto.
2026         * common.opt:  New option.
2027         * tree-ssa.c (warn_uninit): Add one more parameter.
2028         (warn_uninitialized_var): Pass warning code.
2029         * tree-flow.h: Interface change.
2030
2031
2032 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2033
2034         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2035         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2036         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2037
2038 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2039
2040         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2041         * config/mips/mips.opt (mmips-tfile): Remove.
2042
2043         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2044         mips-tdump reference to ...
2045         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2046         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2047         reference by Tru64 UNIX.
2048
2049 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2050
2051         PR debug/48768
2052         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2053         is error_mark_node, set value to NULL.
2054
2055         PR tree-optimization/48734
2056         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2057         if return value from maybe_fold_*_comparsions isn't something
2058         the code is prepared to handle.
2059
2060 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2061
2062         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2063         mode check.
2064         (ext_QIreg_nomode_operands): Remove.
2065         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2066         (*andsi_1): Ditto.
2067         (*andhi_1): Ditto.
2068
2069 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2070
2071         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2072
2073 2011-04-26  Richard Guenther  <rguenther@suse.de>
2074
2075         * c-typeck.c (build_unary_op): Do not expand array-refs via
2076         pointer arithmetic.  Only adjust qualifiers for function types.
2077
2078 2011-04-26  Richard Guenther  <rguenther@suse.de>
2079
2080         PR middle-end/48694
2081         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2082         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2083         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2084         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2085
2086 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2087
2088         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2089         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2090         * doc/extend.texi: Document __underlying_type.
2091
2092 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2093
2094         * config/rs6000/titan.md (automata_option "progress"): Remove.
2095
2096 2011-04-25  Jeff Law  <law@redhat.com>
2097
2098         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2099
2100 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2101
2102         * system.h (ENUM_BITFIELD): Remove.
2103
2104 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2105             Eric Botcazou  <ebotcazou@adacore.com>
2106
2107         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2108         for STORE_FLAG_VALUE==-1 case.
2109
2110 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2111
2112         PR target/43804
2113         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2114         LEGITIMATE_PIC_OPERAND_P.
2115
2116 2011-04-24  Jan Hubicka  <jh@suse.cz>
2117
2118         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2119         WPA hack.
2120         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2121         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2122         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2123         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2124         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2125         Sanity check predicate length.
2126         (remap_predicate): Likewise; sanity check jump functions.
2127         (inline_read_section, inline_write_summary): Sanity check
2128         predicate length.
2129
2130 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2131
2132         PR other/48748
2133         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2134         __is_literal_type, and __is_trivial; update throughout about
2135         possibly cv-qualified void types.
2136
2137 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2138
2139         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2140         testsuite and make it version agnostic.
2141
2142 2011-04-22  Jan Hubicka  <jh@suse.cz>
2143
2144         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2145
2146 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2147
2148         PR c/48685
2149         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2150         to VOID_TYPE even around MODIFY_EXPR.
2151
2152 2011-04-22  Mike Stump  <mikestump@comcast.net>
2153
2154         * gensupport.c (read_md_rtx): Fix typo in comment.
2155         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2156         comment.
2157
2158 2011-04-22  Jan Hubicka  <jh@suse.cz>
2159
2160         * gengtype.c (open_base_files): Add ipa-inline.h include.
2161         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2162         ipa-prop.c; update all uses.
2163         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2164         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2165         merge summary of inlined function into former caller.
2166         * ipa-inline.c (max_benefit): Remove.
2167         (edge_badness): Compensate for removal of benefits.
2168         (update_caller_keys): Use
2169         reset_node_growth_cache/reset_edge_growth_cache.
2170         (update_callee_keys): Likewise.
2171         (update_all_callee_keys): Likewise.
2172         (inline_small_functions): Do not collect max_benefit; do not reset
2173         estimated_growth; call free_growth_caches and initialize_growth_caches.
2174         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2175         struct size_time_entry): New structures.
2176         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2177         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2178         and estimated_growth.
2179         (edge_growth_cache_entry): New structure.
2180         (node_growth_cache, edge_growth_cache): New global vars.
2181         (estimate_growth): Turn into inline.
2182         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2183         initialize_growth_caches, free_growth_caches): Declare.
2184         (estimate_edge_growth): Rewrite.
2185         (estimate_edge_time): Implement as inline cache lookup.
2186         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2187         functions.
2188         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2189         (NUM_CONDITIONS): New constant.
2190         (predicate_conditions): New enum.
2191         (IS_NOT_CONSTANT): New constant.
2192         (edge_removal_hook_holder): New var.
2193         (node_growth_cache, edge_growth_cache): New global vars.
2194         (true_predicate, single_cond_predicate, false_predicate,
2195         not_inlined_predicate, add_condition, add_clause, and_predicates,
2196         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2197         dump_clause, dump_predicate, account_size_time,
2198         evaulate_conditions_for_edge): New functions.
2199         (inline_summary_alloc): Move to heap.
2200         (inline_node_removal_hook): Clear condition and entry vectors.
2201         (inline_edge_removal_hook): New function.
2202         (initialize_growth_caches, free_growth_caches): New function.
2203         (dump_inline_summary): Update.
2204         (edge_execution_predicate): New function.
2205         (will_be_nonconstant_predicate): New function.
2206         (estimate_function_body_sizes): Compute BB and constantness predicates.
2207         (compute_inline_parameters): Do not clear estimated_growth.
2208         (estimate_edge_size_and_time): New function.
2209         (estimate_calls_size_and_time): New function.
2210         (estimate_callee_size_and_time): New function.
2211         (remap_predicate): New function.
2212         (inline_merge_summary): New function.
2213         (do_estimate_edge_time): New function based on...
2214         (estimate_edge_time): ... this one.
2215         (do_estimate_edge_growth): New function.
2216         (do_estimate_growth): New function based on....
2217         (estimate_growth): ... this one.
2218         (inline_analyze_function): Analyze after deciding on jump functions.
2219         (inline_read_section): New function.
2220         (inline_read_summary): Use it.
2221         (inline_write_summary): Write all the new data.
2222         * ipa-prop.c (ipa_get_param_decl_index): Export.
2223         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2224         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2225         Declare.
2226         (ipa_get_lattice): Move here from ipa-cp.c
2227         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2228         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2229         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2230         cgraph_edge_inlinable_p): Remove.
2231         * cgraphunit.c: Include ipainline.h
2232         (cgraph_process_new_functions): Update call of
2233         compute_inline_parameters.
2234
2235 2011-04-22  Richard Guenther  <rguenther@suse.de>
2236
2237         * tree.c (build_int_cst): Properly create canonicalized integer
2238         constants.
2239         (build_int_cst_type): Remove scary comments.
2240
2241 2011-04-22  Xinliang David Li  <davidxl@google.com>
2242
2243         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2244         by default when -Wno-error is not specified.
2245         * opts-global.c (decode_options): Remove call to
2246         control_warning_options.
2247
2248 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2249
2250         PR tree-optimization/48717
2251         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2252         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2253
2254 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2255
2256         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2257         definition where used.
2258
2259 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2260
2261         PR c/48716
2262         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2263         TREE_STATIC variables declared inside of some OpenMP construct.
2264
2265 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2266
2267         PR middle-end/48585
2268         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2269
2270 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2271
2272         PR c/36750
2273         * c-typeck.c (pop_init_level): Do not warn about initializing
2274         with ` = {0}'.
2275
2276 2011-04-22  Alan Modra  <amodra@gmail.com>
2277
2278         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2279         when returning call_cookie.
2280         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2281         pointers, to functions with no more vector args than the current
2282         function, and some non-local calls for ABI_V4.
2283         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2284         sibcall_nonlocal_aix64): Combine to ..
2285         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2286         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2287         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2288         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2289         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2290         operand.
2291         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2292         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2293         sibcall_value_symbolic_64): Delete.
2294
2295 2011-04-21  Xinliang David Li  <davidxl@google.com>
2296
2297         * cgraph.h: Remove pid.
2298         * cgraph.c: Remove pid.
2299         * value-prof.c (init_node_map): New function.
2300         (del_node_map): New function.
2301         (find_func_by_funcdef_no): New function.
2302         (gimple_ic_transform): Call new function.
2303         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2304         * function.c (get_last_funcdef_no): New function.
2305         * function.h (get_last_funcdef_no): New function.
2306         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2307         to libgcov function.
2308         (tree-profiling): Call node map init and delete function.
2309
2310 2011-04-21  Ian Lance Taylor  <iant@google.com>
2311
2312         * godump.c (go_format_type): Use exported Go name for anonymous
2313         field name.
2314
2315 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2316
2317         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2318         Call builtin_function_type_list instead of builtin_function_type.
2319         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2320
2321 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2322
2323         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2324         build_function_type_list instead of build_function_type.
2325         Delete variable `endlink'.
2326
2327 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2328
2329         * config/s390/s390.c (s390_init_builtins): Call
2330         build_function_type_list instead of build_function_type.
2331
2332 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2333
2334         * config/ia64/ia64.c (ia64_init_builtins): Call
2335         build_function_type_list instead of builtin_function_type.
2336
2337 2011-04-21  Easwaran Raman  <eraman@google.com>
2338
2339         * cfgexpand.c (stack_var): Remove OFFSET...
2340         (add_stack_var): ...and its reference here...
2341         (expand_stack_vars): ...and here.
2342         (stack_var_cmp): Sort by descending order of size.
2343         (partition_stack_vars): Change heuristic.
2344         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2345         (dump_stack_var_partition): Add newline after each partition.
2346
2347 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2348             Jeff Law  <law@redhat.com>
2349
2350         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2351         * gengtype.c (matching_file_name_substitute): Likewise.
2352
2353 2011-04-21  Richard Guenther  <rguenther@suse.de>
2354
2355         PR lto/48703
2356         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2357
2358 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2359
2360         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2361
2362 2011-04-21  Richard Guenther  <rguenther@suse.de>
2363
2364         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2365         file name.
2366
2367 2011-04-21  Richard Guenther  <rguenther@suse.de>
2368
2369         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2370         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2371         Use DECL_P, not SSA_VAR_P.
2372         (ptr_derefs_may_alias_p): Likewise.
2373         (ptr_deref_may_alias_ref_p_1): Likewise.
2374         (decl_refs_may_alias_p): Likewise.
2375         (refs_may_alias_p_1): Likewise.
2376         (ref_maybe_used_by_call_p_1): Likewise.
2377         (call_may_clobber_ref_p_1): Likewise.
2378         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2379         are either MEM_REF or TARGET_MEM_REF.
2380         (indirect_refs_may_alias_p): Likewise.
2381         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2382         for MEM_EXPR of indirect calls.
2383
2384 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2385
2386         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2387         (dst_file_info_struct): Remove flen field.
2388         (lookup_filename): Remove code that set flen field.
2389
2390 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2391
2392         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2393
2394 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2395
2396         PR target/48708
2397         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2398         vec_extract and vec_concat for non-SSE4_1 targets.
2399
2400 2011-04-21  Richard Guenther  <rguenther@suse.de>
2401
2402         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2403         return statements.
2404
2405 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2406
2407         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2408         undefine.
2409         (FILE): Don't undefine.
2410
2411 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2412
2413         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2414         struct rtx_def *.
2415         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2416         struct rtx_def *.
2417         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2418         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2419         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2420         rtx_def *.
2421         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2422         definitions where used.
2423         * config/microblaze/microblaze.h (struct microblaze_args): Use
2424         rtx, not struct rtx_def *.
2425         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2426         rtx_def *.
2427         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2428         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2429         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2430         not struct rtx_def *.
2431         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2432         struct rtx_def *.
2433         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2434         rtx_def *.
2435         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2436
2437 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2438
2439         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2440         operand_equal_p to compare DR_BASE_ADDRESSes.
2441         (vect_check_interleaving): Likewise.
2442
2443 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2444
2445         PR target/46329
2446         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2447         for all Neon struct constants.
2448
2449 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2450
2451         * target.def (legitimate_constant_p): New hook.
2452         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2453         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2454         * doc/tm.texi: Regenerate.
2455         * hooks.h (hook_bool_mode_rtx_true): Declare.
2456         * hooks.c (hook_bool_mode_rtx_true): Define.
2457         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2458         * calls.c (precompute_register_parameters): Replace uses of
2459         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2460         (emit_library_call_value_1): Likewise.
2461         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2462         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2463         * ira-costs.c (scan_one_insn): Likewise.
2464         * recog.c (general_operand, immediate_operand): Likewise.
2465         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2466         * reload1.c (init_eliminable_invariants): Likewise.
2467
2468         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2469         mode argument.
2470         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2471         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2472         argument.
2473         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2474         * config/alpha/predicates.md (input_operand): Update call to
2475         alpha_legitimate_constant_p.
2476
2477         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2478         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2479         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2480         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2481         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2482         (arm_legitimate_constant_p): New functions.
2483         (arm_cannot_force_const_mem): Make static.
2484
2485         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2486
2487         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2488         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2489         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2490         instead of bfin_legitimate_constant_p.
2491         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2492         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2493
2494         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2495
2496         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2497
2498         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2499         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2500         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2501         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2502
2503         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2504         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2505         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2506
2507         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2508         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2509         * config/i386/i386.c (legitimate_constant_p): Rename to...
2510         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2511         argument.
2512         (ix86_cannot_force_const_mem): Update accordingly.
2513         (ix86_legitimate_address_p): Likewise.
2514         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2515         * config/i386/i386.md: Update commentary.
2516
2517         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2518         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2519         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2520         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2521
2522         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2523
2524         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2525         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2526         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2527         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2528
2529         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2530         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2531         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2532
2533         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2534         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2535         (m32r_legitimate_constant_p): New function.
2536
2537         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2538         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2539         LEGITIMATE_CONSTANT_P.
2540         (LEGITIMATE_CONSTANT_P): Delete.
2541         * config/m68k/m68k.c (m68k_expand_prologue): Call
2542         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2543         (m68k_legitimate_constant_p): New function.
2544         * config/m68k/m68k.md: Update comments.
2545
2546         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2547         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2548         (mcore_legitimate_constant_p): New function.
2549
2550         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2551         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2552         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2553         Add a mode argument.
2554         (mep_legitimate_address): Update accordingly.
2555         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2556
2557         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2558         Delete.
2559         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2560         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2561         static.  Check OP's mode for VOIDmode.
2562         (microblaze_legitimate_constant_p): New function.
2563         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2564
2565         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2566         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2567         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2568         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2569         * config/mips/predicates.md: Update comments.
2570
2571         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2572         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2573         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2574         (mmix_legitimate_constant_p): Make static, return a bool, and take
2575         a mode argument.
2576         (mmix_print_operand_address): Update accordingly.
2577
2578         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2579         Delete.
2580         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2581         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2582         static.  Add a mode argument.
2583         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2584
2585         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2586
2587         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2588         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2589         (pa_legitimate_constant_p): New function.
2590
2591         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2592
2593         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2594         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2595         (pdp11_legitimate_constant_p): New function.
2596
2597         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2598         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2599         (rs6000_legitimate_constant_p): New function.
2600
2601         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2602         (rx_legitimate_constant_p): ...this.
2603         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2604         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2605         (rx_legitimate_constant_p): ...this.
2606         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2607         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2608
2609         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2610         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2611         * config/s390/s390.c (legitimate_constant_p): Rename to...
2612         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
2613         and add a mode argument.
2614         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2615
2616         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2617
2618         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2619         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2620         (sh_legitimate_constant_p): New function.
2621
2622         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2623         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2624         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2625         (legitimate_constant_p): Rename to...
2626         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
2627         argument.
2628         (constant_address_p): Update accordingly.
2629
2630         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2631         argument and return a bool.
2632         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2633         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2634         (spu_legitimate_constant_p): Add a mode argument and return a bool.
2635         (spu_rtx_costs): Update accordingly.
2636         * config/spu/predicates.md (vec_imm_operand): Likewise.
2637
2638         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2639
2640         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2641         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2642         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2643
2644         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2645         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2646         * config/vax/vax.c (legitimate_constant_p): Likewise.
2647
2648         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2649         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2650         (xtensa_legitimate_constant_p): New function.
2651
2652 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2653
2654         * target.def (cannot_force_const_mem): Add a mode argument.
2655         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2656         * doc/tm.texi: Regenerate.
2657         * hooks.h (hook_bool_mode_rtx_false): Declare.
2658         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2659         (hook_bool_mode_const_rtx_true): Likewise.
2660         (hook_bool_mode_rtx_false): New function.
2661         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2662         to be non-VOID.  Update call to cannot_force_const_mem.
2663         (find_reloads): Update accordingly.
2664         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2665         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2666         argument.
2667         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2668         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2669         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2670         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2671         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2672         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2673         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2674         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2675         (m68k_cannot_force_const_mem): ...this new function.
2676         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2677         argument.
2678         (mips_const_insns, mips_legitimize_const_move): Update calls.
2679         (mips_secondary_reload_class): Likewise.
2680         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2681         (pa_cannot_force_const_mem): ...this new function.
2682         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2683         (rs6000_cannot_force_const_mem): ...this new function.
2684         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2685         argument.
2686         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2687         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2688         to...
2689         (xtensa_cannot_force_const_mem): ...this new function.
2690
2691 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2692
2693         * config/mips/mips.c (mips16_build_function_stub): Call
2694         build_function_type_list instead of build_function_type.
2695         (mips16_build_call_stub): Likewise.
2696
2697 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2698
2699         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2700         instead of build_function_type.
2701
2702 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2703
2704         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2705         instead of build_function_type.
2706
2707 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
2708
2709         PR target/48678
2710         * config/i386/i386.md (insv): Change operand 0 constraint to
2711         "register_operand".  Change operand 1 and 2 constraint to
2712         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
2713         * config/i386/sse.md (sse4_1_pinsrb): Export.
2714         (sse2_pinsrw): Ditto.
2715         (sse4_1_pinsrd): Ditto.
2716         (sse4_1_pinsrq): Ditto.
2717         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2718         * config/i386/i386.c (ix86_expand_pinsr): New.
2719
2720 2011-04-20  Easwaran Raman  <eraman@google.com>
2721
2722         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2723         containing union type only with -fstrict-aliasing.
2724
2725 2011-04-20  Jim Meyering  <meyering@redhat.com>
2726
2727         Remove useless if-before-free tests.
2728         * calls.c (expand_call, save_area): Likewise.
2729         * cfgcleanup.c (try_forward_edges): Likewise.
2730         * collect2.c (collect_execute): Likewise.
2731         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2732         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2733         * coverage.c (coverage_checksum_string): Likewise.
2734         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2735         * cselib.c (cselib_init): Likewise.
2736         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2737         (df_set_clean_cfg): Likewise.
2738         * function.c (free_after_compilation): Likewise.
2739         * gcc.c (do_spec_1, main): Likewise.
2740         * gcov.c (create_file_names): Likewise.
2741         * gensupport.c (identify_predicable_attribute): Likewise.
2742         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2743         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2744         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2745         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2746         * ipa-pure-const.c (local_pure_const): Likewise.
2747         * ipa-reference.c (propagate): Likewise.
2748         * ira-costs.c (free_ira_costs): Likewise.
2749         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2750         * matrix-reorg.c (mat_free): Likewise.
2751         * prefix.c (get_key_value): Likewise.
2752         * profile.c (compute_value_histograms): Likewise.
2753         * reload1.c (free_reg_equiv): Likewise.
2754         * sched-deps.c (free_deps): Likewise.
2755         * sel-sched-ir.c (fence_clear): Likewise.
2756         * sese.c (set_rename, if_region_set_false_region): Likewise.
2757         * tree-data-ref.c (free_rdg): Likewise.
2758         * tree-eh.c (lower_try_finally): Likewise.
2759         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2760         * tree-ssa-live.c (delete_var_map): Likewise.
2761         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2762         * tree-ssa-pre.c (phi_trans_add): Likewise.
2763
2764 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
2765
2766         PR tree-optimization/48611
2767         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2768         beyond ERT_MUST_NOT_THROW region.
2769
2770 2011-04-20  Catherine Moore  <clm@codesourcery.com>
2771
2772         * config/mips/mips.opt (mfix-24k): New.
2773         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2774         * config/mips/mips.md (length): Increase by 4 for stores if
2775         fixing 24K errata.
2776         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2777         all noreorder if fixing 24K errata.
2778         * doc/invoke.texi: Document mfix-24k.
2779
2780 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
2781
2782         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2783         quad-word modes, reduce to 9-bit index range when above 1016 limit.
2784
2785 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2786
2787         * config/arm/arm.c (arm_gen_constant): Move movw support ....
2788         (const_ok_for_op): ... to here.
2789
2790 2011-04-20  Kai Tietz  <ktietz@redhat.com>
2791
2792         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2793         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2794
2795 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2796
2797         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2798
2799 2011-04-20  Richard Guenther  <rguenther@suse.de>
2800
2801         PR tree-optimization/47892
2802         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2803         are if-convertible.
2804
2805 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2806
2807         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2808
2809 2011-04-20  Tristan Gingold  <gingold@adacore.com>
2810
2811         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2812
2813 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
2814
2815         PR target/18145
2816
2817         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2818         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2819         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2820         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2821         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2822
2823         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2824         New prototype.
2825
2826         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2827         (avr_asm_named_section, avr_asm_output_aligned_common,
2828         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2829         New functions to update...
2830         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2831         (avr_asm_init_sections): Overwrite section callbacks for
2832         data_section, bss_section.
2833         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2834         from here to...
2835         (avr_file_end): ...here.
2836
2837 2011-04-20  Richard Guenther  <rguenther@suse.de>
2838
2839         PR middle-end/48695
2840         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2841         objects and types here.  Adjust for their offset before comparing.
2842
2843 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2844
2845         * tree-vect-stmts.c (vectorizable_store): Only chain one related
2846         statement per copy.
2847
2848 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2849
2850         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2851         (GIMPLE_H): Include $(INTERNAL_FN_H).
2852         (OBJS-common): Add internal-fn.o.
2853         (internal-fn.o): New rule.
2854         * internal-fn.def: New file.
2855         * internal-fn.h: Likewise.
2856         * internal-fn.c: Likewise.
2857         * gimple.h: Include internal-fn.h.
2858         (GF_CALL_INTERNAL): New gf_mask.
2859         (gimple_statement_call): Put fntype into a union with a new
2860         internal_fn field.
2861         (gimple_build_call_internal): Declare.
2862         (gimple_build_call_internal_vec): Likewise.
2863         (gimple_call_same_target_p): Likewise.
2864         (gimple_call_internal_p): New function.
2865         (gimple_call_internal_fn): Likewise.
2866         (gimple_call_fntype): Return null for internal calls.
2867         (gimple_call_set_fntype): Assert that the function is not internal.
2868         (gimple_call_set_fn): Likewise.
2869         (gimple_call_set_fndecl): Likewise.
2870         (gimple_call_set_internal_fn): New function.
2871         (gimple_call_addr_fndecl): Handle null functions.
2872         (gimple_call_return_type): Likewise null types.
2873         * gimple.c (gimple_build_call_internal_1): New function.
2874         (gimple_build_call_internal): Likewise.
2875         (gimple_build_call_internal_vec): Likewise.
2876         (gimple_call_same_target_p): Likewise.
2877         (gimple_call_flags): Handle calls to internal functions.
2878         (gimple_call_fnspec): New function.
2879         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2880         (gimple_has_side_effects): Handle null functions.
2881         (gimple_rhs_has_side_effects): Likewise.
2882         (gimple_call_copy_skip_args): Handle calls to internal functions.
2883         * cfgexpand.c (expand_call_stmt): Likewise.
2884         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2885         * gimple-fold.c (gimple_fold_call): Handle null functions.
2886         (gimple_fold_stmt_to_constant_1): Don't fold
2887         calls to internal functions.
2888         * gimple-low.c (gimple_check_call_args): Handle calls to internal
2889         functions.
2890         * gimple-pretty-print.c (dump_gimple_call): Likewise.
2891         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2892         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2893         (do_warn_unused_result): Likewise.
2894         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2895         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2896         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2897         the target of a call.
2898         (initialize_hash_element): Update accordingly.
2899         (hashable_expr_equal_p): Use gimple_call_same_target_p.
2900         (iterative_hash_hashable_expr): Handle calls to internal functions.
2901         (print_expr_hash_elt): Likewise.
2902         * tree-ssa-pre.c (can_value_number_call): Likewise.
2903         (eliminate): Handle null functions.
2904         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2905         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2906         (find_func_aliases): Likewise.
2907         * value-prof.c (gimple_ic_transform): Likewise.
2908         (gimple_indirect_call_to_profile): Likewise.
2909         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2910         * lto-streamer-out.c (output_gimple_stmt): Likewise.
2911
2912 2011-04-19  Jan Hubicka  <jh@suse.cz>
2913
2914         * ipa-inline-transform.c (save_inline_function_body): Add comments.
2915         * ipa-inline.c (inline_small_functions): Compute summaries first,
2916         populate heap later.
2917
2918 2011-04-19  Jan Hubicka  <jh@suse.cz>
2919
2920         * cgraph.h (save_inline_function_body): Remove.
2921         * ipa-inline-transform.c: New file, broke out of...
2922         * ipa-inline.c: ... this one; Update toplevel comment.
2923         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2924         make global.
2925         (update_noncloned_frequencies): Move to ipa-inline-transform.c
2926         (cgraph_mark_inline_edge): Rename to inline_call; move to
2927         ipa-inline-transform.c.
2928         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2929         move to ipa-inline-transform.c
2930         (recursive_inlining, inline_small_functions, flatten_function,
2931         ipa_inline, inline_always_inline_functions,
2932         early_inline_small_functions): Update.
2933         (inline_transform): Move to ipa-inline-transform.c.
2934         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2935         Declare.
2936         * Makefile.in (ipa-inline-transform.o): New file.
2937         * cgraphunit.c (save_inline_function_body): Move to
2938         ipa-inline-transform.c
2939
2940 2011-04-19  DJ Delorie  <dj@redhat.com>
2941
2942         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2943         registers if we already know there aren't any.
2944         (m32c_emit_epilogue): Don't emit a barrier here.
2945         (m32c_emit_eh_epilogue): Likewise.
2946         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2947         operands at expand time.
2948         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2949         int" wchar type.
2950         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2951         duplicates.  Provide aliases instead.
2952         * config/m32c/prologue.md (eh_return): Emit a barrier here.
2953         (eh_epilogue): Add a "(return)" here as a hint to other parts of
2954         the compiler.
2955
2956 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
2957
2958         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2959         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2960         (general_or_i64_p, sparc_register_move_cost): New function.
2961
2962 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2963
2964         * doc/install.texi (Configuration, --enable-threads): Remove mach.
2965         Add lynx, mipssde.  Sort table.
2966
2967 2011-04-19  Xinliang David Li  <davidxl@google.com>
2968
2969         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2970         not negative.
2971
2972 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
2973
2974         PR target/48678
2975         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2976         is a SUBREG with non-MODE_INT mode inside of it.
2977
2978 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2979
2980         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2981         also according to actual contants.
2982         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2983         (gimple_fold_call): Use it.
2984         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2985
2986 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2987
2988         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2989         non-pointer assignments.
2990
2991 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2992
2993         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2994         account anc_offset and otr_type from the indirect edge info.
2995         * ipa-prop.c (get_ancestor_addr_info): New function.
2996         (compute_complex_ancestor_jump_func): Assignment analysis moved to
2997         get_ancestor_addr_info, call it.
2998         (ipa_note_param_call): Do not initialize information about polymorphic
2999         calls, return the indirect call graph edge.  Remove the last
3000         parameter, adjust all callers.
3001         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3002         parameters.  Initialize polymorphic information in the indirect edge.
3003
3004 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3005
3006         PR lto/48148
3007         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3008         the types if they have different enumeration identifiers.
3009
3010 2011-04-19  Jan Hubicka  <jh@suse.cz>
3011
3012         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3013         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3014         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3015         (optimize_function_for_size_p) ... here.
3016
3017 2011-04-19  Richard Guenther  <rguenther@suse.de>
3018
3019         PR lto/48207
3020         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3021         langhook.
3022
3023 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3024
3025         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3026         if DECL_NO_INLINE_WARNING_P is set on the function.
3027
3028 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3029
3030         PR fortran/47976
3031         * reload1.c (inc_for_reload): Return void. All callers changed.
3032         (emit_input_reload_insns): Don't try to delete previous output
3033         reloads to a register, or record spill_reg_store for autoincs.
3034
3035 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3036
3037         * gengtype.h: Updated copyright year.
3038         (struct input_file_st): Add inpisplugin field.
3039         (type_fileloc): New function.
3040         * gengtype.c
3041         (write_typed_struct_alloc_def): Add gcc_assert.
3042         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3043         (write_typed_alloc_defns): Don't output for plugin files.
3044         (input_file_by_name): Clear inpisplugin field.
3045         (main): Set inpisplugin field for plugin files.
3046
3047 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3048
3049         * gengtype-state.c (string_eq): New.
3050         (read_state): Use string_eq instead of strcmp when creating the
3051         state_ident_tab.
3052
3053 2011-04-19  Wei Guozhi  <carrot@google.com>
3054
3055         PR target/47855
3056         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3057         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3058         linkage.
3059         * config/arm/constraints.md (Uu): New constraint.
3060         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3061
3062 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3063
3064         * config.gcc (-*-*-*vms): Added.
3065         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3066         definitions moved.
3067         * config/vms/vms-ld.c: New file.
3068         * config/vms/vms-ar.c: New file.
3069         * config/vms/t-vmsnative: New file.
3070
3071 2011-04-18  Xinliang David Li  <davidxl@google.com>
3072
3073         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3074
3075 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3076
3077         PR middle-end/48661
3078         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3079         if TREE_TYPE (v) is non-NULL.
3080
3081         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3082         gimple_get_virt_mehtod_for_binfo.
3083         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3084         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3085         callers.
3086         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3087
3088 2011-04-18  Michael Matz  <matz@suse.de>
3089             Steve Ellcey  <sje@cup.hp.com>
3090
3091         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3092         use its mode as source mode if it isn't VOIDmode.
3093
3094 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3095
3096         * doc/passes.texi: Fill crossref nodes.
3097
3098 2011-04-18  Jim Meyering  <meyering@redhat.com>
3099
3100         Fix doubled-word typos in comments and strings
3101         * config/alpha/vms-unwind.h: s/for for/for/
3102         * config/arm/unwind-arm.h: Likewise.
3103         * config/microblaze/microblaze.c: Likewise.
3104         * config/sh/constraints.md: s/in in/in/
3105         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3106
3107 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3108
3109         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3110         (AVX_FLOAT_MODE_P): Ditto.
3111         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3112         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3113         (AVX_VEC_FLOAT_MODE_P): Ditto.
3114         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3115         (UNSPEC_MASKSTORE): Ditto.
3116         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3117         Merge from <sse>_movmsk<ssemodesuffix> and
3118         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3119         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3120         iterator.
3121         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3122         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3123         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3124
3125 2011-04-18  Jan Hubicka  <jh@suse.cz>
3126
3127         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3128
3129         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3130         (want_inline_function_called_once_p): Break out the logic from
3131         ipa_inline.
3132         (edge_badness): Ensure that profile is not misupdated.
3133         (lookup_recursive_calls): Prioritize by call frequencies.
3134         (inline_small_functions): Move program size estimates here;
3135         actually process whole queue even when unit growth has been
3136         met. (to properly compute inline_failed reasons and for the
3137         case unit size decrease.) Revisit comments on recursive inlining.
3138         (ipa_inline): Remove unit summary code; first inline hot calls
3139         of functions called once, cold calls next.
3140         (order, nnodes): Remove unused variables.
3141         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3142         (GTFILES): Remove ipa-inline.c
3143         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3144
3145 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3146
3147         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3148
3149 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3150             Richard Earnshaw  <rearnsha@arm.com>
3151
3152         * arm.c (neon_builtin_type_bits): Remove.
3153         (typedef enum neon_builtin_mode): New.
3154         (T_MAX): Don't define.
3155         (typedef enum neon_builtin_datum): Remove bits, codes[],
3156         num_vars and base_fcode.  Add mode, code and fcode.
3157         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3158         VAR10): Change accordingly.
3159         (neon_builtin_data[]): Change accordingly
3160         (arm_init_neon_builtins): Change accordingly.
3161         (neon_builtin_compare): Remove.
3162         (locate_neon_builtin_icode): Remove.
3163         (arm_expand_neon_builtin): Change accordingly.
3164
3165         * arm.h (enum arm_builtins): Move to ...
3166         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3167
3168         * arm.c (arm_builtin_decl): Declare.
3169         (TARGET_BUILTIN_DECL): Define.
3170         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3171         (arm_builtin_decls[]): New.
3172         (arm_init_neon_builtins): Store builtin declarations in
3173         arm_builtin_decls[].
3174         (arm_init_tls_builtins): Likewise.
3175         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3176         (arm_builtin_decl): New.
3177
3178 2011-04-18  Richard Guenther  <rguenther@suse.de>
3179
3180         * tree.c (upper_bound_in_type): Build properly canonicalized
3181         INTEGER_CSTs.
3182         (lower_bound_in_type): Likewise.
3183
3184 2011-04-18  Richard Guenther  <rguenther@suse.de>
3185
3186         * gimple.h (gimple_call_addr_fndecl): New function.
3187         (gimple_call_fndecl): Use it.
3188         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3189         for direct calls.
3190         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3191         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3192
3193 2011-04-18  Richard Guenther  <rguenther@suse.de>
3194
3195         PR middle-end/48650
3196         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3197
3198 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3199
3200         PR lto/48492
3201         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3202         DECL_IN_CONSTANT_POOL without RTL.
3203
3204 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3205             Ira Rosen  <ira.rosen@linaro.org>
3206
3207         PR target/48252
3208         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3209         to match neon_vzip/vuzp/vtrn_internal.
3210         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3211         outputs explicitly dependent on both inputs.
3212         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3213
3214 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3215
3216         PR tree-optimization/48616
3217         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3218         whether the shift is by scalar or vector based on whether all SLP
3219         scalar stmts have the same rhs.
3220
3221 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3222
3223         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3224         memory operands.
3225
3226 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3227
3228         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3229         registers.
3230
3231 2011-04-17  Jan Hubicka  <jh@suse.cz>
3232
3233         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3234         * cgrpahunit.c (cgraph_finalize_function): Do not set
3235         finalized_by_frontend.
3236         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3237         finalized_by_frontend.
3238
3239 2011-04-17  Jan Hubicka  <jh@suse.cz>
3240
3241         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3242         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3243         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3244         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3245         method.
3246         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3247         gimple-fold.c
3248         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3249
3250 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3251
3252         PR lto/48538
3253         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3254         is non-null before accessing it.
3255         (input_cgraph): Remove trailing spaces.
3256
3257 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3258
3259         * params.def (sms-min-sc): New param flag.
3260         * modulo-sched.c (sms_schedule): Use it.
3261         * doc/invoke.texi (sms-min-sc): Document it.
3262
3263 2011-04-17  Jan Hubicka  <jh@suse.cz>
3264
3265         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3266         present, also set gimple_call_set_cannot_inline.
3267         * ipa-inline.c: Update toplevel comment.
3268         (MAX_TIME): Remove.
3269         (cgraph_clone_inlined_nodes): Fix linebreaks.
3270         (cgraph_check_inline_limits): Restructure to ...
3271         (caller_growth_limits): ... this one; be more tolerant
3272         on growth in nested inline chains; add explanatory comment;
3273         fix stack accounting thinko introduced by previous patch.
3274         (cgraph_default_inline_p): Remove.
3275         (report_inline_failed_reason): New function.
3276         (can_inline_edge_p): New function.
3277         (can_early_inline_edge_p): New function.
3278         (leaf_node_p): Move upwards in file.
3279         (want_early_inline_function_p): New function.
3280         (want_inline_small_function_p): New function.
3281         (want_inline_self_recursive_call_p): New function.
3282         (cgraph_edge_badness): Rename to ...
3283         (edge_badness) ... this one; fix linebreaks.
3284         (update_edge_key): Update call of edge_baddness; add
3285         detailed dump about queue updates.
3286         (update_caller_keys): Use can_inline_edge_p and
3287         want_inline_small_function_p.
3288         (cgraph_decide_recursive_inlining): Rename to...
3289         (recursive_inlining): Use can_inline_edge_p and
3290         want_inline_self_recursive_call_p; simplify and remove no longer
3291         valid FIXME.
3292         (cgraph_set_inline_failed): Remove.
3293         (add_new_edges_to_heap): Use can_inline_edge_p and
3294         want_inline_small_function_p.
3295         (cgraph_decide_inlining_of_small_functions): Rename to ...
3296         (inline_small_functions): ... this one; cleanup; use
3297         can/want predicates; cleanup debug ouput; work edges till fibheap
3298         is exhausted and do not stop once unit growth is reached; remove
3299         later loop processing remaining edges.
3300         (cgraph_flatten): Rename to ...
3301         (flatten_function): ... this one; use can_inline_edge_p
3302         and can_early_inline_edge_p predicates.
3303         (cgraph_decide_inlining): Rename to ...
3304         (ipa_inline): ... this one; remove unreachable nodes before
3305         inlining functions called once; simplify the pass.
3306         (cgraph_perform_always_inlining): Rename to ...
3307         (inline_always_inline_functions): ... this one; use
3308         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3309         (cgraph_decide_inlining_incrementally): Rename to ...
3310         (early_inline_small_functions): ... this one; simplify
3311         using new predicates; cleanup; make dumps prettier.
3312         (cgraph_early_inlining): Rename to ...
3313         (early_inliner): newer inline regular functions into always-inlines;
3314         fix updating of call stmt summaries.
3315         (pass_early_inline): Update for new names.
3316         (inline_transform): Fix formating.
3317         (gate_cgraph_decide_inlining): Rename to ...
3318         (pass_ipa_inline): ... this one.
3319         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3320         * ipa-inline-analysis.c (dump_inline_summary): Update.
3321         (compute_inline_parameters): Do not compute disregard_inline_limits;
3322         look for mismatching arguments.
3323         (estimate_growth): Fix handlig of non-trivial self recursion.
3324         (inline_read_summary): Do not read info->disregard_inline_limits.
3325         (inline_write_summary): Do not write info->disregard_inline_limits.
3326         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3327         and move all checks into can_inline_edge_p predicate; re-enable code
3328         comparing optimization levels.
3329         (expand_call_inline): Do not test inline_forbidden_into_p.
3330         * Makefile.in (ipa-inline.o): Update arguments.
3331
3332 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3333
3334         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3335
3336 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3337
3338         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3339
3340 2011-04-17  Michael Matz  <matz@suse.de>
3341
3342         PR tree-optimization/48622
3343         PR lto/48645
3344         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3345         in same order as they're written.
3346
3347 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3348
3349         * config/pa/predicates.md: Reorganize and simplify predicates.
3350         Eliminate duplicate code checks.
3351         (arith_operand): Rename to arith14_operand
3352         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3353         * config/pa/pa.md: Use renamed operands.
3354         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3355         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3356         arith11_operand, adddi3_operand, indexed_memory_operand,
3357         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3358         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3359         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3360         move_dest_operand, move_src_operand, prefetch_cc_operand,
3361         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3362         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3363         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3364         div_operand, int5_operand, movb_comparison_operator,
3365         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3366         arith_double_operand, ireg_operand, lhs_lshift_operand,
3367         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3368         integer_store_memory_operand): Likewise.
3369         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3370         (integer_store_memory_operand, read_only_operand,
3371         function_label_operand, borx_reg_operand,
3372         non_hard_reg_operand): Likewise.
3373         (eq_neq_comparison_operator): Delete unused operator.
3374         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3375         function_label_operand.
3376         (emit_move_sequence): Likewise.
3377
3378 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3379
3380         * config/i386/sse.md (sseunpackmode): New mode attribute.
3381         (ssepackmode): Ditto.
3382         (vec_pack_trunc_<mode>): Macroize expander from
3383         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3384         (vec_unpacks_lo_<mode>): Macroize expander from
3385         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3386         (vec_unpacks_hi_<mode>): Macroize expander from
3387         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3388         (vec_unpacku_lo_<mode>): Macroize expander from
3389         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3390         (vec_unpacku_hi_<mode>): Macroize expander from
3391         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3392         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3393         ix86_expand_sse4_unpack.
3394         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3395
3396 2011-04-16  Jan Hubicka  <jh@suse.cz>
3397
3398         * cgraphbuild.c: Include ipa-inline.h.
3399         (reset_inline_failed): Use initialize_inline_failed.
3400         * cgraph.c: Include ipa-inline.h.
3401         (cgraph_create_node_1): Do not initialize estimated_growth.
3402         (initialize_inline_failed): More to ipa-inline-analysis.c
3403         (dump_cgraph_node): Do not dump inline flags.
3404         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3405         and disregard_inline_limits flags.
3406         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3407         time, size, estimated_growth.
3408         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3409         Update.
3410         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3411         DECL_DISREGARD_INLINE_LIMITS.
3412         (cgraph_analyze_function): Do not initialize
3413         node->local.disregard_inline_limits.
3414         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3415         inlinable, versionable and disregard_inline_limits.
3416         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3417         cgraph_check_inline_limits, cgraph_default_inline_p,
3418         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3419         add_new_edges_to_heap): Update.
3420         (cgraph_decide_inlining_of_small_function): Update; set
3421         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3422         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3423         cgraph_decide_inlining_incrementally): Update.
3424         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3425         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3426         time, size and estimated_growth parameters.
3427         (estimate_edge_growth): Update.
3428         (initialize_inline_failed): Declare.
3429         * ipa-split.c: Include ipa-inline.h
3430         (execute_split_functions): Update.
3431         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3432         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3433         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3434         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3435         estimated_growth to INT_MIN.
3436         (inline_node_duplication_hook): Likewise.
3437         (dump_inline_summary): Dump new fields.
3438         (compute_inline_parameters): Update.
3439         (estimate_edge_time, estimate_time_after_inlining,
3440         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3441         inline_write_summary):
3442         (initialize_inline_failed): Move here from cgraph.c.
3443         * tree-sra.c: Include ipa-inline.h.
3444         (ipa_sra_preliminary_function_checks): Update.
3445         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3446         ipa-inline.h.
3447
3448 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3449
3450         * config/i386/sse.md (V16): New mode iterator.
3451         (VI1, VI8): Ditto.
3452         (AVXMODEQI, AVXMODEDI): Remove.
3453         (sse2, sse3): New mode attribute.
3454         (mov<mode>): Use V16 mode iterator.
3455         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3456         (push<mode>1): Use V16 mode iterator.
3457         (movmisalign<mode>): Ditto.
3458         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3459         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3460         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3461         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3462         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3463         avx_movdqu<avxmodesuffix>.
3464         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3465         *avx_movdqu<avxmodesuffix>.
3466         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3467         avx_lddqu<avxmodesuffix>.
3468         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3469         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3470         avx_movnt<AVXMODEDI:mode>.
3471         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3472         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3473
3474 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3475
3476         PR target/48629
3477         * haifa-sched.c (prune_ready_list, schedule_block): Use
3478         sched_pressure_p rather than flag_sched_pressure.
3479
3480 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3481
3482         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3483         cgraph_get_node instead of cgraph_get_create_node.
3484
3485 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3486
3487         * cfgexpand.c (expand_debug_expr): Use
3488         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3489
3490 2011-04-15  Michael Matz  <matz@suse.de>
3491
3492         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3493         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3494         * function.c (gimplify_parameters): Ditto.
3495         * gimplify.c (gimplify_vla_decl): Ditto.
3496
3497         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3498         (gimple_call_set_alloca_for_var): New inline function.
3499         (gimple_call_alloca_for_var_p): Ditto.
3500         * gimple.c (gimple_build_call_from_tree): Remember
3501         CALL_ALLOCA_FOR_VAR_P state.
3502         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3503
3504         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3505         calls if they were for VLA objects.
3506
3507 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3508
3509         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3510         of ADR_EXPRs.
3511
3512 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3513
3514         PR middle-end/48601
3515         * tree-emutls.c (lower_emutls_function_body): Call
3516         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3517         result is non-NULL.
3518
3519 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3520
3521         * c-decl.c (detect_field_duplicates): Call
3522         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3523
3524 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3525
3526         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3527         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3528         * ipa-pure-const.c (check_stmt): Call it.
3529         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3530
3531 2011-04-15  Richard Guenther  <rguenther@suse.de>
3532
3533         PR tree-optimization/48290
3534         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3535         Properly decide inhibiting propagation based on the valueized
3536         operand.  Do loop-closed SSA form preserving here ...
3537         (init_copy_prop): ... not here.
3538
3539 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3540
3541         PR target/48612
3542         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3543         (*ieee_smax<mode>3): Likewise.
3544
3545 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3546
3547         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3548         Replace match_operand with match_dup for the third operand in
3549         these expanders.
3550
3551 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3552
3553         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3554         to track processing of conditionals.  Update all callers.
3555         (try_combine, simplify_if_then_else): Update.
3556
3557 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3558
3559         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3560         -fsched-pressure.
3561
3562 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3563
3564         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3565         instead of match_operand for operand 3.
3566
3567 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3568
3569         * recog.h (insn_operand_data): Add an "allows_mem" field.
3570         * genoutput.c (output_operand_data): Initialize it.
3571         * optabs.c (maybe_legitimize_operand_same_code): New function.
3572         (maybe_legitimize_operand): Use it when matching the original
3573         op->value.
3574
3575 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3576
3577         * gimplify.c: Fix issues in comments throughout.
3578         (voidify_wrapper_expr): Fix long line.
3579         (build_stack_save_restore): Likewise.
3580         (gimplify_loop_expr): Likewise.
3581         (gimplify_compound_lval): Likewise.
3582         (gimplify_init_ctor_eval): Likewise.
3583         (gimplify_modify_expr_rhs): Likewise.
3584         (omp_notice_threadprivate_variable): Likewise.
3585
3586 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3587
3588         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3589         original one if this is not a builtin function.
3590
3591 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
3592
3593         PR target/48605
3594         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3595         offset it as needed based on top 2 bits in operands[3], change
3596         MEM mode to SFmode and mask those 2 bits away from operands[3].
3597
3598 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3599
3600         * c-parser.c (c_parser_objc_protocol_definition): Updated for
3601         change from objc_declare_protocols() to objc_declare_protocol().
3602
3603 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
3604
3605         * config/i386/sse.md (sse4_1): New mode attribute.
3606         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3607         avx_blend<ssemodesuffix><avxmodesuffix> and
3608         sse4_1_blend<ssemodesuffix> using VF mode iterator.
3609         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3610         avx_blendv<ssemodesuffix><avxmodesuffix> and
3611         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3612         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3613         avx_dp<ssemodesuffix><avxmodesuffix> and
3614         sse4_1_dp<ssemodesuffix> using VF mode iterator.
3615         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3616         (sse4_1_packusdw): Merge with *avx_packusdw.
3617         (sse4_1_pblendvb): Merge with *avx_pblendvb.
3618         (sse4_1_pblendw): Merge with *avx_pblendw.
3619         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3620         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3621         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3622         VF mode iterator.
3623         (sse4_1_round<ssescalarmodesuffix>): Merge with
3624         *avx_round<ssescalarmodesuffix>.
3625         (aesenc): Merge with *avx_aesenc.
3626         (aesenclast): Merge with *avx_aesenclast.
3627         (aesdec): Merge with *avx_aesdec.
3628         (aesdeclast): Merge with *avx_aesdeclast.
3629         (pclmulqdq): Merge with *pclmulqdq.
3630         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3631         New predicate.
3632         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3633
3634 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3635
3636         PR middle-end/48608
3637         * cfgexpand.c (get_decl_align_unit): Renamed to ...
3638         (align_local_variable): This.  Update DECL_ALIGN.
3639         (add_stack_var): Updated.
3640         (expand_one_stack_var): Likewise.
3641
3642 2011-04-14  Richard Guenther  <rguenther@suse.de>
3643
3644         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3645         Remove.
3646         (dse_initialize_block_local_data, dse_leave_block,
3647         record_voperand_set, get_stmt_uid): Likewise.
3648         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3649         (dse_optimize_stmt): Remove voperand set handling code.
3650         Simplify and improve to handle any kind of killing stmt.
3651         (dse_record_phi): Remove.
3652         (dse_enter_block): Simplify.
3653         (tree_ssa_dse): Likewise.
3654         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3655
3656 2011-04-14  Jan Hubicka  <jh@suse.cz>
3657
3658         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3659         * cgraph.h (struct inline_summary): Move to ipa-inline.h
3660         (cgraph_local_info): Remove inline_summary.
3661         * ipa-cp.c: Include ipa-inline.h.
3662         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3663         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3664         accesor.
3665         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3666         (input_overwrite_node): Do not set inline summary.
3667         (input_node): Do not stream inline summary.
3668         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3669         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3670         growth; we do not have inline parameters computed for that anyway.
3671         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3672         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3673         (inline_summary_t): New type and VECtor.
3674         (debug_inline_summary, dump_inline_summaries): Declare.
3675         (inline_summary): Use VOCtor.
3676         (estimate_edge_growth): Kill hack computing call stmt size directly.
3677         * lto-section-in.c (lto_section_name): Add inline section.
3678         * ipa-inline-analysis.c: Include lto-streamer.h
3679         (node_removal_hook_holder, node_duplication_hook_holder): New holders
3680         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3681         (inline_summary_vec): Define.
3682         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3683         dump_inline_summaries): New functions.
3684         (estimate_function_body_sizes): Properly compute size/time of outgoing
3685         calls.
3686         (compute_inline_parameters): Alloc inline_summary; do not compute
3687         size/time of incomming calls.
3688         (estimate_edge_time): Avoid missing time summary hack.
3689         (inline_read_summary): Read inline summary info.
3690         (inline_write_summary): Write inline summary info.
3691         (inline_free_summary): Free all hooks and inline summary vector.
3692         * lto-streamer.h: Add LTO_section_inline_summary section.
3693         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3694         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3695
3696 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3697
3698         * tree-vectorizer.h (vect_strided_store_supported): Add a
3699         HOST_WIDE_INT argument.
3700         (vect_strided_load_supported): Likewise.
3701         (vect_permute_store_chain): Return void.
3702         (vect_transform_strided_load): Likewise.
3703         (vect_permute_load_chain): Delete.
3704         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3705         count argument.  Check that the count is a power of two.
3706         (vect_strided_load_supported): Likewise.
3707         (vect_permute_store_chain): Return void.  Update after above changes.
3708         Assert that the access is supported.
3709         (vect_permute_load_chain): Likewise.
3710         (vect_transform_strided_load): Return void.
3711         * tree-vect-stmts.c (vectorizable_store): Update calls after
3712         above interface changes.
3713         (vectorizable_load): Likewise.
3714         (vect_analyze_stmt): Don't check for strided powers of two here.
3715
3716 2011-04-14  Richard Guenther  <rguenther@suse.de>
3717
3718         PR tree-optimization/48590
3719         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3720         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3721         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3722         BUILT_IN_STACK_SAVE.
3723         * tree-ssa-dce.c (propagate_necessity): Handle
3724         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3725
3726 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3727
3728         * c-parser.c (c_parser_objc_class_declaration): Updated call to
3729         objc_declare_class.
3730
3731 2011-04-14  Richard Guenther  <rguenther@suse.de>
3732
3733         * tree.h (get_object_alignment_1): Declare.
3734         * builtins.c (get_object_alignment_1): Split out worker from ...
3735         (get_object_alignment): ... here.
3736         * fold-const.c (get_pointer_modulus_and_residue): Use
3737         get_object_alignment_1.
3738
3739 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3740
3741         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3742         type parameter.
3743         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3744         parameter.  Generalise code to handle arrays as well as vectors.
3745         (vect_setup_realignment): Update accordingly.
3746         * tree-vect-stmts.c (vectorizable_store): Likewise.
3747         (vectorizable_load): Likewise.
3748
3749 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3750
3751         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3752         within the per-copy loop.
3753
3754 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3755
3756         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3757         in the dump file.
3758
3759 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3760
3761         * doc/options.texi (Negative): Explicitly mention that the
3762         Negative chain must be circular.
3763
3764 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
3765
3766         * function.h (block_chainon): Declare.
3767         * function.c (block_chainon): Define.
3768
3769 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
3770             Eric Weddington  <eric.weddington@atmel.com>
3771             Georg-Johann Lay <avr@gjlay.de>
3772
3773         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3774         New Includes
3775         (avr_init_builtins, avr_expand_builtin,
3776         avr_expand_delay_cycles, avr_expand_unop_builtin,
3777         avr_expand_binop_builtin ): New functions.
3778         (avr_builtin_id): New enum
3779         (struct avr_builtin_description): New struct
3780         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3781         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3782
3783         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3784         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3785         UNSPECV_DELAY_CYCLES): new enumeration values
3786         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3787         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3788         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3789         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3790         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3791         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3792         "fmulsu"): New insns
3793
3794         * config/avr/avr-c.c: fix line endings
3795         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3796         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3797         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3798         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3799         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3800
3801         * doc/extend.texi (AVR Built-in Functions): New node
3802         (Target Builtins): Add documentation of AVR
3803         built-in functions.
3804
3805 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
3806
3807         PR target/44643
3808         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3809         alone. Error if non-const data has attribute progmem.
3810
3811 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3812
3813         * tree.h (struct tree_constructor): Include tree_typed instead of
3814         tree_common.
3815         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3816         TS_TYPED instead of TS_COMMON.
3817
3818 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3819
3820         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3821         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3822         (sse2_psadbw): Merge with *avx_psadbw.
3823         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3824         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3825         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3826         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3827         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3828         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3829         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3830         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3831         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3832         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3833         (ssse3_palignrti): Merge with *avx_palignrti.
3834
3835 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3836
3837         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3838         * tree-ssanames.c (fini_ssanames): VEC_free it.
3839         (make_ssa_name_fn): Update for VECness of free_ssanames.
3840         (release_ssa_name, release_dead_ssa_names): Likewise.
3841         * tree.h (struct tree_ssa_name): Include tree_typed instead of
3842         tree_common.
3843         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3844         TS_TYPED instead of TS_COMMON.
3845
3846 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3847
3848         * postreload-gcse.c (gcse_after_reload_main): Add calls to
3849         statistics_counter_event.
3850         * tree-ssa-copyrename.c (stats): Define.
3851         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
3852         statistics_counter_event.
3853         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3854         (bswap_stats, widen_mul_stats): Define.
3855         (insert_reciprocals): Increment rdivs_inserted.
3856         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
3857         rfuncs_inserted.  Add calls to statistics_counter_event.
3858         (execute_cse_sincos_1): Increment inserted.
3859         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
3860         statistics_counter_event.
3861         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
3862         of bswap_stats.  Add calls to statistics_counter_event.
3863         (convert_mult_to_widen): Increment widen_mults_inserted.
3864         (convert_plusminus_to_widen): Increment maccs_inserted.
3865         (convert_mult_to_fma): Increment fmas_inserted.
3866         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
3867         calls to statistics_counter_event.
3868
3869 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3870
3871         PR rtl-optimization/48455
3872         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3873         `temp_costs->mem_cost'.
3874
3875 2011-04-13  Jan Hubicka  <jh@suse.cz>
3876
3877         * ipa-inline.h: New file.
3878         * ipa-inline-analysis.c: New file. Broken out of ...
3879         * ipa-inline.c: ... this file; update toplevel comment;
3880         include ipa-inline.h
3881         (inline_summary): Move to ipa-inline.h
3882         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3883         ipa-inline-analysis.c.
3884         (cgraph_estimate_time_after_inlining): Rename to
3885         estiamte_time_after_inlining; move to ipa-inline-analysis.c
3886         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3887         to estimate_edge_growth.
3888         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3889         rename to estimate_size_after_inlining.
3890         (cgraph_mark_inline_edge): Update for new naming convention.
3891         (cgraph_check_inline_limits): Likewise.
3892         (cgraph_edge_badness): Likewise.
3893         (cgraph_decide_recursive_inlining): Likewise.
3894         (cgraph_decide_inlining_of_small_functions): Likewise.
3895         (cgraph_decide_inlining_incrementally): Likewise.
3896         (cgraph_estimate_growth): Rename to estimate_growth; move to
3897         ipa-inline-analysis.c.
3898         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3899         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3900         (compute_inline_parameters): Likewise.
3901         (compute_inline_parameters_for_current): Likewise.
3902         (pass_inline_parameters): Likewise.
3903         (inline_indirect_intraprocedural_analysis): Likewise.
3904         (analyze_function): Rename to inline_analyze_function; likewise.
3905         (add_new_function): Move to ipa-inline-analysis.c.
3906         (inline_generate_summary): Likewise.
3907         (inline_read_summary): Likewise.
3908         (inline_write_summary): Likewise.
3909         * Makefile.in (ipa-inline-analysis.c): New file.
3910
3911 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3912
3913         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3914         * configure: Regenerate.
3915
3916 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3917
3918         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3919         instead of tree_common.
3920         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3921         Likewise.
3922         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3923         TS_TYPED rather than TS_COMMON.
3924         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3925
3926 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
3927
3928         PR target/45263
3929         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3930         r20 around calls of __tablejump_elpm__
3931
3932 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
3933
3934         PR middle-end/48591
3935         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3936         NULL.
3937         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3938
3939 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
3940
3941         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3942         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3943         (cfi_vec): New typedef.
3944         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3945         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3946         (cie_cfi_vec): New static variable.
3947         (cie_cfi_head): Delete.
3948         (add_cfi): Accept a cfi_vec * as first argument. All callers and
3949         declaration changed. Use vector rather than list operations.
3950         (new_cfi): Don't initialize the dw_cfi_next field.
3951         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3952         rather than list operations.
3953         (lookup_cfa): Use vector rather than list operations.
3954         (output_cfis): New argument upto. Accept a cfi_vec rather than
3955         a dw_cfi_ref list head as argument. All callers changed.
3956         Iterate over the vector using upto as a maximum index.
3957         (output_all_cfis): New static function.
3958         (output_fde): Use vector rather than list operations. Use the
3959         new upto argument for output_cfis rather than manipulating a
3960         list.
3961         (dwarf2out_begin_prologue): Change initializations to match
3962         new struct members.
3963         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3964         from the vector length rather than searching for the end of a list.
3965         Use output_all_cfis.
3966         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3967
3968 2011-04-13  Nick Clifton  <nickc@redhat.com>
3969
3970         * config/rx/rx.md (movmemsi): Do not use this pattern when
3971         volatile pointers are involved.
3972
3973 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3974
3975         * config/i386/sse.md (pinsrbits): Remove.
3976         (sse2_packsswb): Merge with *avx_packsswb.
3977         (sse2_packssdw): Merge with *avx_packssdw.
3978         (sse2_packuswb): Merge with *avx_packuswb.
3979         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3980         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3981         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3982         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3983         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3984         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3985         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3986         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3987         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3988         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3989         (sse2_loadld): Merge with *avx_loadld.
3990         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3991         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3992         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3993         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3994         (vec_concatv2di): Merge with *vec_concatv2di_avx.
3995
3996 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3997
3998         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3999         calling TREE_CHAIN.
4000         * print-tree.c (print_node): Likewise.
4001         * tree-inline.c (copy_tree_r): Likewise.
4002         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4003         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4004         instead of TS_COMMON.
4005         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4006         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4007         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4008         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4009         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4010         ...and these...
4011         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4012         * tree.h: ...here.
4013         (TREE_CHAIN): Check for a TS_COMMON structure.
4014         (TREE_TYPE): Check for a TS_TYPED structure.
4015
4016 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
4017
4018         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4019         cgraph_get_create_node instead of cgraph_node.
4020
4021 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4022
4023         * c-parser.c (c_parser_initelt): Updated call to
4024         objc_build_message_expr.
4025         (c_parser_postfix_expression): Likewise.
4026
4027 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4028
4029         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4030         MASK_MS_BITFIELD_LAYOUT bit.
4031
4032 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4033
4034         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4035         assert it is always true.
4036         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4037         moves.
4038
4039 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4040
4041         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4042         compiling Objective-C to be more efficient.
4043
4044 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4045
4046         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4047         argv_copied.
4048
4049 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4050
4051         * recog.h, genoutput.c, optabs.c: Revert last patch.
4052
4053 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4054
4055         PR target/48090
4056         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4057
4058 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4059
4060         * recog.h (insn_operand_data): Add an "allows_mem" field.
4061         * genoutput.c (output_operand_data): Initialize it.
4062         * optabs.c (maybe_legitimize_operand_same_code): New function.
4063         (maybe_legitimize_operand): Use it when matching the original
4064         op->value.
4065
4066 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4067
4068         * genpreds.c (process_define_predicate): Move most processing
4069         to gensupport.c.  Continue to validate the expression.
4070         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4071         (process_define_predicate): Move processing to gensupport.c.
4072         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4073         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4074         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4075         argument.
4076         (valid_predicate_name_p): New function, split out from old
4077         genpreds.c:process_define_predicate.
4078         (process_define_predicate): New function, combining code from
4079         old genpreds.c and genrecog.c functions.
4080         (process_rtx): Call it for DEFINE_PREDICATE and
4081         DEFINE_SPECIAL_PREDICATE.
4082
4083 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4084
4085         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4086         size of a '%A' memory reference.
4087         (T_DREG, T_QREG): New neon_builtin_type_bits.
4088         (arm_init_neon_builtins): Assert that the load and store operands
4089         are neon_struct_operands.
4090         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4091         (NEON_ARG_MEMORY): New builtin_arg.
4092         (neon_dereference_pointer): New function.
4093         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4094         Handle NEON_ARG_MEMORY.
4095         (arm_expand_neon_builtin): Update after above interface changes.
4096         Use NEON_ARG_MEMORY for loads and stores.
4097         * config/arm/predicates.md (neon_struct_operand): New predicate.
4098         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4099         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4100         (V_four_elem): Tweak formatting.
4101         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4102         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4103         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4104         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4105         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4106         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4107         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4108         Use %A in the output template.
4109         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4110         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4111         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4112         the width of the memory access.  Remove post-increment.
4113         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4114
4115 2011-04-12  Nick Clifton  <nickc@redhat.com>
4116
4117         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4118         instruction for interrupt handlers if the target is the basic V850
4119         architecture.
4120         (expand_epilogue): Likewise.
4121
4122 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4123
4124         PR rtl-optimization/48549
4125         * combine.c (propagate_for_debug): Also stop after BB_END of
4126         this_basic_block.  Process LAST and just stop processing after it.
4127         (combine_instructions): If last_combined_insn has been deleted,
4128         set last_combined_insn to its PREV_INSN.
4129
4130 2011-04-12  Richard Guenther  <rguenther@suse.de>
4131
4132         PR tree-optimization/46076
4133         * gimple.h (struct gimple_statement_call): Add fntype field.
4134         (gimple_call_fntype): Adjust.
4135         (gimple_call_set_fntype): New function.
4136         * gimple.c (gimple_build_call_1): Set the call function type.
4137         * gimplify.c (gimplify_call_expr): Preserve the function
4138         type the frontend used for the call.
4139         (gimplify_modify_expr): Likewise.
4140         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4141         function type.
4142         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4143         function type.
4144         * tree-ssa.c (useless_type_conversion_p): Function pointer
4145         conversions are useless.
4146
4147 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4148
4149         * cgraph.h (cgraph_node): Remove function declaration.
4150         (cgraph_create_node): Declare.
4151         (cgraph_get_create_node): Likewise.
4152         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4153         Updated all callers.
4154         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4155         the decl does not already exist.  Call cgraph_get_create_node instead
4156         of cgraph_node.
4157         (cgraph_get_create_node): New function.
4158         (cgraph_same_body_alias): Update comment.
4159         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4160         assert it does not return NULL.
4161         (cgraph_update_edges_for_call_stmt): Likewise.
4162         (cgraph_clone_edge): Likewise.
4163         (cgraph_create_virtual_clone): Likewise.
4164         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4165         instead of cgraph_node.
4166         (cgraph_add_new_function): Call cgraph_create_node or
4167         cgraph_get_create_node instead of cgraph_node.
4168         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4169         instead of cgraph_node.
4170         (record_eh_tables): Likewise.
4171         (mark_address): Likewise.
4172         (mark_load): Likewise.
4173         (build_cgraph_edges): Call cgraph_get_create_node instead
4174         of cgraph_node.
4175         (rebuild_cgraph_edges): Likewise.
4176         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4177         instead of cgraph_node.
4178         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4179         cgraph_node.
4180         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4181         cgraph_create_node instead of cgraph_node.
4182         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4183         of cgraph_node.
4184         * lto-cgraph.c (input_node): Likewise.
4185         * lto-streamer-in.c (input_function): Likewise.
4186         * varasm.c (mark_decl_referenced): Likewise.
4187         (assemble_alias): Likewise.
4188
4189 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4190
4191         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4192         instead of cgraph_node and assert it does not return NULL.
4193         * lto-streamer-in.c (lto_read_body): Likewise.
4194         * omp-low.c (new_omp_context): Likewise.
4195         (create_task_copyfn): Likewise.
4196         * tree-emutls.c (lower_emutls_function_body): Likewise.
4197         * matrix-reorg.c (transform_allocation_sites): Likewise.
4198
4199 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4200
4201         PR c/48552
4202         * c-typeck.c (build_asm_expr): Error out on attempts to use
4203         void type outputs or inputs for constraints that allow reg or
4204         don't allow memory.
4205
4206 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4207             Richard Earnshaw  <rearnsha@arm.com>
4208
4209         PR target/48250
4210         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4211         to use sign-magnitude offsets. Reject unsupported unaligned
4212         cases. Add detailed description in comments.
4213         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4214         condition from TARGET_32BIT to TARGET_ARM.
4215
4216 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4217
4218         * tree.h (struct typed_tree): New.
4219         (struct tree_common): Include it instead of tree_base.
4220         (TREE_TYPE): Update for new location of type field.
4221         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4222         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4223         (union tree_node): Add typed field.
4224         * treestruct.def (TS_TYPED): New.
4225         * lto-streamer.c (check_handled_ts_structures): Handle it.
4226         * tree.c (MARK_TS_TYPED): New macro.
4227         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4228
4229 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4230
4231         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4232         (force_nonfallthru): Do not alter the loop nest if no basic block
4233         was created.
4234
4235 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4236
4237         * config/i386/sse.md (VI): New mode iterator.
4238         (SSEMODEI): Remove.
4239         (AVX256MODEI): Ditto.
4240         (AVXMODEF4P): Ditto.
4241         (avxvecpsmode): Ditto.
4242         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4243         (sse2_andnot<mode>3): New expander.
4244         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4245         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4246         (<any_logic:code><mode>3): Use VI mode iterator.
4247         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4248         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4249         (*andnottf3): Handle AVX three-operand constraints.
4250         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4251
4252 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4253             Robert Millan  <rmh@gnu.org>
4254
4255         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4256         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4257         GNU_USER_DYNAMIC_LINKER64): Define.
4258         (REG_NAME): Don't undefine.
4259         (MD_UNWIND_SUPPORT): Undefine.
4260         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4261         (REG_NAME): Don't undefine.
4262         (MD_UNWIND_SUPPORT): Undefine.
4263         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4264
4265 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4266
4267         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4268         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4269
4270 2011-04-11  Xinliang David Li  <davidxl@google.com>
4271
4272         * value-profile.c (check_ic_target): New function.
4273         (gimple_ic_transform): Sanity check indirect call target.
4274         * gimple-low.c (gimple_check_call_args): Interface change.
4275         (gimple_check_call_matching_types): New function.
4276         * tree-inline.c (tree_can_inline_p): Call new function.
4277
4278 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4279
4280         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4281         tree-pretty-print.h & realmpfr.h.
4282
4283 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4284
4285         PR middle-end/48464
4286         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4287         (setup_allocno_and_important_classes): Ditto.
4288
4289 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4290
4291         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4292         GNU_USER_DYNAMIC_LINKER.
4293         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4294         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4295         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4296         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4297         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4298         GNU_USER_TARGET_OS_CPP_BUILTINS.
4299         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4300         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4301         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4302         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4303         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4304         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4305         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4306         GNU_USER_TARGET_OS_CPP_BUILTINS.
4307         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4308         GNU_USER_DYNAMIC_LINKER.
4309         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4310         GNU_USER_TARGET_OS_CPP_BUILTINS.
4311         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4312         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4313         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4314         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4315         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4316         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4317         GNU_USER_DYNAMIC_LINKER64): Remove.
4318         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4319         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4320         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4321         GNU_USER_DYNAMIC_LINKER.
4322         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4323         GNU_USER_TARGET_OS_CPP_BUILTINS.
4324         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4325         GNU_USER_TARGET_OS_CPP_BUILTINS.
4326         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4327         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4328         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4329         GNU_USER_TARGET_OS_CPP_BUILTINS.
4330         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4331         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4332         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4333         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4334         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4335         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4336         GNU_USER_DYNAMIC_LINKER.
4337         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4338         GNU_USER_TARGET_OS_CPP_BUILTINS.
4339         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4340         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4341         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4342         GNU_USER_DYNAMIC_LINKER.
4343         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4344         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4345         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4346         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4347         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4348         GNU_USER_DYNAMIC_LINKER.
4349         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4350         GNU_USER_DYNAMIC_LINKERN32.
4351         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4352         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4353         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4354         GNU_USER_DYNAMIC_LINKER32.
4355         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4356         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4357         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4358         GNU_USER_DYNAMIC_LINKER.
4359         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4360         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4361         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4362         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4363         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4364         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4365         GNU_USER_DYNAMIC_LINKER32.
4366         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4367         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4368         GNU_USER_DYNAMIC_LINKER.
4369         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4370         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4371         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4372         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4373         GNU_USER_DYNAMIC_LINKER64.
4374         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4375         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4376         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4377         GNU_USER_DYNAMIC_LINKER.
4378         * config/sparc/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/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4383         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4384         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4385         GNU_USER_DYNAMIC_LINKER32.
4386         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4387         GNU_USER_DYNAMIC_LINKER64.
4388         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4389         GNU_USER_DYNAMIC_LINKER64.
4390         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4391         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4392         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4393         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4394         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4395
4396 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4397
4398         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4399         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4400         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4401         GNU_USER_DYNAMIC_LINKER.
4402         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4403         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4404         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4405         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4406         GNU_USER_DYNAMIC_LINKER64.
4407         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4408         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4409         GNU_USER_LINK_EMULATION.
4410         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4411         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4412         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4413         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4414         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4415         CPP_SPEC, CC1_SPEC): Remove.
4416         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4417         (GNU_USER_DYNAMIC_LINKER): Define.
4418         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4419         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4420         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4421         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4422         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4423         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4424         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4425         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4426         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4427         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4428         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4429         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4430         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4431         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4432         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4433         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4434         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4435         GNU_USER_DYNAMIC_LINKER.
4436         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4437         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4438         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4439         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4440         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4441         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4442         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4443         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4444         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4445         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4446
4447 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4448
4449         PR target/9601
4450         PR target/11772
4451         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4452         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4453         comment.
4454         (ix86_is_msabi_thiscall): Removed.
4455         (ix86_is_type_thiscall): Likewise.
4456         (ix86_get_callcvt): New function.
4457         (ix86_comp_type_attributes): Simplify check.
4458         (ix86_function_regparm): Use ix86_get_callcvt for calling
4459         convention attribute checks.
4460         (ix86_return_pops_args): Likewise.
4461         (ix86_static_chain): Likewise.
4462         (x86_this_parameter): Likewise.
4463         (x86_output_mi_thunk): Likewise.
4464         (ix86_function_type_abi): Optimize check for types without attributes.
4465         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4466         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4467         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4468         by flag-values.
4469         (IX86_BASE_CALLCVT): Helper macro.
4470         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4471         Use ix86_get_callcvt for calling convention attribute checks and avoid
4472         symbol-decoration for stdcall in TARGET_RTD case.
4473         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4474         Likewise.
4475         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4476         for declaration.
4477
4478 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4479
4480         * config/i386/sse.md (VI_128): New mode iterator.
4481         (VI12_128): Rename from SSEMODE12.
4482         (VI14_128): Rename from SSEMODE14.
4483         (VI124_128): New mode iterator.
4484         (VI24_128): Rename from SSEMODE248.
4485         (VI248_128): Rename from SSEMODE248.
4486         (SSEMODE124C8): Remove.
4487         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4488         (*sse2_<plusminus_insn><mode>3): Merge with
4489         *avx_<plusminus_insn><mode>3.
4490         (*mulv8hi3): Merge with *avx_mulv8hi3.
4491         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4492         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4493         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4494         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4495         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4496         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4497         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4498         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4499         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4500         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4501         (*<smaxmin:code>v8hi3): Ditto.
4502         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4503         (*<smaxmin:code>v16qi3): Ditto.
4504         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4505         (*sse2_eq<mode>3): Ditto.
4506         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4507         (*sse2_gt<mode>3): Ditto.
4508         (vcondv2di): Split out of vcond<mode>.
4509         (vconduv2di): Split out of vcondu<mode>.
4510
4511 2011-04-11  Richard Guenther  <rguenther@suse.de>
4512
4513         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4514         before calling tree_low_cst.
4515
4516 2011-04-11  Richard Guenther  <rguenther@suse.de>
4517
4518         * stor-layout.c (layout_type): Compute all array index size operations
4519         in the original type.
4520         (initialize_sizetypes): Add comment.
4521         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4522
4523 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4524
4525         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4526
4527 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4528
4529         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4530         of cgraph_node, handle NULL return value.
4531         (cgraph_global_info): Likewise.
4532         (cgraph_rtl_info): Likewise.
4533         * tree-inline.c (estimate_num_insns): Likewise.
4534         * gimplify.c (unshare_body): Likewise.
4535         (unvisit_body): Likewise.
4536         (gimplify_body): Likewise.
4537         * predict.c (optimize_function_for_size_p): Likewise.
4538         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4539         (call_may_clobber_ref_p_1): Likewise.
4540         * varasm.c (function_section_1): Likewise.
4541         (assemble_start_function): Likewise.
4542
4543 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4544
4545         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4546         of cgraph_node.
4547         * final.c (rest_of_clean_state): Likewise.
4548         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4549         * passes.c (pass_init_dump_file): Likewise.
4550         (execute_all_ipa_transforms): Likewise.
4551         (function_called_by_processed_nodes_p): Likewise.
4552         * predict.c (maybe_hot_frequency_p): Likewise.
4553         (probably_never_executed_bb_p): Likewise.
4554         (compute_function_frequency): Likewise.
4555         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4556         (unnest_nesting_tree_1): Likewise.
4557         (lower_nested_functions): Likewise.
4558         * tree-optimize.c (execute_fixup_cfg): Likewise.
4559         (tree_rest_of_compilation): Likewise.
4560         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4561         * tree-sra.c (ipa_early_sra): Likewise.
4562         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4563         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4564         * ipa.c (record_cdtor_fn): Likewise.
4565         * ipa-inline.c (cgraph_early_inlining): Likewise.
4566         (compute_inline_parameters_for_current): Likewise.
4567         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4568         * ipa-pure-const.c (local_pure_const): Likewise.
4569         * ipa-split.c (split_function): Likewise.
4570         (execute_split_functions): Likewise.
4571         * cgraphbuild.c (build_cgraph_edges): Likewise.
4572         (rebuild_cgraph_edges): Likewise.
4573         (cgraph_rebuild_references): Likewise.
4574         (remove_cgraph_callee_edges): Likewise.
4575         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4576         (verify_cgraph_node): Likewise.
4577         (cgraph_analyze_functions): Likewise.
4578         (cgraph_preserve_function_body_p): Likewise.
4579         (save_inline_function_body): Likewise.
4580         (save_inline_function_body): Likewise.
4581         * tree-inline.c (copy_bb): Likewise.
4582         (optimize_inline_calls): Likewise.
4583
4584 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4585
4586         PR tree-optimization/48195
4587         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4588         ipa_check_create_edge_args.
4589         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4590         ipa_check_create_edge_args.
4591         * ipa-inline.c (inline_generate_summary): Do not call
4592         ipa_check_create_node_params and ipa_check_create_edge_args.
4593         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4594         ipa_check_create_edge_args.
4595
4596 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
4597
4598         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4599         instead of loop.
4600         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4601         * function.c (record_hard_reg_sets): Likewise.
4602         * ira.c (compute_regs_asm_clobbered): Likewise.
4603         * sched-deps.c (sched_analyze_1): Likewise.
4604         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4605
4606 2011-04-09  Xinliang David Li  <davidxl@google.com>
4607
4608         PR tree-optimization/PR48484
4609         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4610         has_valid_pred lazily
4611
4612 2011-04-09  Duncan Sands  <baldrick@free.fr>
4613
4614         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4615
4616 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4617
4618         * combine.c (combine_validate_cost): Adjust comments.  Set registered
4619         cost of I0 to zero at the end, if any.
4620
4621 2011-04-08  Xinliang David Li  <davidxl@google.com>
4622
4623         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4624         to insane profile data.
4625
4626 2011-04-08  Xinliang David Li  <davidxl@google.com>
4627
4628         * ipa-cp.c (ipcp_update_profiling): Correct
4629          negative scale factor due to insane profile data.
4630
4631 2011-04-08  Xinliang David Li  <davidxl@google.com>
4632
4633         * final.c (dump_basic_block_info): New function.
4634         (final): Dump basic block.
4635         (final_scan_insn): Remove old dump.
4636
4637 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4638
4639         PR target/47829
4640         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4641         crtbegin/crtend.
4642
4643 2011-04-08  Michael Matz  <matz@suse.de>
4644
4645         PR middle-end/48389
4646         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4647         functions.
4648         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4649         * rtl.h (rebuild_jump_labels_chain): Declare.
4650         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4651         insns inserted on edges.
4652
4653 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
4654
4655         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4656         * config/arm/arm-arches.def: New.
4657         * config/arm/arm-opts.h: New.
4658         * config/arm/genopt.sh: New.
4659         * config/arm/arm-tables.opt: New (generated).
4660         * config/arm/arm.c (arm_handle_option, arm_target_help,
4661         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4662         (all_architectures): Get most table contents from arm-arches.def.
4663         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4664         arm_selected_tune here.
4665         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4666         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4667         (march=, mcpu=, mtune=): Use Enum and Var.
4668         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4669         (arm.o): Update dependencies.
4670
4671 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
4672
4673         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4674         of header_file.
4675         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4676         (write_typed_alloc_defns): Likewise.
4677         (main): Calls write_typed_alloc_defns with output_header.
4678
4679 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4680
4681         PR inline-asm/48435
4682         * ira-color.c (setup_profitable_hard_regs): Add comments.
4683         Don't take prohibited hard regs into account.
4684         (setup_conflict_profitable_regs): Rename to
4685         get_conflict_profitable_regs.
4686         (check_hard_reg_p): Check prohibited hard regs.
4687
4688 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4689
4690         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4691         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4692         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4693
4694 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4695
4696         PR target/48366
4697         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4698         move from floating point to shift amount register.
4699         (emit_move_sequence): Remove secondary reload support for floating
4700         point to shift amount amount register copies.
4701         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4702         amount register copies.
4703         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4704         register, return false if mode isn't a scalar integer mode.
4705         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4706
4707 2011-04-08  Richard Guenther  <rguenther@suse.de>
4708
4709         * gimple.c (gimple_call_flags): Remove kludge.
4710
4711 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4712
4713         * sel-sched.c (sel_region_init): Move call to
4714         sel_setup_region_sched_flags after setup_current_loop_nest.
4715
4716 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
4717
4718         PR rtl-optimization/48272
4719         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4720         init_insn_reg_pressure_info.  Adjust a caller.
4721         * sched-int.h (init_insn_reg_pressure_info): Declare.
4722         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4723         when sched-pressure is enabled.
4724
4725 2011-04-08  Richard Guenther  <rguenther@suse.de>
4726
4727         * gimple.c (gimple_set_modified): Do not queue calls to
4728         MODIFIED_NORETURN_CALLS here ...
4729         * tree-ssa-operands.c (update_stmt_operands): ... but here.
4730
4731 2011-04-08  Richard Guenther  <rguenther@suse.de>
4732
4733         PR lto/48467
4734         * toplev.c (lang_dependent_init): Do not open asm_out_file
4735         in WPA mode, nor perform debug machinery initialization.
4736         (finalize): Do not unlink asm_out_file in WPA mode.
4737
4738 2011-04-08  Richard Guenther  <rguenther@suse.de>
4739
4740         * gimple.h (gimple_call_fntype): New function.
4741         (gimple_call_return_type): Use it.
4742         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4743         * gimple-low.c (gimple_check_call_args): Likewise.
4744         * gimple.c (gimple_call_flags): Likewise.
4745         (gimple_call_arg_flags): Likewise.
4746         (gimple_call_return_flags): Likewise.
4747         * tree-cfg.c (verify_gimple_call): Likewise.
4748         (do_warn_unused_result): Likewise.
4749         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4750         * value-prof.c (gimple_ic_transform): Fix fndecl check.
4751
4752 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
4753
4754         PR rtl-optimization/48235
4755         * sel-sched.c (code_motion_process_successors): Recompute the last
4756         insn in basic block if control flow changed.
4757         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
4758         Update condition for ilist_remove.
4759
4760 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4761
4762         PR rtl-optimization/48302
4763         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4764         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
4765         it to record added preheader blocks.
4766         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
4767         on to sel_add_loop_preheaders.
4768         (sel_region_init): Move call to setup_current_loop_nest after
4769         sel_init_bbs.
4770
4771 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4772
4773         PR target/48273
4774         * cfgloop.h (loop_has_exit_edges): New helper.
4775         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4776         non-clonable.
4777         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4778         that have no exit edges.
4779
4780 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4781
4782         PR rtl-optimization/48442
4783         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
4784         all callers.  Adjust assert.
4785
4786 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
4787
4788         PR tree-optimization/48377
4789         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4790         is_packed to true even for types with smaller TYPE_ALIGN than
4791         TYPE_SIZE.
4792
4793 2011-04-08  Richard Guenther  <rguenther@suse.de>
4794
4795         PR bootstrap/48513
4796         * doc/tm.texi: Re-generate.
4797
4798 2011-04-08  Wei Guozhi  <carrot@google.com>
4799
4800         PR target/47855
4801         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4802         * config/arm/arm.c (arm_attr_length_push_multi): New function.
4803         * config/arm/arm.md (*push_multi): Change the length computation to
4804         call a C function.
4805
4806 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
4807
4808         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4809         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4810         * doc/tm.texi: Regenerate.
4811         * system.h (ASM_OUTPUT_BSS): Poison.
4812         * varasm.c (asm_output_bss): Remove function.
4813         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4814
4815         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4816         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4817         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4818         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4819         Likewise.
4820         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4821         Likewise.
4822         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4823         Likewise.
4824         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4825
4826 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4827
4828         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4829         EnumValue lines.
4830
4831 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4832
4833         * config/m68k/m68k.c (m68k_handle_option): Don't handle
4834         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4835         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4836         OPT_mcpu32.
4837         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4838         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4839         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4840         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4841         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4842         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4843         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4844         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4845         options.  Don't map other m68k options manually.  Don't handle
4846         old-style options as canonical.
4847         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4848         * doc/install.texi (m68k-*-*): Document binutils version requirement.
4849
4850 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4851
4852         * basic-block.h (force_nonfallthru): Move to...
4853         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4854         (force_nonfallthru): ...here.
4855         * cfghooks.c (force_nonfallthru): New function.
4856         * cfgrtl.c (force_nonfallthru): Rename into...
4857         (rtl_force_nonfallthru): ...this.
4858         (commit_one_edge_insertion): Do not set AUX field.
4859         (commit_edge_insertions): Do not discover new basic blocks.
4860         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4861         (cfg_layout_rtl_cfg_hooks): Likewise.
4862         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4863         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
4864         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4865
4866 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
4867
4868         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4869         Remove macros.
4870
4871 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
4872
4873         * config/i386/sse.md: Update copyright year.
4874         (avxcvtvecmode): Remove.
4875         (sse_movhlps): Merge with *avx_movhlps.
4876         (sse_movlhps): Merge with *avx_movlhps.
4877         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4878         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4879         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4880         (sse_loadhps): Merge with *avx_loadhps.
4881         (sse_storelps): Merge with *avx_storelps.
4882         (sse_loadlps): Merge with *avx_loadlps.
4883         (sse_movss): Merge with *avx_movss.
4884         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4885         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4886         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4887         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4888         (vec_set<mode>_0): Ditto.
4889         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4890         (sse4_1_insertps): Merge with *avx_insertps.
4891         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4892         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4893         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4894         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4895         (sse2_storehpd): Merge with *avx_storehpd.
4896         (sse2_loadhpd): Merge with *avx_loadhpd.
4897         (sse2_loadlpd): Merge with *avx_loadlpd.
4898         (sse2_movsd): Merge with *avx_movsd.
4899         (*vec_concatv2df): Merge with *vec_concatv2df.
4900
4901 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
4902
4903         PR debug/48343
4904         * combine.c (combine_instructions): Add last_combined_insn,
4905         update it if insn is after it, pass it to all try_combine calls.
4906         (try_combine): Add last_combined_insn parameter, pass it instead of
4907         i3 to propagate_for_debug.
4908
4909 2011-04-07  Nick Clifton  <nickc@redhat.com>
4910
4911         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4912         to handle MDR <-> data register transfers.
4913         (movhi_internal): Likewise.
4914
4915 2011-04-07  Alan Modra  <amodra@gmail.com>
4916
4917         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4918         previous stack info.
4919
4920 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4921
4922         PR target/43920
4923         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
4924         flow_find_cross_jump.  Swap variables to implement backward replacement.
4925         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4926
4927 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4928
4929         PR target/43920
4930         * cfgcleanup.c (walk_to_nondebug_insn): New function.
4931         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
4932         and bb2.
4933         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4934         src1 or src2.  Redirect edges to the last basic block.  Update
4935         frequency and count on multiple basic blocks in case of fallthru.
4936
4937 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4938
4939         PR target/43920
4940         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4941         function.
4942         (old_insns_match_p): Change return type.  Replace return false/true
4943         with return dir_none/dir_both.  Use can_replace_by.
4944         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
4945         direction from dir_p.  Register replacement direction in dir, last_dir
4946         and afterlast_dir.  Handle new return type of old_insns_match_p using
4947         merge_dir.  Return replacement direction in dir_p.
4948         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4949         return type of old_insns_match_p.
4950         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4951         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4952         flow_find_cross_jump.
4953         * basic-block.h (enum replace_direction): New type.
4954         (flow_find_cross_jump): Add parameter to declaration.
4955
4956 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4957
4958         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4959         (AVXMODEDCVTPS2DQ): Ditto.
4960         (VEC_FLOAT_MODE): Ditto.
4961         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
4962         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4963         (<any_logic:code><mode>3): Use VF mode iterator.
4964         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4965         Use VF mode iterator.
4966         (copysign<mode>3): Use VF mode iterator.
4967         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
4968         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4969         (*<any_logic:code><MODEF:mode>3): Merge with
4970         *avx_<any_logic:code><MODEF:mode>3.
4971         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4972         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4973         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4974         (avx_cvtdq2ps<avxmodesuffix>): Remove.
4975         (sse2_cvtdq2ps): Use %v modifier.
4976         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4977         (avx_cvtps2dq<avxmodesuffix>): Remove.
4978         (sse2_cvtps2dq): Use %v modifier.
4979         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4980         (avx_cvttps2dq<avxmodesuffix>): Remove.
4981         (sse2_cvttps2dq): Use %v modifier.
4982         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4983         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4984         (sse2_cvtsd2siq): Fix insn template.
4985         (sse2_cvtsd2siq_2): Ditto.
4986         (sse2_cvttsd2siq): Ditto.
4987         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4988         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4989
4990 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4991
4992         * gcov-io.c: Use GCC Runtime Library Exception.
4993
4994 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
4995
4996         PR debug/48466
4997         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4998         as base_reg whatever register reg has been eliminated to, instead
4999         of hardcoding STACK_POINTER_REGNUM.
5000
5001 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5002
5003         * doc/tm.texi.in: Document C target hooks as separate from general
5004         target hooks.
5005         * doc/tm.texi: Regenerate.
5006         * genhooks.c (struct hook_desc): Add docname field.
5007         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5008         docname field.
5009         (hook_array): Include c-target.def.
5010         (emit_documentation): Use docname field in output.
5011         (emit_init_macros): Take docname argument.  Only emit definitions
5012         for hooks matching docname.
5013         (main): Expect additional arguments in all cases.  Pass argument
5014         to emit_init_macros.
5015         * target.def: Move initial macro definitions and comments to
5016         target-hooks-macros.h.
5017         (gcc_targetcm): Move to c-family/c-target.def.
5018         * target.h (targetcm): Move declaration to c-family/c-target.h.
5019         * targhooks.c (default_handle_c_option): Move to
5020         c-family/c-opts.c.
5021         * targhooks.h (default_handle_c_option): Move declaration to
5022         c-family/c-common.h.
5023         * target-hooks-macros.h: New file.
5024         * config.gcc (target_has_targetcm): Define and use to add to
5025         c_target_objs and cxx_target_objs.
5026         * config/default-c.c: New file.
5027         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5028         of target.h and target-def.h.
5029         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5030         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5031         darwin_check_cfstring_format_arg): Make static.
5032         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5033         TARGET_STRING_OBJECT_REF_TYPE_P,
5034         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5035         * config/darwin-protos.h (darwin_objc_construct_string,
5036         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5037         declare.
5038         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5039         TARGET_STRING_OBJECT_REF_TYPE_P,
5040         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5041         * config/t-darwin (darwin-c.o): Update dependencies.
5042         * system.h (TARGET_HAS_TARGETCM): Poison.
5043         * Makefile.in (TARGET_H): Update.
5044         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5045         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5046         (default-c.o): New target.
5047         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5048         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5049         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5050         c-target.def.
5051         (build/genhooks.o): Update dependencies.
5052
5053 2011-04-06  Richard Guenther  <rguenther@suse.de>
5054
5055         * ipa-inline.c (enum inlining_mode): Remove.
5056         (cgraph_flatten): Use some other token.
5057         (cgraph_edge_early_inlinable_p): New function, split out from ...
5058         (cgraph_perform_always_inlining): New function, split out from ...
5059         (cgraph_decide_inlining_incrementally): ... here.
5060         (cgraph_mark_inline_edge): Adjust.
5061         (cgraph_early_inlining): Re-structure.
5062         (pass_early_inline): Require SSA form.
5063
5064 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5065             Julian Brown  <julian@codesourcery.com>
5066             Mark Shinwell  <shinwell@codesourcery.com>
5067
5068         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5069         LO_REGS only for Thumb-1.
5070         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5071         be used in short instructions when optimising for size on Thumb-2.
5072
5073 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5074
5075         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5076         associated with user returns to be preserved.
5077
5078 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5079
5080         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5081         symbol_queue_size, DBXOUT_DECR_NESTING,
5082         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5083         if XCOFF_DEBUGGING_INFO.
5084
5085 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5086
5087         * config/i386/i386.md (attribute isa): New.
5088         (attribute enabled): New.
5089         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5090         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5091         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5092         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5093         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5094         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5095         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5096         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5097
5098         * config/i386/sse.md (VF): New mode iterator.
5099         (VF1): Ditto.
5100         (VF2): Ditto.
5101         (VF_128): Ditto.
5102         (SSEMODEF4): Remove.
5103         (attribute sse): Handle V8SF and V4DF modes.
5104         (<absneg:code><mode>2): Use VF mode iterator.
5105         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5106         mode iterator.
5107         (<plusminus_insn><mode>3): Use VF mode iterator.
5108         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5109         Use VF mode iterator.
5110         (<sse>_vm<plusminus_insn><mode>3): Merge with
5111         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5112         (mul<mode>3): Use VF mode iterator.
5113         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5114         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5115         mode iterator.
5116         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5117         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5118         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5119         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5120         mode iterator.
5121         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5122         Use VF1 mode iterator.
5123         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5124         (sqrt<VF2:mode>2): New expander.
5125         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5126         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5127         and sqrtv2df2.  Use VF mode iterator.
5128         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5129         mode iterator.
5130         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5131         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5132         Use VF1 mode iterator.
5133         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5134         (<smaxmin:code><mode>3): Use VF mode iterator.
5135         (*<smaxmin:code><mode>3_finite): Merge with
5136         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5137         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5138         (<sse>_vm<smaxmin:code><mode>2): Merge with
5139         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5140         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5141         mode iterator.
5142         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5143         mode iterator.
5144         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5145         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5146         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5147         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5148         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5149         VF mode iterator.
5150         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5151         Use VF_128 mode iterator.
5152         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5153         mode iterator.
5154         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5155         VF_128 mode iterator.
5156         (vcond<mode>): Use VF mode iterator.
5157         * config/i386/predicates.md (sse_comparison_operator): Merge with
5158         avx_comparison_float_operator.  Do not declare as special_predicate.
5159         * config/i386/i386.c (struct builtin_description): Update for renamed
5160         compare patterns.
5161         (ix86_expand_args_builtin): Ditto.
5162         (ix86_expand_sse_compare_mask): Ditto.
5163
5164 2011-04-06  Richard Guenther  <rguenther@suse.de>
5165
5166         * tree-inline.c (estimate_num_insns): For calls simply account
5167         for all passed arguments and a used return value.
5168
5169 2011-04-06  Richard Guenther  <rguenther@suse.de>
5170
5171         PR tree-optimization/47663
5172         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5173         call_stmt_time fields.
5174         (cgraph_edge_inlinable_p): Declare.
5175         (cgraph_edge_recursive_p): New inline function.
5176         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5177         (cgraph_clone_edge): Copy it.
5178         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5179         Account for call stmt time.
5180         (cgraph_estimate_time_after_inlining): Take edge argument.
5181         (cgraph_estimate_edge_growth): Account call stmt size.
5182         (cgraph_estimate_size_after_inlining): Take edge argument.
5183         (cgraph_mark_inline_edge): Adjust.
5184         (cgraph_check_inline_limits): Likewise.
5185         (cgraph_recursive_inlining_p): Remove.
5186         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5187         (cgraph_decide_recursive_inlining): Take edge argument and
5188         adjust.
5189         (cgraph_decide_inlining_of_small_functions): Do not avoid
5190         diags for recursive inlining here.
5191         (cgraph_flatten): Adjust.
5192         (cgraph_decide_inlining_incrementally): Likewise.
5193         (estimate_function_body_sizes): Remove call cost handling.
5194         (compute_inline_parameters): Initialize caller edge call costs.
5195         (cgraph_estimate_edge_growth): New function.
5196         (cgraph_estimate_growth): Use it.
5197         (cgraph_edge_badness): Likewise.
5198         (cgraph_check_inline_limits): Take an edge argument.
5199         (cgraph_decide_inlining_of_small_functions): Adjust.
5200         (cgraph_decide_inlining): Likewise.
5201         * tree-inline.c (estimate_num_insns): Only account for call
5202         return value if it is used.
5203         (expand_call_inline): Avoid diagnostics on recursive inline
5204         functions here.
5205         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5206         (input_edge): Input edge call costs.
5207
5208 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5209
5210         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5211
5212 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5213
5214         * doc/invoke.texi (Spec Files): Fix typo.
5215
5216 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5217
5218         * profile.c (branch_prob): Move declaration of local variable.  Remove
5219         obsolete ??? comment.  Expand the location explicitly instead of using
5220         the LOCATION_FILE and LOCATION_LINE macros.
5221
5222 2011-04-06  Wei Guozhi  <carrot@google.com>
5223
5224         PR target/47855
5225         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5226         (arm_cond_branch): Likewise.
5227         (arm_cond_branch_reversed): Likewise.
5228         (arm_jump): Likewise.
5229         (push_multi): Likewise.
5230         * config/arm/constraints.md (Py): New constraint.
5231
5232 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5233
5234         PR bootstrap/48471
5235         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5236         Move these...
5237         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5238         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5239         #ifdef DBX_DEBUGGING_INFO.
5240
5241 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5242
5243         PR bootstrap/48403
5244         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5245         if old and new states differ.
5246
5247 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5248
5249         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5250         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5251         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5252         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5253         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5254         mcfv4e): Use Alias.
5255         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5256         ColdFire options to -mcpu= options.
5257
5258 2011-04-05  Jeff Law  <law@redhat.com>
5259
5260         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5261         check if BB is a successor of LOOP->header and return
5262         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5263
5264 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5265
5266         * cprop.c (struct reg_use): Remove.
5267         (reg_use_table): Make an array of RTX.
5268         (find_used_regs, constprop_register, local_cprop_pass,
5269         bypass_block): Simplify users of reg_use_table.
5270         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5271         on one of the uses found by find_used_regs.
5272
5273 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5274
5275         PR bootstrap/48469
5276         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5277         declaration.
5278
5279 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5280
5281         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5282         as an rtx.
5283         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5284
5285 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5286
5287         PR middle-end/48441
5288         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5289
5290 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5291
5292         * combine.c: Include obstack.h.
5293         (struct insn_link): Define.
5294         (uid_log_links): Adjust type.
5295         (FOR_EACH_LOG_LINK): New macro.
5296         (insn_link_obstack): Declare.
5297         (alloc_insn_link): Define.
5298         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5299         type of link variables.
5300         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5301         (try_combine, record_promoted_values, distribute_notes): Likewise.
5302         (distribute_links): Likewise.  Tweak prototype.
5303         (clear_log_links): Delete.
5304         (adjust_for_new_dest): Call alloc_insn_link.
5305         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5306
5307 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5308
5309         * gcse.c (modify_mem_list): Convert to an array of VECs.
5310         (canon_modify_mem_list, compute_transp): Tweak formatting.
5311         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5312         (load_killed_in_block_p): Likewise.
5313         (record_last_mem_set_info): Likewise.
5314         (clear_modify_mem_tables): Likewise.
5315
5316 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5317
5318         PR middle-end/48461
5319         * function.c (emit_use_return_register_into_block): Only define if
5320         HAVE_return.
5321
5322 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5323
5324         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5325
5326 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5327
5328         * config/rx/rx-opts.h: New.
5329         * config/rx/rx.c (rx_cpu_type): Remove.
5330         (rx_handle_option): Don't assert that global structures are in
5331         use.  Access variables via opts pointer.  Defer most handling of
5332         OPT_mint_register_.  Use error_at.
5333         (rx_option_override): Handle deferred OPT_mint_register_ here.
5334         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5335         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5336         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5337         (rx_cpu_types): New Enum and EnumValue entries.
5338         (mint-register=): Use Defer and use Var accordingly.
5339
5340 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5341
5342         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5343         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5344         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5345         Move these...
5346         (debug_free_queue, debug_nesting, symbol_queue_index):
5347         ...and these...
5348         * dbxout.c: ...to here.  Make static.
5349
5350 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5351
5352         * gcse.c (modify_pair): Define.  Define a VEC of it.
5353         (canon_modify_mem_list): Convert to an array of VECs.
5354         (free_insn_expr_list_list): Delete.
5355         (clear_modify_mem_tables): Call VEC_free instead.
5356         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5357         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5358         (canon_list_insert, compute_transp): Likewise.
5359
5360 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5361
5362         PR target/43920
5363         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5364         for size.
5365
5366 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5367
5368         PR target/43920
5369         * function.c (emit_use_return_register_into_block): New function.
5370         (thread_prologue_and_epilogue_insns): Use
5371         emit_use_return_register_into_block.
5372
5373 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5374
5375         PR target/43920
5376         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5377         insn.
5378
5379 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5380
5381         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5382
5383 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5384
5385         * config/arm/arm.md (define_constants for unspec): Replace with
5386         define_c_enum.
5387         (define_constants for unspecv): Replace with define_c_enum.
5388         * config/arm/neon.md (define_constants for unspec): Replace with
5389         define_c_enum.
5390
5391 2011-04-04  Richard Henderson  <rth@redhat.com>
5392
5393         PR bootstrap/48400
5394         * dwarf2out.c (output_line_info): Always emit line info from
5395         at least one section.
5396         (dwarf2out_init): Create text_section_line_info here ...
5397         (set_cur_line_info_table): ... not here.
5398
5399 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5400
5401         PR target/48380
5402         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5403         not called.
5404
5405         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5406
5407 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5408
5409         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5410         (expr_equiv_p): Remove.
5411         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5412         (hash_scan_set): Update call to insert_set_in_table.
5413         (dump_hash_table): Dump <dest, src> pair.
5414         (lookup_set): Simplify.  Lookup <dest, src> pair.
5415         (compute_transp): Remove, fold heavily simplified code into...
5416         (compute_local_properties): ...here.  Expect COMP and TRANSP
5417         unconditionally.
5418         (find_avail_set): Take set directly from struct expr.
5419         (find_bypass-set): Likewise.
5420         (bypass_block): Likewise.
5421         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5422
5423         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5424         checks on form of COND from find_implicit_sets to here.
5425         (find_implicit_sets): Cleanup control flow. Split critical edges
5426         if it exposes implicit sets.  Allocate/resize implicit_sets as
5427         necessary.
5428         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5429         changed something.  Run df_analyze after find_implicit_sets if any
5430         edges were split.  Do not allocate implicit_sets here.
5431
5432         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5433         (gcse_obstack): Renamed to cprop_obstack.
5434         (GNEW, GNEWVEC, GNEWVAR): Remove.
5435         (gmalloc): Remove.
5436         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5437         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5438         (gcse_alloc): Likewise, and rename to cprop_alloc.
5439         (alloc_gcse_men, free_gcse_mem): Remove.
5440         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5441         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5442         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5443
5444         * cprop.c (oprs_not_set_p): Remove.
5445         (mark_set, mark_clobber): Remove.
5446         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5447         (reg_not_set_p): New function.
5448         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5449         (cprop_insn): Likewise.
5450         (cprop_jump): Use FOR_EACH_EDGE.
5451
5452 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5453
5454         PR bootstrap/48403
5455         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5456         (rank_for_schedule): Use scheduled_insns vector instead of
5457         last_scheduled_insn.
5458         (ok_for_early_queue_removal): Likewise.
5459         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5460         we have a dbg_cnt.
5461         (choose_ready): Likewise.
5462         (commit_schedule): Use VEC_iterate.
5463         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5464         a dbg_cnt, use it and ensure the first insn is in the ready list.
5465         (haifa_sched_init): Allocate scheduled_insns.
5466         (sched_extend_ready_list): Don't allocate it; reserve space.
5467         (haifa_sched_finish): Free it.
5468
5469 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5470
5471         * optc-gen.awk: Always remove type from Variable entry before
5472         recording in var_seen.
5473
5474 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5475
5476         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5477         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5478         call to tidy_fallthru_edges.
5479
5480 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5481
5482         * doc/options.texi (ToLower): Document.
5483         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5484         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5485         * opts.h (cl_option): Add cl_tolower field.
5486         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5487         arguments with lowercase strings.
5488         * config/rx/rx.opt (mcpu=): Add ToLower.
5489         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5490         argument.
5491
5492 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5493
5494         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5495
5496 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5497
5498         * config/vax/vax.c: Include reload.h.
5499
5500 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5501
5502         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5503         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5504         (sparc_preferred_reload_class): New function.
5505
5506 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5507
5508         PR debug/48401
5509         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5510         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5511
5512 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5513
5514         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5515         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5516
5517 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5518
5519         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5520         (ASM_OUTPUT_ALIGNED_BSS): Define.
5521
5522 2011-04-03  Michael Matz  <matz@suse.de>
5523
5524         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5525         and next_slot members.
5526         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5527         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5528         (lto_streamer_cache_append): Declare.
5529         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5530         unsigned index, remove offset parameter, ensure that we append
5531         or update existing entries.
5532         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5533         parameter, update next_slot for append.
5534         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5535         parameter.
5536         (lto_streamer_cache_insert_at): Likewise.
5537         (lto_streamer_cache_append): New function.
5538         (lto_streamer_cache_lookup): Use unsigned index.
5539         (lto_streamer_cache_get): Likewise.
5540         (lto_record_common_node): Don't test tree_node_can_be_shared.
5541         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5542         (lto_streamer_cache_delete): Don't free offsets member.
5543         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5544         (lto_output_string_with_length): Use lto_output_data_stream.
5545         (lto_output_tree_header): Remove ix parameter, don't write it.
5546         (lto_output_builtin_tree): Likewise.
5547         (lto_write_tree): Adjust callers to above, don't track and write
5548         offset, write unsigned index.
5549         (output_unreferenced_globals): Don't emit all global vars.
5550         (write_global_references): Use unsigned indices.
5551         (lto_output_decl_state_refs): Likewise.
5552         (write_symbol): Likewise.
5553         * lto-streamer-in.c (lto_input_chain): Move earlier.
5554         (input_function): Use unsigned index.
5555         (input_alias_pairs): Don't read and then ignore all global vars.
5556         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5557         don't pass it back, use lto_streamer_cache_append.
5558         (lto_register_var_decl_in_symtab): Use unsigned index.
5559         (lto_register_function_decl_in_symtab): Likewise.
5560         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5561         index.
5562         (lto_get_builtin_tree): Don't read index, use
5563         lto_streamer_cache_append.
5564         (lto_read_tree): Adjust call to lto_materialize_tree.
5565
5566         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5567         don't use function calls in arguments to MIN.
5568
5569         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5570         twice.
5571
5572         * gimple.c (gimple_type_leader_entry): Mark deletable.
5573
5574 2011-04-03  Alan Modra  <amodra@gmail.com>
5575
5576         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5577
5578 2011-04-03  Michael Matz  <matz@suse.de>
5579
5580         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5581         an integer.
5582         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5583
5584 2011-04-03  Michael Matz  <matz@suse.de>
5585
5586         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5587         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5588         without function context.
5589         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5590         current_function_decl and cfun.
5591
5592 2011-04-03  Michael Matz  <matz@suse.de>
5593
5594         * tree.c (decl_init_priority_insert): Don't create entry for
5595         default priority.
5596         (decl_fini_priority_insert): Ditto.
5597         (fields_compatible_p, find_compatible_field): Remove.
5598         * tree.h (fields_compatible_p, find_compatible_field): Remove.
5599         * gimple.c (gimple_compare_field_offset): Adjust block comment.
5600
5601 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5602
5603         * combine.c (try_combine): Remove useless local variable.
5604
5605 2011-04-03  Richard Guenther  <rguenther@suse.de>
5606             Ira Rosen  <ira.rosen@linaro.org>
5607
5608         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5609         non-variable offsets and compare the remaining bases of the two
5610         accesses instead of looking for exact same data-ref.
5611
5612 2011-04-02  Kai Tietz  <ktietz@redhat.com>
5613
5614         PR target/48416
5615         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5616
5617         * i386.c (ix86_is_msabi_thiscall): New helper function.
5618         (ix86_is_type_thiscall): New helper function.
5619         (ix86_comp_type_attributes): Handle thiscall for method-functions
5620         special.
5621         (init_cumulative_args): Likewise.
5622         (find_drap_reg): Likewise.
5623         (ix86_static_chain): Likewise.
5624         (x86_this_parameter): Likewise.
5625         (x86_output_mi_thunk): Likewise.
5626
5627 2011-04-01  Olivier Hainque  <hainque@adacore.com>
5628             Nicolas Setton  <setton@adacore.com>
5629             Eric Botcazou  <ebotcazou@adacore.com>
5630
5631         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5632         (add_gnat_descriptive_type_attribute): New function.
5633         (gen_array_type_die): Call it.
5634         (gen_enumeration_type_die): Likewise.
5635         (gen_struct_or_union_type_die): Likewise.
5636         (modified_type_die): Likewise.
5637         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5638         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5639         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5640
5641 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5642
5643         PR bootstrap/48148
5644         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5645         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5646
5647         Revert:
5648         2011-03-17  Richard Guenther  <rguenther@suse.de>
5649
5650         PR bootstrap/48148
5651         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5652         origin for decls in other ltrans units.
5653         (input_varpool_node): Likewise.
5654
5655 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5656
5657         PR middle-end/48335
5658         * expr.c (expand_assignment): Handle all possibilities
5659         if TO_RTX is CONCAT.
5660         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5661         (store_split_bit_field): If SUBREG_REG (op0) or
5662         op0 itself has smaller mode than word, return it
5663         for offset 0 and const0_rtx for out-of-bounds stores.
5664         If word is const0_rtx, skip it.
5665
5666 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
5667
5668         * config/h8300/h8300.c (print_operand_address): Rename to...
5669         (h8300_print_operand_address): ...this. Make static. Adjust comments.
5670         Call h8300_print_operand and h8300_print_operand_address instead of
5671         print_operand and print_operand_address. Declare.
5672         (print_operand): Renake to...
5673         (h8300_print_operand): ...this. Make static. Adjust comments.
5674         Call h8300_print_operand instead of print_operand. Declare.
5675         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5676         (h8300_register_move_cost): Likewise.
5677         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5678         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5679         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5680         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5681         * config/h8300/h8300-protos.h (print_operand): Delete.
5682         (print_operand_address): Delete.
5683
5684 2011-04-01  Richard Henderson  <rth@redhat.com>
5685
5686         PR 48400
5687         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5688         in strict mode before dwarf4.  Re-order tests to early out
5689         before switching sections.
5690
5691 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
5692
5693         * config/h8300/constraints.md: New file.
5694         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
5695         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5696         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5697         * config/h8300/predicates.md (bit_operand): Likewise.
5698         (incdec_operand): Use satisfies_constraint_M and
5699         satisfies_constraint_O.  Don't use C code block.
5700         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5701         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5702         (compute_mov_length): Use satisfies_constraint_G.
5703         (fix_bit_operand): Use satisfies_constraint_U.
5704         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5705         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5706         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5707         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5708         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5709         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5710         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5711         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5712         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5713         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5714         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5715         (EXTRA_MEMORY_CONSTRAINT): Delete.
5716
5717 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
5718             Michael Meissner  <meissner@linux.vnet.ibm.com>
5719
5720         PR target/48262
5721         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5722         operands, as per the specifications.
5723
5724         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5725         (vec_extract_evenv4sf): Ditto.
5726         (vec_extract_evenv8hi): Ditto.
5727         (vec_extract_evenv16qi): Ditto.
5728         (vec_extract_oddv4si): Ditto.
5729
5730 2011-03-31  Mark Wielaard  <mjw@redhat.com>
5731
5732         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5733         high_pc attribute if the CU has no associated code. Only output
5734         DW_AT_entry_pc for CU if not generating strict dwarf and
5735         dwarf_version < 4.
5736
5737 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
5738
5739         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5740         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5741         out of ...
5742         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5743         * final.c (final_start_function): Call the new function rather
5744         than using a NULL argument for dwarf2out_frame_debug.
5745
5746         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5747         that contains the prologue.
5748
5749         * haifa-sched.c (queue_insn): New arg REASON.  All callers
5750         changed.  Print it in debugging output.
5751
5752         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5753
5754         * sched-ebb.c (begin_schedule_ready): Remove second argument.
5755         Split most of the code into...
5756         (begin_move_insn): ... here.  New function.
5757         (ebb_sched_info): Add a pointer to it.
5758         * haifa-sched.c (scheduled_insns): New static variable.
5759         (sched_extend_ready_list): Allocate it.
5760         (schedule_block): Use it to record the order of scheduled insns.
5761         Perform RTL changes to move insns only after all scheduling
5762         decisions have been made.
5763         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5764         begin_move_insn field.
5765         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5766         * sched-int.h (struct haifa_sched_info): Remove second argument
5767         from begin_schedule_ready hook.  Add new member begin_move_insn.
5768         * sched-rgn.c (begin_schedule_ready): Remove second argument.
5769         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5770
5771         * haifa-sched.c (prune_ready_list): New function, broken out of
5772         schedule_block.
5773         (schedule_block): Use it.
5774
5775 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5776
5777         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5778
5779 2011-04-01  Kai Tietz  <ktietz@redhat.com>
5780
5781         * config.gcc (*-*-mingw*): Allow as option the
5782         posix threading model.
5783         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
5784         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5785         definition.
5786         (CPP_SPEC): Add pthread/no-pthread handling.
5787         (LIB_SPEC): Likewise.
5788         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5789         (LIB_SPEC): Likewise.
5790         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5791         flag to pass -pthread option for shared libgcc build.
5792         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5793         for shared libgcc build.
5794         * config/i386/t-mingw-pthread: New file.
5795         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5796         New define to enable use of library pthread by default.
5797         * config/i386/mingw.opt (pthread): New driver option.
5798         (no-pthread): New driver option.
5799         * config/i386/cygming.opt: Make sure trailing empty line is retained.
5800         * config/i386/mingw-w64.opt: Likewise.
5801
5802 2011-04-01  Gary Funck <gary@intrepid.com>
5803
5804         * c-decl.c (grokdeclarator): Fix formatting.
5805
5806 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5807
5808         * expr.c (emit_block_move_via_movmem): Use n_generator_args
5809         instead of n_operands.
5810         (set_storage_via_setmem): Likewise.
5811         * optabs.c (maybe_gen_insn): Likewise.
5812         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5813         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5814         (mips_expand_builtin_direct): Likewise.
5815         * config/spu/spu.c (expand_builtin_args): Likewise.
5816
5817 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5818
5819         * recog.h (insn_data_d): Add n_generator_args.
5820         * genoutput.c (data): Likewise.
5821         (output_insn_data): Print it.
5822         (max_opno, num_dups): Delete.
5823         (scan_operands): Just fill in "d->operand[...]".
5824         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5825
5826 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5827
5828         * gensupport.h (pattern_stats): New structure.
5829         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5830         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5831         (max_operand_1, max_operand_vec): Delete.
5832         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5833
5834 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
5835
5836         * emit-rtl.c (emit_pattern_after_setloc): New function.
5837         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5838         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5839         (emit_pattern_after): New function.
5840         (emit_insn_after, emit_jump_insn_after): Call it.
5841         (emit_call_insn_after, emit_debug_insn_after): Likewise.
5842         (emit_pattern_before_setloc): New function.
5843         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5844         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5845         Likewise.
5846         (emit_pattern_before): New function.
5847         (emit_insn_before, emit_jump_insn_before): Call it.
5848         (emit_call_insn_before, emit_debug_insn_before): Likewise.
5849
5850 2011-03-31  Richard Henderson  <rth@redhat.com>
5851
5852         * dwarf2out.c (dw_separate_line_info_ref): Remove.
5853         (dw_separate_line_info_entry): Remove.
5854         (enum dw_line_info_opcode): New.
5855         (dw_line_info_entry): Use it.
5856         (dw_line_info_table, dw_line_info_table_p): New.
5857         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5858         (line_info_table, line_info_label_num): Remove.
5859         (line_info_table_in_use): Remove.
5860         (separate_line_info_table): Remove.
5861         (separate_line_info_table_allocated): Remove.
5862         (separate_line_info_table_in_use): Remove.
5863         (LINE_INFO_TABLE_INCREMENT): Remove.
5864         (line_info_label_num): New.
5865         (cur_line_info_table): New.
5866         (text_section_line_info, cold_text_section_line_info): New.
5867         (separate_line_info): New.
5868         (SEPARATE_LINE_CODE_LABEL): Remove.
5869         (print_dwarf_line_table): Remove.
5870         (debug_dwarf): Don't dump it.
5871         (output_one_line_info_table): New.
5872         (output_line_info): Use it.
5873         (new_line_info_table): New.
5874         (set_cur_line_info_table): New.
5875         (dwarf2out_switch_text_section): Use it.
5876         (dwarf2out_begin_function): Likewise.
5877         (push_dw_line_info_entry): New.
5878         (dwarf2out_source_line): Rewrite for new line info tables.
5879         (dwarf2out_init): Remove dead initailizations.
5880
5881 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5882
5883         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
5884         various flags.
5885         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5886         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5887         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5888         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5889         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5890         * opt-functions.awk (flag_init, switch_bit_fields): New.
5891         (switch_flags): Don't handle flags moved to bit-fields.  Don't
5892         generate CL_MISSING_OK or CL_SAVE.
5893         * optc-gen.awk: Update to generate bit-field output as well as
5894         flags field.
5895         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5896         bit-field instead of CL_REJECT_DRIVER flag.
5897         * opts-common.c (generate_canonical_option,
5898         decode_cmdline_option): Use bit-fields instead of CL_* flags.
5899         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5900         instead of CL_REJECT_NEGATIVE flag.
5901         * toplev.c (print_switch_values): Use cl_report bit-field instead
5902         of CL_REPORT flag.
5903
5904 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5905
5906         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5907         a zero minimum index only if it is redundant.
5908
5909 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5910
5911         PR rtl-optimization/48381
5912         * ira-color.c (assign_hard_reg): Use hard reg set intersection
5913         instead of ira_class_hard_reg_index for calculating conflicting
5914         hard registers.
5915
5916 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
5917
5918         * cprop.c: Clean up hash table building.
5919         (reg_avail_info): Remove.
5920         (oprs_available_p): Remove.
5921         (record_last_reg_set_info): Remove.
5922         (record_last_set_info): Remove.
5923         (reg_available_p): New function.
5924         (gcse_constant_p): Do not treat unfolded conditions as constants.
5925         (make_set_regs_unavailable): New function.
5926         (hash_scan_set): Simplify with new reg_available_p.
5927         (compute_hash_table_work): Traverse insns stream only once.
5928         Do not compute reg_avail_info. Traverse insns in reverse order.
5929         Record implicit sets after recording explicit sets from the block.
5930
5931 2011-03-31  Michael Matz  <matz@suse.de>
5932
5933         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5934
5935 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
5936
5937         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5938         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5939         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5940         (h8300_mode_dependent_address_p): New function.
5941         (h8300_get_index): Make static.
5942
5943 2011-03-31  Jeff Law  <law@redhat.com>
5944
5945         * reload1.c (elimination_effects): Fix typo in recent change.
5946
5947         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5948         typo potentially leading to null pointer dereference.
5949
5950         * caller-save.c (new_saved_hard_reg): Eliminate return value.
5951         (setup_save_areas): Corresponding changes to avoid useless
5952         assignments.
5953
5954         * jump.c (reversed_comparison_code_parts): Avoid successive return
5955         statements when REVERSE_CONDITION is defined.
5956
5957         * expr.c (expand_assignment): Avoid useless assignments.
5958         (expand_expr_real_1): Likewise.
5959         (expand_expr_real_2): Avoid useless statements.
5960
5961         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5962
5963         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5964
5965         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5966         statements.
5967
5968         * stmt.c (expand_expr_stmt): Avoid useless assignment.
5969
5970 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5971
5972         PR target/47109
5973         * doc/tm.texi.in (TARGET_VERSION): Remove.
5974         * doc/tm.texi: Regenerate.
5975         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5976         * collect2.c (main): Don't use TARGET_VERSION.
5977         * mips-tdump.c (main): Don't use TARGET_VERSION.
5978         * mips-tfile.c (main): Don't use TARGET_VERSION.
5979         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5980         * config/rs6000/vxworksae.h: Remove.
5981         * config/alpha/alpha.h (TARGET_VERSION): Remove.
5982         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5983         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5984         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5985         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5986         * config/arm/arm.h (TARGET_VERSION): Remove.
5987         * config/arm/coff.h (TARGET_VERSION): Remove.
5988         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5989         * config/arm/elf.h (TARGET_VERSION): Remove.
5990         * config/arm/freebsd.h (TARGET_VERSION): Remove.
5991         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5992         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5993         * config/arm/pe.h (TARGET_VERSION): Remove.
5994         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5995         * config/arm/semi.h (TARGET_VERSION): Remove.
5996         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5997         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5998         * config/arm/vxworks.h (TARGET_VERSION): Remove.
5999         * config/avr/avr.h (TARGET_VERSION): Remove.
6000         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6001         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6002         * config/frv/frv.h (TARGET_VERSION): Remove.
6003         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6004         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6005         * config/i386/darwin.h (TARGET_VERSION): Remove.
6006         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6007         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6008         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6009         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6010         * config/i386/gnu.h (TARGET_VERSION): Remove.
6011         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6012         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6013         * config/i386/linux.h (TARGET_VERSION): Remove.
6014         * config/i386/linux64.h (TARGET_VERSION): Remove.
6015         * config/i386/lynx.h (TARGET_VERSION): Remove.
6016         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6017         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6018         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6019         * config/i386/netware.h (TARGET_VERSION): Remove.
6020         * config/i386/nto.h (TARGET_VERSION): Remove.
6021         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6022         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6023         * config/ia64/elf.h (TARGET_VERSION): Remove.
6024         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6025         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6026         * config/ia64/linux.h (TARGET_VERSION): Remove.
6027         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6028         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6029         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6030         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6031         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6032         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6033         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6034         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6035         * config/m68k/linux.h (TARGET_VERSION): Remove.
6036         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6037         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6038         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6039         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6040         * config/mep/mep.h (TARGET_VERSION): Remove.
6041         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6042         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6043         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6044         * config/mips/linux.h (TARGET_VERSION): Remove.
6045         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6046         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6047         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6048         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6049         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6050         * config/pa/pa.h (TARGET_VERSION): Remove.
6051         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6052         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6053         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6054         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6055         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6056         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6057         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6058         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6059         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6060         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6061         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6062         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6063         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6064         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6065         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6066         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6067         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6068         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6069         * config/s390/linux.h (TARGET_VERSION): Remove.
6070         * config/s390/s390.h (TARGET_VERSION): Remove.
6071         * config/s390/tpf.h (TARGET_VERSION): Remove.
6072         * config/score/score.h (TARGET_VERSION): Remove.
6073         * config/sh/linux.h (TARGET_VERSION): Remove.
6074         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6075         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6076         * config/sh/sh.h (TARGET_VERSION): Remove.
6077         * config/sh/sh64.h (TARGET_VERSION): Remove.
6078         * config/sh/superh.h (TARGET_VERSION): Remove.
6079         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6080         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6081         * config/sparc/linux.h (TARGET_VERSION): Remove.
6082         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6083         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6084         TARGET_NAME32, TARGET_NAME): Remove.
6085         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6086         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6087         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6088         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6089         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6090         * config/spu/spu.h (TARGET_VERSION): Remove.
6091         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6092         * config/v850/v850.h (TARGET_VERSION): Remove.
6093         * config/vax/linux.h (TARGET_VERSION): Remove.
6094         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6095         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6096         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6097
6098 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6099
6100         PR target/48142
6101         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6102         frame-related from frame-unrelated adjustments to the stack pointer.
6103
6104 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6105
6106         * common.opt (fdebug-types-section): Move earlier.
6107         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6108
6109 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6110
6111         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6112         var.
6113
6114 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6115
6116         * tree.h (CASE_CHAIN): Define.
6117         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6118         (gimple_redirect_edge_and_branch): Likewise.
6119
6120 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6121
6122         PR middle-end/48367
6123         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6124         calculation.
6125
6126 2011-03-30  Jeff Law  <law@redhat.com>
6127
6128         * PR bootstrap/48371
6129         * reload1.c (reload): Fix botch in last change.
6130
6131         * reload.h (struct reload): Fix typo introduced in last change.
6132
6133 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6134
6135         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6136         Undocumented.  Remove help text.
6137         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6138         -mhard-float.
6139
6140 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6141
6142         * doc/options.texi (NegativeAlias): Document.
6143         (Alias): Mention NegativeAlias.
6144         * opt-functions.awk: Handle NegativeAlias.
6145         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6146         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6147         * opts.h (CL_NEGATIVE_ALIAS): Define.
6148         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6149         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6150         OPT_mspe_.
6151         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6152         Alias entries.
6153         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6154         mno-spe and mno-isel instead of mspe=no and -misel=no.
6155
6156 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6157
6158         * common.opt (fdebug-types-section): New flag.
6159         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6160         * dwarf2out.c (use_debug_types): New define.
6161         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6162         (print_die): Guard output of type unit signatures using
6163         use_debug_types.
6164         (build_abbrev_table): Replace assert of dwarf_version >= 4
6165         with assert on use_debug_types.
6166         (size_of_die): Likewise.
6167         (unmark_dies): Likewise.
6168         (value_format): Decide AT_ref_external form on use_debug_types.
6169         (output_die): Replace dwarf_version version check guard with
6170         use_debug_types where appropriate.
6171         (modified_type_die): Likewise.
6172         (gen_reference_type_die): Likewise.
6173         (dwarf2out_start_source_file): Likewise.
6174         (dwarf2out_end_source_file): Likewise.
6175         (prune_unused_types_walk_attribs): Likewise.
6176         (dwarf2out_finish): Likewise.
6177
6178 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6179
6180         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6181
6182 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6183
6184         PR rtl-optimization/48332
6185         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6186         mode of input operand N and modeN to its actual mode.
6187
6188 2011-03-30  Jeff Law  <law@redhat.com>
6189
6190         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6191         define accessor macro.
6192         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6193         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6194         (reg_equiv_init): Likewise.
6195         (reg_equivs_size): New variable.
6196         (reg_equiv_init_size): Remove.
6197         (allocate_initial_values): Move prototype to here from....
6198         * integrate.h (allocate_initial_values): Remove prototype.
6199         * integrate.c: Include reload.h.
6200         (allocate_initial_values): Corresponding changes.
6201         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6202         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6203         (update_equiv_regs): Corresponding changes.
6204         (ira): Corresponding changes.
6205         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6206         (push_secondary_reload): Corresponding changes.
6207         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6208         (make_memloc, find_reloads_address): Corresponding changes.
6209         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6210         (find_reloads_address_1): Corresponding changes.
6211         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6212         (refers_to_regno_for_reload_p): Corresponding changes.
6213         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6214         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6215         * reload1.c: Include ggc.h.
6216         (grow_reg_equivs): New function.
6217         (replace_pseudos_in, reload): Corresponding changes.
6218         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6219         (eliminate_regs_1, elimination_effects): Corresponding changes.
6220         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6221         (delete_output_reload): Likewise.
6222         * caller-save.c (mark_referenced_regs): Corresponding changes.
6223         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6224         * frv/predicates.md (frv_load_operand): Corresponding changes.
6225         * microblaze/microblaze.c (double_memory_operand): Corresponding
6226         changes.
6227         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6228         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6229         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6230         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6231         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6232         changes.
6233         * pa/pa.c (emit_move_sequence): Corresponding changes.
6234         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6235
6236 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6237
6238         PR target/47551
6239         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6240         structure modes.  Don't check neon_vector_mem_operand for
6241         vector or structure modes.
6242
6243 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6244             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6245
6246         PR target/43590
6247         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6248         operand 1 and reshuffle the operands to match.
6249         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6250
6251 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6252
6253         PR driver/48208
6254         * config/c.opt (F): Added 'Driver' to -F option.
6255
6256         PR driver/48260
6257         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6258           handler function.
6259         * config/darwin.opt: Added '-arch' option.
6260
6261 2011-03-30  Nick Clifton  <nickc@redhat.com>
6262
6263         * config/rx/rx.md: Add peepholes and patterns to combine
6264         extending loads and simple arithmetic instructions.
6265         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6266         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6267         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6268         modes to use pre-decrement and post-increment addressing.
6269         (rx_is_restricted_memory_address): Add range checking of REG+INT
6270         addresses.
6271         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6272         (rx_memory_move_cost): Adjust cost of stores.
6273         (rx_adjust_insn_length): New function.
6274
6275 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6276
6277         PR c/48305
6278         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6279         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6280         matching arg00/arg01 types.
6281
6282 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6283
6284         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6285         last_location to UNKNOWN_LOCATION.
6286
6287 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6288
6289         PR target/48349
6290         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6291         FLOAT_SSE_REGS.
6292
6293 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6294             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6295
6296         PR bootstrap/48337
6297         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6298         Init(PROCESSOR_V7).
6299         (sparc_cpu): Likewise.
6300         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6301         PROCESSOR_V7.
6302
6303 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6304
6305         PR target/48336
6306         PR middle-end/48342
6307         PR rtl-optimization/48345
6308         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6309         hard regs for given mode from profitable regs when doing secondary
6310         allocation.
6311
6312 2011-03-29  Jeff Law  <law@redhat.com>
6313
6314         PR bootstrap/48327
6315         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6316         do_not_duplicate field.
6317         (lookup_redirection_data): Corresponding changes.
6318         (create_duplicates): Always create a template block.
6319         (redirect_edges): Remove code which reused the original block
6320         when it was going to become unreachable code.
6321         (thread_block): Don't set do_not_duplicate field.
6322
6323 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6324
6325         * lto-opts.c (register_user_option_p, lto_register_user_option):
6326         Make type argument unsigned.
6327         * lto-streamer.h (lto_register_user_option): Make type argument
6328         unsigned.
6329         * opth-gen.awk: Make CL_* macros unsigned.
6330         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6331         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6332         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6333         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6334         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6335         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6336         (find_opt): Make lang_mask argument unsigned.
6337
6338 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6339
6340         PR rtl-optimization/48331
6341         PR rtl-optimization/48334
6342         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6343         for any used algorithm.
6344
6345 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6346
6347         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6348         to parent_max.
6349
6350 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6351
6352         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6353         (alpha_option_override): Don't set alpha_sr_alias_set.
6354         (emit_frame_store_1): Use gen_frame_mem rather than calling
6355         set_mem_alias_set.
6356         (alpha_expand_epilogue): Ditto.
6357
6358 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6359
6360         PR tree-optimization/48290
6361         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6362         vectorization, check that relevant phis in the basic block after
6363         the inner loop are really inner loop's exit phis.
6364
6365 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6366
6367         PR debug/48190
6368         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6369         (cached_dw_loc_list_def): New structure.
6370         (cached_dw_loc_list): New typedef.
6371         (cached_dw_loc_list_table): New variable.
6372         (cached_dw_loc_list_table_hash): New function.
6373         (cached_dw_loc_list_table_eq): Likewise.
6374         (add_location_or_const_value_attribute): Take a bool cache_p.
6375         Cache the list when the parameter is true.
6376         (gen_formal_parameter_die): Update caller.
6377         (gen_variable_die): Likewise.
6378         (dwarf2out_finish): Likewise.
6379         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6380         while generating debug info for the decl.
6381         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6382         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6383         (resolve_addr): Cache the result of resolving a chain of
6384         location lists.
6385
6386 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6387
6388         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6389         conflict object hard regset nodes have intersecting hard reg sets.
6390
6391         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6392         after regstat_init_n_sets_and_refs.
6393
6394         * ira.c: Add more comments at the top.
6395         (setup_stack_reg_pressure_class, setup_pressure_classes):
6396         Add comments how we compute the register pressure classes.
6397         (setup_allocno_and_important_classes): Add more comments.
6398         (setup_class_translate_array, reorder_important_classes)
6399         (setup_reg_class_relations): Add comments.
6400
6401         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6402         start of the file.
6403
6404         * ira-color.c: Add 2011 to the Copyright line.
6405         (assign_hard_reg):  Add more comments.
6406         (improve_allocation): Ditto.
6407
6408         * ira-costs.c: Add 2011 to the Copyright line.
6409         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6410         comments.
6411         (setup_regno_cost_classes_by_mode): Ditto.
6412
6413         Initial patches from ira-improv branch:
6414
6415         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6416
6417         * ira-build.c (ira_create_object): Remove initialization of
6418         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6419         (ira_create_allocno): Remove initialization of
6420         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6421         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6422         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6423         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6424         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6425         Initialize ALLOCNO_ADD_DATA.
6426         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6427         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6428         ALLOCNO_REG.
6429         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6430         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6431
6432         * ira.c (ira_reallocate): Remove.
6433         (setup_pressure_classes): Call
6434         ira_init_register_move_cost_if_necessary.  Use
6435         ira_register_move_cost instead of ira_get_register_move_cost.
6436         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6437         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6438
6439         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6440         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6441         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6442         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6443         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6444         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6445         Fix formatting.
6446         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6447         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6448         (struct allocno_color_data): New.
6449         (allocno_color_data_t): New typedef.
6450         (allocno_color_data): New definition.
6451         (ALLOCNO_COLOR_DATA): New macro.
6452         (struct object_color_data): New.
6453         (object_color_data_t): New typedef.
6454         (object_color_data): New definition.
6455         (OBJECT_COLOR_DATA): New macro.
6456         (update_copy_costs, calculate_allocno_spill_cost): Call
6457         ira_init_register_move_cost_if_necessary.  Use
6458         ira_register_move_cost instead of ira_get_register_move_cost.
6459         (move_spill_restore, update_curr_costs): Ditto.
6460         (allocno_spill_priority): Make it inline.
6461         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6462         (struct coalesce_data, coalesce_data_t): New.
6463         (allocno_coalesce_data): New definition.
6464         (ALLOCNO_COALESCE_DATA): New macro.
6465         (merge_allocnos, coalesced_allocno_conflict_p): Use
6466         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6467         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6468         (coalesce_allocnos): Ditto.
6469         (setup_coalesced_allocno_costs_and_nums): Ditto.
6470         (collect_spilled_coalesced_allocnos): Ditto.
6471         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6472         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6473         (coalesce_spill_slots): Ditto.
6474         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6475         free allocno_coalesce_data.
6476
6477         * ira-conflicts.c: Fix formatting.
6478         (process_regs_for_copy): Call
6479         ira_init_register_move_cost_if_necessary.  Use
6480         ira_register_move_cost instead of ira_get_register_move_cost.
6481         (build_object_conflicts): Optimize.
6482
6483         * ira-costs.c (record_reg_classes): Optimize.  Call
6484         ira_init_register_move_cost_if_necessary.  Use
6485         ira_register_move_cost, ira_may_move_in_cost, and
6486         ira_may_move_out_cost instead of ira_get_register_move_cost and
6487         ira_get_may_move_cost.
6488         (record_address_regs): Ditto.
6489         (scan_one_insn): Optimize.
6490         (find_costs_and_classes): Optimize.
6491         (process_bb_node_for_hard_reg_moves): Call
6492         ira_init_register_move_cost_if_necessary.  Use
6493         ira_register_move_cost instead of ira_get_register_move_cost.
6494
6495         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6496         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6497         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6498         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6499         definitions.
6500         (ira_initiate_emit_data, ira_finish_emit_data)
6501         (create_new_allocno): New functions.
6502         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6503         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6504         Use ira_register_move_cost instead of ira_get_register_move_cost.
6505
6506         * ira-int.h: Fix some comments.
6507         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6508         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6509         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6510         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6511         add_data.
6512         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6513         bitfield after mode.  Make hard_regno a short int.  Make
6514         hard_regno short.  Remove first_coalesced_allocno and
6515         next_coalesced_allocno.  Move mem_optimized_dest_p,
6516         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6517         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6518         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6519         temp, colorable_p.  Add new member add_data.
6520         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6521         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6522         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6523         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6524         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6525         (ALLOCNO_ADD_DATA): New macro.
6526         (ira_emit_data_t): New typedef.
6527         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6528         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6529         from struct ira_allocno.
6530         (ALLOCNO_EMIT_DATA): New macro.
6531         (ira_allocno_emit_data, allocno_emit_reg): New.
6532         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6533         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6534         (OBJECT_ADD_DATA): New macro.
6535         (ira_reallocate): Remove.
6536         (ira_initiate_emit_data, ira_finish_emit_data): New.
6537         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6538         (ira_init_register_move_cost_if_necessary): New.
6539         (ira_object_conflict_iter_next): Merge into
6540         ira_object_conflict_iter_cond.
6541         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6542
6543         * ira-live.c (process_single_reg_class_operands): Call
6544         ira_init_register_move_cost_if_necessary.  Use
6545         ira_register_move_cost instead of ira_get_register_move_cost.
6546
6547         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6548
6549         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6550
6551         * ira-costs.c: Fix formatting.
6552         (cost_classes, cost_classes_num): Remove.
6553         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6554         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6555         (cost_classes_del, cost_classes_htab): New.
6556         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6557         (initiate_regno_cost_classes, setup_cost_classes): New.
6558         (setup_regno_cost_classes_by_aclass): New.
6559         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6560         (record_reg_classes): Use regno_cost_classes instead of
6561         cost_classes.  Move checking opposite operand up.
6562         (record_address_regs): Use regno_cost_classes
6563         instead of cost_classes.
6564         (scan_one_insn): Ditto.  Use always general register.
6565         (print_allocno_costs): Use regno_cost_classes instead of
6566         cost_classes.
6567         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6568         (find_costs_and_classes): Set up cost classes for each registers.
6569         Use also their mode for this.  Use regno_cost_classes instead of
6570         cost_classes.
6571         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6572         cost_classes.
6573         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6574         (ira_costs, ira_set_pseudo_classes): Call
6575         initiate_regno_cost_classes and finish_regno_cost_classes.
6576
6577         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6578
6579         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6580
6581         * target.def (ira_cover_classes): Remove.
6582
6583         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6584
6585         * doc/tm.texi.in: Ditto.
6586
6587         * ira-conflicts.c: Remove mentioning cover classes from the file.
6588         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6589         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
6590
6591         * targhooks.c (default_ira_cover_classes): Remove.
6592
6593         * targhooks.h (default_ira_cover_classes): Ditto.
6594
6595         * haifa-sched.c: Remove mentioning cover classes from the file.
6596         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6597         ira_pressure_classes and ira_pressure_classes_num instead of
6598         ira_reg_class_cover_size and ira_reg_class_cover.  Use
6599         sched_regno_pressure_class instead of sched_regno_cover_class.
6600         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6601         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6602
6603         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
6604         classes from the file.
6605         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6606         (struct object_hard_regs, struct object_hard_regs_node): New.
6607         (struct ira_object): New members profitable_hard_regs,
6608         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6609         (struct ira_allocno): Rename cover_class to aclass.  Rename
6610         cover_class_cost and updated_cover_class_cost to class_cost and
6611         updated_class_cost.  Remove splay_removed_p and
6612         left_conflict_size.  Add new members colorable_p.
6613         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6614         (ALLOCNO_COLORABLE_P): New macro.
6615         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6616         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6617         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6618         (OBJECT_...): Rename parameter C to O.
6619         (OBJECT_PROFITABLE_HARD_REGS): New macro.
6620         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6621         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6622         (struct target_ira_int): New members x_ira_max_memory_move_cost,
6623         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6624         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6625         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6626         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
6627         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
6628         x_ira_reg_class_subunion.
6629         (ira_max_memory_move_cost, ira_max_register_move_cost)
6630         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6631         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6632         (ira_important_class_nums, ira_reg_class_superunion): New macros.
6633         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6634         (ira_reg_class_union): Rename to ira_reg_class_subunion.
6635         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6636         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6637         (ira_tune_allocno_costs_and_cover_classes): Rename to
6638         ira_tune_allocno_costs.
6639         (ira_debug_hard_regs_forest): New.
6640         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6641         (ira_object_conflict_iter_next): Fix comments.
6642         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6643         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6644         cover_class to aclass.
6645         (ira_allocate_and_accumulate_costs): Ditto.
6646         (ira_allocate_and_set_or_copy_costs): Ditto.
6647
6648         * opts.c (decode_options): Remove ira_cover_class check.
6649
6650         * ira-color.c: Remove mentioning cover classes from the file.  Use
6651         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6652         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6653         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6654         (splay-tree.h): Remove include.
6655         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6656         before copy_freq_compare_func.
6657         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6658         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6659         New definitions.
6660         (hard_regs_roots, hard_regs_node_vec): Ditto.
6661         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6662         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6663         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6664         (create_new_object_hard_regs_node): Ditto.
6665         (add_new_object_hard_regs_node_to_forest): Ditto.
6666         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6667         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6668         Ditto.
6669         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6670         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6671         (remove_unused_object_hard_regs_nodes): Ditto.
6672         (enumerate_object_hard_regs_nodes): Ditto.
6673         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6674         (object_hard_regs_subnode_t): Ditto.
6675         (struct object_hard_regs_subnode): Ditto.
6676         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6677         (setup_object_hard_regs_subnode_index): Ditto.
6678         (get_object_hard_regs_subnodes_num): Ditto.
6679         (form_object_hard_regs_nodes_forest): Ditto.
6680         (finish_object_hard_regs_nodes_tree): Ditto.
6681         (finish_object_hard_regs_nodes_forest): Ditto.
6682         (allocnos_have_intersected_live_ranges_p): Rename to
6683         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6684         (pseudos_have_intersected_live_ranges_p): Rename to
6685         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6686         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6687         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6688         (update_copy_costs): Remove assert.  Skip cost update if the hard
6689         reg does not belong the class.
6690         (assign_hard_reg): Process only profitable hard regs.
6691         (uncolorable_allocnos_num): Make it scalar.
6692         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6693         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6694         and ira_reg_class_max_nregs.
6695         (bucket_allocno_compare_func): Check frequency first.
6696         (sort_bucket): Add compare function as a parameter.
6697         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6698         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6699         (push_allocno_to_stack): Rewrite for checking new allocno
6700         colorability.
6701         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
6702         (push_only_colorable): Pass new parameter to sort_bucket.
6703         (push_allocno_to_spill): Remove.
6704         (allocno_spill_priority_compare): Make it inline and rewrite.
6705         (splay_tree_allocate, splay_tree_free): Remove.
6706         (allocno_spill_sort_compare): New function.
6707         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
6708         build and use splay tree.  Choose first allocno in uncolorable
6709         allocno bucket to spill.  Remove setting spill cost.
6710         (all_conflicting_hard_regs): Remove.
6711         (setup_allocno_available_regs_num): Check only profitable hard
6712         regs.  Print info about hard regs nodes.
6713         (setup_allocno_left_conflicts_size): Remove.
6714         (put_allocno_into_bucket): Don't call
6715         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
6716         (improve_allocation): New.
6717         (color_allocnos): Call setup_profitable_hard_regs,
6718         form_object_hard_regs_nodes_forest, improve_allocation,
6719         finish_object_hard_regs_nodes_forest.  Setup spill cost.
6720         (print_loop_title): Use pressure classes.
6721         (color_allocnso): Ditto.
6722         (do_coloring): Remove allocation and freeing splay_tree_node_pool
6723         and allocnos_for_spilling.
6724         (ira_sort_regnos_for_alter_reg): Don't setup members
6725         {first,next}_coalesced_allocno.
6726         (color): Remove allocating and freeing removed_splay_allocno_vec.
6727         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6728         prohibited_class_mode_regs.
6729
6730         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
6731         formatting.
6732         (update_allocno_pressure_excess_length): Use pressure classes.
6733         (inc_register_pressure, dec_register_pressure): Check for pressure
6734         class.
6735         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6736         pressure class.  Use ira_reg_class_nregs instead of
6737         ira_reg_class_max_nregs.
6738         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6739         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6740         (single_reg_class): Use ira_reg_class_nregs instead of
6741         ira_reg_class_max_nregs.
6742         (process_bb_node_lives): Use pressure classes.
6743
6744         * ira-emit.c: Remove mentioning cover classes from the file.  Use
6745         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6746         (change_loop): Use pressure classes.
6747         (modify_move_list): Call ira_set_allocno_class instead of
6748         ira_set_allocno_cover_class.
6749
6750         * ira-build.c: Remove mentioning cover classes from the file.  Use
6751         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6752         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
6753         ALLOCNO_UPDATED_CLASS_COST instead of
6754         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6755         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6756         (ira_create_allocno): Remove initialization of
6757         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
6758         ALLOCNO_COLORABLE_P.
6759         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6760         Update conflict regs for the objects.
6761         (create_cap_allocno): Remove assert.  Don't propagate
6762         ALLOCNO_AVAILABLE_REGS_NUM.
6763         (ira_free_allocno_costs): New function.
6764         (finish_allocno): Change a part of code into call of
6765         ira_free_allocno_costs.
6766         (low_pressure_loop_node_p): Use pressure classes.
6767         (object_range_compare_func): Don't compare classes.
6768         (setup_min_max_conflict_allocno_ids): Ditto.
6769
6770         * loop-invariant.c: Remove mentioning cover classes from the file.
6771         Use ira_pressure_classes and ira_pressure_classes_num instead of
6772         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
6773         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6774         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6775         Use reg_allocno_class instead of reg_cover_class.
6776         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6777         STACK_REG_COVER_CLASS.
6778         (get_regno_cover_class): Rename to get_regno_pressure_class.
6779         (move_loop_invariants): Initialize and finalize regstat.
6780
6781         * ira.c: Remove mentioning cover classes from the file.  Add
6782         comments about coloring without cover classes.  Use ALLOCNO_CLASS
6783         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6784         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6785         setup_class_subset_and_memory_move_costs.
6786         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6787         (setup_cover_and_important_classes): Rename to
6788         setup_allocno_and_important_classes.
6789         (setup_class_translate_array): New.
6790         (setup_class_translate): Call it for allocno and pressure classes.
6791         (cover_class_order): Rename to allocno_class_order.
6792         (comp_reg_classes_func): Use ira_allocno_class_translate instead
6793         of ira_class_translate.
6794         (reorder_important_classes): Set up ira_important_class_nums.
6795         (setup_reg_class_relations): Set up ira_reg_class_superunion.
6796         (print_class_cover): Rename to print_classes.  Add parameter.
6797         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6798         Print pressure classes too.
6799         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
6800         setup_reg_subclasses.
6801         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6802         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6803         (setup_prohibited_class_mode_regs): Use
6804         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6805         (clarify_prohibited_class_mode_regs): New function.
6806         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6807         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6808         (ira_init_once): Initialize them.
6809         (free_register_move_costs): Process them.
6810         (ira_init): Move calls of find_reg_classes and
6811         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6812         Call clarify_prohibited_class_mode_regs.
6813         (ira_no_alloc_reg): Remove.
6814         (too_high_register_pressure_p): Use pressure classes.
6815
6816         * sched-deps.c: Remove mentioning cover classes from the file.
6817         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6818         ira_pressure_classes and ira_pressure_classes_num instead of
6819         ira_reg_class_cover_size and ira_reg_class_cover.
6820         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6821         sched_regno_pressure_class instead of sched_regno_cover_class.
6822         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
6823         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6824
6825         * ira.h: Add 2010 to Copyright.
6826         (ira_no_alloc_reg): Remove external.
6827         (struct target_ira): Rename x_ira_hard_regno_cover_class,
6828         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6829         x_ira_class_translate to x_ira_hard_regno_allocno_class,
6830         x_ira_allocno_classes_num, x_ira_allocno_classes, and
6831         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
6832         x_ira_pressure_classes, x_ira_pressure_class_translate, and
6833         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
6834         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
6835         x_ira_no_alloc_regs.
6836         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6837         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6838         ira_allocno_classes_num and ira_allocno_classes.
6839         (ira_class_translate): Rename to ira_allocno_class_translate.
6840         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6841         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6842         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6843         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6844         (ira_no_alloc_regs): New.
6845
6846         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
6847         classes from the file.  Use ALLOCNO_CLASS instead of
6848         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
6849         ALLOCNO_COVER_CLASS_COST.
6850         (regno_cover_class): Rename to regno_aclass.
6851         (record_reg_classes): Use ira_reg_class_subunion instead of
6852         ira_reg_class_union.
6853         (record_address_regs): Check overflow.
6854         (scan_one_insn): Ditto.
6855         (print_allocno_costs): Print total mem cost fore regional allocation.
6856         (print_pseudo_costs): Use REG_N_REFS.
6857         (find_costs_and_classes): Use classes intersected with them on the
6858         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
6859         ira_reg_class_union.  Use ira_allocno_class_translate and
6860         regno_aclass instead of ira_class_translate and regno_cover_class.
6861         Modify code for finding regno_aclass.  Setup preferred classes for
6862         the next pass.
6863         (setup_allocno_cover_class_and_costs): Rename to
6864         setup_allocno_class_and_costs.  Use regno_aclass instead of
6865         regno_cover_class.  Use ira_set_allocno_class instead of
6866         ira_set_allocno_cover_class.
6867         (init_costs, finish_costs): Use regno_aclass instead of
6868         regno_cover_class.
6869         (ira_costs): Use setup_allocno_class_and_costs instead of
6870         setup_allocno_cover_class_and_costs.
6871         (ira_tune_allocno_costs_and_cover_classes): Rename to
6872         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
6873         by processing objects.  Use ira_reg_class_max_nregs instead of
6874         ira_reg_class_nregs.
6875
6876         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6877
6878         * sched-int.h: Remove mentioning cover classes from the file.
6879         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6880
6881         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
6882         classes from the file.
6883         (struct reg_pref): Rename coverclass into allocnoclass.
6884         (reg_cover_class): Rename to reg_allocno_class.
6885
6886         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6887
6888         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6889
6890         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6891
6892         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6893
6894         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6895
6896         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6897
6898         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6899
6900         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6901
6902         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6903
6904         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6905
6906         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6907         (i386_ira_cover_classes): Ditto.
6908
6909         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6910
6911         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6912
6913         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6914
6915         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6916
6917         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6918
6919         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6920
6921         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6922         (mips_ira_cover_classes): Ditto.
6923
6924         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6925
6926         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6927
6928         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6929
6930         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6931
6932         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6933
6934         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6935         (IRA_COVER_CLASSES_VSX): Ditto.
6936
6937         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6938         (rs6000_ira_cover_classes): Ditto.
6939
6940         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6941
6942         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6943
6944         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6945
6946         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6947
6948         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6949
6950         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6951
6952         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6953
6954         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6955
6956         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6957
6958         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6959
6960 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
6961
6962         PR debug/48253
6963         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6964         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6965         dw_fde_unlikely_section_end_label, cold_in_std_section,
6966         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6967         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6968         fields.
6969         (output_fde): Use dw_fde_second_{begin,end} if second is
6970         true, otherwise dw_fde_{begin,end}.
6971         (output_call_frame_info): Test dw_fde_second_begin != NULL
6972         instead of dw_fde_switched_sections.
6973         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6974         fields, initialize new fields.  Initialize in_std_section
6975         unconditionally from the first partition.
6976         (dwarf2out_end_epilogue): Don't override dw_fde_end when
6977         dw_fde_second_begin is non-NULL.
6978         (dwarf2out_switch_text_section): Stop initializing removed
6979         dw_fde_struct fields, initialize new fields, initialize
6980         also dw_fde_end here.  Set dw_fde_switch_cfi even when
6981         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
6982         (struct var_loc_list_def): Add last_before_switch field.
6983         (arange_table, arange_table_allocated, arange_table_in_use,
6984         ARANGE_TABLE_INCREMENT, add_arange): Removed.
6985         (size_of_aranges): Count !in_std_section and !second_in_std_section
6986         hunks in fdes, instead of looking at arange_table_in_use.
6987         (output_aranges): Add aranges_length argument, don't call
6988         size_of_aranges here.  Instead of using aranges_table*
6989         emit ranges for fdes when !in_std_section resp.
6990         !second_in_std_section.
6991         (dw_loc_list): Break ranges crossing section switch.
6992         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
6993         use dw_fde_second_end instead of dw_fde_end as end of last range.
6994         (gen_subprogram_die): Don't call add_arange.  Use
6995         dw_fde_{begin,end} for first partition and if switched
6996         section dw_fde_second_{begin,end} for the second.
6997         (var_location_switch_text_section_1,
6998         var_location_switch_text_section): New functions.
6999         (dwarf2out_begin_function): Initialize cold_text_section even
7000         when function_section () isn't text_section.
7001         (prune_unused_types): Don't walk arange_table.
7002         (dwarf2out_finish): Don't needlessly test
7003         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7004         If info_section_emitted, call size_of_aranges and if it indicates
7005         non-empty .debug_aranges, call output_aranges with the computed
7006         size.  Stop using removed dw_fde_struct fields, use
7007         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7008         for second.
7009
7010         PR debug/48203
7011         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7012         create ENTRY_VALUE if incoming or address of incoming's MEM
7013         is a hard REG.
7014         * dwarf2out.c (mem_loc_descriptor): Don't emit
7015         DW_OP_GNU_entry_value of DW_OP_fbreg.
7016         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7017         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7018         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7019         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7020         ENTRY_VALUE_EXPs.
7021         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7022         is a REG_P or MEM_P with REG_P address, compute hash directly
7023         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7024         (preserve_only_constants): Don't clear VALUES forwaring
7025         ENTRY_VALUE to some other VALUE.
7026
7027 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7028
7029         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7030         instead of GEN_INT.
7031
7032 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7033
7034         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7035         block before expanding the statement.
7036         (expand_gimple_stmt_1): Likewise.  Set them here...
7037         (expand_gimple_stmt): ...and not here.  Tidy.
7038         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7039         unknown.
7040
7041 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7042
7043         * Makefile.in: New rule for cprop.o.
7044         * gcse.c: Move constant/copy propagation to cprop.c.
7045         (compute_local_properties): Only handle expression tables.
7046         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7047         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7048         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7049         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7050         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7051         compute_cprop_data, find_used_regs, try_replace_reg,
7052         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7053         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7054         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7055         find_bypass_set, reg_killed_on_edge, bypass_block,
7056         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7057         execute_rtl_cprop, pass_rtl_cprop): Move to...
7058         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7059         moved from gcse.c to here with minor cleanups in duplicated code.
7060
7061 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7062
7063         * config/i386/i386.c (flag_opts): Fix a typo in
7064         -mavx256-split-unaligned-store.
7065
7066 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7067
7068         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7069         LIBCALL_VALUE): Remove macros.
7070         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7071         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7072         (h8300_function_value, h8300_libcall_value,
7073         h8300_function_value_regno_p): New functions.
7074
7075 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7076
7077         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7078
7079 2011-03-28  Jeff Law  <law@redhat.com>
7080
7081         * tree-ssa-threadupdate.c (redirect_edges): Call
7082         create_edge_and_update_destination_phis as needed.
7083         (create_edge_and_update_destination_phis): Accept new BB argument.
7084         All callers updated.
7085         (thread_block): Do not update the profile when threading around
7086         intermediate blocks.
7087         (thread_single_edge): Likewise.
7088         (determine_bb_domination_status): If BB is not a successor of the
7089         loop header, return NONDOMINATING.
7090         (register_jump_thread): Note when we register a jump thread around
7091         an intermediate block.
7092         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7093         (thread_across_edge): Use it.
7094
7095 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7096
7097         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7098         when for_return is 2.
7099
7100 2011-03-28  Jeff Law  <law@redhat.com>
7101
7102         * var-tracking.c (canonicalize_values_mark): Delete unused
7103         lhs assignment.
7104         (canonicalize_values_star, set_variable_part): Likewise.
7105         (clobber_variable_part, delete_variable_part): Likewise.
7106
7107 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7108
7109         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7110
7111 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7112
7113         * tree-inline.c (expand_call_inline): Do not check that destination
7114         node is analyzed.
7115         (optimize_inline_calls): Assert that destination node is analyzed.
7116         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7117         not call tree_lowering_passes.
7118         * cgraph.h (cgraph_analyze_function): Declare.
7119         * cgraphunit.c (cgraph_analyze_function): Make public.
7120
7121 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7122
7123         * config/sparc/sparc-opts.h: New.
7124         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7125         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7126         (sparc_option_override): Store processor_type enumeration rather
7127         than string in cpu_default.  Remove name and enumeration from
7128         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7129         without using sparc_select.  Use target_flags_explicit instead of
7130         fpu_option_set.
7131         * config/sparc/sparc.h (enum processor_type): Move to
7132         sparc-opts.h.
7133         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7134         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7135         HeaderInclude entry.
7136         (mcpu=, mtune=): Use Var and Enum.
7137         (sparc_processor_type): New Enum and EnumValue entries.
7138
7139 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7140             Iain Sandoe  <iains@gcc.gnu.org>
7141
7142         PR target/48245
7143         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7144
7145 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7146
7147         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7148         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7149         Insert new statements at it in lieu of STMT.
7150         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7151         * tree-vect-stmts.c (vectorizable_store): Likewise.
7152         (vectorizable_load): Likewise.
7153
7154 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7155
7156         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7157         (divtf3): Ditto.
7158         (multf3): Ditto.
7159         (subtf3): Ditto.
7160
7161 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7162
7163         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7164         unaligned 256bit load/store.
7165         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7166         (*avx_movdqu<avxmodesuffix>): Likewise.
7167
7168 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7169
7170         PR target/48288
7171         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7172         * config/pa/pa.md (iordi3): Use new predicate in expander.
7173         (iorsi3): Likewise.
7174
7175 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7176
7177         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7178         FUNCTION_VALUE_REGNO_P): Remove macros.
7179         * config/mips/mips-protos.h (mips_function_value): Remove.
7180         * config/mips/mips.c (mips_function_value): Rename to...
7181         (mips_function_value_1): ... this. Make static.  Handle receiving
7182         the function type in 'fn_decl_or_type' argument.
7183         (mips_function_value, mips_libcall_value,
7184         mips_function_value_regno_p): New function.
7185         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7186         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7187
7188 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7189
7190         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7191         and -mavx256-split-unaligned-store.
7192         (ix86_option_override_internal): Split 32-byte AVX unaligned
7193         load/store by default.
7194         (ix86_avx256_split_vector_move_misalign): New.
7195         (ix86_expand_vector_move_misalign): Use it.
7196
7197         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7198         -mavx256-split-unaligned-store.
7199
7200         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7201         256bit load/store.  Generate unaligned store on misaligned memory
7202         operand.
7203         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7204         256bit load/store.
7205         (*avx_movdqu<avxmodesuffix>): Likewise.
7206
7207         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7208         -mavx256-split-unaligned-store.
7209
7210 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7211
7212         PR target/38598
7213         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7214         Update commentary.
7215
7216 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7217
7218         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7219         opno arguments with an expand_operand.  Use create_input_operand.
7220         (mips_prepare_builtin_target): Delete.
7221         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7222         functions.
7223         (mips_expand_builtin_direct): Use create_output_operand and
7224         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7225         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7226         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7227
7228 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7229
7230         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7231         function.
7232         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7233
7234 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7235
7236         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7237         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7238         basic blocks and call commit_edge_insertions directly.
7239         (fixup_abnormal_edges): Move from here to...
7240         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7241         on the edges and return whether some have actually been inserted.
7242         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7243         compensation code.
7244
7245 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7246
7247         PR rtl-optimization/48144
7248         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7249         (merge_expr_data): ... here.
7250         (av_set_intersect): Rename to av_set_code_motion_filter.
7251         Update all callers.  Call merge_history_vect when an expression
7252         is found in both sets.
7253         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7254
7255 2011-03-26  Alan Modra  <amodra@gmail.com>
7256
7257         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7258         cmodel medium addresses.
7259         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7260         64-bit gpr loads and stores.
7261         (rs6000_secondary_reload_ppc64): New function.
7262         * config/rs6000/rs6000-protos.h: Declare it.
7263         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7264
7265 2011-03-26  Alan Modra  <amodra@gmail.com>
7266
7267         PR target/47487
7268         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7269         GNU Go in traceback table.
7270
7271 2011-03-25  Richard Henderson  <rth@redhat.com>
7272
7273         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7274         if there are exactly 6 operands.
7275         (set_storage_via_setmem): Similarly.
7276
7277 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7278
7279         * collect2.c (write_c_file_stat): Handle backslash
7280         as right-hand directory separator.
7281         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7282         checking just for slash.
7283         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7284         instead of checking for trailing slash.
7285         * gcc.c (record_temp_file): Use filename_cmp instead
7286         of strcmp.
7287         (do_spec_1): Likewise.
7288         (replace_outfile_spec_function): Likewise.
7289         (is_directory): Use filename_ncmp instead of strncmp.
7290         (print_multilib_info): Likewise.
7291         * gcov.c (find_source): Use filename_cmp instead
7292         instead of strcmp.
7293         (make_gcov_file_name): Fix order of slash/backslash
7294         checks.
7295         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7296         (add_standard_paths): Likewise.
7297         * mips-tfile.c (saber_stop): Handle backslash.
7298         * prefix.c (update_path): Use filename_ncmp instead of
7299         strncmp.
7300         * profile.c (output_location): Use filename_cmp instead
7301         of strcmp.
7302         * read-md.c (handle_toplevel_file): Handle backslash.
7303         * tlink.c (frob_extension):  Likewise.
7304         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7305         strcmp.
7306         * tree-dump.c (dequeue_and_dump): Handle backslash.
7307         * tree.c (get_file_function_name): Likewise.
7308         * gengtype.c (read_input_list): Likewise.
7309         (get_file_realbasename): Likewise.
7310         (get_output_file_with_visibility): Use filename_cmp
7311         instead of strcmp.
7312
7313 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7314
7315         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7316         case to VFPv1.
7317
7318 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7319
7320         * fold-const.c (expr_location_or): New function.
7321         (fold_truth_not_expr): Call it.
7322
7323 2011-03-25  Jeff Law  <law@redhat.com>
7324
7325         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7326         va_end.
7327         * c-family/c-common.c (def_fn_type): Likewise.
7328         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7329         * emit-rtl.c (gen_rtvec): Likewise.
7330         * lto/lto-lang.c (def_fn_type): Likewise.
7331
7332 2011-03-25  Richard Guenther  <rguenther@suse.de>
7333
7334         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7335         also generate copies.
7336         (fini_copy_prop): Handle constant values properly.
7337
7338 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7339
7340         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7341         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7342         (hash_loc_operands, compare_loc_operands): Handle
7343         DW_OP_GNU_entry_value.
7344
7345 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7346
7347         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7348         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7349         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7350         comment and use macro TARGET_64BIT_MS_ABI instead.
7351         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7352         and change default behavior for 32-bit MS_ABI.
7353         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7354         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7355         32-bit, too.
7356         (ix86_cfun_abi): Likewise.
7357         (ix86_maybe_switch_abi): Adjust comment.
7358         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7359         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7360         instead of checking for SYSV_ABI.
7361         (ix86_nsaved_sseregs): Likewise.
7362         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7363         to 16 bytes.
7364         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7365         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7366         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7367         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7368         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7369
7370 2011-03-25  Richard Guenther  <rguenther@suse.de>
7371
7372         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7373         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7374         (verify_gimple): Remove.
7375         * tree-cfg.c (verify_gimple_call): Merge verification
7376         from verify_stmts.
7377         (verify_gimple_phi): Merge verification from verify_stmts.
7378         (verify_gimple_label): New function.
7379         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7380         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7381         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7382         (verify_stmts): Rename to verify_gimple_in_cfg.
7383         (verify_gimple_in_cfg): New function.
7384         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7385         * tree-ssa.c (verify_ssa): Likewise.
7386         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7387
7388 2011-03-25  Richard Guenther  <rguenther@suse.de>
7389
7390         * passes.c (init_optimization_passes): Add FRE pass after
7391         early SRA.
7392
7393 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7394             Andrew Stubbs  <ams@codesourcery.com>
7395
7396         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7397         for Cortex-A8.
7398         (arm_movdi_vfp_cortexa8): New pattern.
7399         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7400         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7401         instructions when tuning for Cortex-A8.  Set attribute "arch".
7402         * config/arm/arm.md: Move include arm-tune.md up a bit.
7403         (define_attr "arch"): Add "onlya8" and "nota8" values.
7404         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7405
7406 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7407
7408         PR bootstrap/48282
7409         Revert:
7410         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7411
7412         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7413         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7414         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7415         * passes.c (init_optimization_passes): Move
7416         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7417
7418 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7419
7420         * c-typeck.c (comptypes_internal): Replace target
7421         hook call of comp_type_attributes by version in tree.c file.
7422         * gimple.c (gimple_types_compatible_p_1): Likewise.
7423         * tree-ssa.c (useless_type_conversion_p): Likewise.
7424         * tree.c (build_type_attribute_qual_variant): Likewise.
7425         (attribute_value_equal): New static helper function.
7426         (comp_type_attributes): New function.
7427         (merge_attributes): Use attribute_value_equal for comparison.
7428         (attribute_list_contained): Likewise.
7429         * tree.h (comp_type_attributes): New prototype.
7430
7431 2011-03-25  Richard Guenther  <rguenther@suse.de>
7432
7433         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7434         of complex types at -O0.
7435         (verify_gimple_assign_binary): Likewise.
7436         (verify_gimple_assign_ternary): Likewise.
7437
7438 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7439
7440         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7441         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7442
7443 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7444
7445         PR debug/48041
7446         * dwarf2out.c (output_abbrev_section): Only write table when
7447         abbrev_die_table_in_use > 1.
7448
7449 2011-02-24  Richard Henderson  <rth@redhat.com>
7450
7451         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7452         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7453         (alpha_expand_unaligned_load_words): Use extql.
7454         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7455         (emit_insxl): Handle all modes for consistency.
7456
7457 2011-02-24  Richard Henderson  <rth@redhat.com>
7458
7459         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7460         (alpha_expand_unaligned_load): Likewise.
7461         (alpha_expand_unaligned_store): Likewise.
7462         (alpha_expand_unaligned_load_words): Likewise.
7463         (alpha_expand_unaligned_store_words): Likewise.
7464         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7465         (alpha_split_lock_test_and_set_12): Likewise.
7466         (print_operand, alpha_fold_builtin_extxx): Likewise.
7467         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7468         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7469         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7470         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7471         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7472         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7473         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7474         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7475         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7476         (extwl, extll, extql): Similarly.
7477         (inswh, inslh, insqh): Similarly.
7478         (mskbl, mskwl, mskll, mskql): Similarly.
7479         (mskwh, msklh, mskqh): Similarly.
7480
7481 2011-02-24  Richard Henderson  <rth@redhat.com>
7482
7483         * config/alpha/alpha.md (attribute isa): Add er, ner.
7484         (attribute enabled): Handle them.
7485         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7486
7487 2011-02-24  Richard Henderson  <rth@redhat.com>
7488
7489         * config/alpha/alpha.md (attribute isa): Add vms.
7490         (attribute enabled): Handle it.
7491         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7492         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7493         (*movtf): Rename from *movtf_internal for consistency.
7494         (*movsi): Merge with *movsi_nt_vms.
7495         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7496         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7497         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7498         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7499
7500 2011-02-24  Richard Henderson  <rth@redhat.com>
7501
7502         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7503         (extendqisi2, extendhisi2): Likewise.
7504         (extendqidi2): Simplify BWX/non-BWX expansions.
7505         (extendhidi2): Similarly.
7506
7507 2011-02-24  Richard Henderson  <rth@redhat.com>
7508
7509         * config/alpha/alpha.md (attribute isa): New.
7510         (attribute enabled): New.
7511         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7512         (zero_extendqisi2, zero_extendqidi2): Similarly.
7513         (zero_extendhisi2, zero_extendhidi2): Similarly.
7514         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7515
7516 2011-02-24  Richard Henderson  <rth@redhat.com>
7517
7518         * config/alpha/predicates.md (input_operand): Revert last change;
7519         update comment to mention 32-bit VMS rather than Windows.
7520
7521 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7522
7523         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7524         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7525         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7526         * passes.c (init_optimization_passes): Move
7527         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7528
7529 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7530
7531         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7532
7533 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7534
7535         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7536         correctly.
7537
7538 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7539
7540         PR debug/48204
7541         * simplify-rtx.c (simplify_const_unary_operation): Call
7542         real_convert when changing mode class with FLOAT_EXTEND.
7543
7544 2011-03-24  Nick Clifton  <nickc@redhat.com>
7545
7546         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7547         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7548         * config/rx/rx.c (rx_option_override): Set align_jumps,
7549         align_loops and align_labels if not set by the user.
7550         (rx_align_for_label): New function.
7551         (rx_max_skip_for_label): New function.
7552         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7553         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7554         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7555         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7556         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7557
7558 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7559
7560         PR rtl-optimization/48263
7561         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7562         and original commutative_p handling.  Use maybe_gen_insn.
7563
7564 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7565
7566         * reload.c (find_reloads_subreg_address): Add address_reloaded
7567         parameter and return true there if the full address has been
7568         reloaded.
7569         (find_reloads_toplev): Pass address_reloaded flag.
7570         (find_reloads_address_1): Don't use address_reloaded parameter.
7571
7572 2011-03-24  Jeff Law  <law@redhat.com>
7573
7574         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7575         unused variable "ann".
7576         (remove_unused_locals): Likewise.
7577
7578         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7579         statement.
7580
7581         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7582         after it is freed.
7583
7584 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7585
7586         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7587         for invalid symbolic addresses.
7588         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7589         larl operands.
7590
7591 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7592
7593         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7594         the argument in calls to fold_truth_not_expr.
7595
7596 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7597
7598         * tree.c (record_node_allocation_statistics): New function.
7599         (make_node_stat, copy_node_stat, build_string): Call it.
7600         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7601         (build1_stat, build_omp_clause): Likewise.
7602
7603 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7604
7605         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7606         last commit.
7607
7608 2011-03-24  Richard Guenther  <rguenther@suse.de>
7609
7610         PR tree-optimization/48271
7611         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7612         blocks that still exist.
7613
7614 2011-03-24  Richard Guenther  <rguenther@suse.de>
7615
7616         PR tree-optimization/48270
7617         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7618         not free datarefs before ddrs.
7619
7620 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7621
7622         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7623         from the address built for a reference with variable offset.
7624
7625 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7626
7627         PR target/48237
7628         * config/i386/i386.md (*movdf_internal_rex64): Do not split
7629         alternatives that can be handled with movq or movabsq insn.
7630         (*movdf_internal): Disable for !TARGET_64BIT.
7631         (*movdf_internal_nointeger): Ditto.
7632         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7633
7634 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7635
7636         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7637         (FUNCTION_ARG_ADVANCE): Likewise.
7638         * tm.texi.in: Change references to them to hook references.
7639         * tm.texi: Regenerate.
7640         * targhooks.c (default_function_arg): Eliminate check for target macro.
7641         (default_function_incoming_arg): Likewise.
7642         (default_function_arg_advance): Likewise.
7643         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7644         (function_arg_advance): Likewise.
7645         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7646
7647 2011-03-24  Richard Guenther  <rguenther@suse.de>
7648
7649         PR middle-end/48269
7650         * tree-object-size.c (addr_object_size): Do not double-account
7651         for MEM_REF offsets.
7652
7653 2011-03-24  Diego Novillo  <dnovillo@google.com>
7654
7655         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7656         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7657         (lto_input_data_block): Move from lto-opts.c.  Make extern.
7658         Update all users.
7659         (lto_input_string): Rename from input_string.  Make extern.
7660         Update all users.
7661         * lto-streamer-out.c (lto_output_string_with_length): Rename from
7662         output_string_with_length.
7663         Output 0 to indicate a non-NULL string.  Update all callers to
7664         not emit 0.
7665         (lto_output_string): Rename from output_string.  Make extern.
7666         Update all users.
7667         (lto_output_decl_state_streams): Make extern.
7668         (lto_output_decl_state_refs): Make extern.
7669         * lto-streamer.h (lto_input_string): Declare.
7670         (lto_input_data_block): Declare.
7671         (lto_output_string): Declare.
7672         (lto_output_string_with_length): Declare.
7673         (lto_output_decl_state_streams): Declare.
7674         (lto_output_decl_state_refs): Declare.
7675
7676 2011-03-24  Richard Guenther  <rguenther@suse.de>
7677
7678         PR tree-optimization/46562
7679         * tree.c (build_invariant_address): New function.
7680         * tree.h (build_invariant_address): Declare.
7681         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7682         a renamed function moved ...
7683         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7684         Take valueization callback parameter.
7685         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7686         * gimple-fold.h: New file.
7687         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7688         (ccp_fold, fold_const_aggregate_ref,
7689         fold_ctor_reference, fold_nonarray_ctor_reference,
7690         fold_array_ctor_reference, fold_string_cst_ctor_reference,
7691         get_base_constructor): Move ...
7692         * gimple-fold.c: ... here.
7693         (gimple_fold_stmt_to_constant_1): New function
7694         split out from ccp_fold.  Take a valueization callback parameter.
7695         Valueize all operands.
7696         (gimple_fold_stmt_to_constant): New wrapper function.
7697         (fold_const_aggregate_ref_1): New function split out from
7698         fold_const_aggregate_ref.  Take a valueization callback parameter.
7699         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7700         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7701         invariant POINTER_PLUS_EXPRs to invariant form.
7702         (vn_valueize): New function.
7703         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7704         * tree-vrp.c (vrp_valueize): New function.
7705         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7706         to fold statements to constants.
7707         * tree-ssa-pre.c (eliminate): Properly guard propagation of
7708         function declarations.
7709         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7710         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7711
7712 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7713
7714         * config/h8300/predicates.md (jump_address_operand): Fix register
7715         mode check.
7716
7717 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
7718
7719         * doc/invoke.texi (max-stores-to-sink): Document.
7720         * params.h (MAX_STORES_TO_SINK): Define.
7721         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7722         if either vectorization or if-conversion is disabled.
7723         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7724         tree-vect-data-refs.c vect_equal_offsets.
7725         (dr_equal_offsets_p): New function.
7726         (find_data_references_in_bb): Remove static.
7727         * tree-data-ref.h (find_data_references_in_bb): Declare.
7728         (dr_equal_offsets_p): Likewise.
7729         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7730         (vect_drs_dependent_in_basic_block): Update calls to
7731         vect_equal_offsets.
7732         (vect_check_interleaving): Likewise.
7733         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7734         (cond_if_else_store_replacement): Rename to...
7735         (cond_if_else_store_replacement_1): ... this.  Change arguments and
7736         documentation.
7737         (cond_if_else_store_replacement): New function.
7738         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7739         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7740
7741 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
7742
7743         PR target/46934
7744         * config/arm/arm.md (casesi): Use the gen_int_mode() function
7745         to subtract lower bound instead of GEN_INT().
7746
7747 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
7748
7749         PR other/48179
7750         PR other/48221
7751         PR other/48234
7752         * doc/extend.texi (Alignment): Move section to match order in TOC.
7753         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7754         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7755
7756 2011-03-23  Jeff Law  <law@redhat.com>
7757
7758         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7759         before removing the edge.
7760
7761         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7762         it may have been freed by redirect_branch_edge or
7763         redirect_edge_succ_nodup.
7764
7765 2011-03-23  Richard Guenther  <rguenther@suse.de>
7766
7767         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7768         (check_va_list_escapes): Likewise.
7769         (check_all_va_list_escapes): Likewise.
7770
7771 2011-03-23  Richard Guenther  <rguenther@suse.de>
7772
7773         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7774         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7775         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7776         (alias.o): Likewise.
7777         (ipa-type-escape.o): Remove.
7778         (ipa-struct-reorg.o): Likewise.
7779         (GTFILES): Remove ipa-struct-reorg.c.
7780         * alias.c: Do not include ipa-type-escape.h.
7781         * tree-ssa-alias.c: Likewise.
7782         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7783         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7784         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7785         and ipa-type-escape passes.
7786         * tree-pass.h (pass_ipa_type_escape): Remove.
7787         (pass_ipa_struct_reorg): Likewise.
7788         * ipa-struct-reorg.h: Remove.
7789         * ipa-struct-reorg.c: Likewise.
7790         * ipa-type-escape.h: Likewise.
7791         * ipa-type-escape.c: Likewise.
7792         * doc/invoke.texi (-fipa-struct-reorg): Remove.
7793         (--param struct-reorg-cold-struct-ratio): Likewise.
7794         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7795         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7796         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7797
7798 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7799
7800         * config/s390/2084.md: Enable all insn reservations also for z9_ec
7801         cpu attribute value.
7802         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7803         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7804         * config/s390/s390.c (processor_flags_table): New constant array.
7805         (s390_handle_arch_option): Remove.
7806         (s390_handle_option): Remove s390_handle_arch_option invocations
7807         and OPT_mwarn_framesize_ handling.
7808         (s390_option_override): Remove s390_handle_arch_option invocation.
7809         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7810         warnings.
7811         * config/s390/s390.md (cpu attribute): Add z9_ec value.
7812         * config/s390/s390.opt (s390_tune, s390_arch)
7813         (march=): Replace s390_arch_option enum and values with
7814         processor_type.  Set variable name to s390_arch.  Set
7815         initialization value.
7816         (mtune=): Replace s390_arch_option with processor_type.  Set
7817         variable name to s390_tune.  Set initialization value.
7818
7819 2011-03-23  Julian Brown  <julian@codesourcery.com>
7820
7821         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7822         accesses which are not naturally aligned.
7823
7824 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7825
7826         PR target/47553
7827         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7828
7829 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7830
7831         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7832         parameter from "int" to "enum insn_code".
7833         (expand_operand_type): New enum.
7834         (expand_operand): New structure.
7835         (create_expand_operand): New function.
7836         (create_fixed_operand, create_output_operand): Likewise
7837         (create_input_operand, create_convert_operand_to): Likewise.
7838         (create_convert_operand_from, create_address_operand): Likewise.
7839         (create_integer_operand): Likewise.
7840         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7841         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7842         (expand_insn, expand_jump_insn): Likewise.
7843         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7844         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7845         (expand_movstr, expand_builtin___clear_cache): Likewise.
7846         (expand_builtin_lock_release): Likewise.
7847         * explow.c (allocate_dynamic_stack_space): Likewise.
7848         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
7849         and use the default handling in that case.
7850         * expmed.c (check_predicate_volatile_ok): Delete.
7851         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7852         (emit_cstore): Likewise.
7853         * expr.c (emit_block_move_via_movmem): Likewise.
7854         (set_storage_via_setmem, expand_assignment): Likewise.
7855         (emit_storent_insn, try_casesi): Likewise.
7856         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
7857         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7858         (expand_vec_shift_expr, expand_binop_directly): Likewise.
7859         (expand_twoval_unop, expand_twoval_binop): Likewise.
7860         (expand_unop_direct, emit_indirect_jump): Likewise.
7861         (emit_conditional_move, vector_compare_rtx): Likewise.
7862         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7863         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7864         (expand_sync_lock_test_and_set): Likewise.
7865         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
7866         (emit_unop_insn): Likewise.
7867         (expand_copysign_absneg): Change icode to an insn_code.
7868         (create_convert_operand_from_type): New function.
7869         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7870         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7871         (expand_insn, expand_jump_insn): Likewise.
7872         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7873         than const_int_operand for operand 2.
7874
7875 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7876
7877         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7878         if possible.
7879
7880 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7881
7882         * emit-rtl.c (emit_pattern_before_noloc): New function.
7883         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7884         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7885         (emit_pattern_after_noloc): New function.
7886         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7887         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7888
7889 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7890
7891         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7892         (__ffsDI2): Likewise.
7893
7894 2011-03-22  Richard Henderson  <rth@redhat.com>
7895
7896         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7897         of !TARGET_ABI_OPEN_VMS.
7898         (alpha_trampoline_init, alpha_start_function): Likewise.
7899         (alpha_expand_epilogue, alpha_file_start): Likewise.
7900         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7901         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7902         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7903         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7904         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7905
7906 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7907
7908         * config/s390/s390-opts.h: New.
7909         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7910         s390_arch_flags, s390_warn_framesize, s390_stack_size,
7911         s390_stack_guard): Remove.
7912         (s390_handle_arch_option): Return void.  Take enum
7913         s390_arch_option value instead of string and searching array.
7914         (s390_handle_option): Don't assert that global structures are in
7915         use.  Access variables via opts pointer.  Use error_at.  Don't use
7916         sscanf for -mstack-guard= or -mstack-size=.  Update call to
7917         s390_handle_arch_option.
7918         (s390_option_override): Update call to s390_handle_arch_option.
7919         (s390_emit_prologue): Use %d format for s390_stack_size in
7920         diagnostic.  Use %wd for HOST_WIDE_INT.
7921         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7922         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7923         * config/s390/s390.opt (config/s390/s390-opts.h): New
7924         HeaderInclude entry.
7925         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7926         s390_arch_flags, s390_warn_framesize): New Variable entries.
7927         (s390_arch_option): New Enum and EnumValue entries.
7928         (march=): Use Enum instead of Var.
7929         (mstack-guard=, mstack-size=): Use UInteger and Var.
7930         (mtune=): Use Enum.
7931
7932 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7933
7934         * config/score/score.c (score_handle_option): Don't assert that
7935         global structures are in use.  Access target_flags via opts
7936         pointer.  Use value of -march= option to determine target_flags
7937         settings.
7938         * config/score/score.opt (march=): Use Enum.
7939         (score_arch): New Enum and EnumValue entries.
7940
7941 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7942
7943         * config/mep/mep.c (option_mtiny_specified): Remove.
7944         (mep_option_override): Move register handling for -mivc2 from
7945         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
7946         instead of option_mtiny_specified.
7947         (mep_handle_option): Access target_flags via opts pointer.  Don't
7948         assert that global structures are in use.  Defer part of -mivc2
7949         handling and move it to mep_option_override.
7950         * config/mep/mep.opt (IVC2): New Mask entry.
7951         (mivc2): Use Var and Defer instead of Mask.
7952
7953 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7954
7955         * config/v850/v850-opts.h: New.
7956         * config/v850/v850.c (small_memory): Replace with
7957         small_memory_physical_max array.  Make that array static const.
7958         (v850_handle_memory_option): Take integer value of argument.  Take
7959         gcc_options pointer, option text and location.  Return void.
7960         Update for changes to small memory structures.
7961         (v850_handle_option): Access target_flags via opts pointer.  Don't
7962         assert that global structures are in use.  Update calls to
7963         v850_handle_memory_option.
7964         (v850_encode_data_area): Update references to small memory settings.
7965         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7966         (enum small_memory_type): Move to v850-opts.h.
7967         * config/v850/v850.opt (config/v850/v850-opts.h): New
7968         HeaderInclude entry.
7969         (small_memory_max): New Variable entry.
7970         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
7971         (mtda, mzda): Likewise.
7972
7973 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7974
7975         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7976         pointer.  Don't assert that global structures are in use.
7977
7978 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7979
7980         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7981         via opts pointer.  Don't assert that global structures are in use.
7982
7983 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7984
7985         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7986         (munix=93): Use Var.
7987         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7988         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7989         * config/pa/pa-opts.h: New.
7990         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7991         (pa_handle_option): Don't assert that global structures are in
7992         use.  Access target_flags via opts pointer.  Don't handle
7993         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7994         OPT_munix_98 here.
7995         (pa_option_override): Handle deferred OPT_mfixed_range_.
7996
7997 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7998
7999         * config/mn10300/mn10300-opts.h: New.
8000         * config/mn10300/mn10300.c (mn10300_processor,
8001         mn10300_tune_string): Remove.
8002         (mn10300_handle_option): Don't assert that global structures are
8003         in use.  Access mn10300_processor via opts pointer.  Don't handle
8004         OPT_mtune_ here.
8005         * config/mn10300/mn10300.h (enum processor_type): Move to
8006         mn10300-opts.h.
8007         (mn10300_processor): Remove.
8008         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8009         HeaderInclude entry.
8010         (mn10300_processor): New Variable entry.
8011         (mtune=): Use Var.
8012
8013 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8014
8015         * config/microblaze/microblaze.c: Don't include opts.h.
8016         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8017         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8018         (mno-clearbss): Use Var and Warn.
8019
8020 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8021
8022         * config/m32r/m32r-opts.h: New.
8023         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8024         (m32r_handle_option): Don't assert that global structures are in
8025         use.  Access target_flags and m32r_cache_flush_func via opts
8026         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8027         OPT_mno_flush_trap here.
8028         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8029         include of m32r-opts.h.
8030         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8031         HeaderInclude entry.
8032         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8033         (mmodel=): Use Enum and Var.
8034         (m32r_model): New Enum and EnumValue entries.
8035         (mno-flush-trap): Use Var.
8036         (msdata=): Use Enum and Var.
8037         (m32r_sdata): New Enum and EnumValue entries.
8038
8039 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8040
8041         * config/m32c/m32c.c: Don't include opts.h.
8042         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8043         m32c_handle_option): Remove.
8044         (m32c_option_override): Check global_options_set.x_target_memregs
8045         instead of target_memregs_set.
8046         * config/m32c/m32c.h (target_memregs): Remove.
8047         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8048         variable.
8049
8050 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8051
8052         * config/iq2000/iq2000-opts.h: New.
8053         * config/iq2000/iq2000.c: Don't include opts.h.
8054         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8055         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8056         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8057         HeaderInclude entry.
8058         (iq2000_tune): New Variable entry.
8059         (march=): Add comment.  Use Enum.
8060         (iq2000_arch): New Enum and EnumValue entries.
8061         (mcpu=): Use Enum and Var.
8062         (iq2000_tune): New Enum and EnumValue entries.
8063
8064 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8065
8066         * config/ia64/ia64-opts.h: New.
8067         * config/ia64/ia64.c (ia64_tune): Remove.
8068         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8069         here.  Use error_at.
8070         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8071         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8072         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8073         HeaderInclude entry.
8074         (ia64_tune): New Variable entry.
8075         (mfixed-range=): Use Defer and Var.
8076         (mtune=): Use Enum and Var.
8077         (ia64_tune): New Enum and EnumValue entries.
8078
8079 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8080
8081         * config/frv/frv-opts.h: New.
8082         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8083         frv-opts.h.
8084         (frv_cpu_type): Remove.
8085         * config/frv/frv.c: Don't include opts.h.
8086         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8087         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8088         (frv_cpu_type): New Variable entry.
8089         (frv_cpu): New Enum and EnumValue entries.
8090
8091 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8092
8093         * config/cris/cris.c (cris_handle_option): Access target_flags via
8094         opts pointer.  Don't assert that global structures are in use.
8095         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8096         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8097
8098 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8099
8100         * config/bfin/bfin-opts.h: New.
8101         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8102         bfin_si_revision, bfin_workarounds): Remove.
8103         (bfin_cpus): Make static const.
8104         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8105         not bfin_lib_id_given.
8106         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8107         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8108         pointer. Use error_at.  Don't assert that global structures are in use.
8109         * config/bfin/bfin.h: Include bfin-opts.h.
8110         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8111         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8112         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8113         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8114         entries.
8115
8116 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8117
8118         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8119         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8120         or -msoft-float here.
8121         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8122         -msoft-float and -mhard-float.
8123         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8124         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8125         msoft-float.
8126         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8127         -msoft-float.
8128         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8129         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8130         not mhard-float.
8131         (LIBGCC_SPEC): Don't handle -msoft-float.
8132         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8133         -mhard-float.
8134         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8135         msoft-float.
8136         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8137         -mfloat-abi=*, not -msoft-float and -mhard-float.
8138         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8139         -msoft-float.
8140         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8141         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8142         mhard-float and msoft-float.
8143         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8144         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8145         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8146         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8147         mhard-float.
8148         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8149         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8150         msoft-float.
8151         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8152         not mhard-float.
8153         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8154         not msoft-float.
8155
8156 2011-03-22  Richard Henderson  <rth@redhat.com>
8157
8158         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8159         TARGET_ABI_WINDOWS_NT.
8160         (alpha_output_function_end_prologue): Likewise.
8161         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8162         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8163         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8164         (trap, *movsi_nt_vms): Likewise.
8165         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8166         (*tablejump_osf_nt_internal): Remove.
8167         * config/alpha/predicates.md (input_operand): Only test Pmode.
8168
8169 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8170
8171         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8172         via opts pointer.  Use error_at.  Don't assert that global
8173         structures are in use.
8174
8175 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8176
8177         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8178         (ix86_handle_option): Access ix86_isa_flags and
8179         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8180         global structures are in use.
8181         (ix86_function_specific_save, ix86_function_specific_restore):
8182         Update ix86_isa_flags_explicit field name.
8183         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8184         (ix86_isa_flags_explicit): Rename TargetSave entry to
8185         x_ix86_isa_flags_explicit.
8186
8187 2011-03-22  Richard Henderson  <rth@redhat.com>
8188
8189         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8190         (alpha_option_override, direct_return): Likewise.
8191         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8192         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8193         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8194         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8195         (alpha_expand_epilogue, alpha_end_function): Likewise.
8196         (alpha_init_libfuncs): Likewise.
8197         (struct machine_function): Remove unicosmk members.
8198         (print_operand) ['t']: Remove.
8199         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8200         unicosmk_output_module_name, unicosmk_output_common,
8201         current_section_align, unicosmk_output_text_section_asm_op,
8202         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8203         unicosmk_section_type_flags, unicosmk_unique_section,
8204         unicosmk_asm_named_section, unicosmk_insert_attributes,
8205         unicosmk_output_align, unicosmk_defer_case_vector,
8206         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8207         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8208         unicosmk_output_ssib, unicosmk_add_call_info_word,
8209         unicosmk_extern_head, unicosmk_output_default_externs,
8210         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8211         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8212         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8213         * config/alpha/alpha-protos.h: Update.
8214         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8215         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8216         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8217         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8218         (*mulsi_se, mulvsi3): Likewise.
8219         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8220         (*divmodsi_internal, call, call_value, realign): Likewise.
8221         (moddi3, umoddi3): Likewise; remove duplicate expander.
8222         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8223         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8224         (*movdi_nofix): Remove r/U alternative.
8225         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8226         * config/alpha/constraints.md ("U"): Remove.
8227         * config/alpha/predicates.md (call_operand"): Don't test
8228         TARGET_ABI_UNICOSMK.
8229
8230 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8231
8232         * target.def (handle_option): Take gcc_options and
8233         cl_decoded_option pointers and location_t.
8234         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8235         * doc/tm.texi: Regenerate.
8236         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8237         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8238         * lto-opts.c (lto_reissue_options): Generate option structure for
8239         targetm.handle_option call.
8240         * opts.c (target_handle_option): Update call to
8241         targetm.handle_option.  Remove assertions about values now passed
8242         down to hook.
8243         * targhooks.c (default_target_handle_option): New.
8244         * targhooks.h (default_target_handle_option): Declare.
8245         * config/alpha/alpha.c: Include opts.h.
8246         (alpha_handle_option): Update to new hook interface.
8247         * config/arm/arm.c: Include opts.h.
8248         (arm_handle_option): Update to new hook interface.
8249         * config/arm/t-arm (arm.o): Update dependencies.
8250         * config/bfin/bfin.c: Include opts.h.
8251         (bfin_handle_option): Update to new hook interface.
8252         * config/cris/cris.c: Include opts.h.
8253         (cris_handle_option): Update to new hook interface.
8254         * config/frv/frv.c: Include opts.h.
8255         (frv_handle_option): Update to new hook interface.
8256         * config/i386/i386.c: Include opts.h.
8257         (ix86_handle_option): Update to new hook interface.
8258         (ix86_valid_target_attribute_inner_p): Generate option structure
8259         for call to ix86_handle_option.
8260         * config/i386/t-i386 (i386.o): Update dependencies.
8261         * config/ia64/ia64.c: Include opts.h.
8262         (ia64_handle_option): Update to new hook interface.
8263         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8264         * config/iq2000/iq2000.c: Include opts.h.
8265         (iq2000_handle_option): Update to new hook interface.
8266         * config/m32c/m32c.c: Include opts.h.
8267         (m32c_handle_option): Update to new hook interface.
8268         * config/m32r/m32r.c: Include opts.h.
8269         (m32r_handle_option): Update to new hook interface.
8270         * config/m68k/m68k.c: Include opts.h.
8271         (m68k_handle_option): Update to new hook interface.
8272         * config/mep/mep.c: Include opts.h.
8273         (mep_handle_option): Update to new hook interface.
8274         * config/microblaze/microblaze.c: Include opts.h.
8275         (microblaze_handle_option): Update to new hook interface.
8276         * config/mips/mips.c: Include opts.h.
8277         (mips_handle_option): Update to new hook interface.
8278         * config/mn10300/mn10300.c: Include opts.h.
8279         (mn10300_handle_option): Update to new hook interface.
8280         * config/pa/pa.c: Include opts.h.
8281         (pa_handle_option): Update to new hook interface.
8282         * config/pdp11/pdp11.c: Include opts.h.
8283         (pdp11_handle_option): Update to new hook interface.
8284         * config/rs6000/rs6000.c: Include opts.h.
8285         (rs6000_handle_option): Update to new hook interface.
8286         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8287         * config/rx/rx.c: Include opts.h.
8288         (rx_handle_option): Update to new hook interface.
8289         * config/s390/s390.c: Include opts.h.
8290         (s390_handle_option): Update to new hook interface.
8291         * config/score/score.c: Include opts.h.
8292         (score_handle_option): Update to new hook interface.
8293         * config/sh/sh.c: Include opts.h.
8294         (sh_handle_option): Update to new hook interface.
8295         * config/sparc/sparc.c: Include opts.h.
8296         (sparc_handle_option): Update to new hook interface.
8297         * config/v850/v850.c: Include opts.h.
8298         (v850_handle_option): Update to new hook interface.
8299
8300 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8301
8302         * gcc.c (driver_unknown_option_callback): Only permit and save
8303         unknown -Wno- options.
8304         (driver_wrong_lang_callback): Save options directly instead of via
8305         driver_unknown_option_callback.
8306
8307 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8308
8309         * combine.c (simplify_set): Try harder to find the best CC mode when
8310         simplifying a nested COMPARE on the RHS.
8311
8312 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8313
8314         * config/alpha/gnu.h: Remove.
8315         * config/arc: Remove directory.
8316         * config/arm/netbsd.h: Remove.
8317         * config/arm/t-pe: Remove.
8318         * config/crx: Remove directory.
8319         * config/i386/netbsd.h: Remove.
8320         * config/m68hc11: Remove directory.
8321         * config/m68k/uclinux-oldabi.h: Remove.
8322         * config/mcore/mcore-pe.h: Remove.
8323         * config/mcore/t-mcore-pe: Remove.
8324         * config/netbsd-aout.h: Remove.
8325         * config/rs6000/gnu.h: Remove.
8326         * config/sh/sh-symbian.h: Remove.
8327         * config/sh/symbian-base.c: Remove.
8328         * config/sh/symbian-c.c: Remove.
8329         * config/sh/symbian-cxx.c: Remove.
8330         * config/sh/symbian-post.h: Remove.
8331         * config/sh/symbian-pre.h: Remove.
8332         * config/sh/t-symbian: Remove.
8333         * config/svr3.h: Remove.
8334         * config/vax/netbsd.h: Remove.
8335         * config.build: Don't handle i[34567]86-*-pe.
8336         * config.gcc: Remove handling of deprecations for most deprecated
8337         targets.
8338         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8339         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8340         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8341         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8342         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8343         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8344         Remove cases.
8345         * config.host: Don't handle i[34567]86-*-pe.
8346         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8347         (ASM_SPEC32): Don't handle -mcall-gnu.
8348         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8349         -mcall-gnu.
8350         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8351         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8352         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8353         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8354         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8355         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8356         conditional on SYMBIAN.
8357         * configure.ac: Don't handle powerpc*-*-gnu*.
8358         * configure: Regenerate.
8359         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8360         * doc/install-old.texi (m6811, m6812): Don't mention.
8361         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8362         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8363         (m68k-uclinuxoldabi): Don't mention.
8364         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8365         Remove.
8366         (-mcall-gnu): Remove.
8367         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8368         families): Remove constraint documentation.
8369
8370 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8371
8372         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8373         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8374         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8375
8376 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8377
8378         PR target/48226
8379         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8380         vector when peeking at the next token for vector, don't expand the
8381         keywords.
8382
8383 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8384
8385         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8386         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8387         * config/avr/avr.c (init_cumulative_args)
8388         (avr_function_arg_advance): Use it.
8389         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8390         sibcall epilogues.
8391         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8392         (avr_function_ok_for_sibcall): ...this new function.
8393         (avr_lookup_function_attribute1): New static Function.
8394         (avr_naked_function_p, interrupt_function_p)
8395         (signal_function_p, avr_OS_task_function_p)
8396         (avr_OS_main_function_p): Use it.
8397         * config/avr/avr.md ("sibcall", "sibcall_value")
8398         ("sibcall_epilogue"): New expander.
8399         ("*call_insn", "*call_value_insn"): New insn.
8400         ("call_insn", "call_value_insn"): Remove
8401         ("call", "call_value", "epilogue"): Change expander to handle
8402         sibling calls.
8403
8404 2011-03-21  Nick Clifton  <nickc@redhat.com>
8405
8406         * doc/invoke.texi (Overall Options): Move closing brace to end of
8407         options list.
8408         (Optimization Options): Add missing @gol.
8409         (Directory Options): Likewise.
8410         (i386 and x86-64 Options): Likewise.
8411         (RS6000 and PowerPC Options): Likewise.
8412         (i386 and x86-64 Windows Options): Likewise.
8413         (V850 Options): Add text missing from descriptions.
8414
8415 2011-03-22  Richard Henderson  <rth@redhat.com>
8416
8417         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8418         (avr_incoming_return_addr_rtx): New.
8419         (emit_push_byte): New.
8420         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8421         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8422         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8423         (emit_pop_byte): New.
8424         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8425         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8426         (INCOMING_RETURN_ADDR_RTX): New.
8427         (INCOMING_FRAME_SP_OFFSET): New.
8428         (ARG_POINTER_CFA_OFFSET): New.
8429         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8430         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8431         (pophi): Remove.
8432
8433         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8434
8435 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8436
8437         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8438         (FUNCTION_ARG_ADVANCE): Likewise.
8439         * tm.texi.in: Change references to them to hook references.
8440         * tm.texi: Regenerate.
8441         * targhooks.c (default_function_arg): Eliminate check for target
8442         macro.
8443         (default_function_incoming_arg): Likewise.
8444         (default_function_arg_advance): Likewise.
8445         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8446         (function_arg_advance): Likewise.
8447         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8448
8449 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8450
8451         * tree.c (build_call_1): New function.
8452         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8453
8454 2011-03-22  Richard Guenther  <rguenther@suse.de>
8455
8456         PR tree-optimization/48228
8457         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8458         for single-arg PHIs.
8459
8460 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8461
8462         PR rtl-optimization/48143
8463         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8464         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8465         sse2_cvtps2pd): Likewise.
8466
8467 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8468
8469         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8470
8471 2011-03-22  Richard Guenther  <rguenther@suse.de>
8472
8473         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8474         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8475         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8476         and REALIGN_LOAD_EXPR.
8477         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8478         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8479         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8480         DOT_PROD_EXPR case ...
8481         (expand_expr_real_2): ... here.
8482         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8483         and REALIGN_LOAD_EXPR.
8484         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8485         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8486         (vect_create_epilog_for_reduction): Likewise.
8487         (vectorizable_reduction): Likewise.
8488         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8489         * tree-vect-stmts.c (vectorizable_load): Likewise.
8490
8491 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8492
8493         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8494
8495 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8496
8497         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8498         handling for PLTOFF/GOTOFF.
8499
8500 2011-03-22  Nick Clifton  <nickc@redhat.com>
8501
8502         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8503         trailing backslash from the end of the macro definition.
8504
8505 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8506
8507         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8508         and PLT unspecs.
8509
8510 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8511
8512         * expr.h (prepare_operand): Move to...
8513         * optabs.h (prepare_operand): ...here and change the insn code
8514         parameter from "int" to "enum insn_code".
8515         (insn_operand_matches): Declare.
8516         * expr.c (init_expr_target): Use insn_operand_matches.
8517         (compress_float_constant): Likewise.
8518         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8519         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8520         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8521         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8522         Likewise.
8523         (gen_cond_trap): Likewise.
8524         (prepare_operand): Likewise.  Change icode to an insn_code.
8525         (insn_operand_matches): New function.
8526         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8527         * reload1.c (gen_reload): Likewise.
8528         * targhooks.c (default_secondary_reload): Likewise.
8529
8530 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8531
8532         * config/alpha/alpha.md (unspec): New define_c_enum.
8533         (unspecv): Ditto.
8534
8535 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8536
8537         PR debug/48214
8538         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8539         between a call and its CALL_ARG_LOCATION note.
8540
8541 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8542
8543         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8544
8545 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8546
8547         PR c/42544
8548         PR c/48197
8549         * c-common.c (shorten_compare): If primopN is first sign-extended
8550         to opN and then zero-extended to result type, set primopN to opN.
8551
8552 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8553
8554         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8555         for barrier handlers.
8556
8557 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8558
8559         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8560         UNSPEC constants to be in the unspec enumeration, and redefine
8561         all UNSPECV constants to be in the unspecv enumeration, so that
8562         dumps print which unspec/unspec_volatile this is.
8563         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8564         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8565         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8566         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8567         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8568
8569         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8570         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8571         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8572         * config/rs6000/sync.md (isync, lwsync): Ditto.
8573
8574 2011-03-21  Richard Guenther  <rguenther@suse.de>
8575
8576         * params.def (lto-min-partition): Fix typo.
8577
8578 2011-03-21  Richard Guenther  <rguenther@suse.de>
8579
8580         PR c/47939
8581         * c-decl.c (grokdeclarator): Drop to the main variant only
8582         for array types.  Drop flag_gen_aux_info check.
8583
8584 2011-03-21  Richard Guenther  <rguenther@suse.de>
8585
8586         PR translation/47911
8587         * params.def (lto-partitions): Fix typo.
8588         (lto-min-partition): Fix wording.
8589
8590 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
8591
8592         * config/rs6000/t-freebsd: Remove duplication from file.
8593
8594 2011-03-21  Richard Guenther  <rguenther@suse.de>
8595
8596         PR middle-end/47661
8597         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8598
8599 2011-03-21  Richard Guenther  <rguenther@suse.de>
8600
8601         PR lto/48210
8602         * params.def (lto-partitions): Require at least 1 partition.
8603
8604 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8605
8606         * gthr-solaris.h: Remove.
8607         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8608         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8609         (LIB_SPEC): Likewise.
8610         * config/sol2.opt (threads): Remove.
8611         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8612         (sparc*-*-solaris2*): Likewise.
8613         * configure.ac (enable_threads): Enable solaris support.
8614         * configure: Regenerate.
8615         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8616         * doc/install.texi (Configuration, --enable-threads=lib): Remove
8617         solaris.
8618
8619 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8620
8621         * config.gcc: Obsolete *-*-solaris2.8*.
8622         * doc/install.texi (Specific, *-*-solaris2*): Document it.
8623
8624 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8625
8626         PR bootstrap/48135
8627         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8628         reference.  Solaris 8 perl works.
8629
8630 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8631
8632         PR bootstrap/48135
8633         * doc/install.texi (Prerequisites): Move jar etc. up.
8634         Explain support library version requirements.
8635
8636 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8637
8638         PR bootstrap/48135
8639         * doc/install.texi (Prerequisites): Move Perl to build
8640         requirements.  Always necessary on Solaris 2 with Sun ld.
8641
8642 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8643
8644         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8645         binutils 2.21.
8646         (Specific, i?86-*-solaris2.[89]): Likewise.
8647         (Specific, i?86-*-solaris2.10): Likewise.
8648         (Specific, mips-sgi-irix6): Likewise.
8649         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8650         Update for binutils 2.21.
8651
8652 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8653
8654         * configure.ac (gcc_cv_lto_plugin): Fix typo.
8655         Allow -fuse-linker-plugin for non-default plugin linker.
8656         * configure: Regenerate.
8657
8658 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8659
8660         PR bootstrap/48167
8661         * gengtype.c (files_rules): Added rule for cp/parser.h.
8662
8663 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8664
8665         PR target/48213
8666         * config/s390/s390.c (s390_delegitimize_address): Don't call
8667         lowpart_subreg if orig_x has BLKmode.
8668
8669 2011-03-21  Kai Tietz  <ktietz@redhat.com>
8670
8671         PR target/12171
8672         * doc/plugins.texi: Adjust documentation for plugin register_callback.
8673         * tree.h (attribute_spec): Add new member affects_type_identity.
8674         * attribs.c (empty_attribute_table): Adjust attribute_spec
8675         initializers.
8676         * config/alpha/alpha.c: Likewise.
8677         * config/arc/arc.c: Likewise.
8678         * config/arm/arm.c: Likewise.
8679         * config/avr/avr.c: Likewise.
8680         * config/bfin/bfin.c: Likewise.
8681         * config/crx/crx.c: Likewise.
8682         * config/darwin.h: Likewise.
8683         * config/h8300/h8300.c: Likewise.
8684         * config/i386/cygming.h: Likewise.
8685         * config/i386/i386.c: Likewise.
8686         * config/ia64/ia64.c: Likewise.
8687         * config/m32c/m32c.c: Likewise.
8688         * config/m32r/m32r.c: Likewise.
8689         * config/m68hc11/m68hc11.c: Likewise.
8690         * config/m68k/m68k.c: Likewise.
8691         * config/mcore/mcore.c: Likewise.
8692         * config/mep/mep.c: Likewise.
8693         * config/microblaze/microblaze.c: Likewise.
8694         * config/mips/mips.c: Likewise.
8695         * config/rs6000/rs6000.c: Likewise.
8696         * config/rx/rx.c: Likewise.
8697         * config/sh/sh.c: Likewise.
8698         * config/sol2.h: Likewise.
8699         * config/sparc/sparc.c: Likewise.
8700         * config/spu/spu.c: Likewise.
8701         * config/stormy16/stormy16.c: Likewise.
8702         * config/v850/v850.c: Likewise.
8703
8704 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
8705
8706         * simplify-rtx.c (simplify_binary_operation_1): Handle
8707         (xor (and A B) C) case when B and C are both constants.
8708
8709 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
8710
8711         * tree-dfa.c (add_referenced_var): Fix typo in comment.
8712
8713 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
8714
8715         PR bootstrap/48168
8716         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8717
8718 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
8719
8720         PR rtl-optimization/48156
8721         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8722         assume df and df_lr are not NULL.
8723
8724 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8725
8726         PR debug/48023
8727         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8728         between a call and its CALL_ARG_LOCATION note.
8729
8730 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8731
8732         PR debug/48178
8733         * config/sh/sh.c (find_barrier): Don't emit a constant pool
8734         between a call and its corresponding CALL_ARG_LOCATION note.
8735
8736 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
8737
8738         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8739         instead of loop. Use HARD_REGISTER_NUM_P predicate.
8740         * haifa-sched.c (setup_ref_regs): Ditto.
8741         * caller-save.c (add_used_regs_1): Ditto.
8742         * dse.c (look_for_hardregs): Ditto.
8743         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8744         * sched-rgn.c (check_live_1): Ditto.
8745
8746 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8747
8748         * c-decl.c (diagnose_mismatched_decls): Give an error for
8749         redefining a typedef with variably modified type.
8750
8751 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8752
8753         * c-decl.c (grokfield): Don't allow typedefs for structures or
8754         unions with no tag by default.
8755         * doc/extend.texi (Unnamed Fields): Update.
8756
8757 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
8758
8759         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8760         Rewrite using indirect functions.
8761         (lwp_slwpcb): Ditto.
8762         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8763         (avx_vinsertf128<mode>): Ditto.
8764
8765 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8766
8767         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8768         unspecs.
8769
8770 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8771
8772         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8773         splitting between a call and its corresponding CALL_ARG_LOCATION note.
8774
8775 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8776
8777         PR rtl-optimization/48170
8778         * gcse.c (hoist_code): Remove bogus asserts.
8779
8780 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
8781
8782         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8783         computation for prologue/epilogue.
8784
8785 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8786
8787         * Makefile.in (check-consistency): Remove.
8788
8789 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
8790
8791         PR debug/48176
8792         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8793         arange_table_in_use is 0, but either text_section_used or
8794         cold_text_section_used is true.  Don't call it if
8795         !info_section_emitted.
8796
8797 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
8798
8799         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8800         FUNCTION_VALUE_REGNO_P): Remove.
8801         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8802         Remove.
8803         * config/avr/avr.c (avr_ret_register): Make static inline.
8804         (avr_function_value_regno_p): New function.
8805         (avr_libcall_value): Make static. Add 'func' argument.
8806         (avr_function_value): Make static. Rename 'func' argument to
8807         'fn_decl_or_type', forward it to avr_libcall_value. Call
8808         avr_ret_register function instead of RET_REGISTER macro.
8809         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8810
8811 2011-03-18  Jason Merrill  <jason@redhat.com>
8812
8813         PR c++/23372
8814         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8815
8816 2011-03-18  Richard Guenther  <rguenther@suse.de>
8817
8818         * doc/install.texi (--enable-gold): Remove.
8819         (--with-plugin-ld): Document.
8820         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8821
8822 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
8823
8824         PR middle-end/47790
8825         * expr.c (optimize_bitfield_assignment_op): Revamp to work
8826         again after expansion changes.
8827
8828 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
8829
8830         * combine.c (try_combine): Do simplification only call of
8831         subst() on i2 even when i1 is present. Update comments.
8832
8833 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8834
8835         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8836         and UNSPEC_PCREL_SYMOFF.
8837
8838 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8839
8840         * config/s390/s390.md: Use define_c_enum for the unspec constant
8841         definitions.
8842
8843 2011-03-18  Richard Henderson  <rth@redhat.com>
8844             Jakub Jelinek  <jakub@redhat.com>
8845
8846         PR bootstrap/48161
8847         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8848         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8849
8850 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8851
8852         PR middle-end/47725
8853         * combine.c (cant_combine_insn_p): Don't check zero/sign
8854         extended hard registers.
8855
8856 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8857
8858         PR middle-end/47725
8859         * combine.c (cant_combine_insn_p): Check zero/sign extended
8860         hard registers.
8861
8862 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
8863
8864         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8865         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8866         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8867         Change return type to bool.
8868         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8869
8870 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8871
8872         PR debug/48163
8873         * var-tracking.c (prepare_call_arguments): If CALL target
8874         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8875         pc instead of looking it up using cselib_lookup and use
8876         Pmode for it if x has VOIDmode.
8877         * dwarf2out.c (gen_subprogram_die): If also both first and
8878         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8879
8880         PR debug/48163
8881         * function.c (assign_parms): For data.passed_pointer parms
8882         use MEM of data.entry_parm instead of data.entry_parm itself
8883         as DECL_INCOMING_RTL.
8884         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8885         also when passed and declared mode is the same, DECL_RTL
8886         is a MEM with pseudo as address and DECL_INCOMING_RTL is
8887         a MEM too.
8888
8889 2011-03-16  Jeff Law  <law@redhat.com>
8890
8891         PR rtl-optimization/37273
8892         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8893         handle them like argument loads from stack slots.  Do not double
8894         count memory for memory constants and argument loads from stack slots.
8895
8896 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8897
8898         PR debug/48160
8899         * var-tracking.c (prepare_call_arguments): Check SUBREG.
8900
8901 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8902
8903         PR target/48171
8904         * config/i386/i386.opt: Add Save to -mavx and -mfma.
8905
8906 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8907
8908         PR bootstrap/48153
8909         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8910         if dwarf_strict.
8911         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8912         Clear call_arg_locations and call_arg_loc_last always.
8913
8914         PR middle-end/48152
8915         * var-tracking.c (prepare_call_arguments): If argument needs to be
8916         passed by reference, adjust argtype and mode.
8917
8918 2011-03-17  Richard Guenther  <rguenther@suse.de>
8919
8920         PR middle-end/48134
8921         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8922         a value make sure to fold the statement.
8923
8924 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
8925
8926         PR target/43872
8927         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8928         return condition with !cfun->calls_alloca.
8929
8930 2011-03-17  Richard Guenther  <rguenther@suse.de>
8931
8932         PR bootstrap/48148
8933         * lto-cgraph.c (input_overwrite_node): Clear the abstract
8934         origin for decls in other ltrans units.
8935         (input_varpool_node): Likewise.
8936
8937 2011-03-17  Richard Guenther  <rguenther@suse.de>
8938
8939         PR middle-end/48165
8940         * tree-object-size.c (compute_object_offset): Properly return
8941         the offset operand of MEM_REFs as sizetype.
8942
8943 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8944
8945         PR rtl-optimization/48141
8946         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8947         * dse.c: Include params.h.
8948         (active_local_stores_len): New variable.
8949         (add_wild_read, dse_step1): Clear it when setting active_local_stores
8950         to NULL.
8951         (record_store, check_mem_read_rtx): Decrease it when removing
8952         from the chain.
8953         (scan_insn): Likewise.  Increase it when adding to chain, if it
8954         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8955         set active_local_stores to NULL before the addition.
8956         * Makefile.in (dse.o): Depend on $(PARAMS_H).
8957
8958         PR rtl-optimization/48141
8959         * dse.c (record_store): If no positions are needed in an insn
8960         that cannot be deleted, at least unchain it from active_local_stores.
8961
8962 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
8963
8964         PR debug/47510
8965         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8966         (lookup_type_die_strip_naming_typedef): ... here.
8967         (get_context_die): Use it.
8968         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8969         the anonymous struct named by the naming typedef.
8970
8971 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8972
8973         PR target/48154
8974         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8975         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8976
8977 2011-03-16  Jeff Law  <law@redhat.com>
8978
8979         * tree-vrp.c (identify_jump_threads): Slightly simplify type
8980         check for operands of conditional.  Allow type to be a pointer.
8981
8982 2011-03-16  Richard Guenther  <rguenther@suse.de>
8983
8984         PR tree-optimization/48149
8985         * fold-const.c (fold_binary_loc): Fold
8986         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8987
8988 2011-03-16  Richard Guenther  <rguenther@suse.de>
8989
8990         PR tree-optimization/26134
8991         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8992         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8993         (non_rewritable_mem_ref_base): Handle complex type component
8994         accesses, constrain offsets for vector and complex extracts
8995         more properly.
8996
8997 2011-03-16  Richard Guenther  <rguenther@suse.de>
8998
8999         PR tree-optimization/48146
9000         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9001         operands avoiding the need for renaming.
9002
9003 2011-03-16  Richard Guenther  <rguenther@suse.de>
9004
9005         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9006         constant folding.  Move MEM_REF canonicalization first.
9007         Rely on fold_const_aggregate_ref for initializer folding.
9008         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9009
9010 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9011
9012         PR middle-end/48136
9013         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9014         arg0/arg1 or their arguments are always fold converted to matching
9015         types.
9016
9017         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9018         to nargs.
9019
9020 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9021
9022         PR lto/46944
9023         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9024         Handle in-tree gold.
9025         (ld_vers): Extract binutils version for gold.
9026         (gcc_cv_ld_hidden): Handle gold here.
9027         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9028         * configure: Regenerate.
9029         * config.in: Regenerate.
9030         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9031         -fuse-linker-plugin otherwise.
9032         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9033         (LINK_COMMAND_SPEC): Use it.
9034         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9035
9036 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9037
9038         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9039         * calls.c: Remove debug.h include.
9040         (emit_call_1): Don't call virtual_call_token debug hook.
9041         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9042         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9043         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9044         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9045         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9046         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9047         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9048         dwarf2out_virtual_call): Remove.
9049         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9050         copy_call_info and virtual_call hooks.
9051         (dwarf2out_init): Don't initialize vcall_insn_table,
9052         debug_dcall_section and debug_vcall_section.
9053         (prune_unused_types): Don't mark nodes from dcall_table.
9054         (dwarf2out_finish): Don't output dcall or vcall tables.
9055         * final.c (final_scan_insn): Don't call direct_call or
9056         virtual_call debug hooks.
9057         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9058         virtual_call_token, copy_call_info and virtual_call hooks.
9059         (debug_nothing_uid): Remove prototype.
9060         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9061         copy_call_info and virtual_call hooks.
9062         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9063         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9064         * debug.c (do_nothing_debug_hooks): Likewise.
9065         (debug_nothing_uid): Remove.
9066         * doc/invoke.texi (-fenable-icf-debug): Remove.
9067         * common.opt (-fenable-icf-debug): Likewise.
9068
9069         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9070         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9071         call's MEM.  Handle functions returning aggregate through a hidden
9072         first pointer.  For virtual calls add clobbered pc to call arguments
9073         chain.
9074         * dwarf2out.c (gen_subprogram_die): Emit
9075         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9076         can't be emitted.
9077
9078         PR debug/45882
9079         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9080         * rtl.h (ENTRY_VALUE_EXP): Define.
9081         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9082         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9083         * print-rtl.c (print_rtx): Likewise.
9084         * gengtype.c (adjust_field_rtx_def): Likewise.
9085         * var-tracking.c (vt_add_function_parameter): Adjust
9086         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9087         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9088         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9089         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9090         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9091
9092         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9093         Call var_location debug hook even on CALL_INSNs.
9094         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9095         * rtl.def (ENTRY_VALUE): New.
9096         * dwarf2out.c: Include cfglayout.h.
9097         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9098         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9099         (struct call_arg_loc_node): New type.
9100         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9101         tail_call_site_count): New variables.
9102         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9103         DW_TAG_GNU_call_site_parameter.
9104         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9105         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9106         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9107         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9108         and DW_AT_GNU_all_source_call_sites.
9109         (mem_loc_descriptor): Handle ENTRY_VALUE.
9110         (add_src_coords_attributes): Don't add enything if
9111         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9112         (dwarf2out_abstract_function): Save and clear call_arg_location,
9113         call_site_count and tail_call_site_count around dwarf2out_decl call.
9114         (gen_call_site_die): New function.
9115         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9116         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9117         (dwarf2out_function_decl): Clear call_arg_locations,
9118         call_arg_loc_last, set call_site_count and tail_call_site_count
9119         to -1 and free block_map.
9120         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9121         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9122         followed by any real instructions.
9123         (dwarf2out_begin_function): Set call_site_count and
9124         tail_call_site_count to 0.
9125         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9126         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9127         attempt to force a DIE for it and worst case remove the attribute.
9128         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9129         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9130         the decl itself.
9131         * var-tracking.c: Include tm_p.h.
9132         (vt_stack_adjustments): For calls call note_register_arguments.
9133         (argument_reg_set): New variable.
9134         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9135         ensure the VALUE is resolved.
9136         (call_arguments): New variable.
9137         (prepare_call_arguments): New function.
9138         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9139         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9140         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9141         always use the best expression.
9142         (vt_expand_loc): Add ignore_cur_loc argument.
9143         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9144         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9145         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9146         note for all calls.
9147         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9148         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9149         argument.  Don't call cselib_preserve_only_values and
9150         cselib_reset_table.
9151         (note_register_arguments): New function.
9152         (vt_initialize): Compute argument_reg_set.  Call
9153         vt_add_function_parameters before processing basic blocks instead of
9154         afterwards.  For calls call prepare_call_arguments before calling
9155         cselib_process_insn.
9156         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9157         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9158         (var-tracking.o): Depend on $(TM_P_H).
9159         * cfglayout.h (insn_scope): New prototype.
9160         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9161         * cfglayout.c (insn_scope): No longer static.
9162         * insn-notes.def (CALL_ARG_LOCATION): New.
9163         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9164         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9165         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9166         nothing for DECL_EXTERNAL BLOCK_VARS.
9167
9168 2011-03-16  Alan Modra  <amodra@gmail.com>
9169
9170         PR target/45844
9171         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9172         create invalid offset address for vsx splat insn.
9173         * config/rs6000/predicates.md (splat_input_operand): New.
9174         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9175
9176 2011-03-15  Xinliang David Li  <davidxl@google.com>
9177
9178         PR c/47837
9179         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9180         (normalize_preds): New function.
9181         (is_use_properly_guarded): Normalize def predicates.
9182
9183 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9184
9185         PR target/46788
9186         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9187         in the output template.
9188
9189 2011-03-15  Richard Guenther  <rguenther@suse.de>
9190
9191         PR middle-end/47650
9192         * tree-pretty-print.c (dump_function_declaration): Properly
9193         dump unprototyped and varargs function types.
9194
9195 2011-03-15  Richard Guenther  <rguenther@suse.de>
9196
9197         PR tree-optimization/13954
9198         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9199         and friends.
9200
9201 2011-03-15  Richard Guenther  <rguenther@suse.de>
9202
9203         PR tree-optimization/48037
9204         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9205         selects into BIT_FIELD_REFs.
9206         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9207         vector select.
9208
9209 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9210
9211         PR tree-optimization/48129
9212         * builtins.c (fold_builtin_snprintf): Convert to type of
9213         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9214         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9215
9216 2011-03-15  Richard Guenther  <rguenther@suse.de>
9217
9218         PR tree-optimization/41490
9219         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9220         value but with VUSE.
9221         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9222         return statements.
9223         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9224         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9225         * tree-tailcall.c (find_tail_calls): Ignore returns.
9226
9227 2011-03-15  Richard Guenther  <rguenther@suse.de>
9228
9229         PR middle-end/48031
9230         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9231         or variable-indexed array accesses when in gimple form.
9232
9233 2011-03-15  Richard Guenther  <rguenther@suse.de>
9234
9235         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9236
9237 2011-03-15  Alan Modra  <amodra@gmail.com>
9238
9239         PR target/48032
9240         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9241         presume symbol_refs without a symbol_ref_decl are suitably
9242         aligned, nor other trees we may see here.  Handle anchor symbols.
9243         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9244         Check cmodel=medium addresses.  Adjust all calls.
9245         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9246         creating cmodel=medium optimized access to locals.
9247         * config/rs6000/constraints.md (R): Pass QImode to
9248         legitimate_constant_pool_address_p.
9249         * config/rs6000/predicates.md (input_operand): Pass mode to
9250         legitimate_constant_pool_address_p.
9251         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9252         Update prototype.
9253
9254 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9255
9256         PR target/48053
9257         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9258         64-bit constants being loaded into registers other than GPRs such
9259         as loading 0 into a VSX register.
9260
9261 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9262
9263         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9264
9265 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9266
9267         PR middle-end/47917
9268         * builtins.c (fold_builtin_snprintf): New function.
9269         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9270         (fold_builtin_4): Likewise.
9271
9272         PR middle-end/38878
9273         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9274         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9275         and C - X == X also strip nops from +/-/p+ operand.
9276         When optimizing -X == C, fold C to arg0's type.
9277
9278         PR debug/47946
9279         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9280         emit it as add_AT_int instead of add_AT_unsigned.
9281
9282 2011-03-14  Tom Tromey  <tromey@redhat.com>
9283
9284         * unwind-dw2.c: Include sys/sdt.h if it exists.
9285         (_Unwind_DebugHook): Use STAP_PROBE2.
9286         * config.in, configure: Rebuild.
9287         * configure.ac: Check for sys/sdt.h.
9288
9289 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9290
9291         * config/i386/i386.md (ROUND_FLOOR): New constant.
9292         (ROUND_CEIL): Ditto.
9293         (ROUND_TRUNC): Ditto.
9294         (ROUND_MXCSR): Ditto.
9295         (ROUND_NO_EXC): Ditto.
9296         (rint<mode>2): Use new defines instead of numerical constants.
9297         (floor<mode>2): Ditto.
9298         (ceil<mode>2): Ditto.
9299         (btrunc<mode>2): Ditto.
9300         * config/i386/i386-builtin-types.def: Define ROUND function type
9301         aliases.
9302         * config/i386/i386.c (enum ix86_builtins): Add
9303         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9304         (struct builtin_description): Add
9305         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9306         (ix86_expand_sse_round): New static function.
9307         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9308         function types.
9309         (ix86_builtin_vectorized_function): Handle
9310         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9311
9312 2011-03-14  Tom Tromey  <tromey@redhat.com>
9313
9314         * c-parser.c (c_parser_asm_string_literal): Clear
9315         warn_overlength_strings.
9316
9317 2011-03-14  Tom Tromey  <tromey@redhat.com>
9318
9319         * c-parser.c (disable_extension_diagnostics): Save
9320         warn_overlength_strings.
9321         (restore_extension_diagnostics): Restore warn_overlength_strings.
9322
9323 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9324
9325         * BASE-VER: Change to 4.7.0.
9326
9327 2011-03-14  Richard Guenther  <rguenther@suse.de>
9328
9329         PR middle-end/48098
9330         * tree.c (build_vector_from_val): Adjust assert to requirements
9331         and reality.
9332
9333 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9334
9335         PR bootstrap/48102
9336         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9337
9338 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9339
9340         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9341         terms of target_flags_explicit. Adjust copyright year.
9342
9343         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9344         * config/rs6000/t-freebsd: New file. Add override for
9345         LIB2FUNCS_EXTRA.
9346
9347 2011-03-13  Chris Demetriou  <cgd@google.com>
9348
9349         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9350         (-fno-diagnostics-show-option): this, to reflect current default.
9351         (-Werror=): Update text about -fno-diagnostics-show-option.
9352
9353 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9354
9355         PR target/48053
9356         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9357         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9358         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9359         mode is not V2DImode or V2DFmode.
9360         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9361         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9362         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9363         registers to 0.
9364         (movdi_internal64): Likewise.
9365
9366 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9367
9368         PR tree-optimization/47127
9369         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9370         parameter.
9371         (set_cloog_options): Same.
9372         (scop_to_clast): Same.
9373         (print_clast_stmt): Do not call cloog_state_malloc and
9374         cloog_state_free.
9375         (print_generated_program): Same.
9376         (gloog): Same.
9377         * graphite-clast-to-gimple.h (cloog_state): Declared.
9378         (scop_to_clast): Adjust declaration.
9379         * graphite.c (cloog_state): Defined here.
9380         (graphite_initialize): Call cloog_state_malloc.
9381         (graphite_finalize): Call cloog_state_free.
9382
9383 2011-03-11  Jason Merrill  <jason@redhat.com>
9384
9385         * attribs.c (lookup_attribute_spec): Take const_tree.
9386         * tree.h: Adjust.
9387
9388 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9389
9390         * config/sparc/sparc.c (sparc_option_override): Use
9391         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9392
9393 2011-03-11  Richard Guenther  <rguenther@suse.de>
9394
9395         PR tree-optimization/48067
9396         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9397         multiplication result will be only used once on the target
9398         stmt.
9399
9400 2011-03-11  Richard Guenther  <rguenther@suse.de>
9401
9402         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9403
9404 2011-03-11  Richard Guenther  <rguenther@suse.de>
9405
9406         PR lto/48073
9407         * tree.c (find_decls_types_r): Do not walk types only reachable
9408         from IDENTIFIER_NODEs.
9409
9410 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9411
9412         PR middle-end/48044
9413         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9414         all vnode->force_output nodes as needed.
9415
9416 2011-03-11  Jason Merrill  <jason@redhat.com>
9417
9418         PR c++/48069
9419         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9420         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9421
9422 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9423
9424         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9425         cgraph_node.
9426
9427 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9428
9429         PR tree-optimization/48063
9430         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9431         inline functions called once if !tree_can_inline_p (node->callers).
9432
9433 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9434
9435         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9436         extra_objs.
9437         * config/score/score3.c: Delete.
9438         * config/score/score3.h: Delete.
9439         * config/score/mul-div.S: Delete.
9440         * config/score/sfp-machine.h: Add new file.
9441         * config/score/constraints.md: Add new file.
9442         * config/score/t-score-softfp: Add new file.
9443         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9444         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9445         (score7_extra_constraint): Delete.
9446         (score7_option_override): Remove unused code.
9447         * config/score/score.c: Remove score3 and score5 define and code.
9448         * config/score/score.h: Remove score3 and score5 define and code.
9449         * config/score/score.md: Remove score3 template and unusual insn.
9450         * config/score/score.opt: Remove score3 and score5 options.
9451
9452 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9453
9454         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9455         when _HPUX_SOURCE is defined.
9456         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9457
9458 2011-03-10  Jason Merrill  <jason@redhat.com>
9459
9460         PR c++/48029
9461         * stor-layout.c (layout_type): Don't set structural equality
9462         on arrays of incomplete type.
9463         * tree.c (type_hash_eq): Handle comparing them properly.
9464
9465 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9466
9467         PR debug/48043
9468         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9469         result mode matches original rtl mode.
9470
9471 2011-03-10  Nick Clifton  <nickc@redhat.com>
9472
9473         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9474         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9475
9476 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9477
9478         PR rtl-optimization/47866
9479         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9480         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9481         if target wasn't scalar.
9482         * function.c (assign_stack_temp_for_type): Assert that neither
9483         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9484         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9485         macro.
9486         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9487
9488 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9489
9490         * config/s390/s390-protos.h (s390_label_align): New prototype.
9491         * config/s390/s390.c (s390_label_align): New function.
9492         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9493
9494 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9495
9496         PR target/47755
9497         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9498         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9499         (output_vec_const_move): Ditto.
9500
9501 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9502
9503         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9504         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9505         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9506         Change 'rclass' argument and result type to reg_class_t.
9507         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9508
9509 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9510
9511         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9512         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9513         (TARGET_MEMORY_MOVE_COST): Define.
9514         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9515
9516 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9517
9518         PR debug/47881
9519         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9520         removed anything.
9521
9522         PR tree-optimization/48022
9523         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9524         for EQ/NE_EXPR.
9525
9526 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9527
9528         PR debug/47991
9529         * var-tracking.c (find_use_val): Return NULL for
9530         cui->sets && cui->store_p BLKmode MEMs.
9531
9532 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9533
9534         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9535         Remove.
9536         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9537         xstormy16_print_operand_address): Remove.
9538         * config/stormy16/stormy16.c (xstormy16_print_operand,
9539         xstormy16_print_operand_address): Make static.
9540         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9541
9542 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9543
9544         PR target/47862
9545         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9546         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9547         before definition.
9548
9549 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9550
9551         PR bootstrap/48000
9552         * cfgloopmanip.c (fix_bb_placements): Return immediately
9553         if FROM is BASE_LOOP's header.
9554
9555 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9556
9557         * gimplify.c (gimplify_function_tree): Fix building calls
9558         to __builtin_return_address.
9559
9560 2011-03-07  Alan Modra  <amodra@gmail.com>
9561
9562         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9563         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9564         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9565         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9566         return_mode args.
9567         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9568         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9569         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9570         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9571         * config/rs6000/rs6000.c
9572         (rs6000_elf_end_indicate_exec_stack): Rename to..
9573         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9574         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9575         (rs6000_file_start): ..here.
9576         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9577         file scope variables.
9578         (call_ABI_of_interest): New function.
9579         (init_cumulative_args): Set above vars when function return value
9580         is a float, vector, or small struct.
9581         (rs6000_function_arg_advance_1): Likewise for function args.
9582         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9583         references float args.
9584
9585 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9586
9587         * doc/cfg.texi: Remove "See" before @ref.
9588         * doc/invoke.texi: Likewise.
9589
9590 2011-03-05  Jason Merrill  <jason@redhat.com>
9591
9592         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9593
9594 2011-03-05  Anthony Green  <green@moxielogic.com>
9595
9596         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9597
9598 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
9599
9600         PR rtl-optimization/47899
9601         * cfgloopmanip.c (fix_bb_placements): Fix first argument
9602         to flow_loop_nested_p when moving the loop upward.
9603
9604 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
9605
9606         PR target/47719
9607         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
9608
9609 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
9610
9611         PR tree-optimization/47967
9612         * ipa-cp.c (build_const_val): Return NULL instead of creating
9613         VIEW_CONVERT_EXPR for mismatching sizes.
9614         (ipcp_create_replace_map): Return NULL if build_const_val failed.
9615         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9616         give up on versioning.
9617
9618 2011-03-05  Alan Modra  <amodra@gmail.com>
9619
9620         PR target/47986
9621         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9622         full cmodel medium/large lo_sum + high addresses.
9623
9624 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9625
9626         * config/s390/s390.c (s390_decompose_address): Reject non-literal
9627         pool references in UNSPEC_LTREL_OFFSET.
9628
9629 2011-03-04  Jan Hubicka  <jh@suse.cz>
9630
9631         PR lto/47497
9632         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9633         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9634         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9635         Add node pointers.
9636         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9637         cgraph_add_thunk): Add node pointers.
9638         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9639         associated to right node.
9640         (input_node): Update use of cgraph_same_body_alias
9641         and cgraph_add_thunk.
9642
9643 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9644
9645         * config/i386/i386.opt (mprefer-avx128): New flag.
9646         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9647         modes when the flag -mprefer-avx128 is on.
9648
9649 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9650
9651         * dwarf2out.c (compare_loc_operands): Fix address handling.
9652
9653 2011-03-04  Alan Modra  <amodra@gmail.com>
9654
9655         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9656
9657 2011-03-04  Richard Guenther  <rguenther@suse.de>
9658
9659         PR middle-end/47968
9660         * expmed.c (extract_bit_field_1): Prefer vector modes that
9661         vec_extract patterns can handle.
9662
9663 2011-03-04  Richard Guenther  <rguenther@suse.de>
9664
9665         PR middle-end/47975
9666         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9667
9668 2011-03-04  Richard Henderson  <rth@redhat.com>
9669
9670         * explow.c (emit_stack_save): Remove 'after' parameter.
9671         (emit_stack_restore): Likewise.
9672         * expr.h: Update to match.
9673         * builtins.c, calls.c, stmt.c: Likewise.
9674         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9675         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9676         * function.c (expand_function_end): Insert the emit_stack_save
9677         sequence before parm_birth_insn instead of after.
9678
9679 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
9680
9681         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9682         (ssse3_pmaddubsw128): Ditto.
9683         (ssse3_pmaddubsw): Ditto.
9684
9685 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
9686
9687         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9688
9689 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
9690
9691         PR c/47963
9692         * gimplify.c (omp_add_variable): Only call omp_notice_variable
9693         on TYPE_SIZE_UNIT if it is a DECL.
9694
9695         PR debug/47283
9696         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9697         first operand is not is_gimple_mem_ref_addr, try to fold it.
9698         If the operand still isn't is_gimple_mem_ref_addr, clear
9699         MEM_EXPR on op0.
9700
9701 2011-03-03  Richard Guenther  <rguenther@suse.de>
9702
9703         PR middle-end/47283
9704         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9705         match comment.
9706         (refs_may_alias_p_1): For release branches return true if
9707         we are confused by our input.
9708
9709 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9710
9711         * config/s390/s390.c (s390_function_value): Rename to ...
9712         (s390_function_and_libcall_value): ... this.
9713         (s390_function_value): New function.
9714         (s390_libcall_value): New function.
9715         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9716         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9717         target macro definitions.
9718         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9719
9720 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
9721
9722         * config/i386/freebsd64.h (CC1_SPEC): Define.
9723         * config/i386/linux64.h (CC1_SPEC): Define.
9724         * config/i386/x86-64.h (CC1_SPEC): Don't define.
9725
9726 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
9727
9728         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9729         Remove.
9730         * config/stormy16/stormy16.c: Include reload.h.
9731         (xstormy16_memory_move_cost): New function.
9732         (TARGET_MEMORY_MOVE_COST): Define.
9733
9734 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
9735
9736         PR rtl-optimization/47925
9737         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9738         with side effects.  Remove the more-specific check for volatile asms.
9739
9740 2011-03-02  Alan Modra  <amodra@gmail.com>
9741
9742         PR target/47935
9743         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9744         toc relative addresses for valid offsets.
9745
9746 2011-03-01  Richard Guenther  <rguenther@suse.de>
9747
9748         PR tree-optimization/47890
9749         * tree-vect-loop.c (get_initial_def_for_induction): Set
9750         related stmt properly.
9751
9752 2011-03-01  Richard Guenther  <rguenther@suse.de>
9753
9754         PR lto/47924
9755         * lto-streamer.c (lto_record_common_node): Also register
9756         the canonical type.
9757
9758 2011-03-01  Richard Guenther  <rguenther@suse.de>
9759
9760         PR lto/46911
9761         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9762         Do not stream DECL_ABSTRACT_ORIGIN.
9763         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9764         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9765         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9766         Do not stream DECL_ABSTRACT_ORIGIN.
9767         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9768         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9769
9770 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
9771
9772         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9773         FUNCTION_VALUE_REGNO_P): Remove.
9774         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9775         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9776         Add 'outgoing' argument.
9777         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9778         function.
9779         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9780         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9781
9782 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
9783
9784         PR debug/28047
9785         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9786         (lookup_filename): Likewise.
9787         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9788
9789 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
9790             Jakub Jelinek  <jakub@redhat.com>
9791
9792         PR middle-end/47893
9793         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9794         (assign_stack_local_1): Change last argument type to int.
9795         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9796         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
9797         don't record padding space into frame_space_list nor use those areas.
9798         (assign_stack_local): Adjust caller.
9799         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9800         of assign_stack_local, pass 0 as last argument.
9801         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9802         callers.
9803
9804 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
9805
9806         PR debug/47283
9807         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9808         Use target address_mode and pointer_mode hooks instead of hardcoded
9809         Pmode and ptr_mode.  Handle some simple cases of extending if
9810         POINTERS_EXTEND_UNSIGNED < 0.
9811         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9812         Call convert_debug_memory_address.
9813         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9814         convert_debug_memory_address.
9815
9816         PR middle-end/46790
9817         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9818         * configure: Regenerated.
9819         * config.in: Regenerated.
9820         * varasm.c (default_function_section): Return NULL
9821         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9822
9823 2011-02-28  Martin Jambor  <mjambor@suse.cz>
9824
9825         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9826         the description to match the printed values.
9827
9828 2011-02-28  Richard Guenther  <rguenther@suse.de>
9829
9830         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9831         of the copied scope tree.
9832
9833 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9834
9835         * doc/extend.texi (Function Attributes): Avoid deeply (and
9836         wrongly) nested tables.
9837
9838 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
9839
9840         PR middle-end/47903
9841         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9842         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9843         r isn't op0 nor op1.
9844
9845 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9846
9847         * config/avr/avr.md: Remove magic comment for emacs.
9848
9849 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9850
9851         PR target/45261
9852         * config/avr/avr.c (avr_option_override): Use error on bad options.
9853         (avr_help): New function.
9854         (TARGET_HELP): Define.
9855
9856 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
9857
9858         PR target/42240
9859         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9860         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9861
9862 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
9863
9864         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9865         (ARM Options): Ditto.
9866         (i386 and x86-64 Options): Ditto.
9867         (RX Options): Ditto.
9868         (SPARC Options): Ditto.
9869
9870 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
9871
9872         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9873         FreeBSD 6 and later.  Generally use cpu generic.
9874
9875 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9876
9877         * doc/cpp.texi: Update copyright years.
9878
9879 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9880
9881         PR target/46898
9882         * config/lm32/lm32.md (ashrsi3): Added needed variable.
9883
9884 2011-02-25  Jon Beniston  <jon@beniston.com>
9885
9886         PR target/46898
9887         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9888         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9889         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9890         (lm32_block_move_inline): Add type cast to remove warning.
9891         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9892         (gen_int_relational): Move declarations to start of function.
9893
9894 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9895
9896         PR tree-optimization/45470
9897         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9898         can throw internally only.
9899         * tree-vect-stmts.c (vectorizable_call): Likewise.
9900
9901 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
9902
9903         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9904         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9905         * config/stormy16/stormy16-protos.h
9906         (xstormy16_preferred_reload_class): Remove.
9907         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9908         static. Change 'rclass' argument and return type to reg_class_t.
9909         (TARGET_PREFERRED_RELOAD_CLASS,
9910         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9911
9912 2011-02-24  Richard Guenther  <rguenther@suse.de>
9913
9914         * lto-streamer-in.c (input_bb): Do not find referenced vars
9915         in debug statements.
9916
9917 2011-02-23  Jason Merrill  <jason@redhat.com>
9918
9919         * common.opt (fabi-version): Document v5 and v6.
9920
9921 2011-02-23  Richard Guenther  <rguenther@suse.de>
9922
9923         PR tree-optimization/47849
9924         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9925
9926 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9927
9928         * opts-common.c (decode_cmdline_option): Print empty string
9929         argument as "" in decoded->orig_option_with_args_text.
9930         * gcc.c (execute): Print empty string argument as ""
9931         in the verbose output.
9932         (do_spec_1): Keep empty string argument.
9933
9934 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
9935
9936         * config.gcc: Declare score-* and crx-* obsolete.
9937
9938 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9939
9940         PR rtl-optimization/47763
9941         * web.c (web_main): Ignore naked clobber when replacing register.
9942
9943 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
9944
9945         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9946         Remove.
9947
9948 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9949
9950         PR doc/47848
9951         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9952
9953 2011-02-22  Mike Stump  <mikestump@comcast.net>
9954
9955         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9956         assembler.
9957         * configure: Regenerate.
9958
9959 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
9960
9961         PR rtl-optimization/46002
9962         * ira-color.c (update_copy_costs): Change class intersection
9963         test to reg_class_contents[] test of 'hard_regno'.
9964
9965 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
9966
9967         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9968         than Driver option.
9969         * config/hpux11.opt (mt): Likewise.
9970         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9971         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9972         * config/vax/elf.opt (mno-asm-pic): Likewise.
9973         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9974
9975 2011-02-21  Mike Stump  <mikestump@comcast.net>
9976
9977         PR target/47822
9978         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9979         tree so we can get save the type.
9980         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9981         for CFString instead of trying to use past the end of the builtins.
9982         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9983         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9984         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9985         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9986         Rename to darwin_builtin_cfstring.
9987         (darwin_init_cfstring_builtins): Return the built type.
9988
9989 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
9990
9991         PR target/47840
9992         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9993         (_mm256_insert_epi64): Use _mm_insert_epi64.
9994
9995 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
9996
9997         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9998         * config/stormy16/stormy16-protos.h
9999         (xstormy16_mode_dependent_address_p): Remove.
10000         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10001         Make static. Change return type to bool. Change argument type to
10002         const_rtx. Remove dead code.
10003         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10004
10005 2011-02-21  Richard Guenther  <rguenther@suse.de>
10006
10007         PR lto/47820
10008         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10009         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10010         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10011         TUs context.
10012         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10013         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10014
10015 2011-02-20  Richard Guenther  <rguenther@suse.de>
10016
10017         PR lto/47822
10018         * tree.c (free_lang_data_in_decl): Clean builtins from
10019         the TU decl BLOCK_VARS.
10020
10021 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10022
10023         PR debug/47620
10024         PR debug/47630
10025         * haifa-sched.c (fix_tick_ready): Skip tick computation
10026         for debug insns.
10027
10028 2011-02-19  Richard Guenther  <rguenther@suse.de>
10029
10030         PR lto/47647
10031         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10032         Remove lazy BLOCK_VARS streaming.
10033         (lto_input_ts_block_tree_pointers): Likewise.
10034         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10035
10036 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10037
10038         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10039
10040 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10041
10042         * config/i386/biarch32.h, config/i386/mach.h,
10043         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10044
10045 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10046
10047         PR target/47800
10048         * config/i386/i386.md (peephole2 for shift and plus): Use
10049         operands[1] original mode in the first insn.
10050
10051 2011-02-18  Mike Stump  <mikestump@comcast.net>
10052
10053         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10054
10055 2011-02-18  Jan Hubicka  <jh@suse.cz>
10056
10057         PR middle-end/47788
10058         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10059         to zero when the function is not inlinable at all.
10060
10061 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10062
10063         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10064         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10065         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10066         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10067         * config/pa/t-pa64: Likewise.
10068         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10069
10070 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10071
10072         PR driver/47787
10073         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10074
10075 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10076
10077         PR target/47792
10078         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10079
10080 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10081
10082         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10083         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10084         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10085         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10086         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10087         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10088         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10089         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10090         m32r_legitimate_address_p): New functions.
10091         * config/m32r/constraints.md (constraint "S"): Don't use
10092         STORE_PREINC_PREDEC_P.
10093         (constraint "U"): Don't use LOAD_POSTINC_P.
10094
10095 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10096
10097         PR rtl-optimization/46178
10098         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10099         compute ira_hard_regno_cover_class[].
10100
10101 2011-02-18  Richard Guenther  <rguenther@suse.de>
10102
10103         PR lto/47798
10104         * lto-streamer.h (lto_global_var_decls): Declare.
10105         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10106         statics for global var processing.
10107
10108 2011-02-18  Richard Guenther  <rguenther@suse.de>
10109
10110         PR tree-optimization/47737
10111         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10112         edge dominance check.
10113
10114 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10115
10116         PR debug/47780
10117         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10118         avoid invalid rtx sharing.
10119
10120 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10121
10122         * doc/cpp.texi (Obsolete Features): Add background on the
10123         origin of assertions.
10124
10125 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10126
10127         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10128         objc_abi == 2.
10129         * config/darwin.c (output_objc_section_asm_op): Added support for
10130         ABI v1 and v2.
10131         (is_objc_metadata): New.
10132         (darwin_objc2_section): New.
10133         (darwin_objc1_section): New.
10134         (machopic_select_section): Added support for ABI v1 and v2.
10135         (darwin_emit_objc_zeroed): New.
10136         (darwin_output_aligned_bss): Detect objc metadata and treat it
10137         appropriately.
10138         (darwin_asm_output_aligned_decl_common): Same.
10139         (darwin_asm_output_aligned_decl_local): Same.
10140         * config/darwin-sections.def: Updated for ABI v1 and v2.
10141         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10142         compiling Objective-C code for the NeXT runtime, default to using
10143         ABI version 0 for 32-bit, and version 2 for 64-bit.
10144
10145 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10146
10147         * common.opt (optimize_fast): New Variable.
10148         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10149         instead of local variable ofast.
10150
10151 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10152
10153         * doc/invoke.texi (fobjc-abi-version): Documented.
10154         (fobjc-nilcheck): Documented.
10155         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10156         version.
10157
10158 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10159
10160         PR driver/47390
10161         * common.opt (export-dynamic): New Driver option.
10162         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10163
10164 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10165
10166         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10167
10168 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10169             Jan Hubicka  <jh@suse.cz>
10170
10171         PR debug/47106
10172         PR debug/47402
10173         * cfgexpand.c (account_used_vars_for_block): Remove.
10174         (estimated_stack_frame_size): Use referenced vars.
10175         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10176         that were referenced in the original function.  Test src_fn
10177         rather than cfun.  Drop redundant get_var_ann.
10178         (setup_one_parameter): Drop redundant get_var_ann.
10179         (declare_return_variable): Likewise.
10180         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10181         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10182         * ipa-inline.c (compute_inline_parameters): Do not compute
10183         disregard_inline_limits here.
10184         (compute_inlinable_for_current, pass_inlinable): New.
10185         (pass_inline_parameters): Require PROP_referenced_vars.
10186         * cgraphunit.c (cgraph_process_new_functions): Don't run
10187         compute_inline_parameters explicitly unless function is in SSA form.
10188         (cgraph_analyze_function): Set .disregard_inline_limits.
10189         * tree-sra.c (convert_callers): Compute inliner parameters
10190         only for functions already in SSA form.
10191
10192 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10193
10194         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10195         -mlittle-endian-data.
10196
10197 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10198
10199         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10200         -mno-fpu, not -fpu and -no-fpu.
10201         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10202         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10203
10204 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10205
10206         PR target/43653
10207         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10208         input reload with PLUS RTX.
10209
10210 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10211
10212         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10213         of InverseVar(MDMX).
10214
10215 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10216
10217         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10218         --m4-340.
10219
10220 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10221
10222         * config/mn10300/mn10300.opt (mno-crt0): New.
10223
10224 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10225
10226         * config/m68k/uclinux.opt (static-libc): New Driver option.
10227
10228 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10229
10230         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10231
10232 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10233
10234         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10235         %{muser-extend-enabled}.
10236
10237 2011-02-16  Richard Guenther  <rguenther@suse.de>
10238
10239         PR tree-optimization/47738
10240         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10241         the TODO from tree_predictive_commoning.
10242
10243 2011-02-15  Jeff Law  <law@redhat.com>
10244
10245         Revert
10246         2011-01-25  Jeff Law  <law@redhat.com>
10247
10248         PR rtl-optimization/37273
10249         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10250         handle them like argument loads from stack slots.  Do not double
10251         count memory for memory constants and argument loads from stack slots.
10252
10253 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10254
10255         PR middle-end/47725
10256         * combine.c (cant_combine_insn_p): Revert the last change.
10257
10258 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10259
10260         PR target/47755
10261         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10262         mode for vector constants.  Remove code that checks for TImode.
10263
10264 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10265
10266         PR debug/47106
10267         PR debug/47402
10268         * cgraph.h (compute_inline_parameters): Return void.
10269         * ipa-inline.c (compute_inline_parameters): Adjust.
10270
10271 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10272
10273         PR debug/47106
10274         PR debug/47402
10275         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10276         rather than decl.
10277         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10278         * ipa-inline.c (compute_inline_parameters): Adjust.
10279
10280 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10281
10282         PR debug/47106
10283         PR debug/47402
10284         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10285         Adjust all users.  Pass FN to...
10286         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10287         fn argument.
10288         * ipa-struct-reorg.c: Adjust.
10289         * tree-dfa.c: Adjust.
10290         * tree-into-ssa.c: Adjust.
10291         * tree-sra.c: Adjust.
10292         * tree-ssa-alias.c: Adjust.
10293         * tree-ssa-live.c: Adjust.
10294         * tree-ssa.c: Adjust.
10295         * tree-ssanames.c: Adjust.
10296         * tree-tailcall.c: Adjust.
10297
10298 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10299
10300         PR debug/47106
10301         PR debug/47402
10302         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10303         Adjust all callers.
10304         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10305         * tree-flow-inline.h: Adjust.
10306         * gimple-pretty-print.c: Adjust.
10307         * tree-into-ssa.c: Adjust.
10308         * tree-ssa.c: Adjust.
10309         * cfgexpand.c: Adjust.
10310
10311 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10312
10313         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10314         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10315         (EXTRA_CONSTRAINT): Delete.
10316         * config/iq2000/constraints.md: New file.
10317         * config/iq2000/iq2000.md: Include it.
10318         (define_insn ""): Delete.
10319         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10320         unsupported constraint letters from patterns.
10321         (call_value, call_value_internal1): Likewise.
10322         (call_value_multiple_internal1): Likewise.
10323
10324 2011-02-15  Nick Clifton  <nickc@redhat.com>
10325
10326         * config/mn10300/mn10300.c: Include tm-constrs.h.
10327         (struct liw_data): New data structure describing an LIW candidate
10328         instruction.
10329         (extract_bundle): Use struct liw_data.  Allow small integer
10330         operands for some instructions.
10331         (check_liw_constraints): Use struct liw_data.  Remove swapped
10332         parameter.  Add comments describing the checks.  Fix bug when
10333         assigning the source of liw1 to the source of liw2.
10334         (liw_candidate): Delete.  Code moved into extract_bundle.
10335         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10336         before swapping.
10337         * config/mn10300/predicates.md (liw_operand): New predicate.
10338         Allows registers and small integer constants.
10339         * config/mn10300/constraints.md (O): New constraint.  Accetps
10340         integers in the range -8 to +7 inclusive.
10341         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10342         for moving a small integer into a register.  Give this alternative
10343         LIW attributes.
10344         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10345         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10346         using the J,K,L and M constraints,
10347         (liw): Remove SI mode on second operands to allow for HI and QI
10348         mode values.
10349         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10350         instruction.
10351
10352 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10353
10354         PR middle-end/47725
10355         * combine.c (cant_combine_insn_p): Check zero/sign extended
10356         hard registers.
10357
10358 2011-02-15  Richard Guenther  <rguenther@suse.de>
10359
10360         PR tree-optimization/47743
10361         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10362         for a non-type-compatible VN lookup bail out.
10363
10364 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10365
10366         * config/fr30/constraints.md: New file.
10367         * config/fr30/fr30.md: Include it.
10368         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10369         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10370         (EXTRA_CONSTRAINT): Delete.
10371
10372 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10373
10374         * config/frv/constraints.md: New file.
10375         * config/frv/predicates.md: Include it.
10376         * config/frv/frv.c (reg_class_from_letter): Delete.
10377         (frv_option_override): Don't initialize it.
10378         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10379         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10380         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10381         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10382         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10383         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10384         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10385         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10386         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10387         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10388         (REG_CLASS_FROM_CONSTRAINT): Delete.
10389
10390 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10391
10392         PR middle-end/47581
10393         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10394         if frame size is 0 in a leaf function.
10395
10396 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10397
10398         PR pch/14940
10399         * config/alpha/host-osf.c: New file.
10400         * config/alpha/x-osf: New file.
10401         * config.host (alpha*-dec-osf*): Use it.
10402
10403 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10404
10405         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10406         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10407         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10408         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10409         type to const_rtx.
10410         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10411
10412 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10413
10414         * config/stormy16/constraints.md: New file.
10415         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10416         Use satisfies_constraint_Q and satisfies_constraint_R.
10417         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10418         Delete.
10419         (xstormy16_legitiamte_address_p): Declare.
10420         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10421         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10422         (EXTRA_CONSTRAINT): Delete.
10423         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10424         Un-staticize.
10425         (xstormy16_extra_constraint_p): Delete.
10426
10427 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10428
10429         PR tree-optimization/46494
10430         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10431         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10432         (pass_rtl_loop_done): Add TODO_verify_flow.
10433         * fwprop.c (pass_rtl_fwprop): Likewise.
10434         * modulo-sched.c (pass_sms): Likewise.
10435         * tree-ssa-dom.c (pass_dominator): Likewise.
10436         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10437         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10438         (pass_tree_loop_done): Likewise.
10439         * tree-ssa-pre.c (execute_pre): Likewise.
10440         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10441         * tree-ssa-sink.c (pass_sink_code): Likewise.
10442         * tree-vrp.c (pass_vrp): Likewise.
10443
10444 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10445
10446         * config/v850/constraints.md: New file.
10447         * config/v850/v850.md: Include it.
10448         * config/v850/predicates.md (reg_or_0_operand): Use
10449         satisfies_constraint_G.
10450         (special_symbolref_operand): Use satisfies_constraint_K.
10451         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10452         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10453         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10454         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10455         (EXTRA_CONSTRAINT): Delete.
10456         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10457         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10458         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10459
10460 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10461
10462         PR target/47696
10463         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10464         description.
10465
10466 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10467
10468         * config/mcore/constraints.md: New file.
10469         * config/mcore/mcore.md: Include it.
10470         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10471         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10472         (REG_CLASS_FROM_LETTER): Delete.
10473         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10474         insn_const_int_ok_for_constraint.
10475         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10476         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10477         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10478         (EXTRA_CONSTRAINT): Delete.
10479
10480 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10481
10482         PR ada/41929
10483         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10484         (IS_SIGHANDLER): Define.
10485         (sparc64_is_sighandler): New function, split off from
10486         sparc64_fallback_frame_state.
10487         (sparc_is_sighandler): New function, split off from
10488         sparc_fallback_frame_state.
10489         (sparc64_fallback_frame_state): Merge with ...
10490         (sparc_fallback_frame_state): ... this into ...
10491         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10492         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10493         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10494         stack instead of hardcoded offsets.
10495
10496 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10497
10498         PR target/45808
10499         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10500
10501 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10502
10503         * configure: Regenerate.
10504
10505 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10506
10507         PR driver/45731
10508         * gcc.c (asm_options): Correct spec matching --target-help.
10509
10510 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10511
10512         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10513         to gimple call error.
10514
10515 2011-02-12  Mike Stump  <mikestump@comcast.net>
10516
10517         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10518         comments in backslash regions.
10519
10520 2011-02-12  Mike Stump  <mikestump@comcast.net>
10521             Jakub Jelinek  <jakub@redhat.com>
10522             Iain Sandoe  <iains@gcc.gnu.org>
10523
10524         PR target/47324
10525         * dwarf2out.c (output_cfa_loc): When required, apply the
10526         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10527         (output_loc_sequence): Likewise.
10528         (output_loc_operands_raw): Likewise.
10529         (output_loc_sequence_raw): Likewise.
10530         (output_cfa_loc): Likewise.
10531         (output_loc_list): Suppress register number adjustment when
10532         calling output_loc_sequence()
10533         (output_die): Likewise.
10534
10535 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10536
10537         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10538         Remove macros.
10539         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10540         xtensa_memory_move_cost): New functions.
10541         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10542
10543 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10544
10545         PR lto/47225
10546         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10547         in the current directory.
10548         * configure: Rebuilt.
10549
10550 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10551
10552         * config/darwin.c (darwin_override_options): Add a hunk missed
10553         from the commit of r168571.  Trim comment line lengths and
10554         correct indents of the preceding block.
10555
10556 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10557
10558         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10559         the switch.
10560
10561 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10562
10563         * common.opt (nostartfiles): New Driver option.
10564
10565 2011-02-11  Xinliang David Li  <davidxl@google.com>
10566
10567         PR tree-optimization/47707
10568         * tree-chrec.c (convert_affine_scev): Keep type precision.
10569
10570 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10571
10572         PR tree-optimization/47420
10573         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10574
10575 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10576
10577         PR rtl-optimization/47614
10578         * rtl.h (check_for_inc_dec): Declare.
10579         * dse.c (check_for_inc_dec): Externalize...
10580         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10581         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10582
10583 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10584
10585         PR driver/47678
10586         * gcc.c (main): Do not compile inputs if there were errors in
10587         option handling.
10588         * opts-common.c (read_cmdline_option): Check for wrong language
10589         after other error checks.
10590
10591 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
10592
10593         * cgraph.c: Fix comment typos.
10594         * cgraph.h: Likewise.
10595         * cgraphunit.c: Likewise.
10596         * ipa-cp.c: Likewise.
10597         * ipa-inline.c: Likewise.
10598         * ipa-prop.c: Likewise.
10599         * ipa-pure-const.c: Likewise.
10600         * ipa-ref.c: Likewise.
10601         * ipa-reference.c: Likewise.
10602
10603 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10604
10605         PR debug/47684
10606         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10607
10608 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10609
10610         PR testsuite/47400
10611         * doc/sourcebuild.texi (Require Support): Document
10612         dg-require-ascii-locale.
10613
10614 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
10615
10616         * doc/lto.texi (Write summary): Fix missing parentheses.
10617
10618 2011-02-10  DJ Delorie  <dj@redhat.com>
10619
10620         * config/m32c/m32c.c (m32c_option_override): Disable
10621         -fcombine-stack-adjustments until flag value tracking and compare
10622         optimization can be rewritten.
10623
10624 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
10625
10626         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10627         PROCESSOR_POWER7.
10628         (PROCESSOR_DEFAULT64): Likewise.
10629
10630 2011-02-10  Richard Henderson  <rth@redhat.com>
10631
10632         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10633         change from 2011-02-03.
10634         * config/rx/rx.c (flags_from_code): Likewise.
10635         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10636         is valid, n/pz otherwise.
10637         (rx_select_cc_mode): Return CCmode if Y is not zero.
10638
10639 2011-02-10  Richard Guenther  <rguenther@suse.de>
10640
10641         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10642
10643 2011-02-10  Richard Guenther  <rguenther@suse.de>
10644
10645         PR tree-optimization/47677
10646         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10647
10648 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10649
10650         PR target/47665
10651         * combine.c (make_compound_operation): Only change shifts into
10652         multiplication for SCALAR_INT_MODE_P.
10653
10654 2011-02-10  Jie Zhang  <jie@codesourcery.com>
10655
10656         PR testsuite/47622
10657         Revert
10658         2011-02-05  Jie Zhang  <jie@codesourcery.com>
10659         PR debug/42631
10660         * web.c (entry_register): Don't clobber the number of the
10661         first uninitialized reference in used[].
10662
10663 2011-02-09  Richard Guenther  <rguenther@suse.de>
10664
10665         PR tree-optimization/47664
10666         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10667         all edges again.
10668
10669 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
10670
10671         PR target/46481
10672         PR target/47032
10673         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10674         PROCESSOR_POWER7.
10675         (PROCESSOR_DEFAULT64): Same.
10676         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10677
10678 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10679
10680         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10681
10682 2011-02-09  Martin Jambor  <mjambor@suse.cz>
10683
10684         PR middle-end/45505
10685         * tree-sra.c (struct access): New flags grp_scalar_read and
10686         grp_scalar_write.  Changed description of assignment read and write
10687         flags.
10688         (dump_access): Dump new flags, reorder all of them.
10689         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10690         to detect multiple scalar reads.
10691         (analyze_access_subtree): Use the new scalar read write flags instead
10692         of the old flags.  Adjusted comments.
10693
10694 2011-02-08  DJ Delorie  <dj@redhat.com>
10695
10696         PR target/47548
10697         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10698         patterns.
10699
10700 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10701
10702         * config/m68k/uclinux.opt: New.
10703         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10704
10705 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10706
10707         * config/cris/elf.opt (sim): New Driver option.
10708
10709 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10710
10711         * config/xtensa/elf.opt: New.
10712         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10713
10714 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10715
10716         * config/vax/elf.opt: New.
10717         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10718
10719 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10720
10721         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10722
10723 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10724
10725         * config/gnu-user.opt: New.
10726         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10727         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10728         *-*-uclinux*): Use gnu-user.opt.
10729
10730 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
10731
10732         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10733         * config/i386/gnu.h (CPP_SPEC): Likewise.
10734
10735 2011-02-08  Ian Lance Taylor  <iant@google.com>
10736
10737         * common.opt (fcx-limited-range): Add SetByCombined flag.
10738         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10739         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10740         (fassociative-math, freciprocal-math): Likewise.
10741         (funsafe-math-optimizations): Likewise.
10742         * opth-gen.awk: Handle SetByCombined.
10743         * optc-gen.awk: Likewise.
10744         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10745         (set_unsafe_math_optimizations_flags): Likewise.
10746         * doc/options.texi (Option properties): Document SetByCombined.
10747
10748 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10749
10750         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10751         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10752         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10753         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10754         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10755
10756 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
10757
10758         PR tree-optimization/46834
10759         PR tree-optimization/46994
10760         PR tree-optimization/46995
10761         * graphite-sese-to-poly.c (used_outside_reduction): New.
10762         (detect_commutative_reduction): Call used_outside_reduction.
10763         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10764         translate_scalar_reduction_to_array only when at least one
10765         loop-phi/close-phi tuple has been detected.
10766
10767 2011-02-08  Richard Guenther  <rguenther@suse.de>
10768
10769         PR middle-end/47639
10770         * tree-vect-generic.c (expand_vector_operations_1): Update
10771         stmts here ...
10772         (expand_vector_operations): ... not here.  Cleanup EH info
10773         and the CFG if required.
10774
10775 2011-02-08  Richard Guenther  <rguenther@suse.de>
10776
10777         PR tree-optimization/47641
10778         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10779         require type compatibility.
10780
10781 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10782
10783         * gimple-low.c (lower_function_body): Don't remove the location of
10784         the return statement here.
10785         (lower_gimple_return): Do it here instead but only if the return
10786         statement is actually used twice.
10787
10788 2011-02-08  Richard Guenther  <rguenther@suse.de>
10789
10790         PR tree-optimization/47632
10791         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10792         unused up_to_stmt parameter, return whether cfg-cleanup is
10793         necessary, remove EH info properly.
10794         (forward_propagate_into_gimple_cond): Adjust caller.
10795         (forward_propagate_into_cond): Likewise.
10796         (forward_propagate_comparison): Likewise.
10797         (tree_ssa_forward_propagate_single_use_vars): Make
10798         forward_propagate_comparison case similar to the two others.
10799
10800 2011-02-08  Nick Clifton  <nickc@redhat.com>
10801
10802         * config/mn10300/mn10300.opt (mliw): New command line option.
10803         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10804         (liw_bundling): New automaton.
10805         (liw): New attribute.
10806         (liw_op): New attribute.
10807         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10808         (movsi_internal): Add LIW attributes.
10809         (andsi3): Likewise.
10810         (iorsi3): Likewise.
10811         (xorsi3): Likewise.
10812         (addsi3): Separate register and immediate alternatives.
10813         Add LIW attributes.
10814         (subsi3): Likewise.
10815         (cmpsi): Likewise.
10816         (aslsi3): Likewise.
10817         (lshrsi3): Likewise.
10818         (ashrsi3): Likewise.
10819         (liw): New pattern.
10820         * config/mn10300/mn10300.c (liw_op_names): New
10821         (mn10300_print_operand): Handle 'W' operand descriptor.
10822         (extract_bundle): New function.
10823         (check_liw_constraints): New function.
10824         (liw_candidate): New function.
10825         (mn10300_bundle_liw): New function.
10826         (mn10300_reorg): New function.
10827         (TARGET_MACHINE_DEPENDENT_REORG): Define.
10828         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10829         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10830         __LIW__ or __NO_LIW__.
10831         * doc/invoke.texi: Describe the -mliw command line option.
10832
10833 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10834
10835         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10836         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10837         pthread_mutex_unlock): Remove.
10838         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10839         * config/pa/t-pa64: Likewise.
10840         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10841         shared libc if not linking against libpthread.
10842         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10843
10844 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
10845
10846         PR target/47558
10847         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10848         on 10.6 and later to ensure that we always use the unwinder from
10849         the system.  Only add -no_compact_unwind when tarteting darwin
10850         10.6 or later.
10851
10852 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
10853
10854         PR target/46997
10855         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10856         (vec_interleave_lowv2sf): Ditto.
10857         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10858         (vec_extract_oddv2sf): Ditto.
10859
10860 2011-02-07  Mike Stump  <mikestump@comcast.net>
10861
10862         PR target/42333
10863         Add __ieee_divdc3 entry point.
10864         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10865         entry point.
10866         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10867         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10868         * config/darwin.c (darwin_rename_builtins): Add.
10869         * config/darwin-protos.h (darwin_rename_builtins): Add.
10870
10871 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
10872
10873         PR target/47636
10874         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10875         for the condition.
10876
10877 2011-02-07  Mike Stump  <mikestump@comcast.net>
10878
10879         * config/darwin.opt (mmacosx-version-min): Update default OS version.
10880
10881 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
10882
10883         PR target/47534
10884         * config/avr/libgcc.S (exit): Move .endfunc
10885
10886 2011-02-07  Richard Guenther  <rguenther@suse.de>
10887
10888         PR tree-optimization/47615
10889         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10890         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10891         (run_scc_vn): Initialize it.
10892         (visit_reference_op_load): Use it.
10893         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10894
10895 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10896
10897         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10898         DImode trapping arithmetic libfuncs.
10899
10900 2011-02-07  Richard Guenther  <rguenther@suse.de>
10901
10902         PR tree-optimization/47621
10903         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10904         two duplicates ...
10905         (execute_update_addresses_taken): ... here.  Make it more
10906         conservative in what we accept.
10907
10908 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10909
10910         * config/sparc/freebsd.h (ASM_SPEC): Define.
10911         * config/sparc/vxworks.h (ASM_SPEC): Define.
10912
10913 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10914
10915         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10916
10917 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
10918
10919         * doc/invoke.texi: Remove reference to compiler internals from
10920         user documentation.
10921
10922         * reg-notes.def: Remove REG_VALUE_PROFILE.
10923         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10924
10925 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
10926
10927         PR middle-end/47610
10928         * varasm.c (default_section_type_flags): If decl is NULL,
10929         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10930
10931 2011-02-05  Jie Zhang  <jie@codesourcery.com>
10932
10933         PR debug/42631
10934         * web.c (entry_register): Don't clobber the number of the
10935         first uninitialized reference in used[].
10936
10937 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
10938
10939         PR tree-optimization/46194
10940         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10941         (build_classic_dist_vector_1): Do not represent classic distance
10942         vectors when the access functions are variating in different loops.
10943
10944 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10945
10946         * config/mips/iris6.opt: New.
10947         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10948
10949 2011-02-04  Richard Henderson  <rth@redhat.com>
10950             Steve Ellcey  <sje@cup.hp.com>
10951
10952         PR target/46997
10953         * config/ia64/predicates.md (mux1_brcst_element): New.
10954         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10955         * config/ia64/ia64.c (ia64_unpack_assemble): New.
10956         (ia64_unpack_sign): New.
10957         (ia64_expand_unpack): Rewrite using new routines.
10958         (ia64_expand_widen_sum): Ditto.
10959         (ia64_expand_dot_prod_v8qi): Ditto.
10960         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10961         routines, add endian check.
10962         (pmpy2_even): Rename from pmpy2_r, add endian check.
10963         (pmpy2_odd): Rename from pmpy2_l, add endian check.
10964         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10965         (vec_widen_smult_hi_v4hi): Ditto.
10966         (vec_widen_umult_lo_v4hi): Ditto.
10967         (vec_widen_umult_hi_v4hi): Ditto.
10968         (mulv2si3): Change endian checks.
10969         (sdot_prodv4hi): Rewrite with new calls.
10970         (udot_prodv4hi): New.
10971         (vec_pack_ssat_v4hi): Add endian check.
10972         (vec_pack_usat_v4hi): Ditto.
10973         (vec_pack_ssat_v2si): Ditto.
10974         (max1_even): Rename from max1_r, add endian check.
10975         (max1_odd): Rename from max1_l, add endian check.
10976         (*mux1_rev): Format change.
10977         (*mux1_mix): Ditto.
10978         (*mux1_shuf): Ditto.
10979         (*mux1_alt): Ditto.
10980         (*mux1_brcst_v8qi): Use new predicate.
10981         (vec_extract_evenv8qi): Remove endian check.
10982         (vec_extract_oddv8qi): Ditto.
10983         (vec_interleave_lowv4hi): Format change.
10984         (vec_interleave_highv4hi): Ditto.
10985         (mix2_even): Rename from mix2_r, add endian check.
10986         (mix2_odd): Rename from mux2_l, add endian check.
10987         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10988         (vec_extract_evenodd_helper): Format change.
10989         (vec_extract_evenv4hi): Remove endian check.
10990         (vec_extract_oddv4hi): Remove endian check.
10991         (vec_interleave_lowv2si): Format change.
10992         (vec_interleave_highv2si): Format change.
10993         (vec_initv2si): Remove endian check.
10994         (vecinit_v2si): Add endian check.
10995         (reduc_splus_v2sf): Add endian check.
10996         (reduc_smax_v2sf): Ditto.
10997         (reduc_smin_v2sf): Ditto.
10998         (vec_initv2sf): Remove endian check.
10999         (fpack): Add endian check.
11000         (fswap): Add endian check.
11001         (vec_interleave_highv2sf): Add endian check.
11002         (vec_interleave_lowv2sf): Add endian check.
11003         (fmix_lr): Add endian check.
11004         (vec_setv2sf): Format change.
11005         (*vec_extractv2sf_0_be): Use shift to extract operand.
11006         (*vec_extractv2sf_1_be): New.
11007         (vec_pack_trunc_v4hi): Add endian check.
11008         (vec_pack_trunc_v2si): Format change.
11009
11010 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11011
11012         PR inline-asm/23200
11013         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11014         do bb, locus and block comparison and disallow loads if it is not set.
11015         (stmt_is_replaceable_p): New function.
11016         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11017         callers.
11018         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11019         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11020         SSA_NAME_DEF_STMT.
11021         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11022
11023 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11024
11025         * config/rs6000/xilinx.opt: New.
11026         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11027
11028 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11029
11030         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11031
11032 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11033
11034         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11035         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11036         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11037         secondary_reload_info, xtensa_secondary_reload): Remove.
11038         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11039         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11040         (xtensa_preferred_reload_class): Make static. Change return and
11041         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11042         Use CONST_DOUBLE_P predicate.
11043         (xtensa_preferred_output_reload_class): New function.
11044         (xtensa_secondary_reload): Make static.
11045
11046 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11047
11048         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11049         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11050         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11051
11052 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11053
11054         PR middle-end/31490
11055         * output.h (SECTION_RELRO): Define.
11056         (SECTION_MACH_DEP): Adjust.
11057         (get_variable_section): New prototype.
11058         * varpool.c (varpool_finalize_named_section_flags): New function.
11059         (varpool_assemble_pending_decls): Call it.
11060         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11061         * cgraphunit.c (cgraph_output_in_order): Call
11062         varpool_finalize_named_section_flags.
11063         * varasm.c (get_section): Allow section flags conflicts between
11064         relro and read-only sections if the section hasn't been declared yet.
11065         Set SECTION_OVERRIDE after diagnosing section type conflict.
11066         (get_variable_section): No longer static.
11067         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11068         readonly sections that need relocations.
11069         (decl_readonly_section_1): New function.
11070         (decl_readonly_section): Use it.
11071
11072         Revert:
11073         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11074                     Steve Ellcey  <sje@cup.hp.com>
11075
11076         PR middle-end/31490
11077         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11078         if section attribute used.
11079
11080 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11081
11082         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11083         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11084         (darwin_init_sections): Remove assertion.
11085
11086 2011-02-03  Nick Clifton  <nickc@redhat.com>
11087
11088         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11089         lt and ge.
11090         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11091         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11092         instead of "n" and "pz".
11093         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11094         CC_FLAG_S.
11095
11096 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11097
11098         PR target/47312
11099         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11100         fma, expand FMA_EXPR as fma{,f,l} call.
11101
11102         PR lto/47274
11103         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11104         copy them into a unsigned char variable and pass address of it to
11105         lto_output_data_stream.
11106
11107         PR target/47564
11108         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11109         around backend_init_target and lang_dependent_init_target calls.
11110         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11111         (verify_cgraph_node): Don't call set_cfun here.  Use
11112         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11113         Set error_found for incorrectly represented calls to thunks.
11114
11115 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11116
11117         PR debug/43092
11118         PR rtl-optimization/43494
11119         * rtl.h (for_each_inc_dec_fn): New type.
11120         (for_each_inc_dec): Declare.
11121         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11122         (for_each_inc_dec_find_inc_dec): New fn.
11123         (for_each_inc_dec_find_mem): New fn.
11124         (for_each_inc_dec): New fn.
11125         * dse.c (struct insn_size): Remove.
11126         (replace_inc_dec, replace_inc_dec_mem): Remove.
11127         (emit_inc_dec_insn_before): New fn.
11128         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11129         (canon_address): Pass mem modes to cselib_lookup.
11130         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11131         (cselib_lookup_from_insn): Likewise.
11132         (cselib_subst_to_values): Likewise.
11133         * cselib.c (find_slot_memmode): New var.
11134         (cselib_find_slot): New fn.  Use it instead of
11135         htab_find_slot_with_hash everywhere.
11136         (entry_and_rtx_equal_p): Use find_slot_memmode.
11137         (autoinc_split): New fn.
11138         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11139         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11140         Deal with autoinc.  Special-case recursion into MEMs.
11141         (cselib_hash_rtx): Likewise.
11142         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11143         address and MEM modes.
11144         (cselib_subst_to_values): Add memmode, pass it on.
11145         Deal with autoinc.
11146         (cselib_lookup): Add memmode argument, pass it on.
11147         (cselib_lookup_from_insn): Add memmode.
11148         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11149         (struct cselib_record_autoinc_data): New.
11150         (cselib_record_autoinc_cb): New fn.
11151         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11152         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11153         (cselib_process_insn): ... here.
11154         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11155         to cselib_lookup.
11156         (add_uses): Likewise, also to cselib_subst_to_values.
11157         (add_stores): Likewise.
11158         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11159         cselib_subst_to_values.
11160         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11161         * gcse.c (do_local_cprop): Adjusted.
11162         * postreload.c (reload_cse_simplify_set): Adjusted.
11163         (reload_cse_simplify_operands): Adjusted.
11164         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11165
11166 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11167
11168         PR tree-optimization/45122
11169         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11170         unsafe assumptions when there's more than one loop exit.
11171
11172 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11173
11174         PR target/47272
11175         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11176         Document using vector double with the load/store builtins, and
11177         that the load/store builtins always use Altivec instructions.
11178
11179         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11180         to use altivec memory instructions, even on VSX.
11181         (vector_altivec_store_<mode>): Ditto.
11182
11183         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11184         function.
11185
11186         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11187         V2DF, V2DI support to load/store overloaded builtins.
11188
11189         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11190         altivec load/store builtins for V2DF/V2DI types.
11191
11192         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11193         set avoid indexed addresses on power6 if -maltivec.
11194         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11195         vector_altivec_load/vector_altivec_store builtins.
11196         (altivec_expand_st_builtin): Ditto.
11197         (altivec_expand_builtin): Add VSX memory builtins.
11198         (rs6000_init_builtins): Add V2DI types to internal types.
11199         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11200         load/store builtins.
11201         (rs6000_address_for_altivec): Insure memory address is appropriate
11202         for Altivec.
11203
11204         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11205         vec_vsx_ld and vec_vsx_st.
11206         (vsx_store_<mode>): Ditto.
11207
11208         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11209         variables to hold long long types for VSX vector memory builtins.
11210         (RS6000_BTI_unsigned_long_long): Ditto.
11211         (long_long_integer_type_internal_node): Ditti.
11212         (long_long_unsigned_type_internal_node): Ditti.
11213
11214         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11215         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11216         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11217
11218         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11219         short cuts.
11220         (vec_vsx_st): Ditto.
11221
11222 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11223
11224         * config/pa/pa-hpux10.opt: New.
11225         * config/hpux11.opt (pthread): New Driver option.
11226         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11227         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11228
11229 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11230
11231         * config/ia64/vms.opt: New.
11232         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11233
11234 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11235
11236         PR target/47580
11237         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11238         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11239         generator functions.
11240         (vsx_floatuns<VSi><mode>2): Ditto.
11241         (vsx_fix_trunc<mode><VSi>2): Ditto.
11242         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11243
11244 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11245
11246         * config/i386/djgpp.opt (posix): New Driver option.
11247
11248 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11249
11250         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11251         Move to the unsupported targets list.
11252
11253 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11254
11255         PR rtl-optimization/47525
11256         * df-scan.c: Update copyright years.
11257         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11258         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11259
11260 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11261
11262         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11263         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11264         (ASM_OUTPUT_ASCII): Remove.
11265         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11266
11267 2011-02-02  Jeff Law  <law@redhat.com>
11268
11269         PR middle-end/47543
11270         * reload.c (find_reloads_address): Handle reg+d address where both
11271         components are invalid by reloading the entire address.
11272
11273 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11274             Richard Guenther  <rguenther@suse.de>
11275
11276         PR tree-optimization/40979
11277         PR bootstrap/47044
11278         * passes.c (init_optimization_passes): After LIM call copy_prop
11279         and DCE to clean up.
11280         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11281
11282 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11283
11284         PR tree-optimization/47576
11285         PR tree-optimization/47555
11286         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11287         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11288         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11289         * tree-scalar-evolution.c (follow_ssa_edge): Use
11290         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11291
11292 2011-02-02  Richard Guenther  <rguenther@suse.de>
11293
11294         PR tree-optimization/47566
11295         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11296
11297 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11298
11299         PR debug/47106
11300         PR debug/47402
11301         * tree-inline.c (declare_return_variable): Remove unused caller
11302         variable.
11303
11304         PR debug/47106
11305         PR debug/47402
11306         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11307         * cfgexpand.c (account_used_vars_for_block): Use them.
11308         * tree-nrv.c (tree_nrv): Likewise.
11309         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11310         (dump_scope_block): Likewise.
11311         (remove_unused_locals): Likewise.
11312
11313         PR debug/47106
11314         PR debug/47402
11315         * tree-inline.c (declare_return_variable): Add result decl to
11316         local decls only once.
11317         * gimple-low.c (record_vars_into): Mark newly-created variables
11318         as referenced.
11319
11320 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11321
11322         PR debug/47498
11323         PR debug/47501
11324         PR debug/45136
11325         PR debug/45130
11326         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11327         debug insns.
11328         (no_real_insns_p, schedule_block, set_priorities): Drop special
11329         treatment of boundary debug insns.
11330         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11331         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11332         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11333         (BOUNDARY_DEBUG_INSN_P): Likewise.
11334         (SCHEDULE_DEBUG_INSN_P): Likewise.
11335         * sched-rgn.c (init_ready_list): Drop special treatment of
11336         boundary debug insns.
11337         * final.c (rest_of_clean_state): Clear notes' BB.
11338
11339 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11340
11341         * config/openbsd.opt (assert=): New Driver option.
11342
11343 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11344
11345         * config/i386/nto.opt: New.
11346         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11347
11348 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11349
11350         * config/i386/netware.opt: New.
11351         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11352
11353 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11354
11355         * config/interix.opt (posix): New Driver option.
11356
11357 2011-02-01  DJ Delorie  <dj@redhat.com>
11358
11359         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11360
11361         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11362         class for A0/A1.
11363
11364 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11365
11366         PR tree-optimization/47561
11367         * toplev.c (process_options): Print the Graphite flags.  Add
11368         flag_loop_flatten to the list of options requiring Graphite.
11369
11370 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11371
11372         * config/i386/cygming.opt (posix): New Driver option.
11373
11374 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11375
11376         * config/arm/vxworks.opt: New.
11377         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11378
11379 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11380
11381         * config/alpha/elf.opt: New.
11382         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11383         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11384
11385 2011-02-01  Richard Guenther  <rguenther@suse.de>
11386
11387         PR tree-optimization/47559
11388         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11389         store-motion on references that can throw.
11390
11391 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11392
11393         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11394         * tree-pass.h (TDF_CSELIB): New macro.
11395         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11396         cselib_lookup): Check for it rather than for TDF_DETAILS.
11397
11398 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11399
11400         PR driver/47547
11401         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11402         is HOST_BIT_BUCKET.
11403
11404         * opts.c (finish_options): Don't add x_aux_base_name if it is
11405         HOST_BIT_BUCKET.
11406
11407 2011-02-01  Richard Guenther  <rguenther@suse.de>
11408
11409         PR tree-optimization/47555
11410         Revert
11411         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11412
11413         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11414
11415 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11416
11417         PR gcc/46692
11418         * config/lm32/t-lm32: Add multilib for all CPU options.
11419
11420 2011-02-01  Richard Guenther  <rguenther@suse.de>
11421
11422         PR tree-optimization/47541
11423         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11424         sure to have a field at offset zero.
11425
11426 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11427
11428         * config/arc/arc.opt (EB, EL): New Driver options.
11429
11430 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11431
11432         * config/alpha/osf5.opt: New.
11433         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11434
11435 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11436
11437         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11438
11439 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11440
11441         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11442         -floop-interchange.
11443         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11444         is an alias of -floop-interchange and that it requires the
11445         Graphite infrastructure.
11446         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11447         flag_loop_interchange based on the value of flag_tree_loop_linear.
11448
11449 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11450             Richard Guenther  <rguenther@suse.de>
11451
11452         PR tree-optimization/47538
11453         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11454         type instead of r1type, except for comparisons.  For right
11455         shifts and comparisons punt if there are mismatches in
11456         sizetype vs. non-sizetype types.
11457
11458 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11459
11460         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11461         avx_runtime.
11462
11463 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11464
11465         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11466         version number.
11467         * configure: Regenerate.
11468
11469 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11470
11471         * configure.ac (gcc_cv_ld_static_option): Define.
11472         (gcc_cv_ld_dynamic_option): Define.
11473         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11474         instead.
11475         (HAVE_LD_STATIC_DYNAMIC): Update message.
11476         (LD_STATIC_OPTION): Define.
11477         (LD_DYNAMIC_OPTION): Define.
11478         * configure: Regenerate.
11479         * config.in: Regenerate.
11480         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11481         HAVE_LD_STATIC_DYNAMIC]: Use them.
11482
11483 2011-01-31  Nick Clifton  <nickc@redhat.com>
11484
11485         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11486         registers inside interrupt handlers if the handler is not a leaf
11487         function.
11488
11489 2011-01-31  Nick Clifton  <nickc@redhat.com>
11490
11491         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11492         reg_renumber returning an INVALID_REGNUM.
11493
11494 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11495
11496         PR libgcj/44341
11497         * doc/install.texi: Document host options discarded when cross
11498         configuring target libraries.
11499
11500 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11501
11502         Reverted:
11503         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11504         PR debug/45136
11505         PR debug/45130
11506         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11507         debug insns.
11508         (no_real_insns_p, schedule_block, set_priorities): Drop special
11509         treatment of boundary debug insns.
11510         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11511         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11512         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11513         (BOUNDARY_DEBUG_INSN_P): Likewise.
11514         (SCHEDULE_DEBUG_INSN_P): Likewise.
11515         * sched-rgn.c (init_ready_list): Drop special treatment of
11516         boundary debug insns.
11517         * final.c (rest_of_clean-state): Clear notes' BB.
11518
11519 2011-01-31  Alan Modra  <amodra@gmail.com>
11520
11521         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11522         toc relative expressions as we do in print_operand_address.
11523
11524 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11525
11526         * doc/extend.texi: Follow spelling conventions.
11527         * doc/invoke.texi: Fix a typo.
11528
11529 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11530
11531         * config/hpux11.opt: New.
11532         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11533         ia64*-*-hpux*): Use hpux11.opt.
11534
11535 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11536
11537         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11538         to tmake_file.
11539
11540 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11541
11542         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11543         support sites.
11544
11545 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11546
11547         * doc/install.texi (Binaries): Remove outdated reference for
11548         Motorola 68HC11/68HC12 downloads.
11549
11550 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11551
11552         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11553         Drepper's paper.
11554
11555 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11556
11557         PR bootstrap/47147
11558         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11559         used by NetBSD.
11560
11561 2011-01-28  Ahmad Sharif  <asharif@google.com>
11562
11563         * value-prof.c (check_counter): Corrected error message.
11564
11565 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11566
11567         * config/arm/arm.c (arm_legitimize_reload_address): New.
11568         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11569         arm_legitimize_reload_address.
11570         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11571
11572 2011-01-28  Ian Lance Taylor  <iant@google.com>
11573
11574         * godump.c (go_define): Ignore macros whose definitions include
11575         two adjacent operands.
11576
11577 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11578
11579         PR target/42894
11580         * varasm.c (force_const_mem): Store copy of x in desc->constant
11581         instead of x itself.
11582         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11583         itself into REG_EQUAL note.
11584
11585 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11586
11587         * config/freebsd.opt (posix, rdynamic): New Driver options.
11588
11589 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11590
11591         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11592         -Bstatic/-Bdynamic.
11593         * configure: Regenerate.
11594
11595 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
11596
11597         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11598         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11599
11600 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
11601
11602         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11603         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11604         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11605         (s390_preferred_reload_class): Make static. Change return and
11606         'rclass' argument type to reg_class_t.
11607
11608 2011-01-27  Jan Hubicka  <jh@suse.cz>
11609
11610         PR middle-end/46949
11611         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11612         (process_function_and_variable_attributes): Check defined weakrefs.
11613
11614 2011-01-27  Martin Jambor  <mjambor@suse.cz>
11615
11616         PR tree-optimization/47228
11617         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11618         build_ref_for_offset.
11619
11620 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11621
11622         * config/spu/spu-elf.h (ASM_SPEC): Remove.
11623
11624 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
11625
11626         PR rtl-optimization/46856
11627         * postreload.c (reload_combine_recognize_const_pattern): Do not
11628         separate cc0 setter and user on cc0 targets.
11629
11630 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
11631
11632         PR c/43082
11633         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11634         passed a VOID_TYPE expression, immediately emit an error and
11635         return error_mark_node.
11636
11637 2011-01-26  Jeff Law  <law@redhat.com>
11638
11639         PR rtl-optimization/47464
11640         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11641         rather than may_trap_p as needed.
11642
11643 2011-01-26  DJ Delorie  <dj@redhat.com>
11644
11645         PR rtl-optimization/46878
11646         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11647         setter/user dependency as well.
11648
11649 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11650
11651         PR rtl-optimization/44469
11652         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11653         after removing trivially dead basic blocks.
11654
11655 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11656
11657         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11658         * config/frv/frv.h (LINK_SPEC): Likewise.
11659         * config/i386/netware.h (LINK_SPEC): Likewise.
11660         * config/m68k/linux.h (ASM_SPEC): Likewise.
11661         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11662         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11663         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11664         * config/sparc/linux.h (ASM_SPEC): Likewise.
11665         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11666         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11667
11668 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11669
11670         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11671         * config/frv/frv.h (ASM_SPEC): Likewise.
11672         * config/m68k/linux.h (ASM_SPEC): Likewise.
11673         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11674         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11675         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11676         * config/sparc/linux.h (ASM_SPEC): Likewise.
11677         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11678         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11679
11680 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11681
11682         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11683         * config/frv/frv.h (LINK_SPEC): Likewise.
11684         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11685
11686 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11687
11688         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11689         * config/frv/frv.h (ASM_SPEC): Likewise.
11690         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11691         * config/m68k/linux.h (ASM_SPEC): Likewise.
11692         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11693         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11694         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11695         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11696         * config/sparc/linux.h (ASM_SPEC): Likewise.
11697         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11698         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11699         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11700
11701 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
11702
11703         PR target/46997
11704         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11705         (*mux2): Ditto.
11706         (vec_extract_evenodd_help): Ditto.
11707         (vec_extract_evenv4hi): Ditto.
11708         (vec_extract_oddv4hi): Ditto.
11709         (vec_interleave_lowv2si): Ditto.
11710         (vec_interleave_highv2si): Ditto.
11711         (vec_extract_evenv2si): Ditto.
11712         (vec_extract_oddv2si: Ditto.
11713         (vec_pack_trunc_v2si): Ditto.
11714
11715 2011-01-22  Jan Hubicka  <jh@suse.cz>
11716
11717         PR target/47237
11718         * cgraph.h (cgraph_local_info): New field can_change_signature.
11719         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11720         signature can change.
11721         (ipcp_estimate_growth): Call sequence simplify only if calle signature
11722         can change.
11723         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11724         (cgraph_function_versioning): We can not change signature of functions
11725         that don't allow that.
11726         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11727         (lto_input_node): Likewise.
11728         * ipa-inline.c (compute_inline_parameters): Compute
11729         local.can_change_signature.
11730         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11731         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11732         functions that can not change signature.
11733         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11734         init_cumulative_args): Do not use local calling conventions
11735         for functions that can not change signature.
11736
11737 2011-01-22  Jan Hubicka  <jh@suse.cz>
11738
11739         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11740
11741 2011-01-26  Richard Guenther  <rguenther@suse.de>
11742
11743         PR tree-optimization/47190
11744         * cgraphunit.c (process_common_attributes): New function.
11745         (process_function_and_variable_attributes): Use it.
11746
11747 2011-01-26  Richard Guenther  <rguenther@suse.de>
11748
11749         PR lto/47423
11750         * cgraphbuild.c (record_eh_tables): Record reference to personality
11751         function.
11752
11753 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
11754
11755         PR debug/45454
11756         * sel-sched.c (moveup_expr): Don't let debug insns prevent
11757         non-debug insns from moving up.
11758
11759 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11760
11761         PR target/40125
11762         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11763         t-dlldir{,-x} fragment for build and add it to tmake_file.
11764         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11765         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11766         * config/i386/t-dlldir: New file.
11767         (SHLIB_DLLDIR): Define.
11768         * config/i386/t-dlldir-x: New file.
11769         (SHLIB_DLLDIR): Define.
11770         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11771         (SHLIB_INSTALL): Use it.
11772
11773 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
11774
11775         PR target/47246
11776         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11777         lower bound of the allowed Thumb-2 coprocessor load/store
11778         index range to -256. Add explaining comment.
11779
11780 2011-01-25  Ian Lance Taylor  <iant@google.com>
11781
11782         * godump.c (go_define): Improve lexing of macro expansion to only
11783         accept expressions which match Go spec.
11784
11785 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11786
11787         PR c++/43601
11788         * tree.c (handle_dll_attribute): Handle it.
11789         * doc/extend.texi (@item dllexport): Mention it.
11790         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11791
11792 2011-01-25  Ian Lance Taylor  <iant@google.com>
11793
11794         PR tree-optimization/26854
11795         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11796         (decl_jump_unsafe): Move higher in file, with no other change.
11797         (bind): Set has_jump_unsafe_decl if appropriate.
11798         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11799         (check_earlier_gotos): Likewise.
11800         (c_check_switch_jump_warnings): Likewise.
11801
11802 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
11803
11804         * doc/invoke.texi (Warning Options): Add missing hyphen.
11805         (-fprofile-dir): Minor grammatical fixes.
11806         (-fbranch-probabilities): Likewise.
11807
11808 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11809
11810         PR debug/45136
11811         PR debug/45130
11812         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11813         debug insns.
11814         (no_real_insns_p, schedule_block, set_priorities): Drop special
11815         treatment of boundary debug insns.
11816         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11817         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11818         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11819         (BOUNDARY_DEBUG_INSN_P): Likewise.
11820         (SCHEDULE_DEBUG_INSN_P): Likewise.
11821         * sched-rgn.c (init_ready_list): Drop special treatment of
11822         boundary debug insns.
11823         * final.c (rest_of_clean-state): Clear notes' BB.
11824
11825 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11826
11827         * Makefile.in (LAMBDA_H): Removed.
11828         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11829         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11830         lambda-trans.o, and tree-loop-linear.o.
11831         (lto-symtab.o): Remove dependence on LAMBDA_H.
11832         (tree-loop-linear.o): Remove rule.
11833         (lambda-mat.o): Same.
11834         (lambda-trans.o): Same.
11835         (lambda-code.o): Same.
11836         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11837         (tree-vect-slp.o): Same.
11838         * hwint.h (gcd): Moved here.
11839         (least_common_multiple): Same.
11840         * lambda-code.c: Removed.
11841         * lambda-mat.c: Removed.
11842         * lambda-trans.c: Removed.
11843         * lambda.h: Removed.
11844         * tree-loop-linear.c: Removed.
11845         * lto-symtab.c: Do not include lambda.h.
11846         * omega.c (gcd): Removed.
11847         * passes.c (init_optimization_passes): Remove pass_linear_transform.
11848         * tree-data-ref.c (print_lambda_vector): Moved here.
11849         (lambda_vector_copy): Same.
11850         (lambda_matrix_copy): Same.
11851         (lambda_matrix_id): Same.
11852         (lambda_vector_first_nz): Same.
11853         (lambda_matrix_row_add): Same.
11854         (lambda_matrix_row_exchange): Same.
11855         (lambda_vector_mult_const): Same.
11856         (lambda_vector_negate): Same.
11857         (lambda_matrix_row_negate): Same.
11858         (lambda_vector_equal): Same.
11859         (lambda_matrix_right_hermite): Same.
11860         * tree-data-ref.h: Do not include lambda.h.
11861         (lambda_vector): Moved here.
11862         (lambda_matrix): Same.
11863         (dependence_level): Same.
11864         (lambda_transform_legal_p): Removed declaration.
11865         (lambda_collect_parameters): Same.
11866         (lambda_compute_access_matrices): Same.
11867         (lambda_vector_gcd): Same.
11868         (lambda_vector_new): Same.
11869         (lambda_vector_clear): Same.
11870         (lambda_vector_lexico_pos): Same.
11871         (lambda_vector_zerop): Same.
11872         (lambda_matrix_new): Same.
11873         * tree-flow.h (least_common_multiple): Removed declaration.
11874         * tree-parloops.c (lambda_trans_matrix): Moved here.
11875         (LTM_MATRIX): Same.
11876         (LTM_ROWSIZE): Same.
11877         (LTM_COLSIZE): Same.
11878         (LTM_DENOMINATOR): Same.
11879         (lambda_trans_matrix_new): Same.
11880         (lambda_matrix_vector_mult): Same.
11881         (lambda_transform_legal_p): Same.
11882         * tree-pass.h (pass_linear_transform): Removed declaration.
11883         * tree-ssa-loop.c (tree_linear_transform): Removed.
11884         (gate_tree_linear_transform): Removed.
11885         (pass_linear_transform): Removed.
11886         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11887         flag_loop_interchange.
11888
11889 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11890
11891         PR tree-optimization/47265
11892         PR tree-optimization/47443
11893         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11894         if name still has some uses.
11895
11896 2011-01-25  Martin Jambor  <mjambor@suse.cz>
11897
11898         PR tree-optimization/47382
11899         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11900         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11901
11902 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
11903
11904         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11905         sjlj_except_unwind_info.
11906
11907 2011-01-25  Richard Guenther  <rguenther@suse.de>
11908
11909         PR tree-optimization/47426
11910         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11911         visible functions results escape.
11912
11913 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11914
11915         PR target/45701
11916         * config/arm/arm.c (any_sibcall_uses_r3): New function.
11917         (arm_get_frame_offsets): Use it.
11918
11919 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11920             Jakub Jelinek  <jakub@redhat.com>
11921
11922         PR tree-optimization/47271
11923         * tree-if-conv.c (bb_postdominates_preds): New.
11924         (if_convertible_bb_p): Call bb_postdominates_preds.
11925         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11926         (predicate_scalar_phi): Call bb_postdominates_preds.
11927
11928 2011-01-25  Nick Clifton  <nickc@redhat.com>
11929
11930         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11931         * config/rx/rx.c (rx_function_value): Likewise.
11932         (rx_promote_function_mode): Likewise.
11933         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11934         in order to make it legitimate.
11935         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11936         make sure that the first operand is the same as the result register.
11937         (addsi3_unspec): Delete.
11938         (subdi3): Do not accept immediate operands.
11939         (subdi3_internal): Likewise.
11940
11941 2011-01-25  Jeff Law  <law@redhat.com>
11942
11943         PR rtl-optimization/37273
11944         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11945         handle them like argument loads from stack slots.  Do not double
11946         count memory for memory constants and argument loads from stack slots.
11947
11948 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11949
11950         PR tree-optimization/47427
11951         PR tree-optimization/47428
11952         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11953         coalesce if the new root var would be TREE_READONLY.
11954
11955 2011-01-25  Richard Guenther  <rguenther@suse.de>
11956
11957         PR middle-end/47414
11958         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11959         correct type for TBAA.
11960
11961 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11962
11963         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11964         (close_phi_written_to_memory): Call for_each_index with
11965         dr_indices_valid_in_loop.
11966
11967 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11968
11969         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11970         when it is initialized.
11971
11972 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11973
11974         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11975         call to graphite_find_data_references_in_stmt.
11976         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11977         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
11978         call to graphite_find_data_references_in_stmt.
11979         (analyze_drs_in_stmts): Same.
11980         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11981         in which the scalar analysis of indices is performed.
11982         (create_data_ref): Same.  Update call to dr_analyze_indices.
11983         (find_data_references_in_stmt): Update call to create_data_ref.
11984         (graphite_find_data_references_in_stmt): Same.
11985         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11986         declaration.
11987         (create_data_ref): Same.
11988         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11989         call to create_data_ref.
11990
11991 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11992
11993         * graphite-sese-to-poly.c (build_poly_scop): Move
11994         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11995
11996 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11997
11998         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11999         VAR_DECL, PARM_DECL, and RESULT_DECL.
12000
12001 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12002
12003         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12004         in a reduction PBB.
12005         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12006         that have already been marked as PBB_IS_REDUCTION.
12007
12008 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12009
12010         * graphite-scop-detection.c (same_close_phi_node): New.
12011         (remove_duplicate_close_phi): New.
12012         (make_close_phi_nodes_unique): New.
12013         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12014
12015 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12016
12017         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12018         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12019         of both data references to be the same.
12020
12021 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12022
12023         * graphite-dependences.c (build_lexicographical_constraint): Remove
12024         the gdim parameter.
12025         (build_lexicographical_constraint): Adjust call to
12026         ppl_powerset_is_empty.
12027         (dependence_polyhedron): Same.
12028         (graphite_legal_transform_dr): Same.
12029         (graphite_carried_dependence_level_k): Same.
12030         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12031         parameter.
12032         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12033
12034 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12035
12036         * graphite-sese-to-poly.c
12037         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12038         (close_phi_written_to_memory): New.
12039         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12040         and unshare_expr.
12041
12042 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12043
12044         * doc/install.texi: Update the expected version number of PPL to 0.11.
12045         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12046         #if PPL_VERSION_MINOR < 11.
12047
12048 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12049
12050         * graphite-dependences.c: Include graphite-cloog-util.h.
12051         (new_poly_ddr): Inlined into dependence_polyhedron.
12052         (free_poly_ddr): Moved close by new_poly_ddr.
12053         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12054         Early return NULL when ppl_powerset_is_empty returns true.
12055         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12056         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12057         (graphite_legal_transform_dr): Call new_poly_ddr.
12058         (graphite_carried_dependence_level_k): Same.
12059         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12060         (dot_transformed_deps_stmt_1): Removed.
12061         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12062         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12063         (dot_deps_1): Call dot_deps_2.
12064         * Makefile.in (graphite-dependences.o): Add missing dependence on
12065         graphite-cloog-util.h.
12066
12067 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12068
12069         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12070         (build_lexicographical_constraint): Same.
12071         (dependence_polyhedron_1): Same.
12072         (graphite_legal_transform_dr): Same.
12073         (graphite_carried_dependence_level_k): Same.
12074         * graphite-ppl.c (ppl_powerset_is_empty): New.
12075         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12076         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12077
12078 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12079
12080         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12081         the "a followed by b" relation and document it.
12082
12083 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12084
12085         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12086         iteration when the bag of constraints is empty.
12087
12088 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12089
12090         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12091
12092 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12093
12094         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12095         nest and two loop depths as parameters.
12096         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12097         lst_perfect_nestify.
12098
12099 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12100
12101         * graphite-dependences.c (print_pddr): Call
12102         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12103
12104 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12105
12106         * graphite-ppl.c (debug_gmp_value): New.
12107         * graphite-ppl.h (debug_gmp_value): Declared.
12108
12109 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12110
12111         * doc/install.texi: Document availability of cloog-0.16.
12112
12113 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12114
12115         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12116         invalid postdominance info.
12117
12118 2011-01-24  Jan Hubicka  <jh@suse.cz>
12119
12120         PR c/21659
12121         * doc/extend.texi (weak pragma): Drop claim that it must
12122         appear before definition.
12123         * varasm.c (merge_weak, declare_weak): Only sanity check
12124         that DECL is not output at a time it is declared weak.
12125
12126 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12127
12128         * machmode.def: Fixed comments.
12129
12130 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12131
12132         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12133
12134 2011-01-24  Paul Koning  <ni1d@arrl.net>
12135
12136         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12137         WORDS_BIG_ENDIAN.
12138
12139 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12140
12141         PR target/46519
12142         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12143         (block_info): Add scanned and prev.
12144         (move_or_delete_vzeroupper_2): Return if the basic block
12145         has been scanned and the upper 128bit state is unchanged
12146         from the last scan.
12147         (move_or_delete_vzeroupper_1): Return true if the exit
12148         state is changed.
12149         (move_or_delete_vzeroupper): Visit basic blocks using the
12150         work-list based algorithm based on vt_find_locations in
12151         var-tracking.c.
12152
12153         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12154
12155 2011-01-24  Nick Clifton  <nickc@redhat.com>
12156
12157         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12158         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12159         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12160         then define __v850e1__.
12161         * doc/invoke.texi: Document -mv850es.
12162
12163 2011-01-24  Richard Henderson  <rth@redhat.com>
12164
12165         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12166         compound unordered comparisons.
12167         * config/rx/rx.c (rx_split_fp_compare): Remove.
12168         * config/rx/rx-protos.h: Update.
12169         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12170         (cbranchsf4): Don't call rx_split_fp_compare.
12171         (*cbranchsf4): Use rx_split_cbranch.
12172         (*cmpsf): Don't accept "i" constraint.
12173         (*conditional_branch): Only valid after reload.
12174         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12175
12176 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12177
12178         PR target/47385
12179         * config/rs6000/altivec.md (vector constant splitters): Add
12180         support for creating vector single precision constants if -mvsx is
12181         used and we would create the constant using Altivec primitives.
12182
12183 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12184             Richard Sandiford  <rdsandiford@googlemail.com>
12185
12186         PR rtl-optimization/47166
12187         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12188         mechanism for PRE_MODIFY and POST_MODIFY.
12189         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12190         reloadreg.
12191
12192 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12193
12194         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12195
12196 2011-01-22  Jan Hubicka  <jh@suse.cz>
12197
12198         PR lto/47333
12199         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12200
12201 2011-01-22  Jan Hubicka  <jh@suse.cz>
12202
12203         PR tree-optimization/43884
12204         PR lto/44334
12205         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12206         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12207
12208 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12209
12210         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12211         * config/s390/s390.c (s390_register_move_cost,
12212         s390_memory_move_cost): New.
12213         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12214
12215 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12216
12217         PR middle-end/47401
12218         * except.c (sjlj_assign_call_site_values): Move setting the
12219         crtl->uses_eh_lsda flag to ...
12220         (sjlj_mark_call_sites): ... here.
12221         (sjlj_emit_function_enter): Support NULL dispatch label.
12222         (sjlj_build_landing_pads): In a function with no landing pads
12223         that still has must-not-throw regions, generate code to register
12224         a personality function with empty LSDA.
12225
12226 2011-01-21  Richard Henderson  <rth@redhat.com>
12227
12228         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12229
12230         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12231
12232         * compare-elim.c: New file.
12233         * Makefile.in (OBJS-common): Add it.
12234         (compare-elim.o): New.
12235         * common.opt (fcompare-elim): New.
12236         * opts.c (default_options_table): Add OPT_fcompare_elim.
12237         * tree-pass.h (pass_compare_elim_after_reload): New.
12238         * passes.c (init_optimization_passes): Add it.
12239         * recog.h: Protect against re-inclusion.
12240         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12241         * doc/invoke.texi (-fcompare-elim): Document it.
12242         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12243         * doc/tm.texi: Rebuild.
12244
12245 2011-01-22  Nick Clifton  <nickc@redhat.com>
12246
12247         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12248         rx_split_fp_compare.
12249
12250 2011-01-22  Nick Clifton  <nickc@redhat.com>
12251
12252         * config/rx/rx.md (UNSPEC_CONST): New.
12253         (deallocate_and_return): Wrap the amount popped off the stack in
12254         an UNSPEC_CONST in order to stop it being rejected by
12255         -mmax-constant-size.
12256         (pop_and_return): Add a "(return)" rtx.
12257         (call): Drop the immediate operand.
12258         (call_internal): Likewise.
12259         (call_value): Likewise.
12260         (call_value_internal): Likewise.
12261         (sibcall_internal): Likewise.
12262         (sibcall_value_internal): Likewise.
12263         (sibcall): Likewise.  Generate an explicit call using
12264         sibcall_internal.
12265         (sibcall_value): Likewise.
12266         (mov<>): FAIL if a constant operand is not legitimate.
12267         (addsi3_unpsec): New pattern.
12268
12269         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12270         (ok_for_max_constant): New function.
12271         (gen_safe_add): New function.
12272         (rx_expand_prologue): Use gen_safe_add.
12273         (rx_expand_epilogue): Likewise.
12274         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12275         UNSPEC CONSTs.
12276
12277 2011-01-21  Jeff Law  <law@redhat.com>
12278
12279         PR tree-optimization/47053
12280         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12281         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12282         statements are deleted.
12283         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12284         is nonempty, then purge dead edges and cleanup the CFG.
12285
12286 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12287
12288         PR debug/47402
12289         Temporarily revert:
12290         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12291         PR debug/47106
12292         * tree-dfa.c (create_var_ann): Mark variable as used.
12293
12294 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12295
12296         PR middle-end/45566
12297         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12298         notes from other section in hot/cold partitioning even if
12299         last_action is -3.  Increment call_site_base.
12300
12301         PR rtl-optimization/47366
12302         * fwprop.c (forward_propagate_into): Return bool.  If
12303         any changes are made, -fnon-call-exceptions is used and
12304         REG_EH_REGION note is present, call purge_dead_edges
12305         and return true if it purged anything.
12306         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12307         any EH edges were purged.
12308
12309 2011-01-21  Jeff Law  <law@redhat.com>
12310
12311         PR rtl-optimization/41619
12312         * caller-save.c (setup_save_areas): Break out code to determine
12313         which hard regs are live across calls by examining the reload chains
12314         so that it is always used.
12315         Eliminate code which checked REG_N_CALLS_CROSSED.
12316
12317 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12318
12319         PR tree-optimization/47355
12320         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12321         NOP has non-debug uses beyond PHIs in new_bb.
12322
12323 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12324
12325         PR debug/47106
12326         * cfgexpand.c (account_used_vars_for_block): Only account vars
12327         that are annotated as used.
12328         (estimated_stack_frame_size): Don't set TREE_USED.
12329         * tree-dfa.c (create_var_ann): Mark variable as used.
12330
12331 2011-01-21  Richard Guenther  <rguenther@suse.de>
12332
12333         PR middle-end/47395
12334         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12335
12336 2011-01-21  Richard Guenther  <rguenther@suse.de>
12337
12338         PR tree-optimization/47365
12339         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12340         (vn_reference_lookup_pieces): Adjust.
12341         (vn_reference_lookup): Likewise.
12342         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12343         (vn_reference_lookup_3): Only look through kills if in
12344         VN_WALKREWRITE mode.
12345         (vn_reference_lookup_pieces): Adjust.
12346         (vn_reference_lookup): Likewise.
12347         (visit_reference_op_load): Likewise.
12348         (visit_reference_op_store): Likewise.
12349         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12350         (compute_avail): Likewise.
12351         (eliminate): Likewise.
12352
12353 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12354
12355         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12356         DECL_IGNORED_P non-reg vars if they are used.
12357
12358         PR tree-optimization/47391
12359         * varpool.c (const_value_known_p): Return false if
12360         decl is volatile.
12361
12362 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12363
12364         PR bootstrap/47215
12365         * config/i386/i386.c (ix86_local_alignment): Handle
12366         case for va_list_type_node is nil.
12367         (ix86_canonical_va_list_type): Likewise.
12368
12369 2011-01-21  Alan Modra  <amodra@gmail.com>
12370
12371         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12372         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12373
12374 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12375
12376         * config/arm/arm.md (define_attr type): Rename f_load
12377         and f_store to f_fpa_load and f_fpa_store. Update.
12378         (write_conflict): Deal with rename fallout.
12379         (*push_fp_multi): Likewise.
12380         * config/arm/fpa.md (f_load): Use f_fpa_load.
12381         (f_store): Use f_fpa_store.
12382         (*movsf_fpa): Likewise.
12383         (*movdf_fpa): Likewise.
12384         (*movxf_fpa): Likewise.
12385         (*thumb2_movsf_fpa): Likewise.
12386         (*thumb2_movdf_fpa): Likewise.
12387         (*thumb2_movxf_fpa): Likewise.
12388         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12389         f_loadd and f_stored.
12390         (*thumb2_movdi_vfp): Likewise.
12391         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12392         (*thumb2_movsi_vfp): Likewise.
12393         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12394         Use f_loads instead of f_load.
12395         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12396
12397 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12398
12399         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12400         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12401         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12402         (xtensa_mode_dependent_address_p): New function.
12403         (constantpool_address_p): Make static. Change return type to bool.
12404         Change argument type to const_rtx. Use CONST_INT_P predicate.
12405
12406 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12407
12408         PR debug/46583
12409         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12410
12411 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12412
12413         PR debug/47283
12414         * cfgexpand.c (expand_debug_expr): Instead of generating
12415         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12416         etc. handling.
12417
12418 2011-01-20  Richard Guenther  <rguenther@suse.de>
12419
12420         PR middle-end/47370
12421         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12422         the pointer operand of MEM_REFs.
12423
12424 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12425
12426         PR tree-optimization/46130
12427         * ipa-split.c (consider_split): If return_bb contains non-virtual
12428         PHIs other than for retval or if split_function would not adjust it,
12429         refuse to split.
12430
12431 2011-01-20  Richard Guenther  <rguenther@suse.de>
12432
12433         PR tree-optimization/47167
12434         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12435         Revert previous change, only avoid enumeral type changes.
12436
12437 2011-01-19  Mike Stump  <mikestump@comcast.net>
12438
12439         * doc/tm.texi.in (BRANCH_COST): Englishify.
12440         * doc/tm.texi (BRANCH_COST): Likewise.
12441
12442 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12443
12444         PR c++/47291
12445         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12446         (gen_scheduled_generic_parms_dies): New functions.
12447         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12448         generation for the end of CU compilation.
12449         (dwarf2out_finish): Generate template parameters DIEs here.
12450
12451 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12452
12453         PR debug/46240
12454         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12455         debug bind stmt on merge edges.
12456
12457 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12458
12459         PR debug/47079
12460         PR debug/46724
12461         * function.c (instantiate_expr): Instantiate incoming rtl of
12462         implicit arguments, and recurse on VALUE_EXPRs.
12463         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12464         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12465
12466 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12467
12468         * c-parser.c (c_parser_for_statement): Initialize
12469         collection_expression.
12470
12471 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12472
12473         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12474
12475 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12476
12477         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12478         (LINK_SHLIB_SPEC): Don't use %(link_path).
12479         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12480
12481 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12482
12483         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12484         (NO_SHARED_LIB_SUPPORT): Remove.
12485         (LINK_SHLIB_SPEC): Remove one conditional definition.
12486
12487 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12488
12489         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12490         %{call_shared}.
12491         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12492         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12493         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12494         %{call_shared} and conditionals on these options not being passed.
12495         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12496         %{call_shared}.
12497
12498 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12499
12500         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12501         simplify.
12502
12503         * ipa-split.c: Spelling fixes.
12504
12505 2011-01-19  Richard Henderson  <rth@redhat.com>
12506
12507         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12508         (*mulsi3): Likewise.
12509
12510         * longlong.h [__mn10300__] (count_leading_zeros): New.
12511         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12512         [__mn10300__] (add_ssaaaa, subddmmss): New.
12513         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12514         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12515
12516 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12517
12518         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12519
12520 2011-01-19  Richard Henderson  <rth@redhat.com>
12521
12522         * config/mn10300/mn10300.md (addsi3_flags): New.
12523         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12524         (subsi3_flags, subc_internal, subdi3): New.
12525         (subdi3_internal, *subdi3_degenerate): New.
12526         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12527
12528         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12529         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12530         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12531         * config/mn10300/mn10300-protos.h: Update.
12532         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12533         (return_ret): Likewise.  Rename from return_internal_regs.
12534         (return_internal): Remove.
12535
12536         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12537         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12538         (mn10300_legitimate_constant_p): Likewise.
12539         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12540         (mn10300_frame_size): New.
12541         (mn10300_expand_prologue): Use it.
12542         (mn10300_expand_epilogue): Likewise.
12543         (mn10300_initial_offset): Likewise.
12544         * config/mn10300/mn10300-protos.h: Update.
12545         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12546         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12547         (prologue, epilogue, return_internal): Tidy output code.
12548         (mn10300_store_multiple_operation, return): Likewise.
12549         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12550         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12551         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12552         (load_pic, am33_load_pic): New.
12553         (mn10300_load_pic0, mn10300_load_pic1): New.
12554
12555         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12556         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12557         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12558         (cc_flags_for_mode, cc_flags_for_code): New.
12559         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12560         overflow flag is not valid.  Validate that the flags we need
12561         for the comparison are valid.
12562         (mn10300_output_cmp): Remove.
12563         (mn10300_output_add): New.
12564         (mn10300_select_cc_mode): Use cc_flags_for_code.
12565         (mn10300_split_cbranch): New.
12566         (mn10300_match_ccmode): New.
12567         (mn10300_split_and_operand_count): New.
12568         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12569         to the function.
12570         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12571         (addsi3): ... here.  Use mn10300_output_add.
12572         (*addsi3_flags): New.
12573         (*am33_subsi3, *mn10300_subsi3): Merge...
12574         (subsi3): ... here.  Use attribute isa.
12575         (*subsi3_flags): New.
12576         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12577         when possible.
12578         (*am33_andsi3, *mn10300_andsi3): Merge...
12579         (andsi3): ... here.
12580         (*andsi3_flags): New.
12581         (andsi3 splitters): New.
12582         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12583         (iorsi3): ... here.
12584         (*iorsi3_flags): New.
12585         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12586         (xorsi3): ... here.
12587         (*xorsi3_flags): New.
12588         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12589         (one_cmplsi2): ... here.
12590         (*one_cmplsi2_flags): New.
12591         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
12592         instead of "dax" in constraints.  Use mn10300_split_cbranch.
12593         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
12594         use matching constraints to eliminate a self-comparison.
12595         (*integer_conditional_branch): Rename from integer_conditional_branch.
12596         Use int_mode_flags to match CC_REG.
12597         (*cbranchsi4_btst, *btstsi): New.
12598         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
12599         mn10300_split_cbranch.
12600         (*am33_cmpsf): Rename from am33_cmpsf.
12601         (*float_conditional_branch): Rename from float_conditional_branch.
12602         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12603         (zero_extendqisi2): ... here.
12604         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12605         (zero_extendhisi2): ... here.
12606         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12607         (extendqisi2): ... here.
12608         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12609         (extendhisi2): ... here.
12610         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12611         (ashlsi3): ... here.
12612         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12613         (lshrsi3): ... here.
12614         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12615         (ashrsi3): ... here.
12616         (consecutive add peephole): Remove.
12617         * config/mn10300/predicates.md (label_ref_operand): New.
12618         (int_mode_flags): New.
12619         (CCZN_comparison_operator): New.
12620
12621         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12622         (throughput_42_latency_43): New reservation.
12623         (mulsidi3, umulsidi3): New expanders.
12624         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
12625         the MDR register to allocation; separately allocate the low and
12626         high parts of the DImode result.
12627         (umulsidi3_internal): Similarly.
12628         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12629         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
12630         (udivsi3, umodsi3): Remove.
12631         (udivmodsi4, divmodsi4): New expanders.
12632         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
12633         (*divmodsi4): Simiarly.
12634         (ext_internal): New.
12635
12636         * config/mn10300/constraints.md ("z"): New constraint.
12637         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12638         (FIXED_REGISTERS): Don't fix MDR.
12639         (CALL_USED_REGSITERS): Reformat nicely.
12640         (REG_ALLOC_ORDER): Add MDR.
12641         (enum regclass): Add MDR_REGS.
12642         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12643         (IRA_COVER_CLASSES): Add MDR_REGS.
12644         (REGNO_REG_CLASS): Handle MDR_REG.
12645         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12646         (mn10300_register_move_cost): Likewise.
12647         * config/mn10300/mn10300.md (MDR_REG): New.
12648         (*movsi_internal): Handle moves to/from MDR_REGS.
12649
12650         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12651         POST_MODIFY.
12652         (mn10300_secondary_reload): Tidy combination reload classes.
12653         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12654         addresses for AM33.  Allow symbolic offsets for reg+imm.
12655         (mn10300_regno_in_class_p): New.
12656         (mn10300_legitimize_reload_address): New.
12657         * config/mn10300/mn10300.h (enum reg_class): Remove
12658         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12659         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
12660         SP_OR_GENERAL_REGS.
12661         (REG_CLASS_NAMES): Update to match.
12662         (REG_CLASS_CONTENTS): Likewise.
12663         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12664         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12665         (REGNO_IN_RANGE_P): Remove.
12666         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12667         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12668         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12669         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12670         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12671         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12672         (REGNO_GENERAL_P): New.
12673         (HAVE_POST_MODIFY_DISP): New.
12674         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12675         (LEGITIMIZE_RELOAD_ADDRESS): New.
12676         * config/mn10300/mn10300-protos.h: Update.
12677
12678         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12679         DATA_REGS for AM33 stack-pointer destination.
12680         (mn10300_preferred_output_reload_class): Likewise.
12681         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12682         into a form appropriate for ...
12683         (TARGET_SECONDARY_RELOAD): New.
12684         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12685         * config/mn10300/mn10300-protos.h: Update.
12686         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12687         reload_insi; use the "A" constraint for the scratch; handle AM33
12688         moves of sp to non-address registers.
12689
12690         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12691         (*movqi_internal): ... here.
12692         (*am33_movhi, *mn10300_movhi): Merge into...
12693         (*movhi_internal): ... here.
12694         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
12695         as the source/destination of moves from/to SP.
12696         (movsf): Only allow for AM33-2.
12697         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12698         any integer constant constraint.  Only allow for AM33-2.  Tidy
12699         all of the alternative outputs.
12700         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12701         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
12702         for MN103.
12703         (udivsi3, umodsi3): New patterns for MN103 only.
12704
12705 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
12706
12707         * doc/tm.texi.in: Spell out that a lack of register class unions
12708         can lead to ICEs.
12709         * doc/tm.texi: Regenerate.
12710
12711 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12712
12713         PR rtl-optimization/47337
12714         * dce.c (check_argument_store): New function.
12715         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
12716
12717         PR tree-optimization/47290
12718         * tree-eh.c (infinite_empty_loop_p): New function.
12719         (cleanup_empty_eh): Use it.
12720
12721 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
12722
12723         PR target/46997
12724         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12725         (a64_expand_widen_sum): Ditto.
12726         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12727         (vec_extract_evenodd_help): Ditto.
12728         (vec_extract_evenv4hi): Ditto.
12729         (vec_extract_oddv4hi): Ditto.
12730         (vec_extract_evenv2si): Ditto.
12731         (vec_extract_oddv2si): Ditto.
12732         (vec_extract_evenv2sf): Ditto.
12733         (vec_extract_oddv2sf): Ditto.
12734         (vec_pack_trunc_v4hi: Ditto.
12735         (vec_pack_trunc_v2si): Ditto.
12736         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12737         (vec_interleave_highv8qi): Ditto.
12738         (mix1_r): Ditto.
12739         (vec_extract_oddv8qi): Ditto.
12740         (vec_interleave_lowv4hi): Ditto.
12741         (vec_interleave_highv4hi): Ditto.
12742         (vec_interleave_lowv2si): Ditto.
12743         (vec_interleave_highv2si): Ditto.
12744
12745 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12746
12747         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12748         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12749         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
12750         (pa_c_mode_for_suffix): New.
12751         (TARGET_EXPAND_BUILTIN): Define.
12752         (TARGET_C_MODE_FOR_SUFFIX): Define.
12753         (pa_builtins): Define.
12754         (pa_init_builtins): Register __float128 type and init new support
12755         builtins.
12756         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12757         * config/pa/quadlib.c (_U_Qfcopysign): New.
12758
12759 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
12760
12761         PR middle-end/46894
12762         * explow.c (allocate_dynamic_stack_space): Do not assume more than
12763         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12764         are defined.
12765
12766 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12767
12768         PR tree-optimization/47179
12769         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12770         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12771
12772 2011-01-18  Richard Guenther  <rguenther@suse.de>
12773
12774         PR rtl-optimization/47216
12775         * emit-rtl.c: Include tree-flow.h.
12776         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12777         of replicating it with different semantics.
12778         * Makefile.in (emit-rtl.o): Adjust.
12779
12780 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12781
12782         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12783         (cortex_a9_dp): Handle neon types correctly.
12784
12785 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
12786
12787         PR rtl-optimization/47299
12788         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12789         subtarget.  Use normal multiplication if both operands are constants.
12790         * expmed.c (expand_widening_mult): Don't try to optimize constant
12791         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
12792         before using it.
12793
12794 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12795
12796         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
12797         spacing after 'e.g.', typos, comma, hyphenation.
12798
12799 2011-01-17  Richard Henderson  <rth@redhat.com>
12800
12801         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12802         (rx_restricted_mem_operand): New.
12803         (rx_shift_operand): Use register_operand.
12804         (rx_source_operand, rx_compare_operand): Likewise.
12805         * config/rx/rx.md (addsi3_flags): New expander.
12806         (adddi3): Rewrite as expander.
12807         (adc_internal, *adc_flags, adddi3_internal): New patterns.
12808         (subsi3_flags): New expander.
12809         (subdi3): Rewrite as expander.
12810         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12811
12812         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12813         (rx_init_builtins): Remove sat builtin.
12814         (rx_expand_builtin): Likewise.
12815         * config/rx/rx.md (ssaddsi3): New.
12816         (*sat): Rename from sat.  Represent the CC_REG input.
12817
12818         * config/rx/predicates.md (rshift_operator): New.
12819         * config/rx/rx.c (rx_expand_insv): Remove.
12820         * config/rx/rx-protos.h: Update.
12821         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
12822         operand to the canonical position.
12823         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12824         (*bitclr, *bitclr_in_memory): Similarly.
12825         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12826         (insv): Retain the zero_extract in the expansion.
12827
12828         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12829         (bswaphi2, bitinvert, revw): Likewise.
12830
12831         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12832         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12833         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12834         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12835         (bitset, bitset_in_memory): Likewise.
12836         (bitinvert, bitinvert_in_memory): Likewise.
12837         (bitclr, bitclr_in_memory): Likewise.
12838         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12839         (rx_strend, rx_cmpstrn): Likewise.
12840         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
12841         (bitop peep2 patterns): Remove.
12842
12843         * config/rx/rx.c (rx_match_ccmode): New.
12844         * config/rx/rx-protos.h: Update.
12845         * config/rx/rx.md (abssi2): Clobber, don't set flags.
12846         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12847         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12848         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12849         (fix_truncsfsi2, floatsisf2): Likewise.
12850         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12851         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12852         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12853         (*subsi3_flags, *xorsi3_flags): New.
12854
12855         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12856
12857         * config/rx/rx.c (rx_print_operand): Remove workaround for
12858         unsplit comparison operations.
12859
12860         * config/rx/rx.md (movsicc): Split after reload.
12861         (*movsicc): Merge *movsieq and *movsine via match_operator.
12862         (*stcc): New pattern.
12863
12864         * config/rx/rx.c (rx_float_compare_mode): Remove.
12865         * config/rx/rx.h (rx_float_compare_mode): Remove.
12866         * config/rx/rx.md (cstoresi4): Split after reload.
12867         (*sccc): New pattern.
12868
12869         * config/rx/predicates.md (label_ref_operand): New.
12870         (rx_z_comparison_operator): New.
12871         (rx_zs_comparison_operator): New.
12872         (rx_fp_comparison_operator): New.
12873         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12874         Validate that the flags are set properly for the comparison.
12875         (rx_gen_cond_branch_template): Remove.
12876         (rx_cc_modes_compatible): Remove.
12877         (mode_from_flags): New.
12878         (flags_from_code): Rename from flags_needed_for_conditional.
12879         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12880         (rx_select_cc_mode): Likewise.
12881         (rx_split_fp_compare): New.
12882         (rx_split_cbranch): New.
12883         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12884         (*cbranchsi4): Use match_operator and rx_split_cbranch.
12885         (*cbranchsf4): Similarly.
12886         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
12887         match_operator and rx_split_cbranch.
12888         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12889         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
12890         (*cmpsi): Rename from cmpsi.
12891         (*tstsi): Rename from tstsi.
12892         (*cmpsf): Rename from cmpsf; use CC_Fmode.
12893         (*conditional_branch): Rename from conditional_branch.
12894         (*reveresed_conditional_branch): Remove.
12895         (b<code>): Remove expander.
12896         * config/rx/rx-protos.h: Update.
12897
12898         * config/rx/rx.c (rx_compare_redundant): Remove.
12899         * config/rx/rx.md (cmpsi): Don't use it.
12900         * config/rx/rx-protos.h: Update.
12901
12902         * config/rx/rx-modes.def (CC_F): New mode.
12903         * config/rx/rx.c (rx_select_cc_mode): New.
12904         * config/rx/rx.h (SELECT_CC_MODE): Use it.
12905         * config/rx/rx-protos.h: Update.
12906
12907 2011-01-17  Richard Henderson  <rth@redhat.com>
12908
12909         * except.c (dump_eh_tree): Fix stray ; after for statement.
12910
12911 2011-01-17  Richard Guenther  <rguenther@suse.de>
12912
12913         PR tree-optimization/47313
12914         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12915         handling before copying the body.  Properly deal with
12916         by-reference result in SSA form.
12917
12918 2011-01-17  Ian Lance Taylor  <iant@google.com>
12919
12920         PR target/47219
12921         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12922         (struct_value_alias_set): Don't define.
12923         (sparc_option_override): Don't set sparc_sr_alias_set and
12924         struct_value_alias_set.
12925         (save_or_restore_regs): Use gen_frame_mem rather than calling
12926         set_mem_alias_set.
12927         (sparc_struct_value_rtx): Likewise.
12928
12929 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
12930
12931         PR target/47318
12932         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12933         (_mm_maskstore_pd): Likewise.
12934         (_mm_maskload_ps): Likewise.
12935         (_mm_maskstore_ps): Likewise.
12936         (_mm256_maskload_pd): Change mask to __m256i.
12937         (_mm256_maskstore_pd): Likewise.
12938         (_mm256_maskload_ps): Likewise.
12939         (_mm256_maskstore_ps): Likewise.
12940
12941         * config/i386/i386-builtin-types.def: Updated.
12942         (ix86_expand_special_args_builtin): Likewise.
12943
12944         * config/i386/i386.c (bdesc_special_args): Update
12945         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12946         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12947         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12948         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12949
12950         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12951         Use <avxpermvecmode> on mask register.
12952         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12953
12954 2011-01-17  Olivier Hainque  <hainque@adacore.com>
12955             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12956             Eric Botcazou  <ebotcazou@adacore.com>
12957
12958         PR target/46655
12959         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12960         if <= USHRT_MAX in 32-bit mode.
12961
12962 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12963
12964         * doc/install.texi (Configuration, Specific): Wrap long
12965         lines in examples.  Allow line wrapping in long options
12966         and URLs where beneficial for PDF output.
12967
12968 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
12969
12970         * config/mips/mips.c (mips_classify_symbol): Don't return
12971         SYMBOL_PC_RELATIVE for nonlocal labels.
12972
12973 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
12974
12975         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12976
12977 2011-01-15  Jan Hubicka  <jh@suse.cz>
12978
12979         PR tree-optimization/47276
12980         * ipa.c (function_and_variable_visibility): Do not try to mark alias
12981         declarations as needed.
12982
12983 2011-01-15  Martin Jambor  <mjambor@suse.cz>
12984
12985         * common.opt (fdevirtualize): New flag.
12986         * doc/invoke.texi (Option Summary): Document it.
12987         * opts.c (default_options_table): Add devirtualize flag.
12988         * ipa-prop.c (detect_type_change): Return immediately if
12989         devirtualize flag is not set.
12990         (detect_type_change_ssa): Likewise.
12991         (compute_known_type_jump_func): Likewise.
12992         (ipa_analyze_virtual_call_uses): Likewise.
12993
12994 2011-01-14  Martin Jambor  <mjambor@suse.cz>
12995
12996         PR tree-optimization/45934
12997         PR tree-optimization/46302
12998         * ipa-prop.c (type_change_info): New type.
12999         (stmt_may_be_vtbl_ptr_store): New function.
13000         (check_stmt_for_type_change): Likewise.
13001         (detect_type_change): Likewise.
13002         (detect_type_change_ssa): Likewise.
13003         (compute_complex_assign_jump_func): Check for dynamic type change.
13004         (compute_complex_ancestor_jump_func): Likewise.
13005         (compute_known_type_jump_func): Likewise.
13006         (compute_scalar_jump_functions): Likewise.
13007         (ipa_analyze_virtual_call_uses): Likewise.
13008         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13009
13010 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13011
13012         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13013         * config/i386/i386.opt (msse5): New Alias.
13014
13015 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13016
13017         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13018         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13019         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13020         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13021
13022 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13023
13024         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13025         -mcpu options.
13026         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13027         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13028         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13029         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13030         Likewise.
13031         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13032
13033 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13034
13035         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13036
13037 2011-01-14  Mike Stump  <mikestump@comcast.net>
13038
13039         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13040         * config/fr30/fr30.md: Likweise
13041         (movsi_push): Likewise.
13042         (movsi_pop): Likewise.
13043         (enter_func): Likewise.
13044         * config/moxie/moxie.md (movsi_push): Likewise.
13045         (movsi_pop): Likewise.
13046
13047 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13048
13049         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13050         %{no_archive} %{exact_version}.
13051         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13052         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13053         %{no_archive} %{exact_version}.
13054         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13055         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13056         * config/mips/vxworks.h: Likewise.
13057
13058 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13059
13060         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13061
13062 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13063
13064         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13065         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13066
13067 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13068
13069         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13070         -nodefaultlib.
13071
13072 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13073
13074         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13075         for mcpu not cpu.
13076         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13077         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13078         not cpu.
13079         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13080         Don't handle -shlib.
13081
13082 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13083
13084         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13085         (CC1_SPEC): Don't handle -profile.
13086
13087 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13088
13089         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13090         * config/mips/mips.h (CC1_SPEC): Likewise.
13091
13092 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13093
13094         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13095         * config/mips/mips.h (CC1_SPEC): Likewise.
13096
13097 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13098
13099         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13100         * config/m32r/linux.h (LINK_SPEC): Likewise.
13101         * config/mips/linux.h (LINK_SPEC): Likewise.
13102         * config/mips/linux64.h (LINK_SPEC): Likewise.
13103         * config/sparc/linux.h (LINK_SPEC): Likewise.
13104         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13105         LINK_SPEC): Likewise.
13106         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13107
13108 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13109
13110         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13111         %{version:-v}.
13112         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13113
13114 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13115
13116         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13117         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13118
13119 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13120
13121         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13122
13123 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13124
13125         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13126         supports -Bstatic/-Bdynamic.
13127         * configure: Regenerate.
13128
13129 2011-01-14  Jan Hubicka  <jh@suse.cz>
13130             Jack Howarth  <howarth@bromo.med.uc.edu>
13131
13132         PR target/46037
13133         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13134         when checking debug_info_level. Test write_symbols instead of
13135         debug_hooks->var_location when setting flag_var_tracking_uninit.
13136
13137 2011-01-14  Richard Guenther  <rguenther@suse.de>
13138
13139         PR tree-optimization/47179
13140         * target.def (ref_may_alias_errno): New target hook.
13141         * targhooks.h (default_ref_may_alias_errno): Declare.
13142         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13143         (default_ref_may_alias_errno): New function.
13144         * target.h (struct ao_ref_s): Declare.
13145         * tree-ssa-alias.c: Include target.h.
13146         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13147         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13148         (targhooks.o): Likewise.
13149         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13150         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13151
13152 2011-01-14  Richard Guenther  <rguenther@suse.de>
13153
13154         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13155
13156 2011-01-14  Richard Guenther  <rguenther@suse.de>
13157
13158         PR tree-optimization/47280
13159         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13160         return CFG changes.
13161         (tree_ssa_forward_propagate_single_use_vars): Deal with
13162         CFG changes from associate_plusminus.
13163
13164 2011-01-14  Richard Guenther  <rguenther@suse.de>
13165
13166         PR middle-end/47281
13167         Revert
13168         2011-01-11  Richard Guenther  <rguenther@suse.de>
13169
13170         PR tree-optimization/46076
13171         * tree-ssa.c (useless_type_conversion_p): Conversions from
13172         unprototyped to empty argument list function types are useless.
13173
13174 2011-01-14  Richard Guenther  <rguenther@suse.de>
13175
13176         PR tree-optimization/47286
13177         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13178
13179 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13180
13181         PR middle-end/46823
13182         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13183
13184 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13185
13186         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13187         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13188         * config/xtensa/xtensa.c (xtensa_libcall_value,
13189         xtensa_function_value_regno_p): New functions.
13190         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13191
13192 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13193
13194         PR c++/47213
13195         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13196         PE specific hook.
13197         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13198         New function prototype.
13199         * config/i386/winnt.c (i386_pe_assemble_visibility):
13200         Warn only if attribute was specified by user.
13201
13202 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13203
13204         PR target/47251
13205         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13206         floating point.
13207         (floatunsdidf2_fcfidu): Ditto.
13208
13209 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13210
13211         * config/s390/s390.c (print_operand_address): Replace 'error' with
13212         'output_operand_lossage'.
13213         (print_operand): Likewise.
13214
13215 2011-01-13  Jeff Law  <law@redhat.com>
13216
13217         PR rtl-optimization/39077
13218         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13219         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13220         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13221         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13222         * gcse.c (prune_insertions_deletions): New function.
13223         (compute_pre_data): Use it.
13224
13225 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13226
13227         PR debug/PR46973
13228         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13229         static function.
13230         (prune_unused_types_mark): Use it.
13231
13232 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13233
13234         PR rtl-optimization/45352
13235         * sel-sched.c: Update copyright years.
13236         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13237         in the advancing loop when we have issued issue_rate insns.
13238
13239 2011-01-12  Richard Henderson  <rth@redhat.com>
13240
13241         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13242         (TARGET_MD_ASM_CLOBBERS): New.
13243
13244         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13245         (TARGET_DELEGITIMIZE_ADDRESS): New.
13246
13247         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13248         (clzsi2, *bsch): New patterns.
13249
13250         * config/mn10300/mn10300.md (INT): New mode iterator.
13251         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13252
13253         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13254         flag_split_wide_types.
13255
13256         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13257         (mn10300_trampoline_init): Rewrite without a template, an immediate
13258         load and a direct branch.
13259         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13260
13261 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13262
13263         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13264         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13265         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13266         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13267
13268 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13269
13270         PR debug/47209
13271         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13272         of type.
13273
13274 2011-01-12  Jan Hubicka  <jh@suse.cz>
13275
13276         PR driver/47244
13277         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13278         (PLUGIN_COND_CLOSE): New macro.
13279         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13280
13281 2011-01-12  Richard Guenther  <rguenther@suse.de>
13282
13283         PR lto/47259
13284         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13285         register variables in a MEM_REF.
13286
13287 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13288
13289         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13290         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13291         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13292         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13293         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13294         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13295         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13296         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13297         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13298         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13299         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13300         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13301         * config/gnu-user.h: New.  Copied from linux.h.
13302         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13303         GNU_USER_TARGET_STARTFILE_SPEC.
13304         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13305         GNU_USER_TARGET_ENDFILE_SPEC.
13306         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13307         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13308         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13309         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13310         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13311         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13312         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13313         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13314         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13315         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13316         * config/arm/linux-eabi.h (CC1_SPEC): Use
13317         GNU_USER_TARGET_CC1_SPEC.
13318         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13319         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13320         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13321         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13322         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13323         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13324         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13325         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13326
13327 2011-01-12  Richard Guenther  <rguenther@suse.de>
13328
13329         PR other/46946
13330         * doc/invoke.texi (ffast-math): Document it is turned on
13331         with -Ofast.
13332
13333 2011-01-12  Jan Hubicka  <jh@suse.cz>
13334
13335         PR tree-optimization/47233
13336         * opts.c (common_handle_option): Disable ipa-reference with profile
13337         feedback.
13338
13339 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13340
13341         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13342         error message.
13343
13344 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13345
13346         * c-parser.c (c_lex_one_token): Updated and reindented some
13347         comments.  No changes in code.
13348
13349 2011-01-11  Ian Lance Taylor  <iant@google.com>
13350
13351         * godump.c (go_output_var): Don't output the variable if there is
13352         already a type with the same name.
13353
13354 2011-01-11  Ian Lance Taylor  <iant@google.com>
13355
13356         * godump.c (go_format_type): Don't generate float80.
13357
13358 2011-01-11  Richard Henderson  <rth@redhat.com>
13359
13360         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13361         declaration.  Rewrite for both speed and size.
13362         (mn10300_address_cost_1): Remove.
13363         (mn10300_register_move_cost): New.
13364         (mn10300_memory_move_cost): New.
13365         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13366         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13367         extensions, shifts, BSWAP, CLZ.
13368         (mn10300_wide_const_load_uses_clr): Remove.
13369         (TARGET_REGISTER_MOVE_COST): New.
13370         (TARGET_MEMORY_MOVE_COST): New.
13371         * config/mn10300/mn10300-protos.h: Update.
13372         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13373
13374         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13375         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13376         * config/mn10300/mn10300-protos.h: Update.
13377         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13378         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13379         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13380         (*test_int_bitfield, *test_byte_bitfield): Remove.
13381         (*bit_test, *subreg_bit_test): Remove.
13382         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13383
13384         * config/mn10300/constraints.md ("c"): Rename from "A".
13385         ("A", "D"): New constraint letters.
13386         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13387         (fmssf4, fnmasf4, fnmssf4): Likewise.
13388
13389         * config/mn10300/mn10300.md (isa): New attribute.
13390         (enabled): New attribute.
13391
13392         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13393         (abssf2, negsf2): Define only for hardware fp.
13394         (sqrtsf2): Reformat.
13395         (addsf3, subsf3, mulsf3): Merge expander and insn.
13396
13397         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13398         (DEBUGGER_AUTO_OFFSET): Remove.
13399         (DEBUGGER_ARG_OFFSET): Remove.
13400
13401         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13402         Emit register stores with the same offsets as the hardware.
13403         (mn10300_store_multiple_operation): Don't check that the register
13404         save offsets are monotonic.
13405         * config/mn10300/mn10300-protos.h: Update.
13406
13407         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13408
13409         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13410         in terms of the value on the stack, not the MDR register.
13411
13412 2011-01-11  Jan Hubicka  <jh@suse.cz>
13413
13414         PR lto/45721
13415         PR lto/45375
13416         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13417         (symbol_alias_set_destroy, symbol_alias_set_contains,
13418         propagate_aliases_backward): Declare.
13419         * lto-streamer-out.c (struct sets): New sturcture.
13420         (trivally_defined_alias): New function.
13421         (output_alias_pair_p): Rewrite.
13422         (output_unreferenced_globals): Fix output of alias pairs.
13423         (produce_symtab): Likewise.
13424         * ipa.c (function_and_variable_visibility): Set weak alias destination
13425         as needed in lto.
13426         * varasm.c (symbol_alias_set_t): Remove.
13427         (symbol_alias_set_destroy): Export.
13428         (propagate_aliases_forward, propagate_aliases_backward): New functions
13429         based on ...
13430         (compute_visible_aliases): ... this one; remove.
13431         (trivially_visible_alias): New
13432         (trivially_defined_alias): New.
13433         (remove_unreachable_alias_pairs): Rewrite.
13434         (finish_aliases_1): Reorganize code checking if alias is defined.
13435         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13436         in LTO mode.
13437
13438 2011-01-11  Richard Guenther  <rguenther@suse.de>
13439
13440         PR tree-optimization/46076
13441         * tree-ssa.c (useless_type_conversion_p): Conversions from
13442         unprototyped to empty argument list function types are useless.
13443
13444 2011-01-11  Richard Guenther  <rguenther@suse.de>
13445
13446         PR middle-end/45235
13447         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13448         volatile MEMs as MEM_READONLY_P.
13449
13450 2011-01-11  Richard Guenther  <rguenther@suse.de>
13451
13452         PR tree-optimization/47239
13453         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13454
13455 2011-01-11  Jeff Law  <law@redhat.com>
13456
13457         PR tree-optimization/47086
13458         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13459         IVs from statements that might throw.
13460
13461 2011-01-10  Jan Hubicka  <jh@suse.cz>
13462
13463         PR lto/45375
13464         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13465
13466 2011-01-10  Jan Hubicka  <jh@suse.cz>
13467
13468         PR lto/45375
13469         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13470         when correcting profile.
13471
13472 2011-01-10  Jan Hubicka  <jh@suse.cz>
13473
13474         PR lto/46083
13475         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13476         DECL_FINI_PRIORITY.
13477         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13478         Restore DECL_FINI_PRIORITY.
13479
13480 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13481
13482         * doc/gimple.texi: Fix quoting of multi-word return values in
13483         @deftypefn statements.  Ensure presence of return value.  Wrap
13484         overlong @deftypefn lines.
13485         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13486         descriptions of removed functions.
13487         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13488         of multi-word return value in @deftypefn statement.
13489
13490 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13491
13492         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13493         (Conditional Expressions, Logical Operators)
13494         (Statement and operand traversals): Do not indent smallexample
13495         code.  Fix duplicate function argument in example.
13496
13497 2011-01-10  Jeff Law  <law@redhat.com>
13498
13499         PR tree-optimization/47141
13500         * ipa-split.c (split_function): Handle case where we are
13501         returning a value and the return block has a virtual operand phi.
13502
13503 2011-01-10  Jan Hubicka  <jh@suse.cz>
13504
13505         PR tree-optimization/47234
13506         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13507         (pass_feedback_split_functions): Declare.
13508         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13509         tree-profile.
13510         * ipa-split.c (gate_split_functions): Update comments; disable
13511         split-functions for profile_arc_flag and branch_probabilities.
13512         (gate_feedback_split_functions): New function.
13513         (execute_feedback_split_functions): New function.
13514         (pass_feedback_split_functions): New global var.
13515
13516 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13517
13518         PR lto/46760
13519         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13520         calling gimple_call_set_cannot_inline.
13521
13522 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13523
13524         * config/darwin-sections.def: Remove unused section.
13525
13526 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13527
13528         PR c++/47218
13529         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13530
13531 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13532
13533         PR objc/47232
13534         * c-parser.c (c_parser_declaration_or_fndef): Improved
13535         error message.
13536
13537 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13538
13539         * config/i386/winnt.c (i386_pe_start_function): Make sure
13540         to switch back to function's section.
13541
13542 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13543
13544         PR gcc/46902
13545         PR testsuite/46912
13546         * plugin.c: Move include of dlfcn.h from here...
13547         * system.h: ... to here.
13548
13549 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13550
13551         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13552         file name.
13553         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13554         two extra empty pages in PDF output.
13555
13556 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13557
13558         PR objc/47078
13559         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13560         for error recovery purposes behave as if it was not specified so
13561         that the default type is usd.
13562
13563 2011-01-07  Jan Hubicka  <jh@suse.cz>
13564
13565         PR tree-optmization/46469
13566         * ipa.c (function_and_variable_visibility): Clear needed flags on
13567         nodes with external decls; handle weakrefs merging correctly.
13568
13569 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13570
13571         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13572         not false.
13573
13574 2011-01-07  Jan Hubicka  <jh@suse.cz>
13575
13576         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13577         and no longer claim that gold is required for linker plugin.
13578         * configure: Regenerate.
13579         * gcc.c (PLUGIN_COND): New macro.
13580         (LINK_COMMAND_SPEC): Use it.
13581         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13582         * config.in (HAVE_LTO_PLUGIN): New.
13583         * configure.ac (--with-lto-plugin): New parameter; autodetect
13584         HAVE_LTO_PLUGIN.
13585
13586 2011-01-07  Jan Hubicka  <jh@suse.cz>
13587
13588         PR tree-optimization/46367
13589         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13590         when we can update original.
13591         (cgraph_mark_inline_edge): Sanity check.
13592         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13593
13594 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13595
13596         * config/spu/spu.h (ASM_COMMENT_START): Define.
13597
13598 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13599
13600         PR driver/42445
13601         * gcc.c (%>S): New.
13602         (SWITCH_KEEP_FOR_GCC): Likewise.
13603         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13604         (do_spec_1): Handle "%>".
13605
13606         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13607
13608 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
13609
13610         PR target/47201
13611         * config/i386/i386.c (ix86_delegitimize_address): If
13612         simplify_gen_subreg fails, return orig_x.
13613
13614         PR bootstrap/47187
13615         * value-prof.c (gimple_stringop_fixed_value): Handle
13616         lhs of the call properly.
13617
13618 2011-01-07  Jan Hubicka  <jh@suse.cz>
13619
13620         PR lto/45375
13621         * lto-opt.c (lto_reissue_options): Set flag_shlib.
13622
13623 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13624
13625         * target.def (function_switched_text_sections): New hook.
13626         * doc/tm.texi: Regenerated.
13627         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13628         * final.c (default_function_switched_text_sections): New.
13629         (final_scan_insn): Call function_switched_text_sections when a
13630         mid-function section change occurs.
13631         * output.h (default_function_switched_text_sections): Declare.
13632         * config/darwin-protos.h (darwin_function_switched_text_sections):
13633         Likewise.
13634         * config/darwin.c (darwin_function_switched_text_sections): New.
13635         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13636
13637 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13638
13639         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13640         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13641         the secondary code fragment when outputting for DWARF == 2.
13642
13643 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13644
13645         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13646         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13647         Remove.
13648         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13649         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13650
13651 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13652
13653         PR debug/46704
13654         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13655         when it is not empty.
13656
13657 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
13658
13659         Bobcat Enablement
13660         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13661         (case ${target}): Add btver1.
13662         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13663         -march=native recognize btver1 processors.
13664         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13665         btver1 def_and_undef
13666         * config/i386/i386.c (struct processor_costs btver1_cost): New
13667         btver1 cost table.
13668         (m_BTVER1): New definition.
13669         (m_AMD_MULTIPLE): Includes m_BTVER1.
13670         (initial_ix86_tune_features): Add btver1 tune.
13671         (processor_target_table): Add btver1 entry.
13672         (static const char *const cpu_names): Add btver1 entry.
13673         (software_prefetching_beneficial_p): Add btver1.
13674         (ix86_option_override_internal): Add btver1 instruction sets.
13675         (ix86_issue_rate): Add btver1.
13676         (ix86_adjust_cost): Add btver1.
13677         * config/i386/i386.h (TARGET_BTVER1): New definition.
13678         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13679         (enum processor_type): Add PROCESSOR_BTVER1.
13680         * config/i386/i386.md (define_attr "cpu"): Add btver1.
13681
13682 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13683
13684         PR target/43309
13685         * config/i386/i386.c (legitimize_tls_address)
13686         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13687         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13688         (tls_initial_exec_64_sun): New pattern.
13689
13690 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
13691
13692         * doc/invoke.texi (Overall Options): Improve wording and markup
13693         of the description of -wrapper.
13694
13695 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13696
13697         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13698         rdynamic, threads): New Driver options.
13699
13700 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13701
13702         PR target/38118
13703         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13704         if coming from .tdata.
13705         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13706
13707 2011-01-06  Jan Hubicka  <jh@suse.cz>
13708
13709         PR lto/47188
13710         * collect2.c (main): Do not enable LTOmode when plugin is active.
13711
13712 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13713
13714         PR other/45915
13715         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13716         --version output if supported.
13717         * configure: Regenerate.
13718
13719 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13720
13721         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13722         Driver options.
13723
13724 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
13725
13726         PR c/47150
13727         * c-convert.c (convert): When converting a complex expression
13728         other than COMPLEX_EXPR to a different complex type, ensure
13729         c_save_expr is called instead of save_expr, unless in_late_binary_op.
13730         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13731         when converting COMPLEX_TYPE.
13732
13733 2011-01-06  Ira Rosen  <irar@il.ibm.com>
13734
13735         PR tree-optimization/47139
13736         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13737         only the last reduction value is used outside the loop.  Update
13738         documentation.
13739
13740 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
13741
13742         * config/rtems.opt: New.
13743         * config.gcc (*-*-rtems*): Use rtems.opt.
13744
13745 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
13746
13747         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13748         processors do not support 3DNow instructions.
13749
13750 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13751
13752         * config/spu/spu.c (spu_option_override): Set parameter
13753         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13754
13755 2011-01-05  Jan Hubicka  <jh@suse.cz>
13756
13757         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13758         at the command line.
13759
13760 2011-01-05  Martin Jambor  <mjambor@suse.cz>
13761
13762         PR lto/47162
13763         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13764         deltas on streamed outgoing edges.
13765         (output_node_opt_summary): Output info for outgoing edges only when
13766         the node is in new parameter set.
13767         (output_cgraph_opt_summary): New parameter set, passed to the two
13768         aforementioned functions.  Update its forward declaration and its
13769         callee too.
13770
13771 2011-01-05  Tom Tromey  <tromey@redhat.com>
13772
13773         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13774         operator to c_finish_omp_atomic.
13775         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13776         (build_unary_op): Update.
13777         (build_modify_expr): Update.
13778         (build_asm_expr): Update.
13779
13780 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13781
13782         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13783         newly inserted insns.
13784         (pad_bb): Likewise.
13785         (spu_emit_branch_hint): Likewise.
13786         (insert_hbrp_for_ilb_runout): Likewise.
13787         (spu_machine_dependent_reorg): Call df_finish_pass after
13788         schedule_insns returns.
13789
13790 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13791
13792         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13793
13794 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13795
13796         PR tree-optimization/47005
13797         * tree-sra.c (struct access): Add 'non_addressable' bit.
13798         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13799         (decide_one_param_reduction): Return 0 if the parameter is passed by
13800         reference and one of the accesses in the group is non_addressable.
13801
13802 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13803
13804         PR tree-optimization/47056
13805         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13806         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
13807         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
13808
13809 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13810
13811         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13812         initializer.  Skip view conversions from aggregate types.
13813
13814 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
13815
13816         PR bootstrap/47055
13817         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13818
13819 2011-01-04  Philipp Thomas  <pth@suse.de>
13820
13821         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13822         obvious typo.
13823
13824 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13825
13826         * function.c (thread_prologue_and_epilogue_insns): Do not crash
13827         on empty epilogue sequences.
13828
13829 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
13830
13831         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13832         non-static): New Driver options.
13833
13834 2011-01-04  Jie Zhang  <jie@codesourcery.com>
13835
13836         PR driver/47137
13837         * gcc.c (default_compilers[]): Set combinable field to 0
13838         for all assembly languages.
13839
13840 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
13841
13842         * config/mips/loongson3a.md: New file.
13843         * config/mips/mips.md: Include loongson3a.md.
13844         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13845         TUNE_LOONGSON_3A.
13846
13847 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13848
13849         PR middle-end/47017
13850         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13851         instead of convert_memory_address_addr_space on the base expression.
13852
13853 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13854
13855         * config/spu/spu.c (spu_option_override): Update error text
13856         for bad -march= / -mtune= values.
13857
13858 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13859
13860         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13861         if branch-hint optimization will be performed.
13862
13863 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13864
13865         PR tree-optimization/47148
13866         * ipa-split.c (split_function): Convert arguments to
13867         DECL_ARG_TYPE if possible.
13868
13869         PR tree-optimization/47155
13870         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13871         when computing uns.
13872
13873         PR rtl-optimization/47157
13874         * combine.c (try_combine): If undobuf.other_insn becomes
13875         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13876         and set *new_direct_jump_p too.
13877
13878 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
13879
13880         PR tree-optimization/47021
13881         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13882
13883 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13884
13885         * gcc.c (process_command): Update copyright notice dates.
13886         * gcov.c (print_version): Likewise.
13887         * gcov-dump.c (print_version): Likewise.
13888         * mips-tfile.c (main): Likewise.
13889         * mips-tdump.c (main): Likewise.
13890
13891 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13892
13893         PR tree-optimization/46801
13894         * tree-sra.c (type_internals_preclude_sra_p): Check whether
13895         aggregate fields start at byte boundary instead of the bit-field flag.
13896
13897 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
13898
13899         PR driver/47137
13900         * gcc.c (main): Revert revision 168407.
13901
13902 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13903
13904         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13905
13906 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13907
13908         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13909         vector optab to expand vector/scalar shift, update gimple to vector.
13910
13911 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13912
13913         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13914         a thunk.
13915
13916 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13917
13918         PR tree-optimization/46984
13919         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13920         HOST_WIDE_INT.
13921         (cgraph_create_indirect_edge): Fixed line length.
13922         (cgraph_indirect_call_info): Declare.
13923         (cgraph_make_edge_direct) Update declaration.
13924         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13925         (cgraph_create_indirect_edge): Use it.
13926         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
13927         callees.
13928         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13929         the new thunk_delta representation.
13930         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13931         HOST_WIDE_INT.
13932         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13933         (ipa_read_indirect_edge_info): Likewise.
13934         * lto-cgraph.c (output_edge_opt_summary): New function.
13935         (output_node_opt_summary): Call it on all outgoing edges.
13936         (input_edge_opt_summary): New function.
13937         (input_node_opt_summary): Call it on all outgoing edges.
13938
13939 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
13940
13941         PR driver/47137
13942         * gcc.c (main): Don't check have_o when settting combine_inputs.
13943
13944 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
13945
13946         * regrename.c: Add general comment describing the pass.
13947         (struct du_head): Remove 'length' field.
13948         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13949         (regrename_optimize): Do not sort chains.  Rework comments, add others.
13950         Force renaming to the preferred class (if any) in the first pass and do
13951         not consider registers that belong to it in the second pass.
13952         (create_new_chain): Do not set 'length' field.
13953         (scan_rtx_reg): Likewise.
13954
13955 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
13956
13957         PR tree-optimization/47140
13958         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13959         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13960         to bit_value_binop.
13961
13962         PR rtl-optimization/47028
13963         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13964         parm_birth_insn instead of at the beginning of first bb.
13965
13966 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
13967
13968         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13969         Remove the word "see" before "@pxref".
13970         * doc/rtl.texi: Remove the word "see" before "@pxref".
13971
13972 2011-01-01  Jan Hubicka  <jh@suse.cz>
13973
13974         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13975         memory.
13976
13977 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
13978
13979         PR target/38662
13980         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13981
13982 \f
13983 Copyright (C) 2011 Free Software Foundation, Inc.
13984
13985 Copying and distribution of this file, with or without modification,
13986 are permitted in any medium without royalty provided the copyright
13987 notice and this notice are preserved.