OSDN Git Service

2011-05-11 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-11  Richard Guenther  <rguenther@suse.de>
2
3         PR tree-optimization/18041
4         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5         (simplify_bitwise_binary): ... this.  Handle operand conversions
6         by applying them to the result instead.
7         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
8
9 2011-05-11  Richard Guenther  <rguenther@suse.de>
10
11         * gimple.c (gimple_canonical_types_compatible_p): Split out
12         from gimple_types_compatible_p and friends.  Do not recurse
13         to pointed-to types.
14         (gimple_canonical_type_eq): Use it.
15         (iterative_hash_canonical_type): Split out from
16         iterative_hash_gimple_type and friends.  Do not recurse
17         to pointed-to types.
18         (gimple_canonical_type_hash): Use it, allocate the hash here.
19
20 2011-05-11  Revital Eres  <revital.eres@linaro.org>
21
22         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
23         recognizing doloop.
24
25 2011-05-11  Revital Eres  <revital.eres@linaro.org>
26
27         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
28         instead of PREV_INSN.
29
30 2011-05-11  Revital Eres  <revital.eres@linaro.org>
31
32         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
33         * loop-doloop.c (doloop_condition_get): Likewise.
34         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
35         (doloop_end): New.
36         * config/arm/arm.md (*addsi3_compare0): Remove "*".
37
38 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
39
40         * tree.def (CASE_LABEL_EXPR): Add an operand.
41         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
42
43 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
44
45         * c-decl.c (c_override_global_bindings_to_false): Remove.
46         (global_bindings_p): Don't check
47         c_override_global_bindings_to_false.
48         * c-tree.h (c_override_global_bindings_to_false): Remove.
49         * c-typeck.c (composite_type): Don't set
50         c_override_global_bindings_to_false.
51
52 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
53
54         PR target/48857, 48495
55         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
56         (VSX_MODE): Ditto.
57         (VSX_MOVE_MODE): Ditto.
58         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
59         VSX vector types.  Add V2DImode.
60         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
61         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
62         (MODES_TIEABLE_P): Ditto.
63
64         * config/rs6000/rs6000.c (rs6000_emit_move): Use
65         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
66         VSX_VECTOR_MODE.
67         (init_cumulative_args): Ditto.
68         (rs6000_function_arg_boundary): Ditto.
69         (rs6000_function_arg_advance_1): Ditto.
70         (rs6000_function_arg): Ditto.
71         (rs6000_function_ok_for_sibcall): Ditto.
72         (emit_frame_save): Ditto.
73         (rs6000_function_value): Ditto.
74         (rs6000_libcall_value): Ditto.
75
76 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
77
78         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
79         i386/darwin-lib.h to $libgcc_tm_file.
80         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
81
82 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
83
84         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
85
86 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
87
88         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New
89         files.
90         * config/rs6000/rs6000-tables.opt: New file (generated).
91         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
92         rs6000/rs6000-tables.opt to extra_options.
93         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
94         * config/rs6000/rs6000.c (rs6000_select): Remove.
95         (processor_target_table): Move contents to rs6000-cpus.def.
96         (darwin_rs6000_override_options): Check
97         global_options_set.x_rs6000_cpu_index instead of
98         rs6000_select[1].string.
99         (rs6000_option_override_internal): Likewise.
100         (rs6000_handle_option): Don't assert that global structures are in
101         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
102         (rs6000_default_cpu): New variable.
103         (rs6000_file_start): Set it instead of local default_cpu.  Check
104         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
105         global_options_set.x_rs6000_tune_index instead of rs6000_select.
106         (rs6000_darwin_file_start): Check rs6000_default_cpu and
107         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
108         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
109         rs6000_select): Remove.
110         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
111         Remove.
112         (mcpu=, mtune=): Use Var, Init, Enum and Save.
113         * config/rs6000/t-rs6000
114         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
115         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
116         global_options_set.x_rs6000_cpu_index instead of
117         rs6000_select[1].string.
118         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
119         global_options_set.x_rs6000_cpu_index instead of
120         rs6000_select[1].string.
121
122 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
123
124         * config.gcc (libgcc_tm_file): Define instead of including files
125         from ../../libgcc/config/ in tm_file.
126         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list):
127         Define.
128         * configure: Regenerate.
129         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
130         libgcc_tm.h, cs-libgcc_tm.h): New.
131         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
132         (clean): Remove libgcc_tm.h.
133         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
134         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
135         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
136
137 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
138
139         PR target/48896
140         * config/avr/avr.c (avr_ret_register): Return unsigned int
141         instead of int.
142         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
143         it to avr_libcall_value.
144         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
145         expand_expr.
146         (avr_expand_binop_builtin): Ditto.
147         (avr_expand_unop_builtin): Ditto.
148
149 2011-05-10  DJ Delorie  <dj@redhat.com>
150
151         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
152         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
153         * config/rx/rx.c (rx_align_for_label): Add label and
154         uses_threshold parameters.  Do not align when the label is not
155         used enough.
156         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
157
158 2011-05-10  Richard Guenther  <rguenther@suse.de>
159
160         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
161         a series of conversions and apply foldings similar to what
162         fold-const does.
163         (tree_ssa_forward_propagate_single_use_vars): Call it.
164
165 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
166
167         PR tree-optimization/48611
168         PR tree-optimization/48794
169         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
170         referenced from RESX or EH_DISPATCH arguments.
171
172         PR debug/48928
173         * dfp.c (decimal_to_decnumber): Handle conversion from
174         dconst{1,2,m1,half}.
175
176 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
177
178         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
179         for !flag_prefer_avx128.
180         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
181
182 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
183
184         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
185         (fold_ternary_loc): Use expr_location_or.
186
187 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
188
189         PR debug/48853
190         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
191         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
192         Pmode and mem_mode is not VOIDmode.
193
194 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
195
196         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
197         TYPE_QUAL_RESTRICT): Convert to enum.
198
199 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
200
201         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
202         (const_pow2_1_to_8_operand): Ditto.
203         (const_pow2_1_to_128_operand): Ditto.
204         (const_pow2_1_to_32768_operand): Ditto.
205         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
206         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
207         in insn constraint to check integer value of operand 3.
208         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
209
210         (PINSR_MODE): New mode iterator.
211         (sse2p4_1): New mode attribute.
212         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
213         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
214         iterator.  Use const_int_operand instead of
215         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
216         exact_log2 in insn constraint to check integer value of operand 3.
217
218 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
219
220         * config/i386/sse.md (blendbits): Remove mode attribute.
221         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
222         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
223         Check integer value of operand 3 in insn constraint.
224
225 2011-05-09  Richard Guenther  <rguenther@suse.de>
226
227         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
228         for diagnostics.
229         (lto_symtab_merge): Likewise.  Do not register types here.
230         (lto_symtab_merge_decls_2): Likewise.
231         (lto_symtab_merge_decls_1): Likewise.
232         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
233         * gimple.c (enum gtc_mode): Declare.
234         (gimple_types_compatible_p): Make static.
235
236 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
237
238         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
239         temporary register to match Pmode.
240
241 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
242
243         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
244         and *vec_concatv4si_1_avx.
245
246 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
247
248         PR rtl-optimization/48927
249         * ira-conflicts.c (commutative_constraint_p): Use
250         recog_data.alternative_enabled_p to disable alternatives where
251         "enabled" attribute is false.
252         (get_dup_num): Ditto.
253         * ira-lives.c (single_reg_class): Ditto.
254         (ira_implicitly_set_insn_hard_regs): Ditto.
255
256 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
257
258         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
259         (dataflow_set_preserve_mem_locs): Likewise.
260
261 2011-05-09  Philipp Thomas  <pth@suse.de>
262
263         * config/mep/mep.c (mep_validate_vliw): Syntax description
264         should not be translated.
265
266 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
267
268         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
269         * config/mips/mips-tables.opt: New file (generated).
270         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
271         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
272         MIPS_ARCH_OPTION_NATIVE): Define.
273         * config/mips/mips.c (mips_cpu_info_table): Move contents to
274         mips-cpus.def.
275         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
276         mips_parse_cpu): Remove.
277         (mips_cpu_info_from_opt, mips_default_arch): New.
278         (mips_handle_option): Don't assert that global structures are in
279         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
280         (mips_option_override): Use new variables and functions to set
281         state of these options.  Use strcmp to check for individual CPU names.
282         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
283         definition.
284         * config/mips/mips.opt (march=): Use ToLower and Enum.
285         (mips): Use ToLower, Enum and Var.
286         (mtune=): Use ToLower and Enum.
287         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
288
289 2011-05-08  Jan Hubicka  <jh@suse.cz>
290
291         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
292         Arrange type pairs to be UID ordered.
293         (gimple_lookup_type_leader): Make inline.
294
295 2011-05-09  Nick Clifton  <nickc@redhat.com>
296
297         PR target/48899
298         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
299         PROCESSOR_DEFAULT.
300
301         PR target/48897
302         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
303         variable 's'.
304
305 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
306
307         * combine.c (simplify_comparison): Abstract out parts into...
308         (simplify_compare_const): ... new function.
309         (try_combine): Generalize parallel arithmetic/compare combining
310         to call simplify_compare_const() and CANONICALIZE_COMPARE().
311
312 2011-05-08  Jan Hubicka  <jh@suse.cz>
313
314         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
315         (cgraph_create_virtual_clone): Call hooks once virtual clone
316         is finished.
317         * cgraph.h (cgraph_clone_node): Update prototype.
318         * ipa-cp.c (ipcp_estimate_growth): Use
319         estimate_ipcp_clone_size_and_time.
320         * ipa-inline-transform.c (clone_inlined_nodes): Update.
321         * lto-cgraph.c (input_node): Update.
322         * ipa-inline.c (recursive_inlining): Update.
323         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
324         (evaluate_conditions_for_known_args): Break out from ...
325         (evaluate_conditions_for_edge): ... here.
326         (evaluate_conditions_for_ipcp_clone): New function.
327         (inline_node_duplication_hook): Update clone summary based
328         on parameter map.
329         (estimate_callee_size_and_time): Rename to ...
330         (estimate_node_size_and_time): take NODE instead of EDGE;
331         take POSSIBLE_TRUTHS as argument.
332         (estimate_callee_size_and_time): Update.
333         (estimate_ipcp_clone_size_and_time): New function.
334         (do_estimate_edge_time): Update.
335
336 2011-05-08  Richard Guenther  <rguenther@suse.de>
337
338         PR middle-end/48908
339         PR middle-end/48905
340         * expmed.c (expand_shift_1): Compute adjusted constant shift
341         amount manually.
342
343 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
344
345         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
346
347 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
348
349         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
350
351 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
352
353         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
354
355 2011-05-07  Jan Hubicka  <jh@suse.cz>
356
357         * ipa-inline-transform.c (inline_call): Account when program size
358         decreases.
359         * ipa-inline.c (relative_time_benefit): New function.
360         (edge_badness): Reorganize to be power 2 based; fix thinko when
361         computing badness for negative growth; update comments to match
362         reality; better dumps.
363
364 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
365
366         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
367         type to bool and adjust comment.
368         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
369         (fold_mathfn_compare): Remove calls to global_bindings_p.
370         (fold_inf_compare): Likewise.
371         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
372         * c-tree.h (global_bindings_p): Adjust prototype.
373         * c-decl.c (global_bindings_p): Return bool and simplify.
374
375 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
376
377         PR tree-optimization/48837
378         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
379         when accumulator transformation is performed.
380
381 2011-05-06  Jan Hubicka  <jh@suse.cz>
382
383         * i386.h (ix86_tune_indices): Add
384         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
385         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
386         * i386.c (initial_ix86_tune_features): Add
387         X86_SOFTARE_PREFETCHING_BENEFICIAL.
388         (software_prefetching_beneficial_p): Remove predicate.
389         (ix86_option_override_internal): Use new macro.
390
391 2011-05-06  Jan Hubicka  <jh@suse.cz>
392
393         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
394
395 2011-05-06  Jan Hubicka  <jh@suse.cz>
396
397         * cgraph.c (cgraph_add_thunk): Create real function node instead
398         of alias node; finalize it and mark needed/reachale; arrange visibility
399         to be right and add it into the corresponding same comdat group list.
400         (dump_cgraph_node): Dump thunks.
401         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
402         cgraph_function_with_gimple_body_p,
403         cgraph_first_function_with_gimple_body,
404         cgraph_next_function_with_gimple_body): New functions.
405         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
406         New macros.
407         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
408         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
409         * cgraphunit.c (cgraph_finalize_function): Only look into possible
410         devirtualization when optimizing.
411         (verify_cgraph_node): Verify thunks.
412         (cgraph_analyze_function): Analyze thunks.
413         (cgraph_mark_functions_to_output): Output thunks only in combination
414         with function they are assigned to.
415         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
416         alias into normal node.
417         (assemble_thunks): New functoin.
418         (cgraph_expand_function): Use it.
419         * lto-cgraph.c (lto_output_node): Stream thunks.
420         (input_overwrite_node): Stream in thunks.
421         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
422         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
423         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
424         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
425         (inline_analyze_function): Do not care about thunk jump functions.
426         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
427         * ipa-prop.c (ipa_prop_write_jump_functions): Use
428         cgraph_function_with_gimple_body_p.
429         * passes.c (do_per_function_toporder): Use
430         cgraph_function_with_gimple_body_p.
431         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
432         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
433         (function_called_by_processed_nodes_p): Likewise.
434
435 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
436
437         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
438         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
439         entries.
440         (mabi=): Replace with separate entries for mabi=altivec,
441         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
442         mabi=ieeelongdouble and mabi=ibmlongdouble.
443         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
444         check for -mabi=spe without SPE ABI support here.
445         (rs6000_handle_option): Replace OPT_mabi_ handling with
446         OPT_mabi_altivec and OPT_mabi_spe handling.
447
448 2011-05-06  Cary Coutant  <ccoutant@google.com>
449
450         * dwarf2out.c (contains_subprogram_definition): New function.
451         (should_move_die_to_comdat): Call it.
452
453 2011-05-06  Jeff Law  <law@redhat.com>
454
455         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
456         remove_ctrl_stmt_and_useless_edges.
457         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
458         (fixup_template_block, thread_single_edge): Likewise.
459         (mark_threaded_blocks): Use THREAD_TARGET.
460
461 2011-05-06  Alan Modra  <amodra@gmail.com>
462
463         PR target/48900
464         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
465         const0_rtx as the arg to the dummy __tls_get_addr libcall.
466
467 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
468
469         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
470         constraint modifier to "r".
471
472 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
473
474         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
475         fall through for OPT_mcmodel_.
476
477 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
478
479         * config/s390/s390.c (s390_asm_trampoline_template): Comment
480         instruction sizes.
481         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
482
483 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
484
485         PR target/47930
486         * config/arm/arm.opt (marm): Document it.
487         (mthumb): Reject negative variant.
488
489 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
490
491         PR target/48898
492         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
493         Fix typo in "ccvt" variable name.
494
495 2011-05-06  Tristan Gingold  <gingold@adacore.com>
496
497         PR target/48895
498         * config/vms/vms-ar.c (main): Remove cwd variable.
499
500 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
501
502         PR debug/48902
503         * var-tracking.c (prepare_call_arguments): Move else before #endif.
504
505 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
506
507         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
508         * gimplify.c (gimplify_switch_expr): Likewise.
509         * omp-low.c (expand_omp_sections): Likewise.
510         * tree-eh.c (lower_try_finally_switch): Likewise.
511         (lower_eh_dispatch): Likewise.
512         * tree.h (build_case_label): Declare.
513         * tree.c (build_case_label): Define.
514
515 2011-05-05  Jason Merrill  <jason@redhat.com>
516
517         PR c++/40975
518         * tree-inline.c (copy_tree_r): Use copy_statement_list.
519         (copy_statement_list): Don't recurse.
520         * stor-layout.c (copy_self_referential_tree_r): Don't allow
521         STATEMENT_LIST.
522
523 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
524
525         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
526         through from -mfpu= handling.
527         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
528
529 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
530
531         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
532         POST_MODIFY.
533
534 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
535
536         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
537         for 11.31.
538         (hppa[12]*-*-hpux11*): Ditto.
539         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
540         * config/ia64/hpux-unix2003.h: New.
541         * config/pa/pa-hpux1131.opt: New.
542         * config/pa/pa-hpux1131.h: New.
543         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
544         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
545         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
546
547 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
548
549         PR debug/48853
550         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
551         instead of mode as 3rd argument to recursive call.
552         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
553         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
554         VOIDmode.
555         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
556         don't give up if mode is Pmode and mem_mode is not VOIDmode.
557         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
558         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
559
560 2011-05-05  Julian Brown  <julian@codesourcery.com>
561
562         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
563         parenthesis in D-register case.
564
565 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
566
567         * opt-functions.awk (var_type_struct): Handle Enum options.
568         * optc-gen.awk: Don't check range of variables of character type.
569         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
570         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
571         rs6000_sdata_name, rs6000_explicit_options): Remove.
572         (rs6000_option_override_internal): Check for -malign-power here.
573         Use global_options_set instead of rs6000_explicit_options.
574         (rs6000_parse_fpu_option): Remove.
575         (rs6000_handle_option): Access variables via opts and opts_set
576         pointers.  Use error_at and warning_at.  Add fall-through
577         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
578         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
579         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
580         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
581         here.  Don't use rs6000_parse_fpu_option.
582         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
583         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
584         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
585         (mrecip=): Use Var.
586         (mspe): Use Var and Save.
587         (mtraceback=): Use Enum and Var.
588         (rs6000_traceback_type): New Enum and EnumValue entries.
589         (mfloat-gprs=): Use Enum, Var and Save.
590         (rs6000_float_gprs): New Enum and EnumValue entries.
591         (mlong-double-): use Var and Save.
592         (msched-costly-dep=, minsert-sched-nops=): Use Var.
593         (malign-): Use Enum and Var.
594         (rs6000_alignment_flags): New Enum and EnumValue entries.
595         (mfpu=): Use Enum.
596         (fpu_type_t): New Enum and EnumValue entries.
597         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
598         global_options_set instead of rs6000_explicit_options.
599         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
600         global_options_set instead of rs6000_explicit_options.
601         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
602         global_options_set instead of rs6000_explicit_options.
603         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
604         global_options_set instead of rs6000_explicit_options.
605         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
606         global_options_set instead of rs6000_explicit_options.
607         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
608         global_options_set instead of rs6000_explicit_options.
609         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
610         definition.
611         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
612         global_options_set instead of rs6000_explicit_options.
613         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
614         (rs6000_cmodel): New Enum and EnumValue entries.
615         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
616         global_options_set instead of rs6000_explicit_options.
617         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
618         (mtls-size=): Use Enum and Var.
619         (rs6000_tls_size): New Enum and EnumValue entries.
620
621 2011-05-05  Michael Matz  <matz@suse.de>
622
623         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
624         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
625         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
626         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
627         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
628         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
629         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
630         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
631         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
632         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
633         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
634         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
635         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
636         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
637         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
638         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
639
640 2011-05-05  Richard Guenther  <rguenther@suse.de>
641
642         * expmed.c (expand_variable_shift): Rename to ...
643         (expand_shift_1): ... this.  Take an expanded shift amount.
644         For rotates recurse directly not building trees for the shift amount.
645         (expand_variable_shift): Wrap around expand_shift_1.
646         (expand_shift): Adjust.
647
648 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
649
650         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
651
652 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
653
654         * tree.h (get_pending_sizes): Remove prototype.
655         (put_pending_size): Likewise.
656         (put_pending_sizes): Likewise.
657         * stor-layout.c (pending_sizes): Delete.
658         (get_pending_sizes): Likewise.
659         (put_pending_size): Likewise.
660         (put_pending_sizes): Likewise.
661         (variable_size): Do not call put_pending_size and tidy up.
662         * function.h (struct function): Remove dont_save_pending_sizes_p.
663         * lto-streamer-in.c (input_function): Do not stream it.
664         * lto-streamer-out.c (output_function): Likewise.
665         * tree-inline.c (initialize_cfun): Do not copy it.
666         * c-decl.c (store_parm_decls): Do not set it.
667         * omp-low.c (create_task_copyfn): Likewise.
668         * tree-optimize.c (tree_rest_of_compilation): Likewise.
669
670 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
671
672         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
673         conditions.
674         (*movdf_internal): Ditto.
675         (*movdf_internal_nointeger): Ditto.
676         (*movsf_internal): Ditto.
677
678 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
679
680         * c-decl.c (finish_decl): Don't call get_pending_sizes.
681         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
682         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
683         (c_variable_size): Remove.
684         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
685         call put_pending_sizes.
686         (get_parm_info): Add parameter expr.  Use it to set
687         arg_info->pending_sizes.
688         (store_parm_decls): Use arg_info->pending_sizes instead or calling
689         get_pending_sizes.
690         * c-parser.c (c_parser_parms_declarator): Update call to
691         c_parser_parms_list_declarator.
692         (c_parser_parms_list_declarator): Take parameter expr.  Update
693         call to push_parm_decl.  Update recursive call.  Don't call
694         get_pending_sizes.  Update calls to get_parm_info.
695         (c_parser_objc_method_definition): Update calls to
696         c_parser_objc_method_decl and objc_start_method_definition.
697         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
698         (c_parser_objc_method_decl): Add parameter expr.  Update call to
699         grokparm.
700         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
701         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
702         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
703
704 2011-05-05  Michael Hope  <michael.hope@linaro.org>
705
706         PR pch/45979
707         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
708         __ARM_EABI__ hosts.
709
710 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
711
712         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
713         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
714         (spu_output_mi_thunk): New function.
715
716 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
717
718         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
719         targetm.asm_out.print_operand.
720         * config/sol2.c: Include target.h.
721
722 2011-05-04  Jan Hubicka  <jh@suse.cz>
723
724         * ipa-inline.c (reset_edge_caches): New function.
725         (update_caller_keys): Add check_inlinablity_for; do not
726         reset edge caches; remove now unnecesary loop.
727         (update_callee_keys): Add comments; reset node_growth_cache of callee.
728         (update_all_callee_keys): Likewise.
729         (inline_small_functions): Sanity check cache; update code
730         recomputing it.
731
732 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
733
734         PR rtl-optimization/47612
735         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
736         as the last insn of the sequence to be moved.
737
738 2011-05-04  Tobias Burnus  <burnus@net-b.de>
739
740         PR fortran/48864
741         * doc/invoke.texi (Ofast): Document that it
742         enables Fortran's -fno-protect-parens.
743
744 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
745
746         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
747
748 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
749
750         * stor-layout.c (variable_size): Do not issue errors.
751
752 2011-05-04  Richard Guenther  <rguenther@suse.de>
753
754         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
755         for array-ref indices.
756         (tree_coverage_counter_addr): Likewise.
757         (build_fn_info_type): Use size_int for index types.
758         (build_gcov_info): Likewise.
759
760 2011-05-04  Richard Guenther  <rguenther@suse.de>
761
762         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
763         to build_int_cst.
764         * c-typeck.c (really_start_incremental_init): Use bitsize_int
765         for constructor indices.
766         (push_init_level): Likewise.
767
768 2011-05-04  Richard Guenther  <rguenther@suse.de>
769
770         * explow.c (promote_mode): Move variable declarations before code.
771
772 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
773
774         * tree.h (build_function_type_array): Declare.
775         (build_varargs_function_type_array): Declare.
776         (build_function_type_vec, build_varargs_function_type_vec): Define.
777         * tree.c (build_function_type_array_1): New function.
778         (build_function_type_array): New function.
779         (build_varargs_function_type_array): New function.
780
781 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
782
783         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
784         before setting STMT_VINFO_TYPE.
785
786 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
787
788         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
789         instead of spu_pass_by_reference.
790
791 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
792
793         * calls.c (emit_library_call_value_1): Invoke
794         promote_function_mode hook on libcall arguments.
795         * explow.c (promote_function_mode, promote_mode): Handle TYPE
796         argument being NULL.
797         * targhooks.c (default_promote_function_mode): Lisewise.
798         * config/s390/s390.c (s390_promote_function_mode): Likewise.
799         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
800
801         * doc/tm.texi: Document that TYPE argument might be NULL.
802
803 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
804
805         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
806
807 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
808
809         From Bernd Schmidt
810         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
811
812 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
813
814         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
815         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
816         Move ...
817         * mips-tfile.c: ... here.
818         Don't include coretypes.h, tm.h, filenames.h.
819         (saber_stop): Remove definition and all calls.
820         [__SABER__]: Remove.
821         (__LINE__): Remove default.
822         (Size_t, Ptrdiff_t): Remove definitions.
823         Replace by size_t, ptrdiff_t.
824         [!MIPS_DEBUGGING_INFO]: Remove.
825         (SHASH_SIZE, THASH_SIZE): Remove defaults.
826         (progname): Add const.
827         (STATIC): Remove.
828         Replace all uses by static.
829         (ALIGN_SYMTABLE_OFFSET): Remove default.
830         * mips-tdump.c: Don't include coretypes.h, tm.h.
831         Remove !MIPS_IS_STAB guard.
832         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
833         $(TM_H), filenames.h dependencies.
834         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
835
836 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
837
838         From Jie Zhang
839         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
840         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
841
842 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
843
844         From Bernd Schmidt
845         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
846         account and save/restore RETS.
847         (PROFILE_BEFORE_PROLOGUE): Define.
848         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
849         the push insn to use predecrement.
850
851 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
852
853         From Jie Zhang
854         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
855
856 2011-05-04  Nick Clifton  <nickc@redhat.com>
857
858         * config/mn10300/mn10300.c: Include cfgloop.h.
859         (DUMP): New macro.
860         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
861         Lcc or a FLcc insn into the instruction stream.
862         (mn10300_block_contains_call): New function.  Returns true if the
863         given basic block contains a CALL insn.
864         (mn10300_loop_contains_call_insn): New function.  Returns true if
865         the given loop contains a CALL insn.
866         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
867         to use the SETLB and Lcc or FLcc insns.
868         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
869         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
870         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
871         disable the SETLB optimization.
872         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
873         __SETLB__ or __NO_SETLB__.
874         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
875         (movsf_internal): Handle MDR register.
876         (cmpsi): Make visible.
877         (setlb): New pattern.
878         (Lcc): New pattern.
879         (FLcc): New pattern.
880
881 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
882
883         PR target/48860
884         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
885         for reg<->xmm moves.
886         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
887         (vec_concatv2di_rex64_sse): Ditto.
888         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
889         (*vec_extractv2di_1_rex64): Ditto.
890
891         Revert:
892         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
893
894         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
895         reg<->xmm moves.
896         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
897
898 2011-05-04  Richard Guenther  <rguenther@suse.de>
899
900         * tree.h (int_const_binop): Remove notrunc argument.
901         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
902         create integer constants that are properly truncated.
903         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
904         (const_binop): Remove zero notrunc argument to int_const_binop.
905         (size_binop_loc): Likewise.
906         (fold_div_compare): Likewise.
907         (maybe_canonicalize_comparison_1): Likewise.
908         (fold_comparison): Likewise.
909         (fold_binary_loc): Likewise.
910         (multiple_of_p): Likewise.
911         * expr.c (store_constructor): Likewise.
912         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
913         (maybe_fold_stmt_addition): Likewise.
914         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
915         * stor-layout.c (layout_type): Likewise.
916         * tree-data-ref.c (tree_fold_divides_p): Likewise.
917         * tree-sra.c (build_ref_for_offset): Likewise.
918         (build_user_friendly_ref_for_offset): Likewise.
919         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
920         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
921         * tree-ssa-loop-niter.c (inverse): Likewise.
922         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
923         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
924         * tree-switch-conversion.c (check_range): Likewise.
925         (build_constructors): Likewise.
926         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
927         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
928         (extract_range_from_assert): Likewise.
929         (vrp_int_const_binop): Likewise.
930         (extract_range_from_binary_expr): Likewise.
931         (extract_range_from_unary_expr): Likewise.
932         (check_array_ref): Likewise.
933         (find_case_label_range): Likewise.
934         (simplify_div_or_mod_using_ranges): Likewise.
935         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
936         comparing case labels for merging.
937
938 2011-05-03  Mark Wielaard  <mjw@redhat.com>
939
940         * dwarf2out.c (debug_str_hash_forced): Removed.
941         (gen_label_for_indirect_string): Removed.
942         (get_debug_string_label): Removed.
943         (AT_string_form): Generate label directly.
944         (output_indirect_string): Test indirect_string_node for
945         DW_FORM_strp instead of checking label and refcount.
946         (prune_indirect_string): Removed.
947         (prune_unused_types): Don't check debug_str_hash_forced or
948         call prune_indirect_string.
949
950 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
951
952         PR other/48093
953         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
954
955 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
956
957         PR debug/47994
958         PR debug/47919
959         * combine.c (try_combine): Skip debug insns at m_split tests.
960
961 2011-04-26  Mark Wielaard  <mjw@redhat.com>
962
963         PR42288
964         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
965         when info_section_emitted.
966
967 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
968
969         * config/mips/mips-opts.h: New.
970         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
971         to mips-opts.h.
972         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
973         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
974         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
975         via opts pointer.
976         * config/mips/mips.h (enum mips_code_readable_setting): Move to
977         mips-opts.h.
978         (mips_abi, mips_code_readable): Don't declare.
979         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
980         (mabi=): Use Enum and Var.
981         (mips_abi): New Enum and EnumValue entries.
982         (mcode-readable=): Use Enum and Var.
983         (mips_code_readable_setting): New Enum and EnumValue entries.
984         (mr10k-cache-barrier=): Use Enum and Var.
985         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
986
987 2011-05-03  Jan Hubicka  <jh@suse.cz>
988
989         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
990         replace hash by pointer map.
991         (cgraph_node_set_element_def, cgraph_node_set_element,
992         const_cgraph_node_set_element, varpool_node_set_element_def,
993         varpool_node_set_element, const_varpool_node_set_element): Remove.
994         (free_cgraph_node_set, free_varpool_node_set): New function.
995         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
996         * tree-emutls.c: Free varpool node set.
997         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
998         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
999         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1000         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1001         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1002         Move here from ipa.c; implement using pointer_map
1003         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1004         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1005         debug_cgraph_node_set, varpool_node_set_new,
1006         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1007         dump_varpool_node_set, debug_varpool_node_set):
1008         Move to ipa-uitls.c.
1009         * passes.c (ipa_write_summaries): Update.
1010
1011 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1012
1013         From Mike Frysinger:
1014         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1015         bf542/bf544/bf547/bf548/bf549.
1016
1017 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1018
1019         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1020
1021 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1022
1023         From Bernd Schmidt:
1024         * config/bfin/bfin.md (MOVCC): New mode_macro.
1025         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1026         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1027         comments from generated assembly.
1028
1029 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1030
1031         From Bernd Schmidt
1032         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1033         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1034         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1035         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1036         * config/bfin/lib1funcs.asm (___muldi3): New function.
1037
1038 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1039
1040         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1041         build_function_type_list instead of build_function_type.
1042         Rearrange initialization of `args' to do so.
1043
1044 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1045
1046         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1047         instead of build_function_type.
1048
1049 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1050
1051         * config/rs6000/rs6000.c (spe_init_builtins): Call
1052         build_function_type_list instead of build_function_type.
1053         (paired_init_builtins, altivec_init_builtins): Likewise.
1054         (builtin_function_type): Likewise.
1055
1056 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1057
1058         * config/sh/sh.c (sh_media_init_builtins): Call
1059         build_function_type_list instead of build_function_type.
1060
1061 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1062
1063         * config/sparc/sparc.c (sparc_file_end): Call
1064         build_function_type_list instead of build_function_type.
1065
1066 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1067
1068         * config/alpha/alpha.c (alpha_init_builtins): Call
1069         build_function_type_list instead of build_function_type.
1070
1071 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1072
1073         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1074         build_function_type_list instead of build_function_type.
1075
1076 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1077
1078         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1079         build_function_type_list instead of build_function_type.
1080         Delete `endlink' variable.
1081
1082 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1083
1084         * config/avr/avr.c (avr_init_builtins): Call
1085         build_function_type_list instead of build_function_type.
1086
1087 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1088
1089         * config/picochip/picochip.c (picochip_init_builtins): Call
1090         build_function_type_list instead of build_function_type.
1091         Delete `endlink' variable.
1092
1093 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1094
1095         * config/bfin/bfin.c (bfin_init_builtins): Call
1096         build_function_type_list instead of build_function_type.
1097
1098 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1099
1100         From Bernd Schmidt
1101         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1102         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1103
1104 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1105
1106         From Jie Zhang:
1107         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1108         libbffastfp overrides libgcc when -mfast-fp.
1109
1110 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
1111
1112         Originally from Bernd Schmidt
1113         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1114         * config/bfin/bfin.c (override_options): Test it and error if
1115         TARGET_FDPIC.
1116
1117 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1118
1119         Originally From Bernd Schmidt
1120         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1121         FD-PIC.
1122
1123 2011-05-03  Jeff Law  <law@redhat.com>
1124
1125         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1126         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1127         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1128         than accessing AUX field directly.  Free the AUX field before
1129         clearing it.
1130         (thread_block, thread_through_loop_header): Likewise.
1131         (thread_single_edge, mark_threaded_blocks): Likewise.
1132         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1133         (register_jump_thread): Do not attempt to thread to a NULL edge.
1134
1135 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1136
1137         * function.c (init_function_start): Call decide_function_section.
1138         * varasm.c (decide_function_section): New function.
1139         (assemble_start_function): When not using
1140         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1141         or first_function_block_is_cold.
1142         * rtl.h (decide_function_section): Declare.
1143
1144 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1145             Jakub Jelinek  <jakub@redhat.com>
1146
1147         PR target/48774
1148         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1149         only succeed if req_mode is the same as set_mode.
1150
1151 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1152
1153         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1154         * genemit.c (gen_exp): Handle RETURN.
1155         * emit-rtl.c (verify_rtx_sharing): Likewise.
1156         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1157         * rtl.c (copy_rtx): RETURN is shared.
1158         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1159         (ret_rtx): New.
1160         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1161         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1162         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1163         * config/cris/cris.c (cris_expand_return): Likewise.
1164         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1165         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1166         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1167         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1168         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1169         Likewise.
1170         * config/v850/v850.c (expand_epilogue): Likewise.
1171         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1172         * config/arm/arm.md (epilogue): Likewise.
1173         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1174         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1175         variable to ret_reg.
1176
1177 2011-05-03  Richard Guenther  <rguenther@suse.de>
1178
1179         PR lto/48846
1180         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1181         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1182         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1183
1184 2011-05-03  Richard Guenther  <rguenther@suse.de>
1185
1186         * c-decl.c (grokdeclarator): Instead of looking at
1187         TREE_OVERFLOW check if the constant fits in the index type.
1188
1189 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1190
1191         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1192         (vec_store_lanes<mode><mode>): Likewise.
1193
1194 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1195
1196         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1197         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1198         convert_optab_index values.
1199         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1200         * genopinit.c (optabs): Initialize the new optabs.
1201         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1202         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1203         (expand_STORE_LANES): New functions.
1204         * tree.h (build_array_type_nelts): Declare.
1205         * tree.c (build_array_type_nelts): New function.
1206         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1207         (vect_model_load_cost): Likewise.
1208         (vect_store_lanes_supported, vect_load_lanes_supported)
1209         (vect_record_strided_load_vectors): Declare.
1210         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1211         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1212         (vect_transform_strided_load): Split out statement recording into...
1213         (vect_record_strided_load_vectors): ...this new function.
1214         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1215         (write_vector_array, create_array_ref): New functions.
1216         (vect_model_store_cost): Add store_lanes_p argument.
1217         (vect_model_load_cost): Add load_lanes_p argument.
1218         (vectorizable_store): Try to use store-lanes functions for
1219         interleaved stores.
1220         (vectorizable_load): Likewise load-lanes and loads.
1221         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1222         to vect_model_store_cost.
1223         (vect_build_slp_tree): Likewise vect_model_load_cost.
1224
1225 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1226
1227         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1228         * hooks.c (hook_bool_mode_uhwi_false): New function.
1229         * target.def (array_mode_supported_p): New hook.
1230         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1231         * doc/tm.texi: Regenerate.
1232         * stor-layout.c (mode_for_array): New function.
1233         (layout_type): Use it.
1234         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1235         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1236
1237 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1238
1239         PR target/48723
1240         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1241         for -fstack-check if the size to allocate is negative.
1242
1243 2011-05-02  Lawrence Crowl  <crowl@google.com>
1244
1245         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1246         (timevar_cond_start): New for starting a timer only when it is not
1247         already running.
1248         (timevar_cond_stop): New for stopping a timer when it was not already
1249         running.
1250
1251         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1252         (timevar_cond_start): New as above.
1253         (timevar_cond_stop): New as above.
1254
1255         * timevar.def: Add start/stop timers for compiler phases,
1256         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1257         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1258         and TV_PHASE_FINALIZE.
1259         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1260         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1261         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1262         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1263         Make unused TV_OVERLOAD into a start/stop timer.
1264
1265         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1266         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1267         to indicate that they are start/stop timers.
1268
1269         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1270         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1271         Move initialization to do_compile.
1272         (do_compile): Add initialization from above.
1273         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1274
1275         * c-decl.c (c_write_global_declarations): Add start/stop of
1276         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1277
1278         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1279         or TV_PARSE_INLINE, as appropriate.
1280         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1281         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1282
1283 2011-05-02  Jason Merrill  <jason@redhat.com>
1284
1285         PR c++/40975
1286         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1287
1288 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1289
1290         PR c/35445
1291         * c-decl.c (finish_decl): Only create a composite if the types are
1292         compatible.
1293
1294 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1295
1296         * config/fr30/fr30-protos.h (Mmode): Don't define.
1297         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1298         definition where used.
1299         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1300         define.  Expand definitions where used.
1301         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1302         Expand definitions where used.
1303         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1304         rx_function_arg, rx_function_arg_advance,
1305         rx_function_arg_boundary): Expand definitions of those macros.
1306         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1307         definition where used.
1308
1309 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1310
1311         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1312         reg<->xmm moves.
1313         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1314         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1315         with *movv2sf_internal_rex64_avx.
1316         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1317         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1318         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1319         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1320         "vex" in "prefix" attribute calculation.
1321         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1322
1323 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1324
1325         PR target/47951
1326         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1327         inputs match the output.
1328
1329 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1330
1331         PR target/47955
1332         * config/m68k/m68k.c (m68k_expand_prologue): Set
1333         current_function_static_stack_size.
1334
1335 2011-05-02   Jan Hubicka  <jh@suse.cz>
1336
1337         * lto-streamer.c (lto_streamer_cache_insert_1,
1338         lto_streamer_cache_lookup, lto_streamer_cache_create,
1339         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1340         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1341
1342 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1343
1344         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1345         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1346         config/m68k/t-opts: New files.
1347         * config/m68k/m68k-tables.opt: New file (generated).
1348         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1349         extra_options and m68k/t-opts to tmake_file.
1350         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1351         (all_isas): Initialize using m68k-isas.def.
1352         (all_microarchs): Initialize using m68k-microarchs.def.
1353         (m68k_find_selection): Remove.
1354         (m68k_handle_option): Don't assert that global structures are in
1355         use.  Use error_at.  Access variables via opts pointer.  Don't
1356         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1357         directly for -m68020-40 and -m68020-60.
1358         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1359         m68k_tune_entry here.
1360         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1361         to m68k-opts.h.
1362         (m68k_library_id_string): Remove declaration.
1363         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1364         (m68k_library_id_string): New Variable.
1365         (march=, mcpu=, mtune=): Use Enum and Var.
1366
1367 2011-05-02  Richard Guenther  <rguenther@suse.de>
1368
1369         * varasm.c (output_constructor_regular_field): Compute zero-based
1370         index with double-ints.  Make sure to ICE instead of producing
1371         wrong code.
1372         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1373         in asserts.  Properly use a signed type.
1374
1375 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1376
1377         * config/i386/sse.md (V): New mode iterator.
1378         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1379         TARGET_SSE2.
1380         (V_256): Rename from AVX256MODE.
1381         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1382         condition to all users.
1383         (VF1): Ditto.
1384         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1385         condition to all users.
1386         (VF_128): Make V4SF mode unconditional.
1387         (VF_256): Rename from AVX256MODEF2P.
1388         (VI4F_128): Rename from SSEMODE4S.
1389         (VI8F_128): Rename from SSEMODE2D.
1390         (VI4F_256): Rename from AVX256MODE8P.
1391         (VI8F_256): Rename from AVX256MODE4P.
1392         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1393         (ssescalarmodesuffix): Remove SF and DF modes.
1394         (SSEMODE124): Remove.
1395         (SSEMODE1248): Ditto.
1396         (SSEMODEF2P): Ditto.
1397         (AVXMODEF2P): Ditto.
1398         (AVXMODEFDP): Ditto.
1399         (AVXMODEFSP): Ditto.
1400         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1401         unconditional.
1402         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1403         unconditional.
1404         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1405         xop_pcmov_<mode>256.  Use V mode iterator.
1406
1407         Adjust RTX patterns globally for renamed mode attributes.
1408
1409 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1410
1411         * haifa-sched.c (sched_emit_insn): Emit insn before first
1412         non-scheduled insn.  Inform back-end about new insn.  Add
1413         new insn to scheduled_insns list.
1414
1415 2011-05-02  Richard Guenther  <rguenther@suse.de>
1416
1417         PR tree-optimization/48822
1418         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1419         (process_scc): Indicate which iteration we start.
1420
1421 2011-05-02  Jan Hubicka  <jh@suse.cz>
1422
1423         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1424         (lto_section_overrun): New.
1425         * lto-section-out.c (append_block): Rename to ...
1426         (lto_append_block): ... this one; export.
1427         (lto_output_1_stream): Move lto lto-streamer.h
1428         (lto_output_data_stream): Update.
1429         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1430         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1431         functions.
1432
1433 2011-05-02  Richard Guenther  <rguenther@suse.de>
1434
1435         * tree.c (tree_code_counts): New global array.
1436         (record_node_allocation_statistics): Count individual tree codes.
1437         (dump_tree_statistics): Dump individual code stats.
1438
1439 2011-05-01  Jan Hubicka  <jh@suse.cz>
1440
1441         * ipa-inline.c (caller_growth_limits): Fix thinko when
1442         looking for largest stack frame.
1443         * ipa-inline.h (dump_inline_summary): Declare.
1444         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1445         on stack usage.
1446         (dump_inline_summary): Export.
1447         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1448
1449 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1450
1451         * reginfo.c (memory_move_cost): Change rclass argument type form
1452         'enum reg_class' to reg_class_t.
1453         * reload.h (memory_move_cost): Update prototype.
1454         * postreload.c reload_cse_simplify_set): Change type dclass var to
1455         reg_class_t.
1456         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1457         Update prototype.
1458         (ira_allocate_and_set_costs): Change aclass argument type form
1459         'enum reg_class' to reg_class_t.
1460         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1461         Change aclass argument type to reg_class_t.
1462         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1463         to reg_class_t.
1464         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1465         memory_move_cost call.
1466
1467         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1468         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1469         Change type tmp var to reg_class_t.
1470
1471 2011-04-30  Jan Hubicka  <jh@suse.cz>
1472
1473         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1474         inlining into function with flatten attribute.
1475         (want_inline_small_function_p): Be more realistic about inlining
1476         cold calls where callee size grows.
1477
1478 2011-04-30  Jan Hubicka  <jh@suse.cz>
1479
1480         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1481         flags.
1482
1483 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1484
1485         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1486         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1487         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1488         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1489         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1490         (print_operand): Rename to...
1491         (sparc_print_operand): ...this. Make static. Adjust
1492         sparc_print_operand function call.
1493         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1494         functions.
1495
1496 2011-04-30  Jan Hubicka  <jh@suse.cz>
1497
1498         PR middle-end/48752
1499         * ipa-inline.c (early_inliner): Disable when doing late
1500         addition of function.
1501
1502 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1503
1504         * dwarf2out.c (get_address_mode): New inline.
1505         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1506         if not dwarf_strict emit
1507         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1508         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1509         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1510         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1511         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1512         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1513         mem_loc_descriptor callers.
1514         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1515         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1516         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1517         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1518         (base_types): New variable.
1519         (get_base_type_offset, calc_base_type_die_sizes,
1520         base_type_for_mode, mark_base_types, base_type_cmp,
1521         move_marked_base_types): New functions.
1522         (calc_die_sizes): Assert that die_offset is 0 or equal to
1523         next_die_offset.
1524         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1525         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1526         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1527         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1528         (gen_subprogram_die): Don't give up on call site parameters
1529         with non-integral or large integral modes.  Adjust
1530         mem_loc_descriptor callers.
1531         (prune_unused_types): Call prune_unused_types_mark on base_types
1532         vector entries.
1533         (resolve_addr): Call mark_base_types.
1534         (dwarf2out_finish): Call move_marked_base_types.
1535
1536         PR tree-optimization/48809
1537         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1538         type.
1539         (gen_inbound_check): Don't compute index_expr - range_min in utype
1540         again, instead reuse SSA_NAME initialized in build_arrays.
1541         Remove two useless gsi_for_stmt calls.
1542
1543 2011-04-29  Jeff Law  <law@redhat.com>
1544
1545         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1546
1547 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1548
1549         * cgraph.h (cgraph_postorder): Remove declaration.
1550         * ipa-utils.h (ipa_free_postorder_info): Declare.
1551         (ipa_reverse_postorder): Likewise.
1552         * cgraphunit.c: Include ipa-utils.h.
1553         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1554         * ipa-inline.c: Include ipa-utils.h.
1555         (ipa_inline): Update call to ipa_reverse_postorder.
1556         * ipa-pure-const.c (propagate_pure_const): Update call to
1557         ipa_reduced_postorder and ipa_print_order.  Call
1558         ipa_free_postorder_info to clean up.
1559         (propagate_nothrow): Likewise.
1560         * ipa-reference.c (propagate): Removed a useless call to
1561         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1562         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1563         * ipa.c: Include ipa-utils.h.
1564         (ipa_profile): Update call to ipa_reverse_postorder.
1565         (cgraph_postorder): Moved to...
1566         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1567         (ipa_utils_print_order): Renamed to ipa_print_order.
1568         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1569         comments.
1570         (ipa_free_postorder_info): New function.
1571         * passes.c: Include ipa-utils.h.
1572         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1573         (ipa_write_summaries): Likewise.
1574         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1575         (cgraphunit.o): Likewise.
1576         (ipa.o): Likewise.
1577         (ipa-inline.o): Likewise.
1578
1579 2011-04-29  Jan Hubicka  <jh@suse.cz>
1580
1581         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1582         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1583         * ipa-inline.h (clause_t): Turn into unsigned int.
1584         * ipa-inline-analysis.c (add_clause): Do more simplification.
1585         (and_predicates): Shortcut more cases.
1586         (predicates_equal_p): Move forward; check that clauses are properly
1587         ordered.
1588         (or_predicates): Shortcut more cases.
1589         (edge_execution_predicate): Rewrite as...
1590         (set_cond_stmt_execution_predicate): ... this function; handle
1591         __builtin_constant_p.
1592         (set_switch_stmt_execution_predicate): New .
1593         (compute_bb_predicates): New.
1594         (will_be_nonconstant_predicate): Update TODO.
1595         (estimate_function_body_sizes): Use compute_bb_predicates
1596         and free them later, always try to estimate if stmt is constant.
1597         (estimate_time_after_inlining, estimate_size_after_inlining):
1598         Gracefully handle optimized out edges.
1599         (read_predicate): Fix off by one error.
1600
1601 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1602
1603         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1604
1605 2011-04-27  Xinliang David Li  <davidxl@google.com>
1606
1607         * tree-profile.c (init_ic_make_global_vars): Set
1608         tls attribute on ic vars.
1609         * coverage.c (coverage_end_function): Initialize
1610         function_list with zero.
1611
1612 2011-04-29  Richard Guenther  <rguenther@suse.de>
1613
1614         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1615         for the type of the result.
1616         (fold_builtin_isascii): Likewise.
1617         (fold_builtin_toascii): Use integer_type_node where appropriate.
1618         (fold_builtin_logb): Likewise.
1619         (fold_builtin_frexp): Likewise.
1620         (fold_builtin_strstr): Likewise.
1621         (fold_builtin_strpbrk): Likewise.
1622         (fold_builtin_fputs): Likewise.
1623         (fold_builtin_sprintf): Likewise.
1624         (fold_builtin_snprintf): Likewise.
1625         (fold_builtin_printf): Likewise.
1626         (do_mpfr_remquo): Use a proper type for the assigned constant.
1627         (do_mpfr_lgamma_r): Likewise.
1628         * dwarf2out.c (resolve_one_addr): Use size_int.
1629         * except.c (init_eh): Likewise.
1630         (assign_filter_values): Use integer_type_node for filter values.
1631         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1632         indices.
1633         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1634         for EH region numbers.
1635         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1636         for the shift amount.
1637
1638 2011-04-29  Richard Guenther  <rguenther@suse.de>
1639
1640         * expr.h (expand_shift): Rename to ...
1641         (expand_variable_shift): ... this.
1642         (expand_shift): Take a constant shift amount.
1643         * expmed.c (expand_shift): Rename to ...
1644         (expand_variable_shift): ... this.
1645         (expand_shift): New wrapper around expand_variable_shift.
1646         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1647         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1648         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1649         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1650         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1651         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1652         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1653         emit_store_flag_1, emit_store_flag): Likewise.
1654         * builtins.c (expand_builtin_signbit): Likewise.
1655         * calls.c (load_register_parameters): Likewise.
1656         * function.c (assign_parm_setup_block): Likewise.
1657         * lower-subreg.c (resolve_shift_zext): Likewise.
1658         * optabs.c (widen_bswap, expand_abs_nojump,
1659         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1660         * spu/spu.c (spu_expand_extv): Likewise.
1661         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1662
1663 2011-04-29  Richard Guenther  <rguenther@suse.de>
1664
1665         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1666         for the remapped region number.
1667         * predict.c (build_predict_expr): Use integer_type_node for the
1668         predict kind.
1669         * fold-const.c (fold_binary_loc): Use integer_type_node for
1670         the shift amount.  Use a proper type for the PLUS_EXPR operand.
1671
1672 2011-04-29  Michael Matz  <matz@suse.de>
1673
1674         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1675         other trees that just builtins.
1676         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1677
1678 2011-04-29  Richard Guenther  <rguenther@suse.de>
1679
1680         * tree-nested.c (get_trampoline_type): Use size_int.
1681         (get_nl_goto_field): Likewise.
1682         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1683         for all indexes.
1684         (lower_eh_constructs_2): Likewise.
1685         (lower_resx): Likewise.
1686         (lower_eh_dispatch): Likewise.
1687         * tree-mudflap.c (mf_build_string): Use size_int.
1688         (mudflap_register_call): Use integer_type_node for the flag.
1689         (mudflap_enqueue_constant): Use size_int.
1690         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1691         instead of rebuilding it.
1692
1693 2011-04-29  Richard Guenther  <rguenther@suse.de>
1694
1695         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1696         Handle OBJ_TYPE_REF.
1697         (find_func_aliases_for_call): Use it more consistently.
1698
1699 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
1700
1701         * haifa-sched.c (last_nondebug_scheduled_insn): New.
1702         (rank_for_schedule): Use it.
1703         (schedule_block): Set it.
1704
1705 2011-04-28  David Li  <davidxl@google.com>
1706
1707         * tree.c (crc32_string): Use crc32_byte.
1708         (crc32_byte): New function.
1709         * tree.h (crc32_byte): New function.
1710         * gcov.c (read_graph_file): Handle new cfg_cksum.
1711         (read_count_file): Ditto.
1712         * profile.c (instrument_values): Ditto.
1713         (get_exec_counts): Ditto.
1714         (read_profile_edge_counts): Ditto.
1715         (compute_branch_probabilities): Ditto.
1716         (compute_value_histograms): Ditto.
1717         (branch_prob): Ditto.
1718         (end_branch_prob): Ditto.
1719         * coverage.c (read_counts_file): Ditto.
1720         (get_coverage_counts): Ditto.
1721         (tree_coverage_counter_addr): Ditto.
1722         (coverage_checksum_string): Ditto.
1723         (coverage_begin_output): Ditto.
1724         (coverage_end_function): Ditto.
1725         (build_fn_info_type): Ditto.
1726         (build_fn_info_value): Ditto.
1727         * libgcov.c (gcov_exit): Ditto.
1728         * gcov-dump.c (tag_function): Ditto.
1729         (compute_checksum): Remove.
1730
1731 2011-04-29  Alan Modra  <amodra@gmail.com>
1732
1733         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1734         unspec plus offset.  Tidy macho code.
1735
1736 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1737
1738         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1739         node instead of a decl.  Update all callers.
1740         * cgraph.h: Update declaration.
1741
1742 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
1743
1744         PR tree-optimization/48765
1745         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1746         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1747         to indicate if loop aware SLP is being used.  Scan the statements
1748         and update the vectorization factor according to the type of
1749         vectorization before statement analysis.
1750         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1751         pass it to vect_analyze_loop_operations.
1752         (vectorizable_reduction): Set number of copies to 1 in case of pure
1753         SLP statement.
1754         * tree-vect-stmts.c (vectorizable_conversion,
1755         vectorizable_assignment, vectorizable_shift,
1756         vectorizable_operation, vectorizable_type_demotion,
1757         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1758         Likewise.
1759         (vectorizable_condition): Move the check that it is not SLP
1760         vectorization before the number of copies check.
1761         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1762         to vectorize the loop using SLP.
1763
1764 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
1765
1766         PR middle-end/48597
1767         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1768         inline asm.
1769
1770 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
1771
1772         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1773         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1774         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1775         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1776         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1777         linux*.h headers.
1778         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1779         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1780         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1781         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1782         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1783         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1784         REG_NAME.
1785         * config/i386/linux.h (REG_NAME): Don't define.
1786         * config/i386/linux64.h (REG_NAME): Don't define.
1787         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1788         Undefine before defining.
1789
1790 2011-04-28  Jan Hubicka  <jh@suse.cz>
1791
1792         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1793         nonconstant_names array.
1794         (estimate_function_body_sizes): Build nonconstant_names array; handle
1795         BUILT_IN_CONSTANT_P.
1796
1797 2011-04-28  Richard Guenther  <rguenther@suse.de>
1798
1799         PR bootstrap/48804
1800         Revert
1801         2011-04-28  Richard Guenther  <rguenther@suse.de>
1802
1803         * tree-ssa-structalias.c (solve_constraints): Build succ graph
1804         as late as possible.
1805
1806 2011-04-28  Richard Guenther  <rguenther@suse.de>
1807
1808         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1809         (debug_constraint): Do it here.
1810         (dump_constraints): And here.
1811         (rewrite_constraints): And here.
1812         (dump_constraint_edge): Remove.
1813         (dump_constraint_graph): Rewrite to produce DOT output.
1814         (solve_constraints): Build succ graph as late as possible.
1815         Dump constraint graphs before and after solving.
1816
1817 2011-04-28  Richard Guenther  <rguenther@suse.de>
1818
1819         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1820         New function split out from ...
1821         (find_func_aliases): ... here.  Call it.
1822         (find_func_aliases_for_call): Likewise.
1823
1824 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1825
1826         * internal-fn.h (internal_fn_name_array): Declare.
1827         (internal_fn_flags_array): Likewise.
1828
1829 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1830
1831         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
1832         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1833         Move from sse.md.
1834         (ssemodefsuffix): Remove.
1835         (ssevecmodesuffix): New mode attribute.
1836         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1837         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1838         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1839         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1840         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1841         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1842         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1843         ssemodesuffix mode attribute.
1844         (float splitters): Use ssevecmodesuffix mode attribute.
1845         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1846         (sseinsmode): Rename from avxvecmode.
1847         (avxsizesuffix): Rename from avxmodesuffix.
1848         (sseintvecmode): Rename from avxpermvecmode.
1849         (ssedoublevecmode): Rename from ssedoublesizemode.
1850         (ssehalfvecmode): Rename from avxhalfvecmode.
1851         (ssescalarmode): Rename from avxscalarmode.
1852         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1853         templates for ssemodesuffix mode attribute.
1854         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1855         mode attribute.
1856
1857         Adjust RTX patterns globally for renamed mode attributes.
1858
1859 2011-04-27  Jan Hubcika  <jh@suse.cz>
1860
1861         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1862         * ipa-inline-analysis.c: Include alloc-pool.h.
1863         (edge_predicate_pool): New.
1864         (trye_predicate_p): New function
1865         (false_predicate_p): New function.
1866         (add_clause): Sanity check that false clauses are "optimized";
1867         never add clauses to predicate that is already known to be false.
1868         (and_predicate): Use flase_predicate_p.
1869         (evaulate_predicate): Rename to ...
1870         (evaluate_predicate): ... this one; update all callers; assert
1871         that false is not listed among possible truths.
1872         (dump_predicate): Use true_predicate_p.
1873         (account_size_time): Use false_predicate_p.
1874         (evaulate_conditions_for_edge): Rename to ...
1875         (evaluate_conditions_for_edge) ... this one.
1876         (edge_set_predicate): New function.
1877         (inline_edge_duplication_hook): Duplicate edge predicates.
1878         (inline_edge_removal_hook): Free edge predicates.
1879         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1880         (dump_inline_summary): Update.
1881         (estimate_function_body_sizes): Set edge predicates.
1882         (estimate_calls_size_and_time): Handle predicates.
1883         (estimate_callee_size_and_time): Update.
1884         (remap_predicate): Add toplev_predicate; update comment.
1885         (remap_edge_predicates): New function.
1886         (inline_merge_summary): Compute toplev predicate; update.
1887         (read_predicate): New function.
1888         (read_inline_edge_summary): Use it.
1889         (inline_read_section): Likewise.
1890         (write_predicate): New function.
1891         (write_inline_edge_summary): Use it.
1892         (inline_write_summary): Likewise.
1893         (inline_free_summary): Free alloc pool and edge summary vec.
1894
1895 2011-04-27  Richard Guenther  <rguenther@suse.de>
1896
1897         * tree-ssa-structalias.c (changed_count): Remove.
1898         (changed): Use a bitmap.
1899         (unify_nodes): Adjust.
1900         (do_sd_constraint): Likewise.
1901         (do_ds_constraint): Likewise.
1902         (do_complex_constraint): Likewise.
1903         (solve_graph): Likewise.
1904
1905 2011-04-27  Jan Hubicka  <jh@suse.cz>
1906
1907         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1908
1909 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1910
1911         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1912         (avx_vperm2f128_*_operand): Ditto.
1913         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1914         Use avx_vpermilp_parallel in insn condition.
1915         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1916         Use avx_vperm2f128_parallel in insn condition.
1917
1918 2011-04-27  Richard Guenther  <rguenther@suse.de>
1919
1920         * Makefile.in (tree-ssa-structalias.o): Remove
1921         gt-tree-ssa-structalias.h dependency.
1922         (GTFILES): Remove tree-ssa-structalias.c.
1923         * tree.c (allocate_decl_uid): New function.
1924         (make_node_stat): Use it.
1925         (copy_node_stat): Likewise.
1926         * tree.h (allocate_decl_uid): Declare.
1927         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1928         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1929         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1930         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1931         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1932         (struct heapvar_map): Likewise.
1933         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1934         heapvar_insert): Likewise.
1935         (make_heapvar_for): Rename to ...
1936         (make_heapvar): ... this.  Simplify.
1937         (fake_var_decl_obstack): New global var.
1938         (build_fake_var_decl): New function.
1939         (make_constraint_from_heapvar): Adjust.
1940         (handle_lhs_call): Likewise.
1941         (create_function_info_for): Likewise.
1942         (intra_create_variable_infos): Likewise.
1943         (init_alias_vars): Allocate fake_var_decl_obstack.
1944         (init_alias_heapvars, delete_alias_heapvars): Remove.
1945         (compute_points_to_sets): Do not call init_alias_heapvars.
1946         (ipa_pta_execute): Likewise.
1947         (delete_points_to_sets): Free fake_var_decl_obstack.
1948
1949 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1950
1951         * config/spu/divmovti4.c (union qword_UTItype): New data type.
1952         (si_from_UTItype, si_to_UTItype): New functions.
1953         (__udivmodti4): Use them to implement type-punning.
1954         * config/spu/multi3.c (union qword_TItype): New data type.
1955         (si_from_TItype, si_to_TItype): New functions.
1956         (__multi3): Use them to implement type-punning.
1957
1958 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1959
1960         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1961
1962 2011-04-27  Jan Hubicka  <jh@suse.cz>
1963
1964         * ipa-prop.c (function_insertion_hook_holder): New holder.
1965         (ipa_add_new_function): New function.
1966         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1967         Register/deregister holder.
1968
1969 2011-04-27  Richard Guenther  <rguenther@suse.de>
1970
1971         PR tree-optimization/48772
1972         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1973
1974 2011-04-27  Richard Guenther  <rguenther@suse.de>
1975
1976         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1977         TARGET_MEM_REF handling.
1978
1979 2011-04-27  Nick Clifton  <nickc@redhat.com>
1980
1981         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1982         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1983         (REG_CLASS_NAMES): Likewise.
1984         (REG_CLASS_CONTENTS): Likewise.
1985         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1986         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1987         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
1988         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
1989         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
1990         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1991         duplicate register classes.
1992         (frv_class_likely_spilled_p): Likewise.
1993         (frv_register_move_cost): Likewise.
1994
1995         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1996         end of the regno_reg_class array.
1997
1998 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
1999
2000         PR c/48742
2001         * c-typeck.c (build_binary_op): Don't wrap arguments if
2002         int_operands is true.
2003
2004 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2005
2006         PR target/48767
2007         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2008         targetm.calls.must_pass_in_stack for void type.
2009
2010 2011-04-26  Jan Hubicka  <jh@suse.cz>
2011
2012         * cgraphbuild.c (build_cgraph_edges): Update call
2013         of cgraph_create_edge and cgraph_create_indirect_edge.
2014         * cgraph.c (cgraph_create_edge_including_clones,
2015         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2016         cgraph_update_edges_for_call_stmt_node): Do not take nest
2017         argument; do not initialize call_stmt_size/time.
2018         (dump_cgraph_node): Do not dump nest.
2019         (cgraph_clone_edge): Do not take loop_nest argument;
2020         do not propagate it; do not clone call_stmt_size/time.
2021         (cgraph_clone_node): Likewise.
2022         (cgraph_create_virtual_clone): Update.
2023         * cgraph.h (struct cgraph_edge): Remove
2024         call_stmt_size/call_stmt_time/loop_nest.
2025         (cgraph_create_edge, cgraph_create_indirect_edge,
2026         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2027         prototype.
2028         * tree-emutls.c (gen_emutls_addr): Update.
2029         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2030         loop_nest; handle indirect calls, too.
2031         (clone_inlined_nodes): Do not care about updating inline summaries.
2032         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2033         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2034         stream call_stmt_size/call_stmt_time/loop_nest.
2035         * ipa-inline.c (edge_badness): Update.
2036         (ipa_inline): dump summaries after inlining.
2037         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2038         New.
2039         (inline_edge_summary): New function.
2040         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2041         (inline_edge_removal_hook): Handle edge summaries.
2042         (inline_edge_duplication_hook): New hook.
2043         (inline_summary_alloc): Alloc hooks.
2044         (initialize_growth_caches): Do not register removal hooks.
2045         (free_growth_caches); Do not free removal hook.
2046         (dump_inline_edge_summary): New function.
2047         (dump_inline_summary): Use it.
2048         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2049         (inline_update_callee_summaries): New function.
2050         (inline_merge_summary): Use it.
2051         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2052         (read_inline_edge_summary): New function.
2053         (inline_read_section): Use it.
2054         (write_inline_edge_summary): New function.
2055         (inline_write_summary): Use it.
2056         (inline_free_summary): Free edge new holders.
2057         * tree-inline.c (copy_bb): Update.
2058
2059 2011-04-26  Jason Merrill  <jason@redhat.com>
2060
2061         * tree-eh.c (lower_try_finally_switch): Create the label along with
2062         the CASE_LABEL_EXPR.
2063
2064 2011-04-26  David S. Miller  <davem@davemloft.net>
2065             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2066
2067         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2068         * configure: Regenerate.
2069
2070 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2071
2072         PR target/48258
2073         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2074         reduction.
2075         (VEC_reduc): New code iterator and splitters for vector reduction.
2076         (VEC_reduc_name): Ditto.
2077         (VEC_reduc_rtx): Ditto.
2078         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2079         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2080
2081         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2082         support for extracting SF on VSX.
2083
2084         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2085         generating xscvspdp.
2086         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2087         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2088         double add, minimum, maximum vector reduction.
2089         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2090         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2091         optimize double vector reduction.
2092         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2093
2094 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2095
2096         * config/fr30/fr30.h (inhibit_libc): Don't define.
2097         * config/m32r/m32r-protos.h: Correct comment.
2098         * config/v850/v850.h (GHS_default_section_names,
2099         GHS_current_section_names): Use tree, not union tree_node *.
2100
2101 2011-04-26  Xinliang David Li  <davidxl@google.com>
2102
2103         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2104         * c-family/c-opts.c (c_common_handle_option): Set
2105         warn_maybe_uninitialized.
2106         * opts.c (common_handle_option): Ditto.
2107         * common.opt:  New option.
2108         * tree-ssa.c (warn_uninit): Add one more parameter.
2109         (warn_uninitialized_var): Pass warning code.
2110         * tree-flow.h: Interface change.
2111
2112
2113 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2114
2115         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2116         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2117         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2118
2119 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2120
2121         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2122         * config/mips/mips.opt (mmips-tfile): Remove.
2123
2124         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2125         mips-tdump reference to ...
2126         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2127         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2128         reference by Tru64 UNIX.
2129
2130 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2131
2132         PR debug/48768
2133         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2134         is error_mark_node, set value to NULL.
2135
2136         PR tree-optimization/48734
2137         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2138         if return value from maybe_fold_*_comparsions isn't something
2139         the code is prepared to handle.
2140
2141 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2142
2143         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2144         mode check.
2145         (ext_QIreg_nomode_operands): Remove.
2146         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2147         (*andsi_1): Ditto.
2148         (*andhi_1): Ditto.
2149
2150 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2151
2152         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2153
2154 2011-04-26  Richard Guenther  <rguenther@suse.de>
2155
2156         * c-typeck.c (build_unary_op): Do not expand array-refs via
2157         pointer arithmetic.  Only adjust qualifiers for function types.
2158
2159 2011-04-26  Richard Guenther  <rguenther@suse.de>
2160
2161         PR middle-end/48694
2162         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2163         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2164         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2165         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2166
2167 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2168
2169         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2170         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2171         * doc/extend.texi: Document __underlying_type.
2172
2173 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2174
2175         * config/rs6000/titan.md (automata_option "progress"): Remove.
2176
2177 2011-04-25  Jeff Law  <law@redhat.com>
2178
2179         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2180
2181 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2182
2183         * system.h (ENUM_BITFIELD): Remove.
2184
2185 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2186             Eric Botcazou  <ebotcazou@adacore.com>
2187
2188         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2189         for STORE_FLAG_VALUE==-1 case.
2190
2191 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2192
2193         PR target/43804
2194         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2195         LEGITIMATE_PIC_OPERAND_P.
2196
2197 2011-04-24  Jan Hubicka  <jh@suse.cz>
2198
2199         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2200         WPA hack.
2201         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2202         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2203         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2204         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2205         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2206         Sanity check predicate length.
2207         (remap_predicate): Likewise; sanity check jump functions.
2208         (inline_read_section, inline_write_summary): Sanity check
2209         predicate length.
2210
2211 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2212
2213         PR other/48748
2214         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2215         __is_literal_type, and __is_trivial; update throughout about
2216         possibly cv-qualified void types.
2217
2218 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2219
2220         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2221         testsuite and make it version agnostic.
2222
2223 2011-04-22  Jan Hubicka  <jh@suse.cz>
2224
2225         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2226
2227 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2228
2229         PR c/48685
2230         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2231         to VOID_TYPE even around MODIFY_EXPR.
2232
2233 2011-04-22  Mike Stump  <mikestump@comcast.net>
2234
2235         * gensupport.c (read_md_rtx): Fix typo in comment.
2236         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2237         comment.
2238
2239 2011-04-22  Jan Hubicka  <jh@suse.cz>
2240
2241         * gengtype.c (open_base_files): Add ipa-inline.h include.
2242         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2243         ipa-prop.c; update all uses.
2244         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2245         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2246         merge summary of inlined function into former caller.
2247         * ipa-inline.c (max_benefit): Remove.
2248         (edge_badness): Compensate for removal of benefits.
2249         (update_caller_keys): Use
2250         reset_node_growth_cache/reset_edge_growth_cache.
2251         (update_callee_keys): Likewise.
2252         (update_all_callee_keys): Likewise.
2253         (inline_small_functions): Do not collect max_benefit; do not reset
2254         estimated_growth; call free_growth_caches and initialize_growth_caches.
2255         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2256         struct size_time_entry): New structures.
2257         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2258         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2259         and estimated_growth.
2260         (edge_growth_cache_entry): New structure.
2261         (node_growth_cache, edge_growth_cache): New global vars.
2262         (estimate_growth): Turn into inline.
2263         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2264         initialize_growth_caches, free_growth_caches): Declare.
2265         (estimate_edge_growth): Rewrite.
2266         (estimate_edge_time): Implement as inline cache lookup.
2267         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2268         functions.
2269         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2270         (NUM_CONDITIONS): New constant.
2271         (predicate_conditions): New enum.
2272         (IS_NOT_CONSTANT): New constant.
2273         (edge_removal_hook_holder): New var.
2274         (node_growth_cache, edge_growth_cache): New global vars.
2275         (true_predicate, single_cond_predicate, false_predicate,
2276         not_inlined_predicate, add_condition, add_clause, and_predicates,
2277         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2278         dump_clause, dump_predicate, account_size_time,
2279         evaulate_conditions_for_edge): New functions.
2280         (inline_summary_alloc): Move to heap.
2281         (inline_node_removal_hook): Clear condition and entry vectors.
2282         (inline_edge_removal_hook): New function.
2283         (initialize_growth_caches, free_growth_caches): New function.
2284         (dump_inline_summary): Update.
2285         (edge_execution_predicate): New function.
2286         (will_be_nonconstant_predicate): New function.
2287         (estimate_function_body_sizes): Compute BB and constantness predicates.
2288         (compute_inline_parameters): Do not clear estimated_growth.
2289         (estimate_edge_size_and_time): New function.
2290         (estimate_calls_size_and_time): New function.
2291         (estimate_callee_size_and_time): New function.
2292         (remap_predicate): New function.
2293         (inline_merge_summary): New function.
2294         (do_estimate_edge_time): New function based on...
2295         (estimate_edge_time): ... this one.
2296         (do_estimate_edge_growth): New function.
2297         (do_estimate_growth): New function based on....
2298         (estimate_growth): ... this one.
2299         (inline_analyze_function): Analyze after deciding on jump functions.
2300         (inline_read_section): New function.
2301         (inline_read_summary): Use it.
2302         (inline_write_summary): Write all the new data.
2303         * ipa-prop.c (ipa_get_param_decl_index): Export.
2304         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2305         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2306         Declare.
2307         (ipa_get_lattice): Move here from ipa-cp.c
2308         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2309         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2310         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2311         cgraph_edge_inlinable_p): Remove.
2312         * cgraphunit.c: Include ipainline.h
2313         (cgraph_process_new_functions): Update call of
2314         compute_inline_parameters.
2315
2316 2011-04-22  Richard Guenther  <rguenther@suse.de>
2317
2318         * tree.c (build_int_cst): Properly create canonicalized integer
2319         constants.
2320         (build_int_cst_type): Remove scary comments.
2321
2322 2011-04-22  Xinliang David Li  <davidxl@google.com>
2323
2324         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2325         by default when -Wno-error is not specified.
2326         * opts-global.c (decode_options): Remove call to
2327         control_warning_options.
2328
2329 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2330
2331         PR tree-optimization/48717
2332         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2333         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2334
2335 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2336
2337         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2338         definition where used.
2339
2340 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2341
2342         PR c/48716
2343         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2344         TREE_STATIC variables declared inside of some OpenMP construct.
2345
2346 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2347
2348         PR middle-end/48585
2349         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2350
2351 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2352
2353         PR c/36750
2354         * c-typeck.c (pop_init_level): Do not warn about initializing
2355         with ` = {0}'.
2356
2357 2011-04-22  Alan Modra  <amodra@gmail.com>
2358
2359         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2360         when returning call_cookie.
2361         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2362         pointers, to functions with no more vector args than the current
2363         function, and some non-local calls for ABI_V4.
2364         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2365         sibcall_nonlocal_aix64): Combine to ..
2366         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2367         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2368         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2369         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2370         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2371         operand.
2372         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2373         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2374         sibcall_value_symbolic_64): Delete.
2375
2376 2011-04-21  Xinliang David Li  <davidxl@google.com>
2377
2378         * cgraph.h: Remove pid.
2379         * cgraph.c: Remove pid.
2380         * value-prof.c (init_node_map): New function.
2381         (del_node_map): New function.
2382         (find_func_by_funcdef_no): New function.
2383         (gimple_ic_transform): Call new function.
2384         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2385         * function.c (get_last_funcdef_no): New function.
2386         * function.h (get_last_funcdef_no): New function.
2387         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2388         to libgcov function.
2389         (tree-profiling): Call node map init and delete function.
2390
2391 2011-04-21  Ian Lance Taylor  <iant@google.com>
2392
2393         * godump.c (go_format_type): Use exported Go name for anonymous
2394         field name.
2395
2396 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2397
2398         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2399         Call builtin_function_type_list instead of builtin_function_type.
2400         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2401
2402 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2403
2404         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2405         build_function_type_list instead of build_function_type.
2406         Delete variable `endlink'.
2407
2408 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2409
2410         * config/s390/s390.c (s390_init_builtins): Call
2411         build_function_type_list instead of build_function_type.
2412
2413 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2414
2415         * config/ia64/ia64.c (ia64_init_builtins): Call
2416         build_function_type_list instead of builtin_function_type.
2417
2418 2011-04-21  Easwaran Raman  <eraman@google.com>
2419
2420         * cfgexpand.c (stack_var): Remove OFFSET...
2421         (add_stack_var): ...and its reference here...
2422         (expand_stack_vars): ...and here.
2423         (stack_var_cmp): Sort by descending order of size.
2424         (partition_stack_vars): Change heuristic.
2425         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2426         (dump_stack_var_partition): Add newline after each partition.
2427
2428 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2429             Jeff Law  <law@redhat.com>
2430
2431         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2432         * gengtype.c (matching_file_name_substitute): Likewise.
2433
2434 2011-04-21  Richard Guenther  <rguenther@suse.de>
2435
2436         PR lto/48703
2437         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2438
2439 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2440
2441         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2442
2443 2011-04-21  Richard Guenther  <rguenther@suse.de>
2444
2445         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2446         file name.
2447
2448 2011-04-21  Richard Guenther  <rguenther@suse.de>
2449
2450         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2451         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2452         Use DECL_P, not SSA_VAR_P.
2453         (ptr_derefs_may_alias_p): Likewise.
2454         (ptr_deref_may_alias_ref_p_1): Likewise.
2455         (decl_refs_may_alias_p): Likewise.
2456         (refs_may_alias_p_1): Likewise.
2457         (ref_maybe_used_by_call_p_1): Likewise.
2458         (call_may_clobber_ref_p_1): Likewise.
2459         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2460         are either MEM_REF or TARGET_MEM_REF.
2461         (indirect_refs_may_alias_p): Likewise.
2462         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2463         for MEM_EXPR of indirect calls.
2464
2465 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2466
2467         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2468         (dst_file_info_struct): Remove flen field.
2469         (lookup_filename): Remove code that set flen field.
2470
2471 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2472
2473         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2474
2475 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2476
2477         PR target/48708
2478         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2479         vec_extract and vec_concat for non-SSE4_1 targets.
2480
2481 2011-04-21  Richard Guenther  <rguenther@suse.de>
2482
2483         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2484         return statements.
2485
2486 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2487
2488         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2489         undefine.
2490         (FILE): Don't undefine.
2491
2492 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2493
2494         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2495         struct rtx_def *.
2496         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2497         struct rtx_def *.
2498         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2499         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2500         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2501         rtx_def *.
2502         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2503         definitions where used.
2504         * config/microblaze/microblaze.h (struct microblaze_args): Use
2505         rtx, not struct rtx_def *.
2506         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2507         rtx_def *.
2508         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2509         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2510         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2511         not struct rtx_def *.
2512         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2513         struct rtx_def *.
2514         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2515         rtx_def *.
2516         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2517
2518 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2519
2520         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2521         operand_equal_p to compare DR_BASE_ADDRESSes.
2522         (vect_check_interleaving): Likewise.
2523
2524 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2525
2526         PR target/46329
2527         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2528         for all Neon struct constants.
2529
2530 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2531
2532         * target.def (legitimate_constant_p): New hook.
2533         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2534         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2535         * doc/tm.texi: Regenerate.
2536         * hooks.h (hook_bool_mode_rtx_true): Declare.
2537         * hooks.c (hook_bool_mode_rtx_true): Define.
2538         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2539         * calls.c (precompute_register_parameters): Replace uses of
2540         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2541         (emit_library_call_value_1): Likewise.
2542         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2543         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2544         * ira-costs.c (scan_one_insn): Likewise.
2545         * recog.c (general_operand, immediate_operand): Likewise.
2546         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2547         * reload1.c (init_eliminable_invariants): Likewise.
2548
2549         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2550         mode argument.
2551         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2552         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2553         argument.
2554         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2555         * config/alpha/predicates.md (input_operand): Update call to
2556         alpha_legitimate_constant_p.
2557
2558         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2559         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2560         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2561         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2562         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2563         (arm_legitimate_constant_p): New functions.
2564         (arm_cannot_force_const_mem): Make static.
2565
2566         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2567
2568         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2569         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2570         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2571         instead of bfin_legitimate_constant_p.
2572         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2573         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2574
2575         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2576
2577         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2578
2579         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2580         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2581         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2582         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2583
2584         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2585         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2586         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2587
2588         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2589         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2590         * config/i386/i386.c (legitimate_constant_p): Rename to...
2591         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2592         argument.
2593         (ix86_cannot_force_const_mem): Update accordingly.
2594         (ix86_legitimate_address_p): Likewise.
2595         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2596         * config/i386/i386.md: Update commentary.
2597
2598         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2599         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2600         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2601         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2602
2603         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2604
2605         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2606         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2607         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2608         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2609
2610         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2611         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2612         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2613
2614         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2615         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2616         (m32r_legitimate_constant_p): New function.
2617
2618         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2619         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2620         LEGITIMATE_CONSTANT_P.
2621         (LEGITIMATE_CONSTANT_P): Delete.
2622         * config/m68k/m68k.c (m68k_expand_prologue): Call
2623         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2624         (m68k_legitimate_constant_p): New function.
2625         * config/m68k/m68k.md: Update comments.
2626
2627         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2628         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2629         (mcore_legitimate_constant_p): New function.
2630
2631         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2632         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2633         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2634         Add a mode argument.
2635         (mep_legitimate_address): Update accordingly.
2636         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2637
2638         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2639         Delete.
2640         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2641         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2642         static.  Check OP's mode for VOIDmode.
2643         (microblaze_legitimate_constant_p): New function.
2644         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2645
2646         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2647         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2648         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2649         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2650         * config/mips/predicates.md: Update comments.
2651
2652         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2653         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2654         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2655         (mmix_legitimate_constant_p): Make static, return a bool, and take
2656         a mode argument.
2657         (mmix_print_operand_address): Update accordingly.
2658
2659         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2660         Delete.
2661         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2662         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2663         static.  Add a mode argument.
2664         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2665
2666         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2667
2668         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2669         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2670         (pa_legitimate_constant_p): New function.
2671
2672         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2673
2674         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2675         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2676         (pdp11_legitimate_constant_p): New function.
2677
2678         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2679         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2680         (rs6000_legitimate_constant_p): New function.
2681
2682         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2683         (rx_legitimate_constant_p): ...this.
2684         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2685         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2686         (rx_legitimate_constant_p): ...this.
2687         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2688         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2689
2690         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2691         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2692         * config/s390/s390.c (legitimate_constant_p): Rename to...
2693         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
2694         and add a mode argument.
2695         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2696
2697         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2698
2699         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2700         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2701         (sh_legitimate_constant_p): New function.
2702
2703         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2704         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2705         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2706         (legitimate_constant_p): Rename to...
2707         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
2708         argument.
2709         (constant_address_p): Update accordingly.
2710
2711         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2712         argument and return a bool.
2713         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2714         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2715         (spu_legitimate_constant_p): Add a mode argument and return a bool.
2716         (spu_rtx_costs): Update accordingly.
2717         * config/spu/predicates.md (vec_imm_operand): Likewise.
2718
2719         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2720
2721         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2722         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2723         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2724
2725         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2726         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2727         * config/vax/vax.c (legitimate_constant_p): Likewise.
2728
2729         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2730         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2731         (xtensa_legitimate_constant_p): New function.
2732
2733 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2734
2735         * target.def (cannot_force_const_mem): Add a mode argument.
2736         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2737         * doc/tm.texi: Regenerate.
2738         * hooks.h (hook_bool_mode_rtx_false): Declare.
2739         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2740         (hook_bool_mode_const_rtx_true): Likewise.
2741         (hook_bool_mode_rtx_false): New function.
2742         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2743         to be non-VOID.  Update call to cannot_force_const_mem.
2744         (find_reloads): Update accordingly.
2745         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2746         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2747         argument.
2748         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2749         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2750         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2751         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2752         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2753         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2754         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2755         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2756         (m68k_cannot_force_const_mem): ...this new function.
2757         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2758         argument.
2759         (mips_const_insns, mips_legitimize_const_move): Update calls.
2760         (mips_secondary_reload_class): Likewise.
2761         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2762         (pa_cannot_force_const_mem): ...this new function.
2763         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2764         (rs6000_cannot_force_const_mem): ...this new function.
2765         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2766         argument.
2767         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2768         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2769         to...
2770         (xtensa_cannot_force_const_mem): ...this new function.
2771
2772 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2773
2774         * config/mips/mips.c (mips16_build_function_stub): Call
2775         build_function_type_list instead of build_function_type.
2776         (mips16_build_call_stub): Likewise.
2777
2778 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2779
2780         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2781         instead of build_function_type.
2782
2783 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2784
2785         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2786         instead of build_function_type.
2787
2788 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
2789
2790         PR target/48678
2791         * config/i386/i386.md (insv): Change operand 0 constraint to
2792         "register_operand".  Change operand 1 and 2 constraint to
2793         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
2794         * config/i386/sse.md (sse4_1_pinsrb): Export.
2795         (sse2_pinsrw): Ditto.
2796         (sse4_1_pinsrd): Ditto.
2797         (sse4_1_pinsrq): Ditto.
2798         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2799         * config/i386/i386.c (ix86_expand_pinsr): New.
2800
2801 2011-04-20  Easwaran Raman  <eraman@google.com>
2802
2803         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2804         containing union type only with -fstrict-aliasing.
2805
2806 2011-04-20  Jim Meyering  <meyering@redhat.com>
2807
2808         Remove useless if-before-free tests.
2809         * calls.c (expand_call, save_area): Likewise.
2810         * cfgcleanup.c (try_forward_edges): Likewise.
2811         * collect2.c (collect_execute): Likewise.
2812         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2813         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2814         * coverage.c (coverage_checksum_string): Likewise.
2815         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2816         * cselib.c (cselib_init): Likewise.
2817         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2818         (df_set_clean_cfg): Likewise.
2819         * function.c (free_after_compilation): Likewise.
2820         * gcc.c (do_spec_1, main): Likewise.
2821         * gcov.c (create_file_names): Likewise.
2822         * gensupport.c (identify_predicable_attribute): Likewise.
2823         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2824         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2825         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2826         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2827         * ipa-pure-const.c (local_pure_const): Likewise.
2828         * ipa-reference.c (propagate): Likewise.
2829         * ira-costs.c (free_ira_costs): Likewise.
2830         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2831         * matrix-reorg.c (mat_free): Likewise.
2832         * prefix.c (get_key_value): Likewise.
2833         * profile.c (compute_value_histograms): Likewise.
2834         * reload1.c (free_reg_equiv): Likewise.
2835         * sched-deps.c (free_deps): Likewise.
2836         * sel-sched-ir.c (fence_clear): Likewise.
2837         * sese.c (set_rename, if_region_set_false_region): Likewise.
2838         * tree-data-ref.c (free_rdg): Likewise.
2839         * tree-eh.c (lower_try_finally): Likewise.
2840         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2841         * tree-ssa-live.c (delete_var_map): Likewise.
2842         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2843         * tree-ssa-pre.c (phi_trans_add): Likewise.
2844
2845 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
2846
2847         PR tree-optimization/48611
2848         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2849         beyond ERT_MUST_NOT_THROW region.
2850
2851 2011-04-20  Catherine Moore  <clm@codesourcery.com>
2852
2853         * config/mips/mips.opt (mfix-24k): New.
2854         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2855         * config/mips/mips.md (length): Increase by 4 for stores if
2856         fixing 24K errata.
2857         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2858         all noreorder if fixing 24K errata.
2859         * doc/invoke.texi: Document mfix-24k.
2860
2861 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
2862
2863         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2864         quad-word modes, reduce to 9-bit index range when above 1016 limit.
2865
2866 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2867
2868         * config/arm/arm.c (arm_gen_constant): Move movw support ....
2869         (const_ok_for_op): ... to here.
2870
2871 2011-04-20  Kai Tietz  <ktietz@redhat.com>
2872
2873         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2874         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2875
2876 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2877
2878         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2879
2880 2011-04-20  Richard Guenther  <rguenther@suse.de>
2881
2882         PR tree-optimization/47892
2883         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2884         are if-convertible.
2885
2886 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2887
2888         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2889
2890 2011-04-20  Tristan Gingold  <gingold@adacore.com>
2891
2892         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2893
2894 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
2895
2896         PR target/18145
2897
2898         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2899         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2900         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2901         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2902         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2903
2904         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2905         New prototype.
2906
2907         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2908         (avr_asm_named_section, avr_asm_output_aligned_common,
2909         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2910         New functions to update...
2911         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2912         (avr_asm_init_sections): Overwrite section callbacks for
2913         data_section, bss_section.
2914         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2915         from here to...
2916         (avr_file_end): ...here.
2917
2918 2011-04-20  Richard Guenther  <rguenther@suse.de>
2919
2920         PR middle-end/48695
2921         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2922         objects and types here.  Adjust for their offset before comparing.
2923
2924 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2925
2926         * tree-vect-stmts.c (vectorizable_store): Only chain one related
2927         statement per copy.
2928
2929 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2930
2931         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2932         (GIMPLE_H): Include $(INTERNAL_FN_H).
2933         (OBJS-common): Add internal-fn.o.
2934         (internal-fn.o): New rule.
2935         * internal-fn.def: New file.
2936         * internal-fn.h: Likewise.
2937         * internal-fn.c: Likewise.
2938         * gimple.h: Include internal-fn.h.
2939         (GF_CALL_INTERNAL): New gf_mask.
2940         (gimple_statement_call): Put fntype into a union with a new
2941         internal_fn field.
2942         (gimple_build_call_internal): Declare.
2943         (gimple_build_call_internal_vec): Likewise.
2944         (gimple_call_same_target_p): Likewise.
2945         (gimple_call_internal_p): New function.
2946         (gimple_call_internal_fn): Likewise.
2947         (gimple_call_fntype): Return null for internal calls.
2948         (gimple_call_set_fntype): Assert that the function is not internal.
2949         (gimple_call_set_fn): Likewise.
2950         (gimple_call_set_fndecl): Likewise.
2951         (gimple_call_set_internal_fn): New function.
2952         (gimple_call_addr_fndecl): Handle null functions.
2953         (gimple_call_return_type): Likewise null types.
2954         * gimple.c (gimple_build_call_internal_1): New function.
2955         (gimple_build_call_internal): Likewise.
2956         (gimple_build_call_internal_vec): Likewise.
2957         (gimple_call_same_target_p): Likewise.
2958         (gimple_call_flags): Handle calls to internal functions.
2959         (gimple_call_fnspec): New function.
2960         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2961         (gimple_has_side_effects): Handle null functions.
2962         (gimple_rhs_has_side_effects): Likewise.
2963         (gimple_call_copy_skip_args): Handle calls to internal functions.
2964         * cfgexpand.c (expand_call_stmt): Likewise.
2965         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2966         * gimple-fold.c (gimple_fold_call): Handle null functions.
2967         (gimple_fold_stmt_to_constant_1): Don't fold
2968         calls to internal functions.
2969         * gimple-low.c (gimple_check_call_args): Handle calls to internal
2970         functions.
2971         * gimple-pretty-print.c (dump_gimple_call): Likewise.
2972         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2973         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2974         (do_warn_unused_result): Likewise.
2975         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2976         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2977         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2978         the target of a call.
2979         (initialize_hash_element): Update accordingly.
2980         (hashable_expr_equal_p): Use gimple_call_same_target_p.
2981         (iterative_hash_hashable_expr): Handle calls to internal functions.
2982         (print_expr_hash_elt): Likewise.
2983         * tree-ssa-pre.c (can_value_number_call): Likewise.
2984         (eliminate): Handle null functions.
2985         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2986         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2987         (find_func_aliases): Likewise.
2988         * value-prof.c (gimple_ic_transform): Likewise.
2989         (gimple_indirect_call_to_profile): Likewise.
2990         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2991         * lto-streamer-out.c (output_gimple_stmt): Likewise.
2992
2993 2011-04-19  Jan Hubicka  <jh@suse.cz>
2994
2995         * ipa-inline-transform.c (save_inline_function_body): Add comments.
2996         * ipa-inline.c (inline_small_functions): Compute summaries first,
2997         populate heap later.
2998
2999 2011-04-19  Jan Hubicka  <jh@suse.cz>
3000
3001         * cgraph.h (save_inline_function_body): Remove.
3002         * ipa-inline-transform.c: New file, broke out of...
3003         * ipa-inline.c: ... this one; Update toplevel comment.
3004         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3005         make global.
3006         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3007         (cgraph_mark_inline_edge): Rename to inline_call; move to
3008         ipa-inline-transform.c.
3009         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3010         move to ipa-inline-transform.c
3011         (recursive_inlining, inline_small_functions, flatten_function,
3012         ipa_inline, inline_always_inline_functions,
3013         early_inline_small_functions): Update.
3014         (inline_transform): Move to ipa-inline-transform.c.
3015         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3016         Declare.
3017         * Makefile.in (ipa-inline-transform.o): New file.
3018         * cgraphunit.c (save_inline_function_body): Move to
3019         ipa-inline-transform.c
3020
3021 2011-04-19  DJ Delorie  <dj@redhat.com>
3022
3023         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3024         registers if we already know there aren't any.
3025         (m32c_emit_epilogue): Don't emit a barrier here.
3026         (m32c_emit_eh_epilogue): Likewise.
3027         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3028         operands at expand time.
3029         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3030         int" wchar type.
3031         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3032         duplicates.  Provide aliases instead.
3033         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3034         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3035         the compiler.
3036
3037 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3038
3039         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3040         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3041         (general_or_i64_p, sparc_register_move_cost): New function.
3042
3043 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3044
3045         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3046         Add lynx, mipssde.  Sort table.
3047
3048 2011-04-19  Xinliang David Li  <davidxl@google.com>
3049
3050         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3051         not negative.
3052
3053 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3054
3055         PR target/48678
3056         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3057         is a SUBREG with non-MODE_INT mode inside of it.
3058
3059 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3060
3061         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3062         also according to actual contants.
3063         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3064         (gimple_fold_call): Use it.
3065         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3066
3067 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3068
3069         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3070         non-pointer assignments.
3071
3072 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3073
3074         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3075         account anc_offset and otr_type from the indirect edge info.
3076         * ipa-prop.c (get_ancestor_addr_info): New function.
3077         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3078         get_ancestor_addr_info, call it.
3079         (ipa_note_param_call): Do not initialize information about polymorphic
3080         calls, return the indirect call graph edge.  Remove the last
3081         parameter, adjust all callers.
3082         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3083         parameters.  Initialize polymorphic information in the indirect edge.
3084
3085 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3086
3087         PR lto/48148
3088         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3089         the types if they have different enumeration identifiers.
3090
3091 2011-04-19  Jan Hubicka  <jh@suse.cz>
3092
3093         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3094         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3095         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3096         (optimize_function_for_size_p) ... here.
3097
3098 2011-04-19  Richard Guenther  <rguenther@suse.de>
3099
3100         PR lto/48207
3101         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3102         langhook.
3103
3104 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3105
3106         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3107         if DECL_NO_INLINE_WARNING_P is set on the function.
3108
3109 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3110
3111         PR fortran/47976
3112         * reload1.c (inc_for_reload): Return void. All callers changed.
3113         (emit_input_reload_insns): Don't try to delete previous output
3114         reloads to a register, or record spill_reg_store for autoincs.
3115
3116 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3117
3118         * gengtype.h: Updated copyright year.
3119         (struct input_file_st): Add inpisplugin field.
3120         (type_fileloc): New function.
3121         * gengtype.c
3122         (write_typed_struct_alloc_def): Add gcc_assert.
3123         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3124         (write_typed_alloc_defns): Don't output for plugin files.
3125         (input_file_by_name): Clear inpisplugin field.
3126         (main): Set inpisplugin field for plugin files.
3127
3128 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3129
3130         * gengtype-state.c (string_eq): New.
3131         (read_state): Use string_eq instead of strcmp when creating the
3132         state_ident_tab.
3133
3134 2011-04-19  Wei Guozhi  <carrot@google.com>
3135
3136         PR target/47855
3137         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3138         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3139         linkage.
3140         * config/arm/constraints.md (Uu): New constraint.
3141         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3142
3143 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3144
3145         * config.gcc (-*-*-*vms): Added.
3146         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3147         definitions moved.
3148         * config/vms/vms-ld.c: New file.
3149         * config/vms/vms-ar.c: New file.
3150         * config/vms/t-vmsnative: New file.
3151
3152 2011-04-18  Xinliang David Li  <davidxl@google.com>
3153
3154         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3155
3156 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3157
3158         PR middle-end/48661
3159         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3160         if TREE_TYPE (v) is non-NULL.
3161
3162         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3163         gimple_get_virt_mehtod_for_binfo.
3164         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3165         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3166         callers.
3167         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3168
3169 2011-04-18  Michael Matz  <matz@suse.de>
3170             Steve Ellcey  <sje@cup.hp.com>
3171
3172         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3173         use its mode as source mode if it isn't VOIDmode.
3174
3175 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3176
3177         * doc/passes.texi: Fill crossref nodes.
3178
3179 2011-04-18  Jim Meyering  <meyering@redhat.com>
3180
3181         Fix doubled-word typos in comments and strings
3182         * config/alpha/vms-unwind.h: s/for for/for/
3183         * config/arm/unwind-arm.h: Likewise.
3184         * config/microblaze/microblaze.c: Likewise.
3185         * config/sh/constraints.md: s/in in/in/
3186         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3187
3188 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3189
3190         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3191         (AVX_FLOAT_MODE_P): Ditto.
3192         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3193         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3194         (AVX_VEC_FLOAT_MODE_P): Ditto.
3195         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3196         (UNSPEC_MASKSTORE): Ditto.
3197         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3198         Merge from <sse>_movmsk<ssemodesuffix> and
3199         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3200         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3201         iterator.
3202         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3203         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3204         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3205
3206 2011-04-18  Jan Hubicka  <jh@suse.cz>
3207
3208         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3209
3210         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3211         (want_inline_function_called_once_p): Break out the logic from
3212         ipa_inline.
3213         (edge_badness): Ensure that profile is not misupdated.
3214         (lookup_recursive_calls): Prioritize by call frequencies.
3215         (inline_small_functions): Move program size estimates here;
3216         actually process whole queue even when unit growth has been
3217         met. (to properly compute inline_failed reasons and for the
3218         case unit size decrease.) Revisit comments on recursive inlining.
3219         (ipa_inline): Remove unit summary code; first inline hot calls
3220         of functions called once, cold calls next.
3221         (order, nnodes): Remove unused variables.
3222         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3223         (GTFILES): Remove ipa-inline.c
3224         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3225
3226 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3227
3228         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3229
3230 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3231             Richard Earnshaw  <rearnsha@arm.com>
3232
3233         * arm.c (neon_builtin_type_bits): Remove.
3234         (typedef enum neon_builtin_mode): New.
3235         (T_MAX): Don't define.
3236         (typedef enum neon_builtin_datum): Remove bits, codes[],
3237         num_vars and base_fcode.  Add mode, code and fcode.
3238         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3239         VAR10): Change accordingly.
3240         (neon_builtin_data[]): Change accordingly
3241         (arm_init_neon_builtins): Change accordingly.
3242         (neon_builtin_compare): Remove.
3243         (locate_neon_builtin_icode): Remove.
3244         (arm_expand_neon_builtin): Change accordingly.
3245
3246         * arm.h (enum arm_builtins): Move to ...
3247         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3248
3249         * arm.c (arm_builtin_decl): Declare.
3250         (TARGET_BUILTIN_DECL): Define.
3251         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3252         (arm_builtin_decls[]): New.
3253         (arm_init_neon_builtins): Store builtin declarations in
3254         arm_builtin_decls[].
3255         (arm_init_tls_builtins): Likewise.
3256         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3257         (arm_builtin_decl): New.
3258
3259 2011-04-18  Richard Guenther  <rguenther@suse.de>
3260
3261         * tree.c (upper_bound_in_type): Build properly canonicalized
3262         INTEGER_CSTs.
3263         (lower_bound_in_type): Likewise.
3264
3265 2011-04-18  Richard Guenther  <rguenther@suse.de>
3266
3267         * gimple.h (gimple_call_addr_fndecl): New function.
3268         (gimple_call_fndecl): Use it.
3269         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3270         for direct calls.
3271         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3272         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3273
3274 2011-04-18  Richard Guenther  <rguenther@suse.de>
3275
3276         PR middle-end/48650
3277         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3278
3279 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3280
3281         PR lto/48492
3282         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3283         DECL_IN_CONSTANT_POOL without RTL.
3284
3285 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3286             Ira Rosen  <ira.rosen@linaro.org>
3287
3288         PR target/48252
3289         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3290         to match neon_vzip/vuzp/vtrn_internal.
3291         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3292         outputs explicitly dependent on both inputs.
3293         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3294
3295 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3296
3297         PR tree-optimization/48616
3298         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3299         whether the shift is by scalar or vector based on whether all SLP
3300         scalar stmts have the same rhs.
3301
3302 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3303
3304         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3305         memory operands.
3306
3307 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3308
3309         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3310         registers.
3311
3312 2011-04-17  Jan Hubicka  <jh@suse.cz>
3313
3314         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3315         * cgrpahunit.c (cgraph_finalize_function): Do not set
3316         finalized_by_frontend.
3317         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3318         finalized_by_frontend.
3319
3320 2011-04-17  Jan Hubicka  <jh@suse.cz>
3321
3322         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3323         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3324         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3325         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3326         method.
3327         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3328         gimple-fold.c
3329         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3330
3331 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3332
3333         PR lto/48538
3334         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3335         is non-null before accessing it.
3336         (input_cgraph): Remove trailing spaces.
3337
3338 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3339
3340         * params.def (sms-min-sc): New param flag.
3341         * modulo-sched.c (sms_schedule): Use it.
3342         * doc/invoke.texi (sms-min-sc): Document it.
3343
3344 2011-04-17  Jan Hubicka  <jh@suse.cz>
3345
3346         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3347         present, also set gimple_call_set_cannot_inline.
3348         * ipa-inline.c: Update toplevel comment.
3349         (MAX_TIME): Remove.
3350         (cgraph_clone_inlined_nodes): Fix linebreaks.
3351         (cgraph_check_inline_limits): Restructure to ...
3352         (caller_growth_limits): ... this one; be more tolerant
3353         on growth in nested inline chains; add explanatory comment;
3354         fix stack accounting thinko introduced by previous patch.
3355         (cgraph_default_inline_p): Remove.
3356         (report_inline_failed_reason): New function.
3357         (can_inline_edge_p): New function.
3358         (can_early_inline_edge_p): New function.
3359         (leaf_node_p): Move upwards in file.
3360         (want_early_inline_function_p): New function.
3361         (want_inline_small_function_p): New function.
3362         (want_inline_self_recursive_call_p): New function.
3363         (cgraph_edge_badness): Rename to ...
3364         (edge_badness) ... this one; fix linebreaks.
3365         (update_edge_key): Update call of edge_baddness; add
3366         detailed dump about queue updates.
3367         (update_caller_keys): Use can_inline_edge_p and
3368         want_inline_small_function_p.
3369         (cgraph_decide_recursive_inlining): Rename to...
3370         (recursive_inlining): Use can_inline_edge_p and
3371         want_inline_self_recursive_call_p; simplify and remove no longer
3372         valid FIXME.
3373         (cgraph_set_inline_failed): Remove.
3374         (add_new_edges_to_heap): Use can_inline_edge_p and
3375         want_inline_small_function_p.
3376         (cgraph_decide_inlining_of_small_functions): Rename to ...
3377         (inline_small_functions): ... this one; cleanup; use
3378         can/want predicates; cleanup debug ouput; work edges till fibheap
3379         is exhausted and do not stop once unit growth is reached; remove
3380         later loop processing remaining edges.
3381         (cgraph_flatten): Rename to ...
3382         (flatten_function): ... this one; use can_inline_edge_p
3383         and can_early_inline_edge_p predicates.
3384         (cgraph_decide_inlining): Rename to ...
3385         (ipa_inline): ... this one; remove unreachable nodes before
3386         inlining functions called once; simplify the pass.
3387         (cgraph_perform_always_inlining): Rename to ...
3388         (inline_always_inline_functions): ... this one; use
3389         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3390         (cgraph_decide_inlining_incrementally): Rename to ...
3391         (early_inline_small_functions): ... this one; simplify
3392         using new predicates; cleanup; make dumps prettier.
3393         (cgraph_early_inlining): Rename to ...
3394         (early_inliner): newer inline regular functions into always-inlines;
3395         fix updating of call stmt summaries.
3396         (pass_early_inline): Update for new names.
3397         (inline_transform): Fix formating.
3398         (gate_cgraph_decide_inlining): Rename to ...
3399         (pass_ipa_inline): ... this one.
3400         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3401         * ipa-inline-analysis.c (dump_inline_summary): Update.
3402         (compute_inline_parameters): Do not compute disregard_inline_limits;
3403         look for mismatching arguments.
3404         (estimate_growth): Fix handlig of non-trivial self recursion.
3405         (inline_read_summary): Do not read info->disregard_inline_limits.
3406         (inline_write_summary): Do not write info->disregard_inline_limits.
3407         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3408         and move all checks into can_inline_edge_p predicate; re-enable code
3409         comparing optimization levels.
3410         (expand_call_inline): Do not test inline_forbidden_into_p.
3411         * Makefile.in (ipa-inline.o): Update arguments.
3412
3413 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3414
3415         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3416
3417 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3418
3419         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3420
3421 2011-04-17  Michael Matz  <matz@suse.de>
3422
3423         PR tree-optimization/48622
3424         PR lto/48645
3425         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3426         in same order as they're written.
3427
3428 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3429
3430         * config/pa/predicates.md: Reorganize and simplify predicates.
3431         Eliminate duplicate code checks.
3432         (arith_operand): Rename to arith14_operand
3433         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3434         * config/pa/pa.md: Use renamed operands.
3435         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3436         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3437         arith11_operand, adddi3_operand, indexed_memory_operand,
3438         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3439         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3440         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3441         move_dest_operand, move_src_operand, prefetch_cc_operand,
3442         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3443         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3444         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3445         div_operand, int5_operand, movb_comparison_operator,
3446         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3447         arith_double_operand, ireg_operand, lhs_lshift_operand,
3448         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3449         integer_store_memory_operand): Likewise.
3450         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3451         (integer_store_memory_operand, read_only_operand,
3452         function_label_operand, borx_reg_operand,
3453         non_hard_reg_operand): Likewise.
3454         (eq_neq_comparison_operator): Delete unused operator.
3455         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3456         function_label_operand.
3457         (emit_move_sequence): Likewise.
3458
3459 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3460
3461         * config/i386/sse.md (sseunpackmode): New mode attribute.
3462         (ssepackmode): Ditto.
3463         (vec_pack_trunc_<mode>): Macroize expander from
3464         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3465         (vec_unpacks_lo_<mode>): Macroize expander from
3466         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3467         (vec_unpacks_hi_<mode>): Macroize expander from
3468         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3469         (vec_unpacku_lo_<mode>): Macroize expander from
3470         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3471         (vec_unpacku_hi_<mode>): Macroize expander from
3472         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3473         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3474         ix86_expand_sse4_unpack.
3475         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3476
3477 2011-04-16  Jan Hubicka  <jh@suse.cz>
3478
3479         * cgraphbuild.c: Include ipa-inline.h.
3480         (reset_inline_failed): Use initialize_inline_failed.
3481         * cgraph.c: Include ipa-inline.h.
3482         (cgraph_create_node_1): Do not initialize estimated_growth.
3483         (initialize_inline_failed): More to ipa-inline-analysis.c
3484         (dump_cgraph_node): Do not dump inline flags.
3485         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3486         and disregard_inline_limits flags.
3487         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3488         time, size, estimated_growth.
3489         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3490         Update.
3491         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3492         DECL_DISREGARD_INLINE_LIMITS.
3493         (cgraph_analyze_function): Do not initialize
3494         node->local.disregard_inline_limits.
3495         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3496         inlinable, versionable and disregard_inline_limits.
3497         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3498         cgraph_check_inline_limits, cgraph_default_inline_p,
3499         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3500         add_new_edges_to_heap): Update.
3501         (cgraph_decide_inlining_of_small_function): Update; set
3502         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3503         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3504         cgraph_decide_inlining_incrementally): Update.
3505         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3506         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3507         time, size and estimated_growth parameters.
3508         (estimate_edge_growth): Update.
3509         (initialize_inline_failed): Declare.
3510         * ipa-split.c: Include ipa-inline.h
3511         (execute_split_functions): Update.
3512         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3513         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3514         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3515         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3516         estimated_growth to INT_MIN.
3517         (inline_node_duplication_hook): Likewise.
3518         (dump_inline_summary): Dump new fields.
3519         (compute_inline_parameters): Update.
3520         (estimate_edge_time, estimate_time_after_inlining,
3521         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3522         inline_write_summary):
3523         (initialize_inline_failed): Move here from cgraph.c.
3524         * tree-sra.c: Include ipa-inline.h.
3525         (ipa_sra_preliminary_function_checks): Update.
3526         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3527         ipa-inline.h.
3528
3529 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3530
3531         * config/i386/sse.md (V16): New mode iterator.
3532         (VI1, VI8): Ditto.
3533         (AVXMODEQI, AVXMODEDI): Remove.
3534         (sse2, sse3): New mode attribute.
3535         (mov<mode>): Use V16 mode iterator.
3536         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3537         (push<mode>1): Use V16 mode iterator.
3538         (movmisalign<mode>): Ditto.
3539         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3540         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3541         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3542         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3543         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3544         avx_movdqu<avxmodesuffix>.
3545         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3546         *avx_movdqu<avxmodesuffix>.
3547         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3548         avx_lddqu<avxmodesuffix>.
3549         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3550         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3551         avx_movnt<AVXMODEDI:mode>.
3552         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3553         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3554
3555 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3556
3557         PR target/48629
3558         * haifa-sched.c (prune_ready_list, schedule_block): Use
3559         sched_pressure_p rather than flag_sched_pressure.
3560
3561 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3562
3563         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3564         cgraph_get_node instead of cgraph_get_create_node.
3565
3566 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3567
3568         * cfgexpand.c (expand_debug_expr): Use
3569         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3570
3571 2011-04-15  Michael Matz  <matz@suse.de>
3572
3573         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3574         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3575         * function.c (gimplify_parameters): Ditto.
3576         * gimplify.c (gimplify_vla_decl): Ditto.
3577
3578         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3579         (gimple_call_set_alloca_for_var): New inline function.
3580         (gimple_call_alloca_for_var_p): Ditto.
3581         * gimple.c (gimple_build_call_from_tree): Remember
3582         CALL_ALLOCA_FOR_VAR_P state.
3583         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3584
3585         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3586         calls if they were for VLA objects.
3587
3588 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3589
3590         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3591         of ADR_EXPRs.
3592
3593 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3594
3595         PR middle-end/48601
3596         * tree-emutls.c (lower_emutls_function_body): Call
3597         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3598         result is non-NULL.
3599
3600 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3601
3602         * c-decl.c (detect_field_duplicates): Call
3603         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3604
3605 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3606
3607         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3608         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3609         * ipa-pure-const.c (check_stmt): Call it.
3610         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3611
3612 2011-04-15  Richard Guenther  <rguenther@suse.de>
3613
3614         PR tree-optimization/48290
3615         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3616         Properly decide inhibiting propagation based on the valueized
3617         operand.  Do loop-closed SSA form preserving here ...
3618         (init_copy_prop): ... not here.
3619
3620 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3621
3622         PR target/48612
3623         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3624         (*ieee_smax<mode>3): Likewise.
3625
3626 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3627
3628         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3629         Replace match_operand with match_dup for the third operand in
3630         these expanders.
3631
3632 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3633
3634         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3635         to track processing of conditionals.  Update all callers.
3636         (try_combine, simplify_if_then_else): Update.
3637
3638 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3639
3640         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3641         -fsched-pressure.
3642
3643 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3644
3645         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3646         instead of match_operand for operand 3.
3647
3648 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3649
3650         * recog.h (insn_operand_data): Add an "allows_mem" field.
3651         * genoutput.c (output_operand_data): Initialize it.
3652         * optabs.c (maybe_legitimize_operand_same_code): New function.
3653         (maybe_legitimize_operand): Use it when matching the original
3654         op->value.
3655
3656 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3657
3658         * gimplify.c: Fix issues in comments throughout.
3659         (voidify_wrapper_expr): Fix long line.
3660         (build_stack_save_restore): Likewise.
3661         (gimplify_loop_expr): Likewise.
3662         (gimplify_compound_lval): Likewise.
3663         (gimplify_init_ctor_eval): Likewise.
3664         (gimplify_modify_expr_rhs): Likewise.
3665         (omp_notice_threadprivate_variable): Likewise.
3666
3667 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3668
3669         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3670         original one if this is not a builtin function.
3671
3672 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
3673
3674         PR target/48605
3675         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3676         offset it as needed based on top 2 bits in operands[3], change
3677         MEM mode to SFmode and mask those 2 bits away from operands[3].
3678
3679 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3680
3681         * c-parser.c (c_parser_objc_protocol_definition): Updated for
3682         change from objc_declare_protocols() to objc_declare_protocol().
3683
3684 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
3685
3686         * config/i386/sse.md (sse4_1): New mode attribute.
3687         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3688         avx_blend<ssemodesuffix><avxmodesuffix> and
3689         sse4_1_blend<ssemodesuffix> using VF mode iterator.
3690         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3691         avx_blendv<ssemodesuffix><avxmodesuffix> and
3692         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3693         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3694         avx_dp<ssemodesuffix><avxmodesuffix> and
3695         sse4_1_dp<ssemodesuffix> using VF mode iterator.
3696         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3697         (sse4_1_packusdw): Merge with *avx_packusdw.
3698         (sse4_1_pblendvb): Merge with *avx_pblendvb.
3699         (sse4_1_pblendw): Merge with *avx_pblendw.
3700         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3701         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3702         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3703         VF mode iterator.
3704         (sse4_1_round<ssescalarmodesuffix>): Merge with
3705         *avx_round<ssescalarmodesuffix>.
3706         (aesenc): Merge with *avx_aesenc.
3707         (aesenclast): Merge with *avx_aesenclast.
3708         (aesdec): Merge with *avx_aesdec.
3709         (aesdeclast): Merge with *avx_aesdeclast.
3710         (pclmulqdq): Merge with *pclmulqdq.
3711         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3712         New predicate.
3713         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3714
3715 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3716
3717         PR middle-end/48608
3718         * cfgexpand.c (get_decl_align_unit): Renamed to ...
3719         (align_local_variable): This.  Update DECL_ALIGN.
3720         (add_stack_var): Updated.
3721         (expand_one_stack_var): Likewise.
3722
3723 2011-04-14  Richard Guenther  <rguenther@suse.de>
3724
3725         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3726         Remove.
3727         (dse_initialize_block_local_data, dse_leave_block,
3728         record_voperand_set, get_stmt_uid): Likewise.
3729         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3730         (dse_optimize_stmt): Remove voperand set handling code.
3731         Simplify and improve to handle any kind of killing stmt.
3732         (dse_record_phi): Remove.
3733         (dse_enter_block): Simplify.
3734         (tree_ssa_dse): Likewise.
3735         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3736
3737 2011-04-14  Jan Hubicka  <jh@suse.cz>
3738
3739         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3740         * cgraph.h (struct inline_summary): Move to ipa-inline.h
3741         (cgraph_local_info): Remove inline_summary.
3742         * ipa-cp.c: Include ipa-inline.h.
3743         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3744         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3745         accesor.
3746         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3747         (input_overwrite_node): Do not set inline summary.
3748         (input_node): Do not stream inline summary.
3749         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3750         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3751         growth; we do not have inline parameters computed for that anyway.
3752         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3753         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3754         (inline_summary_t): New type and VECtor.
3755         (debug_inline_summary, dump_inline_summaries): Declare.
3756         (inline_summary): Use VOCtor.
3757         (estimate_edge_growth): Kill hack computing call stmt size directly.
3758         * lto-section-in.c (lto_section_name): Add inline section.
3759         * ipa-inline-analysis.c: Include lto-streamer.h
3760         (node_removal_hook_holder, node_duplication_hook_holder): New holders
3761         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3762         (inline_summary_vec): Define.
3763         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3764         dump_inline_summaries): New functions.
3765         (estimate_function_body_sizes): Properly compute size/time of outgoing
3766         calls.
3767         (compute_inline_parameters): Alloc inline_summary; do not compute
3768         size/time of incomming calls.
3769         (estimate_edge_time): Avoid missing time summary hack.
3770         (inline_read_summary): Read inline summary info.
3771         (inline_write_summary): Write inline summary info.
3772         (inline_free_summary): Free all hooks and inline summary vector.
3773         * lto-streamer.h: Add LTO_section_inline_summary section.
3774         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3775         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3776
3777 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3778
3779         * tree-vectorizer.h (vect_strided_store_supported): Add a
3780         HOST_WIDE_INT argument.
3781         (vect_strided_load_supported): Likewise.
3782         (vect_permute_store_chain): Return void.
3783         (vect_transform_strided_load): Likewise.
3784         (vect_permute_load_chain): Delete.
3785         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3786         count argument.  Check that the count is a power of two.
3787         (vect_strided_load_supported): Likewise.
3788         (vect_permute_store_chain): Return void.  Update after above changes.
3789         Assert that the access is supported.
3790         (vect_permute_load_chain): Likewise.
3791         (vect_transform_strided_load): Return void.
3792         * tree-vect-stmts.c (vectorizable_store): Update calls after
3793         above interface changes.
3794         (vectorizable_load): Likewise.
3795         (vect_analyze_stmt): Don't check for strided powers of two here.
3796
3797 2011-04-14  Richard Guenther  <rguenther@suse.de>
3798
3799         PR tree-optimization/48590
3800         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3801         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3802         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3803         BUILT_IN_STACK_SAVE.
3804         * tree-ssa-dce.c (propagate_necessity): Handle
3805         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3806
3807 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3808
3809         * c-parser.c (c_parser_objc_class_declaration): Updated call to
3810         objc_declare_class.
3811
3812 2011-04-14  Richard Guenther  <rguenther@suse.de>
3813
3814         * tree.h (get_object_alignment_1): Declare.
3815         * builtins.c (get_object_alignment_1): Split out worker from ...
3816         (get_object_alignment): ... here.
3817         * fold-const.c (get_pointer_modulus_and_residue): Use
3818         get_object_alignment_1.
3819
3820 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3821
3822         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3823         type parameter.
3824         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3825         parameter.  Generalise code to handle arrays as well as vectors.
3826         (vect_setup_realignment): Update accordingly.
3827         * tree-vect-stmts.c (vectorizable_store): Likewise.
3828         (vectorizable_load): Likewise.
3829
3830 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3831
3832         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3833         within the per-copy loop.
3834
3835 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3836
3837         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3838         in the dump file.
3839
3840 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3841
3842         * doc/options.texi (Negative): Explicitly mention that the
3843         Negative chain must be circular.
3844
3845 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
3846
3847         * function.h (block_chainon): Declare.
3848         * function.c (block_chainon): Define.
3849
3850 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
3851             Eric Weddington  <eric.weddington@atmel.com>
3852             Georg-Johann Lay <avr@gjlay.de>
3853
3854         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3855         New Includes
3856         (avr_init_builtins, avr_expand_builtin,
3857         avr_expand_delay_cycles, avr_expand_unop_builtin,
3858         avr_expand_binop_builtin ): New functions.
3859         (avr_builtin_id): New enum
3860         (struct avr_builtin_description): New struct
3861         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3862         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3863
3864         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3865         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3866         UNSPECV_DELAY_CYCLES): new enumeration values
3867         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3868         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3869         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3870         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3871         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3872         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3873         "fmulsu"): New insns
3874
3875         * config/avr/avr-c.c: fix line endings
3876         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3877         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3878         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3879         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3880         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3881
3882         * doc/extend.texi (AVR Built-in Functions): New node
3883         (Target Builtins): Add documentation of AVR
3884         built-in functions.
3885
3886 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
3887
3888         PR target/44643
3889         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3890         alone. Error if non-const data has attribute progmem.
3891
3892 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3893
3894         * tree.h (struct tree_constructor): Include tree_typed instead of
3895         tree_common.
3896         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3897         TS_TYPED instead of TS_COMMON.
3898
3899 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3900
3901         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3902         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3903         (sse2_psadbw): Merge with *avx_psadbw.
3904         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3905         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3906         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3907         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3908         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3909         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3910         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3911         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3912         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3913         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3914         (ssse3_palignrti): Merge with *avx_palignrti.
3915
3916 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3917
3918         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3919         * tree-ssanames.c (fini_ssanames): VEC_free it.
3920         (make_ssa_name_fn): Update for VECness of free_ssanames.
3921         (release_ssa_name, release_dead_ssa_names): Likewise.
3922         * tree.h (struct tree_ssa_name): Include tree_typed instead of
3923         tree_common.
3924         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3925         TS_TYPED instead of TS_COMMON.
3926
3927 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3928
3929         * postreload-gcse.c (gcse_after_reload_main): Add calls to
3930         statistics_counter_event.
3931         * tree-ssa-copyrename.c (stats): Define.
3932         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
3933         statistics_counter_event.
3934         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3935         (bswap_stats, widen_mul_stats): Define.
3936         (insert_reciprocals): Increment rdivs_inserted.
3937         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
3938         rfuncs_inserted.  Add calls to statistics_counter_event.
3939         (execute_cse_sincos_1): Increment inserted.
3940         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
3941         statistics_counter_event.
3942         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
3943         of bswap_stats.  Add calls to statistics_counter_event.
3944         (convert_mult_to_widen): Increment widen_mults_inserted.
3945         (convert_plusminus_to_widen): Increment maccs_inserted.
3946         (convert_mult_to_fma): Increment fmas_inserted.
3947         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
3948         calls to statistics_counter_event.
3949
3950 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3951
3952         PR rtl-optimization/48455
3953         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3954         `temp_costs->mem_cost'.
3955
3956 2011-04-13  Jan Hubicka  <jh@suse.cz>
3957
3958         * ipa-inline.h: New file.
3959         * ipa-inline-analysis.c: New file. Broken out of ...
3960         * ipa-inline.c: ... this file; update toplevel comment;
3961         include ipa-inline.h
3962         (inline_summary): Move to ipa-inline.h
3963         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3964         ipa-inline-analysis.c.
3965         (cgraph_estimate_time_after_inlining): Rename to
3966         estiamte_time_after_inlining; move to ipa-inline-analysis.c
3967         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3968         to estimate_edge_growth.
3969         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3970         rename to estimate_size_after_inlining.
3971         (cgraph_mark_inline_edge): Update for new naming convention.
3972         (cgraph_check_inline_limits): Likewise.
3973         (cgraph_edge_badness): Likewise.
3974         (cgraph_decide_recursive_inlining): Likewise.
3975         (cgraph_decide_inlining_of_small_functions): Likewise.
3976         (cgraph_decide_inlining_incrementally): Likewise.
3977         (cgraph_estimate_growth): Rename to estimate_growth; move to
3978         ipa-inline-analysis.c.
3979         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3980         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3981         (compute_inline_parameters): Likewise.
3982         (compute_inline_parameters_for_current): Likewise.
3983         (pass_inline_parameters): Likewise.
3984         (inline_indirect_intraprocedural_analysis): Likewise.
3985         (analyze_function): Rename to inline_analyze_function; likewise.
3986         (add_new_function): Move to ipa-inline-analysis.c.
3987         (inline_generate_summary): Likewise.
3988         (inline_read_summary): Likewise.
3989         (inline_write_summary): Likewise.
3990         * Makefile.in (ipa-inline-analysis.c): New file.
3991
3992 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3993
3994         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3995         * configure: Regenerate.
3996
3997 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3998
3999         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4000         instead of tree_common.
4001         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4002         Likewise.
4003         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4004         TS_TYPED rather than TS_COMMON.
4005         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4006
4007 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4008
4009         PR target/45263
4010         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4011         r20 around calls of __tablejump_elpm__
4012
4013 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4014
4015         PR middle-end/48591
4016         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4017         NULL.
4018         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4019
4020 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4021
4022         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4023         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4024         (cfi_vec): New typedef.
4025         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4026         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4027         (cie_cfi_vec): New static variable.
4028         (cie_cfi_head): Delete.
4029         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4030         declaration changed. Use vector rather than list operations.
4031         (new_cfi): Don't initialize the dw_cfi_next field.
4032         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4033         rather than list operations.
4034         (lookup_cfa): Use vector rather than list operations.
4035         (output_cfis): New argument upto. Accept a cfi_vec rather than
4036         a dw_cfi_ref list head as argument. All callers changed.
4037         Iterate over the vector using upto as a maximum index.
4038         (output_all_cfis): New static function.
4039         (output_fde): Use vector rather than list operations. Use the
4040         new upto argument for output_cfis rather than manipulating a
4041         list.
4042         (dwarf2out_begin_prologue): Change initializations to match
4043         new struct members.
4044         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4045         from the vector length rather than searching for the end of a list.
4046         Use output_all_cfis.
4047         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4048
4049 2011-04-13  Nick Clifton  <nickc@redhat.com>
4050
4051         * config/rx/rx.md (movmemsi): Do not use this pattern when
4052         volatile pointers are involved.
4053
4054 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4055
4056         * config/i386/sse.md (pinsrbits): Remove.
4057         (sse2_packsswb): Merge with *avx_packsswb.
4058         (sse2_packssdw): Merge with *avx_packssdw.
4059         (sse2_packuswb): Merge with *avx_packuswb.
4060         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4061         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4062         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4063         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4064         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4065         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4066         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4067         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4068         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4069         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4070         (sse2_loadld): Merge with *avx_loadld.
4071         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4072         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4073         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4074         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4075         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4076
4077 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4078
4079         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4080         calling TREE_CHAIN.
4081         * print-tree.c (print_node): Likewise.
4082         * tree-inline.c (copy_tree_r): Likewise.
4083         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4084         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4085         instead of TS_COMMON.
4086         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4087         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4088         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4089         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4090         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4091         ...and these...
4092         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4093         * tree.h: ...here.
4094         (TREE_CHAIN): Check for a TS_COMMON structure.
4095         (TREE_TYPE): Check for a TS_TYPED structure.
4096
4097 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
4098
4099         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4100         cgraph_get_create_node instead of cgraph_node.
4101
4102 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4103
4104         * c-parser.c (c_parser_initelt): Updated call to
4105         objc_build_message_expr.
4106         (c_parser_postfix_expression): Likewise.
4107
4108 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4109
4110         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4111         MASK_MS_BITFIELD_LAYOUT bit.
4112
4113 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4114
4115         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4116         assert it is always true.
4117         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4118         moves.
4119
4120 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4121
4122         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4123         compiling Objective-C to be more efficient.
4124
4125 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4126
4127         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4128         argv_copied.
4129
4130 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4131
4132         * recog.h, genoutput.c, optabs.c: Revert last patch.
4133
4134 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4135
4136         PR target/48090
4137         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4138
4139 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4140
4141         * recog.h (insn_operand_data): Add an "allows_mem" field.
4142         * genoutput.c (output_operand_data): Initialize it.
4143         * optabs.c (maybe_legitimize_operand_same_code): New function.
4144         (maybe_legitimize_operand): Use it when matching the original
4145         op->value.
4146
4147 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4148
4149         * genpreds.c (process_define_predicate): Move most processing
4150         to gensupport.c.  Continue to validate the expression.
4151         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4152         (process_define_predicate): Move processing to gensupport.c.
4153         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4154         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4155         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4156         argument.
4157         (valid_predicate_name_p): New function, split out from old
4158         genpreds.c:process_define_predicate.
4159         (process_define_predicate): New function, combining code from
4160         old genpreds.c and genrecog.c functions.
4161         (process_rtx): Call it for DEFINE_PREDICATE and
4162         DEFINE_SPECIAL_PREDICATE.
4163
4164 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4165
4166         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4167         size of a '%A' memory reference.
4168         (T_DREG, T_QREG): New neon_builtin_type_bits.
4169         (arm_init_neon_builtins): Assert that the load and store operands
4170         are neon_struct_operands.
4171         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4172         (NEON_ARG_MEMORY): New builtin_arg.
4173         (neon_dereference_pointer): New function.
4174         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4175         Handle NEON_ARG_MEMORY.
4176         (arm_expand_neon_builtin): Update after above interface changes.
4177         Use NEON_ARG_MEMORY for loads and stores.
4178         * config/arm/predicates.md (neon_struct_operand): New predicate.
4179         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4180         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4181         (V_four_elem): Tweak formatting.
4182         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4183         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4184         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4185         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4186         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4187         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4188         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4189         Use %A in the output template.
4190         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4191         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4192         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4193         the width of the memory access.  Remove post-increment.
4194         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4195
4196 2011-04-12  Nick Clifton  <nickc@redhat.com>
4197
4198         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4199         instruction for interrupt handlers if the target is the basic V850
4200         architecture.
4201         (expand_epilogue): Likewise.
4202
4203 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4204
4205         PR rtl-optimization/48549
4206         * combine.c (propagate_for_debug): Also stop after BB_END of
4207         this_basic_block.  Process LAST and just stop processing after it.
4208         (combine_instructions): If last_combined_insn has been deleted,
4209         set last_combined_insn to its PREV_INSN.
4210
4211 2011-04-12  Richard Guenther  <rguenther@suse.de>
4212
4213         PR tree-optimization/46076
4214         * gimple.h (struct gimple_statement_call): Add fntype field.
4215         (gimple_call_fntype): Adjust.
4216         (gimple_call_set_fntype): New function.
4217         * gimple.c (gimple_build_call_1): Set the call function type.
4218         * gimplify.c (gimplify_call_expr): Preserve the function
4219         type the frontend used for the call.
4220         (gimplify_modify_expr): Likewise.
4221         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4222         function type.
4223         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4224         function type.
4225         * tree-ssa.c (useless_type_conversion_p): Function pointer
4226         conversions are useless.
4227
4228 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4229
4230         * cgraph.h (cgraph_node): Remove function declaration.
4231         (cgraph_create_node): Declare.
4232         (cgraph_get_create_node): Likewise.
4233         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4234         Updated all callers.
4235         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4236         the decl does not already exist.  Call cgraph_get_create_node instead
4237         of cgraph_node.
4238         (cgraph_get_create_node): New function.
4239         (cgraph_same_body_alias): Update comment.
4240         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4241         assert it does not return NULL.
4242         (cgraph_update_edges_for_call_stmt): Likewise.
4243         (cgraph_clone_edge): Likewise.
4244         (cgraph_create_virtual_clone): Likewise.
4245         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4246         instead of cgraph_node.
4247         (cgraph_add_new_function): Call cgraph_create_node or
4248         cgraph_get_create_node instead of cgraph_node.
4249         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4250         instead of cgraph_node.
4251         (record_eh_tables): Likewise.
4252         (mark_address): Likewise.
4253         (mark_load): Likewise.
4254         (build_cgraph_edges): Call cgraph_get_create_node instead
4255         of cgraph_node.
4256         (rebuild_cgraph_edges): Likewise.
4257         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4258         instead of cgraph_node.
4259         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4260         cgraph_node.
4261         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4262         cgraph_create_node instead of cgraph_node.
4263         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4264         of cgraph_node.
4265         * lto-cgraph.c (input_node): Likewise.
4266         * lto-streamer-in.c (input_function): Likewise.
4267         * varasm.c (mark_decl_referenced): Likewise.
4268         (assemble_alias): Likewise.
4269
4270 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4271
4272         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4273         instead of cgraph_node and assert it does not return NULL.
4274         * lto-streamer-in.c (lto_read_body): Likewise.
4275         * omp-low.c (new_omp_context): Likewise.
4276         (create_task_copyfn): Likewise.
4277         * tree-emutls.c (lower_emutls_function_body): Likewise.
4278         * matrix-reorg.c (transform_allocation_sites): Likewise.
4279
4280 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4281
4282         PR c/48552
4283         * c-typeck.c (build_asm_expr): Error out on attempts to use
4284         void type outputs or inputs for constraints that allow reg or
4285         don't allow memory.
4286
4287 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4288             Richard Earnshaw  <rearnsha@arm.com>
4289
4290         PR target/48250
4291         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4292         to use sign-magnitude offsets. Reject unsupported unaligned
4293         cases. Add detailed description in comments.
4294         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4295         condition from TARGET_32BIT to TARGET_ARM.
4296
4297 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4298
4299         * tree.h (struct typed_tree): New.
4300         (struct tree_common): Include it instead of tree_base.
4301         (TREE_TYPE): Update for new location of type field.
4302         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4303         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4304         (union tree_node): Add typed field.
4305         * treestruct.def (TS_TYPED): New.
4306         * lto-streamer.c (check_handled_ts_structures): Handle it.
4307         * tree.c (MARK_TS_TYPED): New macro.
4308         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4309
4310 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4311
4312         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4313         (force_nonfallthru): Do not alter the loop nest if no basic block
4314         was created.
4315
4316 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4317
4318         * config/i386/sse.md (VI): New mode iterator.
4319         (SSEMODEI): Remove.
4320         (AVX256MODEI): Ditto.
4321         (AVXMODEF4P): Ditto.
4322         (avxvecpsmode): Ditto.
4323         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4324         (sse2_andnot<mode>3): New expander.
4325         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4326         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4327         (<any_logic:code><mode>3): Use VI mode iterator.
4328         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4329         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4330         (*andnottf3): Handle AVX three-operand constraints.
4331         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4332
4333 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4334             Robert Millan  <rmh@gnu.org>
4335
4336         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4337         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4338         GNU_USER_DYNAMIC_LINKER64): Define.
4339         (REG_NAME): Don't undefine.
4340         (MD_UNWIND_SUPPORT): Undefine.
4341         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4342         (REG_NAME): Don't undefine.
4343         (MD_UNWIND_SUPPORT): Undefine.
4344         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4345
4346 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4347
4348         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4349         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4350
4351 2011-04-11  Xinliang David Li  <davidxl@google.com>
4352
4353         * value-profile.c (check_ic_target): New function.
4354         (gimple_ic_transform): Sanity check indirect call target.
4355         * gimple-low.c (gimple_check_call_args): Interface change.
4356         (gimple_check_call_matching_types): New function.
4357         * tree-inline.c (tree_can_inline_p): Call new function.
4358
4359 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4360
4361         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4362         tree-pretty-print.h & realmpfr.h.
4363
4364 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4365
4366         PR middle-end/48464
4367         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4368         (setup_allocno_and_important_classes): Ditto.
4369
4370 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4371
4372         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4373         GNU_USER_DYNAMIC_LINKER.
4374         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4375         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4376         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4377         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4378         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4379         GNU_USER_TARGET_OS_CPP_BUILTINS.
4380         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4381         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4382         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4383         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4384         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4385         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4386         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4387         GNU_USER_TARGET_OS_CPP_BUILTINS.
4388         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4389         GNU_USER_DYNAMIC_LINKER.
4390         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4391         GNU_USER_TARGET_OS_CPP_BUILTINS.
4392         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4393         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4394         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4395         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4396         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4397         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4398         GNU_USER_DYNAMIC_LINKER64): Remove.
4399         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4400         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4401         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4402         GNU_USER_DYNAMIC_LINKER.
4403         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4404         GNU_USER_TARGET_OS_CPP_BUILTINS.
4405         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4406         GNU_USER_TARGET_OS_CPP_BUILTINS.
4407         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4408         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4409         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4410         GNU_USER_TARGET_OS_CPP_BUILTINS.
4411         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4412         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4413         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4414         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4415         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4416         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4417         GNU_USER_DYNAMIC_LINKER.
4418         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4419         GNU_USER_TARGET_OS_CPP_BUILTINS.
4420         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4421         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4422         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4423         GNU_USER_DYNAMIC_LINKER.
4424         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4425         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4426         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4427         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4428         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4429         GNU_USER_DYNAMIC_LINKER.
4430         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4431         GNU_USER_DYNAMIC_LINKERN32.
4432         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4433         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4434         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4435         GNU_USER_DYNAMIC_LINKER32.
4436         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4437         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4438         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4439         GNU_USER_DYNAMIC_LINKER.
4440         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4441         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4442         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4443         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4444         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4445         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4446         GNU_USER_DYNAMIC_LINKER32.
4447         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4448         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4449         GNU_USER_DYNAMIC_LINKER.
4450         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4451         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4452         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4453         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4454         GNU_USER_DYNAMIC_LINKER64.
4455         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4456         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4457         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4458         GNU_USER_DYNAMIC_LINKER.
4459         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4460         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4461         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4462         GNU_USER_DYNAMIC_LINKER.
4463         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4464         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4465         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4466         GNU_USER_DYNAMIC_LINKER32.
4467         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4468         GNU_USER_DYNAMIC_LINKER64.
4469         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4470         GNU_USER_DYNAMIC_LINKER64.
4471         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4472         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4473         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4474         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4475         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4476
4477 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4478
4479         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4480         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4481         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4482         GNU_USER_DYNAMIC_LINKER.
4483         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4484         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4485         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4486         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4487         GNU_USER_DYNAMIC_LINKER64.
4488         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4489         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4490         GNU_USER_LINK_EMULATION.
4491         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4492         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4493         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4494         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4495         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4496         CPP_SPEC, CC1_SPEC): Remove.
4497         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4498         (GNU_USER_DYNAMIC_LINKER): Define.
4499         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4500         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4501         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4502         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4503         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4504         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4505         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4506         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4507         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4508         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4509         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4510         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4511         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4512         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4513         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4514         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4515         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4516         GNU_USER_DYNAMIC_LINKER.
4517         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4518         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4519         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4520         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4521         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4522         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4523         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4524         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4525         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4526         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4527
4528 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4529
4530         PR target/9601
4531         PR target/11772
4532         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4533         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4534         comment.
4535         (ix86_is_msabi_thiscall): Removed.
4536         (ix86_is_type_thiscall): Likewise.
4537         (ix86_get_callcvt): New function.
4538         (ix86_comp_type_attributes): Simplify check.
4539         (ix86_function_regparm): Use ix86_get_callcvt for calling
4540         convention attribute checks.
4541         (ix86_return_pops_args): Likewise.
4542         (ix86_static_chain): Likewise.
4543         (x86_this_parameter): Likewise.
4544         (x86_output_mi_thunk): Likewise.
4545         (ix86_function_type_abi): Optimize check for types without attributes.
4546         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4547         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4548         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4549         by flag-values.
4550         (IX86_BASE_CALLCVT): Helper macro.
4551         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4552         Use ix86_get_callcvt for calling convention attribute checks and avoid
4553         symbol-decoration for stdcall in TARGET_RTD case.
4554         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4555         Likewise.
4556         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4557         for declaration.
4558
4559 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4560
4561         * config/i386/sse.md (VI_128): New mode iterator.
4562         (VI12_128): Rename from SSEMODE12.
4563         (VI14_128): Rename from SSEMODE14.
4564         (VI124_128): New mode iterator.
4565         (VI24_128): Rename from SSEMODE248.
4566         (VI248_128): Rename from SSEMODE248.
4567         (SSEMODE124C8): Remove.
4568         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4569         (*sse2_<plusminus_insn><mode>3): Merge with
4570         *avx_<plusminus_insn><mode>3.
4571         (*mulv8hi3): Merge with *avx_mulv8hi3.
4572         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4573         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4574         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4575         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4576         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4577         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4578         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4579         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4580         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4581         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4582         (*<smaxmin:code>v8hi3): Ditto.
4583         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4584         (*<smaxmin:code>v16qi3): Ditto.
4585         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4586         (*sse2_eq<mode>3): Ditto.
4587         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4588         (*sse2_gt<mode>3): Ditto.
4589         (vcondv2di): Split out of vcond<mode>.
4590         (vconduv2di): Split out of vcondu<mode>.
4591
4592 2011-04-11  Richard Guenther  <rguenther@suse.de>
4593
4594         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4595         before calling tree_low_cst.
4596
4597 2011-04-11  Richard Guenther  <rguenther@suse.de>
4598
4599         * stor-layout.c (layout_type): Compute all array index size operations
4600         in the original type.
4601         (initialize_sizetypes): Add comment.
4602         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4603
4604 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4605
4606         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4607
4608 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4609
4610         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4611         of cgraph_node, handle NULL return value.
4612         (cgraph_global_info): Likewise.
4613         (cgraph_rtl_info): Likewise.
4614         * tree-inline.c (estimate_num_insns): Likewise.
4615         * gimplify.c (unshare_body): Likewise.
4616         (unvisit_body): Likewise.
4617         (gimplify_body): Likewise.
4618         * predict.c (optimize_function_for_size_p): Likewise.
4619         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4620         (call_may_clobber_ref_p_1): Likewise.
4621         * varasm.c (function_section_1): Likewise.
4622         (assemble_start_function): Likewise.
4623
4624 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4625
4626         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4627         of cgraph_node.
4628         * final.c (rest_of_clean_state): Likewise.
4629         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4630         * passes.c (pass_init_dump_file): Likewise.
4631         (execute_all_ipa_transforms): Likewise.
4632         (function_called_by_processed_nodes_p): Likewise.
4633         * predict.c (maybe_hot_frequency_p): Likewise.
4634         (probably_never_executed_bb_p): Likewise.
4635         (compute_function_frequency): Likewise.
4636         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4637         (unnest_nesting_tree_1): Likewise.
4638         (lower_nested_functions): Likewise.
4639         * tree-optimize.c (execute_fixup_cfg): Likewise.
4640         (tree_rest_of_compilation): Likewise.
4641         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4642         * tree-sra.c (ipa_early_sra): Likewise.
4643         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4644         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4645         * ipa.c (record_cdtor_fn): Likewise.
4646         * ipa-inline.c (cgraph_early_inlining): Likewise.
4647         (compute_inline_parameters_for_current): Likewise.
4648         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4649         * ipa-pure-const.c (local_pure_const): Likewise.
4650         * ipa-split.c (split_function): Likewise.
4651         (execute_split_functions): Likewise.
4652         * cgraphbuild.c (build_cgraph_edges): Likewise.
4653         (rebuild_cgraph_edges): Likewise.
4654         (cgraph_rebuild_references): Likewise.
4655         (remove_cgraph_callee_edges): Likewise.
4656         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4657         (verify_cgraph_node): Likewise.
4658         (cgraph_analyze_functions): Likewise.
4659         (cgraph_preserve_function_body_p): Likewise.
4660         (save_inline_function_body): Likewise.
4661         (save_inline_function_body): Likewise.
4662         * tree-inline.c (copy_bb): Likewise.
4663         (optimize_inline_calls): Likewise.
4664
4665 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4666
4667         PR tree-optimization/48195
4668         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4669         ipa_check_create_edge_args.
4670         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4671         ipa_check_create_edge_args.
4672         * ipa-inline.c (inline_generate_summary): Do not call
4673         ipa_check_create_node_params and ipa_check_create_edge_args.
4674         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4675         ipa_check_create_edge_args.
4676
4677 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
4678
4679         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4680         instead of loop.
4681         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4682         * function.c (record_hard_reg_sets): Likewise.
4683         * ira.c (compute_regs_asm_clobbered): Likewise.
4684         * sched-deps.c (sched_analyze_1): Likewise.
4685         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4686
4687 2011-04-09  Xinliang David Li  <davidxl@google.com>
4688
4689         PR tree-optimization/PR48484
4690         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4691         has_valid_pred lazily
4692
4693 2011-04-09  Duncan Sands  <baldrick@free.fr>
4694
4695         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4696
4697 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4698
4699         * combine.c (combine_validate_cost): Adjust comments.  Set registered
4700         cost of I0 to zero at the end, if any.
4701
4702 2011-04-08  Xinliang David Li  <davidxl@google.com>
4703
4704         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4705         to insane profile data.
4706
4707 2011-04-08  Xinliang David Li  <davidxl@google.com>
4708
4709         * ipa-cp.c (ipcp_update_profiling): Correct
4710          negative scale factor due to insane profile data.
4711
4712 2011-04-08  Xinliang David Li  <davidxl@google.com>
4713
4714         * final.c (dump_basic_block_info): New function.
4715         (final): Dump basic block.
4716         (final_scan_insn): Remove old dump.
4717
4718 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4719
4720         PR target/47829
4721         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4722         crtbegin/crtend.
4723
4724 2011-04-08  Michael Matz  <matz@suse.de>
4725
4726         PR middle-end/48389
4727         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4728         functions.
4729         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4730         * rtl.h (rebuild_jump_labels_chain): Declare.
4731         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4732         insns inserted on edges.
4733
4734 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
4735
4736         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4737         * config/arm/arm-arches.def: New.
4738         * config/arm/arm-opts.h: New.
4739         * config/arm/genopt.sh: New.
4740         * config/arm/arm-tables.opt: New (generated).
4741         * config/arm/arm.c (arm_handle_option, arm_target_help,
4742         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4743         (all_architectures): Get most table contents from arm-arches.def.
4744         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4745         arm_selected_tune here.
4746         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4747         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4748         (march=, mcpu=, mtune=): Use Enum and Var.
4749         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4750         (arm.o): Update dependencies.
4751
4752 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
4753
4754         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4755         of header_file.
4756         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4757         (write_typed_alloc_defns): Likewise.
4758         (main): Calls write_typed_alloc_defns with output_header.
4759
4760 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4761
4762         PR inline-asm/48435
4763         * ira-color.c (setup_profitable_hard_regs): Add comments.
4764         Don't take prohibited hard regs into account.
4765         (setup_conflict_profitable_regs): Rename to
4766         get_conflict_profitable_regs.
4767         (check_hard_reg_p): Check prohibited hard regs.
4768
4769 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4770
4771         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4772         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4773         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4774
4775 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4776
4777         PR target/48366
4778         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4779         move from floating point to shift amount register.
4780         (emit_move_sequence): Remove secondary reload support for floating
4781         point to shift amount amount register copies.
4782         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4783         amount register copies.
4784         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4785         register, return false if mode isn't a scalar integer mode.
4786         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4787
4788 2011-04-08  Richard Guenther  <rguenther@suse.de>
4789
4790         * gimple.c (gimple_call_flags): Remove kludge.
4791
4792 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4793
4794         * sel-sched.c (sel_region_init): Move call to
4795         sel_setup_region_sched_flags after setup_current_loop_nest.
4796
4797 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
4798
4799         PR rtl-optimization/48272
4800         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4801         init_insn_reg_pressure_info.  Adjust a caller.
4802         * sched-int.h (init_insn_reg_pressure_info): Declare.
4803         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4804         when sched-pressure is enabled.
4805
4806 2011-04-08  Richard Guenther  <rguenther@suse.de>
4807
4808         * gimple.c (gimple_set_modified): Do not queue calls to
4809         MODIFIED_NORETURN_CALLS here ...
4810         * tree-ssa-operands.c (update_stmt_operands): ... but here.
4811
4812 2011-04-08  Richard Guenther  <rguenther@suse.de>
4813
4814         PR lto/48467
4815         * toplev.c (lang_dependent_init): Do not open asm_out_file
4816         in WPA mode, nor perform debug machinery initialization.
4817         (finalize): Do not unlink asm_out_file in WPA mode.
4818
4819 2011-04-08  Richard Guenther  <rguenther@suse.de>
4820
4821         * gimple.h (gimple_call_fntype): New function.
4822         (gimple_call_return_type): Use it.
4823         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4824         * gimple-low.c (gimple_check_call_args): Likewise.
4825         * gimple.c (gimple_call_flags): Likewise.
4826         (gimple_call_arg_flags): Likewise.
4827         (gimple_call_return_flags): Likewise.
4828         * tree-cfg.c (verify_gimple_call): Likewise.
4829         (do_warn_unused_result): Likewise.
4830         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4831         * value-prof.c (gimple_ic_transform): Fix fndecl check.
4832
4833 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
4834
4835         PR rtl-optimization/48235
4836         * sel-sched.c (code_motion_process_successors): Recompute the last
4837         insn in basic block if control flow changed.
4838         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
4839         Update condition for ilist_remove.
4840
4841 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4842
4843         PR rtl-optimization/48302
4844         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4845         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
4846         it to record added preheader blocks.
4847         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
4848         on to sel_add_loop_preheaders.
4849         (sel_region_init): Move call to setup_current_loop_nest after
4850         sel_init_bbs.
4851
4852 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4853
4854         PR target/48273
4855         * cfgloop.h (loop_has_exit_edges): New helper.
4856         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4857         non-clonable.
4858         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4859         that have no exit edges.
4860
4861 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4862
4863         PR rtl-optimization/48442
4864         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
4865         all callers.  Adjust assert.
4866
4867 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
4868
4869         PR tree-optimization/48377
4870         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4871         is_packed to true even for types with smaller TYPE_ALIGN than
4872         TYPE_SIZE.
4873
4874 2011-04-08  Richard Guenther  <rguenther@suse.de>
4875
4876         PR bootstrap/48513
4877         * doc/tm.texi: Re-generate.
4878
4879 2011-04-08  Wei Guozhi  <carrot@google.com>
4880
4881         PR target/47855
4882         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4883         * config/arm/arm.c (arm_attr_length_push_multi): New function.
4884         * config/arm/arm.md (*push_multi): Change the length computation to
4885         call a C function.
4886
4887 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
4888
4889         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4890         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4891         * doc/tm.texi: Regenerate.
4892         * system.h (ASM_OUTPUT_BSS): Poison.
4893         * varasm.c (asm_output_bss): Remove function.
4894         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4895
4896         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4897         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4898         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4899         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4900         Likewise.
4901         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4902         Likewise.
4903         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4904         Likewise.
4905         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4906
4907 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4908
4909         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4910         EnumValue lines.
4911
4912 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4913
4914         * config/m68k/m68k.c (m68k_handle_option): Don't handle
4915         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4916         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4917         OPT_mcpu32.
4918         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4919         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4920         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4921         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4922         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4923         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4924         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4925         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4926         options.  Don't map other m68k options manually.  Don't handle
4927         old-style options as canonical.
4928         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4929         * doc/install.texi (m68k-*-*): Document binutils version requirement.
4930
4931 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4932
4933         * basic-block.h (force_nonfallthru): Move to...
4934         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4935         (force_nonfallthru): ...here.
4936         * cfghooks.c (force_nonfallthru): New function.
4937         * cfgrtl.c (force_nonfallthru): Rename into...
4938         (rtl_force_nonfallthru): ...this.
4939         (commit_one_edge_insertion): Do not set AUX field.
4940         (commit_edge_insertions): Do not discover new basic blocks.
4941         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4942         (cfg_layout_rtl_cfg_hooks): Likewise.
4943         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4944         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
4945         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4946
4947 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
4948
4949         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4950         Remove macros.
4951
4952 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
4953
4954         * config/i386/sse.md: Update copyright year.
4955         (avxcvtvecmode): Remove.
4956         (sse_movhlps): Merge with *avx_movhlps.
4957         (sse_movlhps): Merge with *avx_movlhps.
4958         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4959         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4960         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4961         (sse_loadhps): Merge with *avx_loadhps.
4962         (sse_storelps): Merge with *avx_storelps.
4963         (sse_loadlps): Merge with *avx_loadlps.
4964         (sse_movss): Merge with *avx_movss.
4965         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4966         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4967         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4968         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4969         (vec_set<mode>_0): Ditto.
4970         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4971         (sse4_1_insertps): Merge with *avx_insertps.
4972         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4973         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4974         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4975         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4976         (sse2_storehpd): Merge with *avx_storehpd.
4977         (sse2_loadhpd): Merge with *avx_loadhpd.
4978         (sse2_loadlpd): Merge with *avx_loadlpd.
4979         (sse2_movsd): Merge with *avx_movsd.
4980         (*vec_concatv2df): Merge with *vec_concatv2df.
4981
4982 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
4983
4984         PR debug/48343
4985         * combine.c (combine_instructions): Add last_combined_insn,
4986         update it if insn is after it, pass it to all try_combine calls.
4987         (try_combine): Add last_combined_insn parameter, pass it instead of
4988         i3 to propagate_for_debug.
4989
4990 2011-04-07  Nick Clifton  <nickc@redhat.com>
4991
4992         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4993         to handle MDR <-> data register transfers.
4994         (movhi_internal): Likewise.
4995
4996 2011-04-07  Alan Modra  <amodra@gmail.com>
4997
4998         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4999         previous stack info.
5000
5001 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5002
5003         PR target/43920
5004         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5005         flow_find_cross_jump.  Swap variables to implement backward replacement.
5006         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5007
5008 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5009
5010         PR target/43920
5011         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5012         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5013         and bb2.
5014         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5015         src1 or src2.  Redirect edges to the last basic block.  Update
5016         frequency and count on multiple basic blocks in case of fallthru.
5017
5018 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5019
5020         PR target/43920
5021         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5022         function.
5023         (old_insns_match_p): Change return type.  Replace return false/true
5024         with return dir_none/dir_both.  Use can_replace_by.
5025         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5026         direction from dir_p.  Register replacement direction in dir, last_dir
5027         and afterlast_dir.  Handle new return type of old_insns_match_p using
5028         merge_dir.  Return replacement direction in dir_p.
5029         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5030         return type of old_insns_match_p.
5031         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5032         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5033         flow_find_cross_jump.
5034         * basic-block.h (enum replace_direction): New type.
5035         (flow_find_cross_jump): Add parameter to declaration.
5036
5037 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5038
5039         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5040         (AVXMODEDCVTPS2DQ): Ditto.
5041         (VEC_FLOAT_MODE): Ditto.
5042         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5043         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5044         (<any_logic:code><mode>3): Use VF mode iterator.
5045         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5046         Use VF mode iterator.
5047         (copysign<mode>3): Use VF mode iterator.
5048         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5049         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5050         (*<any_logic:code><MODEF:mode>3): Merge with
5051         *avx_<any_logic:code><MODEF:mode>3.
5052         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5053         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5054         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5055         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5056         (sse2_cvtdq2ps): Use %v modifier.
5057         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5058         (avx_cvtps2dq<avxmodesuffix>): Remove.
5059         (sse2_cvtps2dq): Use %v modifier.
5060         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5061         (avx_cvttps2dq<avxmodesuffix>): Remove.
5062         (sse2_cvttps2dq): Use %v modifier.
5063         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5064         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5065         (sse2_cvtsd2siq): Fix insn template.
5066         (sse2_cvtsd2siq_2): Ditto.
5067         (sse2_cvttsd2siq): Ditto.
5068         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5069         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5070
5071 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5072
5073         * gcov-io.c: Use GCC Runtime Library Exception.
5074
5075 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5076
5077         PR debug/48466
5078         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5079         as base_reg whatever register reg has been eliminated to, instead
5080         of hardcoding STACK_POINTER_REGNUM.
5081
5082 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5083
5084         * doc/tm.texi.in: Document C target hooks as separate from general
5085         target hooks.
5086         * doc/tm.texi: Regenerate.
5087         * genhooks.c (struct hook_desc): Add docname field.
5088         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5089         docname field.
5090         (hook_array): Include c-target.def.
5091         (emit_documentation): Use docname field in output.
5092         (emit_init_macros): Take docname argument.  Only emit definitions
5093         for hooks matching docname.
5094         (main): Expect additional arguments in all cases.  Pass argument
5095         to emit_init_macros.
5096         * target.def: Move initial macro definitions and comments to
5097         target-hooks-macros.h.
5098         (gcc_targetcm): Move to c-family/c-target.def.
5099         * target.h (targetcm): Move declaration to c-family/c-target.h.
5100         * targhooks.c (default_handle_c_option): Move to
5101         c-family/c-opts.c.
5102         * targhooks.h (default_handle_c_option): Move declaration to
5103         c-family/c-common.h.
5104         * target-hooks-macros.h: New file.
5105         * config.gcc (target_has_targetcm): Define and use to add to
5106         c_target_objs and cxx_target_objs.
5107         * config/default-c.c: New file.
5108         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5109         of target.h and target-def.h.
5110         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5111         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5112         darwin_check_cfstring_format_arg): Make static.
5113         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5114         TARGET_STRING_OBJECT_REF_TYPE_P,
5115         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5116         * config/darwin-protos.h (darwin_objc_construct_string,
5117         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5118         declare.
5119         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5120         TARGET_STRING_OBJECT_REF_TYPE_P,
5121         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5122         * config/t-darwin (darwin-c.o): Update dependencies.
5123         * system.h (TARGET_HAS_TARGETCM): Poison.
5124         * Makefile.in (TARGET_H): Update.
5125         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5126         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5127         (default-c.o): New target.
5128         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5129         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5130         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5131         c-target.def.
5132         (build/genhooks.o): Update dependencies.
5133
5134 2011-04-06  Richard Guenther  <rguenther@suse.de>
5135
5136         * ipa-inline.c (enum inlining_mode): Remove.
5137         (cgraph_flatten): Use some other token.
5138         (cgraph_edge_early_inlinable_p): New function, split out from ...
5139         (cgraph_perform_always_inlining): New function, split out from ...
5140         (cgraph_decide_inlining_incrementally): ... here.
5141         (cgraph_mark_inline_edge): Adjust.
5142         (cgraph_early_inlining): Re-structure.
5143         (pass_early_inline): Require SSA form.
5144
5145 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5146             Julian Brown  <julian@codesourcery.com>
5147             Mark Shinwell  <shinwell@codesourcery.com>
5148
5149         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5150         LO_REGS only for Thumb-1.
5151         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5152         be used in short instructions when optimising for size on Thumb-2.
5153
5154 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5155
5156         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5157         associated with user returns to be preserved.
5158
5159 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5160
5161         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5162         symbol_queue_size, DBXOUT_DECR_NESTING,
5163         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5164         if XCOFF_DEBUGGING_INFO.
5165
5166 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5167
5168         * config/i386/i386.md (attribute isa): New.
5169         (attribute enabled): New.
5170         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5171         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5172         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5173         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5174         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5175         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5176         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5177         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5178
5179         * config/i386/sse.md (VF): New mode iterator.
5180         (VF1): Ditto.
5181         (VF2): Ditto.
5182         (VF_128): Ditto.
5183         (SSEMODEF4): Remove.
5184         (attribute sse): Handle V8SF and V4DF modes.
5185         (<absneg:code><mode>2): Use VF mode iterator.
5186         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5187         mode iterator.
5188         (<plusminus_insn><mode>3): Use VF mode iterator.
5189         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5190         Use VF mode iterator.
5191         (<sse>_vm<plusminus_insn><mode>3): Merge with
5192         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5193         (mul<mode>3): Use VF mode iterator.
5194         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5195         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5196         mode iterator.
5197         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5198         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5199         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5200         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5201         mode iterator.
5202         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5203         Use VF1 mode iterator.
5204         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5205         (sqrt<VF2:mode>2): New expander.
5206         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5207         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5208         and sqrtv2df2.  Use VF mode iterator.
5209         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5210         mode iterator.
5211         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5212         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5213         Use VF1 mode iterator.
5214         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5215         (<smaxmin:code><mode>3): Use VF mode iterator.
5216         (*<smaxmin:code><mode>3_finite): Merge with
5217         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5218         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5219         (<sse>_vm<smaxmin:code><mode>2): Merge with
5220         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5221         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5222         mode iterator.
5223         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5224         mode iterator.
5225         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5226         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5227         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5228         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5229         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5230         VF mode iterator.
5231         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5232         Use VF_128 mode iterator.
5233         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5234         mode iterator.
5235         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5236         VF_128 mode iterator.
5237         (vcond<mode>): Use VF mode iterator.
5238         * config/i386/predicates.md (sse_comparison_operator): Merge with
5239         avx_comparison_float_operator.  Do not declare as special_predicate.
5240         * config/i386/i386.c (struct builtin_description): Update for renamed
5241         compare patterns.
5242         (ix86_expand_args_builtin): Ditto.
5243         (ix86_expand_sse_compare_mask): Ditto.
5244
5245 2011-04-06  Richard Guenther  <rguenther@suse.de>
5246
5247         * tree-inline.c (estimate_num_insns): For calls simply account
5248         for all passed arguments and a used return value.
5249
5250 2011-04-06  Richard Guenther  <rguenther@suse.de>
5251
5252         PR tree-optimization/47663
5253         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5254         call_stmt_time fields.
5255         (cgraph_edge_inlinable_p): Declare.
5256         (cgraph_edge_recursive_p): New inline function.
5257         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5258         (cgraph_clone_edge): Copy it.
5259         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5260         Account for call stmt time.
5261         (cgraph_estimate_time_after_inlining): Take edge argument.
5262         (cgraph_estimate_edge_growth): Account call stmt size.
5263         (cgraph_estimate_size_after_inlining): Take edge argument.
5264         (cgraph_mark_inline_edge): Adjust.
5265         (cgraph_check_inline_limits): Likewise.
5266         (cgraph_recursive_inlining_p): Remove.
5267         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5268         (cgraph_decide_recursive_inlining): Take edge argument and
5269         adjust.
5270         (cgraph_decide_inlining_of_small_functions): Do not avoid
5271         diags for recursive inlining here.
5272         (cgraph_flatten): Adjust.
5273         (cgraph_decide_inlining_incrementally): Likewise.
5274         (estimate_function_body_sizes): Remove call cost handling.
5275         (compute_inline_parameters): Initialize caller edge call costs.
5276         (cgraph_estimate_edge_growth): New function.
5277         (cgraph_estimate_growth): Use it.
5278         (cgraph_edge_badness): Likewise.
5279         (cgraph_check_inline_limits): Take an edge argument.
5280         (cgraph_decide_inlining_of_small_functions): Adjust.
5281         (cgraph_decide_inlining): Likewise.
5282         * tree-inline.c (estimate_num_insns): Only account for call
5283         return value if it is used.
5284         (expand_call_inline): Avoid diagnostics on recursive inline
5285         functions here.
5286         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5287         (input_edge): Input edge call costs.
5288
5289 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5290
5291         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5292
5293 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5294
5295         * doc/invoke.texi (Spec Files): Fix typo.
5296
5297 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5298
5299         * profile.c (branch_prob): Move declaration of local variable.  Remove
5300         obsolete ??? comment.  Expand the location explicitly instead of using
5301         the LOCATION_FILE and LOCATION_LINE macros.
5302
5303 2011-04-06  Wei Guozhi  <carrot@google.com>
5304
5305         PR target/47855
5306         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5307         (arm_cond_branch): Likewise.
5308         (arm_cond_branch_reversed): Likewise.
5309         (arm_jump): Likewise.
5310         (push_multi): Likewise.
5311         * config/arm/constraints.md (Py): New constraint.
5312
5313 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5314
5315         PR bootstrap/48471
5316         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5317         Move these...
5318         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5319         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5320         #ifdef DBX_DEBUGGING_INFO.
5321
5322 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5323
5324         PR bootstrap/48403
5325         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5326         if old and new states differ.
5327
5328 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5329
5330         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5331         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5332         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5333         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5334         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5335         mcfv4e): Use Alias.
5336         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5337         ColdFire options to -mcpu= options.
5338
5339 2011-04-05  Jeff Law  <law@redhat.com>
5340
5341         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5342         check if BB is a successor of LOOP->header and return
5343         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5344
5345 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5346
5347         * cprop.c (struct reg_use): Remove.
5348         (reg_use_table): Make an array of RTX.
5349         (find_used_regs, constprop_register, local_cprop_pass,
5350         bypass_block): Simplify users of reg_use_table.
5351         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5352         on one of the uses found by find_used_regs.
5353
5354 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5355
5356         PR bootstrap/48469
5357         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5358         declaration.
5359
5360 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5361
5362         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5363         as an rtx.
5364         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5365
5366 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5367
5368         PR middle-end/48441
5369         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5370
5371 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5372
5373         * combine.c: Include obstack.h.
5374         (struct insn_link): Define.
5375         (uid_log_links): Adjust type.
5376         (FOR_EACH_LOG_LINK): New macro.
5377         (insn_link_obstack): Declare.
5378         (alloc_insn_link): Define.
5379         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5380         type of link variables.
5381         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5382         (try_combine, record_promoted_values, distribute_notes): Likewise.
5383         (distribute_links): Likewise.  Tweak prototype.
5384         (clear_log_links): Delete.
5385         (adjust_for_new_dest): Call alloc_insn_link.
5386         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5387
5388 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5389
5390         * gcse.c (modify_mem_list): Convert to an array of VECs.
5391         (canon_modify_mem_list, compute_transp): Tweak formatting.
5392         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5393         (load_killed_in_block_p): Likewise.
5394         (record_last_mem_set_info): Likewise.
5395         (clear_modify_mem_tables): Likewise.
5396
5397 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5398
5399         PR middle-end/48461
5400         * function.c (emit_use_return_register_into_block): Only define if
5401         HAVE_return.
5402
5403 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5404
5405         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5406
5407 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5408
5409         * config/rx/rx-opts.h: New.
5410         * config/rx/rx.c (rx_cpu_type): Remove.
5411         (rx_handle_option): Don't assert that global structures are in
5412         use.  Access variables via opts pointer.  Defer most handling of
5413         OPT_mint_register_.  Use error_at.
5414         (rx_option_override): Handle deferred OPT_mint_register_ here.
5415         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5416         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5417         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5418         (rx_cpu_types): New Enum and EnumValue entries.
5419         (mint-register=): Use Defer and use Var accordingly.
5420
5421 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5422
5423         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5424         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5425         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5426         Move these...
5427         (debug_free_queue, debug_nesting, symbol_queue_index):
5428         ...and these...
5429         * dbxout.c: ...to here.  Make static.
5430
5431 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5432
5433         * gcse.c (modify_pair): Define.  Define a VEC of it.
5434         (canon_modify_mem_list): Convert to an array of VECs.
5435         (free_insn_expr_list_list): Delete.
5436         (clear_modify_mem_tables): Call VEC_free instead.
5437         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5438         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5439         (canon_list_insert, compute_transp): Likewise.
5440
5441 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5442
5443         PR target/43920
5444         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5445         for size.
5446
5447 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5448
5449         PR target/43920
5450         * function.c (emit_use_return_register_into_block): New function.
5451         (thread_prologue_and_epilogue_insns): Use
5452         emit_use_return_register_into_block.
5453
5454 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5455
5456         PR target/43920
5457         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5458         insn.
5459
5460 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5461
5462         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5463
5464 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5465
5466         * config/arm/arm.md (define_constants for unspec): Replace with
5467         define_c_enum.
5468         (define_constants for unspecv): Replace with define_c_enum.
5469         * config/arm/neon.md (define_constants for unspec): Replace with
5470         define_c_enum.
5471
5472 2011-04-04  Richard Henderson  <rth@redhat.com>
5473
5474         PR bootstrap/48400
5475         * dwarf2out.c (output_line_info): Always emit line info from
5476         at least one section.
5477         (dwarf2out_init): Create text_section_line_info here ...
5478         (set_cur_line_info_table): ... not here.
5479
5480 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5481
5482         PR target/48380
5483         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5484         not called.
5485
5486         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5487
5488 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5489
5490         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5491         (expr_equiv_p): Remove.
5492         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5493         (hash_scan_set): Update call to insert_set_in_table.
5494         (dump_hash_table): Dump <dest, src> pair.
5495         (lookup_set): Simplify.  Lookup <dest, src> pair.
5496         (compute_transp): Remove, fold heavily simplified code into...
5497         (compute_local_properties): ...here.  Expect COMP and TRANSP
5498         unconditionally.
5499         (find_avail_set): Take set directly from struct expr.
5500         (find_bypass-set): Likewise.
5501         (bypass_block): Likewise.
5502         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5503
5504         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5505         checks on form of COND from find_implicit_sets to here.
5506         (find_implicit_sets): Cleanup control flow. Split critical edges
5507         if it exposes implicit sets.  Allocate/resize implicit_sets as
5508         necessary.
5509         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5510         changed something.  Run df_analyze after find_implicit_sets if any
5511         edges were split.  Do not allocate implicit_sets here.
5512
5513         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5514         (gcse_obstack): Renamed to cprop_obstack.
5515         (GNEW, GNEWVEC, GNEWVAR): Remove.
5516         (gmalloc): Remove.
5517         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5518         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5519         (gcse_alloc): Likewise, and rename to cprop_alloc.
5520         (alloc_gcse_men, free_gcse_mem): Remove.
5521         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5522         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5523         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5524
5525         * cprop.c (oprs_not_set_p): Remove.
5526         (mark_set, mark_clobber): Remove.
5527         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5528         (reg_not_set_p): New function.
5529         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5530         (cprop_insn): Likewise.
5531         (cprop_jump): Use FOR_EACH_EDGE.
5532
5533 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5534
5535         PR bootstrap/48403
5536         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5537         (rank_for_schedule): Use scheduled_insns vector instead of
5538         last_scheduled_insn.
5539         (ok_for_early_queue_removal): Likewise.
5540         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5541         we have a dbg_cnt.
5542         (choose_ready): Likewise.
5543         (commit_schedule): Use VEC_iterate.
5544         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5545         a dbg_cnt, use it and ensure the first insn is in the ready list.
5546         (haifa_sched_init): Allocate scheduled_insns.
5547         (sched_extend_ready_list): Don't allocate it; reserve space.
5548         (haifa_sched_finish): Free it.
5549
5550 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5551
5552         * optc-gen.awk: Always remove type from Variable entry before
5553         recording in var_seen.
5554
5555 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5556
5557         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5558         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5559         call to tidy_fallthru_edges.
5560
5561 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5562
5563         * doc/options.texi (ToLower): Document.
5564         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5565         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5566         * opts.h (cl_option): Add cl_tolower field.
5567         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5568         arguments with lowercase strings.
5569         * config/rx/rx.opt (mcpu=): Add ToLower.
5570         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5571         argument.
5572
5573 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5574
5575         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5576
5577 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5578
5579         * config/vax/vax.c: Include reload.h.
5580
5581 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5582
5583         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5584         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5585         (sparc_preferred_reload_class): New function.
5586
5587 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5588
5589         PR debug/48401
5590         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5591         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5592
5593 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5594
5595         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5596         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5597
5598 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5599
5600         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5601         (ASM_OUTPUT_ALIGNED_BSS): Define.
5602
5603 2011-04-03  Michael Matz  <matz@suse.de>
5604
5605         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5606         and next_slot members.
5607         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5608         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5609         (lto_streamer_cache_append): Declare.
5610         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5611         unsigned index, remove offset parameter, ensure that we append
5612         or update existing entries.
5613         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5614         parameter, update next_slot for append.
5615         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5616         parameter.
5617         (lto_streamer_cache_insert_at): Likewise.
5618         (lto_streamer_cache_append): New function.
5619         (lto_streamer_cache_lookup): Use unsigned index.
5620         (lto_streamer_cache_get): Likewise.
5621         (lto_record_common_node): Don't test tree_node_can_be_shared.
5622         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5623         (lto_streamer_cache_delete): Don't free offsets member.
5624         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5625         (lto_output_string_with_length): Use lto_output_data_stream.
5626         (lto_output_tree_header): Remove ix parameter, don't write it.
5627         (lto_output_builtin_tree): Likewise.
5628         (lto_write_tree): Adjust callers to above, don't track and write
5629         offset, write unsigned index.
5630         (output_unreferenced_globals): Don't emit all global vars.
5631         (write_global_references): Use unsigned indices.
5632         (lto_output_decl_state_refs): Likewise.
5633         (write_symbol): Likewise.
5634         * lto-streamer-in.c (lto_input_chain): Move earlier.
5635         (input_function): Use unsigned index.
5636         (input_alias_pairs): Don't read and then ignore all global vars.
5637         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5638         don't pass it back, use lto_streamer_cache_append.
5639         (lto_register_var_decl_in_symtab): Use unsigned index.
5640         (lto_register_function_decl_in_symtab): Likewise.
5641         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5642         index.
5643         (lto_get_builtin_tree): Don't read index, use
5644         lto_streamer_cache_append.
5645         (lto_read_tree): Adjust call to lto_materialize_tree.
5646
5647         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5648         don't use function calls in arguments to MIN.
5649
5650         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5651         twice.
5652
5653         * gimple.c (gimple_type_leader_entry): Mark deletable.
5654
5655 2011-04-03  Alan Modra  <amodra@gmail.com>
5656
5657         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5658
5659 2011-04-03  Michael Matz  <matz@suse.de>
5660
5661         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5662         an integer.
5663         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5664
5665 2011-04-03  Michael Matz  <matz@suse.de>
5666
5667         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5668         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5669         without function context.
5670         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5671         current_function_decl and cfun.
5672
5673 2011-04-03  Michael Matz  <matz@suse.de>
5674
5675         * tree.c (decl_init_priority_insert): Don't create entry for
5676         default priority.
5677         (decl_fini_priority_insert): Ditto.
5678         (fields_compatible_p, find_compatible_field): Remove.
5679         * tree.h (fields_compatible_p, find_compatible_field): Remove.
5680         * gimple.c (gimple_compare_field_offset): Adjust block comment.
5681
5682 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5683
5684         * combine.c (try_combine): Remove useless local variable.
5685
5686 2011-04-03  Richard Guenther  <rguenther@suse.de>
5687             Ira Rosen  <ira.rosen@linaro.org>
5688
5689         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5690         non-variable offsets and compare the remaining bases of the two
5691         accesses instead of looking for exact same data-ref.
5692
5693 2011-04-02  Kai Tietz  <ktietz@redhat.com>
5694
5695         PR target/48416
5696         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5697
5698         * i386.c (ix86_is_msabi_thiscall): New helper function.
5699         (ix86_is_type_thiscall): New helper function.
5700         (ix86_comp_type_attributes): Handle thiscall for method-functions
5701         special.
5702         (init_cumulative_args): Likewise.
5703         (find_drap_reg): Likewise.
5704         (ix86_static_chain): Likewise.
5705         (x86_this_parameter): Likewise.
5706         (x86_output_mi_thunk): Likewise.
5707
5708 2011-04-01  Olivier Hainque  <hainque@adacore.com>
5709             Nicolas Setton  <setton@adacore.com>
5710             Eric Botcazou  <ebotcazou@adacore.com>
5711
5712         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5713         (add_gnat_descriptive_type_attribute): New function.
5714         (gen_array_type_die): Call it.
5715         (gen_enumeration_type_die): Likewise.
5716         (gen_struct_or_union_type_die): Likewise.
5717         (modified_type_die): Likewise.
5718         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5719         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5720         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5721
5722 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5723
5724         PR bootstrap/48148
5725         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5726         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5727
5728         Revert:
5729         2011-03-17  Richard Guenther  <rguenther@suse.de>
5730
5731         PR bootstrap/48148
5732         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5733         origin for decls in other ltrans units.
5734         (input_varpool_node): Likewise.
5735
5736 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5737
5738         PR middle-end/48335
5739         * expr.c (expand_assignment): Handle all possibilities
5740         if TO_RTX is CONCAT.
5741         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5742         (store_split_bit_field): If SUBREG_REG (op0) or
5743         op0 itself has smaller mode than word, return it
5744         for offset 0 and const0_rtx for out-of-bounds stores.
5745         If word is const0_rtx, skip it.
5746
5747 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
5748
5749         * config/h8300/h8300.c (print_operand_address): Rename to...
5750         (h8300_print_operand_address): ...this. Make static. Adjust comments.
5751         Call h8300_print_operand and h8300_print_operand_address instead of
5752         print_operand and print_operand_address. Declare.
5753         (print_operand): Renake to...
5754         (h8300_print_operand): ...this. Make static. Adjust comments.
5755         Call h8300_print_operand instead of print_operand. Declare.
5756         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5757         (h8300_register_move_cost): Likewise.
5758         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5759         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5760         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5761         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5762         * config/h8300/h8300-protos.h (print_operand): Delete.
5763         (print_operand_address): Delete.
5764
5765 2011-04-01  Richard Henderson  <rth@redhat.com>
5766
5767         PR 48400
5768         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5769         in strict mode before dwarf4.  Re-order tests to early out
5770         before switching sections.
5771
5772 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
5773
5774         * config/h8300/constraints.md: New file.
5775         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
5776         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5777         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5778         * config/h8300/predicates.md (bit_operand): Likewise.
5779         (incdec_operand): Use satisfies_constraint_M and
5780         satisfies_constraint_O.  Don't use C code block.
5781         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5782         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5783         (compute_mov_length): Use satisfies_constraint_G.
5784         (fix_bit_operand): Use satisfies_constraint_U.
5785         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5786         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5787         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5788         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5789         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5790         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5791         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5792         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5793         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5794         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5795         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5796         (EXTRA_MEMORY_CONSTRAINT): Delete.
5797
5798 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
5799             Michael Meissner  <meissner@linux.vnet.ibm.com>
5800
5801         PR target/48262
5802         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5803         operands, as per the specifications.
5804
5805         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5806         (vec_extract_evenv4sf): Ditto.
5807         (vec_extract_evenv8hi): Ditto.
5808         (vec_extract_evenv16qi): Ditto.
5809         (vec_extract_oddv4si): Ditto.
5810
5811 2011-03-31  Mark Wielaard  <mjw@redhat.com>
5812
5813         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5814         high_pc attribute if the CU has no associated code. Only output
5815         DW_AT_entry_pc for CU if not generating strict dwarf and
5816         dwarf_version < 4.
5817
5818 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
5819
5820         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5821         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5822         out of ...
5823         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5824         * final.c (final_start_function): Call the new function rather
5825         than using a NULL argument for dwarf2out_frame_debug.
5826
5827         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5828         that contains the prologue.
5829
5830         * haifa-sched.c (queue_insn): New arg REASON.  All callers
5831         changed.  Print it in debugging output.
5832
5833         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5834
5835         * sched-ebb.c (begin_schedule_ready): Remove second argument.
5836         Split most of the code into...
5837         (begin_move_insn): ... here.  New function.
5838         (ebb_sched_info): Add a pointer to it.
5839         * haifa-sched.c (scheduled_insns): New static variable.
5840         (sched_extend_ready_list): Allocate it.
5841         (schedule_block): Use it to record the order of scheduled insns.
5842         Perform RTL changes to move insns only after all scheduling
5843         decisions have been made.
5844         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5845         begin_move_insn field.
5846         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5847         * sched-int.h (struct haifa_sched_info): Remove second argument
5848         from begin_schedule_ready hook.  Add new member begin_move_insn.
5849         * sched-rgn.c (begin_schedule_ready): Remove second argument.
5850         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5851
5852         * haifa-sched.c (prune_ready_list): New function, broken out of
5853         schedule_block.
5854         (schedule_block): Use it.
5855
5856 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5857
5858         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5859
5860 2011-04-01  Kai Tietz  <ktietz@redhat.com>
5861
5862         * config.gcc (*-*-mingw*): Allow as option the
5863         posix threading model.
5864         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
5865         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5866         definition.
5867         (CPP_SPEC): Add pthread/no-pthread handling.
5868         (LIB_SPEC): Likewise.
5869         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5870         (LIB_SPEC): Likewise.
5871         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5872         flag to pass -pthread option for shared libgcc build.
5873         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5874         for shared libgcc build.
5875         * config/i386/t-mingw-pthread: New file.
5876         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5877         New define to enable use of library pthread by default.
5878         * config/i386/mingw.opt (pthread): New driver option.
5879         (no-pthread): New driver option.
5880         * config/i386/cygming.opt: Make sure trailing empty line is retained.
5881         * config/i386/mingw-w64.opt: Likewise.
5882
5883 2011-04-01  Gary Funck <gary@intrepid.com>
5884
5885         * c-decl.c (grokdeclarator): Fix formatting.
5886
5887 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5888
5889         * expr.c (emit_block_move_via_movmem): Use n_generator_args
5890         instead of n_operands.
5891         (set_storage_via_setmem): Likewise.
5892         * optabs.c (maybe_gen_insn): Likewise.
5893         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5894         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5895         (mips_expand_builtin_direct): Likewise.
5896         * config/spu/spu.c (expand_builtin_args): Likewise.
5897
5898 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5899
5900         * recog.h (insn_data_d): Add n_generator_args.
5901         * genoutput.c (data): Likewise.
5902         (output_insn_data): Print it.
5903         (max_opno, num_dups): Delete.
5904         (scan_operands): Just fill in "d->operand[...]".
5905         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5906
5907 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5908
5909         * gensupport.h (pattern_stats): New structure.
5910         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5911         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5912         (max_operand_1, max_operand_vec): Delete.
5913         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5914
5915 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
5916
5917         * emit-rtl.c (emit_pattern_after_setloc): New function.
5918         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5919         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5920         (emit_pattern_after): New function.
5921         (emit_insn_after, emit_jump_insn_after): Call it.
5922         (emit_call_insn_after, emit_debug_insn_after): Likewise.
5923         (emit_pattern_before_setloc): New function.
5924         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5925         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5926         Likewise.
5927         (emit_pattern_before): New function.
5928         (emit_insn_before, emit_jump_insn_before): Call it.
5929         (emit_call_insn_before, emit_debug_insn_before): Likewise.
5930
5931 2011-03-31  Richard Henderson  <rth@redhat.com>
5932
5933         * dwarf2out.c (dw_separate_line_info_ref): Remove.
5934         (dw_separate_line_info_entry): Remove.
5935         (enum dw_line_info_opcode): New.
5936         (dw_line_info_entry): Use it.
5937         (dw_line_info_table, dw_line_info_table_p): New.
5938         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5939         (line_info_table, line_info_label_num): Remove.
5940         (line_info_table_in_use): Remove.
5941         (separate_line_info_table): Remove.
5942         (separate_line_info_table_allocated): Remove.
5943         (separate_line_info_table_in_use): Remove.
5944         (LINE_INFO_TABLE_INCREMENT): Remove.
5945         (line_info_label_num): New.
5946         (cur_line_info_table): New.
5947         (text_section_line_info, cold_text_section_line_info): New.
5948         (separate_line_info): New.
5949         (SEPARATE_LINE_CODE_LABEL): Remove.
5950         (print_dwarf_line_table): Remove.
5951         (debug_dwarf): Don't dump it.
5952         (output_one_line_info_table): New.
5953         (output_line_info): Use it.
5954         (new_line_info_table): New.
5955         (set_cur_line_info_table): New.
5956         (dwarf2out_switch_text_section): Use it.
5957         (dwarf2out_begin_function): Likewise.
5958         (push_dw_line_info_entry): New.
5959         (dwarf2out_source_line): Rewrite for new line info tables.
5960         (dwarf2out_init): Remove dead initailizations.
5961
5962 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5963
5964         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
5965         various flags.
5966         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5967         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5968         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5969         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5970         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5971         * opt-functions.awk (flag_init, switch_bit_fields): New.
5972         (switch_flags): Don't handle flags moved to bit-fields.  Don't
5973         generate CL_MISSING_OK or CL_SAVE.
5974         * optc-gen.awk: Update to generate bit-field output as well as
5975         flags field.
5976         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5977         bit-field instead of CL_REJECT_DRIVER flag.
5978         * opts-common.c (generate_canonical_option,
5979         decode_cmdline_option): Use bit-fields instead of CL_* flags.
5980         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5981         instead of CL_REJECT_NEGATIVE flag.
5982         * toplev.c (print_switch_values): Use cl_report bit-field instead
5983         of CL_REPORT flag.
5984
5985 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5986
5987         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5988         a zero minimum index only if it is redundant.
5989
5990 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5991
5992         PR rtl-optimization/48381
5993         * ira-color.c (assign_hard_reg): Use hard reg set intersection
5994         instead of ira_class_hard_reg_index for calculating conflicting
5995         hard registers.
5996
5997 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
5998
5999         * cprop.c: Clean up hash table building.
6000         (reg_avail_info): Remove.
6001         (oprs_available_p): Remove.
6002         (record_last_reg_set_info): Remove.
6003         (record_last_set_info): Remove.
6004         (reg_available_p): New function.
6005         (gcse_constant_p): Do not treat unfolded conditions as constants.
6006         (make_set_regs_unavailable): New function.
6007         (hash_scan_set): Simplify with new reg_available_p.
6008         (compute_hash_table_work): Traverse insns stream only once.
6009         Do not compute reg_avail_info. Traverse insns in reverse order.
6010         Record implicit sets after recording explicit sets from the block.
6011
6012 2011-03-31  Michael Matz  <matz@suse.de>
6013
6014         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6015
6016 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6017
6018         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6019         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6020         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6021         (h8300_mode_dependent_address_p): New function.
6022         (h8300_get_index): Make static.
6023
6024 2011-03-31  Jeff Law  <law@redhat.com>
6025
6026         * reload1.c (elimination_effects): Fix typo in recent change.
6027
6028         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6029         typo potentially leading to null pointer dereference.
6030
6031         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6032         (setup_save_areas): Corresponding changes to avoid useless
6033         assignments.
6034
6035         * jump.c (reversed_comparison_code_parts): Avoid successive return
6036         statements when REVERSE_CONDITION is defined.
6037
6038         * expr.c (expand_assignment): Avoid useless assignments.
6039         (expand_expr_real_1): Likewise.
6040         (expand_expr_real_2): Avoid useless statements.
6041
6042         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6043
6044         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6045
6046         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6047         statements.
6048
6049         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6050
6051 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6052
6053         PR target/47109
6054         * doc/tm.texi.in (TARGET_VERSION): Remove.
6055         * doc/tm.texi: Regenerate.
6056         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6057         * collect2.c (main): Don't use TARGET_VERSION.
6058         * mips-tdump.c (main): Don't use TARGET_VERSION.
6059         * mips-tfile.c (main): Don't use TARGET_VERSION.
6060         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6061         * config/rs6000/vxworksae.h: Remove.
6062         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6063         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6064         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6065         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6066         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6067         * config/arm/arm.h (TARGET_VERSION): Remove.
6068         * config/arm/coff.h (TARGET_VERSION): Remove.
6069         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6070         * config/arm/elf.h (TARGET_VERSION): Remove.
6071         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6072         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6073         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6074         * config/arm/pe.h (TARGET_VERSION): Remove.
6075         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6076         * config/arm/semi.h (TARGET_VERSION): Remove.
6077         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6078         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6079         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6080         * config/avr/avr.h (TARGET_VERSION): Remove.
6081         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6082         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6083         * config/frv/frv.h (TARGET_VERSION): Remove.
6084         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6085         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6086         * config/i386/darwin.h (TARGET_VERSION): Remove.
6087         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6088         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6089         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6090         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6091         * config/i386/gnu.h (TARGET_VERSION): Remove.
6092         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6093         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6094         * config/i386/linux.h (TARGET_VERSION): Remove.
6095         * config/i386/linux64.h (TARGET_VERSION): Remove.
6096         * config/i386/lynx.h (TARGET_VERSION): Remove.
6097         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6098         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6099         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6100         * config/i386/netware.h (TARGET_VERSION): Remove.
6101         * config/i386/nto.h (TARGET_VERSION): Remove.
6102         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6103         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6104         * config/ia64/elf.h (TARGET_VERSION): Remove.
6105         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6106         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6107         * config/ia64/linux.h (TARGET_VERSION): Remove.
6108         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6109         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6110         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6111         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6112         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6113         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6114         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6115         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6116         * config/m68k/linux.h (TARGET_VERSION): Remove.
6117         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6118         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6119         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6120         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6121         * config/mep/mep.h (TARGET_VERSION): Remove.
6122         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6123         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6124         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6125         * config/mips/linux.h (TARGET_VERSION): Remove.
6126         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6127         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6128         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6129         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6130         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6131         * config/pa/pa.h (TARGET_VERSION): Remove.
6132         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6133         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6134         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6135         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6136         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6137         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6138         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6139         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6140         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6141         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6142         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6143         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6144         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6145         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6146         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6147         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6148         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6149         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6150         * config/s390/linux.h (TARGET_VERSION): Remove.
6151         * config/s390/s390.h (TARGET_VERSION): Remove.
6152         * config/s390/tpf.h (TARGET_VERSION): Remove.
6153         * config/score/score.h (TARGET_VERSION): Remove.
6154         * config/sh/linux.h (TARGET_VERSION): Remove.
6155         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6156         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6157         * config/sh/sh.h (TARGET_VERSION): Remove.
6158         * config/sh/sh64.h (TARGET_VERSION): Remove.
6159         * config/sh/superh.h (TARGET_VERSION): Remove.
6160         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6161         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6162         * config/sparc/linux.h (TARGET_VERSION): Remove.
6163         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6164         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6165         TARGET_NAME32, TARGET_NAME): Remove.
6166         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6167         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6168         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6169         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6170         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6171         * config/spu/spu.h (TARGET_VERSION): Remove.
6172         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6173         * config/v850/v850.h (TARGET_VERSION): Remove.
6174         * config/vax/linux.h (TARGET_VERSION): Remove.
6175         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6176         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6177         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6178
6179 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6180
6181         PR target/48142
6182         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6183         frame-related from frame-unrelated adjustments to the stack pointer.
6184
6185 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6186
6187         * common.opt (fdebug-types-section): Move earlier.
6188         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6189
6190 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6191
6192         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6193         var.
6194
6195 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6196
6197         * tree.h (CASE_CHAIN): Define.
6198         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6199         (gimple_redirect_edge_and_branch): Likewise.
6200
6201 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6202
6203         PR middle-end/48367
6204         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6205         calculation.
6206
6207 2011-03-30  Jeff Law  <law@redhat.com>
6208
6209         * PR bootstrap/48371
6210         * reload1.c (reload): Fix botch in last change.
6211
6212         * reload.h (struct reload): Fix typo introduced in last change.
6213
6214 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6215
6216         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6217         Undocumented.  Remove help text.
6218         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6219         -mhard-float.
6220
6221 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6222
6223         * doc/options.texi (NegativeAlias): Document.
6224         (Alias): Mention NegativeAlias.
6225         * opt-functions.awk: Handle NegativeAlias.
6226         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6227         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6228         * opts.h (CL_NEGATIVE_ALIAS): Define.
6229         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6230         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6231         OPT_mspe_.
6232         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6233         Alias entries.
6234         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6235         mno-spe and mno-isel instead of mspe=no and -misel=no.
6236
6237 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6238
6239         * common.opt (fdebug-types-section): New flag.
6240         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6241         * dwarf2out.c (use_debug_types): New define.
6242         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6243         (print_die): Guard output of type unit signatures using
6244         use_debug_types.
6245         (build_abbrev_table): Replace assert of dwarf_version >= 4
6246         with assert on use_debug_types.
6247         (size_of_die): Likewise.
6248         (unmark_dies): Likewise.
6249         (value_format): Decide AT_ref_external form on use_debug_types.
6250         (output_die): Replace dwarf_version version check guard with
6251         use_debug_types where appropriate.
6252         (modified_type_die): Likewise.
6253         (gen_reference_type_die): Likewise.
6254         (dwarf2out_start_source_file): Likewise.
6255         (dwarf2out_end_source_file): Likewise.
6256         (prune_unused_types_walk_attribs): Likewise.
6257         (dwarf2out_finish): Likewise.
6258
6259 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6260
6261         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6262
6263 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6264
6265         PR rtl-optimization/48332
6266         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6267         mode of input operand N and modeN to its actual mode.
6268
6269 2011-03-30  Jeff Law  <law@redhat.com>
6270
6271         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6272         define accessor macro.
6273         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6274         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6275         (reg_equiv_init): Likewise.
6276         (reg_equivs_size): New variable.
6277         (reg_equiv_init_size): Remove.
6278         (allocate_initial_values): Move prototype to here from....
6279         * integrate.h (allocate_initial_values): Remove prototype.
6280         * integrate.c: Include reload.h.
6281         (allocate_initial_values): Corresponding changes.
6282         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6283         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6284         (update_equiv_regs): Corresponding changes.
6285         (ira): Corresponding changes.
6286         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6287         (push_secondary_reload): Corresponding changes.
6288         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6289         (make_memloc, find_reloads_address): Corresponding changes.
6290         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6291         (find_reloads_address_1): Corresponding changes.
6292         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6293         (refers_to_regno_for_reload_p): Corresponding changes.
6294         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6295         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6296         * reload1.c: Include ggc.h.
6297         (grow_reg_equivs): New function.
6298         (replace_pseudos_in, reload): Corresponding changes.
6299         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6300         (eliminate_regs_1, elimination_effects): Corresponding changes.
6301         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6302         (delete_output_reload): Likewise.
6303         * caller-save.c (mark_referenced_regs): Corresponding changes.
6304         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6305         * frv/predicates.md (frv_load_operand): Corresponding changes.
6306         * microblaze/microblaze.c (double_memory_operand): Corresponding
6307         changes.
6308         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6309         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6310         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6311         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6312         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6313         changes.
6314         * pa/pa.c (emit_move_sequence): Corresponding changes.
6315         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6316
6317 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6318
6319         PR target/47551
6320         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6321         structure modes.  Don't check neon_vector_mem_operand for
6322         vector or structure modes.
6323
6324 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6325             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6326
6327         PR target/43590
6328         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6329         operand 1 and reshuffle the operands to match.
6330         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6331
6332 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6333
6334         PR driver/48208
6335         * config/c.opt (F): Added 'Driver' to -F option.
6336
6337         PR driver/48260
6338         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6339           handler function.
6340         * config/darwin.opt: Added '-arch' option.
6341
6342 2011-03-30  Nick Clifton  <nickc@redhat.com>
6343
6344         * config/rx/rx.md: Add peepholes and patterns to combine
6345         extending loads and simple arithmetic instructions.
6346         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6347         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6348         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6349         modes to use pre-decrement and post-increment addressing.
6350         (rx_is_restricted_memory_address): Add range checking of REG+INT
6351         addresses.
6352         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6353         (rx_memory_move_cost): Adjust cost of stores.
6354         (rx_adjust_insn_length): New function.
6355
6356 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6357
6358         PR c/48305
6359         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6360         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6361         matching arg00/arg01 types.
6362
6363 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6364
6365         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6366         last_location to UNKNOWN_LOCATION.
6367
6368 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6369
6370         PR target/48349
6371         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6372         FLOAT_SSE_REGS.
6373
6374 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6375             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6376
6377         PR bootstrap/48337
6378         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6379         Init(PROCESSOR_V7).
6380         (sparc_cpu): Likewise.
6381         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6382         PROCESSOR_V7.
6383
6384 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6385
6386         PR target/48336
6387         PR middle-end/48342
6388         PR rtl-optimization/48345
6389         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6390         hard regs for given mode from profitable regs when doing secondary
6391         allocation.
6392
6393 2011-03-29  Jeff Law  <law@redhat.com>
6394
6395         PR bootstrap/48327
6396         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6397         do_not_duplicate field.
6398         (lookup_redirection_data): Corresponding changes.
6399         (create_duplicates): Always create a template block.
6400         (redirect_edges): Remove code which reused the original block
6401         when it was going to become unreachable code.
6402         (thread_block): Don't set do_not_duplicate field.
6403
6404 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6405
6406         * lto-opts.c (register_user_option_p, lto_register_user_option):
6407         Make type argument unsigned.
6408         * lto-streamer.h (lto_register_user_option): Make type argument
6409         unsigned.
6410         * opth-gen.awk: Make CL_* macros unsigned.
6411         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6412         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6413         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6414         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6415         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6416         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6417         (find_opt): Make lang_mask argument unsigned.
6418
6419 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6420
6421         PR rtl-optimization/48331
6422         PR rtl-optimization/48334
6423         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6424         for any used algorithm.
6425
6426 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6427
6428         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6429         to parent_max.
6430
6431 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6432
6433         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6434         (alpha_option_override): Don't set alpha_sr_alias_set.
6435         (emit_frame_store_1): Use gen_frame_mem rather than calling
6436         set_mem_alias_set.
6437         (alpha_expand_epilogue): Ditto.
6438
6439 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6440
6441         PR tree-optimization/48290
6442         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6443         vectorization, check that relevant phis in the basic block after
6444         the inner loop are really inner loop's exit phis.
6445
6446 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6447
6448         PR debug/48190
6449         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6450         (cached_dw_loc_list_def): New structure.
6451         (cached_dw_loc_list): New typedef.
6452         (cached_dw_loc_list_table): New variable.
6453         (cached_dw_loc_list_table_hash): New function.
6454         (cached_dw_loc_list_table_eq): Likewise.
6455         (add_location_or_const_value_attribute): Take a bool cache_p.
6456         Cache the list when the parameter is true.
6457         (gen_formal_parameter_die): Update caller.
6458         (gen_variable_die): Likewise.
6459         (dwarf2out_finish): Likewise.
6460         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6461         while generating debug info for the decl.
6462         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6463         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6464         (resolve_addr): Cache the result of resolving a chain of
6465         location lists.
6466
6467 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6468
6469         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6470         conflict object hard regset nodes have intersecting hard reg sets.
6471
6472         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6473         after regstat_init_n_sets_and_refs.
6474
6475         * ira.c: Add more comments at the top.
6476         (setup_stack_reg_pressure_class, setup_pressure_classes):
6477         Add comments how we compute the register pressure classes.
6478         (setup_allocno_and_important_classes): Add more comments.
6479         (setup_class_translate_array, reorder_important_classes)
6480         (setup_reg_class_relations): Add comments.
6481
6482         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6483         start of the file.
6484
6485         * ira-color.c: Add 2011 to the Copyright line.
6486         (assign_hard_reg):  Add more comments.
6487         (improve_allocation): Ditto.
6488
6489         * ira-costs.c: Add 2011 to the Copyright line.
6490         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6491         comments.
6492         (setup_regno_cost_classes_by_mode): Ditto.
6493
6494         Initial patches from ira-improv branch:
6495
6496         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6497
6498         * ira-build.c (ira_create_object): Remove initialization of
6499         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6500         (ira_create_allocno): Remove initialization of
6501         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6502         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6503         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6504         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6505         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6506         Initialize ALLOCNO_ADD_DATA.
6507         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6508         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6509         ALLOCNO_REG.
6510         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6511         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6512
6513         * ira.c (ira_reallocate): Remove.
6514         (setup_pressure_classes): Call
6515         ira_init_register_move_cost_if_necessary.  Use
6516         ira_register_move_cost instead of ira_get_register_move_cost.
6517         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6518         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6519
6520         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6521         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6522         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6523         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6524         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6525         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6526         Fix formatting.
6527         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6528         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6529         (struct allocno_color_data): New.
6530         (allocno_color_data_t): New typedef.
6531         (allocno_color_data): New definition.
6532         (ALLOCNO_COLOR_DATA): New macro.
6533         (struct object_color_data): New.
6534         (object_color_data_t): New typedef.
6535         (object_color_data): New definition.
6536         (OBJECT_COLOR_DATA): New macro.
6537         (update_copy_costs, calculate_allocno_spill_cost): Call
6538         ira_init_register_move_cost_if_necessary.  Use
6539         ira_register_move_cost instead of ira_get_register_move_cost.
6540         (move_spill_restore, update_curr_costs): Ditto.
6541         (allocno_spill_priority): Make it inline.
6542         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6543         (struct coalesce_data, coalesce_data_t): New.
6544         (allocno_coalesce_data): New definition.
6545         (ALLOCNO_COALESCE_DATA): New macro.
6546         (merge_allocnos, coalesced_allocno_conflict_p): Use
6547         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6548         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6549         (coalesce_allocnos): Ditto.
6550         (setup_coalesced_allocno_costs_and_nums): Ditto.
6551         (collect_spilled_coalesced_allocnos): Ditto.
6552         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6553         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6554         (coalesce_spill_slots): Ditto.
6555         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6556         free allocno_coalesce_data.
6557
6558         * ira-conflicts.c: Fix formatting.
6559         (process_regs_for_copy): Call
6560         ira_init_register_move_cost_if_necessary.  Use
6561         ira_register_move_cost instead of ira_get_register_move_cost.
6562         (build_object_conflicts): Optimize.
6563
6564         * ira-costs.c (record_reg_classes): Optimize.  Call
6565         ira_init_register_move_cost_if_necessary.  Use
6566         ira_register_move_cost, ira_may_move_in_cost, and
6567         ira_may_move_out_cost instead of ira_get_register_move_cost and
6568         ira_get_may_move_cost.
6569         (record_address_regs): Ditto.
6570         (scan_one_insn): Optimize.
6571         (find_costs_and_classes): Optimize.
6572         (process_bb_node_for_hard_reg_moves): Call
6573         ira_init_register_move_cost_if_necessary.  Use
6574         ira_register_move_cost instead of ira_get_register_move_cost.
6575
6576         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6577         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6578         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6579         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6580         definitions.
6581         (ira_initiate_emit_data, ira_finish_emit_data)
6582         (create_new_allocno): New functions.
6583         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6584         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6585         Use ira_register_move_cost instead of ira_get_register_move_cost.
6586
6587         * ira-int.h: Fix some comments.
6588         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6589         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6590         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6591         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6592         add_data.
6593         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6594         bitfield after mode.  Make hard_regno a short int.  Make
6595         hard_regno short.  Remove first_coalesced_allocno and
6596         next_coalesced_allocno.  Move mem_optimized_dest_p,
6597         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6598         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6599         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6600         temp, colorable_p.  Add new member add_data.
6601         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6602         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6603         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6604         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6605         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6606         (ALLOCNO_ADD_DATA): New macro.
6607         (ira_emit_data_t): New typedef.
6608         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6609         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6610         from struct ira_allocno.
6611         (ALLOCNO_EMIT_DATA): New macro.
6612         (ira_allocno_emit_data, allocno_emit_reg): New.
6613         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6614         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6615         (OBJECT_ADD_DATA): New macro.
6616         (ira_reallocate): Remove.
6617         (ira_initiate_emit_data, ira_finish_emit_data): New.
6618         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6619         (ira_init_register_move_cost_if_necessary): New.
6620         (ira_object_conflict_iter_next): Merge into
6621         ira_object_conflict_iter_cond.
6622         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6623
6624         * ira-live.c (process_single_reg_class_operands): Call
6625         ira_init_register_move_cost_if_necessary.  Use
6626         ira_register_move_cost instead of ira_get_register_move_cost.
6627
6628         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6629
6630         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6631
6632         * ira-costs.c: Fix formatting.
6633         (cost_classes, cost_classes_num): Remove.
6634         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6635         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6636         (cost_classes_del, cost_classes_htab): New.
6637         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6638         (initiate_regno_cost_classes, setup_cost_classes): New.
6639         (setup_regno_cost_classes_by_aclass): New.
6640         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6641         (record_reg_classes): Use regno_cost_classes instead of
6642         cost_classes.  Move checking opposite operand up.
6643         (record_address_regs): Use regno_cost_classes
6644         instead of cost_classes.
6645         (scan_one_insn): Ditto.  Use always general register.
6646         (print_allocno_costs): Use regno_cost_classes instead of
6647         cost_classes.
6648         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6649         (find_costs_and_classes): Set up cost classes for each registers.
6650         Use also their mode for this.  Use regno_cost_classes instead of
6651         cost_classes.
6652         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6653         cost_classes.
6654         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6655         (ira_costs, ira_set_pseudo_classes): Call
6656         initiate_regno_cost_classes and finish_regno_cost_classes.
6657
6658         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6659
6660         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6661
6662         * target.def (ira_cover_classes): Remove.
6663
6664         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6665
6666         * doc/tm.texi.in: Ditto.
6667
6668         * ira-conflicts.c: Remove mentioning cover classes from the file.
6669         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6670         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
6671
6672         * targhooks.c (default_ira_cover_classes): Remove.
6673
6674         * targhooks.h (default_ira_cover_classes): Ditto.
6675
6676         * haifa-sched.c: Remove mentioning cover classes from the file.
6677         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6678         ira_pressure_classes and ira_pressure_classes_num instead of
6679         ira_reg_class_cover_size and ira_reg_class_cover.  Use
6680         sched_regno_pressure_class instead of sched_regno_cover_class.
6681         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6682         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6683
6684         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
6685         classes from the file.
6686         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6687         (struct object_hard_regs, struct object_hard_regs_node): New.
6688         (struct ira_object): New members profitable_hard_regs,
6689         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6690         (struct ira_allocno): Rename cover_class to aclass.  Rename
6691         cover_class_cost and updated_cover_class_cost to class_cost and
6692         updated_class_cost.  Remove splay_removed_p and
6693         left_conflict_size.  Add new members colorable_p.
6694         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6695         (ALLOCNO_COLORABLE_P): New macro.
6696         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6697         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6698         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6699         (OBJECT_...): Rename parameter C to O.
6700         (OBJECT_PROFITABLE_HARD_REGS): New macro.
6701         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6702         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6703         (struct target_ira_int): New members x_ira_max_memory_move_cost,
6704         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6705         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6706         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6707         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
6708         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
6709         x_ira_reg_class_subunion.
6710         (ira_max_memory_move_cost, ira_max_register_move_cost)
6711         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6712         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6713         (ira_important_class_nums, ira_reg_class_superunion): New macros.
6714         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6715         (ira_reg_class_union): Rename to ira_reg_class_subunion.
6716         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6717         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6718         (ira_tune_allocno_costs_and_cover_classes): Rename to
6719         ira_tune_allocno_costs.
6720         (ira_debug_hard_regs_forest): New.
6721         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6722         (ira_object_conflict_iter_next): Fix comments.
6723         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6724         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6725         cover_class to aclass.
6726         (ira_allocate_and_accumulate_costs): Ditto.
6727         (ira_allocate_and_set_or_copy_costs): Ditto.
6728
6729         * opts.c (decode_options): Remove ira_cover_class check.
6730
6731         * ira-color.c: Remove mentioning cover classes from the file.  Use
6732         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6733         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6734         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6735         (splay-tree.h): Remove include.
6736         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6737         before copy_freq_compare_func.
6738         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6739         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6740         New definitions.
6741         (hard_regs_roots, hard_regs_node_vec): Ditto.
6742         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6743         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6744         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6745         (create_new_object_hard_regs_node): Ditto.
6746         (add_new_object_hard_regs_node_to_forest): Ditto.
6747         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6748         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6749         Ditto.
6750         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6751         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6752         (remove_unused_object_hard_regs_nodes): Ditto.
6753         (enumerate_object_hard_regs_nodes): Ditto.
6754         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6755         (object_hard_regs_subnode_t): Ditto.
6756         (struct object_hard_regs_subnode): Ditto.
6757         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6758         (setup_object_hard_regs_subnode_index): Ditto.
6759         (get_object_hard_regs_subnodes_num): Ditto.
6760         (form_object_hard_regs_nodes_forest): Ditto.
6761         (finish_object_hard_regs_nodes_tree): Ditto.
6762         (finish_object_hard_regs_nodes_forest): Ditto.
6763         (allocnos_have_intersected_live_ranges_p): Rename to
6764         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6765         (pseudos_have_intersected_live_ranges_p): Rename to
6766         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6767         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6768         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6769         (update_copy_costs): Remove assert.  Skip cost update if the hard
6770         reg does not belong the class.
6771         (assign_hard_reg): Process only profitable hard regs.
6772         (uncolorable_allocnos_num): Make it scalar.
6773         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6774         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6775         and ira_reg_class_max_nregs.
6776         (bucket_allocno_compare_func): Check frequency first.
6777         (sort_bucket): Add compare function as a parameter.
6778         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6779         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6780         (push_allocno_to_stack): Rewrite for checking new allocno
6781         colorability.
6782         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
6783         (push_only_colorable): Pass new parameter to sort_bucket.
6784         (push_allocno_to_spill): Remove.
6785         (allocno_spill_priority_compare): Make it inline and rewrite.
6786         (splay_tree_allocate, splay_tree_free): Remove.
6787         (allocno_spill_sort_compare): New function.
6788         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
6789         build and use splay tree.  Choose first allocno in uncolorable
6790         allocno bucket to spill.  Remove setting spill cost.
6791         (all_conflicting_hard_regs): Remove.
6792         (setup_allocno_available_regs_num): Check only profitable hard
6793         regs.  Print info about hard regs nodes.
6794         (setup_allocno_left_conflicts_size): Remove.
6795         (put_allocno_into_bucket): Don't call
6796         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
6797         (improve_allocation): New.
6798         (color_allocnos): Call setup_profitable_hard_regs,
6799         form_object_hard_regs_nodes_forest, improve_allocation,
6800         finish_object_hard_regs_nodes_forest.  Setup spill cost.
6801         (print_loop_title): Use pressure classes.
6802         (color_allocnso): Ditto.
6803         (do_coloring): Remove allocation and freeing splay_tree_node_pool
6804         and allocnos_for_spilling.
6805         (ira_sort_regnos_for_alter_reg): Don't setup members
6806         {first,next}_coalesced_allocno.
6807         (color): Remove allocating and freeing removed_splay_allocno_vec.
6808         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6809         prohibited_class_mode_regs.
6810
6811         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
6812         formatting.
6813         (update_allocno_pressure_excess_length): Use pressure classes.
6814         (inc_register_pressure, dec_register_pressure): Check for pressure
6815         class.
6816         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6817         pressure class.  Use ira_reg_class_nregs instead of
6818         ira_reg_class_max_nregs.
6819         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6820         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6821         (single_reg_class): Use ira_reg_class_nregs instead of
6822         ira_reg_class_max_nregs.
6823         (process_bb_node_lives): Use pressure classes.
6824
6825         * ira-emit.c: Remove mentioning cover classes from the file.  Use
6826         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6827         (change_loop): Use pressure classes.
6828         (modify_move_list): Call ira_set_allocno_class instead of
6829         ira_set_allocno_cover_class.
6830
6831         * ira-build.c: Remove mentioning cover classes from the file.  Use
6832         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6833         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
6834         ALLOCNO_UPDATED_CLASS_COST instead of
6835         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6836         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6837         (ira_create_allocno): Remove initialization of
6838         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
6839         ALLOCNO_COLORABLE_P.
6840         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6841         Update conflict regs for the objects.
6842         (create_cap_allocno): Remove assert.  Don't propagate
6843         ALLOCNO_AVAILABLE_REGS_NUM.
6844         (ira_free_allocno_costs): New function.
6845         (finish_allocno): Change a part of code into call of
6846         ira_free_allocno_costs.
6847         (low_pressure_loop_node_p): Use pressure classes.
6848         (object_range_compare_func): Don't compare classes.
6849         (setup_min_max_conflict_allocno_ids): Ditto.
6850
6851         * loop-invariant.c: Remove mentioning cover classes from the file.
6852         Use ira_pressure_classes and ira_pressure_classes_num instead of
6853         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
6854         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6855         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6856         Use reg_allocno_class instead of reg_cover_class.
6857         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6858         STACK_REG_COVER_CLASS.
6859         (get_regno_cover_class): Rename to get_regno_pressure_class.
6860         (move_loop_invariants): Initialize and finalize regstat.
6861
6862         * ira.c: Remove mentioning cover classes from the file.  Add
6863         comments about coloring without cover classes.  Use ALLOCNO_CLASS
6864         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6865         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6866         setup_class_subset_and_memory_move_costs.
6867         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6868         (setup_cover_and_important_classes): Rename to
6869         setup_allocno_and_important_classes.
6870         (setup_class_translate_array): New.
6871         (setup_class_translate): Call it for allocno and pressure classes.
6872         (cover_class_order): Rename to allocno_class_order.
6873         (comp_reg_classes_func): Use ira_allocno_class_translate instead
6874         of ira_class_translate.
6875         (reorder_important_classes): Set up ira_important_class_nums.
6876         (setup_reg_class_relations): Set up ira_reg_class_superunion.
6877         (print_class_cover): Rename to print_classes.  Add parameter.
6878         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6879         Print pressure classes too.
6880         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
6881         setup_reg_subclasses.
6882         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6883         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6884         (setup_prohibited_class_mode_regs): Use
6885         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6886         (clarify_prohibited_class_mode_regs): New function.
6887         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6888         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6889         (ira_init_once): Initialize them.
6890         (free_register_move_costs): Process them.
6891         (ira_init): Move calls of find_reg_classes and
6892         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6893         Call clarify_prohibited_class_mode_regs.
6894         (ira_no_alloc_reg): Remove.
6895         (too_high_register_pressure_p): Use pressure classes.
6896
6897         * sched-deps.c: Remove mentioning cover classes from the file.
6898         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6899         ira_pressure_classes and ira_pressure_classes_num instead of
6900         ira_reg_class_cover_size and ira_reg_class_cover.
6901         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6902         sched_regno_pressure_class instead of sched_regno_cover_class.
6903         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
6904         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6905
6906         * ira.h: Add 2010 to Copyright.
6907         (ira_no_alloc_reg): Remove external.
6908         (struct target_ira): Rename x_ira_hard_regno_cover_class,
6909         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6910         x_ira_class_translate to x_ira_hard_regno_allocno_class,
6911         x_ira_allocno_classes_num, x_ira_allocno_classes, and
6912         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
6913         x_ira_pressure_classes, x_ira_pressure_class_translate, and
6914         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
6915         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
6916         x_ira_no_alloc_regs.
6917         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6918         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6919         ira_allocno_classes_num and ira_allocno_classes.
6920         (ira_class_translate): Rename to ira_allocno_class_translate.
6921         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6922         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6923         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6924         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6925         (ira_no_alloc_regs): New.
6926
6927         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
6928         classes from the file.  Use ALLOCNO_CLASS instead of
6929         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
6930         ALLOCNO_COVER_CLASS_COST.
6931         (regno_cover_class): Rename to regno_aclass.
6932         (record_reg_classes): Use ira_reg_class_subunion instead of
6933         ira_reg_class_union.
6934         (record_address_regs): Check overflow.
6935         (scan_one_insn): Ditto.
6936         (print_allocno_costs): Print total mem cost fore regional allocation.
6937         (print_pseudo_costs): Use REG_N_REFS.
6938         (find_costs_and_classes): Use classes intersected with them on the
6939         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
6940         ira_reg_class_union.  Use ira_allocno_class_translate and
6941         regno_aclass instead of ira_class_translate and regno_cover_class.
6942         Modify code for finding regno_aclass.  Setup preferred classes for
6943         the next pass.
6944         (setup_allocno_cover_class_and_costs): Rename to
6945         setup_allocno_class_and_costs.  Use regno_aclass instead of
6946         regno_cover_class.  Use ira_set_allocno_class instead of
6947         ira_set_allocno_cover_class.
6948         (init_costs, finish_costs): Use regno_aclass instead of
6949         regno_cover_class.
6950         (ira_costs): Use setup_allocno_class_and_costs instead of
6951         setup_allocno_cover_class_and_costs.
6952         (ira_tune_allocno_costs_and_cover_classes): Rename to
6953         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
6954         by processing objects.  Use ira_reg_class_max_nregs instead of
6955         ira_reg_class_nregs.
6956
6957         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6958
6959         * sched-int.h: Remove mentioning cover classes from the file.
6960         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6961
6962         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
6963         classes from the file.
6964         (struct reg_pref): Rename coverclass into allocnoclass.
6965         (reg_cover_class): Rename to reg_allocno_class.
6966
6967         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6968
6969         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6970
6971         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6972
6973         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6974
6975         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6976
6977         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6978
6979         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6980
6981         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6982
6983         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6984
6985         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6986
6987         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6988         (i386_ira_cover_classes): Ditto.
6989
6990         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6991
6992         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6993
6994         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6995
6996         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6997
6998         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6999
7000         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7001
7002         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7003         (mips_ira_cover_classes): Ditto.
7004
7005         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7006
7007         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7008
7009         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7010
7011         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7012
7013         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7014
7015         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7016         (IRA_COVER_CLASSES_VSX): Ditto.
7017
7018         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7019         (rs6000_ira_cover_classes): Ditto.
7020
7021         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7022
7023         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7024
7025         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7026
7027         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7028
7029         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7030
7031         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7032
7033         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7034
7035         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7036
7037         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7038
7039         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7040
7041 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7042
7043         PR debug/48253
7044         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7045         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7046         dw_fde_unlikely_section_end_label, cold_in_std_section,
7047         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7048         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7049         fields.
7050         (output_fde): Use dw_fde_second_{begin,end} if second is
7051         true, otherwise dw_fde_{begin,end}.
7052         (output_call_frame_info): Test dw_fde_second_begin != NULL
7053         instead of dw_fde_switched_sections.
7054         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7055         fields, initialize new fields.  Initialize in_std_section
7056         unconditionally from the first partition.
7057         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7058         dw_fde_second_begin is non-NULL.
7059         (dwarf2out_switch_text_section): Stop initializing removed
7060         dw_fde_struct fields, initialize new fields, initialize
7061         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7062         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7063         (struct var_loc_list_def): Add last_before_switch field.
7064         (arange_table, arange_table_allocated, arange_table_in_use,
7065         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7066         (size_of_aranges): Count !in_std_section and !second_in_std_section
7067         hunks in fdes, instead of looking at arange_table_in_use.
7068         (output_aranges): Add aranges_length argument, don't call
7069         size_of_aranges here.  Instead of using aranges_table*
7070         emit ranges for fdes when !in_std_section resp.
7071         !second_in_std_section.
7072         (dw_loc_list): Break ranges crossing section switch.
7073         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7074         use dw_fde_second_end instead of dw_fde_end as end of last range.
7075         (gen_subprogram_die): Don't call add_arange.  Use
7076         dw_fde_{begin,end} for first partition and if switched
7077         section dw_fde_second_{begin,end} for the second.
7078         (var_location_switch_text_section_1,
7079         var_location_switch_text_section): New functions.
7080         (dwarf2out_begin_function): Initialize cold_text_section even
7081         when function_section () isn't text_section.
7082         (prune_unused_types): Don't walk arange_table.
7083         (dwarf2out_finish): Don't needlessly test
7084         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7085         If info_section_emitted, call size_of_aranges and if it indicates
7086         non-empty .debug_aranges, call output_aranges with the computed
7087         size.  Stop using removed dw_fde_struct fields, use
7088         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7089         for second.
7090
7091         PR debug/48203
7092         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7093         create ENTRY_VALUE if incoming or address of incoming's MEM
7094         is a hard REG.
7095         * dwarf2out.c (mem_loc_descriptor): Don't emit
7096         DW_OP_GNU_entry_value of DW_OP_fbreg.
7097         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7098         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7099         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7100         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7101         ENTRY_VALUE_EXPs.
7102         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7103         is a REG_P or MEM_P with REG_P address, compute hash directly
7104         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7105         (preserve_only_constants): Don't clear VALUES forwaring
7106         ENTRY_VALUE to some other VALUE.
7107
7108 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7109
7110         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7111         instead of GEN_INT.
7112
7113 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7114
7115         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7116         block before expanding the statement.
7117         (expand_gimple_stmt_1): Likewise.  Set them here...
7118         (expand_gimple_stmt): ...and not here.  Tidy.
7119         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7120         unknown.
7121
7122 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7123
7124         * Makefile.in: New rule for cprop.o.
7125         * gcse.c: Move constant/copy propagation to cprop.c.
7126         (compute_local_properties): Only handle expression tables.
7127         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7128         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7129         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7130         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7131         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7132         compute_cprop_data, find_used_regs, try_replace_reg,
7133         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7134         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7135         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7136         find_bypass_set, reg_killed_on_edge, bypass_block,
7137         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7138         execute_rtl_cprop, pass_rtl_cprop): Move to...
7139         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7140         moved from gcse.c to here with minor cleanups in duplicated code.
7141
7142 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7143
7144         * config/i386/i386.c (flag_opts): Fix a typo in
7145         -mavx256-split-unaligned-store.
7146
7147 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7148
7149         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7150         LIBCALL_VALUE): Remove macros.
7151         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7152         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7153         (h8300_function_value, h8300_libcall_value,
7154         h8300_function_value_regno_p): New functions.
7155
7156 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7157
7158         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7159
7160 2011-03-28  Jeff Law  <law@redhat.com>
7161
7162         * tree-ssa-threadupdate.c (redirect_edges): Call
7163         create_edge_and_update_destination_phis as needed.
7164         (create_edge_and_update_destination_phis): Accept new BB argument.
7165         All callers updated.
7166         (thread_block): Do not update the profile when threading around
7167         intermediate blocks.
7168         (thread_single_edge): Likewise.
7169         (determine_bb_domination_status): If BB is not a successor of the
7170         loop header, return NONDOMINATING.
7171         (register_jump_thread): Note when we register a jump thread around
7172         an intermediate block.
7173         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7174         (thread_across_edge): Use it.
7175
7176 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7177
7178         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7179         when for_return is 2.
7180
7181 2011-03-28  Jeff Law  <law@redhat.com>
7182
7183         * var-tracking.c (canonicalize_values_mark): Delete unused
7184         lhs assignment.
7185         (canonicalize_values_star, set_variable_part): Likewise.
7186         (clobber_variable_part, delete_variable_part): Likewise.
7187
7188 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7189
7190         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7191
7192 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7193
7194         * tree-inline.c (expand_call_inline): Do not check that destination
7195         node is analyzed.
7196         (optimize_inline_calls): Assert that destination node is analyzed.
7197         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7198         not call tree_lowering_passes.
7199         * cgraph.h (cgraph_analyze_function): Declare.
7200         * cgraphunit.c (cgraph_analyze_function): Make public.
7201
7202 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7203
7204         * config/sparc/sparc-opts.h: New.
7205         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7206         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7207         (sparc_option_override): Store processor_type enumeration rather
7208         than string in cpu_default.  Remove name and enumeration from
7209         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7210         without using sparc_select.  Use target_flags_explicit instead of
7211         fpu_option_set.
7212         * config/sparc/sparc.h (enum processor_type): Move to
7213         sparc-opts.h.
7214         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7215         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7216         HeaderInclude entry.
7217         (mcpu=, mtune=): Use Var and Enum.
7218         (sparc_processor_type): New Enum and EnumValue entries.
7219
7220 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7221             Iain Sandoe  <iains@gcc.gnu.org>
7222
7223         PR target/48245
7224         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7225
7226 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7227
7228         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7229         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7230         Insert new statements at it in lieu of STMT.
7231         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7232         * tree-vect-stmts.c (vectorizable_store): Likewise.
7233         (vectorizable_load): Likewise.
7234
7235 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7236
7237         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7238         (divtf3): Ditto.
7239         (multf3): Ditto.
7240         (subtf3): Ditto.
7241
7242 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7243
7244         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7245         unaligned 256bit load/store.
7246         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7247         (*avx_movdqu<avxmodesuffix>): Likewise.
7248
7249 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7250
7251         PR target/48288
7252         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7253         * config/pa/pa.md (iordi3): Use new predicate in expander.
7254         (iorsi3): Likewise.
7255
7256 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7257
7258         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7259         FUNCTION_VALUE_REGNO_P): Remove macros.
7260         * config/mips/mips-protos.h (mips_function_value): Remove.
7261         * config/mips/mips.c (mips_function_value): Rename to...
7262         (mips_function_value_1): ... this. Make static.  Handle receiving
7263         the function type in 'fn_decl_or_type' argument.
7264         (mips_function_value, mips_libcall_value,
7265         mips_function_value_regno_p): New function.
7266         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7267         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7268
7269 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7270
7271         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7272         and -mavx256-split-unaligned-store.
7273         (ix86_option_override_internal): Split 32-byte AVX unaligned
7274         load/store by default.
7275         (ix86_avx256_split_vector_move_misalign): New.
7276         (ix86_expand_vector_move_misalign): Use it.
7277
7278         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7279         -mavx256-split-unaligned-store.
7280
7281         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7282         256bit load/store.  Generate unaligned store on misaligned memory
7283         operand.
7284         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7285         256bit load/store.
7286         (*avx_movdqu<avxmodesuffix>): Likewise.
7287
7288         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7289         -mavx256-split-unaligned-store.
7290
7291 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7292
7293         PR target/38598
7294         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7295         Update commentary.
7296
7297 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7298
7299         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7300         opno arguments with an expand_operand.  Use create_input_operand.
7301         (mips_prepare_builtin_target): Delete.
7302         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7303         functions.
7304         (mips_expand_builtin_direct): Use create_output_operand and
7305         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7306         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7307         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7308
7309 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7310
7311         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7312         function.
7313         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7314
7315 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7316
7317         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7318         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7319         basic blocks and call commit_edge_insertions directly.
7320         (fixup_abnormal_edges): Move from here to...
7321         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7322         on the edges and return whether some have actually been inserted.
7323         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7324         compensation code.
7325
7326 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7327
7328         PR rtl-optimization/48144
7329         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7330         (merge_expr_data): ... here.
7331         (av_set_intersect): Rename to av_set_code_motion_filter.
7332         Update all callers.  Call merge_history_vect when an expression
7333         is found in both sets.
7334         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7335
7336 2011-03-26  Alan Modra  <amodra@gmail.com>
7337
7338         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7339         cmodel medium addresses.
7340         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7341         64-bit gpr loads and stores.
7342         (rs6000_secondary_reload_ppc64): New function.
7343         * config/rs6000/rs6000-protos.h: Declare it.
7344         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7345
7346 2011-03-26  Alan Modra  <amodra@gmail.com>
7347
7348         PR target/47487
7349         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7350         GNU Go in traceback table.
7351
7352 2011-03-25  Richard Henderson  <rth@redhat.com>
7353
7354         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7355         if there are exactly 6 operands.
7356         (set_storage_via_setmem): Similarly.
7357
7358 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7359
7360         * collect2.c (write_c_file_stat): Handle backslash
7361         as right-hand directory separator.
7362         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7363         checking just for slash.
7364         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7365         instead of checking for trailing slash.
7366         * gcc.c (record_temp_file): Use filename_cmp instead
7367         of strcmp.
7368         (do_spec_1): Likewise.
7369         (replace_outfile_spec_function): Likewise.
7370         (is_directory): Use filename_ncmp instead of strncmp.
7371         (print_multilib_info): Likewise.
7372         * gcov.c (find_source): Use filename_cmp instead
7373         instead of strcmp.
7374         (make_gcov_file_name): Fix order of slash/backslash
7375         checks.
7376         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7377         (add_standard_paths): Likewise.
7378         * mips-tfile.c (saber_stop): Handle backslash.
7379         * prefix.c (update_path): Use filename_ncmp instead of
7380         strncmp.
7381         * profile.c (output_location): Use filename_cmp instead
7382         of strcmp.
7383         * read-md.c (handle_toplevel_file): Handle backslash.
7384         * tlink.c (frob_extension):  Likewise.
7385         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7386         strcmp.
7387         * tree-dump.c (dequeue_and_dump): Handle backslash.
7388         * tree.c (get_file_function_name): Likewise.
7389         * gengtype.c (read_input_list): Likewise.
7390         (get_file_realbasename): Likewise.
7391         (get_output_file_with_visibility): Use filename_cmp
7392         instead of strcmp.
7393
7394 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7395
7396         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7397         case to VFPv1.
7398
7399 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7400
7401         * fold-const.c (expr_location_or): New function.
7402         (fold_truth_not_expr): Call it.
7403
7404 2011-03-25  Jeff Law  <law@redhat.com>
7405
7406         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7407         va_end.
7408         * c-family/c-common.c (def_fn_type): Likewise.
7409         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7410         * emit-rtl.c (gen_rtvec): Likewise.
7411         * lto/lto-lang.c (def_fn_type): Likewise.
7412
7413 2011-03-25  Richard Guenther  <rguenther@suse.de>
7414
7415         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7416         also generate copies.
7417         (fini_copy_prop): Handle constant values properly.
7418
7419 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7420
7421         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7422         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7423         (hash_loc_operands, compare_loc_operands): Handle
7424         DW_OP_GNU_entry_value.
7425
7426 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7427
7428         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7429         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7430         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7431         comment and use macro TARGET_64BIT_MS_ABI instead.
7432         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7433         and change default behavior for 32-bit MS_ABI.
7434         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7435         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7436         32-bit, too.
7437         (ix86_cfun_abi): Likewise.
7438         (ix86_maybe_switch_abi): Adjust comment.
7439         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7440         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7441         instead of checking for SYSV_ABI.
7442         (ix86_nsaved_sseregs): Likewise.
7443         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7444         to 16 bytes.
7445         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7446         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7447         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7448         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7449         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7450
7451 2011-03-25  Richard Guenther  <rguenther@suse.de>
7452
7453         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7454         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7455         (verify_gimple): Remove.
7456         * tree-cfg.c (verify_gimple_call): Merge verification
7457         from verify_stmts.
7458         (verify_gimple_phi): Merge verification from verify_stmts.
7459         (verify_gimple_label): New function.
7460         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7461         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7462         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7463         (verify_stmts): Rename to verify_gimple_in_cfg.
7464         (verify_gimple_in_cfg): New function.
7465         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7466         * tree-ssa.c (verify_ssa): Likewise.
7467         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7468
7469 2011-03-25  Richard Guenther  <rguenther@suse.de>
7470
7471         * passes.c (init_optimization_passes): Add FRE pass after
7472         early SRA.
7473
7474 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7475             Andrew Stubbs  <ams@codesourcery.com>
7476
7477         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7478         for Cortex-A8.
7479         (arm_movdi_vfp_cortexa8): New pattern.
7480         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7481         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7482         instructions when tuning for Cortex-A8.  Set attribute "arch".
7483         * config/arm/arm.md: Move include arm-tune.md up a bit.
7484         (define_attr "arch"): Add "onlya8" and "nota8" values.
7485         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7486
7487 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7488
7489         PR bootstrap/48282
7490         Revert:
7491         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7492
7493         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7494         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7495         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7496         * passes.c (init_optimization_passes): Move
7497         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7498
7499 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7500
7501         * c-typeck.c (comptypes_internal): Replace target
7502         hook call of comp_type_attributes by version in tree.c file.
7503         * gimple.c (gimple_types_compatible_p_1): Likewise.
7504         * tree-ssa.c (useless_type_conversion_p): Likewise.
7505         * tree.c (build_type_attribute_qual_variant): Likewise.
7506         (attribute_value_equal): New static helper function.
7507         (comp_type_attributes): New function.
7508         (merge_attributes): Use attribute_value_equal for comparison.
7509         (attribute_list_contained): Likewise.
7510         * tree.h (comp_type_attributes): New prototype.
7511
7512 2011-03-25  Richard Guenther  <rguenther@suse.de>
7513
7514         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7515         of complex types at -O0.
7516         (verify_gimple_assign_binary): Likewise.
7517         (verify_gimple_assign_ternary): Likewise.
7518
7519 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7520
7521         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7522         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7523
7524 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7525
7526         PR debug/48041
7527         * dwarf2out.c (output_abbrev_section): Only write table when
7528         abbrev_die_table_in_use > 1.
7529
7530 2011-02-24  Richard Henderson  <rth@redhat.com>
7531
7532         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7533         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7534         (alpha_expand_unaligned_load_words): Use extql.
7535         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7536         (emit_insxl): Handle all modes for consistency.
7537
7538 2011-02-24  Richard Henderson  <rth@redhat.com>
7539
7540         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7541         (alpha_expand_unaligned_load): Likewise.
7542         (alpha_expand_unaligned_store): Likewise.
7543         (alpha_expand_unaligned_load_words): Likewise.
7544         (alpha_expand_unaligned_store_words): Likewise.
7545         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7546         (alpha_split_lock_test_and_set_12): Likewise.
7547         (print_operand, alpha_fold_builtin_extxx): Likewise.
7548         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7549         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7550         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7551         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7552         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7553         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7554         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7555         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7556         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7557         (extwl, extll, extql): Similarly.
7558         (inswh, inslh, insqh): Similarly.
7559         (mskbl, mskwl, mskll, mskql): Similarly.
7560         (mskwh, msklh, mskqh): Similarly.
7561
7562 2011-02-24  Richard Henderson  <rth@redhat.com>
7563
7564         * config/alpha/alpha.md (attribute isa): Add er, ner.
7565         (attribute enabled): Handle them.
7566         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7567
7568 2011-02-24  Richard Henderson  <rth@redhat.com>
7569
7570         * config/alpha/alpha.md (attribute isa): Add vms.
7571         (attribute enabled): Handle it.
7572         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7573         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7574         (*movtf): Rename from *movtf_internal for consistency.
7575         (*movsi): Merge with *movsi_nt_vms.
7576         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7577         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7578         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7579         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7580
7581 2011-02-24  Richard Henderson  <rth@redhat.com>
7582
7583         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7584         (extendqisi2, extendhisi2): Likewise.
7585         (extendqidi2): Simplify BWX/non-BWX expansions.
7586         (extendhidi2): Similarly.
7587
7588 2011-02-24  Richard Henderson  <rth@redhat.com>
7589
7590         * config/alpha/alpha.md (attribute isa): New.
7591         (attribute enabled): New.
7592         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7593         (zero_extendqisi2, zero_extendqidi2): Similarly.
7594         (zero_extendhisi2, zero_extendhidi2): Similarly.
7595         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7596
7597 2011-02-24  Richard Henderson  <rth@redhat.com>
7598
7599         * config/alpha/predicates.md (input_operand): Revert last change;
7600         update comment to mention 32-bit VMS rather than Windows.
7601
7602 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7603
7604         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7605         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7606         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7607         * passes.c (init_optimization_passes): Move
7608         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7609
7610 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7611
7612         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7613
7614 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7615
7616         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7617         correctly.
7618
7619 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7620
7621         PR debug/48204
7622         * simplify-rtx.c (simplify_const_unary_operation): Call
7623         real_convert when changing mode class with FLOAT_EXTEND.
7624
7625 2011-03-24  Nick Clifton  <nickc@redhat.com>
7626
7627         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7628         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7629         * config/rx/rx.c (rx_option_override): Set align_jumps,
7630         align_loops and align_labels if not set by the user.
7631         (rx_align_for_label): New function.
7632         (rx_max_skip_for_label): New function.
7633         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7634         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7635         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7636         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7637         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7638
7639 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7640
7641         PR rtl-optimization/48263
7642         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7643         and original commutative_p handling.  Use maybe_gen_insn.
7644
7645 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7646
7647         * reload.c (find_reloads_subreg_address): Add address_reloaded
7648         parameter and return true there if the full address has been
7649         reloaded.
7650         (find_reloads_toplev): Pass address_reloaded flag.
7651         (find_reloads_address_1): Don't use address_reloaded parameter.
7652
7653 2011-03-24  Jeff Law  <law@redhat.com>
7654
7655         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7656         unused variable "ann".
7657         (remove_unused_locals): Likewise.
7658
7659         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7660         statement.
7661
7662         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7663         after it is freed.
7664
7665 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7666
7667         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7668         for invalid symbolic addresses.
7669         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7670         larl operands.
7671
7672 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7673
7674         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7675         the argument in calls to fold_truth_not_expr.
7676
7677 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7678
7679         * tree.c (record_node_allocation_statistics): New function.
7680         (make_node_stat, copy_node_stat, build_string): Call it.
7681         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7682         (build1_stat, build_omp_clause): Likewise.
7683
7684 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7685
7686         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7687         last commit.
7688
7689 2011-03-24  Richard Guenther  <rguenther@suse.de>
7690
7691         PR tree-optimization/48271
7692         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7693         blocks that still exist.
7694
7695 2011-03-24  Richard Guenther  <rguenther@suse.de>
7696
7697         PR tree-optimization/48270
7698         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7699         not free datarefs before ddrs.
7700
7701 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7702
7703         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7704         from the address built for a reference with variable offset.
7705
7706 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7707
7708         PR target/48237
7709         * config/i386/i386.md (*movdf_internal_rex64): Do not split
7710         alternatives that can be handled with movq or movabsq insn.
7711         (*movdf_internal): Disable for !TARGET_64BIT.
7712         (*movdf_internal_nointeger): Ditto.
7713         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7714
7715 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7716
7717         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7718         (FUNCTION_ARG_ADVANCE): Likewise.
7719         * tm.texi.in: Change references to them to hook references.
7720         * tm.texi: Regenerate.
7721         * targhooks.c (default_function_arg): Eliminate check for target macro.
7722         (default_function_incoming_arg): Likewise.
7723         (default_function_arg_advance): Likewise.
7724         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7725         (function_arg_advance): Likewise.
7726         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7727
7728 2011-03-24  Richard Guenther  <rguenther@suse.de>
7729
7730         PR middle-end/48269
7731         * tree-object-size.c (addr_object_size): Do not double-account
7732         for MEM_REF offsets.
7733
7734 2011-03-24  Diego Novillo  <dnovillo@google.com>
7735
7736         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7737         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7738         (lto_input_data_block): Move from lto-opts.c.  Make extern.
7739         Update all users.
7740         (lto_input_string): Rename from input_string.  Make extern.
7741         Update all users.
7742         * lto-streamer-out.c (lto_output_string_with_length): Rename from
7743         output_string_with_length.
7744         Output 0 to indicate a non-NULL string.  Update all callers to
7745         not emit 0.
7746         (lto_output_string): Rename from output_string.  Make extern.
7747         Update all users.
7748         (lto_output_decl_state_streams): Make extern.
7749         (lto_output_decl_state_refs): Make extern.
7750         * lto-streamer.h (lto_input_string): Declare.
7751         (lto_input_data_block): Declare.
7752         (lto_output_string): Declare.
7753         (lto_output_string_with_length): Declare.
7754         (lto_output_decl_state_streams): Declare.
7755         (lto_output_decl_state_refs): Declare.
7756
7757 2011-03-24  Richard Guenther  <rguenther@suse.de>
7758
7759         PR tree-optimization/46562
7760         * tree.c (build_invariant_address): New function.
7761         * tree.h (build_invariant_address): Declare.
7762         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7763         a renamed function moved ...
7764         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7765         Take valueization callback parameter.
7766         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7767         * gimple-fold.h: New file.
7768         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7769         (ccp_fold, fold_const_aggregate_ref,
7770         fold_ctor_reference, fold_nonarray_ctor_reference,
7771         fold_array_ctor_reference, fold_string_cst_ctor_reference,
7772         get_base_constructor): Move ...
7773         * gimple-fold.c: ... here.
7774         (gimple_fold_stmt_to_constant_1): New function
7775         split out from ccp_fold.  Take a valueization callback parameter.
7776         Valueize all operands.
7777         (gimple_fold_stmt_to_constant): New wrapper function.
7778         (fold_const_aggregate_ref_1): New function split out from
7779         fold_const_aggregate_ref.  Take a valueization callback parameter.
7780         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7781         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7782         invariant POINTER_PLUS_EXPRs to invariant form.
7783         (vn_valueize): New function.
7784         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7785         * tree-vrp.c (vrp_valueize): New function.
7786         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7787         to fold statements to constants.
7788         * tree-ssa-pre.c (eliminate): Properly guard propagation of
7789         function declarations.
7790         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7791         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7792
7793 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7794
7795         * config/h8300/predicates.md (jump_address_operand): Fix register
7796         mode check.
7797
7798 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
7799
7800         * doc/invoke.texi (max-stores-to-sink): Document.
7801         * params.h (MAX_STORES_TO_SINK): Define.
7802         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7803         if either vectorization or if-conversion is disabled.
7804         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7805         tree-vect-data-refs.c vect_equal_offsets.
7806         (dr_equal_offsets_p): New function.
7807         (find_data_references_in_bb): Remove static.
7808         * tree-data-ref.h (find_data_references_in_bb): Declare.
7809         (dr_equal_offsets_p): Likewise.
7810         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7811         (vect_drs_dependent_in_basic_block): Update calls to
7812         vect_equal_offsets.
7813         (vect_check_interleaving): Likewise.
7814         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7815         (cond_if_else_store_replacement): Rename to...
7816         (cond_if_else_store_replacement_1): ... this.  Change arguments and
7817         documentation.
7818         (cond_if_else_store_replacement): New function.
7819         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7820         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7821
7822 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
7823
7824         PR target/46934
7825         * config/arm/arm.md (casesi): Use the gen_int_mode() function
7826         to subtract lower bound instead of GEN_INT().
7827
7828 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
7829
7830         PR other/48179
7831         PR other/48221
7832         PR other/48234
7833         * doc/extend.texi (Alignment): Move section to match order in TOC.
7834         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7835         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7836
7837 2011-03-23  Jeff Law  <law@redhat.com>
7838
7839         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7840         before removing the edge.
7841
7842         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7843         it may have been freed by redirect_branch_edge or
7844         redirect_edge_succ_nodup.
7845
7846 2011-03-23  Richard Guenther  <rguenther@suse.de>
7847
7848         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7849         (check_va_list_escapes): Likewise.
7850         (check_all_va_list_escapes): Likewise.
7851
7852 2011-03-23  Richard Guenther  <rguenther@suse.de>
7853
7854         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7855         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7856         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7857         (alias.o): Likewise.
7858         (ipa-type-escape.o): Remove.
7859         (ipa-struct-reorg.o): Likewise.
7860         (GTFILES): Remove ipa-struct-reorg.c.
7861         * alias.c: Do not include ipa-type-escape.h.
7862         * tree-ssa-alias.c: Likewise.
7863         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7864         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7865         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7866         and ipa-type-escape passes.
7867         * tree-pass.h (pass_ipa_type_escape): Remove.
7868         (pass_ipa_struct_reorg): Likewise.
7869         * ipa-struct-reorg.h: Remove.
7870         * ipa-struct-reorg.c: Likewise.
7871         * ipa-type-escape.h: Likewise.
7872         * ipa-type-escape.c: Likewise.
7873         * doc/invoke.texi (-fipa-struct-reorg): Remove.
7874         (--param struct-reorg-cold-struct-ratio): Likewise.
7875         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7876         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7877         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7878
7879 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7880
7881         * config/s390/2084.md: Enable all insn reservations also for z9_ec
7882         cpu attribute value.
7883         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7884         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7885         * config/s390/s390.c (processor_flags_table): New constant array.
7886         (s390_handle_arch_option): Remove.
7887         (s390_handle_option): Remove s390_handle_arch_option invocations
7888         and OPT_mwarn_framesize_ handling.
7889         (s390_option_override): Remove s390_handle_arch_option invocation.
7890         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7891         warnings.
7892         * config/s390/s390.md (cpu attribute): Add z9_ec value.
7893         * config/s390/s390.opt (s390_tune, s390_arch)
7894         (march=): Replace s390_arch_option enum and values with
7895         processor_type.  Set variable name to s390_arch.  Set
7896         initialization value.
7897         (mtune=): Replace s390_arch_option with processor_type.  Set
7898         variable name to s390_tune.  Set initialization value.
7899
7900 2011-03-23  Julian Brown  <julian@codesourcery.com>
7901
7902         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7903         accesses which are not naturally aligned.
7904
7905 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7906
7907         PR target/47553
7908         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7909
7910 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7911
7912         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7913         parameter from "int" to "enum insn_code".
7914         (expand_operand_type): New enum.
7915         (expand_operand): New structure.
7916         (create_expand_operand): New function.
7917         (create_fixed_operand, create_output_operand): Likewise
7918         (create_input_operand, create_convert_operand_to): Likewise.
7919         (create_convert_operand_from, create_address_operand): Likewise.
7920         (create_integer_operand): Likewise.
7921         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7922         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7923         (expand_insn, expand_jump_insn): Likewise.
7924         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7925         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7926         (expand_movstr, expand_builtin___clear_cache): Likewise.
7927         (expand_builtin_lock_release): Likewise.
7928         * explow.c (allocate_dynamic_stack_space): Likewise.
7929         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
7930         and use the default handling in that case.
7931         * expmed.c (check_predicate_volatile_ok): Delete.
7932         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7933         (emit_cstore): Likewise.
7934         * expr.c (emit_block_move_via_movmem): Likewise.
7935         (set_storage_via_setmem, expand_assignment): Likewise.
7936         (emit_storent_insn, try_casesi): Likewise.
7937         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
7938         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7939         (expand_vec_shift_expr, expand_binop_directly): Likewise.
7940         (expand_twoval_unop, expand_twoval_binop): Likewise.
7941         (expand_unop_direct, emit_indirect_jump): Likewise.
7942         (emit_conditional_move, vector_compare_rtx): Likewise.
7943         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7944         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7945         (expand_sync_lock_test_and_set): Likewise.
7946         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
7947         (emit_unop_insn): Likewise.
7948         (expand_copysign_absneg): Change icode to an insn_code.
7949         (create_convert_operand_from_type): New function.
7950         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7951         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7952         (expand_insn, expand_jump_insn): Likewise.
7953         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7954         than const_int_operand for operand 2.
7955
7956 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7957
7958         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7959         if possible.
7960
7961 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7962
7963         * emit-rtl.c (emit_pattern_before_noloc): New function.
7964         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7965         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7966         (emit_pattern_after_noloc): New function.
7967         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7968         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7969
7970 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7971
7972         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7973         (__ffsDI2): Likewise.
7974
7975 2011-03-22  Richard Henderson  <rth@redhat.com>
7976
7977         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7978         of !TARGET_ABI_OPEN_VMS.
7979         (alpha_trampoline_init, alpha_start_function): Likewise.
7980         (alpha_expand_epilogue, alpha_file_start): Likewise.
7981         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7982         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7983         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7984         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7985         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7986
7987 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7988
7989         * config/s390/s390-opts.h: New.
7990         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7991         s390_arch_flags, s390_warn_framesize, s390_stack_size,
7992         s390_stack_guard): Remove.
7993         (s390_handle_arch_option): Return void.  Take enum
7994         s390_arch_option value instead of string and searching array.
7995         (s390_handle_option): Don't assert that global structures are in
7996         use.  Access variables via opts pointer.  Use error_at.  Don't use
7997         sscanf for -mstack-guard= or -mstack-size=.  Update call to
7998         s390_handle_arch_option.
7999         (s390_option_override): Update call to s390_handle_arch_option.
8000         (s390_emit_prologue): Use %d format for s390_stack_size in
8001         diagnostic.  Use %wd for HOST_WIDE_INT.
8002         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8003         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8004         * config/s390/s390.opt (config/s390/s390-opts.h): New
8005         HeaderInclude entry.
8006         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8007         s390_arch_flags, s390_warn_framesize): New Variable entries.
8008         (s390_arch_option): New Enum and EnumValue entries.
8009         (march=): Use Enum instead of Var.
8010         (mstack-guard=, mstack-size=): Use UInteger and Var.
8011         (mtune=): Use Enum.
8012
8013 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8014
8015         * config/score/score.c (score_handle_option): Don't assert that
8016         global structures are in use.  Access target_flags via opts
8017         pointer.  Use value of -march= option to determine target_flags
8018         settings.
8019         * config/score/score.opt (march=): Use Enum.
8020         (score_arch): New Enum and EnumValue entries.
8021
8022 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8023
8024         * config/mep/mep.c (option_mtiny_specified): Remove.
8025         (mep_option_override): Move register handling for -mivc2 from
8026         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8027         instead of option_mtiny_specified.
8028         (mep_handle_option): Access target_flags via opts pointer.  Don't
8029         assert that global structures are in use.  Defer part of -mivc2
8030         handling and move it to mep_option_override.
8031         * config/mep/mep.opt (IVC2): New Mask entry.
8032         (mivc2): Use Var and Defer instead of Mask.
8033
8034 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8035
8036         * config/v850/v850-opts.h: New.
8037         * config/v850/v850.c (small_memory): Replace with
8038         small_memory_physical_max array.  Make that array static const.
8039         (v850_handle_memory_option): Take integer value of argument.  Take
8040         gcc_options pointer, option text and location.  Return void.
8041         Update for changes to small memory structures.
8042         (v850_handle_option): Access target_flags via opts pointer.  Don't
8043         assert that global structures are in use.  Update calls to
8044         v850_handle_memory_option.
8045         (v850_encode_data_area): Update references to small memory settings.
8046         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8047         (enum small_memory_type): Move to v850-opts.h.
8048         * config/v850/v850.opt (config/v850/v850-opts.h): New
8049         HeaderInclude entry.
8050         (small_memory_max): New Variable entry.
8051         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8052         (mtda, mzda): Likewise.
8053
8054 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8055
8056         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8057         pointer.  Don't assert that global structures are in use.
8058
8059 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8060
8061         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8062         via opts pointer.  Don't assert that global structures are in use.
8063
8064 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8065
8066         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8067         (munix=93): Use Var.
8068         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8069         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8070         * config/pa/pa-opts.h: New.
8071         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8072         (pa_handle_option): Don't assert that global structures are in
8073         use.  Access target_flags via opts pointer.  Don't handle
8074         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8075         OPT_munix_98 here.
8076         (pa_option_override): Handle deferred OPT_mfixed_range_.
8077
8078 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8079
8080         * config/mn10300/mn10300-opts.h: New.
8081         * config/mn10300/mn10300.c (mn10300_processor,
8082         mn10300_tune_string): Remove.
8083         (mn10300_handle_option): Don't assert that global structures are
8084         in use.  Access mn10300_processor via opts pointer.  Don't handle
8085         OPT_mtune_ here.
8086         * config/mn10300/mn10300.h (enum processor_type): Move to
8087         mn10300-opts.h.
8088         (mn10300_processor): Remove.
8089         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8090         HeaderInclude entry.
8091         (mn10300_processor): New Variable entry.
8092         (mtune=): Use Var.
8093
8094 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8095
8096         * config/microblaze/microblaze.c: Don't include opts.h.
8097         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8098         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8099         (mno-clearbss): Use Var and Warn.
8100
8101 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8102
8103         * config/m32r/m32r-opts.h: New.
8104         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8105         (m32r_handle_option): Don't assert that global structures are in
8106         use.  Access target_flags and m32r_cache_flush_func via opts
8107         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8108         OPT_mno_flush_trap here.
8109         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8110         include of m32r-opts.h.
8111         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8112         HeaderInclude entry.
8113         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8114         (mmodel=): Use Enum and Var.
8115         (m32r_model): New Enum and EnumValue entries.
8116         (mno-flush-trap): Use Var.
8117         (msdata=): Use Enum and Var.
8118         (m32r_sdata): New Enum and EnumValue entries.
8119
8120 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8121
8122         * config/m32c/m32c.c: Don't include opts.h.
8123         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8124         m32c_handle_option): Remove.
8125         (m32c_option_override): Check global_options_set.x_target_memregs
8126         instead of target_memregs_set.
8127         * config/m32c/m32c.h (target_memregs): Remove.
8128         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8129         variable.
8130
8131 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8132
8133         * config/iq2000/iq2000-opts.h: New.
8134         * config/iq2000/iq2000.c: Don't include opts.h.
8135         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8136         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8137         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8138         HeaderInclude entry.
8139         (iq2000_tune): New Variable entry.
8140         (march=): Add comment.  Use Enum.
8141         (iq2000_arch): New Enum and EnumValue entries.
8142         (mcpu=): Use Enum and Var.
8143         (iq2000_tune): New Enum and EnumValue entries.
8144
8145 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8146
8147         * config/ia64/ia64-opts.h: New.
8148         * config/ia64/ia64.c (ia64_tune): Remove.
8149         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8150         here.  Use error_at.
8151         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8152         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8153         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8154         HeaderInclude entry.
8155         (ia64_tune): New Variable entry.
8156         (mfixed-range=): Use Defer and Var.
8157         (mtune=): Use Enum and Var.
8158         (ia64_tune): New Enum and EnumValue entries.
8159
8160 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8161
8162         * config/frv/frv-opts.h: New.
8163         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8164         frv-opts.h.
8165         (frv_cpu_type): Remove.
8166         * config/frv/frv.c: Don't include opts.h.
8167         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8168         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8169         (frv_cpu_type): New Variable entry.
8170         (frv_cpu): New Enum and EnumValue entries.
8171
8172 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8173
8174         * config/cris/cris.c (cris_handle_option): Access target_flags via
8175         opts pointer.  Don't assert that global structures are in use.
8176         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8177         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8178
8179 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8180
8181         * config/bfin/bfin-opts.h: New.
8182         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8183         bfin_si_revision, bfin_workarounds): Remove.
8184         (bfin_cpus): Make static const.
8185         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8186         not bfin_lib_id_given.
8187         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8188         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8189         pointer. Use error_at.  Don't assert that global structures are in use.
8190         * config/bfin/bfin.h: Include bfin-opts.h.
8191         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8192         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8193         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8194         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8195         entries.
8196
8197 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8198
8199         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8200         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8201         or -msoft-float here.
8202         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8203         -msoft-float and -mhard-float.
8204         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8205         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8206         msoft-float.
8207         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8208         -msoft-float.
8209         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8210         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8211         not mhard-float.
8212         (LIBGCC_SPEC): Don't handle -msoft-float.
8213         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8214         -mhard-float.
8215         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8216         msoft-float.
8217         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8218         -mfloat-abi=*, not -msoft-float and -mhard-float.
8219         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8220         -msoft-float.
8221         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8222         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8223         mhard-float and msoft-float.
8224         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8225         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8226         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8227         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8228         mhard-float.
8229         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8230         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8231         msoft-float.
8232         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8233         not mhard-float.
8234         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8235         not msoft-float.
8236
8237 2011-03-22  Richard Henderson  <rth@redhat.com>
8238
8239         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8240         TARGET_ABI_WINDOWS_NT.
8241         (alpha_output_function_end_prologue): Likewise.
8242         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8243         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8244         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8245         (trap, *movsi_nt_vms): Likewise.
8246         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8247         (*tablejump_osf_nt_internal): Remove.
8248         * config/alpha/predicates.md (input_operand): Only test Pmode.
8249
8250 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8251
8252         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8253         via opts pointer.  Use error_at.  Don't assert that global
8254         structures are in use.
8255
8256 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8257
8258         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8259         (ix86_handle_option): Access ix86_isa_flags and
8260         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8261         global structures are in use.
8262         (ix86_function_specific_save, ix86_function_specific_restore):
8263         Update ix86_isa_flags_explicit field name.
8264         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8265         (ix86_isa_flags_explicit): Rename TargetSave entry to
8266         x_ix86_isa_flags_explicit.
8267
8268 2011-03-22  Richard Henderson  <rth@redhat.com>
8269
8270         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8271         (alpha_option_override, direct_return): Likewise.
8272         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8273         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8274         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8275         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8276         (alpha_expand_epilogue, alpha_end_function): Likewise.
8277         (alpha_init_libfuncs): Likewise.
8278         (struct machine_function): Remove unicosmk members.
8279         (print_operand) ['t']: Remove.
8280         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8281         unicosmk_output_module_name, unicosmk_output_common,
8282         current_section_align, unicosmk_output_text_section_asm_op,
8283         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8284         unicosmk_section_type_flags, unicosmk_unique_section,
8285         unicosmk_asm_named_section, unicosmk_insert_attributes,
8286         unicosmk_output_align, unicosmk_defer_case_vector,
8287         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8288         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8289         unicosmk_output_ssib, unicosmk_add_call_info_word,
8290         unicosmk_extern_head, unicosmk_output_default_externs,
8291         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8292         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8293         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8294         * config/alpha/alpha-protos.h: Update.
8295         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8296         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8297         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8298         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8299         (*mulsi_se, mulvsi3): Likewise.
8300         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8301         (*divmodsi_internal, call, call_value, realign): Likewise.
8302         (moddi3, umoddi3): Likewise; remove duplicate expander.
8303         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8304         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8305         (*movdi_nofix): Remove r/U alternative.
8306         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8307         * config/alpha/constraints.md ("U"): Remove.
8308         * config/alpha/predicates.md (call_operand"): Don't test
8309         TARGET_ABI_UNICOSMK.
8310
8311 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8312
8313         * target.def (handle_option): Take gcc_options and
8314         cl_decoded_option pointers and location_t.
8315         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8316         * doc/tm.texi: Regenerate.
8317         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8318         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8319         * lto-opts.c (lto_reissue_options): Generate option structure for
8320         targetm.handle_option call.
8321         * opts.c (target_handle_option): Update call to
8322         targetm.handle_option.  Remove assertions about values now passed
8323         down to hook.
8324         * targhooks.c (default_target_handle_option): New.
8325         * targhooks.h (default_target_handle_option): Declare.
8326         * config/alpha/alpha.c: Include opts.h.
8327         (alpha_handle_option): Update to new hook interface.
8328         * config/arm/arm.c: Include opts.h.
8329         (arm_handle_option): Update to new hook interface.
8330         * config/arm/t-arm (arm.o): Update dependencies.
8331         * config/bfin/bfin.c: Include opts.h.
8332         (bfin_handle_option): Update to new hook interface.
8333         * config/cris/cris.c: Include opts.h.
8334         (cris_handle_option): Update to new hook interface.
8335         * config/frv/frv.c: Include opts.h.
8336         (frv_handle_option): Update to new hook interface.
8337         * config/i386/i386.c: Include opts.h.
8338         (ix86_handle_option): Update to new hook interface.
8339         (ix86_valid_target_attribute_inner_p): Generate option structure
8340         for call to ix86_handle_option.
8341         * config/i386/t-i386 (i386.o): Update dependencies.
8342         * config/ia64/ia64.c: Include opts.h.
8343         (ia64_handle_option): Update to new hook interface.
8344         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8345         * config/iq2000/iq2000.c: Include opts.h.
8346         (iq2000_handle_option): Update to new hook interface.
8347         * config/m32c/m32c.c: Include opts.h.
8348         (m32c_handle_option): Update to new hook interface.
8349         * config/m32r/m32r.c: Include opts.h.
8350         (m32r_handle_option): Update to new hook interface.
8351         * config/m68k/m68k.c: Include opts.h.
8352         (m68k_handle_option): Update to new hook interface.
8353         * config/mep/mep.c: Include opts.h.
8354         (mep_handle_option): Update to new hook interface.
8355         * config/microblaze/microblaze.c: Include opts.h.
8356         (microblaze_handle_option): Update to new hook interface.
8357         * config/mips/mips.c: Include opts.h.
8358         (mips_handle_option): Update to new hook interface.
8359         * config/mn10300/mn10300.c: Include opts.h.
8360         (mn10300_handle_option): Update to new hook interface.
8361         * config/pa/pa.c: Include opts.h.
8362         (pa_handle_option): Update to new hook interface.
8363         * config/pdp11/pdp11.c: Include opts.h.
8364         (pdp11_handle_option): Update to new hook interface.
8365         * config/rs6000/rs6000.c: Include opts.h.
8366         (rs6000_handle_option): Update to new hook interface.
8367         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8368         * config/rx/rx.c: Include opts.h.
8369         (rx_handle_option): Update to new hook interface.
8370         * config/s390/s390.c: Include opts.h.
8371         (s390_handle_option): Update to new hook interface.
8372         * config/score/score.c: Include opts.h.
8373         (score_handle_option): Update to new hook interface.
8374         * config/sh/sh.c: Include opts.h.
8375         (sh_handle_option): Update to new hook interface.
8376         * config/sparc/sparc.c: Include opts.h.
8377         (sparc_handle_option): Update to new hook interface.
8378         * config/v850/v850.c: Include opts.h.
8379         (v850_handle_option): Update to new hook interface.
8380
8381 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8382
8383         * gcc.c (driver_unknown_option_callback): Only permit and save
8384         unknown -Wno- options.
8385         (driver_wrong_lang_callback): Save options directly instead of via
8386         driver_unknown_option_callback.
8387
8388 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8389
8390         * combine.c (simplify_set): Try harder to find the best CC mode when
8391         simplifying a nested COMPARE on the RHS.
8392
8393 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8394
8395         * config/alpha/gnu.h: Remove.
8396         * config/arc: Remove directory.
8397         * config/arm/netbsd.h: Remove.
8398         * config/arm/t-pe: Remove.
8399         * config/crx: Remove directory.
8400         * config/i386/netbsd.h: Remove.
8401         * config/m68hc11: Remove directory.
8402         * config/m68k/uclinux-oldabi.h: Remove.
8403         * config/mcore/mcore-pe.h: Remove.
8404         * config/mcore/t-mcore-pe: Remove.
8405         * config/netbsd-aout.h: Remove.
8406         * config/rs6000/gnu.h: Remove.
8407         * config/sh/sh-symbian.h: Remove.
8408         * config/sh/symbian-base.c: Remove.
8409         * config/sh/symbian-c.c: Remove.
8410         * config/sh/symbian-cxx.c: Remove.
8411         * config/sh/symbian-post.h: Remove.
8412         * config/sh/symbian-pre.h: Remove.
8413         * config/sh/t-symbian: Remove.
8414         * config/svr3.h: Remove.
8415         * config/vax/netbsd.h: Remove.
8416         * config.build: Don't handle i[34567]86-*-pe.
8417         * config.gcc: Remove handling of deprecations for most deprecated
8418         targets.
8419         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8420         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8421         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8422         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8423         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8424         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8425         Remove cases.
8426         * config.host: Don't handle i[34567]86-*-pe.
8427         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8428         (ASM_SPEC32): Don't handle -mcall-gnu.
8429         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8430         -mcall-gnu.
8431         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8432         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8433         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8434         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8435         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8436         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8437         conditional on SYMBIAN.
8438         * configure.ac: Don't handle powerpc*-*-gnu*.
8439         * configure: Regenerate.
8440         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8441         * doc/install-old.texi (m6811, m6812): Don't mention.
8442         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8443         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8444         (m68k-uclinuxoldabi): Don't mention.
8445         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8446         Remove.
8447         (-mcall-gnu): Remove.
8448         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8449         families): Remove constraint documentation.
8450
8451 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8452
8453         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8454         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8455         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8456
8457 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8458
8459         PR target/48226
8460         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8461         vector when peeking at the next token for vector, don't expand the
8462         keywords.
8463
8464 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8465
8466         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8467         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8468         * config/avr/avr.c (init_cumulative_args)
8469         (avr_function_arg_advance): Use it.
8470         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8471         sibcall epilogues.
8472         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8473         (avr_function_ok_for_sibcall): ...this new function.
8474         (avr_lookup_function_attribute1): New static Function.
8475         (avr_naked_function_p, interrupt_function_p)
8476         (signal_function_p, avr_OS_task_function_p)
8477         (avr_OS_main_function_p): Use it.
8478         * config/avr/avr.md ("sibcall", "sibcall_value")
8479         ("sibcall_epilogue"): New expander.
8480         ("*call_insn", "*call_value_insn"): New insn.
8481         ("call_insn", "call_value_insn"): Remove
8482         ("call", "call_value", "epilogue"): Change expander to handle
8483         sibling calls.
8484
8485 2011-03-21  Nick Clifton  <nickc@redhat.com>
8486
8487         * doc/invoke.texi (Overall Options): Move closing brace to end of
8488         options list.
8489         (Optimization Options): Add missing @gol.
8490         (Directory Options): Likewise.
8491         (i386 and x86-64 Options): Likewise.
8492         (RS6000 and PowerPC Options): Likewise.
8493         (i386 and x86-64 Windows Options): Likewise.
8494         (V850 Options): Add text missing from descriptions.
8495
8496 2011-03-22  Richard Henderson  <rth@redhat.com>
8497
8498         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8499         (avr_incoming_return_addr_rtx): New.
8500         (emit_push_byte): New.
8501         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8502         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8503         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8504         (emit_pop_byte): New.
8505         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8506         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8507         (INCOMING_RETURN_ADDR_RTX): New.
8508         (INCOMING_FRAME_SP_OFFSET): New.
8509         (ARG_POINTER_CFA_OFFSET): New.
8510         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8511         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8512         (pophi): Remove.
8513
8514         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8515
8516 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8517
8518         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8519         (FUNCTION_ARG_ADVANCE): Likewise.
8520         * tm.texi.in: Change references to them to hook references.
8521         * tm.texi: Regenerate.
8522         * targhooks.c (default_function_arg): Eliminate check for target
8523         macro.
8524         (default_function_incoming_arg): Likewise.
8525         (default_function_arg_advance): Likewise.
8526         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8527         (function_arg_advance): Likewise.
8528         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8529
8530 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8531
8532         * tree.c (build_call_1): New function.
8533         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8534
8535 2011-03-22  Richard Guenther  <rguenther@suse.de>
8536
8537         PR tree-optimization/48228
8538         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8539         for single-arg PHIs.
8540
8541 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8542
8543         PR rtl-optimization/48143
8544         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8545         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8546         sse2_cvtps2pd): Likewise.
8547
8548 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8549
8550         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8551
8552 2011-03-22  Richard Guenther  <rguenther@suse.de>
8553
8554         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8555         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8556         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8557         and REALIGN_LOAD_EXPR.
8558         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8559         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8560         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8561         DOT_PROD_EXPR case ...
8562         (expand_expr_real_2): ... here.
8563         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8564         and REALIGN_LOAD_EXPR.
8565         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8566         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8567         (vect_create_epilog_for_reduction): Likewise.
8568         (vectorizable_reduction): Likewise.
8569         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8570         * tree-vect-stmts.c (vectorizable_load): Likewise.
8571
8572 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8573
8574         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8575
8576 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8577
8578         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8579         handling for PLTOFF/GOTOFF.
8580
8581 2011-03-22  Nick Clifton  <nickc@redhat.com>
8582
8583         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8584         trailing backslash from the end of the macro definition.
8585
8586 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8587
8588         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8589         and PLT unspecs.
8590
8591 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8592
8593         * expr.h (prepare_operand): Move to...
8594         * optabs.h (prepare_operand): ...here and change the insn code
8595         parameter from "int" to "enum insn_code".
8596         (insn_operand_matches): Declare.
8597         * expr.c (init_expr_target): Use insn_operand_matches.
8598         (compress_float_constant): Likewise.
8599         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8600         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8601         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8602         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8603         Likewise.
8604         (gen_cond_trap): Likewise.
8605         (prepare_operand): Likewise.  Change icode to an insn_code.
8606         (insn_operand_matches): New function.
8607         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8608         * reload1.c (gen_reload): Likewise.
8609         * targhooks.c (default_secondary_reload): Likewise.
8610
8611 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8612
8613         * config/alpha/alpha.md (unspec): New define_c_enum.
8614         (unspecv): Ditto.
8615
8616 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8617
8618         PR debug/48214
8619         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8620         between a call and its CALL_ARG_LOCATION note.
8621
8622 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8623
8624         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8625
8626 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8627
8628         PR c/42544
8629         PR c/48197
8630         * c-common.c (shorten_compare): If primopN is first sign-extended
8631         to opN and then zero-extended to result type, set primopN to opN.
8632
8633 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8634
8635         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8636         for barrier handlers.
8637
8638 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8639
8640         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8641         UNSPEC constants to be in the unspec enumeration, and redefine
8642         all UNSPECV constants to be in the unspecv enumeration, so that
8643         dumps print which unspec/unspec_volatile this is.
8644         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8645         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8646         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8647         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8648         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8649
8650         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8651         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8652         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8653         * config/rs6000/sync.md (isync, lwsync): Ditto.
8654
8655 2011-03-21  Richard Guenther  <rguenther@suse.de>
8656
8657         * params.def (lto-min-partition): Fix typo.
8658
8659 2011-03-21  Richard Guenther  <rguenther@suse.de>
8660
8661         PR c/47939
8662         * c-decl.c (grokdeclarator): Drop to the main variant only
8663         for array types.  Drop flag_gen_aux_info check.
8664
8665 2011-03-21  Richard Guenther  <rguenther@suse.de>
8666
8667         PR translation/47911
8668         * params.def (lto-partitions): Fix typo.
8669         (lto-min-partition): Fix wording.
8670
8671 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
8672
8673         * config/rs6000/t-freebsd: Remove duplication from file.
8674
8675 2011-03-21  Richard Guenther  <rguenther@suse.de>
8676
8677         PR middle-end/47661
8678         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8679
8680 2011-03-21  Richard Guenther  <rguenther@suse.de>
8681
8682         PR lto/48210
8683         * params.def (lto-partitions): Require at least 1 partition.
8684
8685 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8686
8687         * gthr-solaris.h: Remove.
8688         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8689         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8690         (LIB_SPEC): Likewise.
8691         * config/sol2.opt (threads): Remove.
8692         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8693         (sparc*-*-solaris2*): Likewise.
8694         * configure.ac (enable_threads): Enable solaris support.
8695         * configure: Regenerate.
8696         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8697         * doc/install.texi (Configuration, --enable-threads=lib): Remove
8698         solaris.
8699
8700 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8701
8702         * config.gcc: Obsolete *-*-solaris2.8*.
8703         * doc/install.texi (Specific, *-*-solaris2*): Document it.
8704
8705 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8706
8707         PR bootstrap/48135
8708         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8709         reference.  Solaris 8 perl works.
8710
8711 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8712
8713         PR bootstrap/48135
8714         * doc/install.texi (Prerequisites): Move jar etc. up.
8715         Explain support library version requirements.
8716
8717 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8718
8719         PR bootstrap/48135
8720         * doc/install.texi (Prerequisites): Move Perl to build
8721         requirements.  Always necessary on Solaris 2 with Sun ld.
8722
8723 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8724
8725         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8726         binutils 2.21.
8727         (Specific, i?86-*-solaris2.[89]): Likewise.
8728         (Specific, i?86-*-solaris2.10): Likewise.
8729         (Specific, mips-sgi-irix6): Likewise.
8730         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8731         Update for binutils 2.21.
8732
8733 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8734
8735         * configure.ac (gcc_cv_lto_plugin): Fix typo.
8736         Allow -fuse-linker-plugin for non-default plugin linker.
8737         * configure: Regenerate.
8738
8739 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8740
8741         PR bootstrap/48167
8742         * gengtype.c (files_rules): Added rule for cp/parser.h.
8743
8744 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8745
8746         PR target/48213
8747         * config/s390/s390.c (s390_delegitimize_address): Don't call
8748         lowpart_subreg if orig_x has BLKmode.
8749
8750 2011-03-21  Kai Tietz  <ktietz@redhat.com>
8751
8752         PR target/12171
8753         * doc/plugins.texi: Adjust documentation for plugin register_callback.
8754         * tree.h (attribute_spec): Add new member affects_type_identity.
8755         * attribs.c (empty_attribute_table): Adjust attribute_spec
8756         initializers.
8757         * config/alpha/alpha.c: Likewise.
8758         * config/arc/arc.c: Likewise.
8759         * config/arm/arm.c: Likewise.
8760         * config/avr/avr.c: Likewise.
8761         * config/bfin/bfin.c: Likewise.
8762         * config/crx/crx.c: Likewise.
8763         * config/darwin.h: Likewise.
8764         * config/h8300/h8300.c: Likewise.
8765         * config/i386/cygming.h: Likewise.
8766         * config/i386/i386.c: Likewise.
8767         * config/ia64/ia64.c: Likewise.
8768         * config/m32c/m32c.c: Likewise.
8769         * config/m32r/m32r.c: Likewise.
8770         * config/m68hc11/m68hc11.c: Likewise.
8771         * config/m68k/m68k.c: Likewise.
8772         * config/mcore/mcore.c: Likewise.
8773         * config/mep/mep.c: Likewise.
8774         * config/microblaze/microblaze.c: Likewise.
8775         * config/mips/mips.c: Likewise.
8776         * config/rs6000/rs6000.c: Likewise.
8777         * config/rx/rx.c: Likewise.
8778         * config/sh/sh.c: Likewise.
8779         * config/sol2.h: Likewise.
8780         * config/sparc/sparc.c: Likewise.
8781         * config/spu/spu.c: Likewise.
8782         * config/stormy16/stormy16.c: Likewise.
8783         * config/v850/v850.c: Likewise.
8784
8785 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
8786
8787         * simplify-rtx.c (simplify_binary_operation_1): Handle
8788         (xor (and A B) C) case when B and C are both constants.
8789
8790 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
8791
8792         * tree-dfa.c (add_referenced_var): Fix typo in comment.
8793
8794 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
8795
8796         PR bootstrap/48168
8797         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8798
8799 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
8800
8801         PR rtl-optimization/48156
8802         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8803         assume df and df_lr are not NULL.
8804
8805 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8806
8807         PR debug/48023
8808         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8809         between a call and its CALL_ARG_LOCATION note.
8810
8811 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8812
8813         PR debug/48178
8814         * config/sh/sh.c (find_barrier): Don't emit a constant pool
8815         between a call and its corresponding CALL_ARG_LOCATION note.
8816
8817 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
8818
8819         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8820         instead of loop. Use HARD_REGISTER_NUM_P predicate.
8821         * haifa-sched.c (setup_ref_regs): Ditto.
8822         * caller-save.c (add_used_regs_1): Ditto.
8823         * dse.c (look_for_hardregs): Ditto.
8824         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8825         * sched-rgn.c (check_live_1): Ditto.
8826
8827 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8828
8829         * c-decl.c (diagnose_mismatched_decls): Give an error for
8830         redefining a typedef with variably modified type.
8831
8832 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8833
8834         * c-decl.c (grokfield): Don't allow typedefs for structures or
8835         unions with no tag by default.
8836         * doc/extend.texi (Unnamed Fields): Update.
8837
8838 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
8839
8840         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8841         Rewrite using indirect functions.
8842         (lwp_slwpcb): Ditto.
8843         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8844         (avx_vinsertf128<mode>): Ditto.
8845
8846 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8847
8848         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8849         unspecs.
8850
8851 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8852
8853         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8854         splitting between a call and its corresponding CALL_ARG_LOCATION note.
8855
8856 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8857
8858         PR rtl-optimization/48170
8859         * gcse.c (hoist_code): Remove bogus asserts.
8860
8861 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
8862
8863         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8864         computation for prologue/epilogue.
8865
8866 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8867
8868         * Makefile.in (check-consistency): Remove.
8869
8870 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
8871
8872         PR debug/48176
8873         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8874         arange_table_in_use is 0, but either text_section_used or
8875         cold_text_section_used is true.  Don't call it if
8876         !info_section_emitted.
8877
8878 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
8879
8880         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8881         FUNCTION_VALUE_REGNO_P): Remove.
8882         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8883         Remove.
8884         * config/avr/avr.c (avr_ret_register): Make static inline.
8885         (avr_function_value_regno_p): New function.
8886         (avr_libcall_value): Make static. Add 'func' argument.
8887         (avr_function_value): Make static. Rename 'func' argument to
8888         'fn_decl_or_type', forward it to avr_libcall_value. Call
8889         avr_ret_register function instead of RET_REGISTER macro.
8890         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8891
8892 2011-03-18  Jason Merrill  <jason@redhat.com>
8893
8894         PR c++/23372
8895         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8896
8897 2011-03-18  Richard Guenther  <rguenther@suse.de>
8898
8899         * doc/install.texi (--enable-gold): Remove.
8900         (--with-plugin-ld): Document.
8901         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8902
8903 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
8904
8905         PR middle-end/47790
8906         * expr.c (optimize_bitfield_assignment_op): Revamp to work
8907         again after expansion changes.
8908
8909 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
8910
8911         * combine.c (try_combine): Do simplification only call of
8912         subst() on i2 even when i1 is present. Update comments.
8913
8914 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8915
8916         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8917         and UNSPEC_PCREL_SYMOFF.
8918
8919 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8920
8921         * config/s390/s390.md: Use define_c_enum for the unspec constant
8922         definitions.
8923
8924 2011-03-18  Richard Henderson  <rth@redhat.com>
8925             Jakub Jelinek  <jakub@redhat.com>
8926
8927         PR bootstrap/48161
8928         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8929         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8930
8931 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8932
8933         PR middle-end/47725
8934         * combine.c (cant_combine_insn_p): Don't check zero/sign
8935         extended hard registers.
8936
8937 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8938
8939         PR middle-end/47725
8940         * combine.c (cant_combine_insn_p): Check zero/sign extended
8941         hard registers.
8942
8943 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
8944
8945         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8946         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8947         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8948         Change return type to bool.
8949         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8950
8951 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8952
8953         PR debug/48163
8954         * var-tracking.c (prepare_call_arguments): If CALL target
8955         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8956         pc instead of looking it up using cselib_lookup and use
8957         Pmode for it if x has VOIDmode.
8958         * dwarf2out.c (gen_subprogram_die): If also both first and
8959         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8960
8961         PR debug/48163
8962         * function.c (assign_parms): For data.passed_pointer parms
8963         use MEM of data.entry_parm instead of data.entry_parm itself
8964         as DECL_INCOMING_RTL.
8965         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8966         also when passed and declared mode is the same, DECL_RTL
8967         is a MEM with pseudo as address and DECL_INCOMING_RTL is
8968         a MEM too.
8969
8970 2011-03-16  Jeff Law  <law@redhat.com>
8971
8972         PR rtl-optimization/37273
8973         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8974         handle them like argument loads from stack slots.  Do not double
8975         count memory for memory constants and argument loads from stack slots.
8976
8977 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8978
8979         PR debug/48160
8980         * var-tracking.c (prepare_call_arguments): Check SUBREG.
8981
8982 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8983
8984         PR target/48171
8985         * config/i386/i386.opt: Add Save to -mavx and -mfma.
8986
8987 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8988
8989         PR bootstrap/48153
8990         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8991         if dwarf_strict.
8992         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8993         Clear call_arg_locations and call_arg_loc_last always.
8994
8995         PR middle-end/48152
8996         * var-tracking.c (prepare_call_arguments): If argument needs to be
8997         passed by reference, adjust argtype and mode.
8998
8999 2011-03-17  Richard Guenther  <rguenther@suse.de>
9000
9001         PR middle-end/48134
9002         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9003         a value make sure to fold the statement.
9004
9005 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9006
9007         PR target/43872
9008         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9009         return condition with !cfun->calls_alloca.
9010
9011 2011-03-17  Richard Guenther  <rguenther@suse.de>
9012
9013         PR bootstrap/48148
9014         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9015         origin for decls in other ltrans units.
9016         (input_varpool_node): Likewise.
9017
9018 2011-03-17  Richard Guenther  <rguenther@suse.de>
9019
9020         PR middle-end/48165
9021         * tree-object-size.c (compute_object_offset): Properly return
9022         the offset operand of MEM_REFs as sizetype.
9023
9024 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9025
9026         PR rtl-optimization/48141
9027         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9028         * dse.c: Include params.h.
9029         (active_local_stores_len): New variable.
9030         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9031         to NULL.
9032         (record_store, check_mem_read_rtx): Decrease it when removing
9033         from the chain.
9034         (scan_insn): Likewise.  Increase it when adding to chain, if it
9035         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9036         set active_local_stores to NULL before the addition.
9037         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9038
9039         PR rtl-optimization/48141
9040         * dse.c (record_store): If no positions are needed in an insn
9041         that cannot be deleted, at least unchain it from active_local_stores.
9042
9043 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9044
9045         PR debug/47510
9046         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9047         (lookup_type_die_strip_naming_typedef): ... here.
9048         (get_context_die): Use it.
9049         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9050         the anonymous struct named by the naming typedef.
9051
9052 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9053
9054         PR target/48154
9055         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9056         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9057
9058 2011-03-16  Jeff Law  <law@redhat.com>
9059
9060         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9061         check for operands of conditional.  Allow type to be a pointer.
9062
9063 2011-03-16  Richard Guenther  <rguenther@suse.de>
9064
9065         PR tree-optimization/48149
9066         * fold-const.c (fold_binary_loc): Fold
9067         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9068
9069 2011-03-16  Richard Guenther  <rguenther@suse.de>
9070
9071         PR tree-optimization/26134
9072         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9073         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9074         (non_rewritable_mem_ref_base): Handle complex type component
9075         accesses, constrain offsets for vector and complex extracts
9076         more properly.
9077
9078 2011-03-16  Richard Guenther  <rguenther@suse.de>
9079
9080         PR tree-optimization/48146
9081         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9082         operands avoiding the need for renaming.
9083
9084 2011-03-16  Richard Guenther  <rguenther@suse.de>
9085
9086         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9087         constant folding.  Move MEM_REF canonicalization first.
9088         Rely on fold_const_aggregate_ref for initializer folding.
9089         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9090
9091 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9092
9093         PR middle-end/48136
9094         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9095         arg0/arg1 or their arguments are always fold converted to matching
9096         types.
9097
9098         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9099         to nargs.
9100
9101 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9102
9103         PR lto/46944
9104         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9105         Handle in-tree gold.
9106         (ld_vers): Extract binutils version for gold.
9107         (gcc_cv_ld_hidden): Handle gold here.
9108         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9109         * configure: Regenerate.
9110         * config.in: Regenerate.
9111         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9112         -fuse-linker-plugin otherwise.
9113         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9114         (LINK_COMMAND_SPEC): Use it.
9115         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9116
9117 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9118
9119         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9120         * calls.c: Remove debug.h include.
9121         (emit_call_1): Don't call virtual_call_token debug hook.
9122         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9123         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9124         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9125         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9126         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9127         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9128         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9129         dwarf2out_virtual_call): Remove.
9130         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9131         copy_call_info and virtual_call hooks.
9132         (dwarf2out_init): Don't initialize vcall_insn_table,
9133         debug_dcall_section and debug_vcall_section.
9134         (prune_unused_types): Don't mark nodes from dcall_table.
9135         (dwarf2out_finish): Don't output dcall or vcall tables.
9136         * final.c (final_scan_insn): Don't call direct_call or
9137         virtual_call debug hooks.
9138         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9139         virtual_call_token, copy_call_info and virtual_call hooks.
9140         (debug_nothing_uid): Remove prototype.
9141         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9142         copy_call_info and virtual_call hooks.
9143         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9144         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9145         * debug.c (do_nothing_debug_hooks): Likewise.
9146         (debug_nothing_uid): Remove.
9147         * doc/invoke.texi (-fenable-icf-debug): Remove.
9148         * common.opt (-fenable-icf-debug): Likewise.
9149
9150         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9151         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9152         call's MEM.  Handle functions returning aggregate through a hidden
9153         first pointer.  For virtual calls add clobbered pc to call arguments
9154         chain.
9155         * dwarf2out.c (gen_subprogram_die): Emit
9156         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9157         can't be emitted.
9158
9159         PR debug/45882
9160         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9161         * rtl.h (ENTRY_VALUE_EXP): Define.
9162         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9163         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9164         * print-rtl.c (print_rtx): Likewise.
9165         * gengtype.c (adjust_field_rtx_def): Likewise.
9166         * var-tracking.c (vt_add_function_parameter): Adjust
9167         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9168         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9169         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9170         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9171         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9172
9173         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9174         Call var_location debug hook even on CALL_INSNs.
9175         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9176         * rtl.def (ENTRY_VALUE): New.
9177         * dwarf2out.c: Include cfglayout.h.
9178         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9179         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9180         (struct call_arg_loc_node): New type.
9181         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9182         tail_call_site_count): New variables.
9183         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9184         DW_TAG_GNU_call_site_parameter.
9185         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9186         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9187         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9188         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9189         and DW_AT_GNU_all_source_call_sites.
9190         (mem_loc_descriptor): Handle ENTRY_VALUE.
9191         (add_src_coords_attributes): Don't add enything if
9192         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9193         (dwarf2out_abstract_function): Save and clear call_arg_location,
9194         call_site_count and tail_call_site_count around dwarf2out_decl call.
9195         (gen_call_site_die): New function.
9196         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9197         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9198         (dwarf2out_function_decl): Clear call_arg_locations,
9199         call_arg_loc_last, set call_site_count and tail_call_site_count
9200         to -1 and free block_map.
9201         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9202         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9203         followed by any real instructions.
9204         (dwarf2out_begin_function): Set call_site_count and
9205         tail_call_site_count to 0.
9206         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9207         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9208         attempt to force a DIE for it and worst case remove the attribute.
9209         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9210         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9211         the decl itself.
9212         * var-tracking.c: Include tm_p.h.
9213         (vt_stack_adjustments): For calls call note_register_arguments.
9214         (argument_reg_set): New variable.
9215         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9216         ensure the VALUE is resolved.
9217         (call_arguments): New variable.
9218         (prepare_call_arguments): New function.
9219         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9220         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9221         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9222         always use the best expression.
9223         (vt_expand_loc): Add ignore_cur_loc argument.
9224         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9225         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9226         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9227         note for all calls.
9228         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9229         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9230         argument.  Don't call cselib_preserve_only_values and
9231         cselib_reset_table.
9232         (note_register_arguments): New function.
9233         (vt_initialize): Compute argument_reg_set.  Call
9234         vt_add_function_parameters before processing basic blocks instead of
9235         afterwards.  For calls call prepare_call_arguments before calling
9236         cselib_process_insn.
9237         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9238         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9239         (var-tracking.o): Depend on $(TM_P_H).
9240         * cfglayout.h (insn_scope): New prototype.
9241         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9242         * cfglayout.c (insn_scope): No longer static.
9243         * insn-notes.def (CALL_ARG_LOCATION): New.
9244         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9245         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9246         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9247         nothing for DECL_EXTERNAL BLOCK_VARS.
9248
9249 2011-03-16  Alan Modra  <amodra@gmail.com>
9250
9251         PR target/45844
9252         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9253         create invalid offset address for vsx splat insn.
9254         * config/rs6000/predicates.md (splat_input_operand): New.
9255         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9256
9257 2011-03-15  Xinliang David Li  <davidxl@google.com>
9258
9259         PR c/47837
9260         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9261         (normalize_preds): New function.
9262         (is_use_properly_guarded): Normalize def predicates.
9263
9264 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9265
9266         PR target/46788
9267         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9268         in the output template.
9269
9270 2011-03-15  Richard Guenther  <rguenther@suse.de>
9271
9272         PR middle-end/47650
9273         * tree-pretty-print.c (dump_function_declaration): Properly
9274         dump unprototyped and varargs function types.
9275
9276 2011-03-15  Richard Guenther  <rguenther@suse.de>
9277
9278         PR tree-optimization/13954
9279         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9280         and friends.
9281
9282 2011-03-15  Richard Guenther  <rguenther@suse.de>
9283
9284         PR tree-optimization/48037
9285         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9286         selects into BIT_FIELD_REFs.
9287         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9288         vector select.
9289
9290 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9291
9292         PR tree-optimization/48129
9293         * builtins.c (fold_builtin_snprintf): Convert to type of
9294         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9295         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9296
9297 2011-03-15  Richard Guenther  <rguenther@suse.de>
9298
9299         PR tree-optimization/41490
9300         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9301         value but with VUSE.
9302         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9303         return statements.
9304         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9305         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9306         * tree-tailcall.c (find_tail_calls): Ignore returns.
9307
9308 2011-03-15  Richard Guenther  <rguenther@suse.de>
9309
9310         PR middle-end/48031
9311         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9312         or variable-indexed array accesses when in gimple form.
9313
9314 2011-03-15  Richard Guenther  <rguenther@suse.de>
9315
9316         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9317
9318 2011-03-15  Alan Modra  <amodra@gmail.com>
9319
9320         PR target/48032
9321         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9322         presume symbol_refs without a symbol_ref_decl are suitably
9323         aligned, nor other trees we may see here.  Handle anchor symbols.
9324         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9325         Check cmodel=medium addresses.  Adjust all calls.
9326         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9327         creating cmodel=medium optimized access to locals.
9328         * config/rs6000/constraints.md (R): Pass QImode to
9329         legitimate_constant_pool_address_p.
9330         * config/rs6000/predicates.md (input_operand): Pass mode to
9331         legitimate_constant_pool_address_p.
9332         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9333         Update prototype.
9334
9335 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9336
9337         PR target/48053
9338         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9339         64-bit constants being loaded into registers other than GPRs such
9340         as loading 0 into a VSX register.
9341
9342 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9343
9344         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9345
9346 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9347
9348         PR middle-end/47917
9349         * builtins.c (fold_builtin_snprintf): New function.
9350         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9351         (fold_builtin_4): Likewise.
9352
9353         PR middle-end/38878
9354         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9355         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9356         and C - X == X also strip nops from +/-/p+ operand.
9357         When optimizing -X == C, fold C to arg0's type.
9358
9359         PR debug/47946
9360         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9361         emit it as add_AT_int instead of add_AT_unsigned.
9362
9363 2011-03-14  Tom Tromey  <tromey@redhat.com>
9364
9365         * unwind-dw2.c: Include sys/sdt.h if it exists.
9366         (_Unwind_DebugHook): Use STAP_PROBE2.
9367         * config.in, configure: Rebuild.
9368         * configure.ac: Check for sys/sdt.h.
9369
9370 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9371
9372         * config/i386/i386.md (ROUND_FLOOR): New constant.
9373         (ROUND_CEIL): Ditto.
9374         (ROUND_TRUNC): Ditto.
9375         (ROUND_MXCSR): Ditto.
9376         (ROUND_NO_EXC): Ditto.
9377         (rint<mode>2): Use new defines instead of numerical constants.
9378         (floor<mode>2): Ditto.
9379         (ceil<mode>2): Ditto.
9380         (btrunc<mode>2): Ditto.
9381         * config/i386/i386-builtin-types.def: Define ROUND function type
9382         aliases.
9383         * config/i386/i386.c (enum ix86_builtins): Add
9384         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9385         (struct builtin_description): Add
9386         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9387         (ix86_expand_sse_round): New static function.
9388         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9389         function types.
9390         (ix86_builtin_vectorized_function): Handle
9391         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9392
9393 2011-03-14  Tom Tromey  <tromey@redhat.com>
9394
9395         * c-parser.c (c_parser_asm_string_literal): Clear
9396         warn_overlength_strings.
9397
9398 2011-03-14  Tom Tromey  <tromey@redhat.com>
9399
9400         * c-parser.c (disable_extension_diagnostics): Save
9401         warn_overlength_strings.
9402         (restore_extension_diagnostics): Restore warn_overlength_strings.
9403
9404 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9405
9406         * BASE-VER: Change to 4.7.0.
9407
9408 2011-03-14  Richard Guenther  <rguenther@suse.de>
9409
9410         PR middle-end/48098
9411         * tree.c (build_vector_from_val): Adjust assert to requirements
9412         and reality.
9413
9414 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9415
9416         PR bootstrap/48102
9417         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9418
9419 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9420
9421         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9422         terms of target_flags_explicit. Adjust copyright year.
9423
9424         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9425         * config/rs6000/t-freebsd: New file. Add override for
9426         LIB2FUNCS_EXTRA.
9427
9428 2011-03-13  Chris Demetriou  <cgd@google.com>
9429
9430         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9431         (-fno-diagnostics-show-option): this, to reflect current default.
9432         (-Werror=): Update text about -fno-diagnostics-show-option.
9433
9434 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9435
9436         PR target/48053
9437         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9438         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9439         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9440         mode is not V2DImode or V2DFmode.
9441         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9442         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9443         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9444         registers to 0.
9445         (movdi_internal64): Likewise.
9446
9447 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9448
9449         PR tree-optimization/47127
9450         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9451         parameter.
9452         (set_cloog_options): Same.
9453         (scop_to_clast): Same.
9454         (print_clast_stmt): Do not call cloog_state_malloc and
9455         cloog_state_free.
9456         (print_generated_program): Same.
9457         (gloog): Same.
9458         * graphite-clast-to-gimple.h (cloog_state): Declared.
9459         (scop_to_clast): Adjust declaration.
9460         * graphite.c (cloog_state): Defined here.
9461         (graphite_initialize): Call cloog_state_malloc.
9462         (graphite_finalize): Call cloog_state_free.
9463
9464 2011-03-11  Jason Merrill  <jason@redhat.com>
9465
9466         * attribs.c (lookup_attribute_spec): Take const_tree.
9467         * tree.h: Adjust.
9468
9469 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9470
9471         * config/sparc/sparc.c (sparc_option_override): Use
9472         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9473
9474 2011-03-11  Richard Guenther  <rguenther@suse.de>
9475
9476         PR tree-optimization/48067
9477         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9478         multiplication result will be only used once on the target
9479         stmt.
9480
9481 2011-03-11  Richard Guenther  <rguenther@suse.de>
9482
9483         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9484
9485 2011-03-11  Richard Guenther  <rguenther@suse.de>
9486
9487         PR lto/48073
9488         * tree.c (find_decls_types_r): Do not walk types only reachable
9489         from IDENTIFIER_NODEs.
9490
9491 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9492
9493         PR middle-end/48044
9494         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9495         all vnode->force_output nodes as needed.
9496
9497 2011-03-11  Jason Merrill  <jason@redhat.com>
9498
9499         PR c++/48069
9500         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9501         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9502
9503 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9504
9505         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9506         cgraph_node.
9507
9508 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9509
9510         PR tree-optimization/48063
9511         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9512         inline functions called once if !tree_can_inline_p (node->callers).
9513
9514 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9515
9516         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9517         extra_objs.
9518         * config/score/score3.c: Delete.
9519         * config/score/score3.h: Delete.
9520         * config/score/mul-div.S: Delete.
9521         * config/score/sfp-machine.h: Add new file.
9522         * config/score/constraints.md: Add new file.
9523         * config/score/t-score-softfp: Add new file.
9524         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9525         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9526         (score7_extra_constraint): Delete.
9527         (score7_option_override): Remove unused code.
9528         * config/score/score.c: Remove score3 and score5 define and code.
9529         * config/score/score.h: Remove score3 and score5 define and code.
9530         * config/score/score.md: Remove score3 template and unusual insn.
9531         * config/score/score.opt: Remove score3 and score5 options.
9532
9533 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9534
9535         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9536         when _HPUX_SOURCE is defined.
9537         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9538
9539 2011-03-10  Jason Merrill  <jason@redhat.com>
9540
9541         PR c++/48029
9542         * stor-layout.c (layout_type): Don't set structural equality
9543         on arrays of incomplete type.
9544         * tree.c (type_hash_eq): Handle comparing them properly.
9545
9546 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9547
9548         PR debug/48043
9549         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9550         result mode matches original rtl mode.
9551
9552 2011-03-10  Nick Clifton  <nickc@redhat.com>
9553
9554         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9555         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9556
9557 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9558
9559         PR rtl-optimization/47866
9560         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9561         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9562         if target wasn't scalar.
9563         * function.c (assign_stack_temp_for_type): Assert that neither
9564         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9565         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9566         macro.
9567         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9568
9569 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9570
9571         * config/s390/s390-protos.h (s390_label_align): New prototype.
9572         * config/s390/s390.c (s390_label_align): New function.
9573         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9574
9575 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9576
9577         PR target/47755
9578         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9579         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9580         (output_vec_const_move): Ditto.
9581
9582 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9583
9584         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9585         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9586         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9587         Change 'rclass' argument and result type to reg_class_t.
9588         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9589
9590 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9591
9592         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9593         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9594         (TARGET_MEMORY_MOVE_COST): Define.
9595         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9596
9597 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9598
9599         PR debug/47881
9600         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9601         removed anything.
9602
9603         PR tree-optimization/48022
9604         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9605         for EQ/NE_EXPR.
9606
9607 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9608
9609         PR debug/47991
9610         * var-tracking.c (find_use_val): Return NULL for
9611         cui->sets && cui->store_p BLKmode MEMs.
9612
9613 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9614
9615         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9616         Remove.
9617         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9618         xstormy16_print_operand_address): Remove.
9619         * config/stormy16/stormy16.c (xstormy16_print_operand,
9620         xstormy16_print_operand_address): Make static.
9621         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9622
9623 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9624
9625         PR target/47862
9626         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9627         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9628         before definition.
9629
9630 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9631
9632         PR bootstrap/48000
9633         * cfgloopmanip.c (fix_bb_placements): Return immediately
9634         if FROM is BASE_LOOP's header.
9635
9636 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9637
9638         * gimplify.c (gimplify_function_tree): Fix building calls
9639         to __builtin_return_address.
9640
9641 2011-03-07  Alan Modra  <amodra@gmail.com>
9642
9643         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9644         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9645         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9646         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9647         return_mode args.
9648         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9649         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9650         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9651         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9652         * config/rs6000/rs6000.c
9653         (rs6000_elf_end_indicate_exec_stack): Rename to..
9654         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9655         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9656         (rs6000_file_start): ..here.
9657         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9658         file scope variables.
9659         (call_ABI_of_interest): New function.
9660         (init_cumulative_args): Set above vars when function return value
9661         is a float, vector, or small struct.
9662         (rs6000_function_arg_advance_1): Likewise for function args.
9663         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9664         references float args.
9665
9666 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9667
9668         * doc/cfg.texi: Remove "See" before @ref.
9669         * doc/invoke.texi: Likewise.
9670
9671 2011-03-05  Jason Merrill  <jason@redhat.com>
9672
9673         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9674
9675 2011-03-05  Anthony Green  <green@moxielogic.com>
9676
9677         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9678
9679 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
9680
9681         PR rtl-optimization/47899
9682         * cfgloopmanip.c (fix_bb_placements): Fix first argument
9683         to flow_loop_nested_p when moving the loop upward.
9684
9685 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
9686
9687         PR target/47719
9688         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
9689
9690 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
9691
9692         PR tree-optimization/47967
9693         * ipa-cp.c (build_const_val): Return NULL instead of creating
9694         VIEW_CONVERT_EXPR for mismatching sizes.
9695         (ipcp_create_replace_map): Return NULL if build_const_val failed.
9696         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9697         give up on versioning.
9698
9699 2011-03-05  Alan Modra  <amodra@gmail.com>
9700
9701         PR target/47986
9702         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9703         full cmodel medium/large lo_sum + high addresses.
9704
9705 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9706
9707         * config/s390/s390.c (s390_decompose_address): Reject non-literal
9708         pool references in UNSPEC_LTREL_OFFSET.
9709
9710 2011-03-04  Jan Hubicka  <jh@suse.cz>
9711
9712         PR lto/47497
9713         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9714         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9715         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9716         Add node pointers.
9717         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9718         cgraph_add_thunk): Add node pointers.
9719         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9720         associated to right node.
9721         (input_node): Update use of cgraph_same_body_alias
9722         and cgraph_add_thunk.
9723
9724 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9725
9726         * config/i386/i386.opt (mprefer-avx128): New flag.
9727         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9728         modes when the flag -mprefer-avx128 is on.
9729
9730 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9731
9732         * dwarf2out.c (compare_loc_operands): Fix address handling.
9733
9734 2011-03-04  Alan Modra  <amodra@gmail.com>
9735
9736         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9737
9738 2011-03-04  Richard Guenther  <rguenther@suse.de>
9739
9740         PR middle-end/47968
9741         * expmed.c (extract_bit_field_1): Prefer vector modes that
9742         vec_extract patterns can handle.
9743
9744 2011-03-04  Richard Guenther  <rguenther@suse.de>
9745
9746         PR middle-end/47975
9747         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9748
9749 2011-03-04  Richard Henderson  <rth@redhat.com>
9750
9751         * explow.c (emit_stack_save): Remove 'after' parameter.
9752         (emit_stack_restore): Likewise.
9753         * expr.h: Update to match.
9754         * builtins.c, calls.c, stmt.c: Likewise.
9755         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9756         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9757         * function.c (expand_function_end): Insert the emit_stack_save
9758         sequence before parm_birth_insn instead of after.
9759
9760 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
9761
9762         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9763         (ssse3_pmaddubsw128): Ditto.
9764         (ssse3_pmaddubsw): Ditto.
9765
9766 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
9767
9768         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9769
9770 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
9771
9772         PR c/47963
9773         * gimplify.c (omp_add_variable): Only call omp_notice_variable
9774         on TYPE_SIZE_UNIT if it is a DECL.
9775
9776         PR debug/47283
9777         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9778         first operand is not is_gimple_mem_ref_addr, try to fold it.
9779         If the operand still isn't is_gimple_mem_ref_addr, clear
9780         MEM_EXPR on op0.
9781
9782 2011-03-03  Richard Guenther  <rguenther@suse.de>
9783
9784         PR middle-end/47283
9785         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9786         match comment.
9787         (refs_may_alias_p_1): For release branches return true if
9788         we are confused by our input.
9789
9790 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9791
9792         * config/s390/s390.c (s390_function_value): Rename to ...
9793         (s390_function_and_libcall_value): ... this.
9794         (s390_function_value): New function.
9795         (s390_libcall_value): New function.
9796         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9797         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9798         target macro definitions.
9799         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9800
9801 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
9802
9803         * config/i386/freebsd64.h (CC1_SPEC): Define.
9804         * config/i386/linux64.h (CC1_SPEC): Define.
9805         * config/i386/x86-64.h (CC1_SPEC): Don't define.
9806
9807 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
9808
9809         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9810         Remove.
9811         * config/stormy16/stormy16.c: Include reload.h.
9812         (xstormy16_memory_move_cost): New function.
9813         (TARGET_MEMORY_MOVE_COST): Define.
9814
9815 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
9816
9817         PR rtl-optimization/47925
9818         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9819         with side effects.  Remove the more-specific check for volatile asms.
9820
9821 2011-03-02  Alan Modra  <amodra@gmail.com>
9822
9823         PR target/47935
9824         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9825         toc relative addresses for valid offsets.
9826
9827 2011-03-01  Richard Guenther  <rguenther@suse.de>
9828
9829         PR tree-optimization/47890
9830         * tree-vect-loop.c (get_initial_def_for_induction): Set
9831         related stmt properly.
9832
9833 2011-03-01  Richard Guenther  <rguenther@suse.de>
9834
9835         PR lto/47924
9836         * lto-streamer.c (lto_record_common_node): Also register
9837         the canonical type.
9838
9839 2011-03-01  Richard Guenther  <rguenther@suse.de>
9840
9841         PR lto/46911
9842         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9843         Do not stream DECL_ABSTRACT_ORIGIN.
9844         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9845         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9846         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9847         Do not stream DECL_ABSTRACT_ORIGIN.
9848         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9849         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9850
9851 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
9852
9853         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9854         FUNCTION_VALUE_REGNO_P): Remove.
9855         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9856         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9857         Add 'outgoing' argument.
9858         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9859         function.
9860         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9861         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9862
9863 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
9864
9865         PR debug/28047
9866         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9867         (lookup_filename): Likewise.
9868         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9869
9870 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
9871             Jakub Jelinek  <jakub@redhat.com>
9872
9873         PR middle-end/47893
9874         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9875         (assign_stack_local_1): Change last argument type to int.
9876         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9877         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
9878         don't record padding space into frame_space_list nor use those areas.
9879         (assign_stack_local): Adjust caller.
9880         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9881         of assign_stack_local, pass 0 as last argument.
9882         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9883         callers.
9884
9885 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
9886
9887         PR debug/47283
9888         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9889         Use target address_mode and pointer_mode hooks instead of hardcoded
9890         Pmode and ptr_mode.  Handle some simple cases of extending if
9891         POINTERS_EXTEND_UNSIGNED < 0.
9892         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9893         Call convert_debug_memory_address.
9894         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9895         convert_debug_memory_address.
9896
9897         PR middle-end/46790
9898         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9899         * configure: Regenerated.
9900         * config.in: Regenerated.
9901         * varasm.c (default_function_section): Return NULL
9902         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9903
9904 2011-02-28  Martin Jambor  <mjambor@suse.cz>
9905
9906         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9907         the description to match the printed values.
9908
9909 2011-02-28  Richard Guenther  <rguenther@suse.de>
9910
9911         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9912         of the copied scope tree.
9913
9914 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9915
9916         * doc/extend.texi (Function Attributes): Avoid deeply (and
9917         wrongly) nested tables.
9918
9919 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
9920
9921         PR middle-end/47903
9922         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9923         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9924         r isn't op0 nor op1.
9925
9926 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9927
9928         * config/avr/avr.md: Remove magic comment for emacs.
9929
9930 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9931
9932         PR target/45261
9933         * config/avr/avr.c (avr_option_override): Use error on bad options.
9934         (avr_help): New function.
9935         (TARGET_HELP): Define.
9936
9937 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
9938
9939         PR target/42240
9940         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9941         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9942
9943 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
9944
9945         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9946         (ARM Options): Ditto.
9947         (i386 and x86-64 Options): Ditto.
9948         (RX Options): Ditto.
9949         (SPARC Options): Ditto.
9950
9951 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
9952
9953         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9954         FreeBSD 6 and later.  Generally use cpu generic.
9955
9956 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9957
9958         * doc/cpp.texi: Update copyright years.
9959
9960 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9961
9962         PR target/46898
9963         * config/lm32/lm32.md (ashrsi3): Added needed variable.
9964
9965 2011-02-25  Jon Beniston  <jon@beniston.com>
9966
9967         PR target/46898
9968         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9969         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9970         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9971         (lm32_block_move_inline): Add type cast to remove warning.
9972         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9973         (gen_int_relational): Move declarations to start of function.
9974
9975 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9976
9977         PR tree-optimization/45470
9978         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9979         can throw internally only.
9980         * tree-vect-stmts.c (vectorizable_call): Likewise.
9981
9982 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
9983
9984         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9985         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9986         * config/stormy16/stormy16-protos.h
9987         (xstormy16_preferred_reload_class): Remove.
9988         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9989         static. Change 'rclass' argument and return type to reg_class_t.
9990         (TARGET_PREFERRED_RELOAD_CLASS,
9991         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9992
9993 2011-02-24  Richard Guenther  <rguenther@suse.de>
9994
9995         * lto-streamer-in.c (input_bb): Do not find referenced vars
9996         in debug statements.
9997
9998 2011-02-23  Jason Merrill  <jason@redhat.com>
9999
10000         * common.opt (fabi-version): Document v5 and v6.
10001
10002 2011-02-23  Richard Guenther  <rguenther@suse.de>
10003
10004         PR tree-optimization/47849
10005         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10006
10007 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10008
10009         * opts-common.c (decode_cmdline_option): Print empty string
10010         argument as "" in decoded->orig_option_with_args_text.
10011         * gcc.c (execute): Print empty string argument as ""
10012         in the verbose output.
10013         (do_spec_1): Keep empty string argument.
10014
10015 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10016
10017         * config.gcc: Declare score-* and crx-* obsolete.
10018
10019 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10020
10021         PR rtl-optimization/47763
10022         * web.c (web_main): Ignore naked clobber when replacing register.
10023
10024 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10025
10026         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10027         Remove.
10028
10029 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10030
10031         PR doc/47848
10032         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10033
10034 2011-02-22  Mike Stump  <mikestump@comcast.net>
10035
10036         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10037         assembler.
10038         * configure: Regenerate.
10039
10040 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10041
10042         PR rtl-optimization/46002
10043         * ira-color.c (update_copy_costs): Change class intersection
10044         test to reg_class_contents[] test of 'hard_regno'.
10045
10046 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10047
10048         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10049         than Driver option.
10050         * config/hpux11.opt (mt): Likewise.
10051         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10052         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10053         * config/vax/elf.opt (mno-asm-pic): Likewise.
10054         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10055
10056 2011-02-21  Mike Stump  <mikestump@comcast.net>
10057
10058         PR target/47822
10059         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10060         tree so we can get save the type.
10061         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10062         for CFString instead of trying to use past the end of the builtins.
10063         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10064         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10065         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10066         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10067         Rename to darwin_builtin_cfstring.
10068         (darwin_init_cfstring_builtins): Return the built type.
10069
10070 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10071
10072         PR target/47840
10073         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10074         (_mm256_insert_epi64): Use _mm_insert_epi64.
10075
10076 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10077
10078         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10079         * config/stormy16/stormy16-protos.h
10080         (xstormy16_mode_dependent_address_p): Remove.
10081         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10082         Make static. Change return type to bool. Change argument type to
10083         const_rtx. Remove dead code.
10084         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10085
10086 2011-02-21  Richard Guenther  <rguenther@suse.de>
10087
10088         PR lto/47820
10089         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10090         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10091         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10092         TUs context.
10093         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10094         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10095
10096 2011-02-20  Richard Guenther  <rguenther@suse.de>
10097
10098         PR lto/47822
10099         * tree.c (free_lang_data_in_decl): Clean builtins from
10100         the TU decl BLOCK_VARS.
10101
10102 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10103
10104         PR debug/47620
10105         PR debug/47630
10106         * haifa-sched.c (fix_tick_ready): Skip tick computation
10107         for debug insns.
10108
10109 2011-02-19  Richard Guenther  <rguenther@suse.de>
10110
10111         PR lto/47647
10112         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10113         Remove lazy BLOCK_VARS streaming.
10114         (lto_input_ts_block_tree_pointers): Likewise.
10115         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10116
10117 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10118
10119         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10120
10121 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10122
10123         * config/i386/biarch32.h, config/i386/mach.h,
10124         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10125
10126 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10127
10128         PR target/47800
10129         * config/i386/i386.md (peephole2 for shift and plus): Use
10130         operands[1] original mode in the first insn.
10131
10132 2011-02-18  Mike Stump  <mikestump@comcast.net>
10133
10134         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10135
10136 2011-02-18  Jan Hubicka  <jh@suse.cz>
10137
10138         PR middle-end/47788
10139         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10140         to zero when the function is not inlinable at all.
10141
10142 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10143
10144         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10145         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10146         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10147         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10148         * config/pa/t-pa64: Likewise.
10149         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10150
10151 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10152
10153         PR driver/47787
10154         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10155
10156 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10157
10158         PR target/47792
10159         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10160
10161 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10162
10163         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10164         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10165         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10166         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10167         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10168         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10169         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10170         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10171         m32r_legitimate_address_p): New functions.
10172         * config/m32r/constraints.md (constraint "S"): Don't use
10173         STORE_PREINC_PREDEC_P.
10174         (constraint "U"): Don't use LOAD_POSTINC_P.
10175
10176 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10177
10178         PR rtl-optimization/46178
10179         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10180         compute ira_hard_regno_cover_class[].
10181
10182 2011-02-18  Richard Guenther  <rguenther@suse.de>
10183
10184         PR lto/47798
10185         * lto-streamer.h (lto_global_var_decls): Declare.
10186         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10187         statics for global var processing.
10188
10189 2011-02-18  Richard Guenther  <rguenther@suse.de>
10190
10191         PR tree-optimization/47737
10192         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10193         edge dominance check.
10194
10195 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10196
10197         PR debug/47780
10198         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10199         avoid invalid rtx sharing.
10200
10201 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10202
10203         * doc/cpp.texi (Obsolete Features): Add background on the
10204         origin of assertions.
10205
10206 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10207
10208         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10209         objc_abi == 2.
10210         * config/darwin.c (output_objc_section_asm_op): Added support for
10211         ABI v1 and v2.
10212         (is_objc_metadata): New.
10213         (darwin_objc2_section): New.
10214         (darwin_objc1_section): New.
10215         (machopic_select_section): Added support for ABI v1 and v2.
10216         (darwin_emit_objc_zeroed): New.
10217         (darwin_output_aligned_bss): Detect objc metadata and treat it
10218         appropriately.
10219         (darwin_asm_output_aligned_decl_common): Same.
10220         (darwin_asm_output_aligned_decl_local): Same.
10221         * config/darwin-sections.def: Updated for ABI v1 and v2.
10222         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10223         compiling Objective-C code for the NeXT runtime, default to using
10224         ABI version 0 for 32-bit, and version 2 for 64-bit.
10225
10226 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10227
10228         * common.opt (optimize_fast): New Variable.
10229         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10230         instead of local variable ofast.
10231
10232 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10233
10234         * doc/invoke.texi (fobjc-abi-version): Documented.
10235         (fobjc-nilcheck): Documented.
10236         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10237         version.
10238
10239 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10240
10241         PR driver/47390
10242         * common.opt (export-dynamic): New Driver option.
10243         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10244
10245 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10246
10247         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10248
10249 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10250             Jan Hubicka  <jh@suse.cz>
10251
10252         PR debug/47106
10253         PR debug/47402
10254         * cfgexpand.c (account_used_vars_for_block): Remove.
10255         (estimated_stack_frame_size): Use referenced vars.
10256         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10257         that were referenced in the original function.  Test src_fn
10258         rather than cfun.  Drop redundant get_var_ann.
10259         (setup_one_parameter): Drop redundant get_var_ann.
10260         (declare_return_variable): Likewise.
10261         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10262         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10263         * ipa-inline.c (compute_inline_parameters): Do not compute
10264         disregard_inline_limits here.
10265         (compute_inlinable_for_current, pass_inlinable): New.
10266         (pass_inline_parameters): Require PROP_referenced_vars.
10267         * cgraphunit.c (cgraph_process_new_functions): Don't run
10268         compute_inline_parameters explicitly unless function is in SSA form.
10269         (cgraph_analyze_function): Set .disregard_inline_limits.
10270         * tree-sra.c (convert_callers): Compute inliner parameters
10271         only for functions already in SSA form.
10272
10273 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10274
10275         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10276         -mlittle-endian-data.
10277
10278 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10279
10280         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10281         -mno-fpu, not -fpu and -no-fpu.
10282         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10283         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10284
10285 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10286
10287         PR target/43653
10288         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10289         input reload with PLUS RTX.
10290
10291 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10292
10293         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10294         of InverseVar(MDMX).
10295
10296 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10297
10298         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10299         --m4-340.
10300
10301 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10302
10303         * config/mn10300/mn10300.opt (mno-crt0): New.
10304
10305 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10306
10307         * config/m68k/uclinux.opt (static-libc): New Driver option.
10308
10309 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10310
10311         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10312
10313 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10314
10315         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10316         %{muser-extend-enabled}.
10317
10318 2011-02-16  Richard Guenther  <rguenther@suse.de>
10319
10320         PR tree-optimization/47738
10321         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10322         the TODO from tree_predictive_commoning.
10323
10324 2011-02-15  Jeff Law  <law@redhat.com>
10325
10326         Revert
10327         2011-01-25  Jeff Law  <law@redhat.com>
10328
10329         PR rtl-optimization/37273
10330         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10331         handle them like argument loads from stack slots.  Do not double
10332         count memory for memory constants and argument loads from stack slots.
10333
10334 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10335
10336         PR middle-end/47725
10337         * combine.c (cant_combine_insn_p): Revert the last change.
10338
10339 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10340
10341         PR target/47755
10342         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10343         mode for vector constants.  Remove code that checks for TImode.
10344
10345 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10346
10347         PR debug/47106
10348         PR debug/47402
10349         * cgraph.h (compute_inline_parameters): Return void.
10350         * ipa-inline.c (compute_inline_parameters): Adjust.
10351
10352 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10353
10354         PR debug/47106
10355         PR debug/47402
10356         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10357         rather than decl.
10358         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10359         * ipa-inline.c (compute_inline_parameters): Adjust.
10360
10361 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10362
10363         PR debug/47106
10364         PR debug/47402
10365         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10366         Adjust all users.  Pass FN to...
10367         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10368         fn argument.
10369         * ipa-struct-reorg.c: Adjust.
10370         * tree-dfa.c: Adjust.
10371         * tree-into-ssa.c: Adjust.
10372         * tree-sra.c: Adjust.
10373         * tree-ssa-alias.c: Adjust.
10374         * tree-ssa-live.c: Adjust.
10375         * tree-ssa.c: Adjust.
10376         * tree-ssanames.c: Adjust.
10377         * tree-tailcall.c: Adjust.
10378
10379 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10380
10381         PR debug/47106
10382         PR debug/47402
10383         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10384         Adjust all callers.
10385         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10386         * tree-flow-inline.h: Adjust.
10387         * gimple-pretty-print.c: Adjust.
10388         * tree-into-ssa.c: Adjust.
10389         * tree-ssa.c: Adjust.
10390         * cfgexpand.c: Adjust.
10391
10392 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10393
10394         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10395         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10396         (EXTRA_CONSTRAINT): Delete.
10397         * config/iq2000/constraints.md: New file.
10398         * config/iq2000/iq2000.md: Include it.
10399         (define_insn ""): Delete.
10400         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10401         unsupported constraint letters from patterns.
10402         (call_value, call_value_internal1): Likewise.
10403         (call_value_multiple_internal1): Likewise.
10404
10405 2011-02-15  Nick Clifton  <nickc@redhat.com>
10406
10407         * config/mn10300/mn10300.c: Include tm-constrs.h.
10408         (struct liw_data): New data structure describing an LIW candidate
10409         instruction.
10410         (extract_bundle): Use struct liw_data.  Allow small integer
10411         operands for some instructions.
10412         (check_liw_constraints): Use struct liw_data.  Remove swapped
10413         parameter.  Add comments describing the checks.  Fix bug when
10414         assigning the source of liw1 to the source of liw2.
10415         (liw_candidate): Delete.  Code moved into extract_bundle.
10416         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10417         before swapping.
10418         * config/mn10300/predicates.md (liw_operand): New predicate.
10419         Allows registers and small integer constants.
10420         * config/mn10300/constraints.md (O): New constraint.  Accetps
10421         integers in the range -8 to +7 inclusive.
10422         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10423         for moving a small integer into a register.  Give this alternative
10424         LIW attributes.
10425         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10426         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10427         using the J,K,L and M constraints,
10428         (liw): Remove SI mode on second operands to allow for HI and QI
10429         mode values.
10430         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10431         instruction.
10432
10433 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10434
10435         PR middle-end/47725
10436         * combine.c (cant_combine_insn_p): Check zero/sign extended
10437         hard registers.
10438
10439 2011-02-15  Richard Guenther  <rguenther@suse.de>
10440
10441         PR tree-optimization/47743
10442         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10443         for a non-type-compatible VN lookup bail out.
10444
10445 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10446
10447         * config/fr30/constraints.md: New file.
10448         * config/fr30/fr30.md: Include it.
10449         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10450         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10451         (EXTRA_CONSTRAINT): Delete.
10452
10453 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10454
10455         * config/frv/constraints.md: New file.
10456         * config/frv/predicates.md: Include it.
10457         * config/frv/frv.c (reg_class_from_letter): Delete.
10458         (frv_option_override): Don't initialize it.
10459         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10460         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10461         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10462         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10463         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10464         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10465         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10466         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10467         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10468         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10469         (REG_CLASS_FROM_CONSTRAINT): Delete.
10470
10471 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10472
10473         PR middle-end/47581
10474         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10475         if frame size is 0 in a leaf function.
10476
10477 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10478
10479         PR pch/14940
10480         * config/alpha/host-osf.c: New file.
10481         * config/alpha/x-osf: New file.
10482         * config.host (alpha*-dec-osf*): Use it.
10483
10484 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10485
10486         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10487         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10488         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10489         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10490         type to const_rtx.
10491         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10492
10493 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10494
10495         * config/stormy16/constraints.md: New file.
10496         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10497         Use satisfies_constraint_Q and satisfies_constraint_R.
10498         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10499         Delete.
10500         (xstormy16_legitiamte_address_p): Declare.
10501         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10502         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10503         (EXTRA_CONSTRAINT): Delete.
10504         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10505         Un-staticize.
10506         (xstormy16_extra_constraint_p): Delete.
10507
10508 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10509
10510         PR tree-optimization/46494
10511         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10512         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10513         (pass_rtl_loop_done): Add TODO_verify_flow.
10514         * fwprop.c (pass_rtl_fwprop): Likewise.
10515         * modulo-sched.c (pass_sms): Likewise.
10516         * tree-ssa-dom.c (pass_dominator): Likewise.
10517         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10518         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10519         (pass_tree_loop_done): Likewise.
10520         * tree-ssa-pre.c (execute_pre): Likewise.
10521         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10522         * tree-ssa-sink.c (pass_sink_code): Likewise.
10523         * tree-vrp.c (pass_vrp): Likewise.
10524
10525 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10526
10527         * config/v850/constraints.md: New file.
10528         * config/v850/v850.md: Include it.
10529         * config/v850/predicates.md (reg_or_0_operand): Use
10530         satisfies_constraint_G.
10531         (special_symbolref_operand): Use satisfies_constraint_K.
10532         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10533         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10534         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10535         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10536         (EXTRA_CONSTRAINT): Delete.
10537         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10538         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10539         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10540
10541 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10542
10543         PR target/47696
10544         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10545         description.
10546
10547 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10548
10549         * config/mcore/constraints.md: New file.
10550         * config/mcore/mcore.md: Include it.
10551         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10552         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10553         (REG_CLASS_FROM_LETTER): Delete.
10554         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10555         insn_const_int_ok_for_constraint.
10556         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10557         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10558         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10559         (EXTRA_CONSTRAINT): Delete.
10560
10561 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10562
10563         PR ada/41929
10564         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10565         (IS_SIGHANDLER): Define.
10566         (sparc64_is_sighandler): New function, split off from
10567         sparc64_fallback_frame_state.
10568         (sparc_is_sighandler): New function, split off from
10569         sparc_fallback_frame_state.
10570         (sparc64_fallback_frame_state): Merge with ...
10571         (sparc_fallback_frame_state): ... this into ...
10572         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10573         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10574         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10575         stack instead of hardcoded offsets.
10576
10577 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10578
10579         PR target/45808
10580         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10581
10582 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10583
10584         * configure: Regenerate.
10585
10586 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10587
10588         PR driver/45731
10589         * gcc.c (asm_options): Correct spec matching --target-help.
10590
10591 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10592
10593         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10594         to gimple call error.
10595
10596 2011-02-12  Mike Stump  <mikestump@comcast.net>
10597
10598         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10599         comments in backslash regions.
10600
10601 2011-02-12  Mike Stump  <mikestump@comcast.net>
10602             Jakub Jelinek  <jakub@redhat.com>
10603             Iain Sandoe  <iains@gcc.gnu.org>
10604
10605         PR target/47324
10606         * dwarf2out.c (output_cfa_loc): When required, apply the
10607         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10608         (output_loc_sequence): Likewise.
10609         (output_loc_operands_raw): Likewise.
10610         (output_loc_sequence_raw): Likewise.
10611         (output_cfa_loc): Likewise.
10612         (output_loc_list): Suppress register number adjustment when
10613         calling output_loc_sequence()
10614         (output_die): Likewise.
10615
10616 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10617
10618         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10619         Remove macros.
10620         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10621         xtensa_memory_move_cost): New functions.
10622         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10623
10624 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10625
10626         PR lto/47225
10627         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10628         in the current directory.
10629         * configure: Rebuilt.
10630
10631 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10632
10633         * config/darwin.c (darwin_override_options): Add a hunk missed
10634         from the commit of r168571.  Trim comment line lengths and
10635         correct indents of the preceding block.
10636
10637 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10638
10639         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10640         the switch.
10641
10642 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10643
10644         * common.opt (nostartfiles): New Driver option.
10645
10646 2011-02-11  Xinliang David Li  <davidxl@google.com>
10647
10648         PR tree-optimization/47707
10649         * tree-chrec.c (convert_affine_scev): Keep type precision.
10650
10651 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10652
10653         PR tree-optimization/47420
10654         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10655
10656 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10657
10658         PR rtl-optimization/47614
10659         * rtl.h (check_for_inc_dec): Declare.
10660         * dse.c (check_for_inc_dec): Externalize...
10661         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10662         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10663
10664 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10665
10666         PR driver/47678
10667         * gcc.c (main): Do not compile inputs if there were errors in
10668         option handling.
10669         * opts-common.c (read_cmdline_option): Check for wrong language
10670         after other error checks.
10671
10672 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
10673
10674         * cgraph.c: Fix comment typos.
10675         * cgraph.h: Likewise.
10676         * cgraphunit.c: Likewise.
10677         * ipa-cp.c: Likewise.
10678         * ipa-inline.c: Likewise.
10679         * ipa-prop.c: Likewise.
10680         * ipa-pure-const.c: Likewise.
10681         * ipa-ref.c: Likewise.
10682         * ipa-reference.c: Likewise.
10683
10684 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10685
10686         PR debug/47684
10687         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10688
10689 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10690
10691         PR testsuite/47400
10692         * doc/sourcebuild.texi (Require Support): Document
10693         dg-require-ascii-locale.
10694
10695 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
10696
10697         * doc/lto.texi (Write summary): Fix missing parentheses.
10698
10699 2011-02-10  DJ Delorie  <dj@redhat.com>
10700
10701         * config/m32c/m32c.c (m32c_option_override): Disable
10702         -fcombine-stack-adjustments until flag value tracking and compare
10703         optimization can be rewritten.
10704
10705 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
10706
10707         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10708         PROCESSOR_POWER7.
10709         (PROCESSOR_DEFAULT64): Likewise.
10710
10711 2011-02-10  Richard Henderson  <rth@redhat.com>
10712
10713         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10714         change from 2011-02-03.
10715         * config/rx/rx.c (flags_from_code): Likewise.
10716         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10717         is valid, n/pz otherwise.
10718         (rx_select_cc_mode): Return CCmode if Y is not zero.
10719
10720 2011-02-10  Richard Guenther  <rguenther@suse.de>
10721
10722         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10723
10724 2011-02-10  Richard Guenther  <rguenther@suse.de>
10725
10726         PR tree-optimization/47677
10727         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10728
10729 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10730
10731         PR target/47665
10732         * combine.c (make_compound_operation): Only change shifts into
10733         multiplication for SCALAR_INT_MODE_P.
10734
10735 2011-02-10  Jie Zhang  <jie@codesourcery.com>
10736
10737         PR testsuite/47622
10738         Revert
10739         2011-02-05  Jie Zhang  <jie@codesourcery.com>
10740         PR debug/42631
10741         * web.c (entry_register): Don't clobber the number of the
10742         first uninitialized reference in used[].
10743
10744 2011-02-09  Richard Guenther  <rguenther@suse.de>
10745
10746         PR tree-optimization/47664
10747         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10748         all edges again.
10749
10750 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
10751
10752         PR target/46481
10753         PR target/47032
10754         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10755         PROCESSOR_POWER7.
10756         (PROCESSOR_DEFAULT64): Same.
10757         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10758
10759 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10760
10761         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10762
10763 2011-02-09  Martin Jambor  <mjambor@suse.cz>
10764
10765         PR middle-end/45505
10766         * tree-sra.c (struct access): New flags grp_scalar_read and
10767         grp_scalar_write.  Changed description of assignment read and write
10768         flags.
10769         (dump_access): Dump new flags, reorder all of them.
10770         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10771         to detect multiple scalar reads.
10772         (analyze_access_subtree): Use the new scalar read write flags instead
10773         of the old flags.  Adjusted comments.
10774
10775 2011-02-08  DJ Delorie  <dj@redhat.com>
10776
10777         PR target/47548
10778         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10779         patterns.
10780
10781 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10782
10783         * config/m68k/uclinux.opt: New.
10784         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10785
10786 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10787
10788         * config/cris/elf.opt (sim): New Driver option.
10789
10790 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10791
10792         * config/xtensa/elf.opt: New.
10793         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10794
10795 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10796
10797         * config/vax/elf.opt: New.
10798         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10799
10800 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10801
10802         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10803
10804 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10805
10806         * config/gnu-user.opt: New.
10807         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10808         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10809         *-*-uclinux*): Use gnu-user.opt.
10810
10811 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
10812
10813         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10814         * config/i386/gnu.h (CPP_SPEC): Likewise.
10815
10816 2011-02-08  Ian Lance Taylor  <iant@google.com>
10817
10818         * common.opt (fcx-limited-range): Add SetByCombined flag.
10819         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10820         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10821         (fassociative-math, freciprocal-math): Likewise.
10822         (funsafe-math-optimizations): Likewise.
10823         * opth-gen.awk: Handle SetByCombined.
10824         * optc-gen.awk: Likewise.
10825         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10826         (set_unsafe_math_optimizations_flags): Likewise.
10827         * doc/options.texi (Option properties): Document SetByCombined.
10828
10829 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10830
10831         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10832         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10833         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10834         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10835         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10836
10837 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
10838
10839         PR tree-optimization/46834
10840         PR tree-optimization/46994
10841         PR tree-optimization/46995
10842         * graphite-sese-to-poly.c (used_outside_reduction): New.
10843         (detect_commutative_reduction): Call used_outside_reduction.
10844         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10845         translate_scalar_reduction_to_array only when at least one
10846         loop-phi/close-phi tuple has been detected.
10847
10848 2011-02-08  Richard Guenther  <rguenther@suse.de>
10849
10850         PR middle-end/47639
10851         * tree-vect-generic.c (expand_vector_operations_1): Update
10852         stmts here ...
10853         (expand_vector_operations): ... not here.  Cleanup EH info
10854         and the CFG if required.
10855
10856 2011-02-08  Richard Guenther  <rguenther@suse.de>
10857
10858         PR tree-optimization/47641
10859         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10860         require type compatibility.
10861
10862 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10863
10864         * gimple-low.c (lower_function_body): Don't remove the location of
10865         the return statement here.
10866         (lower_gimple_return): Do it here instead but only if the return
10867         statement is actually used twice.
10868
10869 2011-02-08  Richard Guenther  <rguenther@suse.de>
10870
10871         PR tree-optimization/47632
10872         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10873         unused up_to_stmt parameter, return whether cfg-cleanup is
10874         necessary, remove EH info properly.
10875         (forward_propagate_into_gimple_cond): Adjust caller.
10876         (forward_propagate_into_cond): Likewise.
10877         (forward_propagate_comparison): Likewise.
10878         (tree_ssa_forward_propagate_single_use_vars): Make
10879         forward_propagate_comparison case similar to the two others.
10880
10881 2011-02-08  Nick Clifton  <nickc@redhat.com>
10882
10883         * config/mn10300/mn10300.opt (mliw): New command line option.
10884         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10885         (liw_bundling): New automaton.
10886         (liw): New attribute.
10887         (liw_op): New attribute.
10888         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10889         (movsi_internal): Add LIW attributes.
10890         (andsi3): Likewise.
10891         (iorsi3): Likewise.
10892         (xorsi3): Likewise.
10893         (addsi3): Separate register and immediate alternatives.
10894         Add LIW attributes.
10895         (subsi3): Likewise.
10896         (cmpsi): Likewise.
10897         (aslsi3): Likewise.
10898         (lshrsi3): Likewise.
10899         (ashrsi3): Likewise.
10900         (liw): New pattern.
10901         * config/mn10300/mn10300.c (liw_op_names): New
10902         (mn10300_print_operand): Handle 'W' operand descriptor.
10903         (extract_bundle): New function.
10904         (check_liw_constraints): New function.
10905         (liw_candidate): New function.
10906         (mn10300_bundle_liw): New function.
10907         (mn10300_reorg): New function.
10908         (TARGET_MACHINE_DEPENDENT_REORG): Define.
10909         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10910         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10911         __LIW__ or __NO_LIW__.
10912         * doc/invoke.texi: Describe the -mliw command line option.
10913
10914 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10915
10916         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10917         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10918         pthread_mutex_unlock): Remove.
10919         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10920         * config/pa/t-pa64: Likewise.
10921         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10922         shared libc if not linking against libpthread.
10923         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10924
10925 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
10926
10927         PR target/47558
10928         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10929         on 10.6 and later to ensure that we always use the unwinder from
10930         the system.  Only add -no_compact_unwind when tarteting darwin
10931         10.6 or later.
10932
10933 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
10934
10935         PR target/46997
10936         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10937         (vec_interleave_lowv2sf): Ditto.
10938         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10939         (vec_extract_oddv2sf): Ditto.
10940
10941 2011-02-07  Mike Stump  <mikestump@comcast.net>
10942
10943         PR target/42333
10944         Add __ieee_divdc3 entry point.
10945         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10946         entry point.
10947         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10948         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10949         * config/darwin.c (darwin_rename_builtins): Add.
10950         * config/darwin-protos.h (darwin_rename_builtins): Add.
10951
10952 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
10953
10954         PR target/47636
10955         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10956         for the condition.
10957
10958 2011-02-07  Mike Stump  <mikestump@comcast.net>
10959
10960         * config/darwin.opt (mmacosx-version-min): Update default OS version.
10961
10962 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
10963
10964         PR target/47534
10965         * config/avr/libgcc.S (exit): Move .endfunc
10966
10967 2011-02-07  Richard Guenther  <rguenther@suse.de>
10968
10969         PR tree-optimization/47615
10970         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10971         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10972         (run_scc_vn): Initialize it.
10973         (visit_reference_op_load): Use it.
10974         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10975
10976 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10977
10978         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10979         DImode trapping arithmetic libfuncs.
10980
10981 2011-02-07  Richard Guenther  <rguenther@suse.de>
10982
10983         PR tree-optimization/47621
10984         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10985         two duplicates ...
10986         (execute_update_addresses_taken): ... here.  Make it more
10987         conservative in what we accept.
10988
10989 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10990
10991         * config/sparc/freebsd.h (ASM_SPEC): Define.
10992         * config/sparc/vxworks.h (ASM_SPEC): Define.
10993
10994 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10995
10996         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10997
10998 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
10999
11000         * doc/invoke.texi: Remove reference to compiler internals from
11001         user documentation.
11002
11003         * reg-notes.def: Remove REG_VALUE_PROFILE.
11004         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11005
11006 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11007
11008         PR middle-end/47610
11009         * varasm.c (default_section_type_flags): If decl is NULL,
11010         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11011
11012 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11013
11014         PR debug/42631
11015         * web.c (entry_register): Don't clobber the number of the
11016         first uninitialized reference in used[].
11017
11018 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11019
11020         PR tree-optimization/46194
11021         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11022         (build_classic_dist_vector_1): Do not represent classic distance
11023         vectors when the access functions are variating in different loops.
11024
11025 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11026
11027         * config/mips/iris6.opt: New.
11028         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11029
11030 2011-02-04  Richard Henderson  <rth@redhat.com>
11031             Steve Ellcey  <sje@cup.hp.com>
11032
11033         PR target/46997
11034         * config/ia64/predicates.md (mux1_brcst_element): New.
11035         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11036         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11037         (ia64_unpack_sign): New.
11038         (ia64_expand_unpack): Rewrite using new routines.
11039         (ia64_expand_widen_sum): Ditto.
11040         (ia64_expand_dot_prod_v8qi): Ditto.
11041         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11042         routines, add endian check.
11043         (pmpy2_even): Rename from pmpy2_r, add endian check.
11044         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11045         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11046         (vec_widen_smult_hi_v4hi): Ditto.
11047         (vec_widen_umult_lo_v4hi): Ditto.
11048         (vec_widen_umult_hi_v4hi): Ditto.
11049         (mulv2si3): Change endian checks.
11050         (sdot_prodv4hi): Rewrite with new calls.
11051         (udot_prodv4hi): New.
11052         (vec_pack_ssat_v4hi): Add endian check.
11053         (vec_pack_usat_v4hi): Ditto.
11054         (vec_pack_ssat_v2si): Ditto.
11055         (max1_even): Rename from max1_r, add endian check.
11056         (max1_odd): Rename from max1_l, add endian check.
11057         (*mux1_rev): Format change.
11058         (*mux1_mix): Ditto.
11059         (*mux1_shuf): Ditto.
11060         (*mux1_alt): Ditto.
11061         (*mux1_brcst_v8qi): Use new predicate.
11062         (vec_extract_evenv8qi): Remove endian check.
11063         (vec_extract_oddv8qi): Ditto.
11064         (vec_interleave_lowv4hi): Format change.
11065         (vec_interleave_highv4hi): Ditto.
11066         (mix2_even): Rename from mix2_r, add endian check.
11067         (mix2_odd): Rename from mux2_l, add endian check.
11068         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11069         (vec_extract_evenodd_helper): Format change.
11070         (vec_extract_evenv4hi): Remove endian check.
11071         (vec_extract_oddv4hi): Remove endian check.
11072         (vec_interleave_lowv2si): Format change.
11073         (vec_interleave_highv2si): Format change.
11074         (vec_initv2si): Remove endian check.
11075         (vecinit_v2si): Add endian check.
11076         (reduc_splus_v2sf): Add endian check.
11077         (reduc_smax_v2sf): Ditto.
11078         (reduc_smin_v2sf): Ditto.
11079         (vec_initv2sf): Remove endian check.
11080         (fpack): Add endian check.
11081         (fswap): Add endian check.
11082         (vec_interleave_highv2sf): Add endian check.
11083         (vec_interleave_lowv2sf): Add endian check.
11084         (fmix_lr): Add endian check.
11085         (vec_setv2sf): Format change.
11086         (*vec_extractv2sf_0_be): Use shift to extract operand.
11087         (*vec_extractv2sf_1_be): New.
11088         (vec_pack_trunc_v4hi): Add endian check.
11089         (vec_pack_trunc_v2si): Format change.
11090
11091 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11092
11093         PR inline-asm/23200
11094         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11095         do bb, locus and block comparison and disallow loads if it is not set.
11096         (stmt_is_replaceable_p): New function.
11097         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11098         callers.
11099         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11100         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11101         SSA_NAME_DEF_STMT.
11102         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11103
11104 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11105
11106         * config/rs6000/xilinx.opt: New.
11107         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11108
11109 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11110
11111         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11112
11113 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11114
11115         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11116         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11117         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11118         secondary_reload_info, xtensa_secondary_reload): Remove.
11119         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11120         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11121         (xtensa_preferred_reload_class): Make static. Change return and
11122         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11123         Use CONST_DOUBLE_P predicate.
11124         (xtensa_preferred_output_reload_class): New function.
11125         (xtensa_secondary_reload): Make static.
11126
11127 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11128
11129         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11130         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11131         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11132
11133 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11134
11135         PR middle-end/31490
11136         * output.h (SECTION_RELRO): Define.
11137         (SECTION_MACH_DEP): Adjust.
11138         (get_variable_section): New prototype.
11139         * varpool.c (varpool_finalize_named_section_flags): New function.
11140         (varpool_assemble_pending_decls): Call it.
11141         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11142         * cgraphunit.c (cgraph_output_in_order): Call
11143         varpool_finalize_named_section_flags.
11144         * varasm.c (get_section): Allow section flags conflicts between
11145         relro and read-only sections if the section hasn't been declared yet.
11146         Set SECTION_OVERRIDE after diagnosing section type conflict.
11147         (get_variable_section): No longer static.
11148         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11149         readonly sections that need relocations.
11150         (decl_readonly_section_1): New function.
11151         (decl_readonly_section): Use it.
11152
11153         Revert:
11154         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11155                     Steve Ellcey  <sje@cup.hp.com>
11156
11157         PR middle-end/31490
11158         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11159         if section attribute used.
11160
11161 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11162
11163         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11164         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11165         (darwin_init_sections): Remove assertion.
11166
11167 2011-02-03  Nick Clifton  <nickc@redhat.com>
11168
11169         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11170         lt and ge.
11171         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11172         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11173         instead of "n" and "pz".
11174         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11175         CC_FLAG_S.
11176
11177 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11178
11179         PR target/47312
11180         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11181         fma, expand FMA_EXPR as fma{,f,l} call.
11182
11183         PR lto/47274
11184         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11185         copy them into a unsigned char variable and pass address of it to
11186         lto_output_data_stream.
11187
11188         PR target/47564
11189         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11190         around backend_init_target and lang_dependent_init_target calls.
11191         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11192         (verify_cgraph_node): Don't call set_cfun here.  Use
11193         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11194         Set error_found for incorrectly represented calls to thunks.
11195
11196 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11197
11198         PR debug/43092
11199         PR rtl-optimization/43494
11200         * rtl.h (for_each_inc_dec_fn): New type.
11201         (for_each_inc_dec): Declare.
11202         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11203         (for_each_inc_dec_find_inc_dec): New fn.
11204         (for_each_inc_dec_find_mem): New fn.
11205         (for_each_inc_dec): New fn.
11206         * dse.c (struct insn_size): Remove.
11207         (replace_inc_dec, replace_inc_dec_mem): Remove.
11208         (emit_inc_dec_insn_before): New fn.
11209         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11210         (canon_address): Pass mem modes to cselib_lookup.
11211         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11212         (cselib_lookup_from_insn): Likewise.
11213         (cselib_subst_to_values): Likewise.
11214         * cselib.c (find_slot_memmode): New var.
11215         (cselib_find_slot): New fn.  Use it instead of
11216         htab_find_slot_with_hash everywhere.
11217         (entry_and_rtx_equal_p): Use find_slot_memmode.
11218         (autoinc_split): New fn.
11219         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11220         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11221         Deal with autoinc.  Special-case recursion into MEMs.
11222         (cselib_hash_rtx): Likewise.
11223         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11224         address and MEM modes.
11225         (cselib_subst_to_values): Add memmode, pass it on.
11226         Deal with autoinc.
11227         (cselib_lookup): Add memmode argument, pass it on.
11228         (cselib_lookup_from_insn): Add memmode.
11229         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11230         (struct cselib_record_autoinc_data): New.
11231         (cselib_record_autoinc_cb): New fn.
11232         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11233         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11234         (cselib_process_insn): ... here.
11235         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11236         to cselib_lookup.
11237         (add_uses): Likewise, also to cselib_subst_to_values.
11238         (add_stores): Likewise.
11239         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11240         cselib_subst_to_values.
11241         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11242         * gcse.c (do_local_cprop): Adjusted.
11243         * postreload.c (reload_cse_simplify_set): Adjusted.
11244         (reload_cse_simplify_operands): Adjusted.
11245         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11246
11247 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11248
11249         PR tree-optimization/45122
11250         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11251         unsafe assumptions when there's more than one loop exit.
11252
11253 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11254
11255         PR target/47272
11256         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11257         Document using vector double with the load/store builtins, and
11258         that the load/store builtins always use Altivec instructions.
11259
11260         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11261         to use altivec memory instructions, even on VSX.
11262         (vector_altivec_store_<mode>): Ditto.
11263
11264         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11265         function.
11266
11267         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11268         V2DF, V2DI support to load/store overloaded builtins.
11269
11270         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11271         altivec load/store builtins for V2DF/V2DI types.
11272
11273         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11274         set avoid indexed addresses on power6 if -maltivec.
11275         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11276         vector_altivec_load/vector_altivec_store builtins.
11277         (altivec_expand_st_builtin): Ditto.
11278         (altivec_expand_builtin): Add VSX memory builtins.
11279         (rs6000_init_builtins): Add V2DI types to internal types.
11280         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11281         load/store builtins.
11282         (rs6000_address_for_altivec): Insure memory address is appropriate
11283         for Altivec.
11284
11285         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11286         vec_vsx_ld and vec_vsx_st.
11287         (vsx_store_<mode>): Ditto.
11288
11289         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11290         variables to hold long long types for VSX vector memory builtins.
11291         (RS6000_BTI_unsigned_long_long): Ditto.
11292         (long_long_integer_type_internal_node): Ditti.
11293         (long_long_unsigned_type_internal_node): Ditti.
11294
11295         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11296         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11297         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11298
11299         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11300         short cuts.
11301         (vec_vsx_st): Ditto.
11302
11303 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11304
11305         * config/pa/pa-hpux10.opt: New.
11306         * config/hpux11.opt (pthread): New Driver option.
11307         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11308         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11309
11310 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11311
11312         * config/ia64/vms.opt: New.
11313         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11314
11315 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11316
11317         PR target/47580
11318         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11319         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11320         generator functions.
11321         (vsx_floatuns<VSi><mode>2): Ditto.
11322         (vsx_fix_trunc<mode><VSi>2): Ditto.
11323         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11324
11325 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11326
11327         * config/i386/djgpp.opt (posix): New Driver option.
11328
11329 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11330
11331         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11332         Move to the unsupported targets list.
11333
11334 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11335
11336         PR rtl-optimization/47525
11337         * df-scan.c: Update copyright years.
11338         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11339         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11340
11341 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11342
11343         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11344         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11345         (ASM_OUTPUT_ASCII): Remove.
11346         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11347
11348 2011-02-02  Jeff Law  <law@redhat.com>
11349
11350         PR middle-end/47543
11351         * reload.c (find_reloads_address): Handle reg+d address where both
11352         components are invalid by reloading the entire address.
11353
11354 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11355             Richard Guenther  <rguenther@suse.de>
11356
11357         PR tree-optimization/40979
11358         PR bootstrap/47044
11359         * passes.c (init_optimization_passes): After LIM call copy_prop
11360         and DCE to clean up.
11361         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11362
11363 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11364
11365         PR tree-optimization/47576
11366         PR tree-optimization/47555
11367         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11368         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11369         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11370         * tree-scalar-evolution.c (follow_ssa_edge): Use
11371         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11372
11373 2011-02-02  Richard Guenther  <rguenther@suse.de>
11374
11375         PR tree-optimization/47566
11376         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11377
11378 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11379
11380         PR debug/47106
11381         PR debug/47402
11382         * tree-inline.c (declare_return_variable): Remove unused caller
11383         variable.
11384
11385         PR debug/47106
11386         PR debug/47402
11387         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11388         * cfgexpand.c (account_used_vars_for_block): Use them.
11389         * tree-nrv.c (tree_nrv): Likewise.
11390         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11391         (dump_scope_block): Likewise.
11392         (remove_unused_locals): Likewise.
11393
11394         PR debug/47106
11395         PR debug/47402
11396         * tree-inline.c (declare_return_variable): Add result decl to
11397         local decls only once.
11398         * gimple-low.c (record_vars_into): Mark newly-created variables
11399         as referenced.
11400
11401 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11402
11403         PR debug/47498
11404         PR debug/47501
11405         PR debug/45136
11406         PR debug/45130
11407         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11408         debug insns.
11409         (no_real_insns_p, schedule_block, set_priorities): Drop special
11410         treatment of boundary debug insns.
11411         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11412         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11413         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11414         (BOUNDARY_DEBUG_INSN_P): Likewise.
11415         (SCHEDULE_DEBUG_INSN_P): Likewise.
11416         * sched-rgn.c (init_ready_list): Drop special treatment of
11417         boundary debug insns.
11418         * final.c (rest_of_clean_state): Clear notes' BB.
11419
11420 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11421
11422         * config/openbsd.opt (assert=): New Driver option.
11423
11424 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11425
11426         * config/i386/nto.opt: New.
11427         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11428
11429 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11430
11431         * config/i386/netware.opt: New.
11432         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11433
11434 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11435
11436         * config/interix.opt (posix): New Driver option.
11437
11438 2011-02-01  DJ Delorie  <dj@redhat.com>
11439
11440         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11441
11442         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11443         class for A0/A1.
11444
11445 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11446
11447         PR tree-optimization/47561
11448         * toplev.c (process_options): Print the Graphite flags.  Add
11449         flag_loop_flatten to the list of options requiring Graphite.
11450
11451 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11452
11453         * config/i386/cygming.opt (posix): New Driver option.
11454
11455 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11456
11457         * config/arm/vxworks.opt: New.
11458         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11459
11460 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11461
11462         * config/alpha/elf.opt: New.
11463         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11464         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11465
11466 2011-02-01  Richard Guenther  <rguenther@suse.de>
11467
11468         PR tree-optimization/47559
11469         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11470         store-motion on references that can throw.
11471
11472 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11473
11474         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11475         * tree-pass.h (TDF_CSELIB): New macro.
11476         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11477         cselib_lookup): Check for it rather than for TDF_DETAILS.
11478
11479 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11480
11481         PR driver/47547
11482         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11483         is HOST_BIT_BUCKET.
11484
11485         * opts.c (finish_options): Don't add x_aux_base_name if it is
11486         HOST_BIT_BUCKET.
11487
11488 2011-02-01  Richard Guenther  <rguenther@suse.de>
11489
11490         PR tree-optimization/47555
11491         Revert
11492         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11493
11494         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11495
11496 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11497
11498         PR gcc/46692
11499         * config/lm32/t-lm32: Add multilib for all CPU options.
11500
11501 2011-02-01  Richard Guenther  <rguenther@suse.de>
11502
11503         PR tree-optimization/47541
11504         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11505         sure to have a field at offset zero.
11506
11507 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11508
11509         * config/arc/arc.opt (EB, EL): New Driver options.
11510
11511 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11512
11513         * config/alpha/osf5.opt: New.
11514         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11515
11516 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11517
11518         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11519
11520 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11521
11522         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11523         -floop-interchange.
11524         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11525         is an alias of -floop-interchange and that it requires the
11526         Graphite infrastructure.
11527         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11528         flag_loop_interchange based on the value of flag_tree_loop_linear.
11529
11530 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11531             Richard Guenther  <rguenther@suse.de>
11532
11533         PR tree-optimization/47538
11534         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11535         type instead of r1type, except for comparisons.  For right
11536         shifts and comparisons punt if there are mismatches in
11537         sizetype vs. non-sizetype types.
11538
11539 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11540
11541         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11542         avx_runtime.
11543
11544 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11545
11546         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11547         version number.
11548         * configure: Regenerate.
11549
11550 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11551
11552         * configure.ac (gcc_cv_ld_static_option): Define.
11553         (gcc_cv_ld_dynamic_option): Define.
11554         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11555         instead.
11556         (HAVE_LD_STATIC_DYNAMIC): Update message.
11557         (LD_STATIC_OPTION): Define.
11558         (LD_DYNAMIC_OPTION): Define.
11559         * configure: Regenerate.
11560         * config.in: Regenerate.
11561         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11562         HAVE_LD_STATIC_DYNAMIC]: Use them.
11563
11564 2011-01-31  Nick Clifton  <nickc@redhat.com>
11565
11566         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11567         registers inside interrupt handlers if the handler is not a leaf
11568         function.
11569
11570 2011-01-31  Nick Clifton  <nickc@redhat.com>
11571
11572         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11573         reg_renumber returning an INVALID_REGNUM.
11574
11575 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11576
11577         PR libgcj/44341
11578         * doc/install.texi: Document host options discarded when cross
11579         configuring target libraries.
11580
11581 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11582
11583         Reverted:
11584         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11585         PR debug/45136
11586         PR debug/45130
11587         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11588         debug insns.
11589         (no_real_insns_p, schedule_block, set_priorities): Drop special
11590         treatment of boundary debug insns.
11591         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11592         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11593         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11594         (BOUNDARY_DEBUG_INSN_P): Likewise.
11595         (SCHEDULE_DEBUG_INSN_P): Likewise.
11596         * sched-rgn.c (init_ready_list): Drop special treatment of
11597         boundary debug insns.
11598         * final.c (rest_of_clean-state): Clear notes' BB.
11599
11600 2011-01-31  Alan Modra  <amodra@gmail.com>
11601
11602         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11603         toc relative expressions as we do in print_operand_address.
11604
11605 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11606
11607         * doc/extend.texi: Follow spelling conventions.
11608         * doc/invoke.texi: Fix a typo.
11609
11610 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11611
11612         * config/hpux11.opt: New.
11613         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11614         ia64*-*-hpux*): Use hpux11.opt.
11615
11616 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11617
11618         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11619         to tmake_file.
11620
11621 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11622
11623         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11624         support sites.
11625
11626 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11627
11628         * doc/install.texi (Binaries): Remove outdated reference for
11629         Motorola 68HC11/68HC12 downloads.
11630
11631 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11632
11633         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11634         Drepper's paper.
11635
11636 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11637
11638         PR bootstrap/47147
11639         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11640         used by NetBSD.
11641
11642 2011-01-28  Ahmad Sharif  <asharif@google.com>
11643
11644         * value-prof.c (check_counter): Corrected error message.
11645
11646 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11647
11648         * config/arm/arm.c (arm_legitimize_reload_address): New.
11649         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11650         arm_legitimize_reload_address.
11651         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11652
11653 2011-01-28  Ian Lance Taylor  <iant@google.com>
11654
11655         * godump.c (go_define): Ignore macros whose definitions include
11656         two adjacent operands.
11657
11658 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11659
11660         PR target/42894
11661         * varasm.c (force_const_mem): Store copy of x in desc->constant
11662         instead of x itself.
11663         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11664         itself into REG_EQUAL note.
11665
11666 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11667
11668         * config/freebsd.opt (posix, rdynamic): New Driver options.
11669
11670 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11671
11672         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11673         -Bstatic/-Bdynamic.
11674         * configure: Regenerate.
11675
11676 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
11677
11678         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11679         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11680
11681 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
11682
11683         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11684         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11685         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11686         (s390_preferred_reload_class): Make static. Change return and
11687         'rclass' argument type to reg_class_t.
11688
11689 2011-01-27  Jan Hubicka  <jh@suse.cz>
11690
11691         PR middle-end/46949
11692         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11693         (process_function_and_variable_attributes): Check defined weakrefs.
11694
11695 2011-01-27  Martin Jambor  <mjambor@suse.cz>
11696
11697         PR tree-optimization/47228
11698         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11699         build_ref_for_offset.
11700
11701 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11702
11703         * config/spu/spu-elf.h (ASM_SPEC): Remove.
11704
11705 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
11706
11707         PR rtl-optimization/46856
11708         * postreload.c (reload_combine_recognize_const_pattern): Do not
11709         separate cc0 setter and user on cc0 targets.
11710
11711 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
11712
11713         PR c/43082
11714         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11715         passed a VOID_TYPE expression, immediately emit an error and
11716         return error_mark_node.
11717
11718 2011-01-26  Jeff Law  <law@redhat.com>
11719
11720         PR rtl-optimization/47464
11721         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11722         rather than may_trap_p as needed.
11723
11724 2011-01-26  DJ Delorie  <dj@redhat.com>
11725
11726         PR rtl-optimization/46878
11727         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11728         setter/user dependency as well.
11729
11730 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11731
11732         PR rtl-optimization/44469
11733         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11734         after removing trivially dead basic blocks.
11735
11736 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11737
11738         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11739         * config/frv/frv.h (LINK_SPEC): Likewise.
11740         * config/i386/netware.h (LINK_SPEC): Likewise.
11741         * config/m68k/linux.h (ASM_SPEC): Likewise.
11742         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11743         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11744         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11745         * config/sparc/linux.h (ASM_SPEC): Likewise.
11746         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11747         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11748
11749 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11750
11751         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11752         * config/frv/frv.h (ASM_SPEC): Likewise.
11753         * config/m68k/linux.h (ASM_SPEC): Likewise.
11754         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11755         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11756         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11757         * config/sparc/linux.h (ASM_SPEC): Likewise.
11758         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11759         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11760
11761 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11762
11763         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11764         * config/frv/frv.h (LINK_SPEC): Likewise.
11765         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11766
11767 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11768
11769         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11770         * config/frv/frv.h (ASM_SPEC): Likewise.
11771         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11772         * config/m68k/linux.h (ASM_SPEC): Likewise.
11773         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11774         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11775         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11776         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11777         * config/sparc/linux.h (ASM_SPEC): Likewise.
11778         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11779         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11780         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11781
11782 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
11783
11784         PR target/46997
11785         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11786         (*mux2): Ditto.
11787         (vec_extract_evenodd_help): Ditto.
11788         (vec_extract_evenv4hi): Ditto.
11789         (vec_extract_oddv4hi): Ditto.
11790         (vec_interleave_lowv2si): Ditto.
11791         (vec_interleave_highv2si): Ditto.
11792         (vec_extract_evenv2si): Ditto.
11793         (vec_extract_oddv2si: Ditto.
11794         (vec_pack_trunc_v2si): Ditto.
11795
11796 2011-01-22  Jan Hubicka  <jh@suse.cz>
11797
11798         PR target/47237
11799         * cgraph.h (cgraph_local_info): New field can_change_signature.
11800         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11801         signature can change.
11802         (ipcp_estimate_growth): Call sequence simplify only if calle signature
11803         can change.
11804         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11805         (cgraph_function_versioning): We can not change signature of functions
11806         that don't allow that.
11807         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11808         (lto_input_node): Likewise.
11809         * ipa-inline.c (compute_inline_parameters): Compute
11810         local.can_change_signature.
11811         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11812         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11813         functions that can not change signature.
11814         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11815         init_cumulative_args): Do not use local calling conventions
11816         for functions that can not change signature.
11817
11818 2011-01-22  Jan Hubicka  <jh@suse.cz>
11819
11820         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11821
11822 2011-01-26  Richard Guenther  <rguenther@suse.de>
11823
11824         PR tree-optimization/47190
11825         * cgraphunit.c (process_common_attributes): New function.
11826         (process_function_and_variable_attributes): Use it.
11827
11828 2011-01-26  Richard Guenther  <rguenther@suse.de>
11829
11830         PR lto/47423
11831         * cgraphbuild.c (record_eh_tables): Record reference to personality
11832         function.
11833
11834 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
11835
11836         PR debug/45454
11837         * sel-sched.c (moveup_expr): Don't let debug insns prevent
11838         non-debug insns from moving up.
11839
11840 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11841
11842         PR target/40125
11843         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11844         t-dlldir{,-x} fragment for build and add it to tmake_file.
11845         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11846         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11847         * config/i386/t-dlldir: New file.
11848         (SHLIB_DLLDIR): Define.
11849         * config/i386/t-dlldir-x: New file.
11850         (SHLIB_DLLDIR): Define.
11851         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11852         (SHLIB_INSTALL): Use it.
11853
11854 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
11855
11856         PR target/47246
11857         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11858         lower bound of the allowed Thumb-2 coprocessor load/store
11859         index range to -256. Add explaining comment.
11860
11861 2011-01-25  Ian Lance Taylor  <iant@google.com>
11862
11863         * godump.c (go_define): Improve lexing of macro expansion to only
11864         accept expressions which match Go spec.
11865
11866 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11867
11868         PR c++/43601
11869         * tree.c (handle_dll_attribute): Handle it.
11870         * doc/extend.texi (@item dllexport): Mention it.
11871         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11872
11873 2011-01-25  Ian Lance Taylor  <iant@google.com>
11874
11875         PR tree-optimization/26854
11876         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11877         (decl_jump_unsafe): Move higher in file, with no other change.
11878         (bind): Set has_jump_unsafe_decl if appropriate.
11879         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11880         (check_earlier_gotos): Likewise.
11881         (c_check_switch_jump_warnings): Likewise.
11882
11883 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
11884
11885         * doc/invoke.texi (Warning Options): Add missing hyphen.
11886         (-fprofile-dir): Minor grammatical fixes.
11887         (-fbranch-probabilities): Likewise.
11888
11889 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11890
11891         PR debug/45136
11892         PR debug/45130
11893         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11894         debug insns.
11895         (no_real_insns_p, schedule_block, set_priorities): Drop special
11896         treatment of boundary debug insns.
11897         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11898         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11899         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11900         (BOUNDARY_DEBUG_INSN_P): Likewise.
11901         (SCHEDULE_DEBUG_INSN_P): Likewise.
11902         * sched-rgn.c (init_ready_list): Drop special treatment of
11903         boundary debug insns.
11904         * final.c (rest_of_clean-state): Clear notes' BB.
11905
11906 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11907
11908         * Makefile.in (LAMBDA_H): Removed.
11909         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11910         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11911         lambda-trans.o, and tree-loop-linear.o.
11912         (lto-symtab.o): Remove dependence on LAMBDA_H.
11913         (tree-loop-linear.o): Remove rule.
11914         (lambda-mat.o): Same.
11915         (lambda-trans.o): Same.
11916         (lambda-code.o): Same.
11917         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11918         (tree-vect-slp.o): Same.
11919         * hwint.h (gcd): Moved here.
11920         (least_common_multiple): Same.
11921         * lambda-code.c: Removed.
11922         * lambda-mat.c: Removed.
11923         * lambda-trans.c: Removed.
11924         * lambda.h: Removed.
11925         * tree-loop-linear.c: Removed.
11926         * lto-symtab.c: Do not include lambda.h.
11927         * omega.c (gcd): Removed.
11928         * passes.c (init_optimization_passes): Remove pass_linear_transform.
11929         * tree-data-ref.c (print_lambda_vector): Moved here.
11930         (lambda_vector_copy): Same.
11931         (lambda_matrix_copy): Same.
11932         (lambda_matrix_id): Same.
11933         (lambda_vector_first_nz): Same.
11934         (lambda_matrix_row_add): Same.
11935         (lambda_matrix_row_exchange): Same.
11936         (lambda_vector_mult_const): Same.
11937         (lambda_vector_negate): Same.
11938         (lambda_matrix_row_negate): Same.
11939         (lambda_vector_equal): Same.
11940         (lambda_matrix_right_hermite): Same.
11941         * tree-data-ref.h: Do not include lambda.h.
11942         (lambda_vector): Moved here.
11943         (lambda_matrix): Same.
11944         (dependence_level): Same.
11945         (lambda_transform_legal_p): Removed declaration.
11946         (lambda_collect_parameters): Same.
11947         (lambda_compute_access_matrices): Same.
11948         (lambda_vector_gcd): Same.
11949         (lambda_vector_new): Same.
11950         (lambda_vector_clear): Same.
11951         (lambda_vector_lexico_pos): Same.
11952         (lambda_vector_zerop): Same.
11953         (lambda_matrix_new): Same.
11954         * tree-flow.h (least_common_multiple): Removed declaration.
11955         * tree-parloops.c (lambda_trans_matrix): Moved here.
11956         (LTM_MATRIX): Same.
11957         (LTM_ROWSIZE): Same.
11958         (LTM_COLSIZE): Same.
11959         (LTM_DENOMINATOR): Same.
11960         (lambda_trans_matrix_new): Same.
11961         (lambda_matrix_vector_mult): Same.
11962         (lambda_transform_legal_p): Same.
11963         * tree-pass.h (pass_linear_transform): Removed declaration.
11964         * tree-ssa-loop.c (tree_linear_transform): Removed.
11965         (gate_tree_linear_transform): Removed.
11966         (pass_linear_transform): Removed.
11967         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11968         flag_loop_interchange.
11969
11970 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11971
11972         PR tree-optimization/47265
11973         PR tree-optimization/47443
11974         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11975         if name still has some uses.
11976
11977 2011-01-25  Martin Jambor  <mjambor@suse.cz>
11978
11979         PR tree-optimization/47382
11980         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11981         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11982
11983 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
11984
11985         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11986         sjlj_except_unwind_info.
11987
11988 2011-01-25  Richard Guenther  <rguenther@suse.de>
11989
11990         PR tree-optimization/47426
11991         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11992         visible functions results escape.
11993
11994 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11995
11996         PR target/45701
11997         * config/arm/arm.c (any_sibcall_uses_r3): New function.
11998         (arm_get_frame_offsets): Use it.
11999
12000 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12001             Jakub Jelinek  <jakub@redhat.com>
12002
12003         PR tree-optimization/47271
12004         * tree-if-conv.c (bb_postdominates_preds): New.
12005         (if_convertible_bb_p): Call bb_postdominates_preds.
12006         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12007         (predicate_scalar_phi): Call bb_postdominates_preds.
12008
12009 2011-01-25  Nick Clifton  <nickc@redhat.com>
12010
12011         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12012         * config/rx/rx.c (rx_function_value): Likewise.
12013         (rx_promote_function_mode): Likewise.
12014         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12015         in order to make it legitimate.
12016         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12017         make sure that the first operand is the same as the result register.
12018         (addsi3_unspec): Delete.
12019         (subdi3): Do not accept immediate operands.
12020         (subdi3_internal): Likewise.
12021
12022 2011-01-25  Jeff Law  <law@redhat.com>
12023
12024         PR rtl-optimization/37273
12025         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12026         handle them like argument loads from stack slots.  Do not double
12027         count memory for memory constants and argument loads from stack slots.
12028
12029 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12030
12031         PR tree-optimization/47427
12032         PR tree-optimization/47428
12033         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12034         coalesce if the new root var would be TREE_READONLY.
12035
12036 2011-01-25  Richard Guenther  <rguenther@suse.de>
12037
12038         PR middle-end/47414
12039         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12040         correct type for TBAA.
12041
12042 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12043
12044         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12045         (close_phi_written_to_memory): Call for_each_index with
12046         dr_indices_valid_in_loop.
12047
12048 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12049
12050         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12051         when it is initialized.
12052
12053 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12054
12055         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12056         call to graphite_find_data_references_in_stmt.
12057         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12058         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12059         call to graphite_find_data_references_in_stmt.
12060         (analyze_drs_in_stmts): Same.
12061         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12062         in which the scalar analysis of indices is performed.
12063         (create_data_ref): Same.  Update call to dr_analyze_indices.
12064         (find_data_references_in_stmt): Update call to create_data_ref.
12065         (graphite_find_data_references_in_stmt): Same.
12066         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12067         declaration.
12068         (create_data_ref): Same.
12069         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12070         call to create_data_ref.
12071
12072 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12073
12074         * graphite-sese-to-poly.c (build_poly_scop): Move
12075         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12076
12077 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12078
12079         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12080         VAR_DECL, PARM_DECL, and RESULT_DECL.
12081
12082 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12083
12084         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12085         in a reduction PBB.
12086         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12087         that have already been marked as PBB_IS_REDUCTION.
12088
12089 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12090
12091         * graphite-scop-detection.c (same_close_phi_node): New.
12092         (remove_duplicate_close_phi): New.
12093         (make_close_phi_nodes_unique): New.
12094         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12095
12096 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12097
12098         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12099         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12100         of both data references to be the same.
12101
12102 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12103
12104         * graphite-dependences.c (build_lexicographical_constraint): Remove
12105         the gdim parameter.
12106         (build_lexicographical_constraint): Adjust call to
12107         ppl_powerset_is_empty.
12108         (dependence_polyhedron): Same.
12109         (graphite_legal_transform_dr): Same.
12110         (graphite_carried_dependence_level_k): Same.
12111         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12112         parameter.
12113         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12114
12115 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12116
12117         * graphite-sese-to-poly.c
12118         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12119         (close_phi_written_to_memory): New.
12120         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12121         and unshare_expr.
12122
12123 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12124
12125         * doc/install.texi: Update the expected version number of PPL to 0.11.
12126         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12127         #if PPL_VERSION_MINOR < 11.
12128
12129 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12130
12131         * graphite-dependences.c: Include graphite-cloog-util.h.
12132         (new_poly_ddr): Inlined into dependence_polyhedron.
12133         (free_poly_ddr): Moved close by new_poly_ddr.
12134         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12135         Early return NULL when ppl_powerset_is_empty returns true.
12136         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12137         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12138         (graphite_legal_transform_dr): Call new_poly_ddr.
12139         (graphite_carried_dependence_level_k): Same.
12140         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12141         (dot_transformed_deps_stmt_1): Removed.
12142         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12143         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12144         (dot_deps_1): Call dot_deps_2.
12145         * Makefile.in (graphite-dependences.o): Add missing dependence on
12146         graphite-cloog-util.h.
12147
12148 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12149
12150         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12151         (build_lexicographical_constraint): Same.
12152         (dependence_polyhedron_1): Same.
12153         (graphite_legal_transform_dr): Same.
12154         (graphite_carried_dependence_level_k): Same.
12155         * graphite-ppl.c (ppl_powerset_is_empty): New.
12156         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12157         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12158
12159 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12160
12161         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12162         the "a followed by b" relation and document it.
12163
12164 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12165
12166         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12167         iteration when the bag of constraints is empty.
12168
12169 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12170
12171         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12172
12173 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12174
12175         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12176         nest and two loop depths as parameters.
12177         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12178         lst_perfect_nestify.
12179
12180 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12181
12182         * graphite-dependences.c (print_pddr): Call
12183         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12184
12185 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12186
12187         * graphite-ppl.c (debug_gmp_value): New.
12188         * graphite-ppl.h (debug_gmp_value): Declared.
12189
12190 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12191
12192         * doc/install.texi: Document availability of cloog-0.16.
12193
12194 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12195
12196         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12197         invalid postdominance info.
12198
12199 2011-01-24  Jan Hubicka  <jh@suse.cz>
12200
12201         PR c/21659
12202         * doc/extend.texi (weak pragma): Drop claim that it must
12203         appear before definition.
12204         * varasm.c (merge_weak, declare_weak): Only sanity check
12205         that DECL is not output at a time it is declared weak.
12206
12207 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12208
12209         * machmode.def: Fixed comments.
12210
12211 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12212
12213         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12214
12215 2011-01-24  Paul Koning  <ni1d@arrl.net>
12216
12217         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12218         WORDS_BIG_ENDIAN.
12219
12220 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12221
12222         PR target/46519
12223         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12224         (block_info): Add scanned and prev.
12225         (move_or_delete_vzeroupper_2): Return if the basic block
12226         has been scanned and the upper 128bit state is unchanged
12227         from the last scan.
12228         (move_or_delete_vzeroupper_1): Return true if the exit
12229         state is changed.
12230         (move_or_delete_vzeroupper): Visit basic blocks using the
12231         work-list based algorithm based on vt_find_locations in
12232         var-tracking.c.
12233
12234         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12235
12236 2011-01-24  Nick Clifton  <nickc@redhat.com>
12237
12238         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12239         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12240         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12241         then define __v850e1__.
12242         * doc/invoke.texi: Document -mv850es.
12243
12244 2011-01-24  Richard Henderson  <rth@redhat.com>
12245
12246         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12247         compound unordered comparisons.
12248         * config/rx/rx.c (rx_split_fp_compare): Remove.
12249         * config/rx/rx-protos.h: Update.
12250         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12251         (cbranchsf4): Don't call rx_split_fp_compare.
12252         (*cbranchsf4): Use rx_split_cbranch.
12253         (*cmpsf): Don't accept "i" constraint.
12254         (*conditional_branch): Only valid after reload.
12255         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12256
12257 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12258
12259         PR target/47385
12260         * config/rs6000/altivec.md (vector constant splitters): Add
12261         support for creating vector single precision constants if -mvsx is
12262         used and we would create the constant using Altivec primitives.
12263
12264 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12265             Richard Sandiford  <rdsandiford@googlemail.com>
12266
12267         PR rtl-optimization/47166
12268         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12269         mechanism for PRE_MODIFY and POST_MODIFY.
12270         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12271         reloadreg.
12272
12273 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12274
12275         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12276
12277 2011-01-22  Jan Hubicka  <jh@suse.cz>
12278
12279         PR lto/47333
12280         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12281
12282 2011-01-22  Jan Hubicka  <jh@suse.cz>
12283
12284         PR tree-optimization/43884
12285         PR lto/44334
12286         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12287         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12288
12289 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12290
12291         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12292         * config/s390/s390.c (s390_register_move_cost,
12293         s390_memory_move_cost): New.
12294         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12295
12296 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12297
12298         PR middle-end/47401
12299         * except.c (sjlj_assign_call_site_values): Move setting the
12300         crtl->uses_eh_lsda flag to ...
12301         (sjlj_mark_call_sites): ... here.
12302         (sjlj_emit_function_enter): Support NULL dispatch label.
12303         (sjlj_build_landing_pads): In a function with no landing pads
12304         that still has must-not-throw regions, generate code to register
12305         a personality function with empty LSDA.
12306
12307 2011-01-21  Richard Henderson  <rth@redhat.com>
12308
12309         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12310
12311         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12312
12313         * compare-elim.c: New file.
12314         * Makefile.in (OBJS-common): Add it.
12315         (compare-elim.o): New.
12316         * common.opt (fcompare-elim): New.
12317         * opts.c (default_options_table): Add OPT_fcompare_elim.
12318         * tree-pass.h (pass_compare_elim_after_reload): New.
12319         * passes.c (init_optimization_passes): Add it.
12320         * recog.h: Protect against re-inclusion.
12321         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12322         * doc/invoke.texi (-fcompare-elim): Document it.
12323         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12324         * doc/tm.texi: Rebuild.
12325
12326 2011-01-22  Nick Clifton  <nickc@redhat.com>
12327
12328         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12329         rx_split_fp_compare.
12330
12331 2011-01-22  Nick Clifton  <nickc@redhat.com>
12332
12333         * config/rx/rx.md (UNSPEC_CONST): New.
12334         (deallocate_and_return): Wrap the amount popped off the stack in
12335         an UNSPEC_CONST in order to stop it being rejected by
12336         -mmax-constant-size.
12337         (pop_and_return): Add a "(return)" rtx.
12338         (call): Drop the immediate operand.
12339         (call_internal): Likewise.
12340         (call_value): Likewise.
12341         (call_value_internal): Likewise.
12342         (sibcall_internal): Likewise.
12343         (sibcall_value_internal): Likewise.
12344         (sibcall): Likewise.  Generate an explicit call using
12345         sibcall_internal.
12346         (sibcall_value): Likewise.
12347         (mov<>): FAIL if a constant operand is not legitimate.
12348         (addsi3_unpsec): New pattern.
12349
12350         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12351         (ok_for_max_constant): New function.
12352         (gen_safe_add): New function.
12353         (rx_expand_prologue): Use gen_safe_add.
12354         (rx_expand_epilogue): Likewise.
12355         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12356         UNSPEC CONSTs.
12357
12358 2011-01-21  Jeff Law  <law@redhat.com>
12359
12360         PR tree-optimization/47053
12361         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12362         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12363         statements are deleted.
12364         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12365         is nonempty, then purge dead edges and cleanup the CFG.
12366
12367 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12368
12369         PR debug/47402
12370         Temporarily revert:
12371         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12372         PR debug/47106
12373         * tree-dfa.c (create_var_ann): Mark variable as used.
12374
12375 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12376
12377         PR middle-end/45566
12378         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12379         notes from other section in hot/cold partitioning even if
12380         last_action is -3.  Increment call_site_base.
12381
12382         PR rtl-optimization/47366
12383         * fwprop.c (forward_propagate_into): Return bool.  If
12384         any changes are made, -fnon-call-exceptions is used and
12385         REG_EH_REGION note is present, call purge_dead_edges
12386         and return true if it purged anything.
12387         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12388         any EH edges were purged.
12389
12390 2011-01-21  Jeff Law  <law@redhat.com>
12391
12392         PR rtl-optimization/41619
12393         * caller-save.c (setup_save_areas): Break out code to determine
12394         which hard regs are live across calls by examining the reload chains
12395         so that it is always used.
12396         Eliminate code which checked REG_N_CALLS_CROSSED.
12397
12398 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12399
12400         PR tree-optimization/47355
12401         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12402         NOP has non-debug uses beyond PHIs in new_bb.
12403
12404 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12405
12406         PR debug/47106
12407         * cfgexpand.c (account_used_vars_for_block): Only account vars
12408         that are annotated as used.
12409         (estimated_stack_frame_size): Don't set TREE_USED.
12410         * tree-dfa.c (create_var_ann): Mark variable as used.
12411
12412 2011-01-21  Richard Guenther  <rguenther@suse.de>
12413
12414         PR middle-end/47395
12415         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12416
12417 2011-01-21  Richard Guenther  <rguenther@suse.de>
12418
12419         PR tree-optimization/47365
12420         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12421         (vn_reference_lookup_pieces): Adjust.
12422         (vn_reference_lookup): Likewise.
12423         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12424         (vn_reference_lookup_3): Only look through kills if in
12425         VN_WALKREWRITE mode.
12426         (vn_reference_lookup_pieces): Adjust.
12427         (vn_reference_lookup): Likewise.
12428         (visit_reference_op_load): Likewise.
12429         (visit_reference_op_store): Likewise.
12430         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12431         (compute_avail): Likewise.
12432         (eliminate): Likewise.
12433
12434 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12435
12436         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12437         DECL_IGNORED_P non-reg vars if they are used.
12438
12439         PR tree-optimization/47391
12440         * varpool.c (const_value_known_p): Return false if
12441         decl is volatile.
12442
12443 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12444
12445         PR bootstrap/47215
12446         * config/i386/i386.c (ix86_local_alignment): Handle
12447         case for va_list_type_node is nil.
12448         (ix86_canonical_va_list_type): Likewise.
12449
12450 2011-01-21  Alan Modra  <amodra@gmail.com>
12451
12452         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12453         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12454
12455 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12456
12457         * config/arm/arm.md (define_attr type): Rename f_load
12458         and f_store to f_fpa_load and f_fpa_store. Update.
12459         (write_conflict): Deal with rename fallout.
12460         (*push_fp_multi): Likewise.
12461         * config/arm/fpa.md (f_load): Use f_fpa_load.
12462         (f_store): Use f_fpa_store.
12463         (*movsf_fpa): Likewise.
12464         (*movdf_fpa): Likewise.
12465         (*movxf_fpa): Likewise.
12466         (*thumb2_movsf_fpa): Likewise.
12467         (*thumb2_movdf_fpa): Likewise.
12468         (*thumb2_movxf_fpa): Likewise.
12469         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12470         f_loadd and f_stored.
12471         (*thumb2_movdi_vfp): Likewise.
12472         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12473         (*thumb2_movsi_vfp): Likewise.
12474         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12475         Use f_loads instead of f_load.
12476         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12477
12478 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12479
12480         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12481         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12482         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12483         (xtensa_mode_dependent_address_p): New function.
12484         (constantpool_address_p): Make static. Change return type to bool.
12485         Change argument type to const_rtx. Use CONST_INT_P predicate.
12486
12487 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12488
12489         PR debug/46583
12490         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12491
12492 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12493
12494         PR debug/47283
12495         * cfgexpand.c (expand_debug_expr): Instead of generating
12496         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12497         etc. handling.
12498
12499 2011-01-20  Richard Guenther  <rguenther@suse.de>
12500
12501         PR middle-end/47370
12502         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12503         the pointer operand of MEM_REFs.
12504
12505 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12506
12507         PR tree-optimization/46130
12508         * ipa-split.c (consider_split): If return_bb contains non-virtual
12509         PHIs other than for retval or if split_function would not adjust it,
12510         refuse to split.
12511
12512 2011-01-20  Richard Guenther  <rguenther@suse.de>
12513
12514         PR tree-optimization/47167
12515         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12516         Revert previous change, only avoid enumeral type changes.
12517
12518 2011-01-19  Mike Stump  <mikestump@comcast.net>
12519
12520         * doc/tm.texi.in (BRANCH_COST): Englishify.
12521         * doc/tm.texi (BRANCH_COST): Likewise.
12522
12523 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12524
12525         PR c++/47291
12526         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12527         (gen_scheduled_generic_parms_dies): New functions.
12528         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12529         generation for the end of CU compilation.
12530         (dwarf2out_finish): Generate template parameters DIEs here.
12531
12532 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12533
12534         PR debug/46240
12535         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12536         debug bind stmt on merge edges.
12537
12538 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12539
12540         PR debug/47079
12541         PR debug/46724
12542         * function.c (instantiate_expr): Instantiate incoming rtl of
12543         implicit arguments, and recurse on VALUE_EXPRs.
12544         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12545         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12546
12547 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12548
12549         * c-parser.c (c_parser_for_statement): Initialize
12550         collection_expression.
12551
12552 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12553
12554         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12555
12556 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12557
12558         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12559         (LINK_SHLIB_SPEC): Don't use %(link_path).
12560         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12561
12562 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12563
12564         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12565         (NO_SHARED_LIB_SUPPORT): Remove.
12566         (LINK_SHLIB_SPEC): Remove one conditional definition.
12567
12568 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12569
12570         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12571         %{call_shared}.
12572         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12573         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12574         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12575         %{call_shared} and conditionals on these options not being passed.
12576         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12577         %{call_shared}.
12578
12579 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12580
12581         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12582         simplify.
12583
12584         * ipa-split.c: Spelling fixes.
12585
12586 2011-01-19  Richard Henderson  <rth@redhat.com>
12587
12588         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12589         (*mulsi3): Likewise.
12590
12591         * longlong.h [__mn10300__] (count_leading_zeros): New.
12592         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12593         [__mn10300__] (add_ssaaaa, subddmmss): New.
12594         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12595         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12596
12597 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12598
12599         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12600
12601 2011-01-19  Richard Henderson  <rth@redhat.com>
12602
12603         * config/mn10300/mn10300.md (addsi3_flags): New.
12604         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12605         (subsi3_flags, subc_internal, subdi3): New.
12606         (subdi3_internal, *subdi3_degenerate): New.
12607         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12608
12609         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12610         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12611         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12612         * config/mn10300/mn10300-protos.h: Update.
12613         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12614         (return_ret): Likewise.  Rename from return_internal_regs.
12615         (return_internal): Remove.
12616
12617         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12618         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12619         (mn10300_legitimate_constant_p): Likewise.
12620         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12621         (mn10300_frame_size): New.
12622         (mn10300_expand_prologue): Use it.
12623         (mn10300_expand_epilogue): Likewise.
12624         (mn10300_initial_offset): Likewise.
12625         * config/mn10300/mn10300-protos.h: Update.
12626         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12627         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12628         (prologue, epilogue, return_internal): Tidy output code.
12629         (mn10300_store_multiple_operation, return): Likewise.
12630         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12631         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12632         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12633         (load_pic, am33_load_pic): New.
12634         (mn10300_load_pic0, mn10300_load_pic1): New.
12635
12636         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12637         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12638         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12639         (cc_flags_for_mode, cc_flags_for_code): New.
12640         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12641         overflow flag is not valid.  Validate that the flags we need
12642         for the comparison are valid.
12643         (mn10300_output_cmp): Remove.
12644         (mn10300_output_add): New.
12645         (mn10300_select_cc_mode): Use cc_flags_for_code.
12646         (mn10300_split_cbranch): New.
12647         (mn10300_match_ccmode): New.
12648         (mn10300_split_and_operand_count): New.
12649         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12650         to the function.
12651         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12652         (addsi3): ... here.  Use mn10300_output_add.
12653         (*addsi3_flags): New.
12654         (*am33_subsi3, *mn10300_subsi3): Merge...
12655         (subsi3): ... here.  Use attribute isa.
12656         (*subsi3_flags): New.
12657         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12658         when possible.
12659         (*am33_andsi3, *mn10300_andsi3): Merge...
12660         (andsi3): ... here.
12661         (*andsi3_flags): New.
12662         (andsi3 splitters): New.
12663         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12664         (iorsi3): ... here.
12665         (*iorsi3_flags): New.
12666         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12667         (xorsi3): ... here.
12668         (*xorsi3_flags): New.
12669         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12670         (one_cmplsi2): ... here.
12671         (*one_cmplsi2_flags): New.
12672         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
12673         instead of "dax" in constraints.  Use mn10300_split_cbranch.
12674         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
12675         use matching constraints to eliminate a self-comparison.
12676         (*integer_conditional_branch): Rename from integer_conditional_branch.
12677         Use int_mode_flags to match CC_REG.
12678         (*cbranchsi4_btst, *btstsi): New.
12679         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
12680         mn10300_split_cbranch.
12681         (*am33_cmpsf): Rename from am33_cmpsf.
12682         (*float_conditional_branch): Rename from float_conditional_branch.
12683         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12684         (zero_extendqisi2): ... here.
12685         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12686         (zero_extendhisi2): ... here.
12687         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12688         (extendqisi2): ... here.
12689         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12690         (extendhisi2): ... here.
12691         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12692         (ashlsi3): ... here.
12693         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12694         (lshrsi3): ... here.
12695         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12696         (ashrsi3): ... here.
12697         (consecutive add peephole): Remove.
12698         * config/mn10300/predicates.md (label_ref_operand): New.
12699         (int_mode_flags): New.
12700         (CCZN_comparison_operator): New.
12701
12702         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12703         (throughput_42_latency_43): New reservation.
12704         (mulsidi3, umulsidi3): New expanders.
12705         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
12706         the MDR register to allocation; separately allocate the low and
12707         high parts of the DImode result.
12708         (umulsidi3_internal): Similarly.
12709         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12710         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
12711         (udivsi3, umodsi3): Remove.
12712         (udivmodsi4, divmodsi4): New expanders.
12713         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
12714         (*divmodsi4): Simiarly.
12715         (ext_internal): New.
12716
12717         * config/mn10300/constraints.md ("z"): New constraint.
12718         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12719         (FIXED_REGISTERS): Don't fix MDR.
12720         (CALL_USED_REGSITERS): Reformat nicely.
12721         (REG_ALLOC_ORDER): Add MDR.
12722         (enum regclass): Add MDR_REGS.
12723         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12724         (IRA_COVER_CLASSES): Add MDR_REGS.
12725         (REGNO_REG_CLASS): Handle MDR_REG.
12726         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12727         (mn10300_register_move_cost): Likewise.
12728         * config/mn10300/mn10300.md (MDR_REG): New.
12729         (*movsi_internal): Handle moves to/from MDR_REGS.
12730
12731         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12732         POST_MODIFY.
12733         (mn10300_secondary_reload): Tidy combination reload classes.
12734         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12735         addresses for AM33.  Allow symbolic offsets for reg+imm.
12736         (mn10300_regno_in_class_p): New.
12737         (mn10300_legitimize_reload_address): New.
12738         * config/mn10300/mn10300.h (enum reg_class): Remove
12739         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12740         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
12741         SP_OR_GENERAL_REGS.
12742         (REG_CLASS_NAMES): Update to match.
12743         (REG_CLASS_CONTENTS): Likewise.
12744         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12745         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12746         (REGNO_IN_RANGE_P): Remove.
12747         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12748         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12749         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12750         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12751         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12752         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12753         (REGNO_GENERAL_P): New.
12754         (HAVE_POST_MODIFY_DISP): New.
12755         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12756         (LEGITIMIZE_RELOAD_ADDRESS): New.
12757         * config/mn10300/mn10300-protos.h: Update.
12758
12759         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12760         DATA_REGS for AM33 stack-pointer destination.
12761         (mn10300_preferred_output_reload_class): Likewise.
12762         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12763         into a form appropriate for ...
12764         (TARGET_SECONDARY_RELOAD): New.
12765         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12766         * config/mn10300/mn10300-protos.h: Update.
12767         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12768         reload_insi; use the "A" constraint for the scratch; handle AM33
12769         moves of sp to non-address registers.
12770
12771         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12772         (*movqi_internal): ... here.
12773         (*am33_movhi, *mn10300_movhi): Merge into...
12774         (*movhi_internal): ... here.
12775         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
12776         as the source/destination of moves from/to SP.
12777         (movsf): Only allow for AM33-2.
12778         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12779         any integer constant constraint.  Only allow for AM33-2.  Tidy
12780         all of the alternative outputs.
12781         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12782         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
12783         for MN103.
12784         (udivsi3, umodsi3): New patterns for MN103 only.
12785
12786 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
12787
12788         * doc/tm.texi.in: Spell out that a lack of register class unions
12789         can lead to ICEs.
12790         * doc/tm.texi: Regenerate.
12791
12792 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12793
12794         PR rtl-optimization/47337
12795         * dce.c (check_argument_store): New function.
12796         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
12797
12798         PR tree-optimization/47290
12799         * tree-eh.c (infinite_empty_loop_p): New function.
12800         (cleanup_empty_eh): Use it.
12801
12802 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
12803
12804         PR target/46997
12805         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12806         (a64_expand_widen_sum): Ditto.
12807         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12808         (vec_extract_evenodd_help): Ditto.
12809         (vec_extract_evenv4hi): Ditto.
12810         (vec_extract_oddv4hi): Ditto.
12811         (vec_extract_evenv2si): Ditto.
12812         (vec_extract_oddv2si): Ditto.
12813         (vec_extract_evenv2sf): Ditto.
12814         (vec_extract_oddv2sf): Ditto.
12815         (vec_pack_trunc_v4hi: Ditto.
12816         (vec_pack_trunc_v2si): Ditto.
12817         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12818         (vec_interleave_highv8qi): Ditto.
12819         (mix1_r): Ditto.
12820         (vec_extract_oddv8qi): Ditto.
12821         (vec_interleave_lowv4hi): Ditto.
12822         (vec_interleave_highv4hi): Ditto.
12823         (vec_interleave_lowv2si): Ditto.
12824         (vec_interleave_highv2si): Ditto.
12825
12826 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12827
12828         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12829         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12830         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
12831         (pa_c_mode_for_suffix): New.
12832         (TARGET_EXPAND_BUILTIN): Define.
12833         (TARGET_C_MODE_FOR_SUFFIX): Define.
12834         (pa_builtins): Define.
12835         (pa_init_builtins): Register __float128 type and init new support
12836         builtins.
12837         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12838         * config/pa/quadlib.c (_U_Qfcopysign): New.
12839
12840 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
12841
12842         PR middle-end/46894
12843         * explow.c (allocate_dynamic_stack_space): Do not assume more than
12844         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12845         are defined.
12846
12847 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12848
12849         PR tree-optimization/47179
12850         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12851         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12852
12853 2011-01-18  Richard Guenther  <rguenther@suse.de>
12854
12855         PR rtl-optimization/47216
12856         * emit-rtl.c: Include tree-flow.h.
12857         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12858         of replicating it with different semantics.
12859         * Makefile.in (emit-rtl.o): Adjust.
12860
12861 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12862
12863         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12864         (cortex_a9_dp): Handle neon types correctly.
12865
12866 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
12867
12868         PR rtl-optimization/47299
12869         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12870         subtarget.  Use normal multiplication if both operands are constants.
12871         * expmed.c (expand_widening_mult): Don't try to optimize constant
12872         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
12873         before using it.
12874
12875 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12876
12877         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
12878         spacing after 'e.g.', typos, comma, hyphenation.
12879
12880 2011-01-17  Richard Henderson  <rth@redhat.com>
12881
12882         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12883         (rx_restricted_mem_operand): New.
12884         (rx_shift_operand): Use register_operand.
12885         (rx_source_operand, rx_compare_operand): Likewise.
12886         * config/rx/rx.md (addsi3_flags): New expander.
12887         (adddi3): Rewrite as expander.
12888         (adc_internal, *adc_flags, adddi3_internal): New patterns.
12889         (subsi3_flags): New expander.
12890         (subdi3): Rewrite as expander.
12891         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12892
12893         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12894         (rx_init_builtins): Remove sat builtin.
12895         (rx_expand_builtin): Likewise.
12896         * config/rx/rx.md (ssaddsi3): New.
12897         (*sat): Rename from sat.  Represent the CC_REG input.
12898
12899         * config/rx/predicates.md (rshift_operator): New.
12900         * config/rx/rx.c (rx_expand_insv): Remove.
12901         * config/rx/rx-protos.h: Update.
12902         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
12903         operand to the canonical position.
12904         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12905         (*bitclr, *bitclr_in_memory): Similarly.
12906         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12907         (insv): Retain the zero_extract in the expansion.
12908
12909         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12910         (bswaphi2, bitinvert, revw): Likewise.
12911
12912         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12913         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12914         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12915         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12916         (bitset, bitset_in_memory): Likewise.
12917         (bitinvert, bitinvert_in_memory): Likewise.
12918         (bitclr, bitclr_in_memory): Likewise.
12919         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12920         (rx_strend, rx_cmpstrn): Likewise.
12921         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
12922         (bitop peep2 patterns): Remove.
12923
12924         * config/rx/rx.c (rx_match_ccmode): New.
12925         * config/rx/rx-protos.h: Update.
12926         * config/rx/rx.md (abssi2): Clobber, don't set flags.
12927         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12928         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12929         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12930         (fix_truncsfsi2, floatsisf2): Likewise.
12931         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12932         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12933         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12934         (*subsi3_flags, *xorsi3_flags): New.
12935
12936         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12937
12938         * config/rx/rx.c (rx_print_operand): Remove workaround for
12939         unsplit comparison operations.
12940
12941         * config/rx/rx.md (movsicc): Split after reload.
12942         (*movsicc): Merge *movsieq and *movsine via match_operator.
12943         (*stcc): New pattern.
12944
12945         * config/rx/rx.c (rx_float_compare_mode): Remove.
12946         * config/rx/rx.h (rx_float_compare_mode): Remove.
12947         * config/rx/rx.md (cstoresi4): Split after reload.
12948         (*sccc): New pattern.
12949
12950         * config/rx/predicates.md (label_ref_operand): New.
12951         (rx_z_comparison_operator): New.
12952         (rx_zs_comparison_operator): New.
12953         (rx_fp_comparison_operator): New.
12954         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12955         Validate that the flags are set properly for the comparison.
12956         (rx_gen_cond_branch_template): Remove.
12957         (rx_cc_modes_compatible): Remove.
12958         (mode_from_flags): New.
12959         (flags_from_code): Rename from flags_needed_for_conditional.
12960         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12961         (rx_select_cc_mode): Likewise.
12962         (rx_split_fp_compare): New.
12963         (rx_split_cbranch): New.
12964         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12965         (*cbranchsi4): Use match_operator and rx_split_cbranch.
12966         (*cbranchsf4): Similarly.
12967         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
12968         match_operator and rx_split_cbranch.
12969         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12970         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
12971         (*cmpsi): Rename from cmpsi.
12972         (*tstsi): Rename from tstsi.
12973         (*cmpsf): Rename from cmpsf; use CC_Fmode.
12974         (*conditional_branch): Rename from conditional_branch.
12975         (*reveresed_conditional_branch): Remove.
12976         (b<code>): Remove expander.
12977         * config/rx/rx-protos.h: Update.
12978
12979         * config/rx/rx.c (rx_compare_redundant): Remove.
12980         * config/rx/rx.md (cmpsi): Don't use it.
12981         * config/rx/rx-protos.h: Update.
12982
12983         * config/rx/rx-modes.def (CC_F): New mode.
12984         * config/rx/rx.c (rx_select_cc_mode): New.
12985         * config/rx/rx.h (SELECT_CC_MODE): Use it.
12986         * config/rx/rx-protos.h: Update.
12987
12988 2011-01-17  Richard Henderson  <rth@redhat.com>
12989
12990         * except.c (dump_eh_tree): Fix stray ; after for statement.
12991
12992 2011-01-17  Richard Guenther  <rguenther@suse.de>
12993
12994         PR tree-optimization/47313
12995         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12996         handling before copying the body.  Properly deal with
12997         by-reference result in SSA form.
12998
12999 2011-01-17  Ian Lance Taylor  <iant@google.com>
13000
13001         PR target/47219
13002         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13003         (struct_value_alias_set): Don't define.
13004         (sparc_option_override): Don't set sparc_sr_alias_set and
13005         struct_value_alias_set.
13006         (save_or_restore_regs): Use gen_frame_mem rather than calling
13007         set_mem_alias_set.
13008         (sparc_struct_value_rtx): Likewise.
13009
13010 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13011
13012         PR target/47318
13013         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13014         (_mm_maskstore_pd): Likewise.
13015         (_mm_maskload_ps): Likewise.
13016         (_mm_maskstore_ps): Likewise.
13017         (_mm256_maskload_pd): Change mask to __m256i.
13018         (_mm256_maskstore_pd): Likewise.
13019         (_mm256_maskload_ps): Likewise.
13020         (_mm256_maskstore_ps): Likewise.
13021
13022         * config/i386/i386-builtin-types.def: Updated.
13023         (ix86_expand_special_args_builtin): Likewise.
13024
13025         * config/i386/i386.c (bdesc_special_args): Update
13026         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13027         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13028         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13029         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13030
13031         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13032         Use <avxpermvecmode> on mask register.
13033         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13034
13035 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13036             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13037             Eric Botcazou  <ebotcazou@adacore.com>
13038
13039         PR target/46655
13040         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13041         if <= USHRT_MAX in 32-bit mode.
13042
13043 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13044
13045         * doc/install.texi (Configuration, Specific): Wrap long
13046         lines in examples.  Allow line wrapping in long options
13047         and URLs where beneficial for PDF output.
13048
13049 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13050
13051         * config/mips/mips.c (mips_classify_symbol): Don't return
13052         SYMBOL_PC_RELATIVE for nonlocal labels.
13053
13054 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13055
13056         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13057
13058 2011-01-15  Jan Hubicka  <jh@suse.cz>
13059
13060         PR tree-optimization/47276
13061         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13062         declarations as needed.
13063
13064 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13065
13066         * common.opt (fdevirtualize): New flag.
13067         * doc/invoke.texi (Option Summary): Document it.
13068         * opts.c (default_options_table): Add devirtualize flag.
13069         * ipa-prop.c (detect_type_change): Return immediately if
13070         devirtualize flag is not set.
13071         (detect_type_change_ssa): Likewise.
13072         (compute_known_type_jump_func): Likewise.
13073         (ipa_analyze_virtual_call_uses): Likewise.
13074
13075 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13076
13077         PR tree-optimization/45934
13078         PR tree-optimization/46302
13079         * ipa-prop.c (type_change_info): New type.
13080         (stmt_may_be_vtbl_ptr_store): New function.
13081         (check_stmt_for_type_change): Likewise.
13082         (detect_type_change): Likewise.
13083         (detect_type_change_ssa): Likewise.
13084         (compute_complex_assign_jump_func): Check for dynamic type change.
13085         (compute_complex_ancestor_jump_func): Likewise.
13086         (compute_known_type_jump_func): Likewise.
13087         (compute_scalar_jump_functions): Likewise.
13088         (ipa_analyze_virtual_call_uses): Likewise.
13089         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13090
13091 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13092
13093         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13094         * config/i386/i386.opt (msse5): New Alias.
13095
13096 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13097
13098         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13099         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13100         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13101         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13102
13103 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13104
13105         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13106         -mcpu options.
13107         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13108         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13109         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13110         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13111         Likewise.
13112         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13113
13114 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13115
13116         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13117
13118 2011-01-14  Mike Stump  <mikestump@comcast.net>
13119
13120         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13121         * config/fr30/fr30.md: Likweise
13122         (movsi_push): Likewise.
13123         (movsi_pop): Likewise.
13124         (enter_func): Likewise.
13125         * config/moxie/moxie.md (movsi_push): Likewise.
13126         (movsi_pop): Likewise.
13127
13128 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13129
13130         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13131         %{no_archive} %{exact_version}.
13132         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13133         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13134         %{no_archive} %{exact_version}.
13135         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13136         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13137         * config/mips/vxworks.h: Likewise.
13138
13139 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13140
13141         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13142
13143 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13144
13145         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13146         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13147
13148 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13149
13150         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13151         -nodefaultlib.
13152
13153 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13154
13155         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13156         for mcpu not cpu.
13157         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13158         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13159         not cpu.
13160         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13161         Don't handle -shlib.
13162
13163 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13164
13165         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13166         (CC1_SPEC): Don't handle -profile.
13167
13168 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13169
13170         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13171         * config/mips/mips.h (CC1_SPEC): Likewise.
13172
13173 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13174
13175         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13176         * config/mips/mips.h (CC1_SPEC): Likewise.
13177
13178 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13179
13180         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13181         * config/m32r/linux.h (LINK_SPEC): Likewise.
13182         * config/mips/linux.h (LINK_SPEC): Likewise.
13183         * config/mips/linux64.h (LINK_SPEC): Likewise.
13184         * config/sparc/linux.h (LINK_SPEC): Likewise.
13185         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13186         LINK_SPEC): Likewise.
13187         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13188
13189 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13190
13191         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13192         %{version:-v}.
13193         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13194
13195 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13196
13197         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13198         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13199
13200 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13201
13202         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13203
13204 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13205
13206         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13207         supports -Bstatic/-Bdynamic.
13208         * configure: Regenerate.
13209
13210 2011-01-14  Jan Hubicka  <jh@suse.cz>
13211             Jack Howarth  <howarth@bromo.med.uc.edu>
13212
13213         PR target/46037
13214         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13215         when checking debug_info_level. Test write_symbols instead of
13216         debug_hooks->var_location when setting flag_var_tracking_uninit.
13217
13218 2011-01-14  Richard Guenther  <rguenther@suse.de>
13219
13220         PR tree-optimization/47179
13221         * target.def (ref_may_alias_errno): New target hook.
13222         * targhooks.h (default_ref_may_alias_errno): Declare.
13223         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13224         (default_ref_may_alias_errno): New function.
13225         * target.h (struct ao_ref_s): Declare.
13226         * tree-ssa-alias.c: Include target.h.
13227         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13228         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13229         (targhooks.o): Likewise.
13230         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13231         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13232
13233 2011-01-14  Richard Guenther  <rguenther@suse.de>
13234
13235         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13236
13237 2011-01-14  Richard Guenther  <rguenther@suse.de>
13238
13239         PR tree-optimization/47280
13240         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13241         return CFG changes.
13242         (tree_ssa_forward_propagate_single_use_vars): Deal with
13243         CFG changes from associate_plusminus.
13244
13245 2011-01-14  Richard Guenther  <rguenther@suse.de>
13246
13247         PR middle-end/47281
13248         Revert
13249         2011-01-11  Richard Guenther  <rguenther@suse.de>
13250
13251         PR tree-optimization/46076
13252         * tree-ssa.c (useless_type_conversion_p): Conversions from
13253         unprototyped to empty argument list function types are useless.
13254
13255 2011-01-14  Richard Guenther  <rguenther@suse.de>
13256
13257         PR tree-optimization/47286
13258         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13259
13260 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13261
13262         PR middle-end/46823
13263         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13264
13265 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13266
13267         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13268         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13269         * config/xtensa/xtensa.c (xtensa_libcall_value,
13270         xtensa_function_value_regno_p): New functions.
13271         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13272
13273 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13274
13275         PR c++/47213
13276         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13277         PE specific hook.
13278         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13279         New function prototype.
13280         * config/i386/winnt.c (i386_pe_assemble_visibility):
13281         Warn only if attribute was specified by user.
13282
13283 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13284
13285         PR target/47251
13286         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13287         floating point.
13288         (floatunsdidf2_fcfidu): Ditto.
13289
13290 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13291
13292         * config/s390/s390.c (print_operand_address): Replace 'error' with
13293         'output_operand_lossage'.
13294         (print_operand): Likewise.
13295
13296 2011-01-13  Jeff Law  <law@redhat.com>
13297
13298         PR rtl-optimization/39077
13299         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13300         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13301         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13302         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13303         * gcse.c (prune_insertions_deletions): New function.
13304         (compute_pre_data): Use it.
13305
13306 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13307
13308         PR debug/PR46973
13309         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13310         static function.
13311         (prune_unused_types_mark): Use it.
13312
13313 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13314
13315         PR rtl-optimization/45352
13316         * sel-sched.c: Update copyright years.
13317         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13318         in the advancing loop when we have issued issue_rate insns.
13319
13320 2011-01-12  Richard Henderson  <rth@redhat.com>
13321
13322         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13323         (TARGET_MD_ASM_CLOBBERS): New.
13324
13325         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13326         (TARGET_DELEGITIMIZE_ADDRESS): New.
13327
13328         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13329         (clzsi2, *bsch): New patterns.
13330
13331         * config/mn10300/mn10300.md (INT): New mode iterator.
13332         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13333
13334         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13335         flag_split_wide_types.
13336
13337         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13338         (mn10300_trampoline_init): Rewrite without a template, an immediate
13339         load and a direct branch.
13340         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13341
13342 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13343
13344         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13345         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13346         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13347         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13348
13349 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13350
13351         PR debug/47209
13352         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13353         of type.
13354
13355 2011-01-12  Jan Hubicka  <jh@suse.cz>
13356
13357         PR driver/47244
13358         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13359         (PLUGIN_COND_CLOSE): New macro.
13360         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13361
13362 2011-01-12  Richard Guenther  <rguenther@suse.de>
13363
13364         PR lto/47259
13365         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13366         register variables in a MEM_REF.
13367
13368 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13369
13370         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13371         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13372         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13373         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13374         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13375         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13376         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13377         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13378         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13379         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13380         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13381         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13382         * config/gnu-user.h: New.  Copied from linux.h.
13383         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13384         GNU_USER_TARGET_STARTFILE_SPEC.
13385         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13386         GNU_USER_TARGET_ENDFILE_SPEC.
13387         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13388         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13389         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13390         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13391         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13392         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13393         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13394         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13395         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13396         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13397         * config/arm/linux-eabi.h (CC1_SPEC): Use
13398         GNU_USER_TARGET_CC1_SPEC.
13399         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13400         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13401         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13402         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13403         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13404         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13405         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13406         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13407
13408 2011-01-12  Richard Guenther  <rguenther@suse.de>
13409
13410         PR other/46946
13411         * doc/invoke.texi (ffast-math): Document it is turned on
13412         with -Ofast.
13413
13414 2011-01-12  Jan Hubicka  <jh@suse.cz>
13415
13416         PR tree-optimization/47233
13417         * opts.c (common_handle_option): Disable ipa-reference with profile
13418         feedback.
13419
13420 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13421
13422         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13423         error message.
13424
13425 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13426
13427         * c-parser.c (c_lex_one_token): Updated and reindented some
13428         comments.  No changes in code.
13429
13430 2011-01-11  Ian Lance Taylor  <iant@google.com>
13431
13432         * godump.c (go_output_var): Don't output the variable if there is
13433         already a type with the same name.
13434
13435 2011-01-11  Ian Lance Taylor  <iant@google.com>
13436
13437         * godump.c (go_format_type): Don't generate float80.
13438
13439 2011-01-11  Richard Henderson  <rth@redhat.com>
13440
13441         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13442         declaration.  Rewrite for both speed and size.
13443         (mn10300_address_cost_1): Remove.
13444         (mn10300_register_move_cost): New.
13445         (mn10300_memory_move_cost): New.
13446         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13447         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13448         extensions, shifts, BSWAP, CLZ.
13449         (mn10300_wide_const_load_uses_clr): Remove.
13450         (TARGET_REGISTER_MOVE_COST): New.
13451         (TARGET_MEMORY_MOVE_COST): New.
13452         * config/mn10300/mn10300-protos.h: Update.
13453         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13454
13455         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13456         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13457         * config/mn10300/mn10300-protos.h: Update.
13458         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13459         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13460         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13461         (*test_int_bitfield, *test_byte_bitfield): Remove.
13462         (*bit_test, *subreg_bit_test): Remove.
13463         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13464
13465         * config/mn10300/constraints.md ("c"): Rename from "A".
13466         ("A", "D"): New constraint letters.
13467         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13468         (fmssf4, fnmasf4, fnmssf4): Likewise.
13469
13470         * config/mn10300/mn10300.md (isa): New attribute.
13471         (enabled): New attribute.
13472
13473         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13474         (abssf2, negsf2): Define only for hardware fp.
13475         (sqrtsf2): Reformat.
13476         (addsf3, subsf3, mulsf3): Merge expander and insn.
13477
13478         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13479         (DEBUGGER_AUTO_OFFSET): Remove.
13480         (DEBUGGER_ARG_OFFSET): Remove.
13481
13482         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13483         Emit register stores with the same offsets as the hardware.
13484         (mn10300_store_multiple_operation): Don't check that the register
13485         save offsets are monotonic.
13486         * config/mn10300/mn10300-protos.h: Update.
13487
13488         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13489
13490         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13491         in terms of the value on the stack, not the MDR register.
13492
13493 2011-01-11  Jan Hubicka  <jh@suse.cz>
13494
13495         PR lto/45721
13496         PR lto/45375
13497         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13498         (symbol_alias_set_destroy, symbol_alias_set_contains,
13499         propagate_aliases_backward): Declare.
13500         * lto-streamer-out.c (struct sets): New sturcture.
13501         (trivally_defined_alias): New function.
13502         (output_alias_pair_p): Rewrite.
13503         (output_unreferenced_globals): Fix output of alias pairs.
13504         (produce_symtab): Likewise.
13505         * ipa.c (function_and_variable_visibility): Set weak alias destination
13506         as needed in lto.
13507         * varasm.c (symbol_alias_set_t): Remove.
13508         (symbol_alias_set_destroy): Export.
13509         (propagate_aliases_forward, propagate_aliases_backward): New functions
13510         based on ...
13511         (compute_visible_aliases): ... this one; remove.
13512         (trivially_visible_alias): New
13513         (trivially_defined_alias): New.
13514         (remove_unreachable_alias_pairs): Rewrite.
13515         (finish_aliases_1): Reorganize code checking if alias is defined.
13516         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13517         in LTO mode.
13518
13519 2011-01-11  Richard Guenther  <rguenther@suse.de>
13520
13521         PR tree-optimization/46076
13522         * tree-ssa.c (useless_type_conversion_p): Conversions from
13523         unprototyped to empty argument list function types are useless.
13524
13525 2011-01-11  Richard Guenther  <rguenther@suse.de>
13526
13527         PR middle-end/45235
13528         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13529         volatile MEMs as MEM_READONLY_P.
13530
13531 2011-01-11  Richard Guenther  <rguenther@suse.de>
13532
13533         PR tree-optimization/47239
13534         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13535
13536 2011-01-11  Jeff Law  <law@redhat.com>
13537
13538         PR tree-optimization/47086
13539         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13540         IVs from statements that might throw.
13541
13542 2011-01-10  Jan Hubicka  <jh@suse.cz>
13543
13544         PR lto/45375
13545         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13546
13547 2011-01-10  Jan Hubicka  <jh@suse.cz>
13548
13549         PR lto/45375
13550         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13551         when correcting profile.
13552
13553 2011-01-10  Jan Hubicka  <jh@suse.cz>
13554
13555         PR lto/46083
13556         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13557         DECL_FINI_PRIORITY.
13558         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13559         Restore DECL_FINI_PRIORITY.
13560
13561 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13562
13563         * doc/gimple.texi: Fix quoting of multi-word return values in
13564         @deftypefn statements.  Ensure presence of return value.  Wrap
13565         overlong @deftypefn lines.
13566         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13567         descriptions of removed functions.
13568         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13569         of multi-word return value in @deftypefn statement.
13570
13571 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13572
13573         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13574         (Conditional Expressions, Logical Operators)
13575         (Statement and operand traversals): Do not indent smallexample
13576         code.  Fix duplicate function argument in example.
13577
13578 2011-01-10  Jeff Law  <law@redhat.com>
13579
13580         PR tree-optimization/47141
13581         * ipa-split.c (split_function): Handle case where we are
13582         returning a value and the return block has a virtual operand phi.
13583
13584 2011-01-10  Jan Hubicka  <jh@suse.cz>
13585
13586         PR tree-optimization/47234
13587         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13588         (pass_feedback_split_functions): Declare.
13589         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13590         tree-profile.
13591         * ipa-split.c (gate_split_functions): Update comments; disable
13592         split-functions for profile_arc_flag and branch_probabilities.
13593         (gate_feedback_split_functions): New function.
13594         (execute_feedback_split_functions): New function.
13595         (pass_feedback_split_functions): New global var.
13596
13597 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13598
13599         PR lto/46760
13600         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13601         calling gimple_call_set_cannot_inline.
13602
13603 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13604
13605         * config/darwin-sections.def: Remove unused section.
13606
13607 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13608
13609         PR c++/47218
13610         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13611
13612 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13613
13614         PR objc/47232
13615         * c-parser.c (c_parser_declaration_or_fndef): Improved
13616         error message.
13617
13618 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13619
13620         * config/i386/winnt.c (i386_pe_start_function): Make sure
13621         to switch back to function's section.
13622
13623 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13624
13625         PR gcc/46902
13626         PR testsuite/46912
13627         * plugin.c: Move include of dlfcn.h from here...
13628         * system.h: ... to here.
13629
13630 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13631
13632         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13633         file name.
13634         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13635         two extra empty pages in PDF output.
13636
13637 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13638
13639         PR objc/47078
13640         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13641         for error recovery purposes behave as if it was not specified so
13642         that the default type is usd.
13643
13644 2011-01-07  Jan Hubicka  <jh@suse.cz>
13645
13646         PR tree-optmization/46469
13647         * ipa.c (function_and_variable_visibility): Clear needed flags on
13648         nodes with external decls; handle weakrefs merging correctly.
13649
13650 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13651
13652         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13653         not false.
13654
13655 2011-01-07  Jan Hubicka  <jh@suse.cz>
13656
13657         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13658         and no longer claim that gold is required for linker plugin.
13659         * configure: Regenerate.
13660         * gcc.c (PLUGIN_COND): New macro.
13661         (LINK_COMMAND_SPEC): Use it.
13662         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13663         * config.in (HAVE_LTO_PLUGIN): New.
13664         * configure.ac (--with-lto-plugin): New parameter; autodetect
13665         HAVE_LTO_PLUGIN.
13666
13667 2011-01-07  Jan Hubicka  <jh@suse.cz>
13668
13669         PR tree-optimization/46367
13670         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13671         when we can update original.
13672         (cgraph_mark_inline_edge): Sanity check.
13673         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13674
13675 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13676
13677         * config/spu/spu.h (ASM_COMMENT_START): Define.
13678
13679 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13680
13681         PR driver/42445
13682         * gcc.c (%>S): New.
13683         (SWITCH_KEEP_FOR_GCC): Likewise.
13684         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13685         (do_spec_1): Handle "%>".
13686
13687         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13688
13689 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
13690
13691         PR target/47201
13692         * config/i386/i386.c (ix86_delegitimize_address): If
13693         simplify_gen_subreg fails, return orig_x.
13694
13695         PR bootstrap/47187
13696         * value-prof.c (gimple_stringop_fixed_value): Handle
13697         lhs of the call properly.
13698
13699 2011-01-07  Jan Hubicka  <jh@suse.cz>
13700
13701         PR lto/45375
13702         * lto-opt.c (lto_reissue_options): Set flag_shlib.
13703
13704 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13705
13706         * target.def (function_switched_text_sections): New hook.
13707         * doc/tm.texi: Regenerated.
13708         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13709         * final.c (default_function_switched_text_sections): New.
13710         (final_scan_insn): Call function_switched_text_sections when a
13711         mid-function section change occurs.
13712         * output.h (default_function_switched_text_sections): Declare.
13713         * config/darwin-protos.h (darwin_function_switched_text_sections):
13714         Likewise.
13715         * config/darwin.c (darwin_function_switched_text_sections): New.
13716         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13717
13718 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13719
13720         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13721         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13722         the secondary code fragment when outputting for DWARF == 2.
13723
13724 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13725
13726         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13727         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13728         Remove.
13729         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13730         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13731
13732 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13733
13734         PR debug/46704
13735         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13736         when it is not empty.
13737
13738 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
13739
13740         Bobcat Enablement
13741         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13742         (case ${target}): Add btver1.
13743         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13744         -march=native recognize btver1 processors.
13745         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13746         btver1 def_and_undef
13747         * config/i386/i386.c (struct processor_costs btver1_cost): New
13748         btver1 cost table.
13749         (m_BTVER1): New definition.
13750         (m_AMD_MULTIPLE): Includes m_BTVER1.
13751         (initial_ix86_tune_features): Add btver1 tune.
13752         (processor_target_table): Add btver1 entry.
13753         (static const char *const cpu_names): Add btver1 entry.
13754         (software_prefetching_beneficial_p): Add btver1.
13755         (ix86_option_override_internal): Add btver1 instruction sets.
13756         (ix86_issue_rate): Add btver1.
13757         (ix86_adjust_cost): Add btver1.
13758         * config/i386/i386.h (TARGET_BTVER1): New definition.
13759         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13760         (enum processor_type): Add PROCESSOR_BTVER1.
13761         * config/i386/i386.md (define_attr "cpu"): Add btver1.
13762
13763 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13764
13765         PR target/43309
13766         * config/i386/i386.c (legitimize_tls_address)
13767         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13768         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13769         (tls_initial_exec_64_sun): New pattern.
13770
13771 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
13772
13773         * doc/invoke.texi (Overall Options): Improve wording and markup
13774         of the description of -wrapper.
13775
13776 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13777
13778         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13779         rdynamic, threads): New Driver options.
13780
13781 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13782
13783         PR target/38118
13784         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13785         if coming from .tdata.
13786         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13787
13788 2011-01-06  Jan Hubicka  <jh@suse.cz>
13789
13790         PR lto/47188
13791         * collect2.c (main): Do not enable LTOmode when plugin is active.
13792
13793 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13794
13795         PR other/45915
13796         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13797         --version output if supported.
13798         * configure: Regenerate.
13799
13800 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13801
13802         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13803         Driver options.
13804
13805 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
13806
13807         PR c/47150
13808         * c-convert.c (convert): When converting a complex expression
13809         other than COMPLEX_EXPR to a different complex type, ensure
13810         c_save_expr is called instead of save_expr, unless in_late_binary_op.
13811         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13812         when converting COMPLEX_TYPE.
13813
13814 2011-01-06  Ira Rosen  <irar@il.ibm.com>
13815
13816         PR tree-optimization/47139
13817         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13818         only the last reduction value is used outside the loop.  Update
13819         documentation.
13820
13821 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
13822
13823         * config/rtems.opt: New.
13824         * config.gcc (*-*-rtems*): Use rtems.opt.
13825
13826 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
13827
13828         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13829         processors do not support 3DNow instructions.
13830
13831 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13832
13833         * config/spu/spu.c (spu_option_override): Set parameter
13834         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13835
13836 2011-01-05  Jan Hubicka  <jh@suse.cz>
13837
13838         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13839         at the command line.
13840
13841 2011-01-05  Martin Jambor  <mjambor@suse.cz>
13842
13843         PR lto/47162
13844         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13845         deltas on streamed outgoing edges.
13846         (output_node_opt_summary): Output info for outgoing edges only when
13847         the node is in new parameter set.
13848         (output_cgraph_opt_summary): New parameter set, passed to the two
13849         aforementioned functions.  Update its forward declaration and its
13850         callee too.
13851
13852 2011-01-05  Tom Tromey  <tromey@redhat.com>
13853
13854         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13855         operator to c_finish_omp_atomic.
13856         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13857         (build_unary_op): Update.
13858         (build_modify_expr): Update.
13859         (build_asm_expr): Update.
13860
13861 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13862
13863         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13864         newly inserted insns.
13865         (pad_bb): Likewise.
13866         (spu_emit_branch_hint): Likewise.
13867         (insert_hbrp_for_ilb_runout): Likewise.
13868         (spu_machine_dependent_reorg): Call df_finish_pass after
13869         schedule_insns returns.
13870
13871 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13872
13873         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13874
13875 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13876
13877         PR tree-optimization/47005
13878         * tree-sra.c (struct access): Add 'non_addressable' bit.
13879         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13880         (decide_one_param_reduction): Return 0 if the parameter is passed by
13881         reference and one of the accesses in the group is non_addressable.
13882
13883 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13884
13885         PR tree-optimization/47056
13886         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13887         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
13888         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
13889
13890 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13891
13892         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13893         initializer.  Skip view conversions from aggregate types.
13894
13895 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
13896
13897         PR bootstrap/47055
13898         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13899
13900 2011-01-04  Philipp Thomas  <pth@suse.de>
13901
13902         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13903         obvious typo.
13904
13905 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13906
13907         * function.c (thread_prologue_and_epilogue_insns): Do not crash
13908         on empty epilogue sequences.
13909
13910 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
13911
13912         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13913         non-static): New Driver options.
13914
13915 2011-01-04  Jie Zhang  <jie@codesourcery.com>
13916
13917         PR driver/47137
13918         * gcc.c (default_compilers[]): Set combinable field to 0
13919         for all assembly languages.
13920
13921 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
13922
13923         * config/mips/loongson3a.md: New file.
13924         * config/mips/mips.md: Include loongson3a.md.
13925         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13926         TUNE_LOONGSON_3A.
13927
13928 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13929
13930         PR middle-end/47017
13931         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13932         instead of convert_memory_address_addr_space on the base expression.
13933
13934 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13935
13936         * config/spu/spu.c (spu_option_override): Update error text
13937         for bad -march= / -mtune= values.
13938
13939 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13940
13941         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13942         if branch-hint optimization will be performed.
13943
13944 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13945
13946         PR tree-optimization/47148
13947         * ipa-split.c (split_function): Convert arguments to
13948         DECL_ARG_TYPE if possible.
13949
13950         PR tree-optimization/47155
13951         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13952         when computing uns.
13953
13954         PR rtl-optimization/47157
13955         * combine.c (try_combine): If undobuf.other_insn becomes
13956         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13957         and set *new_direct_jump_p too.
13958
13959 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
13960
13961         PR tree-optimization/47021
13962         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13963
13964 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13965
13966         * gcc.c (process_command): Update copyright notice dates.
13967         * gcov.c (print_version): Likewise.
13968         * gcov-dump.c (print_version): Likewise.
13969         * mips-tfile.c (main): Likewise.
13970         * mips-tdump.c (main): Likewise.
13971
13972 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13973
13974         PR tree-optimization/46801
13975         * tree-sra.c (type_internals_preclude_sra_p): Check whether
13976         aggregate fields start at byte boundary instead of the bit-field flag.
13977
13978 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
13979
13980         PR driver/47137
13981         * gcc.c (main): Revert revision 168407.
13982
13983 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13984
13985         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13986
13987 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13988
13989         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13990         vector optab to expand vector/scalar shift, update gimple to vector.
13991
13992 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13993
13994         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13995         a thunk.
13996
13997 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13998
13999         PR tree-optimization/46984
14000         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14001         HOST_WIDE_INT.
14002         (cgraph_create_indirect_edge): Fixed line length.
14003         (cgraph_indirect_call_info): Declare.
14004         (cgraph_make_edge_direct) Update declaration.
14005         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14006         (cgraph_create_indirect_edge): Use it.
14007         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14008         callees.
14009         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14010         the new thunk_delta representation.
14011         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14012         HOST_WIDE_INT.
14013         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14014         (ipa_read_indirect_edge_info): Likewise.
14015         * lto-cgraph.c (output_edge_opt_summary): New function.
14016         (output_node_opt_summary): Call it on all outgoing edges.
14017         (input_edge_opt_summary): New function.
14018         (input_node_opt_summary): Call it on all outgoing edges.
14019
14020 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14021
14022         PR driver/47137
14023         * gcc.c (main): Don't check have_o when settting combine_inputs.
14024
14025 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14026
14027         * regrename.c: Add general comment describing the pass.
14028         (struct du_head): Remove 'length' field.
14029         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14030         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14031         Force renaming to the preferred class (if any) in the first pass and do
14032         not consider registers that belong to it in the second pass.
14033         (create_new_chain): Do not set 'length' field.
14034         (scan_rtx_reg): Likewise.
14035
14036 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14037
14038         PR tree-optimization/47140
14039         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14040         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14041         to bit_value_binop.
14042
14043         PR rtl-optimization/47028
14044         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14045         parm_birth_insn instead of at the beginning of first bb.
14046
14047 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14048
14049         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14050         Remove the word "see" before "@pxref".
14051         * doc/rtl.texi: Remove the word "see" before "@pxref".
14052
14053 2011-01-01  Jan Hubicka  <jh@suse.cz>
14054
14055         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14056         memory.
14057
14058 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14059
14060         PR target/38662
14061         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14062
14063 \f
14064 Copyright (C) 2011 Free Software Foundation, Inc.
14065
14066 Copying and distribution of this file, with or without modification,
14067 are permitted in any medium without royalty provided the copyright
14068 notice and this notice are preserved.