OSDN Git Service

Support closing_branch_deps
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-11  Revital Eres  <revital.eres@linaro.org>
2
3         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
4         enters the branch create an anti edge in the opposite direction
5         to prevent the creation of reg-moves.
6         * modulo-sched.c: Adjust comment to reflect the fact we are
7         scheduling closing branch.
8         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
9         (stage_count): New field in struct partial_schedule.
10         (calculate_stage_count): New function.
11         (normalize_sched_times): Rename to reset_sched_times and handle
12         incrementing the sched time of the nodes by a constant value
13         passed as parameter.
14         (duplicate_insns_of_cycles): Skip closing branch.
15         (sms_schedule_by_order): Schedule closing branch.
16         (ps_insn_find_column): Handle closing branch.
17         (sms_schedule): Call reset_sched_times and adjust the code to
18         support scheduling of the closing branch.
19         (ps_insert_empty_row): Update calls to normalize_sched_times
20         and rotate_partial_schedule functions.
21
22 2011-05-11  Richard Guenther  <rguenther@suse.de>
23
24         PR middle-end/48953
25         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
26
27 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
28
29         * opts.c (finish_options): Move warning settings from
30         process_options.
31         * toplev.c (process_options): Move warning settings to
32         finish_options.
33
34 2011-05-11  Richard Guenther  <rguenther@suse.de>
35
36         PR tree-optimization/18041
37         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
38         (simplify_bitwise_binary): ... this.  Handle operand conversions
39         by applying them to the result instead.
40         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
41
42 2011-05-11  Richard Guenther  <rguenther@suse.de>
43
44         * gimple.c (gimple_canonical_types_compatible_p): Split out
45         from gimple_types_compatible_p and friends.  Do not recurse
46         to pointed-to types.
47         (gimple_canonical_type_eq): Use it.
48         (iterative_hash_canonical_type): Split out from
49         iterative_hash_gimple_type and friends.  Do not recurse
50         to pointed-to types.
51         (gimple_canonical_type_hash): Use it, allocate the hash here.
52
53 2011-05-11  Revital Eres  <revital.eres@linaro.org>
54
55         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
56         recognizing doloop.
57
58 2011-05-11  Revital Eres  <revital.eres@linaro.org>
59
60         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
61         instead of PREV_INSN.
62
63 2011-05-11  Revital Eres  <revital.eres@linaro.org>
64
65         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
66         * loop-doloop.c (doloop_condition_get): Likewise.
67         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
68         (doloop_end): New.
69         * config/arm/arm.md (*addsi3_compare0): Remove "*".
70
71 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
72
73         * tree.def (CASE_LABEL_EXPR): Add an operand.
74         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
75
76 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
77
78         * c-decl.c (c_override_global_bindings_to_false): Remove.
79         (global_bindings_p): Don't check
80         c_override_global_bindings_to_false.
81         * c-tree.h (c_override_global_bindings_to_false): Remove.
82         * c-typeck.c (composite_type): Don't set
83         c_override_global_bindings_to_false.
84
85 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
86
87         PR target/48857, 48495
88         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
89         (VSX_MODE): Ditto.
90         (VSX_MOVE_MODE): Ditto.
91         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
92         VSX vector types.  Add V2DImode.
93         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
94         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
95         (MODES_TIEABLE_P): Ditto.
96
97         * config/rs6000/rs6000.c (rs6000_emit_move): Use
98         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
99         VSX_VECTOR_MODE.
100         (init_cumulative_args): Ditto.
101         (rs6000_function_arg_boundary): Ditto.
102         (rs6000_function_arg_advance_1): Ditto.
103         (rs6000_function_arg): Ditto.
104         (rs6000_function_ok_for_sibcall): Ditto.
105         (emit_frame_save): Ditto.
106         (rs6000_function_value): Ditto.
107         (rs6000_libcall_value): Ditto.
108
109 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
110
111         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
112         i386/darwin-lib.h to $libgcc_tm_file.
113         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
114
115 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
116
117         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
118
119 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
120
121         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New
122         files.
123         * config/rs6000/rs6000-tables.opt: New file (generated).
124         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
125         rs6000/rs6000-tables.opt to extra_options.
126         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
127         * config/rs6000/rs6000.c (rs6000_select): Remove.
128         (processor_target_table): Move contents to rs6000-cpus.def.
129         (darwin_rs6000_override_options): Check
130         global_options_set.x_rs6000_cpu_index instead of
131         rs6000_select[1].string.
132         (rs6000_option_override_internal): Likewise.
133         (rs6000_handle_option): Don't assert that global structures are in
134         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
135         (rs6000_default_cpu): New variable.
136         (rs6000_file_start): Set it instead of local default_cpu.  Check
137         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
138         global_options_set.x_rs6000_tune_index instead of rs6000_select.
139         (rs6000_darwin_file_start): Check rs6000_default_cpu and
140         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
141         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
142         rs6000_select): Remove.
143         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
144         Remove.
145         (mcpu=, mtune=): Use Var, Init, Enum and Save.
146         * config/rs6000/t-rs6000
147         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
148         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
149         global_options_set.x_rs6000_cpu_index instead of
150         rs6000_select[1].string.
151         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
152         global_options_set.x_rs6000_cpu_index instead of
153         rs6000_select[1].string.
154
155 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
156
157         * config.gcc (libgcc_tm_file): Define instead of including files
158         from ../../libgcc/config/ in tm_file.
159         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list):
160         Define.
161         * configure: Regenerate.
162         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
163         libgcc_tm.h, cs-libgcc_tm.h): New.
164         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
165         (clean): Remove libgcc_tm.h.
166         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
167         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
168         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
169
170 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
171
172         PR target/48896
173         * config/avr/avr.c (avr_ret_register): Return unsigned int
174         instead of int.
175         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
176         it to avr_libcall_value.
177         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
178         expand_expr.
179         (avr_expand_binop_builtin): Ditto.
180         (avr_expand_unop_builtin): Ditto.
181
182 2011-05-10  DJ Delorie  <dj@redhat.com>
183
184         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
185         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
186         * config/rx/rx.c (rx_align_for_label): Add label and
187         uses_threshold parameters.  Do not align when the label is not
188         used enough.
189         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
190
191 2011-05-10  Richard Guenther  <rguenther@suse.de>
192
193         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
194         a series of conversions and apply foldings similar to what
195         fold-const does.
196         (tree_ssa_forward_propagate_single_use_vars): Call it.
197
198 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
199
200         PR tree-optimization/48611
201         PR tree-optimization/48794
202         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
203         referenced from RESX or EH_DISPATCH arguments.
204
205         PR debug/48928
206         * dfp.c (decimal_to_decnumber): Handle conversion from
207         dconst{1,2,m1,half}.
208
209 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
210
211         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
212         for !flag_prefer_avx128.
213         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
214
215 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
216
217         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
218         (fold_ternary_loc): Use expr_location_or.
219
220 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
221
222         PR debug/48853
223         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
224         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
225         Pmode and mem_mode is not VOIDmode.
226
227 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
228
229         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
230         TYPE_QUAL_RESTRICT): Convert to enum.
231
232 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
233
234         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
235         (const_pow2_1_to_8_operand): Ditto.
236         (const_pow2_1_to_128_operand): Ditto.
237         (const_pow2_1_to_32768_operand): Ditto.
238         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
239         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
240         in insn constraint to check integer value of operand 3.
241         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
242
243         (PINSR_MODE): New mode iterator.
244         (sse2p4_1): New mode attribute.
245         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
246         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
247         iterator.  Use const_int_operand instead of
248         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
249         exact_log2 in insn constraint to check integer value of operand 3.
250
251 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
252
253         * config/i386/sse.md (blendbits): Remove mode attribute.
254         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
255         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
256         Check integer value of operand 3 in insn constraint.
257
258 2011-05-09  Richard Guenther  <rguenther@suse.de>
259
260         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
261         for diagnostics.
262         (lto_symtab_merge): Likewise.  Do not register types here.
263         (lto_symtab_merge_decls_2): Likewise.
264         (lto_symtab_merge_decls_1): Likewise.
265         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
266         * gimple.c (enum gtc_mode): Declare.
267         (gimple_types_compatible_p): Make static.
268
269 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
270
271         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
272         temporary register to match Pmode.
273
274 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
275
276         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
277         and *vec_concatv4si_1_avx.
278
279 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
280
281         PR rtl-optimization/48927
282         * ira-conflicts.c (commutative_constraint_p): Use
283         recog_data.alternative_enabled_p to disable alternatives where
284         "enabled" attribute is false.
285         (get_dup_num): Ditto.
286         * ira-lives.c (single_reg_class): Ditto.
287         (ira_implicitly_set_insn_hard_regs): Ditto.
288
289 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
290
291         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
292         (dataflow_set_preserve_mem_locs): Likewise.
293
294 2011-05-09  Philipp Thomas  <pth@suse.de>
295
296         * config/mep/mep.c (mep_validate_vliw): Syntax description
297         should not be translated.
298
299 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
300
301         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
302         * config/mips/mips-tables.opt: New file (generated).
303         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
304         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
305         MIPS_ARCH_OPTION_NATIVE): Define.
306         * config/mips/mips.c (mips_cpu_info_table): Move contents to
307         mips-cpus.def.
308         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
309         mips_parse_cpu): Remove.
310         (mips_cpu_info_from_opt, mips_default_arch): New.
311         (mips_handle_option): Don't assert that global structures are in
312         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
313         (mips_option_override): Use new variables and functions to set
314         state of these options.  Use strcmp to check for individual CPU names.
315         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
316         definition.
317         * config/mips/mips.opt (march=): Use ToLower and Enum.
318         (mips): Use ToLower, Enum and Var.
319         (mtune=): Use ToLower and Enum.
320         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
321
322 2011-05-08  Jan Hubicka  <jh@suse.cz>
323
324         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
325         Arrange type pairs to be UID ordered.
326         (gimple_lookup_type_leader): Make inline.
327
328 2011-05-09  Nick Clifton  <nickc@redhat.com>
329
330         PR target/48899
331         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
332         PROCESSOR_DEFAULT.
333
334         PR target/48897
335         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
336         variable 's'.
337
338 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
339
340         * combine.c (simplify_comparison): Abstract out parts into...
341         (simplify_compare_const): ... new function.
342         (try_combine): Generalize parallel arithmetic/compare combining
343         to call simplify_compare_const() and CANONICALIZE_COMPARE().
344
345 2011-05-08  Jan Hubicka  <jh@suse.cz>
346
347         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
348         (cgraph_create_virtual_clone): Call hooks once virtual clone
349         is finished.
350         * cgraph.h (cgraph_clone_node): Update prototype.
351         * ipa-cp.c (ipcp_estimate_growth): Use
352         estimate_ipcp_clone_size_and_time.
353         * ipa-inline-transform.c (clone_inlined_nodes): Update.
354         * lto-cgraph.c (input_node): Update.
355         * ipa-inline.c (recursive_inlining): Update.
356         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
357         (evaluate_conditions_for_known_args): Break out from ...
358         (evaluate_conditions_for_edge): ... here.
359         (evaluate_conditions_for_ipcp_clone): New function.
360         (inline_node_duplication_hook): Update clone summary based
361         on parameter map.
362         (estimate_callee_size_and_time): Rename to ...
363         (estimate_node_size_and_time): take NODE instead of EDGE;
364         take POSSIBLE_TRUTHS as argument.
365         (estimate_callee_size_and_time): Update.
366         (estimate_ipcp_clone_size_and_time): New function.
367         (do_estimate_edge_time): Update.
368
369 2011-05-08  Richard Guenther  <rguenther@suse.de>
370
371         PR middle-end/48908
372         PR middle-end/48905
373         * expmed.c (expand_shift_1): Compute adjusted constant shift
374         amount manually.
375
376 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
377
378         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
379
380 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
381
382         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
383
384 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
385
386         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
387
388 2011-05-07  Jan Hubicka  <jh@suse.cz>
389
390         * ipa-inline-transform.c (inline_call): Account when program size
391         decreases.
392         * ipa-inline.c (relative_time_benefit): New function.
393         (edge_badness): Reorganize to be power 2 based; fix thinko when
394         computing badness for negative growth; update comments to match
395         reality; better dumps.
396
397 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
398
399         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
400         type to bool and adjust comment.
401         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
402         (fold_mathfn_compare): Remove calls to global_bindings_p.
403         (fold_inf_compare): Likewise.
404         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
405         * c-tree.h (global_bindings_p): Adjust prototype.
406         * c-decl.c (global_bindings_p): Return bool and simplify.
407
408 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
409
410         PR tree-optimization/48837
411         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
412         when accumulator transformation is performed.
413
414 2011-05-06  Jan Hubicka  <jh@suse.cz>
415
416         * i386.h (ix86_tune_indices): Add
417         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
418         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
419         * i386.c (initial_ix86_tune_features): Add
420         X86_SOFTARE_PREFETCHING_BENEFICIAL.
421         (software_prefetching_beneficial_p): Remove predicate.
422         (ix86_option_override_internal): Use new macro.
423
424 2011-05-06  Jan Hubicka  <jh@suse.cz>
425
426         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
427
428 2011-05-06  Jan Hubicka  <jh@suse.cz>
429
430         * cgraph.c (cgraph_add_thunk): Create real function node instead
431         of alias node; finalize it and mark needed/reachale; arrange visibility
432         to be right and add it into the corresponding same comdat group list.
433         (dump_cgraph_node): Dump thunks.
434         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
435         cgraph_function_with_gimple_body_p,
436         cgraph_first_function_with_gimple_body,
437         cgraph_next_function_with_gimple_body): New functions.
438         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
439         New macros.
440         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
441         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
442         * cgraphunit.c (cgraph_finalize_function): Only look into possible
443         devirtualization when optimizing.
444         (verify_cgraph_node): Verify thunks.
445         (cgraph_analyze_function): Analyze thunks.
446         (cgraph_mark_functions_to_output): Output thunks only in combination
447         with function they are assigned to.
448         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
449         alias into normal node.
450         (assemble_thunks): New functoin.
451         (cgraph_expand_function): Use it.
452         * lto-cgraph.c (lto_output_node): Stream thunks.
453         (input_overwrite_node): Stream in thunks.
454         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
455         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
456         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
457         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
458         (inline_analyze_function): Do not care about thunk jump functions.
459         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
460         * ipa-prop.c (ipa_prop_write_jump_functions): Use
461         cgraph_function_with_gimple_body_p.
462         * passes.c (do_per_function_toporder): Use
463         cgraph_function_with_gimple_body_p.
464         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
465         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
466         (function_called_by_processed_nodes_p): Likewise.
467
468 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
469
470         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
471         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
472         entries.
473         (mabi=): Replace with separate entries for mabi=altivec,
474         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
475         mabi=ieeelongdouble and mabi=ibmlongdouble.
476         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
477         check for -mabi=spe without SPE ABI support here.
478         (rs6000_handle_option): Replace OPT_mabi_ handling with
479         OPT_mabi_altivec and OPT_mabi_spe handling.
480
481 2011-05-06  Cary Coutant  <ccoutant@google.com>
482
483         * dwarf2out.c (contains_subprogram_definition): New function.
484         (should_move_die_to_comdat): Call it.
485
486 2011-05-06  Jeff Law  <law@redhat.com>
487
488         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
489         remove_ctrl_stmt_and_useless_edges.
490         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
491         (fixup_template_block, thread_single_edge): Likewise.
492         (mark_threaded_blocks): Use THREAD_TARGET.
493
494 2011-05-06  Alan Modra  <amodra@gmail.com>
495
496         PR target/48900
497         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
498         const0_rtx as the arg to the dummy __tls_get_addr libcall.
499
500 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
501
502         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
503         constraint modifier to "r".
504
505 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
506
507         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
508         fall through for OPT_mcmodel_.
509
510 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
511
512         * config/s390/s390.c (s390_asm_trampoline_template): Comment
513         instruction sizes.
514         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
515
516 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
517
518         PR target/47930
519         * config/arm/arm.opt (marm): Document it.
520         (mthumb): Reject negative variant.
521
522 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
523
524         PR target/48898
525         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
526         Fix typo in "ccvt" variable name.
527
528 2011-05-06  Tristan Gingold  <gingold@adacore.com>
529
530         PR target/48895
531         * config/vms/vms-ar.c (main): Remove cwd variable.
532
533 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
534
535         PR debug/48902
536         * var-tracking.c (prepare_call_arguments): Move else before #endif.
537
538 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
539
540         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
541         * gimplify.c (gimplify_switch_expr): Likewise.
542         * omp-low.c (expand_omp_sections): Likewise.
543         * tree-eh.c (lower_try_finally_switch): Likewise.
544         (lower_eh_dispatch): Likewise.
545         * tree.h (build_case_label): Declare.
546         * tree.c (build_case_label): Define.
547
548 2011-05-05  Jason Merrill  <jason@redhat.com>
549
550         PR c++/40975
551         * tree-inline.c (copy_tree_r): Use copy_statement_list.
552         (copy_statement_list): Don't recurse.
553         * stor-layout.c (copy_self_referential_tree_r): Don't allow
554         STATEMENT_LIST.
555
556 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
557
558         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
559         through from -mfpu= handling.
560         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
561
562 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
563
564         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
565         POST_MODIFY.
566
567 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
568
569         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
570         for 11.31.
571         (hppa[12]*-*-hpux11*): Ditto.
572         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
573         * config/ia64/hpux-unix2003.h: New.
574         * config/pa/pa-hpux1131.opt: New.
575         * config/pa/pa-hpux1131.h: New.
576         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
577         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
578         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
579
580 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
581
582         PR debug/48853
583         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
584         instead of mode as 3rd argument to recursive call.
585         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
586         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
587         VOIDmode.
588         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
589         don't give up if mode is Pmode and mem_mode is not VOIDmode.
590         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
591         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
592
593 2011-05-05  Julian Brown  <julian@codesourcery.com>
594
595         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
596         parenthesis in D-register case.
597
598 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
599
600         * opt-functions.awk (var_type_struct): Handle Enum options.
601         * optc-gen.awk: Don't check range of variables of character type.
602         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
603         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
604         rs6000_sdata_name, rs6000_explicit_options): Remove.
605         (rs6000_option_override_internal): Check for -malign-power here.
606         Use global_options_set instead of rs6000_explicit_options.
607         (rs6000_parse_fpu_option): Remove.
608         (rs6000_handle_option): Access variables via opts and opts_set
609         pointers.  Use error_at and warning_at.  Add fall-through
610         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
611         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
612         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
613         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
614         here.  Don't use rs6000_parse_fpu_option.
615         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
616         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
617         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
618         (mrecip=): Use Var.
619         (mspe): Use Var and Save.
620         (mtraceback=): Use Enum and Var.
621         (rs6000_traceback_type): New Enum and EnumValue entries.
622         (mfloat-gprs=): Use Enum, Var and Save.
623         (rs6000_float_gprs): New Enum and EnumValue entries.
624         (mlong-double-): use Var and Save.
625         (msched-costly-dep=, minsert-sched-nops=): Use Var.
626         (malign-): Use Enum and Var.
627         (rs6000_alignment_flags): New Enum and EnumValue entries.
628         (mfpu=): Use Enum.
629         (fpu_type_t): New Enum and EnumValue entries.
630         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
631         global_options_set instead of rs6000_explicit_options.
632         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
633         global_options_set instead of rs6000_explicit_options.
634         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
635         global_options_set instead of rs6000_explicit_options.
636         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
637         global_options_set instead of rs6000_explicit_options.
638         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
639         global_options_set instead of rs6000_explicit_options.
640         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
641         global_options_set instead of rs6000_explicit_options.
642         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
643         definition.
644         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
645         global_options_set instead of rs6000_explicit_options.
646         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
647         (rs6000_cmodel): New Enum and EnumValue entries.
648         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
649         global_options_set instead of rs6000_explicit_options.
650         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
651         (mtls-size=): Use Enum and Var.
652         (rs6000_tls_size): New Enum and EnumValue entries.
653
654 2011-05-05  Michael Matz  <matz@suse.de>
655
656         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
657         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
658         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
659         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
660         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
661         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
662         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
663         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
664         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
665         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
666         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
667         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
668         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
669         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
670         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
671         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
672
673 2011-05-05  Richard Guenther  <rguenther@suse.de>
674
675         * expmed.c (expand_variable_shift): Rename to ...
676         (expand_shift_1): ... this.  Take an expanded shift amount.
677         For rotates recurse directly not building trees for the shift amount.
678         (expand_variable_shift): Wrap around expand_shift_1.
679         (expand_shift): Adjust.
680
681 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
682
683         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
684
685 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
686
687         * tree.h (get_pending_sizes): Remove prototype.
688         (put_pending_size): Likewise.
689         (put_pending_sizes): Likewise.
690         * stor-layout.c (pending_sizes): Delete.
691         (get_pending_sizes): Likewise.
692         (put_pending_size): Likewise.
693         (put_pending_sizes): Likewise.
694         (variable_size): Do not call put_pending_size and tidy up.
695         * function.h (struct function): Remove dont_save_pending_sizes_p.
696         * lto-streamer-in.c (input_function): Do not stream it.
697         * lto-streamer-out.c (output_function): Likewise.
698         * tree-inline.c (initialize_cfun): Do not copy it.
699         * c-decl.c (store_parm_decls): Do not set it.
700         * omp-low.c (create_task_copyfn): Likewise.
701         * tree-optimize.c (tree_rest_of_compilation): Likewise.
702
703 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
704
705         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
706         conditions.
707         (*movdf_internal): Ditto.
708         (*movdf_internal_nointeger): Ditto.
709         (*movsf_internal): Ditto.
710
711 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
712
713         * c-decl.c (finish_decl): Don't call get_pending_sizes.
714         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
715         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
716         (c_variable_size): Remove.
717         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
718         call put_pending_sizes.
719         (get_parm_info): Add parameter expr.  Use it to set
720         arg_info->pending_sizes.
721         (store_parm_decls): Use arg_info->pending_sizes instead or calling
722         get_pending_sizes.
723         * c-parser.c (c_parser_parms_declarator): Update call to
724         c_parser_parms_list_declarator.
725         (c_parser_parms_list_declarator): Take parameter expr.  Update
726         call to push_parm_decl.  Update recursive call.  Don't call
727         get_pending_sizes.  Update calls to get_parm_info.
728         (c_parser_objc_method_definition): Update calls to
729         c_parser_objc_method_decl and objc_start_method_definition.
730         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
731         (c_parser_objc_method_decl): Add parameter expr.  Update call to
732         grokparm.
733         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
734         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
735         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
736
737 2011-05-05  Michael Hope  <michael.hope@linaro.org>
738
739         PR pch/45979
740         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
741         __ARM_EABI__ hosts.
742
743 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
744
745         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
746         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
747         (spu_output_mi_thunk): New function.
748
749 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
750
751         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
752         targetm.asm_out.print_operand.
753         * config/sol2.c: Include target.h.
754
755 2011-05-04  Jan Hubicka  <jh@suse.cz>
756
757         * ipa-inline.c (reset_edge_caches): New function.
758         (update_caller_keys): Add check_inlinablity_for; do not
759         reset edge caches; remove now unnecesary loop.
760         (update_callee_keys): Add comments; reset node_growth_cache of callee.
761         (update_all_callee_keys): Likewise.
762         (inline_small_functions): Sanity check cache; update code
763         recomputing it.
764
765 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
766
767         PR rtl-optimization/47612
768         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
769         as the last insn of the sequence to be moved.
770
771 2011-05-04  Tobias Burnus  <burnus@net-b.de>
772
773         PR fortran/48864
774         * doc/invoke.texi (Ofast): Document that it
775         enables Fortran's -fno-protect-parens.
776
777 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
778
779         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
780
781 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
782
783         * stor-layout.c (variable_size): Do not issue errors.
784
785 2011-05-04  Richard Guenther  <rguenther@suse.de>
786
787         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
788         for array-ref indices.
789         (tree_coverage_counter_addr): Likewise.
790         (build_fn_info_type): Use size_int for index types.
791         (build_gcov_info): Likewise.
792
793 2011-05-04  Richard Guenther  <rguenther@suse.de>
794
795         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
796         to build_int_cst.
797         * c-typeck.c (really_start_incremental_init): Use bitsize_int
798         for constructor indices.
799         (push_init_level): Likewise.
800
801 2011-05-04  Richard Guenther  <rguenther@suse.de>
802
803         * explow.c (promote_mode): Move variable declarations before code.
804
805 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
806
807         * tree.h (build_function_type_array): Declare.
808         (build_varargs_function_type_array): Declare.
809         (build_function_type_vec, build_varargs_function_type_vec): Define.
810         * tree.c (build_function_type_array_1): New function.
811         (build_function_type_array): New function.
812         (build_varargs_function_type_array): New function.
813
814 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
815
816         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
817         before setting STMT_VINFO_TYPE.
818
819 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
820
821         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
822         instead of spu_pass_by_reference.
823
824 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
825
826         * calls.c (emit_library_call_value_1): Invoke
827         promote_function_mode hook on libcall arguments.
828         * explow.c (promote_function_mode, promote_mode): Handle TYPE
829         argument being NULL.
830         * targhooks.c (default_promote_function_mode): Lisewise.
831         * config/s390/s390.c (s390_promote_function_mode): Likewise.
832         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
833
834         * doc/tm.texi: Document that TYPE argument might be NULL.
835
836 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
837
838         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
839
840 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
841
842         From Bernd Schmidt
843         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
844
845 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
846
847         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
848         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
849         Move ...
850         * mips-tfile.c: ... here.
851         Don't include coretypes.h, tm.h, filenames.h.
852         (saber_stop): Remove definition and all calls.
853         [__SABER__]: Remove.
854         (__LINE__): Remove default.
855         (Size_t, Ptrdiff_t): Remove definitions.
856         Replace by size_t, ptrdiff_t.
857         [!MIPS_DEBUGGING_INFO]: Remove.
858         (SHASH_SIZE, THASH_SIZE): Remove defaults.
859         (progname): Add const.
860         (STATIC): Remove.
861         Replace all uses by static.
862         (ALIGN_SYMTABLE_OFFSET): Remove default.
863         * mips-tdump.c: Don't include coretypes.h, tm.h.
864         Remove !MIPS_IS_STAB guard.
865         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
866         $(TM_H), filenames.h dependencies.
867         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
868
869 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
870
871         From Jie Zhang
872         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
873         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
874
875 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
876
877         From Bernd Schmidt
878         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
879         account and save/restore RETS.
880         (PROFILE_BEFORE_PROLOGUE): Define.
881         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
882         the push insn to use predecrement.
883
884 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
885
886         From Jie Zhang
887         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
888
889 2011-05-04  Nick Clifton  <nickc@redhat.com>
890
891         * config/mn10300/mn10300.c: Include cfgloop.h.
892         (DUMP): New macro.
893         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
894         Lcc or a FLcc insn into the instruction stream.
895         (mn10300_block_contains_call): New function.  Returns true if the
896         given basic block contains a CALL insn.
897         (mn10300_loop_contains_call_insn): New function.  Returns true if
898         the given loop contains a CALL insn.
899         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
900         to use the SETLB and Lcc or FLcc insns.
901         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
902         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
903         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
904         disable the SETLB optimization.
905         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
906         __SETLB__ or __NO_SETLB__.
907         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
908         (movsf_internal): Handle MDR register.
909         (cmpsi): Make visible.
910         (setlb): New pattern.
911         (Lcc): New pattern.
912         (FLcc): New pattern.
913
914 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
915
916         PR target/48860
917         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
918         for reg<->xmm moves.
919         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
920         (vec_concatv2di_rex64_sse): Ditto.
921         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
922         (*vec_extractv2di_1_rex64): Ditto.
923
924         Revert:
925         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
926
927         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
928         reg<->xmm moves.
929         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
930
931 2011-05-04  Richard Guenther  <rguenther@suse.de>
932
933         * tree.h (int_const_binop): Remove notrunc argument.
934         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
935         create integer constants that are properly truncated.
936         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
937         (const_binop): Remove zero notrunc argument to int_const_binop.
938         (size_binop_loc): Likewise.
939         (fold_div_compare): Likewise.
940         (maybe_canonicalize_comparison_1): Likewise.
941         (fold_comparison): Likewise.
942         (fold_binary_loc): Likewise.
943         (multiple_of_p): Likewise.
944         * expr.c (store_constructor): Likewise.
945         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
946         (maybe_fold_stmt_addition): Likewise.
947         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
948         * stor-layout.c (layout_type): Likewise.
949         * tree-data-ref.c (tree_fold_divides_p): Likewise.
950         * tree-sra.c (build_ref_for_offset): Likewise.
951         (build_user_friendly_ref_for_offset): Likewise.
952         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
953         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
954         * tree-ssa-loop-niter.c (inverse): Likewise.
955         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
956         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
957         * tree-switch-conversion.c (check_range): Likewise.
958         (build_constructors): Likewise.
959         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
960         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
961         (extract_range_from_assert): Likewise.
962         (vrp_int_const_binop): Likewise.
963         (extract_range_from_binary_expr): Likewise.
964         (extract_range_from_unary_expr): Likewise.
965         (check_array_ref): Likewise.
966         (find_case_label_range): Likewise.
967         (simplify_div_or_mod_using_ranges): Likewise.
968         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
969         comparing case labels for merging.
970
971 2011-05-03  Mark Wielaard  <mjw@redhat.com>
972
973         * dwarf2out.c (debug_str_hash_forced): Removed.
974         (gen_label_for_indirect_string): Removed.
975         (get_debug_string_label): Removed.
976         (AT_string_form): Generate label directly.
977         (output_indirect_string): Test indirect_string_node for
978         DW_FORM_strp instead of checking label and refcount.
979         (prune_indirect_string): Removed.
980         (prune_unused_types): Don't check debug_str_hash_forced or
981         call prune_indirect_string.
982
983 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
984
985         PR other/48093
986         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
987
988 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
989
990         PR debug/47994
991         PR debug/47919
992         * combine.c (try_combine): Skip debug insns at m_split tests.
993
994 2011-04-26  Mark Wielaard  <mjw@redhat.com>
995
996         PR42288
997         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
998         when info_section_emitted.
999
1000 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1001
1002         * config/mips/mips-opts.h: New.
1003         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1004         to mips-opts.h.
1005         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1006         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1007         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1008         via opts pointer.
1009         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1010         mips-opts.h.
1011         (mips_abi, mips_code_readable): Don't declare.
1012         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1013         (mabi=): Use Enum and Var.
1014         (mips_abi): New Enum and EnumValue entries.
1015         (mcode-readable=): Use Enum and Var.
1016         (mips_code_readable_setting): New Enum and EnumValue entries.
1017         (mr10k-cache-barrier=): Use Enum and Var.
1018         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1019
1020 2011-05-03  Jan Hubicka  <jh@suse.cz>
1021
1022         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1023         replace hash by pointer map.
1024         (cgraph_node_set_element_def, cgraph_node_set_element,
1025         const_cgraph_node_set_element, varpool_node_set_element_def,
1026         varpool_node_set_element, const_varpool_node_set_element): Remove.
1027         (free_cgraph_node_set, free_varpool_node_set): New function.
1028         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1029         * tree-emutls.c: Free varpool node set.
1030         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1031         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1032         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1033         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1034         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1035         Move here from ipa.c; implement using pointer_map
1036         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1037         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1038         debug_cgraph_node_set, varpool_node_set_new,
1039         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1040         dump_varpool_node_set, debug_varpool_node_set):
1041         Move to ipa-uitls.c.
1042         * passes.c (ipa_write_summaries): Update.
1043
1044 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1045
1046         From Mike Frysinger:
1047         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1048         bf542/bf544/bf547/bf548/bf549.
1049
1050 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1051
1052         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1053
1054 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1055
1056         From Bernd Schmidt:
1057         * config/bfin/bfin.md (MOVCC): New mode_macro.
1058         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1059         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1060         comments from generated assembly.
1061
1062 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1063
1064         From Bernd Schmidt
1065         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1066         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1067         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1068         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1069         * config/bfin/lib1funcs.asm (___muldi3): New function.
1070
1071 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1072
1073         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1074         build_function_type_list instead of build_function_type.
1075         Rearrange initialization of `args' to do so.
1076
1077 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1078
1079         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1080         instead of build_function_type.
1081
1082 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1083
1084         * config/rs6000/rs6000.c (spe_init_builtins): Call
1085         build_function_type_list instead of build_function_type.
1086         (paired_init_builtins, altivec_init_builtins): Likewise.
1087         (builtin_function_type): Likewise.
1088
1089 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1090
1091         * config/sh/sh.c (sh_media_init_builtins): Call
1092         build_function_type_list instead of build_function_type.
1093
1094 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1095
1096         * config/sparc/sparc.c (sparc_file_end): Call
1097         build_function_type_list instead of build_function_type.
1098
1099 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1100
1101         * config/alpha/alpha.c (alpha_init_builtins): Call
1102         build_function_type_list instead of build_function_type.
1103
1104 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1105
1106         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1107         build_function_type_list instead of build_function_type.
1108
1109 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1110
1111         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1112         build_function_type_list instead of build_function_type.
1113         Delete `endlink' variable.
1114
1115 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1116
1117         * config/avr/avr.c (avr_init_builtins): Call
1118         build_function_type_list instead of build_function_type.
1119
1120 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1121
1122         * config/picochip/picochip.c (picochip_init_builtins): Call
1123         build_function_type_list instead of build_function_type.
1124         Delete `endlink' variable.
1125
1126 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1127
1128         * config/bfin/bfin.c (bfin_init_builtins): Call
1129         build_function_type_list instead of build_function_type.
1130
1131 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1132
1133         From Bernd Schmidt
1134         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1135         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1136
1137 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1138
1139         From Jie Zhang:
1140         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1141         libbffastfp overrides libgcc when -mfast-fp.
1142
1143 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
1144
1145         Originally from Bernd Schmidt
1146         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1147         * config/bfin/bfin.c (override_options): Test it and error if
1148         TARGET_FDPIC.
1149
1150 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1151
1152         Originally From Bernd Schmidt
1153         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1154         FD-PIC.
1155
1156 2011-05-03  Jeff Law  <law@redhat.com>
1157
1158         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1159         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1160         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1161         than accessing AUX field directly.  Free the AUX field before
1162         clearing it.
1163         (thread_block, thread_through_loop_header): Likewise.
1164         (thread_single_edge, mark_threaded_blocks): Likewise.
1165         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1166         (register_jump_thread): Do not attempt to thread to a NULL edge.
1167
1168 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1169
1170         * function.c (init_function_start): Call decide_function_section.
1171         * varasm.c (decide_function_section): New function.
1172         (assemble_start_function): When not using
1173         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1174         or first_function_block_is_cold.
1175         * rtl.h (decide_function_section): Declare.
1176
1177 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1178             Jakub Jelinek  <jakub@redhat.com>
1179
1180         PR target/48774
1181         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1182         only succeed if req_mode is the same as set_mode.
1183
1184 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1185
1186         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1187         * genemit.c (gen_exp): Handle RETURN.
1188         * emit-rtl.c (verify_rtx_sharing): Likewise.
1189         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1190         * rtl.c (copy_rtx): RETURN is shared.
1191         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1192         (ret_rtx): New.
1193         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1194         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1195         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1196         * config/cris/cris.c (cris_expand_return): Likewise.
1197         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1198         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1199         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1200         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1201         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1202         Likewise.
1203         * config/v850/v850.c (expand_epilogue): Likewise.
1204         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1205         * config/arm/arm.md (epilogue): Likewise.
1206         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1207         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1208         variable to ret_reg.
1209
1210 2011-05-03  Richard Guenther  <rguenther@suse.de>
1211
1212         PR lto/48846
1213         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1214         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1215         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1216
1217 2011-05-03  Richard Guenther  <rguenther@suse.de>
1218
1219         * c-decl.c (grokdeclarator): Instead of looking at
1220         TREE_OVERFLOW check if the constant fits in the index type.
1221
1222 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1223
1224         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1225         (vec_store_lanes<mode><mode>): Likewise.
1226
1227 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1228
1229         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1230         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1231         convert_optab_index values.
1232         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1233         * genopinit.c (optabs): Initialize the new optabs.
1234         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1235         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1236         (expand_STORE_LANES): New functions.
1237         * tree.h (build_array_type_nelts): Declare.
1238         * tree.c (build_array_type_nelts): New function.
1239         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1240         (vect_model_load_cost): Likewise.
1241         (vect_store_lanes_supported, vect_load_lanes_supported)
1242         (vect_record_strided_load_vectors): Declare.
1243         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1244         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1245         (vect_transform_strided_load): Split out statement recording into...
1246         (vect_record_strided_load_vectors): ...this new function.
1247         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1248         (write_vector_array, create_array_ref): New functions.
1249         (vect_model_store_cost): Add store_lanes_p argument.
1250         (vect_model_load_cost): Add load_lanes_p argument.
1251         (vectorizable_store): Try to use store-lanes functions for
1252         interleaved stores.
1253         (vectorizable_load): Likewise load-lanes and loads.
1254         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1255         to vect_model_store_cost.
1256         (vect_build_slp_tree): Likewise vect_model_load_cost.
1257
1258 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1259
1260         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1261         * hooks.c (hook_bool_mode_uhwi_false): New function.
1262         * target.def (array_mode_supported_p): New hook.
1263         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1264         * doc/tm.texi: Regenerate.
1265         * stor-layout.c (mode_for_array): New function.
1266         (layout_type): Use it.
1267         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1268         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1269
1270 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1271
1272         PR target/48723
1273         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1274         for -fstack-check if the size to allocate is negative.
1275
1276 2011-05-02  Lawrence Crowl  <crowl@google.com>
1277
1278         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1279         (timevar_cond_start): New for starting a timer only when it is not
1280         already running.
1281         (timevar_cond_stop): New for stopping a timer when it was not already
1282         running.
1283
1284         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1285         (timevar_cond_start): New as above.
1286         (timevar_cond_stop): New as above.
1287
1288         * timevar.def: Add start/stop timers for compiler phases,
1289         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1290         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1291         and TV_PHASE_FINALIZE.
1292         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1293         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1294         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1295         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1296         Make unused TV_OVERLOAD into a start/stop timer.
1297
1298         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1299         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1300         to indicate that they are start/stop timers.
1301
1302         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1303         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1304         Move initialization to do_compile.
1305         (do_compile): Add initialization from above.
1306         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1307
1308         * c-decl.c (c_write_global_declarations): Add start/stop of
1309         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1310
1311         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1312         or TV_PARSE_INLINE, as appropriate.
1313         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1314         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1315
1316 2011-05-02  Jason Merrill  <jason@redhat.com>
1317
1318         PR c++/40975
1319         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1320
1321 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1322
1323         PR c/35445
1324         * c-decl.c (finish_decl): Only create a composite if the types are
1325         compatible.
1326
1327 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1328
1329         * config/fr30/fr30-protos.h (Mmode): Don't define.
1330         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1331         definition where used.
1332         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1333         define.  Expand definitions where used.
1334         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1335         Expand definitions where used.
1336         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1337         rx_function_arg, rx_function_arg_advance,
1338         rx_function_arg_boundary): Expand definitions of those macros.
1339         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1340         definition where used.
1341
1342 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1343
1344         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1345         reg<->xmm moves.
1346         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1347         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1348         with *movv2sf_internal_rex64_avx.
1349         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1350         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1351         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1352         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1353         "vex" in "prefix" attribute calculation.
1354         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1355
1356 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1357
1358         PR target/47951
1359         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1360         inputs match the output.
1361
1362 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1363
1364         PR target/47955
1365         * config/m68k/m68k.c (m68k_expand_prologue): Set
1366         current_function_static_stack_size.
1367
1368 2011-05-02   Jan Hubicka  <jh@suse.cz>
1369
1370         * lto-streamer.c (lto_streamer_cache_insert_1,
1371         lto_streamer_cache_lookup, lto_streamer_cache_create,
1372         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1373         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1374
1375 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1376
1377         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1378         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1379         config/m68k/t-opts: New files.
1380         * config/m68k/m68k-tables.opt: New file (generated).
1381         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1382         extra_options and m68k/t-opts to tmake_file.
1383         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1384         (all_isas): Initialize using m68k-isas.def.
1385         (all_microarchs): Initialize using m68k-microarchs.def.
1386         (m68k_find_selection): Remove.
1387         (m68k_handle_option): Don't assert that global structures are in
1388         use.  Use error_at.  Access variables via opts pointer.  Don't
1389         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1390         directly for -m68020-40 and -m68020-60.
1391         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1392         m68k_tune_entry here.
1393         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1394         to m68k-opts.h.
1395         (m68k_library_id_string): Remove declaration.
1396         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1397         (m68k_library_id_string): New Variable.
1398         (march=, mcpu=, mtune=): Use Enum and Var.
1399
1400 2011-05-02  Richard Guenther  <rguenther@suse.de>
1401
1402         * varasm.c (output_constructor_regular_field): Compute zero-based
1403         index with double-ints.  Make sure to ICE instead of producing
1404         wrong code.
1405         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1406         in asserts.  Properly use a signed type.
1407
1408 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1409
1410         * config/i386/sse.md (V): New mode iterator.
1411         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1412         TARGET_SSE2.
1413         (V_256): Rename from AVX256MODE.
1414         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1415         condition to all users.
1416         (VF1): Ditto.
1417         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1418         condition to all users.
1419         (VF_128): Make V4SF mode unconditional.
1420         (VF_256): Rename from AVX256MODEF2P.
1421         (VI4F_128): Rename from SSEMODE4S.
1422         (VI8F_128): Rename from SSEMODE2D.
1423         (VI4F_256): Rename from AVX256MODE8P.
1424         (VI8F_256): Rename from AVX256MODE4P.
1425         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1426         (ssescalarmodesuffix): Remove SF and DF modes.
1427         (SSEMODE124): Remove.
1428         (SSEMODE1248): Ditto.
1429         (SSEMODEF2P): Ditto.
1430         (AVXMODEF2P): Ditto.
1431         (AVXMODEFDP): Ditto.
1432         (AVXMODEFSP): Ditto.
1433         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1434         unconditional.
1435         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1436         unconditional.
1437         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1438         xop_pcmov_<mode>256.  Use V mode iterator.
1439
1440         Adjust RTX patterns globally for renamed mode attributes.
1441
1442 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1443
1444         * haifa-sched.c (sched_emit_insn): Emit insn before first
1445         non-scheduled insn.  Inform back-end about new insn.  Add
1446         new insn to scheduled_insns list.
1447
1448 2011-05-02  Richard Guenther  <rguenther@suse.de>
1449
1450         PR tree-optimization/48822
1451         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1452         (process_scc): Indicate which iteration we start.
1453
1454 2011-05-02  Jan Hubicka  <jh@suse.cz>
1455
1456         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1457         (lto_section_overrun): New.
1458         * lto-section-out.c (append_block): Rename to ...
1459         (lto_append_block): ... this one; export.
1460         (lto_output_1_stream): Move lto lto-streamer.h
1461         (lto_output_data_stream): Update.
1462         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1463         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1464         functions.
1465
1466 2011-05-02  Richard Guenther  <rguenther@suse.de>
1467
1468         * tree.c (tree_code_counts): New global array.
1469         (record_node_allocation_statistics): Count individual tree codes.
1470         (dump_tree_statistics): Dump individual code stats.
1471
1472 2011-05-01  Jan Hubicka  <jh@suse.cz>
1473
1474         * ipa-inline.c (caller_growth_limits): Fix thinko when
1475         looking for largest stack frame.
1476         * ipa-inline.h (dump_inline_summary): Declare.
1477         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1478         on stack usage.
1479         (dump_inline_summary): Export.
1480         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1481
1482 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1483
1484         * reginfo.c (memory_move_cost): Change rclass argument type form
1485         'enum reg_class' to reg_class_t.
1486         * reload.h (memory_move_cost): Update prototype.
1487         * postreload.c reload_cse_simplify_set): Change type dclass var to
1488         reg_class_t.
1489         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1490         Update prototype.
1491         (ira_allocate_and_set_costs): Change aclass argument type form
1492         'enum reg_class' to reg_class_t.
1493         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1494         Change aclass argument type to reg_class_t.
1495         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1496         to reg_class_t.
1497         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1498         memory_move_cost call.
1499
1500         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1501         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1502         Change type tmp var to reg_class_t.
1503
1504 2011-04-30  Jan Hubicka  <jh@suse.cz>
1505
1506         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1507         inlining into function with flatten attribute.
1508         (want_inline_small_function_p): Be more realistic about inlining
1509         cold calls where callee size grows.
1510
1511 2011-04-30  Jan Hubicka  <jh@suse.cz>
1512
1513         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1514         flags.
1515
1516 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1517
1518         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1519         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1520         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1521         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1522         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1523         (print_operand): Rename to...
1524         (sparc_print_operand): ...this. Make static. Adjust
1525         sparc_print_operand function call.
1526         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1527         functions.
1528
1529 2011-04-30  Jan Hubicka  <jh@suse.cz>
1530
1531         PR middle-end/48752
1532         * ipa-inline.c (early_inliner): Disable when doing late
1533         addition of function.
1534
1535 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1536
1537         * dwarf2out.c (get_address_mode): New inline.
1538         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1539         if not dwarf_strict emit
1540         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1541         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1542         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1543         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1544         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1545         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1546         mem_loc_descriptor callers.
1547         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1548         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1549         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1550         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1551         (base_types): New variable.
1552         (get_base_type_offset, calc_base_type_die_sizes,
1553         base_type_for_mode, mark_base_types, base_type_cmp,
1554         move_marked_base_types): New functions.
1555         (calc_die_sizes): Assert that die_offset is 0 or equal to
1556         next_die_offset.
1557         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1558         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1559         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1560         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1561         (gen_subprogram_die): Don't give up on call site parameters
1562         with non-integral or large integral modes.  Adjust
1563         mem_loc_descriptor callers.
1564         (prune_unused_types): Call prune_unused_types_mark on base_types
1565         vector entries.
1566         (resolve_addr): Call mark_base_types.
1567         (dwarf2out_finish): Call move_marked_base_types.
1568
1569         PR tree-optimization/48809
1570         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1571         type.
1572         (gen_inbound_check): Don't compute index_expr - range_min in utype
1573         again, instead reuse SSA_NAME initialized in build_arrays.
1574         Remove two useless gsi_for_stmt calls.
1575
1576 2011-04-29  Jeff Law  <law@redhat.com>
1577
1578         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1579
1580 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1581
1582         * cgraph.h (cgraph_postorder): Remove declaration.
1583         * ipa-utils.h (ipa_free_postorder_info): Declare.
1584         (ipa_reverse_postorder): Likewise.
1585         * cgraphunit.c: Include ipa-utils.h.
1586         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1587         * ipa-inline.c: Include ipa-utils.h.
1588         (ipa_inline): Update call to ipa_reverse_postorder.
1589         * ipa-pure-const.c (propagate_pure_const): Update call to
1590         ipa_reduced_postorder and ipa_print_order.  Call
1591         ipa_free_postorder_info to clean up.
1592         (propagate_nothrow): Likewise.
1593         * ipa-reference.c (propagate): Removed a useless call to
1594         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1595         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1596         * ipa.c: Include ipa-utils.h.
1597         (ipa_profile): Update call to ipa_reverse_postorder.
1598         (cgraph_postorder): Moved to...
1599         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1600         (ipa_utils_print_order): Renamed to ipa_print_order.
1601         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1602         comments.
1603         (ipa_free_postorder_info): New function.
1604         * passes.c: Include ipa-utils.h.
1605         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1606         (ipa_write_summaries): Likewise.
1607         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1608         (cgraphunit.o): Likewise.
1609         (ipa.o): Likewise.
1610         (ipa-inline.o): Likewise.
1611
1612 2011-04-29  Jan Hubicka  <jh@suse.cz>
1613
1614         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1615         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1616         * ipa-inline.h (clause_t): Turn into unsigned int.
1617         * ipa-inline-analysis.c (add_clause): Do more simplification.
1618         (and_predicates): Shortcut more cases.
1619         (predicates_equal_p): Move forward; check that clauses are properly
1620         ordered.
1621         (or_predicates): Shortcut more cases.
1622         (edge_execution_predicate): Rewrite as...
1623         (set_cond_stmt_execution_predicate): ... this function; handle
1624         __builtin_constant_p.
1625         (set_switch_stmt_execution_predicate): New .
1626         (compute_bb_predicates): New.
1627         (will_be_nonconstant_predicate): Update TODO.
1628         (estimate_function_body_sizes): Use compute_bb_predicates
1629         and free them later, always try to estimate if stmt is constant.
1630         (estimate_time_after_inlining, estimate_size_after_inlining):
1631         Gracefully handle optimized out edges.
1632         (read_predicate): Fix off by one error.
1633
1634 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1635
1636         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1637
1638 2011-04-27  Xinliang David Li  <davidxl@google.com>
1639
1640         * tree-profile.c (init_ic_make_global_vars): Set
1641         tls attribute on ic vars.
1642         * coverage.c (coverage_end_function): Initialize
1643         function_list with zero.
1644
1645 2011-04-29  Richard Guenther  <rguenther@suse.de>
1646
1647         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1648         for the type of the result.
1649         (fold_builtin_isascii): Likewise.
1650         (fold_builtin_toascii): Use integer_type_node where appropriate.
1651         (fold_builtin_logb): Likewise.
1652         (fold_builtin_frexp): Likewise.
1653         (fold_builtin_strstr): Likewise.
1654         (fold_builtin_strpbrk): Likewise.
1655         (fold_builtin_fputs): Likewise.
1656         (fold_builtin_sprintf): Likewise.
1657         (fold_builtin_snprintf): Likewise.
1658         (fold_builtin_printf): Likewise.
1659         (do_mpfr_remquo): Use a proper type for the assigned constant.
1660         (do_mpfr_lgamma_r): Likewise.
1661         * dwarf2out.c (resolve_one_addr): Use size_int.
1662         * except.c (init_eh): Likewise.
1663         (assign_filter_values): Use integer_type_node for filter values.
1664         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1665         indices.
1666         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1667         for EH region numbers.
1668         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1669         for the shift amount.
1670
1671 2011-04-29  Richard Guenther  <rguenther@suse.de>
1672
1673         * expr.h (expand_shift): Rename to ...
1674         (expand_variable_shift): ... this.
1675         (expand_shift): Take a constant shift amount.
1676         * expmed.c (expand_shift): Rename to ...
1677         (expand_variable_shift): ... this.
1678         (expand_shift): New wrapper around expand_variable_shift.
1679         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1680         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1681         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1682         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1683         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1684         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1685         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1686         emit_store_flag_1, emit_store_flag): Likewise.
1687         * builtins.c (expand_builtin_signbit): Likewise.
1688         * calls.c (load_register_parameters): Likewise.
1689         * function.c (assign_parm_setup_block): Likewise.
1690         * lower-subreg.c (resolve_shift_zext): Likewise.
1691         * optabs.c (widen_bswap, expand_abs_nojump,
1692         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1693         * spu/spu.c (spu_expand_extv): Likewise.
1694         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1695
1696 2011-04-29  Richard Guenther  <rguenther@suse.de>
1697
1698         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1699         for the remapped region number.
1700         * predict.c (build_predict_expr): Use integer_type_node for the
1701         predict kind.
1702         * fold-const.c (fold_binary_loc): Use integer_type_node for
1703         the shift amount.  Use a proper type for the PLUS_EXPR operand.
1704
1705 2011-04-29  Michael Matz  <matz@suse.de>
1706
1707         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1708         other trees that just builtins.
1709         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1710
1711 2011-04-29  Richard Guenther  <rguenther@suse.de>
1712
1713         * tree-nested.c (get_trampoline_type): Use size_int.
1714         (get_nl_goto_field): Likewise.
1715         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1716         for all indexes.
1717         (lower_eh_constructs_2): Likewise.
1718         (lower_resx): Likewise.
1719         (lower_eh_dispatch): Likewise.
1720         * tree-mudflap.c (mf_build_string): Use size_int.
1721         (mudflap_register_call): Use integer_type_node for the flag.
1722         (mudflap_enqueue_constant): Use size_int.
1723         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1724         instead of rebuilding it.
1725
1726 2011-04-29  Richard Guenther  <rguenther@suse.de>
1727
1728         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1729         Handle OBJ_TYPE_REF.
1730         (find_func_aliases_for_call): Use it more consistently.
1731
1732 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
1733
1734         * haifa-sched.c (last_nondebug_scheduled_insn): New.
1735         (rank_for_schedule): Use it.
1736         (schedule_block): Set it.
1737
1738 2011-04-28  David Li  <davidxl@google.com>
1739
1740         * tree.c (crc32_string): Use crc32_byte.
1741         (crc32_byte): New function.
1742         * tree.h (crc32_byte): New function.
1743         * gcov.c (read_graph_file): Handle new cfg_cksum.
1744         (read_count_file): Ditto.
1745         * profile.c (instrument_values): Ditto.
1746         (get_exec_counts): Ditto.
1747         (read_profile_edge_counts): Ditto.
1748         (compute_branch_probabilities): Ditto.
1749         (compute_value_histograms): Ditto.
1750         (branch_prob): Ditto.
1751         (end_branch_prob): Ditto.
1752         * coverage.c (read_counts_file): Ditto.
1753         (get_coverage_counts): Ditto.
1754         (tree_coverage_counter_addr): Ditto.
1755         (coverage_checksum_string): Ditto.
1756         (coverage_begin_output): Ditto.
1757         (coverage_end_function): Ditto.
1758         (build_fn_info_type): Ditto.
1759         (build_fn_info_value): Ditto.
1760         * libgcov.c (gcov_exit): Ditto.
1761         * gcov-dump.c (tag_function): Ditto.
1762         (compute_checksum): Remove.
1763
1764 2011-04-29  Alan Modra  <amodra@gmail.com>
1765
1766         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1767         unspec plus offset.  Tidy macho code.
1768
1769 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1770
1771         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1772         node instead of a decl.  Update all callers.
1773         * cgraph.h: Update declaration.
1774
1775 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
1776
1777         PR tree-optimization/48765
1778         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1779         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1780         to indicate if loop aware SLP is being used.  Scan the statements
1781         and update the vectorization factor according to the type of
1782         vectorization before statement analysis.
1783         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1784         pass it to vect_analyze_loop_operations.
1785         (vectorizable_reduction): Set number of copies to 1 in case of pure
1786         SLP statement.
1787         * tree-vect-stmts.c (vectorizable_conversion,
1788         vectorizable_assignment, vectorizable_shift,
1789         vectorizable_operation, vectorizable_type_demotion,
1790         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1791         Likewise.
1792         (vectorizable_condition): Move the check that it is not SLP
1793         vectorization before the number of copies check.
1794         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1795         to vectorize the loop using SLP.
1796
1797 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
1798
1799         PR middle-end/48597
1800         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1801         inline asm.
1802
1803 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
1804
1805         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1806         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1807         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1808         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1809         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1810         linux*.h headers.
1811         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1812         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1813         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1814         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1815         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1816         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1817         REG_NAME.
1818         * config/i386/linux.h (REG_NAME): Don't define.
1819         * config/i386/linux64.h (REG_NAME): Don't define.
1820         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1821         Undefine before defining.
1822
1823 2011-04-28  Jan Hubicka  <jh@suse.cz>
1824
1825         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1826         nonconstant_names array.
1827         (estimate_function_body_sizes): Build nonconstant_names array; handle
1828         BUILT_IN_CONSTANT_P.
1829
1830 2011-04-28  Richard Guenther  <rguenther@suse.de>
1831
1832         PR bootstrap/48804
1833         Revert
1834         2011-04-28  Richard Guenther  <rguenther@suse.de>
1835
1836         * tree-ssa-structalias.c (solve_constraints): Build succ graph
1837         as late as possible.
1838
1839 2011-04-28  Richard Guenther  <rguenther@suse.de>
1840
1841         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1842         (debug_constraint): Do it here.
1843         (dump_constraints): And here.
1844         (rewrite_constraints): And here.
1845         (dump_constraint_edge): Remove.
1846         (dump_constraint_graph): Rewrite to produce DOT output.
1847         (solve_constraints): Build succ graph as late as possible.
1848         Dump constraint graphs before and after solving.
1849
1850 2011-04-28  Richard Guenther  <rguenther@suse.de>
1851
1852         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1853         New function split out from ...
1854         (find_func_aliases): ... here.  Call it.
1855         (find_func_aliases_for_call): Likewise.
1856
1857 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1858
1859         * internal-fn.h (internal_fn_name_array): Declare.
1860         (internal_fn_flags_array): Likewise.
1861
1862 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1863
1864         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
1865         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1866         Move from sse.md.
1867         (ssemodefsuffix): Remove.
1868         (ssevecmodesuffix): New mode attribute.
1869         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1870         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1871         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1872         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1873         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1874         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1875         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1876         ssemodesuffix mode attribute.
1877         (float splitters): Use ssevecmodesuffix mode attribute.
1878         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1879         (sseinsmode): Rename from avxvecmode.
1880         (avxsizesuffix): Rename from avxmodesuffix.
1881         (sseintvecmode): Rename from avxpermvecmode.
1882         (ssedoublevecmode): Rename from ssedoublesizemode.
1883         (ssehalfvecmode): Rename from avxhalfvecmode.
1884         (ssescalarmode): Rename from avxscalarmode.
1885         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1886         templates for ssemodesuffix mode attribute.
1887         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1888         mode attribute.
1889
1890         Adjust RTX patterns globally for renamed mode attributes.
1891
1892 2011-04-27  Jan Hubcika  <jh@suse.cz>
1893
1894         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1895         * ipa-inline-analysis.c: Include alloc-pool.h.
1896         (edge_predicate_pool): New.
1897         (trye_predicate_p): New function
1898         (false_predicate_p): New function.
1899         (add_clause): Sanity check that false clauses are "optimized";
1900         never add clauses to predicate that is already known to be false.
1901         (and_predicate): Use flase_predicate_p.
1902         (evaulate_predicate): Rename to ...
1903         (evaluate_predicate): ... this one; update all callers; assert
1904         that false is not listed among possible truths.
1905         (dump_predicate): Use true_predicate_p.
1906         (account_size_time): Use false_predicate_p.
1907         (evaulate_conditions_for_edge): Rename to ...
1908         (evaluate_conditions_for_edge) ... this one.
1909         (edge_set_predicate): New function.
1910         (inline_edge_duplication_hook): Duplicate edge predicates.
1911         (inline_edge_removal_hook): Free edge predicates.
1912         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1913         (dump_inline_summary): Update.
1914         (estimate_function_body_sizes): Set edge predicates.
1915         (estimate_calls_size_and_time): Handle predicates.
1916         (estimate_callee_size_and_time): Update.
1917         (remap_predicate): Add toplev_predicate; update comment.
1918         (remap_edge_predicates): New function.
1919         (inline_merge_summary): Compute toplev predicate; update.
1920         (read_predicate): New function.
1921         (read_inline_edge_summary): Use it.
1922         (inline_read_section): Likewise.
1923         (write_predicate): New function.
1924         (write_inline_edge_summary): Use it.
1925         (inline_write_summary): Likewise.
1926         (inline_free_summary): Free alloc pool and edge summary vec.
1927
1928 2011-04-27  Richard Guenther  <rguenther@suse.de>
1929
1930         * tree-ssa-structalias.c (changed_count): Remove.
1931         (changed): Use a bitmap.
1932         (unify_nodes): Adjust.
1933         (do_sd_constraint): Likewise.
1934         (do_ds_constraint): Likewise.
1935         (do_complex_constraint): Likewise.
1936         (solve_graph): Likewise.
1937
1938 2011-04-27  Jan Hubicka  <jh@suse.cz>
1939
1940         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1941
1942 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1943
1944         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1945         (avx_vperm2f128_*_operand): Ditto.
1946         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1947         Use avx_vpermilp_parallel in insn condition.
1948         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1949         Use avx_vperm2f128_parallel in insn condition.
1950
1951 2011-04-27  Richard Guenther  <rguenther@suse.de>
1952
1953         * Makefile.in (tree-ssa-structalias.o): Remove
1954         gt-tree-ssa-structalias.h dependency.
1955         (GTFILES): Remove tree-ssa-structalias.c.
1956         * tree.c (allocate_decl_uid): New function.
1957         (make_node_stat): Use it.
1958         (copy_node_stat): Likewise.
1959         * tree.h (allocate_decl_uid): Declare.
1960         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1961         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1962         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1963         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1964         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1965         (struct heapvar_map): Likewise.
1966         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1967         heapvar_insert): Likewise.
1968         (make_heapvar_for): Rename to ...
1969         (make_heapvar): ... this.  Simplify.
1970         (fake_var_decl_obstack): New global var.
1971         (build_fake_var_decl): New function.
1972         (make_constraint_from_heapvar): Adjust.
1973         (handle_lhs_call): Likewise.
1974         (create_function_info_for): Likewise.
1975         (intra_create_variable_infos): Likewise.
1976         (init_alias_vars): Allocate fake_var_decl_obstack.
1977         (init_alias_heapvars, delete_alias_heapvars): Remove.
1978         (compute_points_to_sets): Do not call init_alias_heapvars.
1979         (ipa_pta_execute): Likewise.
1980         (delete_points_to_sets): Free fake_var_decl_obstack.
1981
1982 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1983
1984         * config/spu/divmovti4.c (union qword_UTItype): New data type.
1985         (si_from_UTItype, si_to_UTItype): New functions.
1986         (__udivmodti4): Use them to implement type-punning.
1987         * config/spu/multi3.c (union qword_TItype): New data type.
1988         (si_from_TItype, si_to_TItype): New functions.
1989         (__multi3): Use them to implement type-punning.
1990
1991 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1992
1993         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1994
1995 2011-04-27  Jan Hubicka  <jh@suse.cz>
1996
1997         * ipa-prop.c (function_insertion_hook_holder): New holder.
1998         (ipa_add_new_function): New function.
1999         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2000         Register/deregister holder.
2001
2002 2011-04-27  Richard Guenther  <rguenther@suse.de>
2003
2004         PR tree-optimization/48772
2005         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2006
2007 2011-04-27  Richard Guenther  <rguenther@suse.de>
2008
2009         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2010         TARGET_MEM_REF handling.
2011
2012 2011-04-27  Nick Clifton  <nickc@redhat.com>
2013
2014         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2015         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2016         (REG_CLASS_NAMES): Likewise.
2017         (REG_CLASS_CONTENTS): Likewise.
2018         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2019         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2020         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2021         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2022         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2023         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2024         duplicate register classes.
2025         (frv_class_likely_spilled_p): Likewise.
2026         (frv_register_move_cost): Likewise.
2027
2028         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2029         end of the regno_reg_class array.
2030
2031 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2032
2033         PR c/48742
2034         * c-typeck.c (build_binary_op): Don't wrap arguments if
2035         int_operands is true.
2036
2037 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2038
2039         PR target/48767
2040         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2041         targetm.calls.must_pass_in_stack for void type.
2042
2043 2011-04-26  Jan Hubicka  <jh@suse.cz>
2044
2045         * cgraphbuild.c (build_cgraph_edges): Update call
2046         of cgraph_create_edge and cgraph_create_indirect_edge.
2047         * cgraph.c (cgraph_create_edge_including_clones,
2048         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2049         cgraph_update_edges_for_call_stmt_node): Do not take nest
2050         argument; do not initialize call_stmt_size/time.
2051         (dump_cgraph_node): Do not dump nest.
2052         (cgraph_clone_edge): Do not take loop_nest argument;
2053         do not propagate it; do not clone call_stmt_size/time.
2054         (cgraph_clone_node): Likewise.
2055         (cgraph_create_virtual_clone): Update.
2056         * cgraph.h (struct cgraph_edge): Remove
2057         call_stmt_size/call_stmt_time/loop_nest.
2058         (cgraph_create_edge, cgraph_create_indirect_edge,
2059         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2060         prototype.
2061         * tree-emutls.c (gen_emutls_addr): Update.
2062         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2063         loop_nest; handle indirect calls, too.
2064         (clone_inlined_nodes): Do not care about updating inline summaries.
2065         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2066         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2067         stream call_stmt_size/call_stmt_time/loop_nest.
2068         * ipa-inline.c (edge_badness): Update.
2069         (ipa_inline): dump summaries after inlining.
2070         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2071         New.
2072         (inline_edge_summary): New function.
2073         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2074         (inline_edge_removal_hook): Handle edge summaries.
2075         (inline_edge_duplication_hook): New hook.
2076         (inline_summary_alloc): Alloc hooks.
2077         (initialize_growth_caches): Do not register removal hooks.
2078         (free_growth_caches); Do not free removal hook.
2079         (dump_inline_edge_summary): New function.
2080         (dump_inline_summary): Use it.
2081         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2082         (inline_update_callee_summaries): New function.
2083         (inline_merge_summary): Use it.
2084         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2085         (read_inline_edge_summary): New function.
2086         (inline_read_section): Use it.
2087         (write_inline_edge_summary): New function.
2088         (inline_write_summary): Use it.
2089         (inline_free_summary): Free edge new holders.
2090         * tree-inline.c (copy_bb): Update.
2091
2092 2011-04-26  Jason Merrill  <jason@redhat.com>
2093
2094         * tree-eh.c (lower_try_finally_switch): Create the label along with
2095         the CASE_LABEL_EXPR.
2096
2097 2011-04-26  David S. Miller  <davem@davemloft.net>
2098             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2099
2100         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2101         * configure: Regenerate.
2102
2103 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2104
2105         PR target/48258
2106         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2107         reduction.
2108         (VEC_reduc): New code iterator and splitters for vector reduction.
2109         (VEC_reduc_name): Ditto.
2110         (VEC_reduc_rtx): Ditto.
2111         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2112         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2113
2114         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2115         support for extracting SF on VSX.
2116
2117         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2118         generating xscvspdp.
2119         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2120         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2121         double add, minimum, maximum vector reduction.
2122         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2123         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2124         optimize double vector reduction.
2125         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2126
2127 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2128
2129         * config/fr30/fr30.h (inhibit_libc): Don't define.
2130         * config/m32r/m32r-protos.h: Correct comment.
2131         * config/v850/v850.h (GHS_default_section_names,
2132         GHS_current_section_names): Use tree, not union tree_node *.
2133
2134 2011-04-26  Xinliang David Li  <davidxl@google.com>
2135
2136         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2137         * c-family/c-opts.c (c_common_handle_option): Set
2138         warn_maybe_uninitialized.
2139         * opts.c (common_handle_option): Ditto.
2140         * common.opt:  New option.
2141         * tree-ssa.c (warn_uninit): Add one more parameter.
2142         (warn_uninitialized_var): Pass warning code.
2143         * tree-flow.h: Interface change.
2144
2145
2146 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2147
2148         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2149         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2150         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2151
2152 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2153
2154         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2155         * config/mips/mips.opt (mmips-tfile): Remove.
2156
2157         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2158         mips-tdump reference to ...
2159         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2160         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2161         reference by Tru64 UNIX.
2162
2163 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2164
2165         PR debug/48768
2166         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2167         is error_mark_node, set value to NULL.
2168
2169         PR tree-optimization/48734
2170         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2171         if return value from maybe_fold_*_comparsions isn't something
2172         the code is prepared to handle.
2173
2174 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2175
2176         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2177         mode check.
2178         (ext_QIreg_nomode_operands): Remove.
2179         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2180         (*andsi_1): Ditto.
2181         (*andhi_1): Ditto.
2182
2183 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2184
2185         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2186
2187 2011-04-26  Richard Guenther  <rguenther@suse.de>
2188
2189         * c-typeck.c (build_unary_op): Do not expand array-refs via
2190         pointer arithmetic.  Only adjust qualifiers for function types.
2191
2192 2011-04-26  Richard Guenther  <rguenther@suse.de>
2193
2194         PR middle-end/48694
2195         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2196         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2197         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2198         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2199
2200 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2201
2202         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2203         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2204         * doc/extend.texi: Document __underlying_type.
2205
2206 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2207
2208         * config/rs6000/titan.md (automata_option "progress"): Remove.
2209
2210 2011-04-25  Jeff Law  <law@redhat.com>
2211
2212         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2213
2214 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2215
2216         * system.h (ENUM_BITFIELD): Remove.
2217
2218 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2219             Eric Botcazou  <ebotcazou@adacore.com>
2220
2221         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2222         for STORE_FLAG_VALUE==-1 case.
2223
2224 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2225
2226         PR target/43804
2227         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2228         LEGITIMATE_PIC_OPERAND_P.
2229
2230 2011-04-24  Jan Hubicka  <jh@suse.cz>
2231
2232         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2233         WPA hack.
2234         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2235         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2236         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2237         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2238         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2239         Sanity check predicate length.
2240         (remap_predicate): Likewise; sanity check jump functions.
2241         (inline_read_section, inline_write_summary): Sanity check
2242         predicate length.
2243
2244 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2245
2246         PR other/48748
2247         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2248         __is_literal_type, and __is_trivial; update throughout about
2249         possibly cv-qualified void types.
2250
2251 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2252
2253         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2254         testsuite and make it version agnostic.
2255
2256 2011-04-22  Jan Hubicka  <jh@suse.cz>
2257
2258         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2259
2260 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2261
2262         PR c/48685
2263         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2264         to VOID_TYPE even around MODIFY_EXPR.
2265
2266 2011-04-22  Mike Stump  <mikestump@comcast.net>
2267
2268         * gensupport.c (read_md_rtx): Fix typo in comment.
2269         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2270         comment.
2271
2272 2011-04-22  Jan Hubicka  <jh@suse.cz>
2273
2274         * gengtype.c (open_base_files): Add ipa-inline.h include.
2275         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2276         ipa-prop.c; update all uses.
2277         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2278         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2279         merge summary of inlined function into former caller.
2280         * ipa-inline.c (max_benefit): Remove.
2281         (edge_badness): Compensate for removal of benefits.
2282         (update_caller_keys): Use
2283         reset_node_growth_cache/reset_edge_growth_cache.
2284         (update_callee_keys): Likewise.
2285         (update_all_callee_keys): Likewise.
2286         (inline_small_functions): Do not collect max_benefit; do not reset
2287         estimated_growth; call free_growth_caches and initialize_growth_caches.
2288         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2289         struct size_time_entry): New structures.
2290         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2291         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2292         and estimated_growth.
2293         (edge_growth_cache_entry): New structure.
2294         (node_growth_cache, edge_growth_cache): New global vars.
2295         (estimate_growth): Turn into inline.
2296         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2297         initialize_growth_caches, free_growth_caches): Declare.
2298         (estimate_edge_growth): Rewrite.
2299         (estimate_edge_time): Implement as inline cache lookup.
2300         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2301         functions.
2302         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2303         (NUM_CONDITIONS): New constant.
2304         (predicate_conditions): New enum.
2305         (IS_NOT_CONSTANT): New constant.
2306         (edge_removal_hook_holder): New var.
2307         (node_growth_cache, edge_growth_cache): New global vars.
2308         (true_predicate, single_cond_predicate, false_predicate,
2309         not_inlined_predicate, add_condition, add_clause, and_predicates,
2310         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2311         dump_clause, dump_predicate, account_size_time,
2312         evaulate_conditions_for_edge): New functions.
2313         (inline_summary_alloc): Move to heap.
2314         (inline_node_removal_hook): Clear condition and entry vectors.
2315         (inline_edge_removal_hook): New function.
2316         (initialize_growth_caches, free_growth_caches): New function.
2317         (dump_inline_summary): Update.
2318         (edge_execution_predicate): New function.
2319         (will_be_nonconstant_predicate): New function.
2320         (estimate_function_body_sizes): Compute BB and constantness predicates.
2321         (compute_inline_parameters): Do not clear estimated_growth.
2322         (estimate_edge_size_and_time): New function.
2323         (estimate_calls_size_and_time): New function.
2324         (estimate_callee_size_and_time): New function.
2325         (remap_predicate): New function.
2326         (inline_merge_summary): New function.
2327         (do_estimate_edge_time): New function based on...
2328         (estimate_edge_time): ... this one.
2329         (do_estimate_edge_growth): New function.
2330         (do_estimate_growth): New function based on....
2331         (estimate_growth): ... this one.
2332         (inline_analyze_function): Analyze after deciding on jump functions.
2333         (inline_read_section): New function.
2334         (inline_read_summary): Use it.
2335         (inline_write_summary): Write all the new data.
2336         * ipa-prop.c (ipa_get_param_decl_index): Export.
2337         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2338         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2339         Declare.
2340         (ipa_get_lattice): Move here from ipa-cp.c
2341         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2342         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2343         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2344         cgraph_edge_inlinable_p): Remove.
2345         * cgraphunit.c: Include ipainline.h
2346         (cgraph_process_new_functions): Update call of
2347         compute_inline_parameters.
2348
2349 2011-04-22  Richard Guenther  <rguenther@suse.de>
2350
2351         * tree.c (build_int_cst): Properly create canonicalized integer
2352         constants.
2353         (build_int_cst_type): Remove scary comments.
2354
2355 2011-04-22  Xinliang David Li  <davidxl@google.com>
2356
2357         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2358         by default when -Wno-error is not specified.
2359         * opts-global.c (decode_options): Remove call to
2360         control_warning_options.
2361
2362 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2363
2364         PR tree-optimization/48717
2365         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2366         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2367
2368 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2369
2370         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2371         definition where used.
2372
2373 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2374
2375         PR c/48716
2376         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2377         TREE_STATIC variables declared inside of some OpenMP construct.
2378
2379 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2380
2381         PR middle-end/48585
2382         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2383
2384 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2385
2386         PR c/36750
2387         * c-typeck.c (pop_init_level): Do not warn about initializing
2388         with ` = {0}'.
2389
2390 2011-04-22  Alan Modra  <amodra@gmail.com>
2391
2392         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2393         when returning call_cookie.
2394         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2395         pointers, to functions with no more vector args than the current
2396         function, and some non-local calls for ABI_V4.
2397         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2398         sibcall_nonlocal_aix64): Combine to ..
2399         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2400         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2401         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2402         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2403         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2404         operand.
2405         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2406         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2407         sibcall_value_symbolic_64): Delete.
2408
2409 2011-04-21  Xinliang David Li  <davidxl@google.com>
2410
2411         * cgraph.h: Remove pid.
2412         * cgraph.c: Remove pid.
2413         * value-prof.c (init_node_map): New function.
2414         (del_node_map): New function.
2415         (find_func_by_funcdef_no): New function.
2416         (gimple_ic_transform): Call new function.
2417         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2418         * function.c (get_last_funcdef_no): New function.
2419         * function.h (get_last_funcdef_no): New function.
2420         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2421         to libgcov function.
2422         (tree-profiling): Call node map init and delete function.
2423
2424 2011-04-21  Ian Lance Taylor  <iant@google.com>
2425
2426         * godump.c (go_format_type): Use exported Go name for anonymous
2427         field name.
2428
2429 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2430
2431         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2432         Call builtin_function_type_list instead of builtin_function_type.
2433         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2434
2435 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2436
2437         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2438         build_function_type_list instead of build_function_type.
2439         Delete variable `endlink'.
2440
2441 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2442
2443         * config/s390/s390.c (s390_init_builtins): Call
2444         build_function_type_list instead of build_function_type.
2445
2446 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2447
2448         * config/ia64/ia64.c (ia64_init_builtins): Call
2449         build_function_type_list instead of builtin_function_type.
2450
2451 2011-04-21  Easwaran Raman  <eraman@google.com>
2452
2453         * cfgexpand.c (stack_var): Remove OFFSET...
2454         (add_stack_var): ...and its reference here...
2455         (expand_stack_vars): ...and here.
2456         (stack_var_cmp): Sort by descending order of size.
2457         (partition_stack_vars): Change heuristic.
2458         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2459         (dump_stack_var_partition): Add newline after each partition.
2460
2461 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2462             Jeff Law  <law@redhat.com>
2463
2464         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2465         * gengtype.c (matching_file_name_substitute): Likewise.
2466
2467 2011-04-21  Richard Guenther  <rguenther@suse.de>
2468
2469         PR lto/48703
2470         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2471
2472 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2473
2474         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2475
2476 2011-04-21  Richard Guenther  <rguenther@suse.de>
2477
2478         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2479         file name.
2480
2481 2011-04-21  Richard Guenther  <rguenther@suse.de>
2482
2483         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2484         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2485         Use DECL_P, not SSA_VAR_P.
2486         (ptr_derefs_may_alias_p): Likewise.
2487         (ptr_deref_may_alias_ref_p_1): Likewise.
2488         (decl_refs_may_alias_p): Likewise.
2489         (refs_may_alias_p_1): Likewise.
2490         (ref_maybe_used_by_call_p_1): Likewise.
2491         (call_may_clobber_ref_p_1): Likewise.
2492         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2493         are either MEM_REF or TARGET_MEM_REF.
2494         (indirect_refs_may_alias_p): Likewise.
2495         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2496         for MEM_EXPR of indirect calls.
2497
2498 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2499
2500         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2501         (dst_file_info_struct): Remove flen field.
2502         (lookup_filename): Remove code that set flen field.
2503
2504 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2505
2506         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2507
2508 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2509
2510         PR target/48708
2511         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2512         vec_extract and vec_concat for non-SSE4_1 targets.
2513
2514 2011-04-21  Richard Guenther  <rguenther@suse.de>
2515
2516         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2517         return statements.
2518
2519 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2520
2521         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2522         undefine.
2523         (FILE): Don't undefine.
2524
2525 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2526
2527         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2528         struct rtx_def *.
2529         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2530         struct rtx_def *.
2531         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2532         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2533         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2534         rtx_def *.
2535         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2536         definitions where used.
2537         * config/microblaze/microblaze.h (struct microblaze_args): Use
2538         rtx, not struct rtx_def *.
2539         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2540         rtx_def *.
2541         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2542         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2543         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2544         not struct rtx_def *.
2545         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2546         struct rtx_def *.
2547         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2548         rtx_def *.
2549         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2550
2551 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2552
2553         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2554         operand_equal_p to compare DR_BASE_ADDRESSes.
2555         (vect_check_interleaving): Likewise.
2556
2557 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2558
2559         PR target/46329
2560         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2561         for all Neon struct constants.
2562
2563 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2564
2565         * target.def (legitimate_constant_p): New hook.
2566         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2567         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2568         * doc/tm.texi: Regenerate.
2569         * hooks.h (hook_bool_mode_rtx_true): Declare.
2570         * hooks.c (hook_bool_mode_rtx_true): Define.
2571         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2572         * calls.c (precompute_register_parameters): Replace uses of
2573         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2574         (emit_library_call_value_1): Likewise.
2575         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2576         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2577         * ira-costs.c (scan_one_insn): Likewise.
2578         * recog.c (general_operand, immediate_operand): Likewise.
2579         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2580         * reload1.c (init_eliminable_invariants): Likewise.
2581
2582         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2583         mode argument.
2584         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2585         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2586         argument.
2587         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2588         * config/alpha/predicates.md (input_operand): Update call to
2589         alpha_legitimate_constant_p.
2590
2591         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2592         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2593         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2594         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2595         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2596         (arm_legitimate_constant_p): New functions.
2597         (arm_cannot_force_const_mem): Make static.
2598
2599         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2600
2601         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2602         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2603         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2604         instead of bfin_legitimate_constant_p.
2605         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2606         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2607
2608         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2609
2610         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2611
2612         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2613         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2614         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2615         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2616
2617         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2618         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2619         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2620
2621         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2622         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2623         * config/i386/i386.c (legitimate_constant_p): Rename to...
2624         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2625         argument.
2626         (ix86_cannot_force_const_mem): Update accordingly.
2627         (ix86_legitimate_address_p): Likewise.
2628         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2629         * config/i386/i386.md: Update commentary.
2630
2631         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2632         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2633         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2634         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2635
2636         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2637
2638         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2639         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2640         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2641         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2642
2643         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2644         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2645         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2646
2647         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2648         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2649         (m32r_legitimate_constant_p): New function.
2650
2651         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2652         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2653         LEGITIMATE_CONSTANT_P.
2654         (LEGITIMATE_CONSTANT_P): Delete.
2655         * config/m68k/m68k.c (m68k_expand_prologue): Call
2656         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2657         (m68k_legitimate_constant_p): New function.
2658         * config/m68k/m68k.md: Update comments.
2659
2660         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2661         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2662         (mcore_legitimate_constant_p): New function.
2663
2664         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2665         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2666         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2667         Add a mode argument.
2668         (mep_legitimate_address): Update accordingly.
2669         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2670
2671         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2672         Delete.
2673         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2674         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2675         static.  Check OP's mode for VOIDmode.
2676         (microblaze_legitimate_constant_p): New function.
2677         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2678
2679         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2680         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2681         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2682         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2683         * config/mips/predicates.md: Update comments.
2684
2685         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2686         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2687         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2688         (mmix_legitimate_constant_p): Make static, return a bool, and take
2689         a mode argument.
2690         (mmix_print_operand_address): Update accordingly.
2691
2692         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2693         Delete.
2694         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2695         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2696         static.  Add a mode argument.
2697         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2698
2699         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2700
2701         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2702         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2703         (pa_legitimate_constant_p): New function.
2704
2705         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2706
2707         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2708         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2709         (pdp11_legitimate_constant_p): New function.
2710
2711         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2712         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2713         (rs6000_legitimate_constant_p): New function.
2714
2715         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2716         (rx_legitimate_constant_p): ...this.
2717         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2718         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2719         (rx_legitimate_constant_p): ...this.
2720         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2721         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2722
2723         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2724         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2725         * config/s390/s390.c (legitimate_constant_p): Rename to...
2726         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
2727         and add a mode argument.
2728         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2729
2730         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2731
2732         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2733         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2734         (sh_legitimate_constant_p): New function.
2735
2736         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2737         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2738         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2739         (legitimate_constant_p): Rename to...
2740         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
2741         argument.
2742         (constant_address_p): Update accordingly.
2743
2744         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2745         argument and return a bool.
2746         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2747         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2748         (spu_legitimate_constant_p): Add a mode argument and return a bool.
2749         (spu_rtx_costs): Update accordingly.
2750         * config/spu/predicates.md (vec_imm_operand): Likewise.
2751
2752         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2753
2754         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2755         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2756         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2757
2758         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2759         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2760         * config/vax/vax.c (legitimate_constant_p): Likewise.
2761
2762         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2763         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2764         (xtensa_legitimate_constant_p): New function.
2765
2766 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2767
2768         * target.def (cannot_force_const_mem): Add a mode argument.
2769         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2770         * doc/tm.texi: Regenerate.
2771         * hooks.h (hook_bool_mode_rtx_false): Declare.
2772         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2773         (hook_bool_mode_const_rtx_true): Likewise.
2774         (hook_bool_mode_rtx_false): New function.
2775         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2776         to be non-VOID.  Update call to cannot_force_const_mem.
2777         (find_reloads): Update accordingly.
2778         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2779         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2780         argument.
2781         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2782         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2783         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2784         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2785         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2786         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2787         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2788         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2789         (m68k_cannot_force_const_mem): ...this new function.
2790         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2791         argument.
2792         (mips_const_insns, mips_legitimize_const_move): Update calls.
2793         (mips_secondary_reload_class): Likewise.
2794         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2795         (pa_cannot_force_const_mem): ...this new function.
2796         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2797         (rs6000_cannot_force_const_mem): ...this new function.
2798         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2799         argument.
2800         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2801         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2802         to...
2803         (xtensa_cannot_force_const_mem): ...this new function.
2804
2805 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2806
2807         * config/mips/mips.c (mips16_build_function_stub): Call
2808         build_function_type_list instead of build_function_type.
2809         (mips16_build_call_stub): Likewise.
2810
2811 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2812
2813         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2814         instead of build_function_type.
2815
2816 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2817
2818         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2819         instead of build_function_type.
2820
2821 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
2822
2823         PR target/48678
2824         * config/i386/i386.md (insv): Change operand 0 constraint to
2825         "register_operand".  Change operand 1 and 2 constraint to
2826         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
2827         * config/i386/sse.md (sse4_1_pinsrb): Export.
2828         (sse2_pinsrw): Ditto.
2829         (sse4_1_pinsrd): Ditto.
2830         (sse4_1_pinsrq): Ditto.
2831         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2832         * config/i386/i386.c (ix86_expand_pinsr): New.
2833
2834 2011-04-20  Easwaran Raman  <eraman@google.com>
2835
2836         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2837         containing union type only with -fstrict-aliasing.
2838
2839 2011-04-20  Jim Meyering  <meyering@redhat.com>
2840
2841         Remove useless if-before-free tests.
2842         * calls.c (expand_call, save_area): Likewise.
2843         * cfgcleanup.c (try_forward_edges): Likewise.
2844         * collect2.c (collect_execute): Likewise.
2845         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2846         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2847         * coverage.c (coverage_checksum_string): Likewise.
2848         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2849         * cselib.c (cselib_init): Likewise.
2850         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2851         (df_set_clean_cfg): Likewise.
2852         * function.c (free_after_compilation): Likewise.
2853         * gcc.c (do_spec_1, main): Likewise.
2854         * gcov.c (create_file_names): Likewise.
2855         * gensupport.c (identify_predicable_attribute): Likewise.
2856         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2857         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2858         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2859         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2860         * ipa-pure-const.c (local_pure_const): Likewise.
2861         * ipa-reference.c (propagate): Likewise.
2862         * ira-costs.c (free_ira_costs): Likewise.
2863         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2864         * matrix-reorg.c (mat_free): Likewise.
2865         * prefix.c (get_key_value): Likewise.
2866         * profile.c (compute_value_histograms): Likewise.
2867         * reload1.c (free_reg_equiv): Likewise.
2868         * sched-deps.c (free_deps): Likewise.
2869         * sel-sched-ir.c (fence_clear): Likewise.
2870         * sese.c (set_rename, if_region_set_false_region): Likewise.
2871         * tree-data-ref.c (free_rdg): Likewise.
2872         * tree-eh.c (lower_try_finally): Likewise.
2873         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2874         * tree-ssa-live.c (delete_var_map): Likewise.
2875         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2876         * tree-ssa-pre.c (phi_trans_add): Likewise.
2877
2878 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
2879
2880         PR tree-optimization/48611
2881         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2882         beyond ERT_MUST_NOT_THROW region.
2883
2884 2011-04-20  Catherine Moore  <clm@codesourcery.com>
2885
2886         * config/mips/mips.opt (mfix-24k): New.
2887         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2888         * config/mips/mips.md (length): Increase by 4 for stores if
2889         fixing 24K errata.
2890         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2891         all noreorder if fixing 24K errata.
2892         * doc/invoke.texi: Document mfix-24k.
2893
2894 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
2895
2896         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2897         quad-word modes, reduce to 9-bit index range when above 1016 limit.
2898
2899 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2900
2901         * config/arm/arm.c (arm_gen_constant): Move movw support ....
2902         (const_ok_for_op): ... to here.
2903
2904 2011-04-20  Kai Tietz  <ktietz@redhat.com>
2905
2906         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2907         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2908
2909 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2910
2911         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2912
2913 2011-04-20  Richard Guenther  <rguenther@suse.de>
2914
2915         PR tree-optimization/47892
2916         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2917         are if-convertible.
2918
2919 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2920
2921         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2922
2923 2011-04-20  Tristan Gingold  <gingold@adacore.com>
2924
2925         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2926
2927 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
2928
2929         PR target/18145
2930
2931         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2932         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2933         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2934         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2935         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2936
2937         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2938         New prototype.
2939
2940         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2941         (avr_asm_named_section, avr_asm_output_aligned_common,
2942         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2943         New functions to update...
2944         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2945         (avr_asm_init_sections): Overwrite section callbacks for
2946         data_section, bss_section.
2947         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2948         from here to...
2949         (avr_file_end): ...here.
2950
2951 2011-04-20  Richard Guenther  <rguenther@suse.de>
2952
2953         PR middle-end/48695
2954         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2955         objects and types here.  Adjust for their offset before comparing.
2956
2957 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2958
2959         * tree-vect-stmts.c (vectorizable_store): Only chain one related
2960         statement per copy.
2961
2962 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2963
2964         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2965         (GIMPLE_H): Include $(INTERNAL_FN_H).
2966         (OBJS-common): Add internal-fn.o.
2967         (internal-fn.o): New rule.
2968         * internal-fn.def: New file.
2969         * internal-fn.h: Likewise.
2970         * internal-fn.c: Likewise.
2971         * gimple.h: Include internal-fn.h.
2972         (GF_CALL_INTERNAL): New gf_mask.
2973         (gimple_statement_call): Put fntype into a union with a new
2974         internal_fn field.
2975         (gimple_build_call_internal): Declare.
2976         (gimple_build_call_internal_vec): Likewise.
2977         (gimple_call_same_target_p): Likewise.
2978         (gimple_call_internal_p): New function.
2979         (gimple_call_internal_fn): Likewise.
2980         (gimple_call_fntype): Return null for internal calls.
2981         (gimple_call_set_fntype): Assert that the function is not internal.
2982         (gimple_call_set_fn): Likewise.
2983         (gimple_call_set_fndecl): Likewise.
2984         (gimple_call_set_internal_fn): New function.
2985         (gimple_call_addr_fndecl): Handle null functions.
2986         (gimple_call_return_type): Likewise null types.
2987         * gimple.c (gimple_build_call_internal_1): New function.
2988         (gimple_build_call_internal): Likewise.
2989         (gimple_build_call_internal_vec): Likewise.
2990         (gimple_call_same_target_p): Likewise.
2991         (gimple_call_flags): Handle calls to internal functions.
2992         (gimple_call_fnspec): New function.
2993         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2994         (gimple_has_side_effects): Handle null functions.
2995         (gimple_rhs_has_side_effects): Likewise.
2996         (gimple_call_copy_skip_args): Handle calls to internal functions.
2997         * cfgexpand.c (expand_call_stmt): Likewise.
2998         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2999         * gimple-fold.c (gimple_fold_call): Handle null functions.
3000         (gimple_fold_stmt_to_constant_1): Don't fold
3001         calls to internal functions.
3002         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3003         functions.
3004         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3005         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3006         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3007         (do_warn_unused_result): Likewise.
3008         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3009         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3010         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3011         the target of a call.
3012         (initialize_hash_element): Update accordingly.
3013         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3014         (iterative_hash_hashable_expr): Handle calls to internal functions.
3015         (print_expr_hash_elt): Likewise.
3016         * tree-ssa-pre.c (can_value_number_call): Likewise.
3017         (eliminate): Handle null functions.
3018         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3019         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3020         (find_func_aliases): Likewise.
3021         * value-prof.c (gimple_ic_transform): Likewise.
3022         (gimple_indirect_call_to_profile): Likewise.
3023         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3024         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3025
3026 2011-04-19  Jan Hubicka  <jh@suse.cz>
3027
3028         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3029         * ipa-inline.c (inline_small_functions): Compute summaries first,
3030         populate heap later.
3031
3032 2011-04-19  Jan Hubicka  <jh@suse.cz>
3033
3034         * cgraph.h (save_inline_function_body): Remove.
3035         * ipa-inline-transform.c: New file, broke out of...
3036         * ipa-inline.c: ... this one; Update toplevel comment.
3037         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3038         make global.
3039         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3040         (cgraph_mark_inline_edge): Rename to inline_call; move to
3041         ipa-inline-transform.c.
3042         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3043         move to ipa-inline-transform.c
3044         (recursive_inlining, inline_small_functions, flatten_function,
3045         ipa_inline, inline_always_inline_functions,
3046         early_inline_small_functions): Update.
3047         (inline_transform): Move to ipa-inline-transform.c.
3048         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3049         Declare.
3050         * Makefile.in (ipa-inline-transform.o): New file.
3051         * cgraphunit.c (save_inline_function_body): Move to
3052         ipa-inline-transform.c
3053
3054 2011-04-19  DJ Delorie  <dj@redhat.com>
3055
3056         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3057         registers if we already know there aren't any.
3058         (m32c_emit_epilogue): Don't emit a barrier here.
3059         (m32c_emit_eh_epilogue): Likewise.
3060         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3061         operands at expand time.
3062         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3063         int" wchar type.
3064         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3065         duplicates.  Provide aliases instead.
3066         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3067         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3068         the compiler.
3069
3070 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3071
3072         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3073         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3074         (general_or_i64_p, sparc_register_move_cost): New function.
3075
3076 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3077
3078         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3079         Add lynx, mipssde.  Sort table.
3080
3081 2011-04-19  Xinliang David Li  <davidxl@google.com>
3082
3083         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3084         not negative.
3085
3086 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3087
3088         PR target/48678
3089         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3090         is a SUBREG with non-MODE_INT mode inside of it.
3091
3092 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3093
3094         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3095         also according to actual contants.
3096         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3097         (gimple_fold_call): Use it.
3098         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3099
3100 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3101
3102         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3103         non-pointer assignments.
3104
3105 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3106
3107         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3108         account anc_offset and otr_type from the indirect edge info.
3109         * ipa-prop.c (get_ancestor_addr_info): New function.
3110         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3111         get_ancestor_addr_info, call it.
3112         (ipa_note_param_call): Do not initialize information about polymorphic
3113         calls, return the indirect call graph edge.  Remove the last
3114         parameter, adjust all callers.
3115         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3116         parameters.  Initialize polymorphic information in the indirect edge.
3117
3118 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3119
3120         PR lto/48148
3121         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3122         the types if they have different enumeration identifiers.
3123
3124 2011-04-19  Jan Hubicka  <jh@suse.cz>
3125
3126         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3127         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3128         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3129         (optimize_function_for_size_p) ... here.
3130
3131 2011-04-19  Richard Guenther  <rguenther@suse.de>
3132
3133         PR lto/48207
3134         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3135         langhook.
3136
3137 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3138
3139         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3140         if DECL_NO_INLINE_WARNING_P is set on the function.
3141
3142 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3143
3144         PR fortran/47976
3145         * reload1.c (inc_for_reload): Return void. All callers changed.
3146         (emit_input_reload_insns): Don't try to delete previous output
3147         reloads to a register, or record spill_reg_store for autoincs.
3148
3149 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3150
3151         * gengtype.h: Updated copyright year.
3152         (struct input_file_st): Add inpisplugin field.
3153         (type_fileloc): New function.
3154         * gengtype.c
3155         (write_typed_struct_alloc_def): Add gcc_assert.
3156         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3157         (write_typed_alloc_defns): Don't output for plugin files.
3158         (input_file_by_name): Clear inpisplugin field.
3159         (main): Set inpisplugin field for plugin files.
3160
3161 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3162
3163         * gengtype-state.c (string_eq): New.
3164         (read_state): Use string_eq instead of strcmp when creating the
3165         state_ident_tab.
3166
3167 2011-04-19  Wei Guozhi  <carrot@google.com>
3168
3169         PR target/47855
3170         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3171         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3172         linkage.
3173         * config/arm/constraints.md (Uu): New constraint.
3174         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3175
3176 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3177
3178         * config.gcc (-*-*-*vms): Added.
3179         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3180         definitions moved.
3181         * config/vms/vms-ld.c: New file.
3182         * config/vms/vms-ar.c: New file.
3183         * config/vms/t-vmsnative: New file.
3184
3185 2011-04-18  Xinliang David Li  <davidxl@google.com>
3186
3187         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3188
3189 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3190
3191         PR middle-end/48661
3192         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3193         if TREE_TYPE (v) is non-NULL.
3194
3195         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3196         gimple_get_virt_mehtod_for_binfo.
3197         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3198         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3199         callers.
3200         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3201
3202 2011-04-18  Michael Matz  <matz@suse.de>
3203             Steve Ellcey  <sje@cup.hp.com>
3204
3205         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3206         use its mode as source mode if it isn't VOIDmode.
3207
3208 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3209
3210         * doc/passes.texi: Fill crossref nodes.
3211
3212 2011-04-18  Jim Meyering  <meyering@redhat.com>
3213
3214         Fix doubled-word typos in comments and strings
3215         * config/alpha/vms-unwind.h: s/for for/for/
3216         * config/arm/unwind-arm.h: Likewise.
3217         * config/microblaze/microblaze.c: Likewise.
3218         * config/sh/constraints.md: s/in in/in/
3219         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3220
3221 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3222
3223         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3224         (AVX_FLOAT_MODE_P): Ditto.
3225         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3226         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3227         (AVX_VEC_FLOAT_MODE_P): Ditto.
3228         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3229         (UNSPEC_MASKSTORE): Ditto.
3230         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3231         Merge from <sse>_movmsk<ssemodesuffix> and
3232         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3233         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3234         iterator.
3235         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3236         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3237         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3238
3239 2011-04-18  Jan Hubicka  <jh@suse.cz>
3240
3241         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3242
3243         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3244         (want_inline_function_called_once_p): Break out the logic from
3245         ipa_inline.
3246         (edge_badness): Ensure that profile is not misupdated.
3247         (lookup_recursive_calls): Prioritize by call frequencies.
3248         (inline_small_functions): Move program size estimates here;
3249         actually process whole queue even when unit growth has been
3250         met. (to properly compute inline_failed reasons and for the
3251         case unit size decrease.) Revisit comments on recursive inlining.
3252         (ipa_inline): Remove unit summary code; first inline hot calls
3253         of functions called once, cold calls next.
3254         (order, nnodes): Remove unused variables.
3255         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3256         (GTFILES): Remove ipa-inline.c
3257         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3258
3259 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3260
3261         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3262
3263 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3264             Richard Earnshaw  <rearnsha@arm.com>
3265
3266         * arm.c (neon_builtin_type_bits): Remove.
3267         (typedef enum neon_builtin_mode): New.
3268         (T_MAX): Don't define.
3269         (typedef enum neon_builtin_datum): Remove bits, codes[],
3270         num_vars and base_fcode.  Add mode, code and fcode.
3271         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3272         VAR10): Change accordingly.
3273         (neon_builtin_data[]): Change accordingly
3274         (arm_init_neon_builtins): Change accordingly.
3275         (neon_builtin_compare): Remove.
3276         (locate_neon_builtin_icode): Remove.
3277         (arm_expand_neon_builtin): Change accordingly.
3278
3279         * arm.h (enum arm_builtins): Move to ...
3280         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3281
3282         * arm.c (arm_builtin_decl): Declare.
3283         (TARGET_BUILTIN_DECL): Define.
3284         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3285         (arm_builtin_decls[]): New.
3286         (arm_init_neon_builtins): Store builtin declarations in
3287         arm_builtin_decls[].
3288         (arm_init_tls_builtins): Likewise.
3289         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3290         (arm_builtin_decl): New.
3291
3292 2011-04-18  Richard Guenther  <rguenther@suse.de>
3293
3294         * tree.c (upper_bound_in_type): Build properly canonicalized
3295         INTEGER_CSTs.
3296         (lower_bound_in_type): Likewise.
3297
3298 2011-04-18  Richard Guenther  <rguenther@suse.de>
3299
3300         * gimple.h (gimple_call_addr_fndecl): New function.
3301         (gimple_call_fndecl): Use it.
3302         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3303         for direct calls.
3304         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3305         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3306
3307 2011-04-18  Richard Guenther  <rguenther@suse.de>
3308
3309         PR middle-end/48650
3310         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3311
3312 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3313
3314         PR lto/48492
3315         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3316         DECL_IN_CONSTANT_POOL without RTL.
3317
3318 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3319             Ira Rosen  <ira.rosen@linaro.org>
3320
3321         PR target/48252
3322         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3323         to match neon_vzip/vuzp/vtrn_internal.
3324         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3325         outputs explicitly dependent on both inputs.
3326         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3327
3328 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3329
3330         PR tree-optimization/48616
3331         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3332         whether the shift is by scalar or vector based on whether all SLP
3333         scalar stmts have the same rhs.
3334
3335 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3336
3337         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3338         memory operands.
3339
3340 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3341
3342         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3343         registers.
3344
3345 2011-04-17  Jan Hubicka  <jh@suse.cz>
3346
3347         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3348         * cgrpahunit.c (cgraph_finalize_function): Do not set
3349         finalized_by_frontend.
3350         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3351         finalized_by_frontend.
3352
3353 2011-04-17  Jan Hubicka  <jh@suse.cz>
3354
3355         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3356         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3357         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3358         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3359         method.
3360         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3361         gimple-fold.c
3362         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3363
3364 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3365
3366         PR lto/48538
3367         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3368         is non-null before accessing it.
3369         (input_cgraph): Remove trailing spaces.
3370
3371 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3372
3373         * params.def (sms-min-sc): New param flag.
3374         * modulo-sched.c (sms_schedule): Use it.
3375         * doc/invoke.texi (sms-min-sc): Document it.
3376
3377 2011-04-17  Jan Hubicka  <jh@suse.cz>
3378
3379         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3380         present, also set gimple_call_set_cannot_inline.
3381         * ipa-inline.c: Update toplevel comment.
3382         (MAX_TIME): Remove.
3383         (cgraph_clone_inlined_nodes): Fix linebreaks.
3384         (cgraph_check_inline_limits): Restructure to ...
3385         (caller_growth_limits): ... this one; be more tolerant
3386         on growth in nested inline chains; add explanatory comment;
3387         fix stack accounting thinko introduced by previous patch.
3388         (cgraph_default_inline_p): Remove.
3389         (report_inline_failed_reason): New function.
3390         (can_inline_edge_p): New function.
3391         (can_early_inline_edge_p): New function.
3392         (leaf_node_p): Move upwards in file.
3393         (want_early_inline_function_p): New function.
3394         (want_inline_small_function_p): New function.
3395         (want_inline_self_recursive_call_p): New function.
3396         (cgraph_edge_badness): Rename to ...
3397         (edge_badness) ... this one; fix linebreaks.
3398         (update_edge_key): Update call of edge_baddness; add
3399         detailed dump about queue updates.
3400         (update_caller_keys): Use can_inline_edge_p and
3401         want_inline_small_function_p.
3402         (cgraph_decide_recursive_inlining): Rename to...
3403         (recursive_inlining): Use can_inline_edge_p and
3404         want_inline_self_recursive_call_p; simplify and remove no longer
3405         valid FIXME.
3406         (cgraph_set_inline_failed): Remove.
3407         (add_new_edges_to_heap): Use can_inline_edge_p and
3408         want_inline_small_function_p.
3409         (cgraph_decide_inlining_of_small_functions): Rename to ...
3410         (inline_small_functions): ... this one; cleanup; use
3411         can/want predicates; cleanup debug ouput; work edges till fibheap
3412         is exhausted and do not stop once unit growth is reached; remove
3413         later loop processing remaining edges.
3414         (cgraph_flatten): Rename to ...
3415         (flatten_function): ... this one; use can_inline_edge_p
3416         and can_early_inline_edge_p predicates.
3417         (cgraph_decide_inlining): Rename to ...
3418         (ipa_inline): ... this one; remove unreachable nodes before
3419         inlining functions called once; simplify the pass.
3420         (cgraph_perform_always_inlining): Rename to ...
3421         (inline_always_inline_functions): ... this one; use
3422         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3423         (cgraph_decide_inlining_incrementally): Rename to ...
3424         (early_inline_small_functions): ... this one; simplify
3425         using new predicates; cleanup; make dumps prettier.
3426         (cgraph_early_inlining): Rename to ...
3427         (early_inliner): newer inline regular functions into always-inlines;
3428         fix updating of call stmt summaries.
3429         (pass_early_inline): Update for new names.
3430         (inline_transform): Fix formating.
3431         (gate_cgraph_decide_inlining): Rename to ...
3432         (pass_ipa_inline): ... this one.
3433         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3434         * ipa-inline-analysis.c (dump_inline_summary): Update.
3435         (compute_inline_parameters): Do not compute disregard_inline_limits;
3436         look for mismatching arguments.
3437         (estimate_growth): Fix handlig of non-trivial self recursion.
3438         (inline_read_summary): Do not read info->disregard_inline_limits.
3439         (inline_write_summary): Do not write info->disregard_inline_limits.
3440         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3441         and move all checks into can_inline_edge_p predicate; re-enable code
3442         comparing optimization levels.
3443         (expand_call_inline): Do not test inline_forbidden_into_p.
3444         * Makefile.in (ipa-inline.o): Update arguments.
3445
3446 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3447
3448         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3449
3450 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3451
3452         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3453
3454 2011-04-17  Michael Matz  <matz@suse.de>
3455
3456         PR tree-optimization/48622
3457         PR lto/48645
3458         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3459         in same order as they're written.
3460
3461 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3462
3463         * config/pa/predicates.md: Reorganize and simplify predicates.
3464         Eliminate duplicate code checks.
3465         (arith_operand): Rename to arith14_operand
3466         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3467         * config/pa/pa.md: Use renamed operands.
3468         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3469         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3470         arith11_operand, adddi3_operand, indexed_memory_operand,
3471         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3472         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3473         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3474         move_dest_operand, move_src_operand, prefetch_cc_operand,
3475         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3476         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3477         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3478         div_operand, int5_operand, movb_comparison_operator,
3479         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3480         arith_double_operand, ireg_operand, lhs_lshift_operand,
3481         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3482         integer_store_memory_operand): Likewise.
3483         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3484         (integer_store_memory_operand, read_only_operand,
3485         function_label_operand, borx_reg_operand,
3486         non_hard_reg_operand): Likewise.
3487         (eq_neq_comparison_operator): Delete unused operator.
3488         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3489         function_label_operand.
3490         (emit_move_sequence): Likewise.
3491
3492 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3493
3494         * config/i386/sse.md (sseunpackmode): New mode attribute.
3495         (ssepackmode): Ditto.
3496         (vec_pack_trunc_<mode>): Macroize expander from
3497         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3498         (vec_unpacks_lo_<mode>): Macroize expander from
3499         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3500         (vec_unpacks_hi_<mode>): Macroize expander from
3501         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3502         (vec_unpacku_lo_<mode>): Macroize expander from
3503         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3504         (vec_unpacku_hi_<mode>): Macroize expander from
3505         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3506         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3507         ix86_expand_sse4_unpack.
3508         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3509
3510 2011-04-16  Jan Hubicka  <jh@suse.cz>
3511
3512         * cgraphbuild.c: Include ipa-inline.h.
3513         (reset_inline_failed): Use initialize_inline_failed.
3514         * cgraph.c: Include ipa-inline.h.
3515         (cgraph_create_node_1): Do not initialize estimated_growth.
3516         (initialize_inline_failed): More to ipa-inline-analysis.c
3517         (dump_cgraph_node): Do not dump inline flags.
3518         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3519         and disregard_inline_limits flags.
3520         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3521         time, size, estimated_growth.
3522         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3523         Update.
3524         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3525         DECL_DISREGARD_INLINE_LIMITS.
3526         (cgraph_analyze_function): Do not initialize
3527         node->local.disregard_inline_limits.
3528         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3529         inlinable, versionable and disregard_inline_limits.
3530         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3531         cgraph_check_inline_limits, cgraph_default_inline_p,
3532         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3533         add_new_edges_to_heap): Update.
3534         (cgraph_decide_inlining_of_small_function): Update; set
3535         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3536         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3537         cgraph_decide_inlining_incrementally): Update.
3538         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3539         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3540         time, size and estimated_growth parameters.
3541         (estimate_edge_growth): Update.
3542         (initialize_inline_failed): Declare.
3543         * ipa-split.c: Include ipa-inline.h
3544         (execute_split_functions): Update.
3545         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3546         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3547         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3548         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3549         estimated_growth to INT_MIN.
3550         (inline_node_duplication_hook): Likewise.
3551         (dump_inline_summary): Dump new fields.
3552         (compute_inline_parameters): Update.
3553         (estimate_edge_time, estimate_time_after_inlining,
3554         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3555         inline_write_summary):
3556         (initialize_inline_failed): Move here from cgraph.c.
3557         * tree-sra.c: Include ipa-inline.h.
3558         (ipa_sra_preliminary_function_checks): Update.
3559         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3560         ipa-inline.h.
3561
3562 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3563
3564         * config/i386/sse.md (V16): New mode iterator.
3565         (VI1, VI8): Ditto.
3566         (AVXMODEQI, AVXMODEDI): Remove.
3567         (sse2, sse3): New mode attribute.
3568         (mov<mode>): Use V16 mode iterator.
3569         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3570         (push<mode>1): Use V16 mode iterator.
3571         (movmisalign<mode>): Ditto.
3572         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3573         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3574         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3575         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3576         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3577         avx_movdqu<avxmodesuffix>.
3578         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3579         *avx_movdqu<avxmodesuffix>.
3580         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3581         avx_lddqu<avxmodesuffix>.
3582         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3583         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3584         avx_movnt<AVXMODEDI:mode>.
3585         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3586         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3587
3588 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3589
3590         PR target/48629
3591         * haifa-sched.c (prune_ready_list, schedule_block): Use
3592         sched_pressure_p rather than flag_sched_pressure.
3593
3594 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3595
3596         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3597         cgraph_get_node instead of cgraph_get_create_node.
3598
3599 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3600
3601         * cfgexpand.c (expand_debug_expr): Use
3602         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3603
3604 2011-04-15  Michael Matz  <matz@suse.de>
3605
3606         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3607         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3608         * function.c (gimplify_parameters): Ditto.
3609         * gimplify.c (gimplify_vla_decl): Ditto.
3610
3611         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3612         (gimple_call_set_alloca_for_var): New inline function.
3613         (gimple_call_alloca_for_var_p): Ditto.
3614         * gimple.c (gimple_build_call_from_tree): Remember
3615         CALL_ALLOCA_FOR_VAR_P state.
3616         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3617
3618         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3619         calls if they were for VLA objects.
3620
3621 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3622
3623         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3624         of ADR_EXPRs.
3625
3626 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3627
3628         PR middle-end/48601
3629         * tree-emutls.c (lower_emutls_function_body): Call
3630         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3631         result is non-NULL.
3632
3633 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3634
3635         * c-decl.c (detect_field_duplicates): Call
3636         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3637
3638 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3639
3640         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3641         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3642         * ipa-pure-const.c (check_stmt): Call it.
3643         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3644
3645 2011-04-15  Richard Guenther  <rguenther@suse.de>
3646
3647         PR tree-optimization/48290
3648         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3649         Properly decide inhibiting propagation based on the valueized
3650         operand.  Do loop-closed SSA form preserving here ...
3651         (init_copy_prop): ... not here.
3652
3653 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3654
3655         PR target/48612
3656         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3657         (*ieee_smax<mode>3): Likewise.
3658
3659 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3660
3661         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3662         Replace match_operand with match_dup for the third operand in
3663         these expanders.
3664
3665 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3666
3667         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3668         to track processing of conditionals.  Update all callers.
3669         (try_combine, simplify_if_then_else): Update.
3670
3671 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3672
3673         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3674         -fsched-pressure.
3675
3676 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3677
3678         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3679         instead of match_operand for operand 3.
3680
3681 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3682
3683         * recog.h (insn_operand_data): Add an "allows_mem" field.
3684         * genoutput.c (output_operand_data): Initialize it.
3685         * optabs.c (maybe_legitimize_operand_same_code): New function.
3686         (maybe_legitimize_operand): Use it when matching the original
3687         op->value.
3688
3689 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3690
3691         * gimplify.c: Fix issues in comments throughout.
3692         (voidify_wrapper_expr): Fix long line.
3693         (build_stack_save_restore): Likewise.
3694         (gimplify_loop_expr): Likewise.
3695         (gimplify_compound_lval): Likewise.
3696         (gimplify_init_ctor_eval): Likewise.
3697         (gimplify_modify_expr_rhs): Likewise.
3698         (omp_notice_threadprivate_variable): Likewise.
3699
3700 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3701
3702         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3703         original one if this is not a builtin function.
3704
3705 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
3706
3707         PR target/48605
3708         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3709         offset it as needed based on top 2 bits in operands[3], change
3710         MEM mode to SFmode and mask those 2 bits away from operands[3].
3711
3712 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3713
3714         * c-parser.c (c_parser_objc_protocol_definition): Updated for
3715         change from objc_declare_protocols() to objc_declare_protocol().
3716
3717 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
3718
3719         * config/i386/sse.md (sse4_1): New mode attribute.
3720         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3721         avx_blend<ssemodesuffix><avxmodesuffix> and
3722         sse4_1_blend<ssemodesuffix> using VF mode iterator.
3723         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3724         avx_blendv<ssemodesuffix><avxmodesuffix> and
3725         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3726         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3727         avx_dp<ssemodesuffix><avxmodesuffix> and
3728         sse4_1_dp<ssemodesuffix> using VF mode iterator.
3729         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3730         (sse4_1_packusdw): Merge with *avx_packusdw.
3731         (sse4_1_pblendvb): Merge with *avx_pblendvb.
3732         (sse4_1_pblendw): Merge with *avx_pblendw.
3733         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3734         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3735         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3736         VF mode iterator.
3737         (sse4_1_round<ssescalarmodesuffix>): Merge with
3738         *avx_round<ssescalarmodesuffix>.
3739         (aesenc): Merge with *avx_aesenc.
3740         (aesenclast): Merge with *avx_aesenclast.
3741         (aesdec): Merge with *avx_aesdec.
3742         (aesdeclast): Merge with *avx_aesdeclast.
3743         (pclmulqdq): Merge with *pclmulqdq.
3744         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3745         New predicate.
3746         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3747
3748 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3749
3750         PR middle-end/48608
3751         * cfgexpand.c (get_decl_align_unit): Renamed to ...
3752         (align_local_variable): This.  Update DECL_ALIGN.
3753         (add_stack_var): Updated.
3754         (expand_one_stack_var): Likewise.
3755
3756 2011-04-14  Richard Guenther  <rguenther@suse.de>
3757
3758         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3759         Remove.
3760         (dse_initialize_block_local_data, dse_leave_block,
3761         record_voperand_set, get_stmt_uid): Likewise.
3762         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3763         (dse_optimize_stmt): Remove voperand set handling code.
3764         Simplify and improve to handle any kind of killing stmt.
3765         (dse_record_phi): Remove.
3766         (dse_enter_block): Simplify.
3767         (tree_ssa_dse): Likewise.
3768         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3769
3770 2011-04-14  Jan Hubicka  <jh@suse.cz>
3771
3772         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3773         * cgraph.h (struct inline_summary): Move to ipa-inline.h
3774         (cgraph_local_info): Remove inline_summary.
3775         * ipa-cp.c: Include ipa-inline.h.
3776         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3777         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3778         accesor.
3779         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3780         (input_overwrite_node): Do not set inline summary.
3781         (input_node): Do not stream inline summary.
3782         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3783         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3784         growth; we do not have inline parameters computed for that anyway.
3785         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3786         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3787         (inline_summary_t): New type and VECtor.
3788         (debug_inline_summary, dump_inline_summaries): Declare.
3789         (inline_summary): Use VOCtor.
3790         (estimate_edge_growth): Kill hack computing call stmt size directly.
3791         * lto-section-in.c (lto_section_name): Add inline section.
3792         * ipa-inline-analysis.c: Include lto-streamer.h
3793         (node_removal_hook_holder, node_duplication_hook_holder): New holders
3794         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3795         (inline_summary_vec): Define.
3796         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3797         dump_inline_summaries): New functions.
3798         (estimate_function_body_sizes): Properly compute size/time of outgoing
3799         calls.
3800         (compute_inline_parameters): Alloc inline_summary; do not compute
3801         size/time of incomming calls.
3802         (estimate_edge_time): Avoid missing time summary hack.
3803         (inline_read_summary): Read inline summary info.
3804         (inline_write_summary): Write inline summary info.
3805         (inline_free_summary): Free all hooks and inline summary vector.
3806         * lto-streamer.h: Add LTO_section_inline_summary section.
3807         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3808         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3809
3810 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3811
3812         * tree-vectorizer.h (vect_strided_store_supported): Add a
3813         HOST_WIDE_INT argument.
3814         (vect_strided_load_supported): Likewise.
3815         (vect_permute_store_chain): Return void.
3816         (vect_transform_strided_load): Likewise.
3817         (vect_permute_load_chain): Delete.
3818         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3819         count argument.  Check that the count is a power of two.
3820         (vect_strided_load_supported): Likewise.
3821         (vect_permute_store_chain): Return void.  Update after above changes.
3822         Assert that the access is supported.
3823         (vect_permute_load_chain): Likewise.
3824         (vect_transform_strided_load): Return void.
3825         * tree-vect-stmts.c (vectorizable_store): Update calls after
3826         above interface changes.
3827         (vectorizable_load): Likewise.
3828         (vect_analyze_stmt): Don't check for strided powers of two here.
3829
3830 2011-04-14  Richard Guenther  <rguenther@suse.de>
3831
3832         PR tree-optimization/48590
3833         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3834         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3835         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3836         BUILT_IN_STACK_SAVE.
3837         * tree-ssa-dce.c (propagate_necessity): Handle
3838         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3839
3840 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3841
3842         * c-parser.c (c_parser_objc_class_declaration): Updated call to
3843         objc_declare_class.
3844
3845 2011-04-14  Richard Guenther  <rguenther@suse.de>
3846
3847         * tree.h (get_object_alignment_1): Declare.
3848         * builtins.c (get_object_alignment_1): Split out worker from ...
3849         (get_object_alignment): ... here.
3850         * fold-const.c (get_pointer_modulus_and_residue): Use
3851         get_object_alignment_1.
3852
3853 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3854
3855         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3856         type parameter.
3857         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3858         parameter.  Generalise code to handle arrays as well as vectors.
3859         (vect_setup_realignment): Update accordingly.
3860         * tree-vect-stmts.c (vectorizable_store): Likewise.
3861         (vectorizable_load): Likewise.
3862
3863 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3864
3865         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3866         within the per-copy loop.
3867
3868 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3869
3870         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3871         in the dump file.
3872
3873 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3874
3875         * doc/options.texi (Negative): Explicitly mention that the
3876         Negative chain must be circular.
3877
3878 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
3879
3880         * function.h (block_chainon): Declare.
3881         * function.c (block_chainon): Define.
3882
3883 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
3884             Eric Weddington  <eric.weddington@atmel.com>
3885             Georg-Johann Lay <avr@gjlay.de>
3886
3887         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3888         New Includes
3889         (avr_init_builtins, avr_expand_builtin,
3890         avr_expand_delay_cycles, avr_expand_unop_builtin,
3891         avr_expand_binop_builtin ): New functions.
3892         (avr_builtin_id): New enum
3893         (struct avr_builtin_description): New struct
3894         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3895         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3896
3897         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3898         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3899         UNSPECV_DELAY_CYCLES): new enumeration values
3900         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3901         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3902         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3903         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3904         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3905         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3906         "fmulsu"): New insns
3907
3908         * config/avr/avr-c.c: fix line endings
3909         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3910         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3911         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3912         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3913         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3914
3915         * doc/extend.texi (AVR Built-in Functions): New node
3916         (Target Builtins): Add documentation of AVR
3917         built-in functions.
3918
3919 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
3920
3921         PR target/44643
3922         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3923         alone. Error if non-const data has attribute progmem.
3924
3925 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3926
3927         * tree.h (struct tree_constructor): Include tree_typed instead of
3928         tree_common.
3929         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3930         TS_TYPED instead of TS_COMMON.
3931
3932 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3933
3934         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3935         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3936         (sse2_psadbw): Merge with *avx_psadbw.
3937         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3938         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3939         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3940         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3941         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3942         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3943         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3944         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3945         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3946         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3947         (ssse3_palignrti): Merge with *avx_palignrti.
3948
3949 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3950
3951         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3952         * tree-ssanames.c (fini_ssanames): VEC_free it.
3953         (make_ssa_name_fn): Update for VECness of free_ssanames.
3954         (release_ssa_name, release_dead_ssa_names): Likewise.
3955         * tree.h (struct tree_ssa_name): Include tree_typed instead of
3956         tree_common.
3957         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3958         TS_TYPED instead of TS_COMMON.
3959
3960 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3961
3962         * postreload-gcse.c (gcse_after_reload_main): Add calls to
3963         statistics_counter_event.
3964         * tree-ssa-copyrename.c (stats): Define.
3965         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
3966         statistics_counter_event.
3967         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3968         (bswap_stats, widen_mul_stats): Define.
3969         (insert_reciprocals): Increment rdivs_inserted.
3970         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
3971         rfuncs_inserted.  Add calls to statistics_counter_event.
3972         (execute_cse_sincos_1): Increment inserted.
3973         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
3974         statistics_counter_event.
3975         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
3976         of bswap_stats.  Add calls to statistics_counter_event.
3977         (convert_mult_to_widen): Increment widen_mults_inserted.
3978         (convert_plusminus_to_widen): Increment maccs_inserted.
3979         (convert_mult_to_fma): Increment fmas_inserted.
3980         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
3981         calls to statistics_counter_event.
3982
3983 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3984
3985         PR rtl-optimization/48455
3986         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3987         `temp_costs->mem_cost'.
3988
3989 2011-04-13  Jan Hubicka  <jh@suse.cz>
3990
3991         * ipa-inline.h: New file.
3992         * ipa-inline-analysis.c: New file. Broken out of ...
3993         * ipa-inline.c: ... this file; update toplevel comment;
3994         include ipa-inline.h
3995         (inline_summary): Move to ipa-inline.h
3996         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3997         ipa-inline-analysis.c.
3998         (cgraph_estimate_time_after_inlining): Rename to
3999         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4000         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4001         to estimate_edge_growth.
4002         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4003         rename to estimate_size_after_inlining.
4004         (cgraph_mark_inline_edge): Update for new naming convention.
4005         (cgraph_check_inline_limits): Likewise.
4006         (cgraph_edge_badness): Likewise.
4007         (cgraph_decide_recursive_inlining): Likewise.
4008         (cgraph_decide_inlining_of_small_functions): Likewise.
4009         (cgraph_decide_inlining_incrementally): Likewise.
4010         (cgraph_estimate_growth): Rename to estimate_growth; move to
4011         ipa-inline-analysis.c.
4012         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4013         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4014         (compute_inline_parameters): Likewise.
4015         (compute_inline_parameters_for_current): Likewise.
4016         (pass_inline_parameters): Likewise.
4017         (inline_indirect_intraprocedural_analysis): Likewise.
4018         (analyze_function): Rename to inline_analyze_function; likewise.
4019         (add_new_function): Move to ipa-inline-analysis.c.
4020         (inline_generate_summary): Likewise.
4021         (inline_read_summary): Likewise.
4022         (inline_write_summary): Likewise.
4023         * Makefile.in (ipa-inline-analysis.c): New file.
4024
4025 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4026
4027         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4028         * configure: Regenerate.
4029
4030 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4031
4032         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4033         instead of tree_common.
4034         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4035         Likewise.
4036         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4037         TS_TYPED rather than TS_COMMON.
4038         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4039
4040 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4041
4042         PR target/45263
4043         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4044         r20 around calls of __tablejump_elpm__
4045
4046 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4047
4048         PR middle-end/48591
4049         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4050         NULL.
4051         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4052
4053 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4054
4055         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4056         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4057         (cfi_vec): New typedef.
4058         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4059         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4060         (cie_cfi_vec): New static variable.
4061         (cie_cfi_head): Delete.
4062         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4063         declaration changed. Use vector rather than list operations.
4064         (new_cfi): Don't initialize the dw_cfi_next field.
4065         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4066         rather than list operations.
4067         (lookup_cfa): Use vector rather than list operations.
4068         (output_cfis): New argument upto. Accept a cfi_vec rather than
4069         a dw_cfi_ref list head as argument. All callers changed.
4070         Iterate over the vector using upto as a maximum index.
4071         (output_all_cfis): New static function.
4072         (output_fde): Use vector rather than list operations. Use the
4073         new upto argument for output_cfis rather than manipulating a
4074         list.
4075         (dwarf2out_begin_prologue): Change initializations to match
4076         new struct members.
4077         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4078         from the vector length rather than searching for the end of a list.
4079         Use output_all_cfis.
4080         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4081
4082 2011-04-13  Nick Clifton  <nickc@redhat.com>
4083
4084         * config/rx/rx.md (movmemsi): Do not use this pattern when
4085         volatile pointers are involved.
4086
4087 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4088
4089         * config/i386/sse.md (pinsrbits): Remove.
4090         (sse2_packsswb): Merge with *avx_packsswb.
4091         (sse2_packssdw): Merge with *avx_packssdw.
4092         (sse2_packuswb): Merge with *avx_packuswb.
4093         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4094         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4095         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4096         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4097         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4098         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4099         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4100         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4101         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4102         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4103         (sse2_loadld): Merge with *avx_loadld.
4104         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4105         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4106         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4107         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4108         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4109
4110 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4111
4112         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4113         calling TREE_CHAIN.
4114         * print-tree.c (print_node): Likewise.
4115         * tree-inline.c (copy_tree_r): Likewise.
4116         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4117         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4118         instead of TS_COMMON.
4119         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4120         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4121         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4122         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4123         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4124         ...and these...
4125         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4126         * tree.h: ...here.
4127         (TREE_CHAIN): Check for a TS_COMMON structure.
4128         (TREE_TYPE): Check for a TS_TYPED structure.
4129
4130 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
4131
4132         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4133         cgraph_get_create_node instead of cgraph_node.
4134
4135 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4136
4137         * c-parser.c (c_parser_initelt): Updated call to
4138         objc_build_message_expr.
4139         (c_parser_postfix_expression): Likewise.
4140
4141 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4142
4143         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4144         MASK_MS_BITFIELD_LAYOUT bit.
4145
4146 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4147
4148         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4149         assert it is always true.
4150         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4151         moves.
4152
4153 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4154
4155         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4156         compiling Objective-C to be more efficient.
4157
4158 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4159
4160         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4161         argv_copied.
4162
4163 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4164
4165         * recog.h, genoutput.c, optabs.c: Revert last patch.
4166
4167 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4168
4169         PR target/48090
4170         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4171
4172 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4173
4174         * recog.h (insn_operand_data): Add an "allows_mem" field.
4175         * genoutput.c (output_operand_data): Initialize it.
4176         * optabs.c (maybe_legitimize_operand_same_code): New function.
4177         (maybe_legitimize_operand): Use it when matching the original
4178         op->value.
4179
4180 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4181
4182         * genpreds.c (process_define_predicate): Move most processing
4183         to gensupport.c.  Continue to validate the expression.
4184         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4185         (process_define_predicate): Move processing to gensupport.c.
4186         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4187         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4188         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4189         argument.
4190         (valid_predicate_name_p): New function, split out from old
4191         genpreds.c:process_define_predicate.
4192         (process_define_predicate): New function, combining code from
4193         old genpreds.c and genrecog.c functions.
4194         (process_rtx): Call it for DEFINE_PREDICATE and
4195         DEFINE_SPECIAL_PREDICATE.
4196
4197 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4198
4199         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4200         size of a '%A' memory reference.
4201         (T_DREG, T_QREG): New neon_builtin_type_bits.
4202         (arm_init_neon_builtins): Assert that the load and store operands
4203         are neon_struct_operands.
4204         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4205         (NEON_ARG_MEMORY): New builtin_arg.
4206         (neon_dereference_pointer): New function.
4207         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4208         Handle NEON_ARG_MEMORY.
4209         (arm_expand_neon_builtin): Update after above interface changes.
4210         Use NEON_ARG_MEMORY for loads and stores.
4211         * config/arm/predicates.md (neon_struct_operand): New predicate.
4212         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4213         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4214         (V_four_elem): Tweak formatting.
4215         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4216         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4217         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4218         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4219         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4220         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4221         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4222         Use %A in the output template.
4223         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4224         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4225         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4226         the width of the memory access.  Remove post-increment.
4227         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4228
4229 2011-04-12  Nick Clifton  <nickc@redhat.com>
4230
4231         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4232         instruction for interrupt handlers if the target is the basic V850
4233         architecture.
4234         (expand_epilogue): Likewise.
4235
4236 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4237
4238         PR rtl-optimization/48549
4239         * combine.c (propagate_for_debug): Also stop after BB_END of
4240         this_basic_block.  Process LAST and just stop processing after it.
4241         (combine_instructions): If last_combined_insn has been deleted,
4242         set last_combined_insn to its PREV_INSN.
4243
4244 2011-04-12  Richard Guenther  <rguenther@suse.de>
4245
4246         PR tree-optimization/46076
4247         * gimple.h (struct gimple_statement_call): Add fntype field.
4248         (gimple_call_fntype): Adjust.
4249         (gimple_call_set_fntype): New function.
4250         * gimple.c (gimple_build_call_1): Set the call function type.
4251         * gimplify.c (gimplify_call_expr): Preserve the function
4252         type the frontend used for the call.
4253         (gimplify_modify_expr): Likewise.
4254         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4255         function type.
4256         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4257         function type.
4258         * tree-ssa.c (useless_type_conversion_p): Function pointer
4259         conversions are useless.
4260
4261 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4262
4263         * cgraph.h (cgraph_node): Remove function declaration.
4264         (cgraph_create_node): Declare.
4265         (cgraph_get_create_node): Likewise.
4266         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4267         Updated all callers.
4268         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4269         the decl does not already exist.  Call cgraph_get_create_node instead
4270         of cgraph_node.
4271         (cgraph_get_create_node): New function.
4272         (cgraph_same_body_alias): Update comment.
4273         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4274         assert it does not return NULL.
4275         (cgraph_update_edges_for_call_stmt): Likewise.
4276         (cgraph_clone_edge): Likewise.
4277         (cgraph_create_virtual_clone): Likewise.
4278         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4279         instead of cgraph_node.
4280         (cgraph_add_new_function): Call cgraph_create_node or
4281         cgraph_get_create_node instead of cgraph_node.
4282         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4283         instead of cgraph_node.
4284         (record_eh_tables): Likewise.
4285         (mark_address): Likewise.
4286         (mark_load): Likewise.
4287         (build_cgraph_edges): Call cgraph_get_create_node instead
4288         of cgraph_node.
4289         (rebuild_cgraph_edges): Likewise.
4290         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4291         instead of cgraph_node.
4292         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4293         cgraph_node.
4294         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4295         cgraph_create_node instead of cgraph_node.
4296         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4297         of cgraph_node.
4298         * lto-cgraph.c (input_node): Likewise.
4299         * lto-streamer-in.c (input_function): Likewise.
4300         * varasm.c (mark_decl_referenced): Likewise.
4301         (assemble_alias): Likewise.
4302
4303 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4304
4305         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4306         instead of cgraph_node and assert it does not return NULL.
4307         * lto-streamer-in.c (lto_read_body): Likewise.
4308         * omp-low.c (new_omp_context): Likewise.
4309         (create_task_copyfn): Likewise.
4310         * tree-emutls.c (lower_emutls_function_body): Likewise.
4311         * matrix-reorg.c (transform_allocation_sites): Likewise.
4312
4313 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4314
4315         PR c/48552
4316         * c-typeck.c (build_asm_expr): Error out on attempts to use
4317         void type outputs or inputs for constraints that allow reg or
4318         don't allow memory.
4319
4320 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4321             Richard Earnshaw  <rearnsha@arm.com>
4322
4323         PR target/48250
4324         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4325         to use sign-magnitude offsets. Reject unsupported unaligned
4326         cases. Add detailed description in comments.
4327         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4328         condition from TARGET_32BIT to TARGET_ARM.
4329
4330 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4331
4332         * tree.h (struct typed_tree): New.
4333         (struct tree_common): Include it instead of tree_base.
4334         (TREE_TYPE): Update for new location of type field.
4335         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4336         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4337         (union tree_node): Add typed field.
4338         * treestruct.def (TS_TYPED): New.
4339         * lto-streamer.c (check_handled_ts_structures): Handle it.
4340         * tree.c (MARK_TS_TYPED): New macro.
4341         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4342
4343 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4344
4345         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4346         (force_nonfallthru): Do not alter the loop nest if no basic block
4347         was created.
4348
4349 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4350
4351         * config/i386/sse.md (VI): New mode iterator.
4352         (SSEMODEI): Remove.
4353         (AVX256MODEI): Ditto.
4354         (AVXMODEF4P): Ditto.
4355         (avxvecpsmode): Ditto.
4356         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4357         (sse2_andnot<mode>3): New expander.
4358         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4359         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4360         (<any_logic:code><mode>3): Use VI mode iterator.
4361         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4362         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4363         (*andnottf3): Handle AVX three-operand constraints.
4364         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4365
4366 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4367             Robert Millan  <rmh@gnu.org>
4368
4369         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4370         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4371         GNU_USER_DYNAMIC_LINKER64): Define.
4372         (REG_NAME): Don't undefine.
4373         (MD_UNWIND_SUPPORT): Undefine.
4374         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4375         (REG_NAME): Don't undefine.
4376         (MD_UNWIND_SUPPORT): Undefine.
4377         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4378
4379 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4380
4381         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4382         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4383
4384 2011-04-11  Xinliang David Li  <davidxl@google.com>
4385
4386         * value-profile.c (check_ic_target): New function.
4387         (gimple_ic_transform): Sanity check indirect call target.
4388         * gimple-low.c (gimple_check_call_args): Interface change.
4389         (gimple_check_call_matching_types): New function.
4390         * tree-inline.c (tree_can_inline_p): Call new function.
4391
4392 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4393
4394         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4395         tree-pretty-print.h & realmpfr.h.
4396
4397 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4398
4399         PR middle-end/48464
4400         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4401         (setup_allocno_and_important_classes): Ditto.
4402
4403 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4404
4405         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4406         GNU_USER_DYNAMIC_LINKER.
4407         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4408         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4409         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4410         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4411         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4412         GNU_USER_TARGET_OS_CPP_BUILTINS.
4413         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4414         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4415         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4416         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4417         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4418         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4419         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4420         GNU_USER_TARGET_OS_CPP_BUILTINS.
4421         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4422         GNU_USER_DYNAMIC_LINKER.
4423         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4424         GNU_USER_TARGET_OS_CPP_BUILTINS.
4425         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4426         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4427         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4428         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4429         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4430         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4431         GNU_USER_DYNAMIC_LINKER64): Remove.
4432         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4433         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4434         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4435         GNU_USER_DYNAMIC_LINKER.
4436         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4437         GNU_USER_TARGET_OS_CPP_BUILTINS.
4438         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4439         GNU_USER_TARGET_OS_CPP_BUILTINS.
4440         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4441         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4442         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4443         GNU_USER_TARGET_OS_CPP_BUILTINS.
4444         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4445         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4446         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4447         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4448         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4449         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4450         GNU_USER_DYNAMIC_LINKER.
4451         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4452         GNU_USER_TARGET_OS_CPP_BUILTINS.
4453         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4454         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4455         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4456         GNU_USER_DYNAMIC_LINKER.
4457         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4458         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4459         * config/mips/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/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4464         GNU_USER_DYNAMIC_LINKERN32.
4465         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4466         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4467         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4468         GNU_USER_DYNAMIC_LINKER32.
4469         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4470         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4471         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4472         GNU_USER_DYNAMIC_LINKER.
4473         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4474         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4475         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4476         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4477         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4478         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4479         GNU_USER_DYNAMIC_LINKER32.
4480         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4481         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4482         GNU_USER_DYNAMIC_LINKER.
4483         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4484         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4485         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4486         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4487         GNU_USER_DYNAMIC_LINKER64.
4488         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4489         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4490         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4491         GNU_USER_DYNAMIC_LINKER.
4492         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4493         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4494         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4495         GNU_USER_DYNAMIC_LINKER.
4496         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4497         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4498         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4499         GNU_USER_DYNAMIC_LINKER32.
4500         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4501         GNU_USER_DYNAMIC_LINKER64.
4502         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4503         GNU_USER_DYNAMIC_LINKER64.
4504         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4505         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4506         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4507         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4508         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4509
4510 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4511
4512         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4513         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4514         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4515         GNU_USER_DYNAMIC_LINKER.
4516         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4517         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4518         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4519         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4520         GNU_USER_DYNAMIC_LINKER64.
4521         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4522         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4523         GNU_USER_LINK_EMULATION.
4524         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4525         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4526         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4527         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4528         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4529         CPP_SPEC, CC1_SPEC): Remove.
4530         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4531         (GNU_USER_DYNAMIC_LINKER): Define.
4532         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4533         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4534         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4535         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4536         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4537         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4538         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4539         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4540         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4541         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4542         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4543         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4544         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4545         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4546         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4547         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4548         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4549         GNU_USER_DYNAMIC_LINKER.
4550         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4551         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4552         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4553         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4554         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4555         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4556         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4557         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4558         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4559         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4560
4561 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4562
4563         PR target/9601
4564         PR target/11772
4565         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4566         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4567         comment.
4568         (ix86_is_msabi_thiscall): Removed.
4569         (ix86_is_type_thiscall): Likewise.
4570         (ix86_get_callcvt): New function.
4571         (ix86_comp_type_attributes): Simplify check.
4572         (ix86_function_regparm): Use ix86_get_callcvt for calling
4573         convention attribute checks.
4574         (ix86_return_pops_args): Likewise.
4575         (ix86_static_chain): Likewise.
4576         (x86_this_parameter): Likewise.
4577         (x86_output_mi_thunk): Likewise.
4578         (ix86_function_type_abi): Optimize check for types without attributes.
4579         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4580         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4581         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4582         by flag-values.
4583         (IX86_BASE_CALLCVT): Helper macro.
4584         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4585         Use ix86_get_callcvt for calling convention attribute checks and avoid
4586         symbol-decoration for stdcall in TARGET_RTD case.
4587         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4588         Likewise.
4589         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4590         for declaration.
4591
4592 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4593
4594         * config/i386/sse.md (VI_128): New mode iterator.
4595         (VI12_128): Rename from SSEMODE12.
4596         (VI14_128): Rename from SSEMODE14.
4597         (VI124_128): New mode iterator.
4598         (VI24_128): Rename from SSEMODE248.
4599         (VI248_128): Rename from SSEMODE248.
4600         (SSEMODE124C8): Remove.
4601         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4602         (*sse2_<plusminus_insn><mode>3): Merge with
4603         *avx_<plusminus_insn><mode>3.
4604         (*mulv8hi3): Merge with *avx_mulv8hi3.
4605         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4606         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4607         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4608         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4609         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4610         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4611         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4612         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4613         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4614         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4615         (*<smaxmin:code>v8hi3): Ditto.
4616         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4617         (*<smaxmin:code>v16qi3): Ditto.
4618         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4619         (*sse2_eq<mode>3): Ditto.
4620         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4621         (*sse2_gt<mode>3): Ditto.
4622         (vcondv2di): Split out of vcond<mode>.
4623         (vconduv2di): Split out of vcondu<mode>.
4624
4625 2011-04-11  Richard Guenther  <rguenther@suse.de>
4626
4627         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4628         before calling tree_low_cst.
4629
4630 2011-04-11  Richard Guenther  <rguenther@suse.de>
4631
4632         * stor-layout.c (layout_type): Compute all array index size operations
4633         in the original type.
4634         (initialize_sizetypes): Add comment.
4635         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4636
4637 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4638
4639         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4640
4641 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4642
4643         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4644         of cgraph_node, handle NULL return value.
4645         (cgraph_global_info): Likewise.
4646         (cgraph_rtl_info): Likewise.
4647         * tree-inline.c (estimate_num_insns): Likewise.
4648         * gimplify.c (unshare_body): Likewise.
4649         (unvisit_body): Likewise.
4650         (gimplify_body): Likewise.
4651         * predict.c (optimize_function_for_size_p): Likewise.
4652         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4653         (call_may_clobber_ref_p_1): Likewise.
4654         * varasm.c (function_section_1): Likewise.
4655         (assemble_start_function): Likewise.
4656
4657 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4658
4659         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4660         of cgraph_node.
4661         * final.c (rest_of_clean_state): Likewise.
4662         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4663         * passes.c (pass_init_dump_file): Likewise.
4664         (execute_all_ipa_transforms): Likewise.
4665         (function_called_by_processed_nodes_p): Likewise.
4666         * predict.c (maybe_hot_frequency_p): Likewise.
4667         (probably_never_executed_bb_p): Likewise.
4668         (compute_function_frequency): Likewise.
4669         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4670         (unnest_nesting_tree_1): Likewise.
4671         (lower_nested_functions): Likewise.
4672         * tree-optimize.c (execute_fixup_cfg): Likewise.
4673         (tree_rest_of_compilation): Likewise.
4674         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4675         * tree-sra.c (ipa_early_sra): Likewise.
4676         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4677         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4678         * ipa.c (record_cdtor_fn): Likewise.
4679         * ipa-inline.c (cgraph_early_inlining): Likewise.
4680         (compute_inline_parameters_for_current): Likewise.
4681         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4682         * ipa-pure-const.c (local_pure_const): Likewise.
4683         * ipa-split.c (split_function): Likewise.
4684         (execute_split_functions): Likewise.
4685         * cgraphbuild.c (build_cgraph_edges): Likewise.
4686         (rebuild_cgraph_edges): Likewise.
4687         (cgraph_rebuild_references): Likewise.
4688         (remove_cgraph_callee_edges): Likewise.
4689         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4690         (verify_cgraph_node): Likewise.
4691         (cgraph_analyze_functions): Likewise.
4692         (cgraph_preserve_function_body_p): Likewise.
4693         (save_inline_function_body): Likewise.
4694         (save_inline_function_body): Likewise.
4695         * tree-inline.c (copy_bb): Likewise.
4696         (optimize_inline_calls): Likewise.
4697
4698 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4699
4700         PR tree-optimization/48195
4701         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4702         ipa_check_create_edge_args.
4703         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4704         ipa_check_create_edge_args.
4705         * ipa-inline.c (inline_generate_summary): Do not call
4706         ipa_check_create_node_params and ipa_check_create_edge_args.
4707         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4708         ipa_check_create_edge_args.
4709
4710 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
4711
4712         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4713         instead of loop.
4714         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4715         * function.c (record_hard_reg_sets): Likewise.
4716         * ira.c (compute_regs_asm_clobbered): Likewise.
4717         * sched-deps.c (sched_analyze_1): Likewise.
4718         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4719
4720 2011-04-09  Xinliang David Li  <davidxl@google.com>
4721
4722         PR tree-optimization/PR48484
4723         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4724         has_valid_pred lazily
4725
4726 2011-04-09  Duncan Sands  <baldrick@free.fr>
4727
4728         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4729
4730 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4731
4732         * combine.c (combine_validate_cost): Adjust comments.  Set registered
4733         cost of I0 to zero at the end, if any.
4734
4735 2011-04-08  Xinliang David Li  <davidxl@google.com>
4736
4737         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4738         to insane profile data.
4739
4740 2011-04-08  Xinliang David Li  <davidxl@google.com>
4741
4742         * ipa-cp.c (ipcp_update_profiling): Correct
4743          negative scale factor due to insane profile data.
4744
4745 2011-04-08  Xinliang David Li  <davidxl@google.com>
4746
4747         * final.c (dump_basic_block_info): New function.
4748         (final): Dump basic block.
4749         (final_scan_insn): Remove old dump.
4750
4751 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4752
4753         PR target/47829
4754         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4755         crtbegin/crtend.
4756
4757 2011-04-08  Michael Matz  <matz@suse.de>
4758
4759         PR middle-end/48389
4760         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4761         functions.
4762         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4763         * rtl.h (rebuild_jump_labels_chain): Declare.
4764         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4765         insns inserted on edges.
4766
4767 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
4768
4769         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4770         * config/arm/arm-arches.def: New.
4771         * config/arm/arm-opts.h: New.
4772         * config/arm/genopt.sh: New.
4773         * config/arm/arm-tables.opt: New (generated).
4774         * config/arm/arm.c (arm_handle_option, arm_target_help,
4775         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4776         (all_architectures): Get most table contents from arm-arches.def.
4777         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4778         arm_selected_tune here.
4779         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4780         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4781         (march=, mcpu=, mtune=): Use Enum and Var.
4782         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4783         (arm.o): Update dependencies.
4784
4785 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
4786
4787         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4788         of header_file.
4789         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4790         (write_typed_alloc_defns): Likewise.
4791         (main): Calls write_typed_alloc_defns with output_header.
4792
4793 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4794
4795         PR inline-asm/48435
4796         * ira-color.c (setup_profitable_hard_regs): Add comments.
4797         Don't take prohibited hard regs into account.
4798         (setup_conflict_profitable_regs): Rename to
4799         get_conflict_profitable_regs.
4800         (check_hard_reg_p): Check prohibited hard regs.
4801
4802 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4803
4804         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4805         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4806         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4807
4808 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4809
4810         PR target/48366
4811         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4812         move from floating point to shift amount register.
4813         (emit_move_sequence): Remove secondary reload support for floating
4814         point to shift amount amount register copies.
4815         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4816         amount register copies.
4817         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4818         register, return false if mode isn't a scalar integer mode.
4819         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4820
4821 2011-04-08  Richard Guenther  <rguenther@suse.de>
4822
4823         * gimple.c (gimple_call_flags): Remove kludge.
4824
4825 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4826
4827         * sel-sched.c (sel_region_init): Move call to
4828         sel_setup_region_sched_flags after setup_current_loop_nest.
4829
4830 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
4831
4832         PR rtl-optimization/48272
4833         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4834         init_insn_reg_pressure_info.  Adjust a caller.
4835         * sched-int.h (init_insn_reg_pressure_info): Declare.
4836         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4837         when sched-pressure is enabled.
4838
4839 2011-04-08  Richard Guenther  <rguenther@suse.de>
4840
4841         * gimple.c (gimple_set_modified): Do not queue calls to
4842         MODIFIED_NORETURN_CALLS here ...
4843         * tree-ssa-operands.c (update_stmt_operands): ... but here.
4844
4845 2011-04-08  Richard Guenther  <rguenther@suse.de>
4846
4847         PR lto/48467
4848         * toplev.c (lang_dependent_init): Do not open asm_out_file
4849         in WPA mode, nor perform debug machinery initialization.
4850         (finalize): Do not unlink asm_out_file in WPA mode.
4851
4852 2011-04-08  Richard Guenther  <rguenther@suse.de>
4853
4854         * gimple.h (gimple_call_fntype): New function.
4855         (gimple_call_return_type): Use it.
4856         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4857         * gimple-low.c (gimple_check_call_args): Likewise.
4858         * gimple.c (gimple_call_flags): Likewise.
4859         (gimple_call_arg_flags): Likewise.
4860         (gimple_call_return_flags): Likewise.
4861         * tree-cfg.c (verify_gimple_call): Likewise.
4862         (do_warn_unused_result): Likewise.
4863         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4864         * value-prof.c (gimple_ic_transform): Fix fndecl check.
4865
4866 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
4867
4868         PR rtl-optimization/48235
4869         * sel-sched.c (code_motion_process_successors): Recompute the last
4870         insn in basic block if control flow changed.
4871         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
4872         Update condition for ilist_remove.
4873
4874 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4875
4876         PR rtl-optimization/48302
4877         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4878         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
4879         it to record added preheader blocks.
4880         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
4881         on to sel_add_loop_preheaders.
4882         (sel_region_init): Move call to setup_current_loop_nest after
4883         sel_init_bbs.
4884
4885 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4886
4887         PR target/48273
4888         * cfgloop.h (loop_has_exit_edges): New helper.
4889         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4890         non-clonable.
4891         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4892         that have no exit edges.
4893
4894 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4895
4896         PR rtl-optimization/48442
4897         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
4898         all callers.  Adjust assert.
4899
4900 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
4901
4902         PR tree-optimization/48377
4903         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4904         is_packed to true even for types with smaller TYPE_ALIGN than
4905         TYPE_SIZE.
4906
4907 2011-04-08  Richard Guenther  <rguenther@suse.de>
4908
4909         PR bootstrap/48513
4910         * doc/tm.texi: Re-generate.
4911
4912 2011-04-08  Wei Guozhi  <carrot@google.com>
4913
4914         PR target/47855
4915         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4916         * config/arm/arm.c (arm_attr_length_push_multi): New function.
4917         * config/arm/arm.md (*push_multi): Change the length computation to
4918         call a C function.
4919
4920 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
4921
4922         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4923         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4924         * doc/tm.texi: Regenerate.
4925         * system.h (ASM_OUTPUT_BSS): Poison.
4926         * varasm.c (asm_output_bss): Remove function.
4927         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4928
4929         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4930         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4931         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4932         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4933         Likewise.
4934         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4935         Likewise.
4936         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4937         Likewise.
4938         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4939
4940 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4941
4942         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4943         EnumValue lines.
4944
4945 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4946
4947         * config/m68k/m68k.c (m68k_handle_option): Don't handle
4948         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4949         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4950         OPT_mcpu32.
4951         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4952         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4953         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4954         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4955         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4956         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4957         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4958         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4959         options.  Don't map other m68k options manually.  Don't handle
4960         old-style options as canonical.
4961         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4962         * doc/install.texi (m68k-*-*): Document binutils version requirement.
4963
4964 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4965
4966         * basic-block.h (force_nonfallthru): Move to...
4967         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4968         (force_nonfallthru): ...here.
4969         * cfghooks.c (force_nonfallthru): New function.
4970         * cfgrtl.c (force_nonfallthru): Rename into...
4971         (rtl_force_nonfallthru): ...this.
4972         (commit_one_edge_insertion): Do not set AUX field.
4973         (commit_edge_insertions): Do not discover new basic blocks.
4974         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4975         (cfg_layout_rtl_cfg_hooks): Likewise.
4976         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4977         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
4978         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4979
4980 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
4981
4982         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4983         Remove macros.
4984
4985 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
4986
4987         * config/i386/sse.md: Update copyright year.
4988         (avxcvtvecmode): Remove.
4989         (sse_movhlps): Merge with *avx_movhlps.
4990         (sse_movlhps): Merge with *avx_movlhps.
4991         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4992         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4993         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4994         (sse_loadhps): Merge with *avx_loadhps.
4995         (sse_storelps): Merge with *avx_storelps.
4996         (sse_loadlps): Merge with *avx_loadlps.
4997         (sse_movss): Merge with *avx_movss.
4998         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4999         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5000         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5001         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5002         (vec_set<mode>_0): Ditto.
5003         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5004         (sse4_1_insertps): Merge with *avx_insertps.
5005         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5006         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5007         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5008         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5009         (sse2_storehpd): Merge with *avx_storehpd.
5010         (sse2_loadhpd): Merge with *avx_loadhpd.
5011         (sse2_loadlpd): Merge with *avx_loadlpd.
5012         (sse2_movsd): Merge with *avx_movsd.
5013         (*vec_concatv2df): Merge with *vec_concatv2df.
5014
5015 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5016
5017         PR debug/48343
5018         * combine.c (combine_instructions): Add last_combined_insn,
5019         update it if insn is after it, pass it to all try_combine calls.
5020         (try_combine): Add last_combined_insn parameter, pass it instead of
5021         i3 to propagate_for_debug.
5022
5023 2011-04-07  Nick Clifton  <nickc@redhat.com>
5024
5025         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5026         to handle MDR <-> data register transfers.
5027         (movhi_internal): Likewise.
5028
5029 2011-04-07  Alan Modra  <amodra@gmail.com>
5030
5031         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5032         previous stack info.
5033
5034 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5035
5036         PR target/43920
5037         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5038         flow_find_cross_jump.  Swap variables to implement backward replacement.
5039         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5040
5041 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5042
5043         PR target/43920
5044         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5045         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5046         and bb2.
5047         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5048         src1 or src2.  Redirect edges to the last basic block.  Update
5049         frequency and count on multiple basic blocks in case of fallthru.
5050
5051 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5052
5053         PR target/43920
5054         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5055         function.
5056         (old_insns_match_p): Change return type.  Replace return false/true
5057         with return dir_none/dir_both.  Use can_replace_by.
5058         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5059         direction from dir_p.  Register replacement direction in dir, last_dir
5060         and afterlast_dir.  Handle new return type of old_insns_match_p using
5061         merge_dir.  Return replacement direction in dir_p.
5062         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5063         return type of old_insns_match_p.
5064         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5065         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5066         flow_find_cross_jump.
5067         * basic-block.h (enum replace_direction): New type.
5068         (flow_find_cross_jump): Add parameter to declaration.
5069
5070 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5071
5072         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5073         (AVXMODEDCVTPS2DQ): Ditto.
5074         (VEC_FLOAT_MODE): Ditto.
5075         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5076         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5077         (<any_logic:code><mode>3): Use VF mode iterator.
5078         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5079         Use VF mode iterator.
5080         (copysign<mode>3): Use VF mode iterator.
5081         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5082         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5083         (*<any_logic:code><MODEF:mode>3): Merge with
5084         *avx_<any_logic:code><MODEF:mode>3.
5085         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5086         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5087         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5088         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5089         (sse2_cvtdq2ps): Use %v modifier.
5090         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5091         (avx_cvtps2dq<avxmodesuffix>): Remove.
5092         (sse2_cvtps2dq): Use %v modifier.
5093         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5094         (avx_cvttps2dq<avxmodesuffix>): Remove.
5095         (sse2_cvttps2dq): Use %v modifier.
5096         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5097         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5098         (sse2_cvtsd2siq): Fix insn template.
5099         (sse2_cvtsd2siq_2): Ditto.
5100         (sse2_cvttsd2siq): Ditto.
5101         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5102         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5103
5104 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5105
5106         * gcov-io.c: Use GCC Runtime Library Exception.
5107
5108 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5109
5110         PR debug/48466
5111         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5112         as base_reg whatever register reg has been eliminated to, instead
5113         of hardcoding STACK_POINTER_REGNUM.
5114
5115 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5116
5117         * doc/tm.texi.in: Document C target hooks as separate from general
5118         target hooks.
5119         * doc/tm.texi: Regenerate.
5120         * genhooks.c (struct hook_desc): Add docname field.
5121         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5122         docname field.
5123         (hook_array): Include c-target.def.
5124         (emit_documentation): Use docname field in output.
5125         (emit_init_macros): Take docname argument.  Only emit definitions
5126         for hooks matching docname.
5127         (main): Expect additional arguments in all cases.  Pass argument
5128         to emit_init_macros.
5129         * target.def: Move initial macro definitions and comments to
5130         target-hooks-macros.h.
5131         (gcc_targetcm): Move to c-family/c-target.def.
5132         * target.h (targetcm): Move declaration to c-family/c-target.h.
5133         * targhooks.c (default_handle_c_option): Move to
5134         c-family/c-opts.c.
5135         * targhooks.h (default_handle_c_option): Move declaration to
5136         c-family/c-common.h.
5137         * target-hooks-macros.h: New file.
5138         * config.gcc (target_has_targetcm): Define and use to add to
5139         c_target_objs and cxx_target_objs.
5140         * config/default-c.c: New file.
5141         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5142         of target.h and target-def.h.
5143         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5144         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5145         darwin_check_cfstring_format_arg): Make static.
5146         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5147         TARGET_STRING_OBJECT_REF_TYPE_P,
5148         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5149         * config/darwin-protos.h (darwin_objc_construct_string,
5150         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5151         declare.
5152         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5153         TARGET_STRING_OBJECT_REF_TYPE_P,
5154         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5155         * config/t-darwin (darwin-c.o): Update dependencies.
5156         * system.h (TARGET_HAS_TARGETCM): Poison.
5157         * Makefile.in (TARGET_H): Update.
5158         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5159         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5160         (default-c.o): New target.
5161         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5162         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5163         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5164         c-target.def.
5165         (build/genhooks.o): Update dependencies.
5166
5167 2011-04-06  Richard Guenther  <rguenther@suse.de>
5168
5169         * ipa-inline.c (enum inlining_mode): Remove.
5170         (cgraph_flatten): Use some other token.
5171         (cgraph_edge_early_inlinable_p): New function, split out from ...
5172         (cgraph_perform_always_inlining): New function, split out from ...
5173         (cgraph_decide_inlining_incrementally): ... here.
5174         (cgraph_mark_inline_edge): Adjust.
5175         (cgraph_early_inlining): Re-structure.
5176         (pass_early_inline): Require SSA form.
5177
5178 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5179             Julian Brown  <julian@codesourcery.com>
5180             Mark Shinwell  <shinwell@codesourcery.com>
5181
5182         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5183         LO_REGS only for Thumb-1.
5184         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5185         be used in short instructions when optimising for size on Thumb-2.
5186
5187 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5188
5189         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5190         associated with user returns to be preserved.
5191
5192 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5193
5194         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5195         symbol_queue_size, DBXOUT_DECR_NESTING,
5196         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5197         if XCOFF_DEBUGGING_INFO.
5198
5199 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5200
5201         * config/i386/i386.md (attribute isa): New.
5202         (attribute enabled): New.
5203         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5204         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5205         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5206         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5207         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5208         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5209         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5210         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5211
5212         * config/i386/sse.md (VF): New mode iterator.
5213         (VF1): Ditto.
5214         (VF2): Ditto.
5215         (VF_128): Ditto.
5216         (SSEMODEF4): Remove.
5217         (attribute sse): Handle V8SF and V4DF modes.
5218         (<absneg:code><mode>2): Use VF mode iterator.
5219         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5220         mode iterator.
5221         (<plusminus_insn><mode>3): Use VF mode iterator.
5222         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5223         Use VF mode iterator.
5224         (<sse>_vm<plusminus_insn><mode>3): Merge with
5225         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5226         (mul<mode>3): Use VF mode iterator.
5227         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5228         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5229         mode iterator.
5230         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5231         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5232         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5233         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5234         mode iterator.
5235         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5236         Use VF1 mode iterator.
5237         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5238         (sqrt<VF2:mode>2): New expander.
5239         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5240         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5241         and sqrtv2df2.  Use VF mode iterator.
5242         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5243         mode iterator.
5244         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5245         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5246         Use VF1 mode iterator.
5247         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5248         (<smaxmin:code><mode>3): Use VF mode iterator.
5249         (*<smaxmin:code><mode>3_finite): Merge with
5250         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5251         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5252         (<sse>_vm<smaxmin:code><mode>2): Merge with
5253         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5254         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5255         mode iterator.
5256         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5257         mode iterator.
5258         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5259         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5260         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5261         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5262         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5263         VF mode iterator.
5264         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5265         Use VF_128 mode iterator.
5266         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5267         mode iterator.
5268         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5269         VF_128 mode iterator.
5270         (vcond<mode>): Use VF mode iterator.
5271         * config/i386/predicates.md (sse_comparison_operator): Merge with
5272         avx_comparison_float_operator.  Do not declare as special_predicate.
5273         * config/i386/i386.c (struct builtin_description): Update for renamed
5274         compare patterns.
5275         (ix86_expand_args_builtin): Ditto.
5276         (ix86_expand_sse_compare_mask): Ditto.
5277
5278 2011-04-06  Richard Guenther  <rguenther@suse.de>
5279
5280         * tree-inline.c (estimate_num_insns): For calls simply account
5281         for all passed arguments and a used return value.
5282
5283 2011-04-06  Richard Guenther  <rguenther@suse.de>
5284
5285         PR tree-optimization/47663
5286         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5287         call_stmt_time fields.
5288         (cgraph_edge_inlinable_p): Declare.
5289         (cgraph_edge_recursive_p): New inline function.
5290         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5291         (cgraph_clone_edge): Copy it.
5292         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5293         Account for call stmt time.
5294         (cgraph_estimate_time_after_inlining): Take edge argument.
5295         (cgraph_estimate_edge_growth): Account call stmt size.
5296         (cgraph_estimate_size_after_inlining): Take edge argument.
5297         (cgraph_mark_inline_edge): Adjust.
5298         (cgraph_check_inline_limits): Likewise.
5299         (cgraph_recursive_inlining_p): Remove.
5300         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5301         (cgraph_decide_recursive_inlining): Take edge argument and
5302         adjust.
5303         (cgraph_decide_inlining_of_small_functions): Do not avoid
5304         diags for recursive inlining here.
5305         (cgraph_flatten): Adjust.
5306         (cgraph_decide_inlining_incrementally): Likewise.
5307         (estimate_function_body_sizes): Remove call cost handling.
5308         (compute_inline_parameters): Initialize caller edge call costs.
5309         (cgraph_estimate_edge_growth): New function.
5310         (cgraph_estimate_growth): Use it.
5311         (cgraph_edge_badness): Likewise.
5312         (cgraph_check_inline_limits): Take an edge argument.
5313         (cgraph_decide_inlining_of_small_functions): Adjust.
5314         (cgraph_decide_inlining): Likewise.
5315         * tree-inline.c (estimate_num_insns): Only account for call
5316         return value if it is used.
5317         (expand_call_inline): Avoid diagnostics on recursive inline
5318         functions here.
5319         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5320         (input_edge): Input edge call costs.
5321
5322 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5323
5324         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5325
5326 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5327
5328         * doc/invoke.texi (Spec Files): Fix typo.
5329
5330 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5331
5332         * profile.c (branch_prob): Move declaration of local variable.  Remove
5333         obsolete ??? comment.  Expand the location explicitly instead of using
5334         the LOCATION_FILE and LOCATION_LINE macros.
5335
5336 2011-04-06  Wei Guozhi  <carrot@google.com>
5337
5338         PR target/47855
5339         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5340         (arm_cond_branch): Likewise.
5341         (arm_cond_branch_reversed): Likewise.
5342         (arm_jump): Likewise.
5343         (push_multi): Likewise.
5344         * config/arm/constraints.md (Py): New constraint.
5345
5346 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5347
5348         PR bootstrap/48471
5349         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5350         Move these...
5351         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5352         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5353         #ifdef DBX_DEBUGGING_INFO.
5354
5355 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5356
5357         PR bootstrap/48403
5358         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5359         if old and new states differ.
5360
5361 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5362
5363         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5364         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5365         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5366         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5367         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5368         mcfv4e): Use Alias.
5369         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5370         ColdFire options to -mcpu= options.
5371
5372 2011-04-05  Jeff Law  <law@redhat.com>
5373
5374         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5375         check if BB is a successor of LOOP->header and return
5376         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5377
5378 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5379
5380         * cprop.c (struct reg_use): Remove.
5381         (reg_use_table): Make an array of RTX.
5382         (find_used_regs, constprop_register, local_cprop_pass,
5383         bypass_block): Simplify users of reg_use_table.
5384         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5385         on one of the uses found by find_used_regs.
5386
5387 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5388
5389         PR bootstrap/48469
5390         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5391         declaration.
5392
5393 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5394
5395         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5396         as an rtx.
5397         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5398
5399 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5400
5401         PR middle-end/48441
5402         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5403
5404 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5405
5406         * combine.c: Include obstack.h.
5407         (struct insn_link): Define.
5408         (uid_log_links): Adjust type.
5409         (FOR_EACH_LOG_LINK): New macro.
5410         (insn_link_obstack): Declare.
5411         (alloc_insn_link): Define.
5412         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5413         type of link variables.
5414         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5415         (try_combine, record_promoted_values, distribute_notes): Likewise.
5416         (distribute_links): Likewise.  Tweak prototype.
5417         (clear_log_links): Delete.
5418         (adjust_for_new_dest): Call alloc_insn_link.
5419         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5420
5421 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5422
5423         * gcse.c (modify_mem_list): Convert to an array of VECs.
5424         (canon_modify_mem_list, compute_transp): Tweak formatting.
5425         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5426         (load_killed_in_block_p): Likewise.
5427         (record_last_mem_set_info): Likewise.
5428         (clear_modify_mem_tables): Likewise.
5429
5430 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5431
5432         PR middle-end/48461
5433         * function.c (emit_use_return_register_into_block): Only define if
5434         HAVE_return.
5435
5436 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5437
5438         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5439
5440 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5441
5442         * config/rx/rx-opts.h: New.
5443         * config/rx/rx.c (rx_cpu_type): Remove.
5444         (rx_handle_option): Don't assert that global structures are in
5445         use.  Access variables via opts pointer.  Defer most handling of
5446         OPT_mint_register_.  Use error_at.
5447         (rx_option_override): Handle deferred OPT_mint_register_ here.
5448         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5449         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5450         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5451         (rx_cpu_types): New Enum and EnumValue entries.
5452         (mint-register=): Use Defer and use Var accordingly.
5453
5454 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5455
5456         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5457         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5458         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5459         Move these...
5460         (debug_free_queue, debug_nesting, symbol_queue_index):
5461         ...and these...
5462         * dbxout.c: ...to here.  Make static.
5463
5464 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5465
5466         * gcse.c (modify_pair): Define.  Define a VEC of it.
5467         (canon_modify_mem_list): Convert to an array of VECs.
5468         (free_insn_expr_list_list): Delete.
5469         (clear_modify_mem_tables): Call VEC_free instead.
5470         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5471         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5472         (canon_list_insert, compute_transp): Likewise.
5473
5474 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5475
5476         PR target/43920
5477         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5478         for size.
5479
5480 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5481
5482         PR target/43920
5483         * function.c (emit_use_return_register_into_block): New function.
5484         (thread_prologue_and_epilogue_insns): Use
5485         emit_use_return_register_into_block.
5486
5487 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5488
5489         PR target/43920
5490         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5491         insn.
5492
5493 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5494
5495         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5496
5497 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5498
5499         * config/arm/arm.md (define_constants for unspec): Replace with
5500         define_c_enum.
5501         (define_constants for unspecv): Replace with define_c_enum.
5502         * config/arm/neon.md (define_constants for unspec): Replace with
5503         define_c_enum.
5504
5505 2011-04-04  Richard Henderson  <rth@redhat.com>
5506
5507         PR bootstrap/48400
5508         * dwarf2out.c (output_line_info): Always emit line info from
5509         at least one section.
5510         (dwarf2out_init): Create text_section_line_info here ...
5511         (set_cur_line_info_table): ... not here.
5512
5513 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5514
5515         PR target/48380
5516         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5517         not called.
5518
5519         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5520
5521 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5522
5523         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5524         (expr_equiv_p): Remove.
5525         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5526         (hash_scan_set): Update call to insert_set_in_table.
5527         (dump_hash_table): Dump <dest, src> pair.
5528         (lookup_set): Simplify.  Lookup <dest, src> pair.
5529         (compute_transp): Remove, fold heavily simplified code into...
5530         (compute_local_properties): ...here.  Expect COMP and TRANSP
5531         unconditionally.
5532         (find_avail_set): Take set directly from struct expr.
5533         (find_bypass-set): Likewise.
5534         (bypass_block): Likewise.
5535         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5536
5537         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5538         checks on form of COND from find_implicit_sets to here.
5539         (find_implicit_sets): Cleanup control flow. Split critical edges
5540         if it exposes implicit sets.  Allocate/resize implicit_sets as
5541         necessary.
5542         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5543         changed something.  Run df_analyze after find_implicit_sets if any
5544         edges were split.  Do not allocate implicit_sets here.
5545
5546         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5547         (gcse_obstack): Renamed to cprop_obstack.
5548         (GNEW, GNEWVEC, GNEWVAR): Remove.
5549         (gmalloc): Remove.
5550         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5551         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5552         (gcse_alloc): Likewise, and rename to cprop_alloc.
5553         (alloc_gcse_men, free_gcse_mem): Remove.
5554         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5555         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5556         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5557
5558         * cprop.c (oprs_not_set_p): Remove.
5559         (mark_set, mark_clobber): Remove.
5560         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5561         (reg_not_set_p): New function.
5562         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5563         (cprop_insn): Likewise.
5564         (cprop_jump): Use FOR_EACH_EDGE.
5565
5566 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5567
5568         PR bootstrap/48403
5569         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5570         (rank_for_schedule): Use scheduled_insns vector instead of
5571         last_scheduled_insn.
5572         (ok_for_early_queue_removal): Likewise.
5573         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5574         we have a dbg_cnt.
5575         (choose_ready): Likewise.
5576         (commit_schedule): Use VEC_iterate.
5577         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5578         a dbg_cnt, use it and ensure the first insn is in the ready list.
5579         (haifa_sched_init): Allocate scheduled_insns.
5580         (sched_extend_ready_list): Don't allocate it; reserve space.
5581         (haifa_sched_finish): Free it.
5582
5583 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5584
5585         * optc-gen.awk: Always remove type from Variable entry before
5586         recording in var_seen.
5587
5588 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5589
5590         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5591         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5592         call to tidy_fallthru_edges.
5593
5594 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5595
5596         * doc/options.texi (ToLower): Document.
5597         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5598         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5599         * opts.h (cl_option): Add cl_tolower field.
5600         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5601         arguments with lowercase strings.
5602         * config/rx/rx.opt (mcpu=): Add ToLower.
5603         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5604         argument.
5605
5606 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5607
5608         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5609
5610 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5611
5612         * config/vax/vax.c: Include reload.h.
5613
5614 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5615
5616         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5617         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5618         (sparc_preferred_reload_class): New function.
5619
5620 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5621
5622         PR debug/48401
5623         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5624         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5625
5626 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5627
5628         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5629         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5630
5631 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5632
5633         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5634         (ASM_OUTPUT_ALIGNED_BSS): Define.
5635
5636 2011-04-03  Michael Matz  <matz@suse.de>
5637
5638         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5639         and next_slot members.
5640         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5641         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5642         (lto_streamer_cache_append): Declare.
5643         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5644         unsigned index, remove offset parameter, ensure that we append
5645         or update existing entries.
5646         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5647         parameter, update next_slot for append.
5648         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5649         parameter.
5650         (lto_streamer_cache_insert_at): Likewise.
5651         (lto_streamer_cache_append): New function.
5652         (lto_streamer_cache_lookup): Use unsigned index.
5653         (lto_streamer_cache_get): Likewise.
5654         (lto_record_common_node): Don't test tree_node_can_be_shared.
5655         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5656         (lto_streamer_cache_delete): Don't free offsets member.
5657         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5658         (lto_output_string_with_length): Use lto_output_data_stream.
5659         (lto_output_tree_header): Remove ix parameter, don't write it.
5660         (lto_output_builtin_tree): Likewise.
5661         (lto_write_tree): Adjust callers to above, don't track and write
5662         offset, write unsigned index.
5663         (output_unreferenced_globals): Don't emit all global vars.
5664         (write_global_references): Use unsigned indices.
5665         (lto_output_decl_state_refs): Likewise.
5666         (write_symbol): Likewise.
5667         * lto-streamer-in.c (lto_input_chain): Move earlier.
5668         (input_function): Use unsigned index.
5669         (input_alias_pairs): Don't read and then ignore all global vars.
5670         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5671         don't pass it back, use lto_streamer_cache_append.
5672         (lto_register_var_decl_in_symtab): Use unsigned index.
5673         (lto_register_function_decl_in_symtab): Likewise.
5674         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5675         index.
5676         (lto_get_builtin_tree): Don't read index, use
5677         lto_streamer_cache_append.
5678         (lto_read_tree): Adjust call to lto_materialize_tree.
5679
5680         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5681         don't use function calls in arguments to MIN.
5682
5683         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5684         twice.
5685
5686         * gimple.c (gimple_type_leader_entry): Mark deletable.
5687
5688 2011-04-03  Alan Modra  <amodra@gmail.com>
5689
5690         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5691
5692 2011-04-03  Michael Matz  <matz@suse.de>
5693
5694         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5695         an integer.
5696         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5697
5698 2011-04-03  Michael Matz  <matz@suse.de>
5699
5700         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5701         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5702         without function context.
5703         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5704         current_function_decl and cfun.
5705
5706 2011-04-03  Michael Matz  <matz@suse.de>
5707
5708         * tree.c (decl_init_priority_insert): Don't create entry for
5709         default priority.
5710         (decl_fini_priority_insert): Ditto.
5711         (fields_compatible_p, find_compatible_field): Remove.
5712         * tree.h (fields_compatible_p, find_compatible_field): Remove.
5713         * gimple.c (gimple_compare_field_offset): Adjust block comment.
5714
5715 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5716
5717         * combine.c (try_combine): Remove useless local variable.
5718
5719 2011-04-03  Richard Guenther  <rguenther@suse.de>
5720             Ira Rosen  <ira.rosen@linaro.org>
5721
5722         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5723         non-variable offsets and compare the remaining bases of the two
5724         accesses instead of looking for exact same data-ref.
5725
5726 2011-04-02  Kai Tietz  <ktietz@redhat.com>
5727
5728         PR target/48416
5729         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5730
5731         * i386.c (ix86_is_msabi_thiscall): New helper function.
5732         (ix86_is_type_thiscall): New helper function.
5733         (ix86_comp_type_attributes): Handle thiscall for method-functions
5734         special.
5735         (init_cumulative_args): Likewise.
5736         (find_drap_reg): Likewise.
5737         (ix86_static_chain): Likewise.
5738         (x86_this_parameter): Likewise.
5739         (x86_output_mi_thunk): Likewise.
5740
5741 2011-04-01  Olivier Hainque  <hainque@adacore.com>
5742             Nicolas Setton  <setton@adacore.com>
5743             Eric Botcazou  <ebotcazou@adacore.com>
5744
5745         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5746         (add_gnat_descriptive_type_attribute): New function.
5747         (gen_array_type_die): Call it.
5748         (gen_enumeration_type_die): Likewise.
5749         (gen_struct_or_union_type_die): Likewise.
5750         (modified_type_die): Likewise.
5751         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5752         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5753         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5754
5755 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5756
5757         PR bootstrap/48148
5758         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5759         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5760
5761         Revert:
5762         2011-03-17  Richard Guenther  <rguenther@suse.de>
5763
5764         PR bootstrap/48148
5765         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5766         origin for decls in other ltrans units.
5767         (input_varpool_node): Likewise.
5768
5769 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5770
5771         PR middle-end/48335
5772         * expr.c (expand_assignment): Handle all possibilities
5773         if TO_RTX is CONCAT.
5774         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5775         (store_split_bit_field): If SUBREG_REG (op0) or
5776         op0 itself has smaller mode than word, return it
5777         for offset 0 and const0_rtx for out-of-bounds stores.
5778         If word is const0_rtx, skip it.
5779
5780 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
5781
5782         * config/h8300/h8300.c (print_operand_address): Rename to...
5783         (h8300_print_operand_address): ...this. Make static. Adjust comments.
5784         Call h8300_print_operand and h8300_print_operand_address instead of
5785         print_operand and print_operand_address. Declare.
5786         (print_operand): Renake to...
5787         (h8300_print_operand): ...this. Make static. Adjust comments.
5788         Call h8300_print_operand instead of print_operand. Declare.
5789         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5790         (h8300_register_move_cost): Likewise.
5791         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5792         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5793         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5794         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5795         * config/h8300/h8300-protos.h (print_operand): Delete.
5796         (print_operand_address): Delete.
5797
5798 2011-04-01  Richard Henderson  <rth@redhat.com>
5799
5800         PR 48400
5801         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5802         in strict mode before dwarf4.  Re-order tests to early out
5803         before switching sections.
5804
5805 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
5806
5807         * config/h8300/constraints.md: New file.
5808         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
5809         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5810         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5811         * config/h8300/predicates.md (bit_operand): Likewise.
5812         (incdec_operand): Use satisfies_constraint_M and
5813         satisfies_constraint_O.  Don't use C code block.
5814         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5815         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5816         (compute_mov_length): Use satisfies_constraint_G.
5817         (fix_bit_operand): Use satisfies_constraint_U.
5818         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5819         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5820         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5821         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5822         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5823         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5824         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5825         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5826         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5827         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5828         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5829         (EXTRA_MEMORY_CONSTRAINT): Delete.
5830
5831 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
5832             Michael Meissner  <meissner@linux.vnet.ibm.com>
5833
5834         PR target/48262
5835         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5836         operands, as per the specifications.
5837
5838         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5839         (vec_extract_evenv4sf): Ditto.
5840         (vec_extract_evenv8hi): Ditto.
5841         (vec_extract_evenv16qi): Ditto.
5842         (vec_extract_oddv4si): Ditto.
5843
5844 2011-03-31  Mark Wielaard  <mjw@redhat.com>
5845
5846         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5847         high_pc attribute if the CU has no associated code. Only output
5848         DW_AT_entry_pc for CU if not generating strict dwarf and
5849         dwarf_version < 4.
5850
5851 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
5852
5853         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5854         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5855         out of ...
5856         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5857         * final.c (final_start_function): Call the new function rather
5858         than using a NULL argument for dwarf2out_frame_debug.
5859
5860         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5861         that contains the prologue.
5862
5863         * haifa-sched.c (queue_insn): New arg REASON.  All callers
5864         changed.  Print it in debugging output.
5865
5866         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5867
5868         * sched-ebb.c (begin_schedule_ready): Remove second argument.
5869         Split most of the code into...
5870         (begin_move_insn): ... here.  New function.
5871         (ebb_sched_info): Add a pointer to it.
5872         * haifa-sched.c (scheduled_insns): New static variable.
5873         (sched_extend_ready_list): Allocate it.
5874         (schedule_block): Use it to record the order of scheduled insns.
5875         Perform RTL changes to move insns only after all scheduling
5876         decisions have been made.
5877         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5878         begin_move_insn field.
5879         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5880         * sched-int.h (struct haifa_sched_info): Remove second argument
5881         from begin_schedule_ready hook.  Add new member begin_move_insn.
5882         * sched-rgn.c (begin_schedule_ready): Remove second argument.
5883         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5884
5885         * haifa-sched.c (prune_ready_list): New function, broken out of
5886         schedule_block.
5887         (schedule_block): Use it.
5888
5889 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5890
5891         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5892
5893 2011-04-01  Kai Tietz  <ktietz@redhat.com>
5894
5895         * config.gcc (*-*-mingw*): Allow as option the
5896         posix threading model.
5897         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
5898         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5899         definition.
5900         (CPP_SPEC): Add pthread/no-pthread handling.
5901         (LIB_SPEC): Likewise.
5902         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5903         (LIB_SPEC): Likewise.
5904         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5905         flag to pass -pthread option for shared libgcc build.
5906         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5907         for shared libgcc build.
5908         * config/i386/t-mingw-pthread: New file.
5909         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5910         New define to enable use of library pthread by default.
5911         * config/i386/mingw.opt (pthread): New driver option.
5912         (no-pthread): New driver option.
5913         * config/i386/cygming.opt: Make sure trailing empty line is retained.
5914         * config/i386/mingw-w64.opt: Likewise.
5915
5916 2011-04-01  Gary Funck <gary@intrepid.com>
5917
5918         * c-decl.c (grokdeclarator): Fix formatting.
5919
5920 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5921
5922         * expr.c (emit_block_move_via_movmem): Use n_generator_args
5923         instead of n_operands.
5924         (set_storage_via_setmem): Likewise.
5925         * optabs.c (maybe_gen_insn): Likewise.
5926         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5927         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5928         (mips_expand_builtin_direct): Likewise.
5929         * config/spu/spu.c (expand_builtin_args): Likewise.
5930
5931 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5932
5933         * recog.h (insn_data_d): Add n_generator_args.
5934         * genoutput.c (data): Likewise.
5935         (output_insn_data): Print it.
5936         (max_opno, num_dups): Delete.
5937         (scan_operands): Just fill in "d->operand[...]".
5938         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5939
5940 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5941
5942         * gensupport.h (pattern_stats): New structure.
5943         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5944         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5945         (max_operand_1, max_operand_vec): Delete.
5946         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5947
5948 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
5949
5950         * emit-rtl.c (emit_pattern_after_setloc): New function.
5951         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5952         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5953         (emit_pattern_after): New function.
5954         (emit_insn_after, emit_jump_insn_after): Call it.
5955         (emit_call_insn_after, emit_debug_insn_after): Likewise.
5956         (emit_pattern_before_setloc): New function.
5957         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5958         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5959         Likewise.
5960         (emit_pattern_before): New function.
5961         (emit_insn_before, emit_jump_insn_before): Call it.
5962         (emit_call_insn_before, emit_debug_insn_before): Likewise.
5963
5964 2011-03-31  Richard Henderson  <rth@redhat.com>
5965
5966         * dwarf2out.c (dw_separate_line_info_ref): Remove.
5967         (dw_separate_line_info_entry): Remove.
5968         (enum dw_line_info_opcode): New.
5969         (dw_line_info_entry): Use it.
5970         (dw_line_info_table, dw_line_info_table_p): New.
5971         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5972         (line_info_table, line_info_label_num): Remove.
5973         (line_info_table_in_use): Remove.
5974         (separate_line_info_table): Remove.
5975         (separate_line_info_table_allocated): Remove.
5976         (separate_line_info_table_in_use): Remove.
5977         (LINE_INFO_TABLE_INCREMENT): Remove.
5978         (line_info_label_num): New.
5979         (cur_line_info_table): New.
5980         (text_section_line_info, cold_text_section_line_info): New.
5981         (separate_line_info): New.
5982         (SEPARATE_LINE_CODE_LABEL): Remove.
5983         (print_dwarf_line_table): Remove.
5984         (debug_dwarf): Don't dump it.
5985         (output_one_line_info_table): New.
5986         (output_line_info): Use it.
5987         (new_line_info_table): New.
5988         (set_cur_line_info_table): New.
5989         (dwarf2out_switch_text_section): Use it.
5990         (dwarf2out_begin_function): Likewise.
5991         (push_dw_line_info_entry): New.
5992         (dwarf2out_source_line): Rewrite for new line info tables.
5993         (dwarf2out_init): Remove dead initailizations.
5994
5995 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5996
5997         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
5998         various flags.
5999         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6000         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6001         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6002         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6003         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6004         * opt-functions.awk (flag_init, switch_bit_fields): New.
6005         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6006         generate CL_MISSING_OK or CL_SAVE.
6007         * optc-gen.awk: Update to generate bit-field output as well as
6008         flags field.
6009         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6010         bit-field instead of CL_REJECT_DRIVER flag.
6011         * opts-common.c (generate_canonical_option,
6012         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6013         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6014         instead of CL_REJECT_NEGATIVE flag.
6015         * toplev.c (print_switch_values): Use cl_report bit-field instead
6016         of CL_REPORT flag.
6017
6018 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6019
6020         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6021         a zero minimum index only if it is redundant.
6022
6023 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6024
6025         PR rtl-optimization/48381
6026         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6027         instead of ira_class_hard_reg_index for calculating conflicting
6028         hard registers.
6029
6030 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6031
6032         * cprop.c: Clean up hash table building.
6033         (reg_avail_info): Remove.
6034         (oprs_available_p): Remove.
6035         (record_last_reg_set_info): Remove.
6036         (record_last_set_info): Remove.
6037         (reg_available_p): New function.
6038         (gcse_constant_p): Do not treat unfolded conditions as constants.
6039         (make_set_regs_unavailable): New function.
6040         (hash_scan_set): Simplify with new reg_available_p.
6041         (compute_hash_table_work): Traverse insns stream only once.
6042         Do not compute reg_avail_info. Traverse insns in reverse order.
6043         Record implicit sets after recording explicit sets from the block.
6044
6045 2011-03-31  Michael Matz  <matz@suse.de>
6046
6047         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6048
6049 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6050
6051         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6052         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6053         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6054         (h8300_mode_dependent_address_p): New function.
6055         (h8300_get_index): Make static.
6056
6057 2011-03-31  Jeff Law  <law@redhat.com>
6058
6059         * reload1.c (elimination_effects): Fix typo in recent change.
6060
6061         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6062         typo potentially leading to null pointer dereference.
6063
6064         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6065         (setup_save_areas): Corresponding changes to avoid useless
6066         assignments.
6067
6068         * jump.c (reversed_comparison_code_parts): Avoid successive return
6069         statements when REVERSE_CONDITION is defined.
6070
6071         * expr.c (expand_assignment): Avoid useless assignments.
6072         (expand_expr_real_1): Likewise.
6073         (expand_expr_real_2): Avoid useless statements.
6074
6075         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6076
6077         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6078
6079         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6080         statements.
6081
6082         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6083
6084 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6085
6086         PR target/47109
6087         * doc/tm.texi.in (TARGET_VERSION): Remove.
6088         * doc/tm.texi: Regenerate.
6089         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6090         * collect2.c (main): Don't use TARGET_VERSION.
6091         * mips-tdump.c (main): Don't use TARGET_VERSION.
6092         * mips-tfile.c (main): Don't use TARGET_VERSION.
6093         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6094         * config/rs6000/vxworksae.h: Remove.
6095         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6096         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6097         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6098         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6099         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6100         * config/arm/arm.h (TARGET_VERSION): Remove.
6101         * config/arm/coff.h (TARGET_VERSION): Remove.
6102         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6103         * config/arm/elf.h (TARGET_VERSION): Remove.
6104         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6105         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6106         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6107         * config/arm/pe.h (TARGET_VERSION): Remove.
6108         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6109         * config/arm/semi.h (TARGET_VERSION): Remove.
6110         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6111         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6112         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6113         * config/avr/avr.h (TARGET_VERSION): Remove.
6114         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6115         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6116         * config/frv/frv.h (TARGET_VERSION): Remove.
6117         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6118         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6119         * config/i386/darwin.h (TARGET_VERSION): Remove.
6120         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6121         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6122         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6123         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6124         * config/i386/gnu.h (TARGET_VERSION): Remove.
6125         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6126         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6127         * config/i386/linux.h (TARGET_VERSION): Remove.
6128         * config/i386/linux64.h (TARGET_VERSION): Remove.
6129         * config/i386/lynx.h (TARGET_VERSION): Remove.
6130         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6131         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6132         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6133         * config/i386/netware.h (TARGET_VERSION): Remove.
6134         * config/i386/nto.h (TARGET_VERSION): Remove.
6135         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6136         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6137         * config/ia64/elf.h (TARGET_VERSION): Remove.
6138         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6139         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6140         * config/ia64/linux.h (TARGET_VERSION): Remove.
6141         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6142         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6143         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6144         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6145         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6146         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6147         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6148         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6149         * config/m68k/linux.h (TARGET_VERSION): Remove.
6150         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6151         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6152         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6153         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6154         * config/mep/mep.h (TARGET_VERSION): Remove.
6155         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6156         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6157         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6158         * config/mips/linux.h (TARGET_VERSION): Remove.
6159         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6160         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6161         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6162         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6163         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6164         * config/pa/pa.h (TARGET_VERSION): Remove.
6165         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6166         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6167         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6168         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6169         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6170         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6171         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6172         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6173         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6174         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6175         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6176         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6177         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6178         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6179         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6180         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6181         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6182         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6183         * config/s390/linux.h (TARGET_VERSION): Remove.
6184         * config/s390/s390.h (TARGET_VERSION): Remove.
6185         * config/s390/tpf.h (TARGET_VERSION): Remove.
6186         * config/score/score.h (TARGET_VERSION): Remove.
6187         * config/sh/linux.h (TARGET_VERSION): Remove.
6188         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6189         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6190         * config/sh/sh.h (TARGET_VERSION): Remove.
6191         * config/sh/sh64.h (TARGET_VERSION): Remove.
6192         * config/sh/superh.h (TARGET_VERSION): Remove.
6193         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6194         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6195         * config/sparc/linux.h (TARGET_VERSION): Remove.
6196         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6197         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6198         TARGET_NAME32, TARGET_NAME): Remove.
6199         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6200         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6201         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6202         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6203         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6204         * config/spu/spu.h (TARGET_VERSION): Remove.
6205         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6206         * config/v850/v850.h (TARGET_VERSION): Remove.
6207         * config/vax/linux.h (TARGET_VERSION): Remove.
6208         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6209         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6210         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6211
6212 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6213
6214         PR target/48142
6215         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6216         frame-related from frame-unrelated adjustments to the stack pointer.
6217
6218 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6219
6220         * common.opt (fdebug-types-section): Move earlier.
6221         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6222
6223 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6224
6225         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6226         var.
6227
6228 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6229
6230         * tree.h (CASE_CHAIN): Define.
6231         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6232         (gimple_redirect_edge_and_branch): Likewise.
6233
6234 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6235
6236         PR middle-end/48367
6237         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6238         calculation.
6239
6240 2011-03-30  Jeff Law  <law@redhat.com>
6241
6242         * PR bootstrap/48371
6243         * reload1.c (reload): Fix botch in last change.
6244
6245         * reload.h (struct reload): Fix typo introduced in last change.
6246
6247 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6248
6249         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6250         Undocumented.  Remove help text.
6251         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6252         -mhard-float.
6253
6254 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6255
6256         * doc/options.texi (NegativeAlias): Document.
6257         (Alias): Mention NegativeAlias.
6258         * opt-functions.awk: Handle NegativeAlias.
6259         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6260         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6261         * opts.h (CL_NEGATIVE_ALIAS): Define.
6262         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6263         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6264         OPT_mspe_.
6265         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6266         Alias entries.
6267         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6268         mno-spe and mno-isel instead of mspe=no and -misel=no.
6269
6270 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6271
6272         * common.opt (fdebug-types-section): New flag.
6273         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6274         * dwarf2out.c (use_debug_types): New define.
6275         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6276         (print_die): Guard output of type unit signatures using
6277         use_debug_types.
6278         (build_abbrev_table): Replace assert of dwarf_version >= 4
6279         with assert on use_debug_types.
6280         (size_of_die): Likewise.
6281         (unmark_dies): Likewise.
6282         (value_format): Decide AT_ref_external form on use_debug_types.
6283         (output_die): Replace dwarf_version version check guard with
6284         use_debug_types where appropriate.
6285         (modified_type_die): Likewise.
6286         (gen_reference_type_die): Likewise.
6287         (dwarf2out_start_source_file): Likewise.
6288         (dwarf2out_end_source_file): Likewise.
6289         (prune_unused_types_walk_attribs): Likewise.
6290         (dwarf2out_finish): Likewise.
6291
6292 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6293
6294         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6295
6296 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6297
6298         PR rtl-optimization/48332
6299         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6300         mode of input operand N and modeN to its actual mode.
6301
6302 2011-03-30  Jeff Law  <law@redhat.com>
6303
6304         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6305         define accessor macro.
6306         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6307         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6308         (reg_equiv_init): Likewise.
6309         (reg_equivs_size): New variable.
6310         (reg_equiv_init_size): Remove.
6311         (allocate_initial_values): Move prototype to here from....
6312         * integrate.h (allocate_initial_values): Remove prototype.
6313         * integrate.c: Include reload.h.
6314         (allocate_initial_values): Corresponding changes.
6315         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6316         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6317         (update_equiv_regs): Corresponding changes.
6318         (ira): Corresponding changes.
6319         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6320         (push_secondary_reload): Corresponding changes.
6321         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6322         (make_memloc, find_reloads_address): Corresponding changes.
6323         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6324         (find_reloads_address_1): Corresponding changes.
6325         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6326         (refers_to_regno_for_reload_p): Corresponding changes.
6327         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6328         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6329         * reload1.c: Include ggc.h.
6330         (grow_reg_equivs): New function.
6331         (replace_pseudos_in, reload): Corresponding changes.
6332         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6333         (eliminate_regs_1, elimination_effects): Corresponding changes.
6334         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6335         (delete_output_reload): Likewise.
6336         * caller-save.c (mark_referenced_regs): Corresponding changes.
6337         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6338         * frv/predicates.md (frv_load_operand): Corresponding changes.
6339         * microblaze/microblaze.c (double_memory_operand): Corresponding
6340         changes.
6341         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6342         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6343         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6344         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6345         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6346         changes.
6347         * pa/pa.c (emit_move_sequence): Corresponding changes.
6348         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6349
6350 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6351
6352         PR target/47551
6353         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6354         structure modes.  Don't check neon_vector_mem_operand for
6355         vector or structure modes.
6356
6357 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6358             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6359
6360         PR target/43590
6361         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6362         operand 1 and reshuffle the operands to match.
6363         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6364
6365 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6366
6367         PR driver/48208
6368         * config/c.opt (F): Added 'Driver' to -F option.
6369
6370         PR driver/48260
6371         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6372           handler function.
6373         * config/darwin.opt: Added '-arch' option.
6374
6375 2011-03-30  Nick Clifton  <nickc@redhat.com>
6376
6377         * config/rx/rx.md: Add peepholes and patterns to combine
6378         extending loads and simple arithmetic instructions.
6379         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6380         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6381         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6382         modes to use pre-decrement and post-increment addressing.
6383         (rx_is_restricted_memory_address): Add range checking of REG+INT
6384         addresses.
6385         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6386         (rx_memory_move_cost): Adjust cost of stores.
6387         (rx_adjust_insn_length): New function.
6388
6389 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6390
6391         PR c/48305
6392         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6393         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6394         matching arg00/arg01 types.
6395
6396 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6397
6398         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6399         last_location to UNKNOWN_LOCATION.
6400
6401 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6402
6403         PR target/48349
6404         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6405         FLOAT_SSE_REGS.
6406
6407 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6408             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6409
6410         PR bootstrap/48337
6411         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6412         Init(PROCESSOR_V7).
6413         (sparc_cpu): Likewise.
6414         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6415         PROCESSOR_V7.
6416
6417 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6418
6419         PR target/48336
6420         PR middle-end/48342
6421         PR rtl-optimization/48345
6422         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6423         hard regs for given mode from profitable regs when doing secondary
6424         allocation.
6425
6426 2011-03-29  Jeff Law  <law@redhat.com>
6427
6428         PR bootstrap/48327
6429         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6430         do_not_duplicate field.
6431         (lookup_redirection_data): Corresponding changes.
6432         (create_duplicates): Always create a template block.
6433         (redirect_edges): Remove code which reused the original block
6434         when it was going to become unreachable code.
6435         (thread_block): Don't set do_not_duplicate field.
6436
6437 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6438
6439         * lto-opts.c (register_user_option_p, lto_register_user_option):
6440         Make type argument unsigned.
6441         * lto-streamer.h (lto_register_user_option): Make type argument
6442         unsigned.
6443         * opth-gen.awk: Make CL_* macros unsigned.
6444         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6445         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6446         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6447         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6448         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6449         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6450         (find_opt): Make lang_mask argument unsigned.
6451
6452 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6453
6454         PR rtl-optimization/48331
6455         PR rtl-optimization/48334
6456         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6457         for any used algorithm.
6458
6459 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6460
6461         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6462         to parent_max.
6463
6464 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6465
6466         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6467         (alpha_option_override): Don't set alpha_sr_alias_set.
6468         (emit_frame_store_1): Use gen_frame_mem rather than calling
6469         set_mem_alias_set.
6470         (alpha_expand_epilogue): Ditto.
6471
6472 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6473
6474         PR tree-optimization/48290
6475         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6476         vectorization, check that relevant phis in the basic block after
6477         the inner loop are really inner loop's exit phis.
6478
6479 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6480
6481         PR debug/48190
6482         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6483         (cached_dw_loc_list_def): New structure.
6484         (cached_dw_loc_list): New typedef.
6485         (cached_dw_loc_list_table): New variable.
6486         (cached_dw_loc_list_table_hash): New function.
6487         (cached_dw_loc_list_table_eq): Likewise.
6488         (add_location_or_const_value_attribute): Take a bool cache_p.
6489         Cache the list when the parameter is true.
6490         (gen_formal_parameter_die): Update caller.
6491         (gen_variable_die): Likewise.
6492         (dwarf2out_finish): Likewise.
6493         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6494         while generating debug info for the decl.
6495         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6496         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6497         (resolve_addr): Cache the result of resolving a chain of
6498         location lists.
6499
6500 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6501
6502         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6503         conflict object hard regset nodes have intersecting hard reg sets.
6504
6505         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6506         after regstat_init_n_sets_and_refs.
6507
6508         * ira.c: Add more comments at the top.
6509         (setup_stack_reg_pressure_class, setup_pressure_classes):
6510         Add comments how we compute the register pressure classes.
6511         (setup_allocno_and_important_classes): Add more comments.
6512         (setup_class_translate_array, reorder_important_classes)
6513         (setup_reg_class_relations): Add comments.
6514
6515         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6516         start of the file.
6517
6518         * ira-color.c: Add 2011 to the Copyright line.
6519         (assign_hard_reg):  Add more comments.
6520         (improve_allocation): Ditto.
6521
6522         * ira-costs.c: Add 2011 to the Copyright line.
6523         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6524         comments.
6525         (setup_regno_cost_classes_by_mode): Ditto.
6526
6527         Initial patches from ira-improv branch:
6528
6529         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6530
6531         * ira-build.c (ira_create_object): Remove initialization of
6532         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6533         (ira_create_allocno): Remove initialization of
6534         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6535         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6536         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6537         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6538         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6539         Initialize ALLOCNO_ADD_DATA.
6540         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6541         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6542         ALLOCNO_REG.
6543         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6544         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6545
6546         * ira.c (ira_reallocate): Remove.
6547         (setup_pressure_classes): Call
6548         ira_init_register_move_cost_if_necessary.  Use
6549         ira_register_move_cost instead of ira_get_register_move_cost.
6550         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6551         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6552
6553         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6554         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6555         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6556         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6557         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6558         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6559         Fix formatting.
6560         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6561         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6562         (struct allocno_color_data): New.
6563         (allocno_color_data_t): New typedef.
6564         (allocno_color_data): New definition.
6565         (ALLOCNO_COLOR_DATA): New macro.
6566         (struct object_color_data): New.
6567         (object_color_data_t): New typedef.
6568         (object_color_data): New definition.
6569         (OBJECT_COLOR_DATA): New macro.
6570         (update_copy_costs, calculate_allocno_spill_cost): Call
6571         ira_init_register_move_cost_if_necessary.  Use
6572         ira_register_move_cost instead of ira_get_register_move_cost.
6573         (move_spill_restore, update_curr_costs): Ditto.
6574         (allocno_spill_priority): Make it inline.
6575         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6576         (struct coalesce_data, coalesce_data_t): New.
6577         (allocno_coalesce_data): New definition.
6578         (ALLOCNO_COALESCE_DATA): New macro.
6579         (merge_allocnos, coalesced_allocno_conflict_p): Use
6580         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6581         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6582         (coalesce_allocnos): Ditto.
6583         (setup_coalesced_allocno_costs_and_nums): Ditto.
6584         (collect_spilled_coalesced_allocnos): Ditto.
6585         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6586         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6587         (coalesce_spill_slots): Ditto.
6588         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6589         free allocno_coalesce_data.
6590
6591         * ira-conflicts.c: Fix formatting.
6592         (process_regs_for_copy): Call
6593         ira_init_register_move_cost_if_necessary.  Use
6594         ira_register_move_cost instead of ira_get_register_move_cost.
6595         (build_object_conflicts): Optimize.
6596
6597         * ira-costs.c (record_reg_classes): Optimize.  Call
6598         ira_init_register_move_cost_if_necessary.  Use
6599         ira_register_move_cost, ira_may_move_in_cost, and
6600         ira_may_move_out_cost instead of ira_get_register_move_cost and
6601         ira_get_may_move_cost.
6602         (record_address_regs): Ditto.
6603         (scan_one_insn): Optimize.
6604         (find_costs_and_classes): Optimize.
6605         (process_bb_node_for_hard_reg_moves): Call
6606         ira_init_register_move_cost_if_necessary.  Use
6607         ira_register_move_cost instead of ira_get_register_move_cost.
6608
6609         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6610         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6611         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6612         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6613         definitions.
6614         (ira_initiate_emit_data, ira_finish_emit_data)
6615         (create_new_allocno): New functions.
6616         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6617         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6618         Use ira_register_move_cost instead of ira_get_register_move_cost.
6619
6620         * ira-int.h: Fix some comments.
6621         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6622         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6623         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6624         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6625         add_data.
6626         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6627         bitfield after mode.  Make hard_regno a short int.  Make
6628         hard_regno short.  Remove first_coalesced_allocno and
6629         next_coalesced_allocno.  Move mem_optimized_dest_p,
6630         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6631         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6632         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6633         temp, colorable_p.  Add new member add_data.
6634         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6635         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6636         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6637         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6638         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6639         (ALLOCNO_ADD_DATA): New macro.
6640         (ira_emit_data_t): New typedef.
6641         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6642         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6643         from struct ira_allocno.
6644         (ALLOCNO_EMIT_DATA): New macro.
6645         (ira_allocno_emit_data, allocno_emit_reg): New.
6646         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6647         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6648         (OBJECT_ADD_DATA): New macro.
6649         (ira_reallocate): Remove.
6650         (ira_initiate_emit_data, ira_finish_emit_data): New.
6651         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6652         (ira_init_register_move_cost_if_necessary): New.
6653         (ira_object_conflict_iter_next): Merge into
6654         ira_object_conflict_iter_cond.
6655         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6656
6657         * ira-live.c (process_single_reg_class_operands): Call
6658         ira_init_register_move_cost_if_necessary.  Use
6659         ira_register_move_cost instead of ira_get_register_move_cost.
6660
6661         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6662
6663         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6664
6665         * ira-costs.c: Fix formatting.
6666         (cost_classes, cost_classes_num): Remove.
6667         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6668         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6669         (cost_classes_del, cost_classes_htab): New.
6670         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6671         (initiate_regno_cost_classes, setup_cost_classes): New.
6672         (setup_regno_cost_classes_by_aclass): New.
6673         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6674         (record_reg_classes): Use regno_cost_classes instead of
6675         cost_classes.  Move checking opposite operand up.
6676         (record_address_regs): Use regno_cost_classes
6677         instead of cost_classes.
6678         (scan_one_insn): Ditto.  Use always general register.
6679         (print_allocno_costs): Use regno_cost_classes instead of
6680         cost_classes.
6681         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6682         (find_costs_and_classes): Set up cost classes for each registers.
6683         Use also their mode for this.  Use regno_cost_classes instead of
6684         cost_classes.
6685         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6686         cost_classes.
6687         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6688         (ira_costs, ira_set_pseudo_classes): Call
6689         initiate_regno_cost_classes and finish_regno_cost_classes.
6690
6691         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6692
6693         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6694
6695         * target.def (ira_cover_classes): Remove.
6696
6697         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6698
6699         * doc/tm.texi.in: Ditto.
6700
6701         * ira-conflicts.c: Remove mentioning cover classes from the file.
6702         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6703         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
6704
6705         * targhooks.c (default_ira_cover_classes): Remove.
6706
6707         * targhooks.h (default_ira_cover_classes): Ditto.
6708
6709         * haifa-sched.c: Remove mentioning cover classes from the file.
6710         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6711         ira_pressure_classes and ira_pressure_classes_num instead of
6712         ira_reg_class_cover_size and ira_reg_class_cover.  Use
6713         sched_regno_pressure_class instead of sched_regno_cover_class.
6714         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6715         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6716
6717         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
6718         classes from the file.
6719         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6720         (struct object_hard_regs, struct object_hard_regs_node): New.
6721         (struct ira_object): New members profitable_hard_regs,
6722         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6723         (struct ira_allocno): Rename cover_class to aclass.  Rename
6724         cover_class_cost and updated_cover_class_cost to class_cost and
6725         updated_class_cost.  Remove splay_removed_p and
6726         left_conflict_size.  Add new members colorable_p.
6727         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6728         (ALLOCNO_COLORABLE_P): New macro.
6729         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6730         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6731         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6732         (OBJECT_...): Rename parameter C to O.
6733         (OBJECT_PROFITABLE_HARD_REGS): New macro.
6734         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6735         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6736         (struct target_ira_int): New members x_ira_max_memory_move_cost,
6737         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6738         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6739         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6740         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
6741         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
6742         x_ira_reg_class_subunion.
6743         (ira_max_memory_move_cost, ira_max_register_move_cost)
6744         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6745         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6746         (ira_important_class_nums, ira_reg_class_superunion): New macros.
6747         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6748         (ira_reg_class_union): Rename to ira_reg_class_subunion.
6749         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6750         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6751         (ira_tune_allocno_costs_and_cover_classes): Rename to
6752         ira_tune_allocno_costs.
6753         (ira_debug_hard_regs_forest): New.
6754         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6755         (ira_object_conflict_iter_next): Fix comments.
6756         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6757         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6758         cover_class to aclass.
6759         (ira_allocate_and_accumulate_costs): Ditto.
6760         (ira_allocate_and_set_or_copy_costs): Ditto.
6761
6762         * opts.c (decode_options): Remove ira_cover_class check.
6763
6764         * ira-color.c: Remove mentioning cover classes from the file.  Use
6765         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6766         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6767         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6768         (splay-tree.h): Remove include.
6769         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6770         before copy_freq_compare_func.
6771         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6772         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6773         New definitions.
6774         (hard_regs_roots, hard_regs_node_vec): Ditto.
6775         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6776         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6777         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6778         (create_new_object_hard_regs_node): Ditto.
6779         (add_new_object_hard_regs_node_to_forest): Ditto.
6780         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6781         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6782         Ditto.
6783         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6784         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6785         (remove_unused_object_hard_regs_nodes): Ditto.
6786         (enumerate_object_hard_regs_nodes): Ditto.
6787         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6788         (object_hard_regs_subnode_t): Ditto.
6789         (struct object_hard_regs_subnode): Ditto.
6790         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6791         (setup_object_hard_regs_subnode_index): Ditto.
6792         (get_object_hard_regs_subnodes_num): Ditto.
6793         (form_object_hard_regs_nodes_forest): Ditto.
6794         (finish_object_hard_regs_nodes_tree): Ditto.
6795         (finish_object_hard_regs_nodes_forest): Ditto.
6796         (allocnos_have_intersected_live_ranges_p): Rename to
6797         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6798         (pseudos_have_intersected_live_ranges_p): Rename to
6799         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6800         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6801         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6802         (update_copy_costs): Remove assert.  Skip cost update if the hard
6803         reg does not belong the class.
6804         (assign_hard_reg): Process only profitable hard regs.
6805         (uncolorable_allocnos_num): Make it scalar.
6806         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6807         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6808         and ira_reg_class_max_nregs.
6809         (bucket_allocno_compare_func): Check frequency first.
6810         (sort_bucket): Add compare function as a parameter.
6811         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6812         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6813         (push_allocno_to_stack): Rewrite for checking new allocno
6814         colorability.
6815         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
6816         (push_only_colorable): Pass new parameter to sort_bucket.
6817         (push_allocno_to_spill): Remove.
6818         (allocno_spill_priority_compare): Make it inline and rewrite.
6819         (splay_tree_allocate, splay_tree_free): Remove.
6820         (allocno_spill_sort_compare): New function.
6821         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
6822         build and use splay tree.  Choose first allocno in uncolorable
6823         allocno bucket to spill.  Remove setting spill cost.
6824         (all_conflicting_hard_regs): Remove.
6825         (setup_allocno_available_regs_num): Check only profitable hard
6826         regs.  Print info about hard regs nodes.
6827         (setup_allocno_left_conflicts_size): Remove.
6828         (put_allocno_into_bucket): Don't call
6829         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
6830         (improve_allocation): New.
6831         (color_allocnos): Call setup_profitable_hard_regs,
6832         form_object_hard_regs_nodes_forest, improve_allocation,
6833         finish_object_hard_regs_nodes_forest.  Setup spill cost.
6834         (print_loop_title): Use pressure classes.
6835         (color_allocnso): Ditto.
6836         (do_coloring): Remove allocation and freeing splay_tree_node_pool
6837         and allocnos_for_spilling.
6838         (ira_sort_regnos_for_alter_reg): Don't setup members
6839         {first,next}_coalesced_allocno.
6840         (color): Remove allocating and freeing removed_splay_allocno_vec.
6841         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6842         prohibited_class_mode_regs.
6843
6844         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
6845         formatting.
6846         (update_allocno_pressure_excess_length): Use pressure classes.
6847         (inc_register_pressure, dec_register_pressure): Check for pressure
6848         class.
6849         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6850         pressure class.  Use ira_reg_class_nregs instead of
6851         ira_reg_class_max_nregs.
6852         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6853         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6854         (single_reg_class): Use ira_reg_class_nregs instead of
6855         ira_reg_class_max_nregs.
6856         (process_bb_node_lives): Use pressure classes.
6857
6858         * ira-emit.c: Remove mentioning cover classes from the file.  Use
6859         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6860         (change_loop): Use pressure classes.
6861         (modify_move_list): Call ira_set_allocno_class instead of
6862         ira_set_allocno_cover_class.
6863
6864         * ira-build.c: Remove mentioning cover classes from the file.  Use
6865         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6866         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
6867         ALLOCNO_UPDATED_CLASS_COST instead of
6868         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6869         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6870         (ira_create_allocno): Remove initialization of
6871         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
6872         ALLOCNO_COLORABLE_P.
6873         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6874         Update conflict regs for the objects.
6875         (create_cap_allocno): Remove assert.  Don't propagate
6876         ALLOCNO_AVAILABLE_REGS_NUM.
6877         (ira_free_allocno_costs): New function.
6878         (finish_allocno): Change a part of code into call of
6879         ira_free_allocno_costs.
6880         (low_pressure_loop_node_p): Use pressure classes.
6881         (object_range_compare_func): Don't compare classes.
6882         (setup_min_max_conflict_allocno_ids): Ditto.
6883
6884         * loop-invariant.c: Remove mentioning cover classes from the file.
6885         Use ira_pressure_classes and ira_pressure_classes_num instead of
6886         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
6887         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6888         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6889         Use reg_allocno_class instead of reg_cover_class.
6890         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6891         STACK_REG_COVER_CLASS.
6892         (get_regno_cover_class): Rename to get_regno_pressure_class.
6893         (move_loop_invariants): Initialize and finalize regstat.
6894
6895         * ira.c: Remove mentioning cover classes from the file.  Add
6896         comments about coloring without cover classes.  Use ALLOCNO_CLASS
6897         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6898         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6899         setup_class_subset_and_memory_move_costs.
6900         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6901         (setup_cover_and_important_classes): Rename to
6902         setup_allocno_and_important_classes.
6903         (setup_class_translate_array): New.
6904         (setup_class_translate): Call it for allocno and pressure classes.
6905         (cover_class_order): Rename to allocno_class_order.
6906         (comp_reg_classes_func): Use ira_allocno_class_translate instead
6907         of ira_class_translate.
6908         (reorder_important_classes): Set up ira_important_class_nums.
6909         (setup_reg_class_relations): Set up ira_reg_class_superunion.
6910         (print_class_cover): Rename to print_classes.  Add parameter.
6911         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6912         Print pressure classes too.
6913         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
6914         setup_reg_subclasses.
6915         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6916         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6917         (setup_prohibited_class_mode_regs): Use
6918         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6919         (clarify_prohibited_class_mode_regs): New function.
6920         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6921         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6922         (ira_init_once): Initialize them.
6923         (free_register_move_costs): Process them.
6924         (ira_init): Move calls of find_reg_classes and
6925         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6926         Call clarify_prohibited_class_mode_regs.
6927         (ira_no_alloc_reg): Remove.
6928         (too_high_register_pressure_p): Use pressure classes.
6929
6930         * sched-deps.c: Remove mentioning cover classes from the file.
6931         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6932         ira_pressure_classes and ira_pressure_classes_num instead of
6933         ira_reg_class_cover_size and ira_reg_class_cover.
6934         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6935         sched_regno_pressure_class instead of sched_regno_cover_class.
6936         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
6937         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6938
6939         * ira.h: Add 2010 to Copyright.
6940         (ira_no_alloc_reg): Remove external.
6941         (struct target_ira): Rename x_ira_hard_regno_cover_class,
6942         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6943         x_ira_class_translate to x_ira_hard_regno_allocno_class,
6944         x_ira_allocno_classes_num, x_ira_allocno_classes, and
6945         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
6946         x_ira_pressure_classes, x_ira_pressure_class_translate, and
6947         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
6948         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
6949         x_ira_no_alloc_regs.
6950         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6951         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6952         ira_allocno_classes_num and ira_allocno_classes.
6953         (ira_class_translate): Rename to ira_allocno_class_translate.
6954         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6955         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6956         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6957         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6958         (ira_no_alloc_regs): New.
6959
6960         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
6961         classes from the file.  Use ALLOCNO_CLASS instead of
6962         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
6963         ALLOCNO_COVER_CLASS_COST.
6964         (regno_cover_class): Rename to regno_aclass.
6965         (record_reg_classes): Use ira_reg_class_subunion instead of
6966         ira_reg_class_union.
6967         (record_address_regs): Check overflow.
6968         (scan_one_insn): Ditto.
6969         (print_allocno_costs): Print total mem cost fore regional allocation.
6970         (print_pseudo_costs): Use REG_N_REFS.
6971         (find_costs_and_classes): Use classes intersected with them on the
6972         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
6973         ira_reg_class_union.  Use ira_allocno_class_translate and
6974         regno_aclass instead of ira_class_translate and regno_cover_class.
6975         Modify code for finding regno_aclass.  Setup preferred classes for
6976         the next pass.
6977         (setup_allocno_cover_class_and_costs): Rename to
6978         setup_allocno_class_and_costs.  Use regno_aclass instead of
6979         regno_cover_class.  Use ira_set_allocno_class instead of
6980         ira_set_allocno_cover_class.
6981         (init_costs, finish_costs): Use regno_aclass instead of
6982         regno_cover_class.
6983         (ira_costs): Use setup_allocno_class_and_costs instead of
6984         setup_allocno_cover_class_and_costs.
6985         (ira_tune_allocno_costs_and_cover_classes): Rename to
6986         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
6987         by processing objects.  Use ira_reg_class_max_nregs instead of
6988         ira_reg_class_nregs.
6989
6990         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6991
6992         * sched-int.h: Remove mentioning cover classes from the file.
6993         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6994
6995         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
6996         classes from the file.
6997         (struct reg_pref): Rename coverclass into allocnoclass.
6998         (reg_cover_class): Rename to reg_allocno_class.
6999
7000         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7001
7002         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7003
7004         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7005
7006         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7007
7008         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7009
7010         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7011
7012         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7013
7014         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7015
7016         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7017
7018         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7019
7020         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7021         (i386_ira_cover_classes): Ditto.
7022
7023         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7024
7025         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7026
7027         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7028
7029         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7030
7031         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7032
7033         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7034
7035         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7036         (mips_ira_cover_classes): Ditto.
7037
7038         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7039
7040         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7041
7042         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7043
7044         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7045
7046         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7047
7048         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7049         (IRA_COVER_CLASSES_VSX): Ditto.
7050
7051         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7052         (rs6000_ira_cover_classes): Ditto.
7053
7054         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7055
7056         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7057
7058         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7059
7060         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7061
7062         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7063
7064         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7065
7066         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7067
7068         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7069
7070         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7071
7072         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7073
7074 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7075
7076         PR debug/48253
7077         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7078         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7079         dw_fde_unlikely_section_end_label, cold_in_std_section,
7080         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7081         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7082         fields.
7083         (output_fde): Use dw_fde_second_{begin,end} if second is
7084         true, otherwise dw_fde_{begin,end}.
7085         (output_call_frame_info): Test dw_fde_second_begin != NULL
7086         instead of dw_fde_switched_sections.
7087         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7088         fields, initialize new fields.  Initialize in_std_section
7089         unconditionally from the first partition.
7090         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7091         dw_fde_second_begin is non-NULL.
7092         (dwarf2out_switch_text_section): Stop initializing removed
7093         dw_fde_struct fields, initialize new fields, initialize
7094         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7095         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7096         (struct var_loc_list_def): Add last_before_switch field.
7097         (arange_table, arange_table_allocated, arange_table_in_use,
7098         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7099         (size_of_aranges): Count !in_std_section and !second_in_std_section
7100         hunks in fdes, instead of looking at arange_table_in_use.
7101         (output_aranges): Add aranges_length argument, don't call
7102         size_of_aranges here.  Instead of using aranges_table*
7103         emit ranges for fdes when !in_std_section resp.
7104         !second_in_std_section.
7105         (dw_loc_list): Break ranges crossing section switch.
7106         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7107         use dw_fde_second_end instead of dw_fde_end as end of last range.
7108         (gen_subprogram_die): Don't call add_arange.  Use
7109         dw_fde_{begin,end} for first partition and if switched
7110         section dw_fde_second_{begin,end} for the second.
7111         (var_location_switch_text_section_1,
7112         var_location_switch_text_section): New functions.
7113         (dwarf2out_begin_function): Initialize cold_text_section even
7114         when function_section () isn't text_section.
7115         (prune_unused_types): Don't walk arange_table.
7116         (dwarf2out_finish): Don't needlessly test
7117         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7118         If info_section_emitted, call size_of_aranges and if it indicates
7119         non-empty .debug_aranges, call output_aranges with the computed
7120         size.  Stop using removed dw_fde_struct fields, use
7121         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7122         for second.
7123
7124         PR debug/48203
7125         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7126         create ENTRY_VALUE if incoming or address of incoming's MEM
7127         is a hard REG.
7128         * dwarf2out.c (mem_loc_descriptor): Don't emit
7129         DW_OP_GNU_entry_value of DW_OP_fbreg.
7130         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7131         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7132         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7133         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7134         ENTRY_VALUE_EXPs.
7135         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7136         is a REG_P or MEM_P with REG_P address, compute hash directly
7137         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7138         (preserve_only_constants): Don't clear VALUES forwaring
7139         ENTRY_VALUE to some other VALUE.
7140
7141 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7142
7143         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7144         instead of GEN_INT.
7145
7146 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7147
7148         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7149         block before expanding the statement.
7150         (expand_gimple_stmt_1): Likewise.  Set them here...
7151         (expand_gimple_stmt): ...and not here.  Tidy.
7152         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7153         unknown.
7154
7155 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7156
7157         * Makefile.in: New rule for cprop.o.
7158         * gcse.c: Move constant/copy propagation to cprop.c.
7159         (compute_local_properties): Only handle expression tables.
7160         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7161         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7162         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7163         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7164         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7165         compute_cprop_data, find_used_regs, try_replace_reg,
7166         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7167         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7168         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7169         find_bypass_set, reg_killed_on_edge, bypass_block,
7170         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7171         execute_rtl_cprop, pass_rtl_cprop): Move to...
7172         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7173         moved from gcse.c to here with minor cleanups in duplicated code.
7174
7175 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7176
7177         * config/i386/i386.c (flag_opts): Fix a typo in
7178         -mavx256-split-unaligned-store.
7179
7180 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7181
7182         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7183         LIBCALL_VALUE): Remove macros.
7184         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7185         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7186         (h8300_function_value, h8300_libcall_value,
7187         h8300_function_value_regno_p): New functions.
7188
7189 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7190
7191         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7192
7193 2011-03-28  Jeff Law  <law@redhat.com>
7194
7195         * tree-ssa-threadupdate.c (redirect_edges): Call
7196         create_edge_and_update_destination_phis as needed.
7197         (create_edge_and_update_destination_phis): Accept new BB argument.
7198         All callers updated.
7199         (thread_block): Do not update the profile when threading around
7200         intermediate blocks.
7201         (thread_single_edge): Likewise.
7202         (determine_bb_domination_status): If BB is not a successor of the
7203         loop header, return NONDOMINATING.
7204         (register_jump_thread): Note when we register a jump thread around
7205         an intermediate block.
7206         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7207         (thread_across_edge): Use it.
7208
7209 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7210
7211         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7212         when for_return is 2.
7213
7214 2011-03-28  Jeff Law  <law@redhat.com>
7215
7216         * var-tracking.c (canonicalize_values_mark): Delete unused
7217         lhs assignment.
7218         (canonicalize_values_star, set_variable_part): Likewise.
7219         (clobber_variable_part, delete_variable_part): Likewise.
7220
7221 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7222
7223         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7224
7225 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7226
7227         * tree-inline.c (expand_call_inline): Do not check that destination
7228         node is analyzed.
7229         (optimize_inline_calls): Assert that destination node is analyzed.
7230         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7231         not call tree_lowering_passes.
7232         * cgraph.h (cgraph_analyze_function): Declare.
7233         * cgraphunit.c (cgraph_analyze_function): Make public.
7234
7235 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7236
7237         * config/sparc/sparc-opts.h: New.
7238         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7239         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7240         (sparc_option_override): Store processor_type enumeration rather
7241         than string in cpu_default.  Remove name and enumeration from
7242         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7243         without using sparc_select.  Use target_flags_explicit instead of
7244         fpu_option_set.
7245         * config/sparc/sparc.h (enum processor_type): Move to
7246         sparc-opts.h.
7247         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7248         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7249         HeaderInclude entry.
7250         (mcpu=, mtune=): Use Var and Enum.
7251         (sparc_processor_type): New Enum and EnumValue entries.
7252
7253 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7254             Iain Sandoe  <iains@gcc.gnu.org>
7255
7256         PR target/48245
7257         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7258
7259 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7260
7261         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7262         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7263         Insert new statements at it in lieu of STMT.
7264         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7265         * tree-vect-stmts.c (vectorizable_store): Likewise.
7266         (vectorizable_load): Likewise.
7267
7268 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7269
7270         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7271         (divtf3): Ditto.
7272         (multf3): Ditto.
7273         (subtf3): Ditto.
7274
7275 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7276
7277         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7278         unaligned 256bit load/store.
7279         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7280         (*avx_movdqu<avxmodesuffix>): Likewise.
7281
7282 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7283
7284         PR target/48288
7285         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7286         * config/pa/pa.md (iordi3): Use new predicate in expander.
7287         (iorsi3): Likewise.
7288
7289 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7290
7291         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7292         FUNCTION_VALUE_REGNO_P): Remove macros.
7293         * config/mips/mips-protos.h (mips_function_value): Remove.
7294         * config/mips/mips.c (mips_function_value): Rename to...
7295         (mips_function_value_1): ... this. Make static.  Handle receiving
7296         the function type in 'fn_decl_or_type' argument.
7297         (mips_function_value, mips_libcall_value,
7298         mips_function_value_regno_p): New function.
7299         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7300         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7301
7302 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7303
7304         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7305         and -mavx256-split-unaligned-store.
7306         (ix86_option_override_internal): Split 32-byte AVX unaligned
7307         load/store by default.
7308         (ix86_avx256_split_vector_move_misalign): New.
7309         (ix86_expand_vector_move_misalign): Use it.
7310
7311         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7312         -mavx256-split-unaligned-store.
7313
7314         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7315         256bit load/store.  Generate unaligned store on misaligned memory
7316         operand.
7317         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7318         256bit load/store.
7319         (*avx_movdqu<avxmodesuffix>): Likewise.
7320
7321         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7322         -mavx256-split-unaligned-store.
7323
7324 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7325
7326         PR target/38598
7327         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7328         Update commentary.
7329
7330 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7331
7332         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7333         opno arguments with an expand_operand.  Use create_input_operand.
7334         (mips_prepare_builtin_target): Delete.
7335         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7336         functions.
7337         (mips_expand_builtin_direct): Use create_output_operand and
7338         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7339         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7340         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7341
7342 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7343
7344         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7345         function.
7346         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7347
7348 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7349
7350         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7351         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7352         basic blocks and call commit_edge_insertions directly.
7353         (fixup_abnormal_edges): Move from here to...
7354         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7355         on the edges and return whether some have actually been inserted.
7356         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7357         compensation code.
7358
7359 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7360
7361         PR rtl-optimization/48144
7362         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7363         (merge_expr_data): ... here.
7364         (av_set_intersect): Rename to av_set_code_motion_filter.
7365         Update all callers.  Call merge_history_vect when an expression
7366         is found in both sets.
7367         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7368
7369 2011-03-26  Alan Modra  <amodra@gmail.com>
7370
7371         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7372         cmodel medium addresses.
7373         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7374         64-bit gpr loads and stores.
7375         (rs6000_secondary_reload_ppc64): New function.
7376         * config/rs6000/rs6000-protos.h: Declare it.
7377         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7378
7379 2011-03-26  Alan Modra  <amodra@gmail.com>
7380
7381         PR target/47487
7382         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7383         GNU Go in traceback table.
7384
7385 2011-03-25  Richard Henderson  <rth@redhat.com>
7386
7387         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7388         if there are exactly 6 operands.
7389         (set_storage_via_setmem): Similarly.
7390
7391 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7392
7393         * collect2.c (write_c_file_stat): Handle backslash
7394         as right-hand directory separator.
7395         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7396         checking just for slash.
7397         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7398         instead of checking for trailing slash.
7399         * gcc.c (record_temp_file): Use filename_cmp instead
7400         of strcmp.
7401         (do_spec_1): Likewise.
7402         (replace_outfile_spec_function): Likewise.
7403         (is_directory): Use filename_ncmp instead of strncmp.
7404         (print_multilib_info): Likewise.
7405         * gcov.c (find_source): Use filename_cmp instead
7406         instead of strcmp.
7407         (make_gcov_file_name): Fix order of slash/backslash
7408         checks.
7409         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7410         (add_standard_paths): Likewise.
7411         * mips-tfile.c (saber_stop): Handle backslash.
7412         * prefix.c (update_path): Use filename_ncmp instead of
7413         strncmp.
7414         * profile.c (output_location): Use filename_cmp instead
7415         of strcmp.
7416         * read-md.c (handle_toplevel_file): Handle backslash.
7417         * tlink.c (frob_extension):  Likewise.
7418         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7419         strcmp.
7420         * tree-dump.c (dequeue_and_dump): Handle backslash.
7421         * tree.c (get_file_function_name): Likewise.
7422         * gengtype.c (read_input_list): Likewise.
7423         (get_file_realbasename): Likewise.
7424         (get_output_file_with_visibility): Use filename_cmp
7425         instead of strcmp.
7426
7427 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7428
7429         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7430         case to VFPv1.
7431
7432 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7433
7434         * fold-const.c (expr_location_or): New function.
7435         (fold_truth_not_expr): Call it.
7436
7437 2011-03-25  Jeff Law  <law@redhat.com>
7438
7439         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7440         va_end.
7441         * c-family/c-common.c (def_fn_type): Likewise.
7442         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7443         * emit-rtl.c (gen_rtvec): Likewise.
7444         * lto/lto-lang.c (def_fn_type): Likewise.
7445
7446 2011-03-25  Richard Guenther  <rguenther@suse.de>
7447
7448         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7449         also generate copies.
7450         (fini_copy_prop): Handle constant values properly.
7451
7452 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7453
7454         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7455         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7456         (hash_loc_operands, compare_loc_operands): Handle
7457         DW_OP_GNU_entry_value.
7458
7459 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7460
7461         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7462         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7463         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7464         comment and use macro TARGET_64BIT_MS_ABI instead.
7465         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7466         and change default behavior for 32-bit MS_ABI.
7467         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7468         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7469         32-bit, too.
7470         (ix86_cfun_abi): Likewise.
7471         (ix86_maybe_switch_abi): Adjust comment.
7472         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7473         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7474         instead of checking for SYSV_ABI.
7475         (ix86_nsaved_sseregs): Likewise.
7476         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7477         to 16 bytes.
7478         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7479         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7480         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7481         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7482         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7483
7484 2011-03-25  Richard Guenther  <rguenther@suse.de>
7485
7486         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7487         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7488         (verify_gimple): Remove.
7489         * tree-cfg.c (verify_gimple_call): Merge verification
7490         from verify_stmts.
7491         (verify_gimple_phi): Merge verification from verify_stmts.
7492         (verify_gimple_label): New function.
7493         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7494         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7495         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7496         (verify_stmts): Rename to verify_gimple_in_cfg.
7497         (verify_gimple_in_cfg): New function.
7498         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7499         * tree-ssa.c (verify_ssa): Likewise.
7500         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7501
7502 2011-03-25  Richard Guenther  <rguenther@suse.de>
7503
7504         * passes.c (init_optimization_passes): Add FRE pass after
7505         early SRA.
7506
7507 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7508             Andrew Stubbs  <ams@codesourcery.com>
7509
7510         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7511         for Cortex-A8.
7512         (arm_movdi_vfp_cortexa8): New pattern.
7513         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7514         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7515         instructions when tuning for Cortex-A8.  Set attribute "arch".
7516         * config/arm/arm.md: Move include arm-tune.md up a bit.
7517         (define_attr "arch"): Add "onlya8" and "nota8" values.
7518         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7519
7520 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7521
7522         PR bootstrap/48282
7523         Revert:
7524         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7525
7526         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7527         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7528         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7529         * passes.c (init_optimization_passes): Move
7530         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7531
7532 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7533
7534         * c-typeck.c (comptypes_internal): Replace target
7535         hook call of comp_type_attributes by version in tree.c file.
7536         * gimple.c (gimple_types_compatible_p_1): Likewise.
7537         * tree-ssa.c (useless_type_conversion_p): Likewise.
7538         * tree.c (build_type_attribute_qual_variant): Likewise.
7539         (attribute_value_equal): New static helper function.
7540         (comp_type_attributes): New function.
7541         (merge_attributes): Use attribute_value_equal for comparison.
7542         (attribute_list_contained): Likewise.
7543         * tree.h (comp_type_attributes): New prototype.
7544
7545 2011-03-25  Richard Guenther  <rguenther@suse.de>
7546
7547         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7548         of complex types at -O0.
7549         (verify_gimple_assign_binary): Likewise.
7550         (verify_gimple_assign_ternary): Likewise.
7551
7552 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7553
7554         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7555         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7556
7557 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7558
7559         PR debug/48041
7560         * dwarf2out.c (output_abbrev_section): Only write table when
7561         abbrev_die_table_in_use > 1.
7562
7563 2011-02-24  Richard Henderson  <rth@redhat.com>
7564
7565         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7566         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7567         (alpha_expand_unaligned_load_words): Use extql.
7568         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7569         (emit_insxl): Handle all modes for consistency.
7570
7571 2011-02-24  Richard Henderson  <rth@redhat.com>
7572
7573         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7574         (alpha_expand_unaligned_load): Likewise.
7575         (alpha_expand_unaligned_store): Likewise.
7576         (alpha_expand_unaligned_load_words): Likewise.
7577         (alpha_expand_unaligned_store_words): Likewise.
7578         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7579         (alpha_split_lock_test_and_set_12): Likewise.
7580         (print_operand, alpha_fold_builtin_extxx): Likewise.
7581         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7582         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7583         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7584         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7585         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7586         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7587         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7588         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7589         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7590         (extwl, extll, extql): Similarly.
7591         (inswh, inslh, insqh): Similarly.
7592         (mskbl, mskwl, mskll, mskql): Similarly.
7593         (mskwh, msklh, mskqh): Similarly.
7594
7595 2011-02-24  Richard Henderson  <rth@redhat.com>
7596
7597         * config/alpha/alpha.md (attribute isa): Add er, ner.
7598         (attribute enabled): Handle them.
7599         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7600
7601 2011-02-24  Richard Henderson  <rth@redhat.com>
7602
7603         * config/alpha/alpha.md (attribute isa): Add vms.
7604         (attribute enabled): Handle it.
7605         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7606         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7607         (*movtf): Rename from *movtf_internal for consistency.
7608         (*movsi): Merge with *movsi_nt_vms.
7609         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7610         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7611         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7612         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7613
7614 2011-02-24  Richard Henderson  <rth@redhat.com>
7615
7616         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7617         (extendqisi2, extendhisi2): Likewise.
7618         (extendqidi2): Simplify BWX/non-BWX expansions.
7619         (extendhidi2): Similarly.
7620
7621 2011-02-24  Richard Henderson  <rth@redhat.com>
7622
7623         * config/alpha/alpha.md (attribute isa): New.
7624         (attribute enabled): New.
7625         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7626         (zero_extendqisi2, zero_extendqidi2): Similarly.
7627         (zero_extendhisi2, zero_extendhidi2): Similarly.
7628         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7629
7630 2011-02-24  Richard Henderson  <rth@redhat.com>
7631
7632         * config/alpha/predicates.md (input_operand): Revert last change;
7633         update comment to mention 32-bit VMS rather than Windows.
7634
7635 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7636
7637         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7638         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7639         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7640         * passes.c (init_optimization_passes): Move
7641         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7642
7643 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7644
7645         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7646
7647 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7648
7649         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7650         correctly.
7651
7652 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7653
7654         PR debug/48204
7655         * simplify-rtx.c (simplify_const_unary_operation): Call
7656         real_convert when changing mode class with FLOAT_EXTEND.
7657
7658 2011-03-24  Nick Clifton  <nickc@redhat.com>
7659
7660         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7661         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7662         * config/rx/rx.c (rx_option_override): Set align_jumps,
7663         align_loops and align_labels if not set by the user.
7664         (rx_align_for_label): New function.
7665         (rx_max_skip_for_label): New function.
7666         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7667         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7668         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7669         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7670         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7671
7672 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7673
7674         PR rtl-optimization/48263
7675         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7676         and original commutative_p handling.  Use maybe_gen_insn.
7677
7678 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7679
7680         * reload.c (find_reloads_subreg_address): Add address_reloaded
7681         parameter and return true there if the full address has been
7682         reloaded.
7683         (find_reloads_toplev): Pass address_reloaded flag.
7684         (find_reloads_address_1): Don't use address_reloaded parameter.
7685
7686 2011-03-24  Jeff Law  <law@redhat.com>
7687
7688         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7689         unused variable "ann".
7690         (remove_unused_locals): Likewise.
7691
7692         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7693         statement.
7694
7695         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7696         after it is freed.
7697
7698 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7699
7700         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7701         for invalid symbolic addresses.
7702         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7703         larl operands.
7704
7705 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7706
7707         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7708         the argument in calls to fold_truth_not_expr.
7709
7710 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7711
7712         * tree.c (record_node_allocation_statistics): New function.
7713         (make_node_stat, copy_node_stat, build_string): Call it.
7714         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7715         (build1_stat, build_omp_clause): Likewise.
7716
7717 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7718
7719         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7720         last commit.
7721
7722 2011-03-24  Richard Guenther  <rguenther@suse.de>
7723
7724         PR tree-optimization/48271
7725         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7726         blocks that still exist.
7727
7728 2011-03-24  Richard Guenther  <rguenther@suse.de>
7729
7730         PR tree-optimization/48270
7731         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7732         not free datarefs before ddrs.
7733
7734 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7735
7736         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7737         from the address built for a reference with variable offset.
7738
7739 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7740
7741         PR target/48237
7742         * config/i386/i386.md (*movdf_internal_rex64): Do not split
7743         alternatives that can be handled with movq or movabsq insn.
7744         (*movdf_internal): Disable for !TARGET_64BIT.
7745         (*movdf_internal_nointeger): Ditto.
7746         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7747
7748 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7749
7750         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7751         (FUNCTION_ARG_ADVANCE): Likewise.
7752         * tm.texi.in: Change references to them to hook references.
7753         * tm.texi: Regenerate.
7754         * targhooks.c (default_function_arg): Eliminate check for target macro.
7755         (default_function_incoming_arg): Likewise.
7756         (default_function_arg_advance): Likewise.
7757         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7758         (function_arg_advance): Likewise.
7759         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7760
7761 2011-03-24  Richard Guenther  <rguenther@suse.de>
7762
7763         PR middle-end/48269
7764         * tree-object-size.c (addr_object_size): Do not double-account
7765         for MEM_REF offsets.
7766
7767 2011-03-24  Diego Novillo  <dnovillo@google.com>
7768
7769         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7770         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7771         (lto_input_data_block): Move from lto-opts.c.  Make extern.
7772         Update all users.
7773         (lto_input_string): Rename from input_string.  Make extern.
7774         Update all users.
7775         * lto-streamer-out.c (lto_output_string_with_length): Rename from
7776         output_string_with_length.
7777         Output 0 to indicate a non-NULL string.  Update all callers to
7778         not emit 0.
7779         (lto_output_string): Rename from output_string.  Make extern.
7780         Update all users.
7781         (lto_output_decl_state_streams): Make extern.
7782         (lto_output_decl_state_refs): Make extern.
7783         * lto-streamer.h (lto_input_string): Declare.
7784         (lto_input_data_block): Declare.
7785         (lto_output_string): Declare.
7786         (lto_output_string_with_length): Declare.
7787         (lto_output_decl_state_streams): Declare.
7788         (lto_output_decl_state_refs): Declare.
7789
7790 2011-03-24  Richard Guenther  <rguenther@suse.de>
7791
7792         PR tree-optimization/46562
7793         * tree.c (build_invariant_address): New function.
7794         * tree.h (build_invariant_address): Declare.
7795         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7796         a renamed function moved ...
7797         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7798         Take valueization callback parameter.
7799         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7800         * gimple-fold.h: New file.
7801         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7802         (ccp_fold, fold_const_aggregate_ref,
7803         fold_ctor_reference, fold_nonarray_ctor_reference,
7804         fold_array_ctor_reference, fold_string_cst_ctor_reference,
7805         get_base_constructor): Move ...
7806         * gimple-fold.c: ... here.
7807         (gimple_fold_stmt_to_constant_1): New function
7808         split out from ccp_fold.  Take a valueization callback parameter.
7809         Valueize all operands.
7810         (gimple_fold_stmt_to_constant): New wrapper function.
7811         (fold_const_aggregate_ref_1): New function split out from
7812         fold_const_aggregate_ref.  Take a valueization callback parameter.
7813         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7814         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7815         invariant POINTER_PLUS_EXPRs to invariant form.
7816         (vn_valueize): New function.
7817         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7818         * tree-vrp.c (vrp_valueize): New function.
7819         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7820         to fold statements to constants.
7821         * tree-ssa-pre.c (eliminate): Properly guard propagation of
7822         function declarations.
7823         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7824         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7825
7826 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7827
7828         * config/h8300/predicates.md (jump_address_operand): Fix register
7829         mode check.
7830
7831 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
7832
7833         * doc/invoke.texi (max-stores-to-sink): Document.
7834         * params.h (MAX_STORES_TO_SINK): Define.
7835         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7836         if either vectorization or if-conversion is disabled.
7837         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7838         tree-vect-data-refs.c vect_equal_offsets.
7839         (dr_equal_offsets_p): New function.
7840         (find_data_references_in_bb): Remove static.
7841         * tree-data-ref.h (find_data_references_in_bb): Declare.
7842         (dr_equal_offsets_p): Likewise.
7843         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7844         (vect_drs_dependent_in_basic_block): Update calls to
7845         vect_equal_offsets.
7846         (vect_check_interleaving): Likewise.
7847         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7848         (cond_if_else_store_replacement): Rename to...
7849         (cond_if_else_store_replacement_1): ... this.  Change arguments and
7850         documentation.
7851         (cond_if_else_store_replacement): New function.
7852         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7853         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7854
7855 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
7856
7857         PR target/46934
7858         * config/arm/arm.md (casesi): Use the gen_int_mode() function
7859         to subtract lower bound instead of GEN_INT().
7860
7861 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
7862
7863         PR other/48179
7864         PR other/48221
7865         PR other/48234
7866         * doc/extend.texi (Alignment): Move section to match order in TOC.
7867         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7868         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7869
7870 2011-03-23  Jeff Law  <law@redhat.com>
7871
7872         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7873         before removing the edge.
7874
7875         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7876         it may have been freed by redirect_branch_edge or
7877         redirect_edge_succ_nodup.
7878
7879 2011-03-23  Richard Guenther  <rguenther@suse.de>
7880
7881         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7882         (check_va_list_escapes): Likewise.
7883         (check_all_va_list_escapes): Likewise.
7884
7885 2011-03-23  Richard Guenther  <rguenther@suse.de>
7886
7887         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7888         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7889         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7890         (alias.o): Likewise.
7891         (ipa-type-escape.o): Remove.
7892         (ipa-struct-reorg.o): Likewise.
7893         (GTFILES): Remove ipa-struct-reorg.c.
7894         * alias.c: Do not include ipa-type-escape.h.
7895         * tree-ssa-alias.c: Likewise.
7896         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7897         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7898         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7899         and ipa-type-escape passes.
7900         * tree-pass.h (pass_ipa_type_escape): Remove.
7901         (pass_ipa_struct_reorg): Likewise.
7902         * ipa-struct-reorg.h: Remove.
7903         * ipa-struct-reorg.c: Likewise.
7904         * ipa-type-escape.h: Likewise.
7905         * ipa-type-escape.c: Likewise.
7906         * doc/invoke.texi (-fipa-struct-reorg): Remove.
7907         (--param struct-reorg-cold-struct-ratio): Likewise.
7908         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7909         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7910         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7911
7912 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7913
7914         * config/s390/2084.md: Enable all insn reservations also for z9_ec
7915         cpu attribute value.
7916         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7917         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7918         * config/s390/s390.c (processor_flags_table): New constant array.
7919         (s390_handle_arch_option): Remove.
7920         (s390_handle_option): Remove s390_handle_arch_option invocations
7921         and OPT_mwarn_framesize_ handling.
7922         (s390_option_override): Remove s390_handle_arch_option invocation.
7923         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7924         warnings.
7925         * config/s390/s390.md (cpu attribute): Add z9_ec value.
7926         * config/s390/s390.opt (s390_tune, s390_arch)
7927         (march=): Replace s390_arch_option enum and values with
7928         processor_type.  Set variable name to s390_arch.  Set
7929         initialization value.
7930         (mtune=): Replace s390_arch_option with processor_type.  Set
7931         variable name to s390_tune.  Set initialization value.
7932
7933 2011-03-23  Julian Brown  <julian@codesourcery.com>
7934
7935         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7936         accesses which are not naturally aligned.
7937
7938 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7939
7940         PR target/47553
7941         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7942
7943 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7944
7945         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7946         parameter from "int" to "enum insn_code".
7947         (expand_operand_type): New enum.
7948         (expand_operand): New structure.
7949         (create_expand_operand): New function.
7950         (create_fixed_operand, create_output_operand): Likewise
7951         (create_input_operand, create_convert_operand_to): Likewise.
7952         (create_convert_operand_from, create_address_operand): Likewise.
7953         (create_integer_operand): Likewise.
7954         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7955         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7956         (expand_insn, expand_jump_insn): Likewise.
7957         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7958         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7959         (expand_movstr, expand_builtin___clear_cache): Likewise.
7960         (expand_builtin_lock_release): Likewise.
7961         * explow.c (allocate_dynamic_stack_space): Likewise.
7962         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
7963         and use the default handling in that case.
7964         * expmed.c (check_predicate_volatile_ok): Delete.
7965         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7966         (emit_cstore): Likewise.
7967         * expr.c (emit_block_move_via_movmem): Likewise.
7968         (set_storage_via_setmem, expand_assignment): Likewise.
7969         (emit_storent_insn, try_casesi): Likewise.
7970         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
7971         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7972         (expand_vec_shift_expr, expand_binop_directly): Likewise.
7973         (expand_twoval_unop, expand_twoval_binop): Likewise.
7974         (expand_unop_direct, emit_indirect_jump): Likewise.
7975         (emit_conditional_move, vector_compare_rtx): Likewise.
7976         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7977         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7978         (expand_sync_lock_test_and_set): Likewise.
7979         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
7980         (emit_unop_insn): Likewise.
7981         (expand_copysign_absneg): Change icode to an insn_code.
7982         (create_convert_operand_from_type): New function.
7983         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7984         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7985         (expand_insn, expand_jump_insn): Likewise.
7986         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7987         than const_int_operand for operand 2.
7988
7989 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7990
7991         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7992         if possible.
7993
7994 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7995
7996         * emit-rtl.c (emit_pattern_before_noloc): New function.
7997         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7998         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7999         (emit_pattern_after_noloc): New function.
8000         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8001         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8002
8003 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8004
8005         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8006         (__ffsDI2): Likewise.
8007
8008 2011-03-22  Richard Henderson  <rth@redhat.com>
8009
8010         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8011         of !TARGET_ABI_OPEN_VMS.
8012         (alpha_trampoline_init, alpha_start_function): Likewise.
8013         (alpha_expand_epilogue, alpha_file_start): Likewise.
8014         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8015         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8016         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8017         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8018         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8019
8020 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8021
8022         * config/s390/s390-opts.h: New.
8023         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8024         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8025         s390_stack_guard): Remove.
8026         (s390_handle_arch_option): Return void.  Take enum
8027         s390_arch_option value instead of string and searching array.
8028         (s390_handle_option): Don't assert that global structures are in
8029         use.  Access variables via opts pointer.  Use error_at.  Don't use
8030         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8031         s390_handle_arch_option.
8032         (s390_option_override): Update call to s390_handle_arch_option.
8033         (s390_emit_prologue): Use %d format for s390_stack_size in
8034         diagnostic.  Use %wd for HOST_WIDE_INT.
8035         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8036         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8037         * config/s390/s390.opt (config/s390/s390-opts.h): New
8038         HeaderInclude entry.
8039         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8040         s390_arch_flags, s390_warn_framesize): New Variable entries.
8041         (s390_arch_option): New Enum and EnumValue entries.
8042         (march=): Use Enum instead of Var.
8043         (mstack-guard=, mstack-size=): Use UInteger and Var.
8044         (mtune=): Use Enum.
8045
8046 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8047
8048         * config/score/score.c (score_handle_option): Don't assert that
8049         global structures are in use.  Access target_flags via opts
8050         pointer.  Use value of -march= option to determine target_flags
8051         settings.
8052         * config/score/score.opt (march=): Use Enum.
8053         (score_arch): New Enum and EnumValue entries.
8054
8055 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8056
8057         * config/mep/mep.c (option_mtiny_specified): Remove.
8058         (mep_option_override): Move register handling for -mivc2 from
8059         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8060         instead of option_mtiny_specified.
8061         (mep_handle_option): Access target_flags via opts pointer.  Don't
8062         assert that global structures are in use.  Defer part of -mivc2
8063         handling and move it to mep_option_override.
8064         * config/mep/mep.opt (IVC2): New Mask entry.
8065         (mivc2): Use Var and Defer instead of Mask.
8066
8067 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8068
8069         * config/v850/v850-opts.h: New.
8070         * config/v850/v850.c (small_memory): Replace with
8071         small_memory_physical_max array.  Make that array static const.
8072         (v850_handle_memory_option): Take integer value of argument.  Take
8073         gcc_options pointer, option text and location.  Return void.
8074         Update for changes to small memory structures.
8075         (v850_handle_option): Access target_flags via opts pointer.  Don't
8076         assert that global structures are in use.  Update calls to
8077         v850_handle_memory_option.
8078         (v850_encode_data_area): Update references to small memory settings.
8079         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8080         (enum small_memory_type): Move to v850-opts.h.
8081         * config/v850/v850.opt (config/v850/v850-opts.h): New
8082         HeaderInclude entry.
8083         (small_memory_max): New Variable entry.
8084         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8085         (mtda, mzda): Likewise.
8086
8087 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8088
8089         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8090         pointer.  Don't assert that global structures are in use.
8091
8092 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8093
8094         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8095         via opts pointer.  Don't assert that global structures are in use.
8096
8097 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8098
8099         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8100         (munix=93): Use Var.
8101         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8102         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8103         * config/pa/pa-opts.h: New.
8104         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8105         (pa_handle_option): Don't assert that global structures are in
8106         use.  Access target_flags via opts pointer.  Don't handle
8107         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8108         OPT_munix_98 here.
8109         (pa_option_override): Handle deferred OPT_mfixed_range_.
8110
8111 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8112
8113         * config/mn10300/mn10300-opts.h: New.
8114         * config/mn10300/mn10300.c (mn10300_processor,
8115         mn10300_tune_string): Remove.
8116         (mn10300_handle_option): Don't assert that global structures are
8117         in use.  Access mn10300_processor via opts pointer.  Don't handle
8118         OPT_mtune_ here.
8119         * config/mn10300/mn10300.h (enum processor_type): Move to
8120         mn10300-opts.h.
8121         (mn10300_processor): Remove.
8122         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8123         HeaderInclude entry.
8124         (mn10300_processor): New Variable entry.
8125         (mtune=): Use Var.
8126
8127 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8128
8129         * config/microblaze/microblaze.c: Don't include opts.h.
8130         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8131         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8132         (mno-clearbss): Use Var and Warn.
8133
8134 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8135
8136         * config/m32r/m32r-opts.h: New.
8137         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8138         (m32r_handle_option): Don't assert that global structures are in
8139         use.  Access target_flags and m32r_cache_flush_func via opts
8140         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8141         OPT_mno_flush_trap here.
8142         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8143         include of m32r-opts.h.
8144         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8145         HeaderInclude entry.
8146         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8147         (mmodel=): Use Enum and Var.
8148         (m32r_model): New Enum and EnumValue entries.
8149         (mno-flush-trap): Use Var.
8150         (msdata=): Use Enum and Var.
8151         (m32r_sdata): New Enum and EnumValue entries.
8152
8153 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8154
8155         * config/m32c/m32c.c: Don't include opts.h.
8156         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8157         m32c_handle_option): Remove.
8158         (m32c_option_override): Check global_options_set.x_target_memregs
8159         instead of target_memregs_set.
8160         * config/m32c/m32c.h (target_memregs): Remove.
8161         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8162         variable.
8163
8164 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8165
8166         * config/iq2000/iq2000-opts.h: New.
8167         * config/iq2000/iq2000.c: Don't include opts.h.
8168         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8169         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8170         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8171         HeaderInclude entry.
8172         (iq2000_tune): New Variable entry.
8173         (march=): Add comment.  Use Enum.
8174         (iq2000_arch): New Enum and EnumValue entries.
8175         (mcpu=): Use Enum and Var.
8176         (iq2000_tune): New Enum and EnumValue entries.
8177
8178 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8179
8180         * config/ia64/ia64-opts.h: New.
8181         * config/ia64/ia64.c (ia64_tune): Remove.
8182         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8183         here.  Use error_at.
8184         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8185         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8186         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8187         HeaderInclude entry.
8188         (ia64_tune): New Variable entry.
8189         (mfixed-range=): Use Defer and Var.
8190         (mtune=): Use Enum and Var.
8191         (ia64_tune): New Enum and EnumValue entries.
8192
8193 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8194
8195         * config/frv/frv-opts.h: New.
8196         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8197         frv-opts.h.
8198         (frv_cpu_type): Remove.
8199         * config/frv/frv.c: Don't include opts.h.
8200         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8201         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8202         (frv_cpu_type): New Variable entry.
8203         (frv_cpu): New Enum and EnumValue entries.
8204
8205 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8206
8207         * config/cris/cris.c (cris_handle_option): Access target_flags via
8208         opts pointer.  Don't assert that global structures are in use.
8209         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8210         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8211
8212 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8213
8214         * config/bfin/bfin-opts.h: New.
8215         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8216         bfin_si_revision, bfin_workarounds): Remove.
8217         (bfin_cpus): Make static const.
8218         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8219         not bfin_lib_id_given.
8220         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8221         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8222         pointer. Use error_at.  Don't assert that global structures are in use.
8223         * config/bfin/bfin.h: Include bfin-opts.h.
8224         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8225         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8226         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8227         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8228         entries.
8229
8230 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8231
8232         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8233         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8234         or -msoft-float here.
8235         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8236         -msoft-float and -mhard-float.
8237         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8238         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8239         msoft-float.
8240         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8241         -msoft-float.
8242         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8243         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8244         not mhard-float.
8245         (LIBGCC_SPEC): Don't handle -msoft-float.
8246         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8247         -mhard-float.
8248         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8249         msoft-float.
8250         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8251         -mfloat-abi=*, not -msoft-float and -mhard-float.
8252         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8253         -msoft-float.
8254         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8255         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8256         mhard-float and msoft-float.
8257         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8258         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8259         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8260         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8261         mhard-float.
8262         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8263         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8264         msoft-float.
8265         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8266         not mhard-float.
8267         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8268         not msoft-float.
8269
8270 2011-03-22  Richard Henderson  <rth@redhat.com>
8271
8272         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8273         TARGET_ABI_WINDOWS_NT.
8274         (alpha_output_function_end_prologue): Likewise.
8275         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8276         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8277         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8278         (trap, *movsi_nt_vms): Likewise.
8279         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8280         (*tablejump_osf_nt_internal): Remove.
8281         * config/alpha/predicates.md (input_operand): Only test Pmode.
8282
8283 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8284
8285         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8286         via opts pointer.  Use error_at.  Don't assert that global
8287         structures are in use.
8288
8289 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8290
8291         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8292         (ix86_handle_option): Access ix86_isa_flags and
8293         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8294         global structures are in use.
8295         (ix86_function_specific_save, ix86_function_specific_restore):
8296         Update ix86_isa_flags_explicit field name.
8297         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8298         (ix86_isa_flags_explicit): Rename TargetSave entry to
8299         x_ix86_isa_flags_explicit.
8300
8301 2011-03-22  Richard Henderson  <rth@redhat.com>
8302
8303         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8304         (alpha_option_override, direct_return): Likewise.
8305         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8306         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8307         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8308         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8309         (alpha_expand_epilogue, alpha_end_function): Likewise.
8310         (alpha_init_libfuncs): Likewise.
8311         (struct machine_function): Remove unicosmk members.
8312         (print_operand) ['t']: Remove.
8313         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8314         unicosmk_output_module_name, unicosmk_output_common,
8315         current_section_align, unicosmk_output_text_section_asm_op,
8316         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8317         unicosmk_section_type_flags, unicosmk_unique_section,
8318         unicosmk_asm_named_section, unicosmk_insert_attributes,
8319         unicosmk_output_align, unicosmk_defer_case_vector,
8320         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8321         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8322         unicosmk_output_ssib, unicosmk_add_call_info_word,
8323         unicosmk_extern_head, unicosmk_output_default_externs,
8324         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8325         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8326         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8327         * config/alpha/alpha-protos.h: Update.
8328         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8329         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8330         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8331         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8332         (*mulsi_se, mulvsi3): Likewise.
8333         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8334         (*divmodsi_internal, call, call_value, realign): Likewise.
8335         (moddi3, umoddi3): Likewise; remove duplicate expander.
8336         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8337         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8338         (*movdi_nofix): Remove r/U alternative.
8339         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8340         * config/alpha/constraints.md ("U"): Remove.
8341         * config/alpha/predicates.md (call_operand"): Don't test
8342         TARGET_ABI_UNICOSMK.
8343
8344 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8345
8346         * target.def (handle_option): Take gcc_options and
8347         cl_decoded_option pointers and location_t.
8348         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8349         * doc/tm.texi: Regenerate.
8350         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8351         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8352         * lto-opts.c (lto_reissue_options): Generate option structure for
8353         targetm.handle_option call.
8354         * opts.c (target_handle_option): Update call to
8355         targetm.handle_option.  Remove assertions about values now passed
8356         down to hook.
8357         * targhooks.c (default_target_handle_option): New.
8358         * targhooks.h (default_target_handle_option): Declare.
8359         * config/alpha/alpha.c: Include opts.h.
8360         (alpha_handle_option): Update to new hook interface.
8361         * config/arm/arm.c: Include opts.h.
8362         (arm_handle_option): Update to new hook interface.
8363         * config/arm/t-arm (arm.o): Update dependencies.
8364         * config/bfin/bfin.c: Include opts.h.
8365         (bfin_handle_option): Update to new hook interface.
8366         * config/cris/cris.c: Include opts.h.
8367         (cris_handle_option): Update to new hook interface.
8368         * config/frv/frv.c: Include opts.h.
8369         (frv_handle_option): Update to new hook interface.
8370         * config/i386/i386.c: Include opts.h.
8371         (ix86_handle_option): Update to new hook interface.
8372         (ix86_valid_target_attribute_inner_p): Generate option structure
8373         for call to ix86_handle_option.
8374         * config/i386/t-i386 (i386.o): Update dependencies.
8375         * config/ia64/ia64.c: Include opts.h.
8376         (ia64_handle_option): Update to new hook interface.
8377         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8378         * config/iq2000/iq2000.c: Include opts.h.
8379         (iq2000_handle_option): Update to new hook interface.
8380         * config/m32c/m32c.c: Include opts.h.
8381         (m32c_handle_option): Update to new hook interface.
8382         * config/m32r/m32r.c: Include opts.h.
8383         (m32r_handle_option): Update to new hook interface.
8384         * config/m68k/m68k.c: Include opts.h.
8385         (m68k_handle_option): Update to new hook interface.
8386         * config/mep/mep.c: Include opts.h.
8387         (mep_handle_option): Update to new hook interface.
8388         * config/microblaze/microblaze.c: Include opts.h.
8389         (microblaze_handle_option): Update to new hook interface.
8390         * config/mips/mips.c: Include opts.h.
8391         (mips_handle_option): Update to new hook interface.
8392         * config/mn10300/mn10300.c: Include opts.h.
8393         (mn10300_handle_option): Update to new hook interface.
8394         * config/pa/pa.c: Include opts.h.
8395         (pa_handle_option): Update to new hook interface.
8396         * config/pdp11/pdp11.c: Include opts.h.
8397         (pdp11_handle_option): Update to new hook interface.
8398         * config/rs6000/rs6000.c: Include opts.h.
8399         (rs6000_handle_option): Update to new hook interface.
8400         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8401         * config/rx/rx.c: Include opts.h.
8402         (rx_handle_option): Update to new hook interface.
8403         * config/s390/s390.c: Include opts.h.
8404         (s390_handle_option): Update to new hook interface.
8405         * config/score/score.c: Include opts.h.
8406         (score_handle_option): Update to new hook interface.
8407         * config/sh/sh.c: Include opts.h.
8408         (sh_handle_option): Update to new hook interface.
8409         * config/sparc/sparc.c: Include opts.h.
8410         (sparc_handle_option): Update to new hook interface.
8411         * config/v850/v850.c: Include opts.h.
8412         (v850_handle_option): Update to new hook interface.
8413
8414 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8415
8416         * gcc.c (driver_unknown_option_callback): Only permit and save
8417         unknown -Wno- options.
8418         (driver_wrong_lang_callback): Save options directly instead of via
8419         driver_unknown_option_callback.
8420
8421 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8422
8423         * combine.c (simplify_set): Try harder to find the best CC mode when
8424         simplifying a nested COMPARE on the RHS.
8425
8426 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8427
8428         * config/alpha/gnu.h: Remove.
8429         * config/arc: Remove directory.
8430         * config/arm/netbsd.h: Remove.
8431         * config/arm/t-pe: Remove.
8432         * config/crx: Remove directory.
8433         * config/i386/netbsd.h: Remove.
8434         * config/m68hc11: Remove directory.
8435         * config/m68k/uclinux-oldabi.h: Remove.
8436         * config/mcore/mcore-pe.h: Remove.
8437         * config/mcore/t-mcore-pe: Remove.
8438         * config/netbsd-aout.h: Remove.
8439         * config/rs6000/gnu.h: Remove.
8440         * config/sh/sh-symbian.h: Remove.
8441         * config/sh/symbian-base.c: Remove.
8442         * config/sh/symbian-c.c: Remove.
8443         * config/sh/symbian-cxx.c: Remove.
8444         * config/sh/symbian-post.h: Remove.
8445         * config/sh/symbian-pre.h: Remove.
8446         * config/sh/t-symbian: Remove.
8447         * config/svr3.h: Remove.
8448         * config/vax/netbsd.h: Remove.
8449         * config.build: Don't handle i[34567]86-*-pe.
8450         * config.gcc: Remove handling of deprecations for most deprecated
8451         targets.
8452         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8453         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8454         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8455         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8456         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8457         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8458         Remove cases.
8459         * config.host: Don't handle i[34567]86-*-pe.
8460         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8461         (ASM_SPEC32): Don't handle -mcall-gnu.
8462         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8463         -mcall-gnu.
8464         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8465         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8466         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8467         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8468         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8469         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8470         conditional on SYMBIAN.
8471         * configure.ac: Don't handle powerpc*-*-gnu*.
8472         * configure: Regenerate.
8473         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8474         * doc/install-old.texi (m6811, m6812): Don't mention.
8475         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8476         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8477         (m68k-uclinuxoldabi): Don't mention.
8478         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8479         Remove.
8480         (-mcall-gnu): Remove.
8481         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8482         families): Remove constraint documentation.
8483
8484 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8485
8486         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8487         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8488         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8489
8490 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8491
8492         PR target/48226
8493         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8494         vector when peeking at the next token for vector, don't expand the
8495         keywords.
8496
8497 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8498
8499         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8500         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8501         * config/avr/avr.c (init_cumulative_args)
8502         (avr_function_arg_advance): Use it.
8503         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8504         sibcall epilogues.
8505         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8506         (avr_function_ok_for_sibcall): ...this new function.
8507         (avr_lookup_function_attribute1): New static Function.
8508         (avr_naked_function_p, interrupt_function_p)
8509         (signal_function_p, avr_OS_task_function_p)
8510         (avr_OS_main_function_p): Use it.
8511         * config/avr/avr.md ("sibcall", "sibcall_value")
8512         ("sibcall_epilogue"): New expander.
8513         ("*call_insn", "*call_value_insn"): New insn.
8514         ("call_insn", "call_value_insn"): Remove
8515         ("call", "call_value", "epilogue"): Change expander to handle
8516         sibling calls.
8517
8518 2011-03-21  Nick Clifton  <nickc@redhat.com>
8519
8520         * doc/invoke.texi (Overall Options): Move closing brace to end of
8521         options list.
8522         (Optimization Options): Add missing @gol.
8523         (Directory Options): Likewise.
8524         (i386 and x86-64 Options): Likewise.
8525         (RS6000 and PowerPC Options): Likewise.
8526         (i386 and x86-64 Windows Options): Likewise.
8527         (V850 Options): Add text missing from descriptions.
8528
8529 2011-03-22  Richard Henderson  <rth@redhat.com>
8530
8531         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8532         (avr_incoming_return_addr_rtx): New.
8533         (emit_push_byte): New.
8534         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8535         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8536         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8537         (emit_pop_byte): New.
8538         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8539         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8540         (INCOMING_RETURN_ADDR_RTX): New.
8541         (INCOMING_FRAME_SP_OFFSET): New.
8542         (ARG_POINTER_CFA_OFFSET): New.
8543         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8544         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8545         (pophi): Remove.
8546
8547         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8548
8549 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8550
8551         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8552         (FUNCTION_ARG_ADVANCE): Likewise.
8553         * tm.texi.in: Change references to them to hook references.
8554         * tm.texi: Regenerate.
8555         * targhooks.c (default_function_arg): Eliminate check for target
8556         macro.
8557         (default_function_incoming_arg): Likewise.
8558         (default_function_arg_advance): Likewise.
8559         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8560         (function_arg_advance): Likewise.
8561         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8562
8563 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8564
8565         * tree.c (build_call_1): New function.
8566         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8567
8568 2011-03-22  Richard Guenther  <rguenther@suse.de>
8569
8570         PR tree-optimization/48228
8571         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8572         for single-arg PHIs.
8573
8574 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8575
8576         PR rtl-optimization/48143
8577         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8578         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8579         sse2_cvtps2pd): Likewise.
8580
8581 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8582
8583         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8584
8585 2011-03-22  Richard Guenther  <rguenther@suse.de>
8586
8587         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8588         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8589         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8590         and REALIGN_LOAD_EXPR.
8591         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8592         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8593         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8594         DOT_PROD_EXPR case ...
8595         (expand_expr_real_2): ... here.
8596         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8597         and REALIGN_LOAD_EXPR.
8598         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8599         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8600         (vect_create_epilog_for_reduction): Likewise.
8601         (vectorizable_reduction): Likewise.
8602         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8603         * tree-vect-stmts.c (vectorizable_load): Likewise.
8604
8605 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8606
8607         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8608
8609 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8610
8611         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8612         handling for PLTOFF/GOTOFF.
8613
8614 2011-03-22  Nick Clifton  <nickc@redhat.com>
8615
8616         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8617         trailing backslash from the end of the macro definition.
8618
8619 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8620
8621         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8622         and PLT unspecs.
8623
8624 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8625
8626         * expr.h (prepare_operand): Move to...
8627         * optabs.h (prepare_operand): ...here and change the insn code
8628         parameter from "int" to "enum insn_code".
8629         (insn_operand_matches): Declare.
8630         * expr.c (init_expr_target): Use insn_operand_matches.
8631         (compress_float_constant): Likewise.
8632         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8633         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8634         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8635         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8636         Likewise.
8637         (gen_cond_trap): Likewise.
8638         (prepare_operand): Likewise.  Change icode to an insn_code.
8639         (insn_operand_matches): New function.
8640         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8641         * reload1.c (gen_reload): Likewise.
8642         * targhooks.c (default_secondary_reload): Likewise.
8643
8644 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8645
8646         * config/alpha/alpha.md (unspec): New define_c_enum.
8647         (unspecv): Ditto.
8648
8649 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8650
8651         PR debug/48214
8652         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8653         between a call and its CALL_ARG_LOCATION note.
8654
8655 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8656
8657         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8658
8659 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8660
8661         PR c/42544
8662         PR c/48197
8663         * c-common.c (shorten_compare): If primopN is first sign-extended
8664         to opN and then zero-extended to result type, set primopN to opN.
8665
8666 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8667
8668         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8669         for barrier handlers.
8670
8671 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8672
8673         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8674         UNSPEC constants to be in the unspec enumeration, and redefine
8675         all UNSPECV constants to be in the unspecv enumeration, so that
8676         dumps print which unspec/unspec_volatile this is.
8677         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8678         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8679         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8680         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8681         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8682
8683         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8684         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8685         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8686         * config/rs6000/sync.md (isync, lwsync): Ditto.
8687
8688 2011-03-21  Richard Guenther  <rguenther@suse.de>
8689
8690         * params.def (lto-min-partition): Fix typo.
8691
8692 2011-03-21  Richard Guenther  <rguenther@suse.de>
8693
8694         PR c/47939
8695         * c-decl.c (grokdeclarator): Drop to the main variant only
8696         for array types.  Drop flag_gen_aux_info check.
8697
8698 2011-03-21  Richard Guenther  <rguenther@suse.de>
8699
8700         PR translation/47911
8701         * params.def (lto-partitions): Fix typo.
8702         (lto-min-partition): Fix wording.
8703
8704 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
8705
8706         * config/rs6000/t-freebsd: Remove duplication from file.
8707
8708 2011-03-21  Richard Guenther  <rguenther@suse.de>
8709
8710         PR middle-end/47661
8711         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8712
8713 2011-03-21  Richard Guenther  <rguenther@suse.de>
8714
8715         PR lto/48210
8716         * params.def (lto-partitions): Require at least 1 partition.
8717
8718 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8719
8720         * gthr-solaris.h: Remove.
8721         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8722         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8723         (LIB_SPEC): Likewise.
8724         * config/sol2.opt (threads): Remove.
8725         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8726         (sparc*-*-solaris2*): Likewise.
8727         * configure.ac (enable_threads): Enable solaris support.
8728         * configure: Regenerate.
8729         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8730         * doc/install.texi (Configuration, --enable-threads=lib): Remove
8731         solaris.
8732
8733 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8734
8735         * config.gcc: Obsolete *-*-solaris2.8*.
8736         * doc/install.texi (Specific, *-*-solaris2*): Document it.
8737
8738 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8739
8740         PR bootstrap/48135
8741         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8742         reference.  Solaris 8 perl works.
8743
8744 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8745
8746         PR bootstrap/48135
8747         * doc/install.texi (Prerequisites): Move jar etc. up.
8748         Explain support library version requirements.
8749
8750 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8751
8752         PR bootstrap/48135
8753         * doc/install.texi (Prerequisites): Move Perl to build
8754         requirements.  Always necessary on Solaris 2 with Sun ld.
8755
8756 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8757
8758         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8759         binutils 2.21.
8760         (Specific, i?86-*-solaris2.[89]): Likewise.
8761         (Specific, i?86-*-solaris2.10): Likewise.
8762         (Specific, mips-sgi-irix6): Likewise.
8763         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8764         Update for binutils 2.21.
8765
8766 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8767
8768         * configure.ac (gcc_cv_lto_plugin): Fix typo.
8769         Allow -fuse-linker-plugin for non-default plugin linker.
8770         * configure: Regenerate.
8771
8772 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8773
8774         PR bootstrap/48167
8775         * gengtype.c (files_rules): Added rule for cp/parser.h.
8776
8777 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8778
8779         PR target/48213
8780         * config/s390/s390.c (s390_delegitimize_address): Don't call
8781         lowpart_subreg if orig_x has BLKmode.
8782
8783 2011-03-21  Kai Tietz  <ktietz@redhat.com>
8784
8785         PR target/12171
8786         * doc/plugins.texi: Adjust documentation for plugin register_callback.
8787         * tree.h (attribute_spec): Add new member affects_type_identity.
8788         * attribs.c (empty_attribute_table): Adjust attribute_spec
8789         initializers.
8790         * config/alpha/alpha.c: Likewise.
8791         * config/arc/arc.c: Likewise.
8792         * config/arm/arm.c: Likewise.
8793         * config/avr/avr.c: Likewise.
8794         * config/bfin/bfin.c: Likewise.
8795         * config/crx/crx.c: Likewise.
8796         * config/darwin.h: Likewise.
8797         * config/h8300/h8300.c: Likewise.
8798         * config/i386/cygming.h: Likewise.
8799         * config/i386/i386.c: Likewise.
8800         * config/ia64/ia64.c: Likewise.
8801         * config/m32c/m32c.c: Likewise.
8802         * config/m32r/m32r.c: Likewise.
8803         * config/m68hc11/m68hc11.c: Likewise.
8804         * config/m68k/m68k.c: Likewise.
8805         * config/mcore/mcore.c: Likewise.
8806         * config/mep/mep.c: Likewise.
8807         * config/microblaze/microblaze.c: Likewise.
8808         * config/mips/mips.c: Likewise.
8809         * config/rs6000/rs6000.c: Likewise.
8810         * config/rx/rx.c: Likewise.
8811         * config/sh/sh.c: Likewise.
8812         * config/sol2.h: Likewise.
8813         * config/sparc/sparc.c: Likewise.
8814         * config/spu/spu.c: Likewise.
8815         * config/stormy16/stormy16.c: Likewise.
8816         * config/v850/v850.c: Likewise.
8817
8818 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
8819
8820         * simplify-rtx.c (simplify_binary_operation_1): Handle
8821         (xor (and A B) C) case when B and C are both constants.
8822
8823 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
8824
8825         * tree-dfa.c (add_referenced_var): Fix typo in comment.
8826
8827 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
8828
8829         PR bootstrap/48168
8830         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8831
8832 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
8833
8834         PR rtl-optimization/48156
8835         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8836         assume df and df_lr are not NULL.
8837
8838 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8839
8840         PR debug/48023
8841         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8842         between a call and its CALL_ARG_LOCATION note.
8843
8844 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8845
8846         PR debug/48178
8847         * config/sh/sh.c (find_barrier): Don't emit a constant pool
8848         between a call and its corresponding CALL_ARG_LOCATION note.
8849
8850 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
8851
8852         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8853         instead of loop. Use HARD_REGISTER_NUM_P predicate.
8854         * haifa-sched.c (setup_ref_regs): Ditto.
8855         * caller-save.c (add_used_regs_1): Ditto.
8856         * dse.c (look_for_hardregs): Ditto.
8857         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8858         * sched-rgn.c (check_live_1): Ditto.
8859
8860 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8861
8862         * c-decl.c (diagnose_mismatched_decls): Give an error for
8863         redefining a typedef with variably modified type.
8864
8865 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8866
8867         * c-decl.c (grokfield): Don't allow typedefs for structures or
8868         unions with no tag by default.
8869         * doc/extend.texi (Unnamed Fields): Update.
8870
8871 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
8872
8873         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8874         Rewrite using indirect functions.
8875         (lwp_slwpcb): Ditto.
8876         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8877         (avx_vinsertf128<mode>): Ditto.
8878
8879 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8880
8881         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8882         unspecs.
8883
8884 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8885
8886         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8887         splitting between a call and its corresponding CALL_ARG_LOCATION note.
8888
8889 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8890
8891         PR rtl-optimization/48170
8892         * gcse.c (hoist_code): Remove bogus asserts.
8893
8894 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
8895
8896         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8897         computation for prologue/epilogue.
8898
8899 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8900
8901         * Makefile.in (check-consistency): Remove.
8902
8903 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
8904
8905         PR debug/48176
8906         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8907         arange_table_in_use is 0, but either text_section_used or
8908         cold_text_section_used is true.  Don't call it if
8909         !info_section_emitted.
8910
8911 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
8912
8913         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8914         FUNCTION_VALUE_REGNO_P): Remove.
8915         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8916         Remove.
8917         * config/avr/avr.c (avr_ret_register): Make static inline.
8918         (avr_function_value_regno_p): New function.
8919         (avr_libcall_value): Make static. Add 'func' argument.
8920         (avr_function_value): Make static. Rename 'func' argument to
8921         'fn_decl_or_type', forward it to avr_libcall_value. Call
8922         avr_ret_register function instead of RET_REGISTER macro.
8923         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8924
8925 2011-03-18  Jason Merrill  <jason@redhat.com>
8926
8927         PR c++/23372
8928         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8929
8930 2011-03-18  Richard Guenther  <rguenther@suse.de>
8931
8932         * doc/install.texi (--enable-gold): Remove.
8933         (--with-plugin-ld): Document.
8934         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8935
8936 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
8937
8938         PR middle-end/47790
8939         * expr.c (optimize_bitfield_assignment_op): Revamp to work
8940         again after expansion changes.
8941
8942 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
8943
8944         * combine.c (try_combine): Do simplification only call of
8945         subst() on i2 even when i1 is present. Update comments.
8946
8947 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8948
8949         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8950         and UNSPEC_PCREL_SYMOFF.
8951
8952 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8953
8954         * config/s390/s390.md: Use define_c_enum for the unspec constant
8955         definitions.
8956
8957 2011-03-18  Richard Henderson  <rth@redhat.com>
8958             Jakub Jelinek  <jakub@redhat.com>
8959
8960         PR bootstrap/48161
8961         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8962         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8963
8964 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8965
8966         PR middle-end/47725
8967         * combine.c (cant_combine_insn_p): Don't check zero/sign
8968         extended hard registers.
8969
8970 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8971
8972         PR middle-end/47725
8973         * combine.c (cant_combine_insn_p): Check zero/sign extended
8974         hard registers.
8975
8976 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
8977
8978         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8979         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8980         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8981         Change return type to bool.
8982         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8983
8984 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8985
8986         PR debug/48163
8987         * var-tracking.c (prepare_call_arguments): If CALL target
8988         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8989         pc instead of looking it up using cselib_lookup and use
8990         Pmode for it if x has VOIDmode.
8991         * dwarf2out.c (gen_subprogram_die): If also both first and
8992         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8993
8994         PR debug/48163
8995         * function.c (assign_parms): For data.passed_pointer parms
8996         use MEM of data.entry_parm instead of data.entry_parm itself
8997         as DECL_INCOMING_RTL.
8998         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8999         also when passed and declared mode is the same, DECL_RTL
9000         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9001         a MEM too.
9002
9003 2011-03-16  Jeff Law  <law@redhat.com>
9004
9005         PR rtl-optimization/37273
9006         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9007         handle them like argument loads from stack slots.  Do not double
9008         count memory for memory constants and argument loads from stack slots.
9009
9010 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9011
9012         PR debug/48160
9013         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9014
9015 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9016
9017         PR target/48171
9018         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9019
9020 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9021
9022         PR bootstrap/48153
9023         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9024         if dwarf_strict.
9025         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9026         Clear call_arg_locations and call_arg_loc_last always.
9027
9028         PR middle-end/48152
9029         * var-tracking.c (prepare_call_arguments): If argument needs to be
9030         passed by reference, adjust argtype and mode.
9031
9032 2011-03-17  Richard Guenther  <rguenther@suse.de>
9033
9034         PR middle-end/48134
9035         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9036         a value make sure to fold the statement.
9037
9038 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9039
9040         PR target/43872
9041         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9042         return condition with !cfun->calls_alloca.
9043
9044 2011-03-17  Richard Guenther  <rguenther@suse.de>
9045
9046         PR bootstrap/48148
9047         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9048         origin for decls in other ltrans units.
9049         (input_varpool_node): Likewise.
9050
9051 2011-03-17  Richard Guenther  <rguenther@suse.de>
9052
9053         PR middle-end/48165
9054         * tree-object-size.c (compute_object_offset): Properly return
9055         the offset operand of MEM_REFs as sizetype.
9056
9057 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9058
9059         PR rtl-optimization/48141
9060         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9061         * dse.c: Include params.h.
9062         (active_local_stores_len): New variable.
9063         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9064         to NULL.
9065         (record_store, check_mem_read_rtx): Decrease it when removing
9066         from the chain.
9067         (scan_insn): Likewise.  Increase it when adding to chain, if it
9068         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9069         set active_local_stores to NULL before the addition.
9070         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9071
9072         PR rtl-optimization/48141
9073         * dse.c (record_store): If no positions are needed in an insn
9074         that cannot be deleted, at least unchain it from active_local_stores.
9075
9076 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9077
9078         PR debug/47510
9079         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9080         (lookup_type_die_strip_naming_typedef): ... here.
9081         (get_context_die): Use it.
9082         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9083         the anonymous struct named by the naming typedef.
9084
9085 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9086
9087         PR target/48154
9088         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9089         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9090
9091 2011-03-16  Jeff Law  <law@redhat.com>
9092
9093         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9094         check for operands of conditional.  Allow type to be a pointer.
9095
9096 2011-03-16  Richard Guenther  <rguenther@suse.de>
9097
9098         PR tree-optimization/48149
9099         * fold-const.c (fold_binary_loc): Fold
9100         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9101
9102 2011-03-16  Richard Guenther  <rguenther@suse.de>
9103
9104         PR tree-optimization/26134
9105         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9106         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9107         (non_rewritable_mem_ref_base): Handle complex type component
9108         accesses, constrain offsets for vector and complex extracts
9109         more properly.
9110
9111 2011-03-16  Richard Guenther  <rguenther@suse.de>
9112
9113         PR tree-optimization/48146
9114         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9115         operands avoiding the need for renaming.
9116
9117 2011-03-16  Richard Guenther  <rguenther@suse.de>
9118
9119         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9120         constant folding.  Move MEM_REF canonicalization first.
9121         Rely on fold_const_aggregate_ref for initializer folding.
9122         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9123
9124 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9125
9126         PR middle-end/48136
9127         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9128         arg0/arg1 or their arguments are always fold converted to matching
9129         types.
9130
9131         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9132         to nargs.
9133
9134 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9135
9136         PR lto/46944
9137         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9138         Handle in-tree gold.
9139         (ld_vers): Extract binutils version for gold.
9140         (gcc_cv_ld_hidden): Handle gold here.
9141         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9142         * configure: Regenerate.
9143         * config.in: Regenerate.
9144         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9145         -fuse-linker-plugin otherwise.
9146         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9147         (LINK_COMMAND_SPEC): Use it.
9148         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9149
9150 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9151
9152         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9153         * calls.c: Remove debug.h include.
9154         (emit_call_1): Don't call virtual_call_token debug hook.
9155         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9156         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9157         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9158         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9159         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9160         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9161         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9162         dwarf2out_virtual_call): Remove.
9163         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9164         copy_call_info and virtual_call hooks.
9165         (dwarf2out_init): Don't initialize vcall_insn_table,
9166         debug_dcall_section and debug_vcall_section.
9167         (prune_unused_types): Don't mark nodes from dcall_table.
9168         (dwarf2out_finish): Don't output dcall or vcall tables.
9169         * final.c (final_scan_insn): Don't call direct_call or
9170         virtual_call debug hooks.
9171         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9172         virtual_call_token, copy_call_info and virtual_call hooks.
9173         (debug_nothing_uid): Remove prototype.
9174         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9175         copy_call_info and virtual_call hooks.
9176         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9177         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9178         * debug.c (do_nothing_debug_hooks): Likewise.
9179         (debug_nothing_uid): Remove.
9180         * doc/invoke.texi (-fenable-icf-debug): Remove.
9181         * common.opt (-fenable-icf-debug): Likewise.
9182
9183         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9184         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9185         call's MEM.  Handle functions returning aggregate through a hidden
9186         first pointer.  For virtual calls add clobbered pc to call arguments
9187         chain.
9188         * dwarf2out.c (gen_subprogram_die): Emit
9189         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9190         can't be emitted.
9191
9192         PR debug/45882
9193         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9194         * rtl.h (ENTRY_VALUE_EXP): Define.
9195         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9196         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9197         * print-rtl.c (print_rtx): Likewise.
9198         * gengtype.c (adjust_field_rtx_def): Likewise.
9199         * var-tracking.c (vt_add_function_parameter): Adjust
9200         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9201         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9202         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9203         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9204         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9205
9206         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9207         Call var_location debug hook even on CALL_INSNs.
9208         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9209         * rtl.def (ENTRY_VALUE): New.
9210         * dwarf2out.c: Include cfglayout.h.
9211         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9212         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9213         (struct call_arg_loc_node): New type.
9214         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9215         tail_call_site_count): New variables.
9216         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9217         DW_TAG_GNU_call_site_parameter.
9218         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9219         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9220         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9221         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9222         and DW_AT_GNU_all_source_call_sites.
9223         (mem_loc_descriptor): Handle ENTRY_VALUE.
9224         (add_src_coords_attributes): Don't add enything if
9225         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9226         (dwarf2out_abstract_function): Save and clear call_arg_location,
9227         call_site_count and tail_call_site_count around dwarf2out_decl call.
9228         (gen_call_site_die): New function.
9229         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9230         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9231         (dwarf2out_function_decl): Clear call_arg_locations,
9232         call_arg_loc_last, set call_site_count and tail_call_site_count
9233         to -1 and free block_map.
9234         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9235         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9236         followed by any real instructions.
9237         (dwarf2out_begin_function): Set call_site_count and
9238         tail_call_site_count to 0.
9239         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9240         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9241         attempt to force a DIE for it and worst case remove the attribute.
9242         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9243         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9244         the decl itself.
9245         * var-tracking.c: Include tm_p.h.
9246         (vt_stack_adjustments): For calls call note_register_arguments.
9247         (argument_reg_set): New variable.
9248         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9249         ensure the VALUE is resolved.
9250         (call_arguments): New variable.
9251         (prepare_call_arguments): New function.
9252         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9253         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9254         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9255         always use the best expression.
9256         (vt_expand_loc): Add ignore_cur_loc argument.
9257         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9258         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9259         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9260         note for all calls.
9261         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9262         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9263         argument.  Don't call cselib_preserve_only_values and
9264         cselib_reset_table.
9265         (note_register_arguments): New function.
9266         (vt_initialize): Compute argument_reg_set.  Call
9267         vt_add_function_parameters before processing basic blocks instead of
9268         afterwards.  For calls call prepare_call_arguments before calling
9269         cselib_process_insn.
9270         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9271         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9272         (var-tracking.o): Depend on $(TM_P_H).
9273         * cfglayout.h (insn_scope): New prototype.
9274         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9275         * cfglayout.c (insn_scope): No longer static.
9276         * insn-notes.def (CALL_ARG_LOCATION): New.
9277         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9278         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9279         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9280         nothing for DECL_EXTERNAL BLOCK_VARS.
9281
9282 2011-03-16  Alan Modra  <amodra@gmail.com>
9283
9284         PR target/45844
9285         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9286         create invalid offset address for vsx splat insn.
9287         * config/rs6000/predicates.md (splat_input_operand): New.
9288         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9289
9290 2011-03-15  Xinliang David Li  <davidxl@google.com>
9291
9292         PR c/47837
9293         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9294         (normalize_preds): New function.
9295         (is_use_properly_guarded): Normalize def predicates.
9296
9297 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9298
9299         PR target/46788
9300         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9301         in the output template.
9302
9303 2011-03-15  Richard Guenther  <rguenther@suse.de>
9304
9305         PR middle-end/47650
9306         * tree-pretty-print.c (dump_function_declaration): Properly
9307         dump unprototyped and varargs function types.
9308
9309 2011-03-15  Richard Guenther  <rguenther@suse.de>
9310
9311         PR tree-optimization/13954
9312         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9313         and friends.
9314
9315 2011-03-15  Richard Guenther  <rguenther@suse.de>
9316
9317         PR tree-optimization/48037
9318         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9319         selects into BIT_FIELD_REFs.
9320         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9321         vector select.
9322
9323 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9324
9325         PR tree-optimization/48129
9326         * builtins.c (fold_builtin_snprintf): Convert to type of
9327         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9328         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9329
9330 2011-03-15  Richard Guenther  <rguenther@suse.de>
9331
9332         PR tree-optimization/41490
9333         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9334         value but with VUSE.
9335         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9336         return statements.
9337         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9338         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9339         * tree-tailcall.c (find_tail_calls): Ignore returns.
9340
9341 2011-03-15  Richard Guenther  <rguenther@suse.de>
9342
9343         PR middle-end/48031
9344         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9345         or variable-indexed array accesses when in gimple form.
9346
9347 2011-03-15  Richard Guenther  <rguenther@suse.de>
9348
9349         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9350
9351 2011-03-15  Alan Modra  <amodra@gmail.com>
9352
9353         PR target/48032
9354         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9355         presume symbol_refs without a symbol_ref_decl are suitably
9356         aligned, nor other trees we may see here.  Handle anchor symbols.
9357         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9358         Check cmodel=medium addresses.  Adjust all calls.
9359         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9360         creating cmodel=medium optimized access to locals.
9361         * config/rs6000/constraints.md (R): Pass QImode to
9362         legitimate_constant_pool_address_p.
9363         * config/rs6000/predicates.md (input_operand): Pass mode to
9364         legitimate_constant_pool_address_p.
9365         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9366         Update prototype.
9367
9368 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9369
9370         PR target/48053
9371         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9372         64-bit constants being loaded into registers other than GPRs such
9373         as loading 0 into a VSX register.
9374
9375 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9376
9377         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9378
9379 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9380
9381         PR middle-end/47917
9382         * builtins.c (fold_builtin_snprintf): New function.
9383         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9384         (fold_builtin_4): Likewise.
9385
9386         PR middle-end/38878
9387         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9388         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9389         and C - X == X also strip nops from +/-/p+ operand.
9390         When optimizing -X == C, fold C to arg0's type.
9391
9392         PR debug/47946
9393         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9394         emit it as add_AT_int instead of add_AT_unsigned.
9395
9396 2011-03-14  Tom Tromey  <tromey@redhat.com>
9397
9398         * unwind-dw2.c: Include sys/sdt.h if it exists.
9399         (_Unwind_DebugHook): Use STAP_PROBE2.
9400         * config.in, configure: Rebuild.
9401         * configure.ac: Check for sys/sdt.h.
9402
9403 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9404
9405         * config/i386/i386.md (ROUND_FLOOR): New constant.
9406         (ROUND_CEIL): Ditto.
9407         (ROUND_TRUNC): Ditto.
9408         (ROUND_MXCSR): Ditto.
9409         (ROUND_NO_EXC): Ditto.
9410         (rint<mode>2): Use new defines instead of numerical constants.
9411         (floor<mode>2): Ditto.
9412         (ceil<mode>2): Ditto.
9413         (btrunc<mode>2): Ditto.
9414         * config/i386/i386-builtin-types.def: Define ROUND function type
9415         aliases.
9416         * config/i386/i386.c (enum ix86_builtins): Add
9417         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9418         (struct builtin_description): Add
9419         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9420         (ix86_expand_sse_round): New static function.
9421         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9422         function types.
9423         (ix86_builtin_vectorized_function): Handle
9424         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9425
9426 2011-03-14  Tom Tromey  <tromey@redhat.com>
9427
9428         * c-parser.c (c_parser_asm_string_literal): Clear
9429         warn_overlength_strings.
9430
9431 2011-03-14  Tom Tromey  <tromey@redhat.com>
9432
9433         * c-parser.c (disable_extension_diagnostics): Save
9434         warn_overlength_strings.
9435         (restore_extension_diagnostics): Restore warn_overlength_strings.
9436
9437 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9438
9439         * BASE-VER: Change to 4.7.0.
9440
9441 2011-03-14  Richard Guenther  <rguenther@suse.de>
9442
9443         PR middle-end/48098
9444         * tree.c (build_vector_from_val): Adjust assert to requirements
9445         and reality.
9446
9447 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9448
9449         PR bootstrap/48102
9450         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9451
9452 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9453
9454         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9455         terms of target_flags_explicit. Adjust copyright year.
9456
9457         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9458         * config/rs6000/t-freebsd: New file. Add override for
9459         LIB2FUNCS_EXTRA.
9460
9461 2011-03-13  Chris Demetriou  <cgd@google.com>
9462
9463         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9464         (-fno-diagnostics-show-option): this, to reflect current default.
9465         (-Werror=): Update text about -fno-diagnostics-show-option.
9466
9467 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9468
9469         PR target/48053
9470         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9471         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9472         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9473         mode is not V2DImode or V2DFmode.
9474         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9475         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9476         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9477         registers to 0.
9478         (movdi_internal64): Likewise.
9479
9480 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9481
9482         PR tree-optimization/47127
9483         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9484         parameter.
9485         (set_cloog_options): Same.
9486         (scop_to_clast): Same.
9487         (print_clast_stmt): Do not call cloog_state_malloc and
9488         cloog_state_free.
9489         (print_generated_program): Same.
9490         (gloog): Same.
9491         * graphite-clast-to-gimple.h (cloog_state): Declared.
9492         (scop_to_clast): Adjust declaration.
9493         * graphite.c (cloog_state): Defined here.
9494         (graphite_initialize): Call cloog_state_malloc.
9495         (graphite_finalize): Call cloog_state_free.
9496
9497 2011-03-11  Jason Merrill  <jason@redhat.com>
9498
9499         * attribs.c (lookup_attribute_spec): Take const_tree.
9500         * tree.h: Adjust.
9501
9502 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9503
9504         * config/sparc/sparc.c (sparc_option_override): Use
9505         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9506
9507 2011-03-11  Richard Guenther  <rguenther@suse.de>
9508
9509         PR tree-optimization/48067
9510         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9511         multiplication result will be only used once on the target
9512         stmt.
9513
9514 2011-03-11  Richard Guenther  <rguenther@suse.de>
9515
9516         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9517
9518 2011-03-11  Richard Guenther  <rguenther@suse.de>
9519
9520         PR lto/48073
9521         * tree.c (find_decls_types_r): Do not walk types only reachable
9522         from IDENTIFIER_NODEs.
9523
9524 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9525
9526         PR middle-end/48044
9527         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9528         all vnode->force_output nodes as needed.
9529
9530 2011-03-11  Jason Merrill  <jason@redhat.com>
9531
9532         PR c++/48069
9533         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9534         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9535
9536 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9537
9538         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9539         cgraph_node.
9540
9541 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9542
9543         PR tree-optimization/48063
9544         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9545         inline functions called once if !tree_can_inline_p (node->callers).
9546
9547 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9548
9549         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9550         extra_objs.
9551         * config/score/score3.c: Delete.
9552         * config/score/score3.h: Delete.
9553         * config/score/mul-div.S: Delete.
9554         * config/score/sfp-machine.h: Add new file.
9555         * config/score/constraints.md: Add new file.
9556         * config/score/t-score-softfp: Add new file.
9557         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9558         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9559         (score7_extra_constraint): Delete.
9560         (score7_option_override): Remove unused code.
9561         * config/score/score.c: Remove score3 and score5 define and code.
9562         * config/score/score.h: Remove score3 and score5 define and code.
9563         * config/score/score.md: Remove score3 template and unusual insn.
9564         * config/score/score.opt: Remove score3 and score5 options.
9565
9566 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9567
9568         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9569         when _HPUX_SOURCE is defined.
9570         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9571
9572 2011-03-10  Jason Merrill  <jason@redhat.com>
9573
9574         PR c++/48029
9575         * stor-layout.c (layout_type): Don't set structural equality
9576         on arrays of incomplete type.
9577         * tree.c (type_hash_eq): Handle comparing them properly.
9578
9579 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9580
9581         PR debug/48043
9582         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9583         result mode matches original rtl mode.
9584
9585 2011-03-10  Nick Clifton  <nickc@redhat.com>
9586
9587         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9588         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9589
9590 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9591
9592         PR rtl-optimization/47866
9593         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9594         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9595         if target wasn't scalar.
9596         * function.c (assign_stack_temp_for_type): Assert that neither
9597         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9598         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9599         macro.
9600         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9601
9602 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9603
9604         * config/s390/s390-protos.h (s390_label_align): New prototype.
9605         * config/s390/s390.c (s390_label_align): New function.
9606         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9607
9608 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9609
9610         PR target/47755
9611         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9612         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9613         (output_vec_const_move): Ditto.
9614
9615 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9616
9617         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9618         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9619         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9620         Change 'rclass' argument and result type to reg_class_t.
9621         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9622
9623 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9624
9625         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9626         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9627         (TARGET_MEMORY_MOVE_COST): Define.
9628         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9629
9630 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9631
9632         PR debug/47881
9633         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9634         removed anything.
9635
9636         PR tree-optimization/48022
9637         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9638         for EQ/NE_EXPR.
9639
9640 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9641
9642         PR debug/47991
9643         * var-tracking.c (find_use_val): Return NULL for
9644         cui->sets && cui->store_p BLKmode MEMs.
9645
9646 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9647
9648         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9649         Remove.
9650         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9651         xstormy16_print_operand_address): Remove.
9652         * config/stormy16/stormy16.c (xstormy16_print_operand,
9653         xstormy16_print_operand_address): Make static.
9654         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9655
9656 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9657
9658         PR target/47862
9659         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9660         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9661         before definition.
9662
9663 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9664
9665         PR bootstrap/48000
9666         * cfgloopmanip.c (fix_bb_placements): Return immediately
9667         if FROM is BASE_LOOP's header.
9668
9669 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9670
9671         * gimplify.c (gimplify_function_tree): Fix building calls
9672         to __builtin_return_address.
9673
9674 2011-03-07  Alan Modra  <amodra@gmail.com>
9675
9676         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9677         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9678         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9679         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9680         return_mode args.
9681         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9682         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9683         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9684         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9685         * config/rs6000/rs6000.c
9686         (rs6000_elf_end_indicate_exec_stack): Rename to..
9687         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9688         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9689         (rs6000_file_start): ..here.
9690         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9691         file scope variables.
9692         (call_ABI_of_interest): New function.
9693         (init_cumulative_args): Set above vars when function return value
9694         is a float, vector, or small struct.
9695         (rs6000_function_arg_advance_1): Likewise for function args.
9696         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9697         references float args.
9698
9699 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9700
9701         * doc/cfg.texi: Remove "See" before @ref.
9702         * doc/invoke.texi: Likewise.
9703
9704 2011-03-05  Jason Merrill  <jason@redhat.com>
9705
9706         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9707
9708 2011-03-05  Anthony Green  <green@moxielogic.com>
9709
9710         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9711
9712 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
9713
9714         PR rtl-optimization/47899
9715         * cfgloopmanip.c (fix_bb_placements): Fix first argument
9716         to flow_loop_nested_p when moving the loop upward.
9717
9718 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
9719
9720         PR target/47719
9721         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
9722
9723 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
9724
9725         PR tree-optimization/47967
9726         * ipa-cp.c (build_const_val): Return NULL instead of creating
9727         VIEW_CONVERT_EXPR for mismatching sizes.
9728         (ipcp_create_replace_map): Return NULL if build_const_val failed.
9729         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9730         give up on versioning.
9731
9732 2011-03-05  Alan Modra  <amodra@gmail.com>
9733
9734         PR target/47986
9735         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9736         full cmodel medium/large lo_sum + high addresses.
9737
9738 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9739
9740         * config/s390/s390.c (s390_decompose_address): Reject non-literal
9741         pool references in UNSPEC_LTREL_OFFSET.
9742
9743 2011-03-04  Jan Hubicka  <jh@suse.cz>
9744
9745         PR lto/47497
9746         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9747         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9748         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9749         Add node pointers.
9750         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9751         cgraph_add_thunk): Add node pointers.
9752         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9753         associated to right node.
9754         (input_node): Update use of cgraph_same_body_alias
9755         and cgraph_add_thunk.
9756
9757 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9758
9759         * config/i386/i386.opt (mprefer-avx128): New flag.
9760         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9761         modes when the flag -mprefer-avx128 is on.
9762
9763 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9764
9765         * dwarf2out.c (compare_loc_operands): Fix address handling.
9766
9767 2011-03-04  Alan Modra  <amodra@gmail.com>
9768
9769         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9770
9771 2011-03-04  Richard Guenther  <rguenther@suse.de>
9772
9773         PR middle-end/47968
9774         * expmed.c (extract_bit_field_1): Prefer vector modes that
9775         vec_extract patterns can handle.
9776
9777 2011-03-04  Richard Guenther  <rguenther@suse.de>
9778
9779         PR middle-end/47975
9780         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9781
9782 2011-03-04  Richard Henderson  <rth@redhat.com>
9783
9784         * explow.c (emit_stack_save): Remove 'after' parameter.
9785         (emit_stack_restore): Likewise.
9786         * expr.h: Update to match.
9787         * builtins.c, calls.c, stmt.c: Likewise.
9788         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9789         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9790         * function.c (expand_function_end): Insert the emit_stack_save
9791         sequence before parm_birth_insn instead of after.
9792
9793 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
9794
9795         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9796         (ssse3_pmaddubsw128): Ditto.
9797         (ssse3_pmaddubsw): Ditto.
9798
9799 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
9800
9801         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9802
9803 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
9804
9805         PR c/47963
9806         * gimplify.c (omp_add_variable): Only call omp_notice_variable
9807         on TYPE_SIZE_UNIT if it is a DECL.
9808
9809         PR debug/47283
9810         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9811         first operand is not is_gimple_mem_ref_addr, try to fold it.
9812         If the operand still isn't is_gimple_mem_ref_addr, clear
9813         MEM_EXPR on op0.
9814
9815 2011-03-03  Richard Guenther  <rguenther@suse.de>
9816
9817         PR middle-end/47283
9818         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9819         match comment.
9820         (refs_may_alias_p_1): For release branches return true if
9821         we are confused by our input.
9822
9823 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9824
9825         * config/s390/s390.c (s390_function_value): Rename to ...
9826         (s390_function_and_libcall_value): ... this.
9827         (s390_function_value): New function.
9828         (s390_libcall_value): New function.
9829         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9830         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9831         target macro definitions.
9832         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9833
9834 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
9835
9836         * config/i386/freebsd64.h (CC1_SPEC): Define.
9837         * config/i386/linux64.h (CC1_SPEC): Define.
9838         * config/i386/x86-64.h (CC1_SPEC): Don't define.
9839
9840 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
9841
9842         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9843         Remove.
9844         * config/stormy16/stormy16.c: Include reload.h.
9845         (xstormy16_memory_move_cost): New function.
9846         (TARGET_MEMORY_MOVE_COST): Define.
9847
9848 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
9849
9850         PR rtl-optimization/47925
9851         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9852         with side effects.  Remove the more-specific check for volatile asms.
9853
9854 2011-03-02  Alan Modra  <amodra@gmail.com>
9855
9856         PR target/47935
9857         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9858         toc relative addresses for valid offsets.
9859
9860 2011-03-01  Richard Guenther  <rguenther@suse.de>
9861
9862         PR tree-optimization/47890
9863         * tree-vect-loop.c (get_initial_def_for_induction): Set
9864         related stmt properly.
9865
9866 2011-03-01  Richard Guenther  <rguenther@suse.de>
9867
9868         PR lto/47924
9869         * lto-streamer.c (lto_record_common_node): Also register
9870         the canonical type.
9871
9872 2011-03-01  Richard Guenther  <rguenther@suse.de>
9873
9874         PR lto/46911
9875         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9876         Do not stream DECL_ABSTRACT_ORIGIN.
9877         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9878         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9879         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9880         Do not stream DECL_ABSTRACT_ORIGIN.
9881         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9882         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9883
9884 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
9885
9886         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9887         FUNCTION_VALUE_REGNO_P): Remove.
9888         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9889         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9890         Add 'outgoing' argument.
9891         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9892         function.
9893         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9894         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9895
9896 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
9897
9898         PR debug/28047
9899         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9900         (lookup_filename): Likewise.
9901         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9902
9903 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
9904             Jakub Jelinek  <jakub@redhat.com>
9905
9906         PR middle-end/47893
9907         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9908         (assign_stack_local_1): Change last argument type to int.
9909         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9910         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
9911         don't record padding space into frame_space_list nor use those areas.
9912         (assign_stack_local): Adjust caller.
9913         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9914         of assign_stack_local, pass 0 as last argument.
9915         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9916         callers.
9917
9918 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
9919
9920         PR debug/47283
9921         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9922         Use target address_mode and pointer_mode hooks instead of hardcoded
9923         Pmode and ptr_mode.  Handle some simple cases of extending if
9924         POINTERS_EXTEND_UNSIGNED < 0.
9925         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9926         Call convert_debug_memory_address.
9927         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9928         convert_debug_memory_address.
9929
9930         PR middle-end/46790
9931         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9932         * configure: Regenerated.
9933         * config.in: Regenerated.
9934         * varasm.c (default_function_section): Return NULL
9935         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9936
9937 2011-02-28  Martin Jambor  <mjambor@suse.cz>
9938
9939         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9940         the description to match the printed values.
9941
9942 2011-02-28  Richard Guenther  <rguenther@suse.de>
9943
9944         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9945         of the copied scope tree.
9946
9947 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9948
9949         * doc/extend.texi (Function Attributes): Avoid deeply (and
9950         wrongly) nested tables.
9951
9952 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
9953
9954         PR middle-end/47903
9955         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9956         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9957         r isn't op0 nor op1.
9958
9959 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9960
9961         * config/avr/avr.md: Remove magic comment for emacs.
9962
9963 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9964
9965         PR target/45261
9966         * config/avr/avr.c (avr_option_override): Use error on bad options.
9967         (avr_help): New function.
9968         (TARGET_HELP): Define.
9969
9970 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
9971
9972         PR target/42240
9973         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9974         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9975
9976 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
9977
9978         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9979         (ARM Options): Ditto.
9980         (i386 and x86-64 Options): Ditto.
9981         (RX Options): Ditto.
9982         (SPARC Options): Ditto.
9983
9984 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
9985
9986         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9987         FreeBSD 6 and later.  Generally use cpu generic.
9988
9989 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9990
9991         * doc/cpp.texi: Update copyright years.
9992
9993 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9994
9995         PR target/46898
9996         * config/lm32/lm32.md (ashrsi3): Added needed variable.
9997
9998 2011-02-25  Jon Beniston  <jon@beniston.com>
9999
10000         PR target/46898
10001         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10002         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10003         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10004         (lm32_block_move_inline): Add type cast to remove warning.
10005         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10006         (gen_int_relational): Move declarations to start of function.
10007
10008 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10009
10010         PR tree-optimization/45470
10011         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10012         can throw internally only.
10013         * tree-vect-stmts.c (vectorizable_call): Likewise.
10014
10015 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10016
10017         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10018         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10019         * config/stormy16/stormy16-protos.h
10020         (xstormy16_preferred_reload_class): Remove.
10021         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10022         static. Change 'rclass' argument and return type to reg_class_t.
10023         (TARGET_PREFERRED_RELOAD_CLASS,
10024         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10025
10026 2011-02-24  Richard Guenther  <rguenther@suse.de>
10027
10028         * lto-streamer-in.c (input_bb): Do not find referenced vars
10029         in debug statements.
10030
10031 2011-02-23  Jason Merrill  <jason@redhat.com>
10032
10033         * common.opt (fabi-version): Document v5 and v6.
10034
10035 2011-02-23  Richard Guenther  <rguenther@suse.de>
10036
10037         PR tree-optimization/47849
10038         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10039
10040 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10041
10042         * opts-common.c (decode_cmdline_option): Print empty string
10043         argument as "" in decoded->orig_option_with_args_text.
10044         * gcc.c (execute): Print empty string argument as ""
10045         in the verbose output.
10046         (do_spec_1): Keep empty string argument.
10047
10048 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10049
10050         * config.gcc: Declare score-* and crx-* obsolete.
10051
10052 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10053
10054         PR rtl-optimization/47763
10055         * web.c (web_main): Ignore naked clobber when replacing register.
10056
10057 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10058
10059         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10060         Remove.
10061
10062 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10063
10064         PR doc/47848
10065         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10066
10067 2011-02-22  Mike Stump  <mikestump@comcast.net>
10068
10069         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10070         assembler.
10071         * configure: Regenerate.
10072
10073 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10074
10075         PR rtl-optimization/46002
10076         * ira-color.c (update_copy_costs): Change class intersection
10077         test to reg_class_contents[] test of 'hard_regno'.
10078
10079 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10080
10081         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10082         than Driver option.
10083         * config/hpux11.opt (mt): Likewise.
10084         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10085         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10086         * config/vax/elf.opt (mno-asm-pic): Likewise.
10087         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10088
10089 2011-02-21  Mike Stump  <mikestump@comcast.net>
10090
10091         PR target/47822
10092         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10093         tree so we can get save the type.
10094         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10095         for CFString instead of trying to use past the end of the builtins.
10096         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10097         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10098         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10099         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10100         Rename to darwin_builtin_cfstring.
10101         (darwin_init_cfstring_builtins): Return the built type.
10102
10103 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10104
10105         PR target/47840
10106         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10107         (_mm256_insert_epi64): Use _mm_insert_epi64.
10108
10109 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10110
10111         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10112         * config/stormy16/stormy16-protos.h
10113         (xstormy16_mode_dependent_address_p): Remove.
10114         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10115         Make static. Change return type to bool. Change argument type to
10116         const_rtx. Remove dead code.
10117         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10118
10119 2011-02-21  Richard Guenther  <rguenther@suse.de>
10120
10121         PR lto/47820
10122         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10123         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10124         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10125         TUs context.
10126         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10127         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10128
10129 2011-02-20  Richard Guenther  <rguenther@suse.de>
10130
10131         PR lto/47822
10132         * tree.c (free_lang_data_in_decl): Clean builtins from
10133         the TU decl BLOCK_VARS.
10134
10135 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10136
10137         PR debug/47620
10138         PR debug/47630
10139         * haifa-sched.c (fix_tick_ready): Skip tick computation
10140         for debug insns.
10141
10142 2011-02-19  Richard Guenther  <rguenther@suse.de>
10143
10144         PR lto/47647
10145         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10146         Remove lazy BLOCK_VARS streaming.
10147         (lto_input_ts_block_tree_pointers): Likewise.
10148         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10149
10150 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10151
10152         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10153
10154 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10155
10156         * config/i386/biarch32.h, config/i386/mach.h,
10157         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10158
10159 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10160
10161         PR target/47800
10162         * config/i386/i386.md (peephole2 for shift and plus): Use
10163         operands[1] original mode in the first insn.
10164
10165 2011-02-18  Mike Stump  <mikestump@comcast.net>
10166
10167         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10168
10169 2011-02-18  Jan Hubicka  <jh@suse.cz>
10170
10171         PR middle-end/47788
10172         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10173         to zero when the function is not inlinable at all.
10174
10175 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10176
10177         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10178         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10179         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10180         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10181         * config/pa/t-pa64: Likewise.
10182         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10183
10184 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10185
10186         PR driver/47787
10187         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10188
10189 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10190
10191         PR target/47792
10192         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10193
10194 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10195
10196         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10197         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10198         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10199         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10200         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10201         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10202         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10203         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10204         m32r_legitimate_address_p): New functions.
10205         * config/m32r/constraints.md (constraint "S"): Don't use
10206         STORE_PREINC_PREDEC_P.
10207         (constraint "U"): Don't use LOAD_POSTINC_P.
10208
10209 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10210
10211         PR rtl-optimization/46178
10212         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10213         compute ira_hard_regno_cover_class[].
10214
10215 2011-02-18  Richard Guenther  <rguenther@suse.de>
10216
10217         PR lto/47798
10218         * lto-streamer.h (lto_global_var_decls): Declare.
10219         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10220         statics for global var processing.
10221
10222 2011-02-18  Richard Guenther  <rguenther@suse.de>
10223
10224         PR tree-optimization/47737
10225         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10226         edge dominance check.
10227
10228 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10229
10230         PR debug/47780
10231         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10232         avoid invalid rtx sharing.
10233
10234 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10235
10236         * doc/cpp.texi (Obsolete Features): Add background on the
10237         origin of assertions.
10238
10239 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10240
10241         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10242         objc_abi == 2.
10243         * config/darwin.c (output_objc_section_asm_op): Added support for
10244         ABI v1 and v2.
10245         (is_objc_metadata): New.
10246         (darwin_objc2_section): New.
10247         (darwin_objc1_section): New.
10248         (machopic_select_section): Added support for ABI v1 and v2.
10249         (darwin_emit_objc_zeroed): New.
10250         (darwin_output_aligned_bss): Detect objc metadata and treat it
10251         appropriately.
10252         (darwin_asm_output_aligned_decl_common): Same.
10253         (darwin_asm_output_aligned_decl_local): Same.
10254         * config/darwin-sections.def: Updated for ABI v1 and v2.
10255         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10256         compiling Objective-C code for the NeXT runtime, default to using
10257         ABI version 0 for 32-bit, and version 2 for 64-bit.
10258
10259 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10260
10261         * common.opt (optimize_fast): New Variable.
10262         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10263         instead of local variable ofast.
10264
10265 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10266
10267         * doc/invoke.texi (fobjc-abi-version): Documented.
10268         (fobjc-nilcheck): Documented.
10269         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10270         version.
10271
10272 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10273
10274         PR driver/47390
10275         * common.opt (export-dynamic): New Driver option.
10276         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10277
10278 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10279
10280         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10281
10282 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10283             Jan Hubicka  <jh@suse.cz>
10284
10285         PR debug/47106
10286         PR debug/47402
10287         * cfgexpand.c (account_used_vars_for_block): Remove.
10288         (estimated_stack_frame_size): Use referenced vars.
10289         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10290         that were referenced in the original function.  Test src_fn
10291         rather than cfun.  Drop redundant get_var_ann.
10292         (setup_one_parameter): Drop redundant get_var_ann.
10293         (declare_return_variable): Likewise.
10294         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10295         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10296         * ipa-inline.c (compute_inline_parameters): Do not compute
10297         disregard_inline_limits here.
10298         (compute_inlinable_for_current, pass_inlinable): New.
10299         (pass_inline_parameters): Require PROP_referenced_vars.
10300         * cgraphunit.c (cgraph_process_new_functions): Don't run
10301         compute_inline_parameters explicitly unless function is in SSA form.
10302         (cgraph_analyze_function): Set .disregard_inline_limits.
10303         * tree-sra.c (convert_callers): Compute inliner parameters
10304         only for functions already in SSA form.
10305
10306 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10307
10308         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10309         -mlittle-endian-data.
10310
10311 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10312
10313         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10314         -mno-fpu, not -fpu and -no-fpu.
10315         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10316         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10317
10318 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10319
10320         PR target/43653
10321         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10322         input reload with PLUS RTX.
10323
10324 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10325
10326         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10327         of InverseVar(MDMX).
10328
10329 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10330
10331         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10332         --m4-340.
10333
10334 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10335
10336         * config/mn10300/mn10300.opt (mno-crt0): New.
10337
10338 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10339
10340         * config/m68k/uclinux.opt (static-libc): New Driver option.
10341
10342 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10343
10344         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10345
10346 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10347
10348         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10349         %{muser-extend-enabled}.
10350
10351 2011-02-16  Richard Guenther  <rguenther@suse.de>
10352
10353         PR tree-optimization/47738
10354         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10355         the TODO from tree_predictive_commoning.
10356
10357 2011-02-15  Jeff Law  <law@redhat.com>
10358
10359         Revert
10360         2011-01-25  Jeff Law  <law@redhat.com>
10361
10362         PR rtl-optimization/37273
10363         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10364         handle them like argument loads from stack slots.  Do not double
10365         count memory for memory constants and argument loads from stack slots.
10366
10367 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10368
10369         PR middle-end/47725
10370         * combine.c (cant_combine_insn_p): Revert the last change.
10371
10372 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10373
10374         PR target/47755
10375         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10376         mode for vector constants.  Remove code that checks for TImode.
10377
10378 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10379
10380         PR debug/47106
10381         PR debug/47402
10382         * cgraph.h (compute_inline_parameters): Return void.
10383         * ipa-inline.c (compute_inline_parameters): Adjust.
10384
10385 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10386
10387         PR debug/47106
10388         PR debug/47402
10389         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10390         rather than decl.
10391         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10392         * ipa-inline.c (compute_inline_parameters): Adjust.
10393
10394 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10395
10396         PR debug/47106
10397         PR debug/47402
10398         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10399         Adjust all users.  Pass FN to...
10400         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10401         fn argument.
10402         * ipa-struct-reorg.c: Adjust.
10403         * tree-dfa.c: Adjust.
10404         * tree-into-ssa.c: Adjust.
10405         * tree-sra.c: Adjust.
10406         * tree-ssa-alias.c: Adjust.
10407         * tree-ssa-live.c: Adjust.
10408         * tree-ssa.c: Adjust.
10409         * tree-ssanames.c: Adjust.
10410         * tree-tailcall.c: Adjust.
10411
10412 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10413
10414         PR debug/47106
10415         PR debug/47402
10416         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10417         Adjust all callers.
10418         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10419         * tree-flow-inline.h: Adjust.
10420         * gimple-pretty-print.c: Adjust.
10421         * tree-into-ssa.c: Adjust.
10422         * tree-ssa.c: Adjust.
10423         * cfgexpand.c: Adjust.
10424
10425 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10426
10427         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10428         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10429         (EXTRA_CONSTRAINT): Delete.
10430         * config/iq2000/constraints.md: New file.
10431         * config/iq2000/iq2000.md: Include it.
10432         (define_insn ""): Delete.
10433         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10434         unsupported constraint letters from patterns.
10435         (call_value, call_value_internal1): Likewise.
10436         (call_value_multiple_internal1): Likewise.
10437
10438 2011-02-15  Nick Clifton  <nickc@redhat.com>
10439
10440         * config/mn10300/mn10300.c: Include tm-constrs.h.
10441         (struct liw_data): New data structure describing an LIW candidate
10442         instruction.
10443         (extract_bundle): Use struct liw_data.  Allow small integer
10444         operands for some instructions.
10445         (check_liw_constraints): Use struct liw_data.  Remove swapped
10446         parameter.  Add comments describing the checks.  Fix bug when
10447         assigning the source of liw1 to the source of liw2.
10448         (liw_candidate): Delete.  Code moved into extract_bundle.
10449         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10450         before swapping.
10451         * config/mn10300/predicates.md (liw_operand): New predicate.
10452         Allows registers and small integer constants.
10453         * config/mn10300/constraints.md (O): New constraint.  Accetps
10454         integers in the range -8 to +7 inclusive.
10455         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10456         for moving a small integer into a register.  Give this alternative
10457         LIW attributes.
10458         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10459         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10460         using the J,K,L and M constraints,
10461         (liw): Remove SI mode on second operands to allow for HI and QI
10462         mode values.
10463         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10464         instruction.
10465
10466 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10467
10468         PR middle-end/47725
10469         * combine.c (cant_combine_insn_p): Check zero/sign extended
10470         hard registers.
10471
10472 2011-02-15  Richard Guenther  <rguenther@suse.de>
10473
10474         PR tree-optimization/47743
10475         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10476         for a non-type-compatible VN lookup bail out.
10477
10478 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10479
10480         * config/fr30/constraints.md: New file.
10481         * config/fr30/fr30.md: Include it.
10482         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10483         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10484         (EXTRA_CONSTRAINT): Delete.
10485
10486 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10487
10488         * config/frv/constraints.md: New file.
10489         * config/frv/predicates.md: Include it.
10490         * config/frv/frv.c (reg_class_from_letter): Delete.
10491         (frv_option_override): Don't initialize it.
10492         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10493         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10494         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10495         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10496         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10497         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10498         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10499         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10500         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10501         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10502         (REG_CLASS_FROM_CONSTRAINT): Delete.
10503
10504 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10505
10506         PR middle-end/47581
10507         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10508         if frame size is 0 in a leaf function.
10509
10510 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10511
10512         PR pch/14940
10513         * config/alpha/host-osf.c: New file.
10514         * config/alpha/x-osf: New file.
10515         * config.host (alpha*-dec-osf*): Use it.
10516
10517 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10518
10519         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10520         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10521         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10522         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10523         type to const_rtx.
10524         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10525
10526 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10527
10528         * config/stormy16/constraints.md: New file.
10529         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10530         Use satisfies_constraint_Q and satisfies_constraint_R.
10531         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10532         Delete.
10533         (xstormy16_legitiamte_address_p): Declare.
10534         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10535         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10536         (EXTRA_CONSTRAINT): Delete.
10537         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10538         Un-staticize.
10539         (xstormy16_extra_constraint_p): Delete.
10540
10541 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10542
10543         PR tree-optimization/46494
10544         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10545         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10546         (pass_rtl_loop_done): Add TODO_verify_flow.
10547         * fwprop.c (pass_rtl_fwprop): Likewise.
10548         * modulo-sched.c (pass_sms): Likewise.
10549         * tree-ssa-dom.c (pass_dominator): Likewise.
10550         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10551         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10552         (pass_tree_loop_done): Likewise.
10553         * tree-ssa-pre.c (execute_pre): Likewise.
10554         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10555         * tree-ssa-sink.c (pass_sink_code): Likewise.
10556         * tree-vrp.c (pass_vrp): Likewise.
10557
10558 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10559
10560         * config/v850/constraints.md: New file.
10561         * config/v850/v850.md: Include it.
10562         * config/v850/predicates.md (reg_or_0_operand): Use
10563         satisfies_constraint_G.
10564         (special_symbolref_operand): Use satisfies_constraint_K.
10565         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10566         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10567         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10568         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10569         (EXTRA_CONSTRAINT): Delete.
10570         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10571         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10572         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10573
10574 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10575
10576         PR target/47696
10577         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10578         description.
10579
10580 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10581
10582         * config/mcore/constraints.md: New file.
10583         * config/mcore/mcore.md: Include it.
10584         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10585         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10586         (REG_CLASS_FROM_LETTER): Delete.
10587         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10588         insn_const_int_ok_for_constraint.
10589         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10590         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10591         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10592         (EXTRA_CONSTRAINT): Delete.
10593
10594 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10595
10596         PR ada/41929
10597         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10598         (IS_SIGHANDLER): Define.
10599         (sparc64_is_sighandler): New function, split off from
10600         sparc64_fallback_frame_state.
10601         (sparc_is_sighandler): New function, split off from
10602         sparc_fallback_frame_state.
10603         (sparc64_fallback_frame_state): Merge with ...
10604         (sparc_fallback_frame_state): ... this into ...
10605         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10606         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10607         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10608         stack instead of hardcoded offsets.
10609
10610 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10611
10612         PR target/45808
10613         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10614
10615 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10616
10617         * configure: Regenerate.
10618
10619 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10620
10621         PR driver/45731
10622         * gcc.c (asm_options): Correct spec matching --target-help.
10623
10624 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10625
10626         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10627         to gimple call error.
10628
10629 2011-02-12  Mike Stump  <mikestump@comcast.net>
10630
10631         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10632         comments in backslash regions.
10633
10634 2011-02-12  Mike Stump  <mikestump@comcast.net>
10635             Jakub Jelinek  <jakub@redhat.com>
10636             Iain Sandoe  <iains@gcc.gnu.org>
10637
10638         PR target/47324
10639         * dwarf2out.c (output_cfa_loc): When required, apply the
10640         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10641         (output_loc_sequence): Likewise.
10642         (output_loc_operands_raw): Likewise.
10643         (output_loc_sequence_raw): Likewise.
10644         (output_cfa_loc): Likewise.
10645         (output_loc_list): Suppress register number adjustment when
10646         calling output_loc_sequence()
10647         (output_die): Likewise.
10648
10649 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10650
10651         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10652         Remove macros.
10653         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10654         xtensa_memory_move_cost): New functions.
10655         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10656
10657 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10658
10659         PR lto/47225
10660         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10661         in the current directory.
10662         * configure: Rebuilt.
10663
10664 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10665
10666         * config/darwin.c (darwin_override_options): Add a hunk missed
10667         from the commit of r168571.  Trim comment line lengths and
10668         correct indents of the preceding block.
10669
10670 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10671
10672         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10673         the switch.
10674
10675 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10676
10677         * common.opt (nostartfiles): New Driver option.
10678
10679 2011-02-11  Xinliang David Li  <davidxl@google.com>
10680
10681         PR tree-optimization/47707
10682         * tree-chrec.c (convert_affine_scev): Keep type precision.
10683
10684 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10685
10686         PR tree-optimization/47420
10687         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10688
10689 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10690
10691         PR rtl-optimization/47614
10692         * rtl.h (check_for_inc_dec): Declare.
10693         * dse.c (check_for_inc_dec): Externalize...
10694         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10695         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10696
10697 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10698
10699         PR driver/47678
10700         * gcc.c (main): Do not compile inputs if there were errors in
10701         option handling.
10702         * opts-common.c (read_cmdline_option): Check for wrong language
10703         after other error checks.
10704
10705 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
10706
10707         * cgraph.c: Fix comment typos.
10708         * cgraph.h: Likewise.
10709         * cgraphunit.c: Likewise.
10710         * ipa-cp.c: Likewise.
10711         * ipa-inline.c: Likewise.
10712         * ipa-prop.c: Likewise.
10713         * ipa-pure-const.c: Likewise.
10714         * ipa-ref.c: Likewise.
10715         * ipa-reference.c: Likewise.
10716
10717 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10718
10719         PR debug/47684
10720         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10721
10722 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10723
10724         PR testsuite/47400
10725         * doc/sourcebuild.texi (Require Support): Document
10726         dg-require-ascii-locale.
10727
10728 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
10729
10730         * doc/lto.texi (Write summary): Fix missing parentheses.
10731
10732 2011-02-10  DJ Delorie  <dj@redhat.com>
10733
10734         * config/m32c/m32c.c (m32c_option_override): Disable
10735         -fcombine-stack-adjustments until flag value tracking and compare
10736         optimization can be rewritten.
10737
10738 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
10739
10740         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10741         PROCESSOR_POWER7.
10742         (PROCESSOR_DEFAULT64): Likewise.
10743
10744 2011-02-10  Richard Henderson  <rth@redhat.com>
10745
10746         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10747         change from 2011-02-03.
10748         * config/rx/rx.c (flags_from_code): Likewise.
10749         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10750         is valid, n/pz otherwise.
10751         (rx_select_cc_mode): Return CCmode if Y is not zero.
10752
10753 2011-02-10  Richard Guenther  <rguenther@suse.de>
10754
10755         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10756
10757 2011-02-10  Richard Guenther  <rguenther@suse.de>
10758
10759         PR tree-optimization/47677
10760         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10761
10762 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10763
10764         PR target/47665
10765         * combine.c (make_compound_operation): Only change shifts into
10766         multiplication for SCALAR_INT_MODE_P.
10767
10768 2011-02-10  Jie Zhang  <jie@codesourcery.com>
10769
10770         PR testsuite/47622
10771         Revert
10772         2011-02-05  Jie Zhang  <jie@codesourcery.com>
10773         PR debug/42631
10774         * web.c (entry_register): Don't clobber the number of the
10775         first uninitialized reference in used[].
10776
10777 2011-02-09  Richard Guenther  <rguenther@suse.de>
10778
10779         PR tree-optimization/47664
10780         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10781         all edges again.
10782
10783 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
10784
10785         PR target/46481
10786         PR target/47032
10787         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10788         PROCESSOR_POWER7.
10789         (PROCESSOR_DEFAULT64): Same.
10790         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10791
10792 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10793
10794         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10795
10796 2011-02-09  Martin Jambor  <mjambor@suse.cz>
10797
10798         PR middle-end/45505
10799         * tree-sra.c (struct access): New flags grp_scalar_read and
10800         grp_scalar_write.  Changed description of assignment read and write
10801         flags.
10802         (dump_access): Dump new flags, reorder all of them.
10803         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10804         to detect multiple scalar reads.
10805         (analyze_access_subtree): Use the new scalar read write flags instead
10806         of the old flags.  Adjusted comments.
10807
10808 2011-02-08  DJ Delorie  <dj@redhat.com>
10809
10810         PR target/47548
10811         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10812         patterns.
10813
10814 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10815
10816         * config/m68k/uclinux.opt: New.
10817         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10818
10819 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10820
10821         * config/cris/elf.opt (sim): New Driver option.
10822
10823 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10824
10825         * config/xtensa/elf.opt: New.
10826         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10827
10828 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10829
10830         * config/vax/elf.opt: New.
10831         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10832
10833 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10834
10835         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10836
10837 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10838
10839         * config/gnu-user.opt: New.
10840         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10841         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10842         *-*-uclinux*): Use gnu-user.opt.
10843
10844 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
10845
10846         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10847         * config/i386/gnu.h (CPP_SPEC): Likewise.
10848
10849 2011-02-08  Ian Lance Taylor  <iant@google.com>
10850
10851         * common.opt (fcx-limited-range): Add SetByCombined flag.
10852         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10853         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10854         (fassociative-math, freciprocal-math): Likewise.
10855         (funsafe-math-optimizations): Likewise.
10856         * opth-gen.awk: Handle SetByCombined.
10857         * optc-gen.awk: Likewise.
10858         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10859         (set_unsafe_math_optimizations_flags): Likewise.
10860         * doc/options.texi (Option properties): Document SetByCombined.
10861
10862 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10863
10864         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10865         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10866         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10867         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10868         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10869
10870 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
10871
10872         PR tree-optimization/46834
10873         PR tree-optimization/46994
10874         PR tree-optimization/46995
10875         * graphite-sese-to-poly.c (used_outside_reduction): New.
10876         (detect_commutative_reduction): Call used_outside_reduction.
10877         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10878         translate_scalar_reduction_to_array only when at least one
10879         loop-phi/close-phi tuple has been detected.
10880
10881 2011-02-08  Richard Guenther  <rguenther@suse.de>
10882
10883         PR middle-end/47639
10884         * tree-vect-generic.c (expand_vector_operations_1): Update
10885         stmts here ...
10886         (expand_vector_operations): ... not here.  Cleanup EH info
10887         and the CFG if required.
10888
10889 2011-02-08  Richard Guenther  <rguenther@suse.de>
10890
10891         PR tree-optimization/47641
10892         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10893         require type compatibility.
10894
10895 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10896
10897         * gimple-low.c (lower_function_body): Don't remove the location of
10898         the return statement here.
10899         (lower_gimple_return): Do it here instead but only if the return
10900         statement is actually used twice.
10901
10902 2011-02-08  Richard Guenther  <rguenther@suse.de>
10903
10904         PR tree-optimization/47632
10905         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10906         unused up_to_stmt parameter, return whether cfg-cleanup is
10907         necessary, remove EH info properly.
10908         (forward_propagate_into_gimple_cond): Adjust caller.
10909         (forward_propagate_into_cond): Likewise.
10910         (forward_propagate_comparison): Likewise.
10911         (tree_ssa_forward_propagate_single_use_vars): Make
10912         forward_propagate_comparison case similar to the two others.
10913
10914 2011-02-08  Nick Clifton  <nickc@redhat.com>
10915
10916         * config/mn10300/mn10300.opt (mliw): New command line option.
10917         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10918         (liw_bundling): New automaton.
10919         (liw): New attribute.
10920         (liw_op): New attribute.
10921         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10922         (movsi_internal): Add LIW attributes.
10923         (andsi3): Likewise.
10924         (iorsi3): Likewise.
10925         (xorsi3): Likewise.
10926         (addsi3): Separate register and immediate alternatives.
10927         Add LIW attributes.
10928         (subsi3): Likewise.
10929         (cmpsi): Likewise.
10930         (aslsi3): Likewise.
10931         (lshrsi3): Likewise.
10932         (ashrsi3): Likewise.
10933         (liw): New pattern.
10934         * config/mn10300/mn10300.c (liw_op_names): New
10935         (mn10300_print_operand): Handle 'W' operand descriptor.
10936         (extract_bundle): New function.
10937         (check_liw_constraints): New function.
10938         (liw_candidate): New function.
10939         (mn10300_bundle_liw): New function.
10940         (mn10300_reorg): New function.
10941         (TARGET_MACHINE_DEPENDENT_REORG): Define.
10942         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10943         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10944         __LIW__ or __NO_LIW__.
10945         * doc/invoke.texi: Describe the -mliw command line option.
10946
10947 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10948
10949         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10950         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10951         pthread_mutex_unlock): Remove.
10952         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10953         * config/pa/t-pa64: Likewise.
10954         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10955         shared libc if not linking against libpthread.
10956         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10957
10958 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
10959
10960         PR target/47558
10961         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10962         on 10.6 and later to ensure that we always use the unwinder from
10963         the system.  Only add -no_compact_unwind when tarteting darwin
10964         10.6 or later.
10965
10966 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
10967
10968         PR target/46997
10969         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10970         (vec_interleave_lowv2sf): Ditto.
10971         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10972         (vec_extract_oddv2sf): Ditto.
10973
10974 2011-02-07  Mike Stump  <mikestump@comcast.net>
10975
10976         PR target/42333
10977         Add __ieee_divdc3 entry point.
10978         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10979         entry point.
10980         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10981         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10982         * config/darwin.c (darwin_rename_builtins): Add.
10983         * config/darwin-protos.h (darwin_rename_builtins): Add.
10984
10985 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
10986
10987         PR target/47636
10988         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10989         for the condition.
10990
10991 2011-02-07  Mike Stump  <mikestump@comcast.net>
10992
10993         * config/darwin.opt (mmacosx-version-min): Update default OS version.
10994
10995 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
10996
10997         PR target/47534
10998         * config/avr/libgcc.S (exit): Move .endfunc
10999
11000 2011-02-07  Richard Guenther  <rguenther@suse.de>
11001
11002         PR tree-optimization/47615
11003         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11004         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11005         (run_scc_vn): Initialize it.
11006         (visit_reference_op_load): Use it.
11007         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11008
11009 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11010
11011         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11012         DImode trapping arithmetic libfuncs.
11013
11014 2011-02-07  Richard Guenther  <rguenther@suse.de>
11015
11016         PR tree-optimization/47621
11017         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11018         two duplicates ...
11019         (execute_update_addresses_taken): ... here.  Make it more
11020         conservative in what we accept.
11021
11022 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11023
11024         * config/sparc/freebsd.h (ASM_SPEC): Define.
11025         * config/sparc/vxworks.h (ASM_SPEC): Define.
11026
11027 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11028
11029         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11030
11031 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11032
11033         * doc/invoke.texi: Remove reference to compiler internals from
11034         user documentation.
11035
11036         * reg-notes.def: Remove REG_VALUE_PROFILE.
11037         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11038
11039 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11040
11041         PR middle-end/47610
11042         * varasm.c (default_section_type_flags): If decl is NULL,
11043         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11044
11045 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11046
11047         PR debug/42631
11048         * web.c (entry_register): Don't clobber the number of the
11049         first uninitialized reference in used[].
11050
11051 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11052
11053         PR tree-optimization/46194
11054         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11055         (build_classic_dist_vector_1): Do not represent classic distance
11056         vectors when the access functions are variating in different loops.
11057
11058 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11059
11060         * config/mips/iris6.opt: New.
11061         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11062
11063 2011-02-04  Richard Henderson  <rth@redhat.com>
11064             Steve Ellcey  <sje@cup.hp.com>
11065
11066         PR target/46997
11067         * config/ia64/predicates.md (mux1_brcst_element): New.
11068         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11069         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11070         (ia64_unpack_sign): New.
11071         (ia64_expand_unpack): Rewrite using new routines.
11072         (ia64_expand_widen_sum): Ditto.
11073         (ia64_expand_dot_prod_v8qi): Ditto.
11074         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11075         routines, add endian check.
11076         (pmpy2_even): Rename from pmpy2_r, add endian check.
11077         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11078         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11079         (vec_widen_smult_hi_v4hi): Ditto.
11080         (vec_widen_umult_lo_v4hi): Ditto.
11081         (vec_widen_umult_hi_v4hi): Ditto.
11082         (mulv2si3): Change endian checks.
11083         (sdot_prodv4hi): Rewrite with new calls.
11084         (udot_prodv4hi): New.
11085         (vec_pack_ssat_v4hi): Add endian check.
11086         (vec_pack_usat_v4hi): Ditto.
11087         (vec_pack_ssat_v2si): Ditto.
11088         (max1_even): Rename from max1_r, add endian check.
11089         (max1_odd): Rename from max1_l, add endian check.
11090         (*mux1_rev): Format change.
11091         (*mux1_mix): Ditto.
11092         (*mux1_shuf): Ditto.
11093         (*mux1_alt): Ditto.
11094         (*mux1_brcst_v8qi): Use new predicate.
11095         (vec_extract_evenv8qi): Remove endian check.
11096         (vec_extract_oddv8qi): Ditto.
11097         (vec_interleave_lowv4hi): Format change.
11098         (vec_interleave_highv4hi): Ditto.
11099         (mix2_even): Rename from mix2_r, add endian check.
11100         (mix2_odd): Rename from mux2_l, add endian check.
11101         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11102         (vec_extract_evenodd_helper): Format change.
11103         (vec_extract_evenv4hi): Remove endian check.
11104         (vec_extract_oddv4hi): Remove endian check.
11105         (vec_interleave_lowv2si): Format change.
11106         (vec_interleave_highv2si): Format change.
11107         (vec_initv2si): Remove endian check.
11108         (vecinit_v2si): Add endian check.
11109         (reduc_splus_v2sf): Add endian check.
11110         (reduc_smax_v2sf): Ditto.
11111         (reduc_smin_v2sf): Ditto.
11112         (vec_initv2sf): Remove endian check.
11113         (fpack): Add endian check.
11114         (fswap): Add endian check.
11115         (vec_interleave_highv2sf): Add endian check.
11116         (vec_interleave_lowv2sf): Add endian check.
11117         (fmix_lr): Add endian check.
11118         (vec_setv2sf): Format change.
11119         (*vec_extractv2sf_0_be): Use shift to extract operand.
11120         (*vec_extractv2sf_1_be): New.
11121         (vec_pack_trunc_v4hi): Add endian check.
11122         (vec_pack_trunc_v2si): Format change.
11123
11124 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11125
11126         PR inline-asm/23200
11127         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11128         do bb, locus and block comparison and disallow loads if it is not set.
11129         (stmt_is_replaceable_p): New function.
11130         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11131         callers.
11132         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11133         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11134         SSA_NAME_DEF_STMT.
11135         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11136
11137 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11138
11139         * config/rs6000/xilinx.opt: New.
11140         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11141
11142 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11143
11144         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11145
11146 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11147
11148         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11149         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11150         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11151         secondary_reload_info, xtensa_secondary_reload): Remove.
11152         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11153         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11154         (xtensa_preferred_reload_class): Make static. Change return and
11155         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11156         Use CONST_DOUBLE_P predicate.
11157         (xtensa_preferred_output_reload_class): New function.
11158         (xtensa_secondary_reload): Make static.
11159
11160 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11161
11162         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11163         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11164         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11165
11166 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11167
11168         PR middle-end/31490
11169         * output.h (SECTION_RELRO): Define.
11170         (SECTION_MACH_DEP): Adjust.
11171         (get_variable_section): New prototype.
11172         * varpool.c (varpool_finalize_named_section_flags): New function.
11173         (varpool_assemble_pending_decls): Call it.
11174         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11175         * cgraphunit.c (cgraph_output_in_order): Call
11176         varpool_finalize_named_section_flags.
11177         * varasm.c (get_section): Allow section flags conflicts between
11178         relro and read-only sections if the section hasn't been declared yet.
11179         Set SECTION_OVERRIDE after diagnosing section type conflict.
11180         (get_variable_section): No longer static.
11181         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11182         readonly sections that need relocations.
11183         (decl_readonly_section_1): New function.
11184         (decl_readonly_section): Use it.
11185
11186         Revert:
11187         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11188                     Steve Ellcey  <sje@cup.hp.com>
11189
11190         PR middle-end/31490
11191         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11192         if section attribute used.
11193
11194 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11195
11196         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11197         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11198         (darwin_init_sections): Remove assertion.
11199
11200 2011-02-03  Nick Clifton  <nickc@redhat.com>
11201
11202         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11203         lt and ge.
11204         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11205         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11206         instead of "n" and "pz".
11207         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11208         CC_FLAG_S.
11209
11210 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11211
11212         PR target/47312
11213         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11214         fma, expand FMA_EXPR as fma{,f,l} call.
11215
11216         PR lto/47274
11217         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11218         copy them into a unsigned char variable and pass address of it to
11219         lto_output_data_stream.
11220
11221         PR target/47564
11222         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11223         around backend_init_target and lang_dependent_init_target calls.
11224         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11225         (verify_cgraph_node): Don't call set_cfun here.  Use
11226         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11227         Set error_found for incorrectly represented calls to thunks.
11228
11229 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11230
11231         PR debug/43092
11232         PR rtl-optimization/43494
11233         * rtl.h (for_each_inc_dec_fn): New type.
11234         (for_each_inc_dec): Declare.
11235         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11236         (for_each_inc_dec_find_inc_dec): New fn.
11237         (for_each_inc_dec_find_mem): New fn.
11238         (for_each_inc_dec): New fn.
11239         * dse.c (struct insn_size): Remove.
11240         (replace_inc_dec, replace_inc_dec_mem): Remove.
11241         (emit_inc_dec_insn_before): New fn.
11242         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11243         (canon_address): Pass mem modes to cselib_lookup.
11244         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11245         (cselib_lookup_from_insn): Likewise.
11246         (cselib_subst_to_values): Likewise.
11247         * cselib.c (find_slot_memmode): New var.
11248         (cselib_find_slot): New fn.  Use it instead of
11249         htab_find_slot_with_hash everywhere.
11250         (entry_and_rtx_equal_p): Use find_slot_memmode.
11251         (autoinc_split): New fn.
11252         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11253         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11254         Deal with autoinc.  Special-case recursion into MEMs.
11255         (cselib_hash_rtx): Likewise.
11256         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11257         address and MEM modes.
11258         (cselib_subst_to_values): Add memmode, pass it on.
11259         Deal with autoinc.
11260         (cselib_lookup): Add memmode argument, pass it on.
11261         (cselib_lookup_from_insn): Add memmode.
11262         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11263         (struct cselib_record_autoinc_data): New.
11264         (cselib_record_autoinc_cb): New fn.
11265         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11266         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11267         (cselib_process_insn): ... here.
11268         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11269         to cselib_lookup.
11270         (add_uses): Likewise, also to cselib_subst_to_values.
11271         (add_stores): Likewise.
11272         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11273         cselib_subst_to_values.
11274         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11275         * gcse.c (do_local_cprop): Adjusted.
11276         * postreload.c (reload_cse_simplify_set): Adjusted.
11277         (reload_cse_simplify_operands): Adjusted.
11278         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11279
11280 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11281
11282         PR tree-optimization/45122
11283         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11284         unsafe assumptions when there's more than one loop exit.
11285
11286 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11287
11288         PR target/47272
11289         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11290         Document using vector double with the load/store builtins, and
11291         that the load/store builtins always use Altivec instructions.
11292
11293         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11294         to use altivec memory instructions, even on VSX.
11295         (vector_altivec_store_<mode>): Ditto.
11296
11297         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11298         function.
11299
11300         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11301         V2DF, V2DI support to load/store overloaded builtins.
11302
11303         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11304         altivec load/store builtins for V2DF/V2DI types.
11305
11306         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11307         set avoid indexed addresses on power6 if -maltivec.
11308         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11309         vector_altivec_load/vector_altivec_store builtins.
11310         (altivec_expand_st_builtin): Ditto.
11311         (altivec_expand_builtin): Add VSX memory builtins.
11312         (rs6000_init_builtins): Add V2DI types to internal types.
11313         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11314         load/store builtins.
11315         (rs6000_address_for_altivec): Insure memory address is appropriate
11316         for Altivec.
11317
11318         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11319         vec_vsx_ld and vec_vsx_st.
11320         (vsx_store_<mode>): Ditto.
11321
11322         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11323         variables to hold long long types for VSX vector memory builtins.
11324         (RS6000_BTI_unsigned_long_long): Ditto.
11325         (long_long_integer_type_internal_node): Ditti.
11326         (long_long_unsigned_type_internal_node): Ditti.
11327
11328         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11329         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11330         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11331
11332         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11333         short cuts.
11334         (vec_vsx_st): Ditto.
11335
11336 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11337
11338         * config/pa/pa-hpux10.opt: New.
11339         * config/hpux11.opt (pthread): New Driver option.
11340         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11341         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11342
11343 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11344
11345         * config/ia64/vms.opt: New.
11346         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11347
11348 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11349
11350         PR target/47580
11351         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11352         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11353         generator functions.
11354         (vsx_floatuns<VSi><mode>2): Ditto.
11355         (vsx_fix_trunc<mode><VSi>2): Ditto.
11356         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11357
11358 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11359
11360         * config/i386/djgpp.opt (posix): New Driver option.
11361
11362 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11363
11364         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11365         Move to the unsupported targets list.
11366
11367 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11368
11369         PR rtl-optimization/47525
11370         * df-scan.c: Update copyright years.
11371         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11372         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11373
11374 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11375
11376         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11377         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11378         (ASM_OUTPUT_ASCII): Remove.
11379         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11380
11381 2011-02-02  Jeff Law  <law@redhat.com>
11382
11383         PR middle-end/47543
11384         * reload.c (find_reloads_address): Handle reg+d address where both
11385         components are invalid by reloading the entire address.
11386
11387 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11388             Richard Guenther  <rguenther@suse.de>
11389
11390         PR tree-optimization/40979
11391         PR bootstrap/47044
11392         * passes.c (init_optimization_passes): After LIM call copy_prop
11393         and DCE to clean up.
11394         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11395
11396 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11397
11398         PR tree-optimization/47576
11399         PR tree-optimization/47555
11400         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11401         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11402         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11403         * tree-scalar-evolution.c (follow_ssa_edge): Use
11404         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11405
11406 2011-02-02  Richard Guenther  <rguenther@suse.de>
11407
11408         PR tree-optimization/47566
11409         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11410
11411 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11412
11413         PR debug/47106
11414         PR debug/47402
11415         * tree-inline.c (declare_return_variable): Remove unused caller
11416         variable.
11417
11418         PR debug/47106
11419         PR debug/47402
11420         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11421         * cfgexpand.c (account_used_vars_for_block): Use them.
11422         * tree-nrv.c (tree_nrv): Likewise.
11423         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11424         (dump_scope_block): Likewise.
11425         (remove_unused_locals): Likewise.
11426
11427         PR debug/47106
11428         PR debug/47402
11429         * tree-inline.c (declare_return_variable): Add result decl to
11430         local decls only once.
11431         * gimple-low.c (record_vars_into): Mark newly-created variables
11432         as referenced.
11433
11434 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11435
11436         PR debug/47498
11437         PR debug/47501
11438         PR debug/45136
11439         PR debug/45130
11440         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11441         debug insns.
11442         (no_real_insns_p, schedule_block, set_priorities): Drop special
11443         treatment of boundary debug insns.
11444         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11445         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11446         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11447         (BOUNDARY_DEBUG_INSN_P): Likewise.
11448         (SCHEDULE_DEBUG_INSN_P): Likewise.
11449         * sched-rgn.c (init_ready_list): Drop special treatment of
11450         boundary debug insns.
11451         * final.c (rest_of_clean_state): Clear notes' BB.
11452
11453 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11454
11455         * config/openbsd.opt (assert=): New Driver option.
11456
11457 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11458
11459         * config/i386/nto.opt: New.
11460         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11461
11462 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11463
11464         * config/i386/netware.opt: New.
11465         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11466
11467 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11468
11469         * config/interix.opt (posix): New Driver option.
11470
11471 2011-02-01  DJ Delorie  <dj@redhat.com>
11472
11473         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11474
11475         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11476         class for A0/A1.
11477
11478 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11479
11480         PR tree-optimization/47561
11481         * toplev.c (process_options): Print the Graphite flags.  Add
11482         flag_loop_flatten to the list of options requiring Graphite.
11483
11484 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11485
11486         * config/i386/cygming.opt (posix): New Driver option.
11487
11488 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11489
11490         * config/arm/vxworks.opt: New.
11491         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11492
11493 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11494
11495         * config/alpha/elf.opt: New.
11496         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11497         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11498
11499 2011-02-01  Richard Guenther  <rguenther@suse.de>
11500
11501         PR tree-optimization/47559
11502         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11503         store-motion on references that can throw.
11504
11505 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11506
11507         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11508         * tree-pass.h (TDF_CSELIB): New macro.
11509         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11510         cselib_lookup): Check for it rather than for TDF_DETAILS.
11511
11512 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11513
11514         PR driver/47547
11515         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11516         is HOST_BIT_BUCKET.
11517
11518         * opts.c (finish_options): Don't add x_aux_base_name if it is
11519         HOST_BIT_BUCKET.
11520
11521 2011-02-01  Richard Guenther  <rguenther@suse.de>
11522
11523         PR tree-optimization/47555
11524         Revert
11525         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11526
11527         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11528
11529 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11530
11531         PR gcc/46692
11532         * config/lm32/t-lm32: Add multilib for all CPU options.
11533
11534 2011-02-01  Richard Guenther  <rguenther@suse.de>
11535
11536         PR tree-optimization/47541
11537         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11538         sure to have a field at offset zero.
11539
11540 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11541
11542         * config/arc/arc.opt (EB, EL): New Driver options.
11543
11544 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11545
11546         * config/alpha/osf5.opt: New.
11547         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11548
11549 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11550
11551         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11552
11553 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11554
11555         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11556         -floop-interchange.
11557         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11558         is an alias of -floop-interchange and that it requires the
11559         Graphite infrastructure.
11560         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11561         flag_loop_interchange based on the value of flag_tree_loop_linear.
11562
11563 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11564             Richard Guenther  <rguenther@suse.de>
11565
11566         PR tree-optimization/47538
11567         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11568         type instead of r1type, except for comparisons.  For right
11569         shifts and comparisons punt if there are mismatches in
11570         sizetype vs. non-sizetype types.
11571
11572 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11573
11574         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11575         avx_runtime.
11576
11577 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11578
11579         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11580         version number.
11581         * configure: Regenerate.
11582
11583 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11584
11585         * configure.ac (gcc_cv_ld_static_option): Define.
11586         (gcc_cv_ld_dynamic_option): Define.
11587         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11588         instead.
11589         (HAVE_LD_STATIC_DYNAMIC): Update message.
11590         (LD_STATIC_OPTION): Define.
11591         (LD_DYNAMIC_OPTION): Define.
11592         * configure: Regenerate.
11593         * config.in: Regenerate.
11594         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11595         HAVE_LD_STATIC_DYNAMIC]: Use them.
11596
11597 2011-01-31  Nick Clifton  <nickc@redhat.com>
11598
11599         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11600         registers inside interrupt handlers if the handler is not a leaf
11601         function.
11602
11603 2011-01-31  Nick Clifton  <nickc@redhat.com>
11604
11605         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11606         reg_renumber returning an INVALID_REGNUM.
11607
11608 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11609
11610         PR libgcj/44341
11611         * doc/install.texi: Document host options discarded when cross
11612         configuring target libraries.
11613
11614 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11615
11616         Reverted:
11617         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11618         PR debug/45136
11619         PR debug/45130
11620         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11621         debug insns.
11622         (no_real_insns_p, schedule_block, set_priorities): Drop special
11623         treatment of boundary debug insns.
11624         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11625         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11626         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11627         (BOUNDARY_DEBUG_INSN_P): Likewise.
11628         (SCHEDULE_DEBUG_INSN_P): Likewise.
11629         * sched-rgn.c (init_ready_list): Drop special treatment of
11630         boundary debug insns.
11631         * final.c (rest_of_clean-state): Clear notes' BB.
11632
11633 2011-01-31  Alan Modra  <amodra@gmail.com>
11634
11635         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11636         toc relative expressions as we do in print_operand_address.
11637
11638 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11639
11640         * doc/extend.texi: Follow spelling conventions.
11641         * doc/invoke.texi: Fix a typo.
11642
11643 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11644
11645         * config/hpux11.opt: New.
11646         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11647         ia64*-*-hpux*): Use hpux11.opt.
11648
11649 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11650
11651         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11652         to tmake_file.
11653
11654 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11655
11656         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11657         support sites.
11658
11659 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11660
11661         * doc/install.texi (Binaries): Remove outdated reference for
11662         Motorola 68HC11/68HC12 downloads.
11663
11664 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11665
11666         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11667         Drepper's paper.
11668
11669 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11670
11671         PR bootstrap/47147
11672         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11673         used by NetBSD.
11674
11675 2011-01-28  Ahmad Sharif  <asharif@google.com>
11676
11677         * value-prof.c (check_counter): Corrected error message.
11678
11679 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11680
11681         * config/arm/arm.c (arm_legitimize_reload_address): New.
11682         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11683         arm_legitimize_reload_address.
11684         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11685
11686 2011-01-28  Ian Lance Taylor  <iant@google.com>
11687
11688         * godump.c (go_define): Ignore macros whose definitions include
11689         two adjacent operands.
11690
11691 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11692
11693         PR target/42894
11694         * varasm.c (force_const_mem): Store copy of x in desc->constant
11695         instead of x itself.
11696         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11697         itself into REG_EQUAL note.
11698
11699 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11700
11701         * config/freebsd.opt (posix, rdynamic): New Driver options.
11702
11703 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11704
11705         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11706         -Bstatic/-Bdynamic.
11707         * configure: Regenerate.
11708
11709 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
11710
11711         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11712         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11713
11714 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
11715
11716         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11717         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11718         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11719         (s390_preferred_reload_class): Make static. Change return and
11720         'rclass' argument type to reg_class_t.
11721
11722 2011-01-27  Jan Hubicka  <jh@suse.cz>
11723
11724         PR middle-end/46949
11725         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11726         (process_function_and_variable_attributes): Check defined weakrefs.
11727
11728 2011-01-27  Martin Jambor  <mjambor@suse.cz>
11729
11730         PR tree-optimization/47228
11731         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11732         build_ref_for_offset.
11733
11734 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11735
11736         * config/spu/spu-elf.h (ASM_SPEC): Remove.
11737
11738 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
11739
11740         PR rtl-optimization/46856
11741         * postreload.c (reload_combine_recognize_const_pattern): Do not
11742         separate cc0 setter and user on cc0 targets.
11743
11744 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
11745
11746         PR c/43082
11747         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11748         passed a VOID_TYPE expression, immediately emit an error and
11749         return error_mark_node.
11750
11751 2011-01-26  Jeff Law  <law@redhat.com>
11752
11753         PR rtl-optimization/47464
11754         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11755         rather than may_trap_p as needed.
11756
11757 2011-01-26  DJ Delorie  <dj@redhat.com>
11758
11759         PR rtl-optimization/46878
11760         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11761         setter/user dependency as well.
11762
11763 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11764
11765         PR rtl-optimization/44469
11766         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11767         after removing trivially dead basic blocks.
11768
11769 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11770
11771         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11772         * config/frv/frv.h (LINK_SPEC): Likewise.
11773         * config/i386/netware.h (LINK_SPEC): Likewise.
11774         * config/m68k/linux.h (ASM_SPEC): Likewise.
11775         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11776         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11777         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11778         * config/sparc/linux.h (ASM_SPEC): Likewise.
11779         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11780         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11781
11782 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11783
11784         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11785         * config/frv/frv.h (ASM_SPEC): Likewise.
11786         * config/m68k/linux.h (ASM_SPEC): Likewise.
11787         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11788         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11789         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11790         * config/sparc/linux.h (ASM_SPEC): Likewise.
11791         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11792         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11793
11794 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11795
11796         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11797         * config/frv/frv.h (LINK_SPEC): Likewise.
11798         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11799
11800 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11801
11802         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11803         * config/frv/frv.h (ASM_SPEC): Likewise.
11804         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11805         * config/m68k/linux.h (ASM_SPEC): Likewise.
11806         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11807         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11808         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11809         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11810         * config/sparc/linux.h (ASM_SPEC): Likewise.
11811         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11812         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11813         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11814
11815 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
11816
11817         PR target/46997
11818         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11819         (*mux2): Ditto.
11820         (vec_extract_evenodd_help): Ditto.
11821         (vec_extract_evenv4hi): Ditto.
11822         (vec_extract_oddv4hi): Ditto.
11823         (vec_interleave_lowv2si): Ditto.
11824         (vec_interleave_highv2si): Ditto.
11825         (vec_extract_evenv2si): Ditto.
11826         (vec_extract_oddv2si: Ditto.
11827         (vec_pack_trunc_v2si): Ditto.
11828
11829 2011-01-22  Jan Hubicka  <jh@suse.cz>
11830
11831         PR target/47237
11832         * cgraph.h (cgraph_local_info): New field can_change_signature.
11833         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11834         signature can change.
11835         (ipcp_estimate_growth): Call sequence simplify only if calle signature
11836         can change.
11837         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11838         (cgraph_function_versioning): We can not change signature of functions
11839         that don't allow that.
11840         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11841         (lto_input_node): Likewise.
11842         * ipa-inline.c (compute_inline_parameters): Compute
11843         local.can_change_signature.
11844         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11845         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11846         functions that can not change signature.
11847         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11848         init_cumulative_args): Do not use local calling conventions
11849         for functions that can not change signature.
11850
11851 2011-01-22  Jan Hubicka  <jh@suse.cz>
11852
11853         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11854
11855 2011-01-26  Richard Guenther  <rguenther@suse.de>
11856
11857         PR tree-optimization/47190
11858         * cgraphunit.c (process_common_attributes): New function.
11859         (process_function_and_variable_attributes): Use it.
11860
11861 2011-01-26  Richard Guenther  <rguenther@suse.de>
11862
11863         PR lto/47423
11864         * cgraphbuild.c (record_eh_tables): Record reference to personality
11865         function.
11866
11867 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
11868
11869         PR debug/45454
11870         * sel-sched.c (moveup_expr): Don't let debug insns prevent
11871         non-debug insns from moving up.
11872
11873 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11874
11875         PR target/40125
11876         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11877         t-dlldir{,-x} fragment for build and add it to tmake_file.
11878         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11879         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11880         * config/i386/t-dlldir: New file.
11881         (SHLIB_DLLDIR): Define.
11882         * config/i386/t-dlldir-x: New file.
11883         (SHLIB_DLLDIR): Define.
11884         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11885         (SHLIB_INSTALL): Use it.
11886
11887 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
11888
11889         PR target/47246
11890         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11891         lower bound of the allowed Thumb-2 coprocessor load/store
11892         index range to -256. Add explaining comment.
11893
11894 2011-01-25  Ian Lance Taylor  <iant@google.com>
11895
11896         * godump.c (go_define): Improve lexing of macro expansion to only
11897         accept expressions which match Go spec.
11898
11899 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11900
11901         PR c++/43601
11902         * tree.c (handle_dll_attribute): Handle it.
11903         * doc/extend.texi (@item dllexport): Mention it.
11904         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11905
11906 2011-01-25  Ian Lance Taylor  <iant@google.com>
11907
11908         PR tree-optimization/26854
11909         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11910         (decl_jump_unsafe): Move higher in file, with no other change.
11911         (bind): Set has_jump_unsafe_decl if appropriate.
11912         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11913         (check_earlier_gotos): Likewise.
11914         (c_check_switch_jump_warnings): Likewise.
11915
11916 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
11917
11918         * doc/invoke.texi (Warning Options): Add missing hyphen.
11919         (-fprofile-dir): Minor grammatical fixes.
11920         (-fbranch-probabilities): Likewise.
11921
11922 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11923
11924         PR debug/45136
11925         PR debug/45130
11926         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11927         debug insns.
11928         (no_real_insns_p, schedule_block, set_priorities): Drop special
11929         treatment of boundary debug insns.
11930         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11931         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11932         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11933         (BOUNDARY_DEBUG_INSN_P): Likewise.
11934         (SCHEDULE_DEBUG_INSN_P): Likewise.
11935         * sched-rgn.c (init_ready_list): Drop special treatment of
11936         boundary debug insns.
11937         * final.c (rest_of_clean-state): Clear notes' BB.
11938
11939 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11940
11941         * Makefile.in (LAMBDA_H): Removed.
11942         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11943         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11944         lambda-trans.o, and tree-loop-linear.o.
11945         (lto-symtab.o): Remove dependence on LAMBDA_H.
11946         (tree-loop-linear.o): Remove rule.
11947         (lambda-mat.o): Same.
11948         (lambda-trans.o): Same.
11949         (lambda-code.o): Same.
11950         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11951         (tree-vect-slp.o): Same.
11952         * hwint.h (gcd): Moved here.
11953         (least_common_multiple): Same.
11954         * lambda-code.c: Removed.
11955         * lambda-mat.c: Removed.
11956         * lambda-trans.c: Removed.
11957         * lambda.h: Removed.
11958         * tree-loop-linear.c: Removed.
11959         * lto-symtab.c: Do not include lambda.h.
11960         * omega.c (gcd): Removed.
11961         * passes.c (init_optimization_passes): Remove pass_linear_transform.
11962         * tree-data-ref.c (print_lambda_vector): Moved here.
11963         (lambda_vector_copy): Same.
11964         (lambda_matrix_copy): Same.
11965         (lambda_matrix_id): Same.
11966         (lambda_vector_first_nz): Same.
11967         (lambda_matrix_row_add): Same.
11968         (lambda_matrix_row_exchange): Same.
11969         (lambda_vector_mult_const): Same.
11970         (lambda_vector_negate): Same.
11971         (lambda_matrix_row_negate): Same.
11972         (lambda_vector_equal): Same.
11973         (lambda_matrix_right_hermite): Same.
11974         * tree-data-ref.h: Do not include lambda.h.
11975         (lambda_vector): Moved here.
11976         (lambda_matrix): Same.
11977         (dependence_level): Same.
11978         (lambda_transform_legal_p): Removed declaration.
11979         (lambda_collect_parameters): Same.
11980         (lambda_compute_access_matrices): Same.
11981         (lambda_vector_gcd): Same.
11982         (lambda_vector_new): Same.
11983         (lambda_vector_clear): Same.
11984         (lambda_vector_lexico_pos): Same.
11985         (lambda_vector_zerop): Same.
11986         (lambda_matrix_new): Same.
11987         * tree-flow.h (least_common_multiple): Removed declaration.
11988         * tree-parloops.c (lambda_trans_matrix): Moved here.
11989         (LTM_MATRIX): Same.
11990         (LTM_ROWSIZE): Same.
11991         (LTM_COLSIZE): Same.
11992         (LTM_DENOMINATOR): Same.
11993         (lambda_trans_matrix_new): Same.
11994         (lambda_matrix_vector_mult): Same.
11995         (lambda_transform_legal_p): Same.
11996         * tree-pass.h (pass_linear_transform): Removed declaration.
11997         * tree-ssa-loop.c (tree_linear_transform): Removed.
11998         (gate_tree_linear_transform): Removed.
11999         (pass_linear_transform): Removed.
12000         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12001         flag_loop_interchange.
12002
12003 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12004
12005         PR tree-optimization/47265
12006         PR tree-optimization/47443
12007         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12008         if name still has some uses.
12009
12010 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12011
12012         PR tree-optimization/47382
12013         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12014         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12015
12016 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12017
12018         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12019         sjlj_except_unwind_info.
12020
12021 2011-01-25  Richard Guenther  <rguenther@suse.de>
12022
12023         PR tree-optimization/47426
12024         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12025         visible functions results escape.
12026
12027 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12028
12029         PR target/45701
12030         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12031         (arm_get_frame_offsets): Use it.
12032
12033 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12034             Jakub Jelinek  <jakub@redhat.com>
12035
12036         PR tree-optimization/47271
12037         * tree-if-conv.c (bb_postdominates_preds): New.
12038         (if_convertible_bb_p): Call bb_postdominates_preds.
12039         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12040         (predicate_scalar_phi): Call bb_postdominates_preds.
12041
12042 2011-01-25  Nick Clifton  <nickc@redhat.com>
12043
12044         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12045         * config/rx/rx.c (rx_function_value): Likewise.
12046         (rx_promote_function_mode): Likewise.
12047         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12048         in order to make it legitimate.
12049         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12050         make sure that the first operand is the same as the result register.
12051         (addsi3_unspec): Delete.
12052         (subdi3): Do not accept immediate operands.
12053         (subdi3_internal): Likewise.
12054
12055 2011-01-25  Jeff Law  <law@redhat.com>
12056
12057         PR rtl-optimization/37273
12058         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12059         handle them like argument loads from stack slots.  Do not double
12060         count memory for memory constants and argument loads from stack slots.
12061
12062 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12063
12064         PR tree-optimization/47427
12065         PR tree-optimization/47428
12066         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12067         coalesce if the new root var would be TREE_READONLY.
12068
12069 2011-01-25  Richard Guenther  <rguenther@suse.de>
12070
12071         PR middle-end/47414
12072         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12073         correct type for TBAA.
12074
12075 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12076
12077         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12078         (close_phi_written_to_memory): Call for_each_index with
12079         dr_indices_valid_in_loop.
12080
12081 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12082
12083         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12084         when it is initialized.
12085
12086 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12087
12088         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12089         call to graphite_find_data_references_in_stmt.
12090         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12091         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12092         call to graphite_find_data_references_in_stmt.
12093         (analyze_drs_in_stmts): Same.
12094         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12095         in which the scalar analysis of indices is performed.
12096         (create_data_ref): Same.  Update call to dr_analyze_indices.
12097         (find_data_references_in_stmt): Update call to create_data_ref.
12098         (graphite_find_data_references_in_stmt): Same.
12099         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12100         declaration.
12101         (create_data_ref): Same.
12102         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12103         call to create_data_ref.
12104
12105 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12106
12107         * graphite-sese-to-poly.c (build_poly_scop): Move
12108         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12109
12110 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12111
12112         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12113         VAR_DECL, PARM_DECL, and RESULT_DECL.
12114
12115 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12116
12117         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12118         in a reduction PBB.
12119         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12120         that have already been marked as PBB_IS_REDUCTION.
12121
12122 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12123
12124         * graphite-scop-detection.c (same_close_phi_node): New.
12125         (remove_duplicate_close_phi): New.
12126         (make_close_phi_nodes_unique): New.
12127         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12128
12129 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12130
12131         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12132         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12133         of both data references to be the same.
12134
12135 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12136
12137         * graphite-dependences.c (build_lexicographical_constraint): Remove
12138         the gdim parameter.
12139         (build_lexicographical_constraint): Adjust call to
12140         ppl_powerset_is_empty.
12141         (dependence_polyhedron): Same.
12142         (graphite_legal_transform_dr): Same.
12143         (graphite_carried_dependence_level_k): Same.
12144         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12145         parameter.
12146         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12147
12148 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12149
12150         * graphite-sese-to-poly.c
12151         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12152         (close_phi_written_to_memory): New.
12153         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12154         and unshare_expr.
12155
12156 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12157
12158         * doc/install.texi: Update the expected version number of PPL to 0.11.
12159         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12160         #if PPL_VERSION_MINOR < 11.
12161
12162 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12163
12164         * graphite-dependences.c: Include graphite-cloog-util.h.
12165         (new_poly_ddr): Inlined into dependence_polyhedron.
12166         (free_poly_ddr): Moved close by new_poly_ddr.
12167         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12168         Early return NULL when ppl_powerset_is_empty returns true.
12169         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12170         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12171         (graphite_legal_transform_dr): Call new_poly_ddr.
12172         (graphite_carried_dependence_level_k): Same.
12173         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12174         (dot_transformed_deps_stmt_1): Removed.
12175         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12176         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12177         (dot_deps_1): Call dot_deps_2.
12178         * Makefile.in (graphite-dependences.o): Add missing dependence on
12179         graphite-cloog-util.h.
12180
12181 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12182
12183         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12184         (build_lexicographical_constraint): Same.
12185         (dependence_polyhedron_1): Same.
12186         (graphite_legal_transform_dr): Same.
12187         (graphite_carried_dependence_level_k): Same.
12188         * graphite-ppl.c (ppl_powerset_is_empty): New.
12189         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12190         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12191
12192 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12193
12194         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12195         the "a followed by b" relation and document it.
12196
12197 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12198
12199         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12200         iteration when the bag of constraints is empty.
12201
12202 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12203
12204         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12205
12206 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12207
12208         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12209         nest and two loop depths as parameters.
12210         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12211         lst_perfect_nestify.
12212
12213 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12214
12215         * graphite-dependences.c (print_pddr): Call
12216         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12217
12218 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12219
12220         * graphite-ppl.c (debug_gmp_value): New.
12221         * graphite-ppl.h (debug_gmp_value): Declared.
12222
12223 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12224
12225         * doc/install.texi: Document availability of cloog-0.16.
12226
12227 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12228
12229         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12230         invalid postdominance info.
12231
12232 2011-01-24  Jan Hubicka  <jh@suse.cz>
12233
12234         PR c/21659
12235         * doc/extend.texi (weak pragma): Drop claim that it must
12236         appear before definition.
12237         * varasm.c (merge_weak, declare_weak): Only sanity check
12238         that DECL is not output at a time it is declared weak.
12239
12240 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12241
12242         * machmode.def: Fixed comments.
12243
12244 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12245
12246         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12247
12248 2011-01-24  Paul Koning  <ni1d@arrl.net>
12249
12250         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12251         WORDS_BIG_ENDIAN.
12252
12253 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12254
12255         PR target/46519
12256         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12257         (block_info): Add scanned and prev.
12258         (move_or_delete_vzeroupper_2): Return if the basic block
12259         has been scanned and the upper 128bit state is unchanged
12260         from the last scan.
12261         (move_or_delete_vzeroupper_1): Return true if the exit
12262         state is changed.
12263         (move_or_delete_vzeroupper): Visit basic blocks using the
12264         work-list based algorithm based on vt_find_locations in
12265         var-tracking.c.
12266
12267         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12268
12269 2011-01-24  Nick Clifton  <nickc@redhat.com>
12270
12271         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12272         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12273         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12274         then define __v850e1__.
12275         * doc/invoke.texi: Document -mv850es.
12276
12277 2011-01-24  Richard Henderson  <rth@redhat.com>
12278
12279         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12280         compound unordered comparisons.
12281         * config/rx/rx.c (rx_split_fp_compare): Remove.
12282         * config/rx/rx-protos.h: Update.
12283         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12284         (cbranchsf4): Don't call rx_split_fp_compare.
12285         (*cbranchsf4): Use rx_split_cbranch.
12286         (*cmpsf): Don't accept "i" constraint.
12287         (*conditional_branch): Only valid after reload.
12288         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12289
12290 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12291
12292         PR target/47385
12293         * config/rs6000/altivec.md (vector constant splitters): Add
12294         support for creating vector single precision constants if -mvsx is
12295         used and we would create the constant using Altivec primitives.
12296
12297 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12298             Richard Sandiford  <rdsandiford@googlemail.com>
12299
12300         PR rtl-optimization/47166
12301         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12302         mechanism for PRE_MODIFY and POST_MODIFY.
12303         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12304         reloadreg.
12305
12306 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12307
12308         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12309
12310 2011-01-22  Jan Hubicka  <jh@suse.cz>
12311
12312         PR lto/47333
12313         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12314
12315 2011-01-22  Jan Hubicka  <jh@suse.cz>
12316
12317         PR tree-optimization/43884
12318         PR lto/44334
12319         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12320         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12321
12322 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12323
12324         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12325         * config/s390/s390.c (s390_register_move_cost,
12326         s390_memory_move_cost): New.
12327         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12328
12329 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12330
12331         PR middle-end/47401
12332         * except.c (sjlj_assign_call_site_values): Move setting the
12333         crtl->uses_eh_lsda flag to ...
12334         (sjlj_mark_call_sites): ... here.
12335         (sjlj_emit_function_enter): Support NULL dispatch label.
12336         (sjlj_build_landing_pads): In a function with no landing pads
12337         that still has must-not-throw regions, generate code to register
12338         a personality function with empty LSDA.
12339
12340 2011-01-21  Richard Henderson  <rth@redhat.com>
12341
12342         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12343
12344         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12345
12346         * compare-elim.c: New file.
12347         * Makefile.in (OBJS-common): Add it.
12348         (compare-elim.o): New.
12349         * common.opt (fcompare-elim): New.
12350         * opts.c (default_options_table): Add OPT_fcompare_elim.
12351         * tree-pass.h (pass_compare_elim_after_reload): New.
12352         * passes.c (init_optimization_passes): Add it.
12353         * recog.h: Protect against re-inclusion.
12354         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12355         * doc/invoke.texi (-fcompare-elim): Document it.
12356         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12357         * doc/tm.texi: Rebuild.
12358
12359 2011-01-22  Nick Clifton  <nickc@redhat.com>
12360
12361         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12362         rx_split_fp_compare.
12363
12364 2011-01-22  Nick Clifton  <nickc@redhat.com>
12365
12366         * config/rx/rx.md (UNSPEC_CONST): New.
12367         (deallocate_and_return): Wrap the amount popped off the stack in
12368         an UNSPEC_CONST in order to stop it being rejected by
12369         -mmax-constant-size.
12370         (pop_and_return): Add a "(return)" rtx.
12371         (call): Drop the immediate operand.
12372         (call_internal): Likewise.
12373         (call_value): Likewise.
12374         (call_value_internal): Likewise.
12375         (sibcall_internal): Likewise.
12376         (sibcall_value_internal): Likewise.
12377         (sibcall): Likewise.  Generate an explicit call using
12378         sibcall_internal.
12379         (sibcall_value): Likewise.
12380         (mov<>): FAIL if a constant operand is not legitimate.
12381         (addsi3_unpsec): New pattern.
12382
12383         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12384         (ok_for_max_constant): New function.
12385         (gen_safe_add): New function.
12386         (rx_expand_prologue): Use gen_safe_add.
12387         (rx_expand_epilogue): Likewise.
12388         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12389         UNSPEC CONSTs.
12390
12391 2011-01-21  Jeff Law  <law@redhat.com>
12392
12393         PR tree-optimization/47053
12394         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12395         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12396         statements are deleted.
12397         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12398         is nonempty, then purge dead edges and cleanup the CFG.
12399
12400 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12401
12402         PR debug/47402
12403         Temporarily revert:
12404         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12405         PR debug/47106
12406         * tree-dfa.c (create_var_ann): Mark variable as used.
12407
12408 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12409
12410         PR middle-end/45566
12411         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12412         notes from other section in hot/cold partitioning even if
12413         last_action is -3.  Increment call_site_base.
12414
12415         PR rtl-optimization/47366
12416         * fwprop.c (forward_propagate_into): Return bool.  If
12417         any changes are made, -fnon-call-exceptions is used and
12418         REG_EH_REGION note is present, call purge_dead_edges
12419         and return true if it purged anything.
12420         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12421         any EH edges were purged.
12422
12423 2011-01-21  Jeff Law  <law@redhat.com>
12424
12425         PR rtl-optimization/41619
12426         * caller-save.c (setup_save_areas): Break out code to determine
12427         which hard regs are live across calls by examining the reload chains
12428         so that it is always used.
12429         Eliminate code which checked REG_N_CALLS_CROSSED.
12430
12431 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12432
12433         PR tree-optimization/47355
12434         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12435         NOP has non-debug uses beyond PHIs in new_bb.
12436
12437 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12438
12439         PR debug/47106
12440         * cfgexpand.c (account_used_vars_for_block): Only account vars
12441         that are annotated as used.
12442         (estimated_stack_frame_size): Don't set TREE_USED.
12443         * tree-dfa.c (create_var_ann): Mark variable as used.
12444
12445 2011-01-21  Richard Guenther  <rguenther@suse.de>
12446
12447         PR middle-end/47395
12448         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12449
12450 2011-01-21  Richard Guenther  <rguenther@suse.de>
12451
12452         PR tree-optimization/47365
12453         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12454         (vn_reference_lookup_pieces): Adjust.
12455         (vn_reference_lookup): Likewise.
12456         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12457         (vn_reference_lookup_3): Only look through kills if in
12458         VN_WALKREWRITE mode.
12459         (vn_reference_lookup_pieces): Adjust.
12460         (vn_reference_lookup): Likewise.
12461         (visit_reference_op_load): Likewise.
12462         (visit_reference_op_store): Likewise.
12463         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12464         (compute_avail): Likewise.
12465         (eliminate): Likewise.
12466
12467 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12468
12469         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12470         DECL_IGNORED_P non-reg vars if they are used.
12471
12472         PR tree-optimization/47391
12473         * varpool.c (const_value_known_p): Return false if
12474         decl is volatile.
12475
12476 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12477
12478         PR bootstrap/47215
12479         * config/i386/i386.c (ix86_local_alignment): Handle
12480         case for va_list_type_node is nil.
12481         (ix86_canonical_va_list_type): Likewise.
12482
12483 2011-01-21  Alan Modra  <amodra@gmail.com>
12484
12485         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12486         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12487
12488 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12489
12490         * config/arm/arm.md (define_attr type): Rename f_load
12491         and f_store to f_fpa_load and f_fpa_store. Update.
12492         (write_conflict): Deal with rename fallout.
12493         (*push_fp_multi): Likewise.
12494         * config/arm/fpa.md (f_load): Use f_fpa_load.
12495         (f_store): Use f_fpa_store.
12496         (*movsf_fpa): Likewise.
12497         (*movdf_fpa): Likewise.
12498         (*movxf_fpa): Likewise.
12499         (*thumb2_movsf_fpa): Likewise.
12500         (*thumb2_movdf_fpa): Likewise.
12501         (*thumb2_movxf_fpa): Likewise.
12502         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12503         f_loadd and f_stored.
12504         (*thumb2_movdi_vfp): Likewise.
12505         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12506         (*thumb2_movsi_vfp): Likewise.
12507         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12508         Use f_loads instead of f_load.
12509         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12510
12511 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12512
12513         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12514         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12515         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12516         (xtensa_mode_dependent_address_p): New function.
12517         (constantpool_address_p): Make static. Change return type to bool.
12518         Change argument type to const_rtx. Use CONST_INT_P predicate.
12519
12520 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12521
12522         PR debug/46583
12523         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12524
12525 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12526
12527         PR debug/47283
12528         * cfgexpand.c (expand_debug_expr): Instead of generating
12529         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12530         etc. handling.
12531
12532 2011-01-20  Richard Guenther  <rguenther@suse.de>
12533
12534         PR middle-end/47370
12535         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12536         the pointer operand of MEM_REFs.
12537
12538 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12539
12540         PR tree-optimization/46130
12541         * ipa-split.c (consider_split): If return_bb contains non-virtual
12542         PHIs other than for retval or if split_function would not adjust it,
12543         refuse to split.
12544
12545 2011-01-20  Richard Guenther  <rguenther@suse.de>
12546
12547         PR tree-optimization/47167
12548         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12549         Revert previous change, only avoid enumeral type changes.
12550
12551 2011-01-19  Mike Stump  <mikestump@comcast.net>
12552
12553         * doc/tm.texi.in (BRANCH_COST): Englishify.
12554         * doc/tm.texi (BRANCH_COST): Likewise.
12555
12556 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12557
12558         PR c++/47291
12559         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12560         (gen_scheduled_generic_parms_dies): New functions.
12561         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12562         generation for the end of CU compilation.
12563         (dwarf2out_finish): Generate template parameters DIEs here.
12564
12565 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12566
12567         PR debug/46240
12568         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12569         debug bind stmt on merge edges.
12570
12571 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12572
12573         PR debug/47079
12574         PR debug/46724
12575         * function.c (instantiate_expr): Instantiate incoming rtl of
12576         implicit arguments, and recurse on VALUE_EXPRs.
12577         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12578         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12579
12580 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12581
12582         * c-parser.c (c_parser_for_statement): Initialize
12583         collection_expression.
12584
12585 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12586
12587         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12588
12589 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12590
12591         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12592         (LINK_SHLIB_SPEC): Don't use %(link_path).
12593         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12594
12595 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12596
12597         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12598         (NO_SHARED_LIB_SUPPORT): Remove.
12599         (LINK_SHLIB_SPEC): Remove one conditional definition.
12600
12601 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12602
12603         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12604         %{call_shared}.
12605         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12606         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12607         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12608         %{call_shared} and conditionals on these options not being passed.
12609         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12610         %{call_shared}.
12611
12612 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12613
12614         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12615         simplify.
12616
12617         * ipa-split.c: Spelling fixes.
12618
12619 2011-01-19  Richard Henderson  <rth@redhat.com>
12620
12621         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12622         (*mulsi3): Likewise.
12623
12624         * longlong.h [__mn10300__] (count_leading_zeros): New.
12625         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12626         [__mn10300__] (add_ssaaaa, subddmmss): New.
12627         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12628         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12629
12630 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12631
12632         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12633
12634 2011-01-19  Richard Henderson  <rth@redhat.com>
12635
12636         * config/mn10300/mn10300.md (addsi3_flags): New.
12637         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12638         (subsi3_flags, subc_internal, subdi3): New.
12639         (subdi3_internal, *subdi3_degenerate): New.
12640         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12641
12642         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12643         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12644         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12645         * config/mn10300/mn10300-protos.h: Update.
12646         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12647         (return_ret): Likewise.  Rename from return_internal_regs.
12648         (return_internal): Remove.
12649
12650         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12651         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12652         (mn10300_legitimate_constant_p): Likewise.
12653         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12654         (mn10300_frame_size): New.
12655         (mn10300_expand_prologue): Use it.
12656         (mn10300_expand_epilogue): Likewise.
12657         (mn10300_initial_offset): Likewise.
12658         * config/mn10300/mn10300-protos.h: Update.
12659         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12660         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12661         (prologue, epilogue, return_internal): Tidy output code.
12662         (mn10300_store_multiple_operation, return): Likewise.
12663         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12664         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12665         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12666         (load_pic, am33_load_pic): New.
12667         (mn10300_load_pic0, mn10300_load_pic1): New.
12668
12669         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12670         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12671         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12672         (cc_flags_for_mode, cc_flags_for_code): New.
12673         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12674         overflow flag is not valid.  Validate that the flags we need
12675         for the comparison are valid.
12676         (mn10300_output_cmp): Remove.
12677         (mn10300_output_add): New.
12678         (mn10300_select_cc_mode): Use cc_flags_for_code.
12679         (mn10300_split_cbranch): New.
12680         (mn10300_match_ccmode): New.
12681         (mn10300_split_and_operand_count): New.
12682         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12683         to the function.
12684         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12685         (addsi3): ... here.  Use mn10300_output_add.
12686         (*addsi3_flags): New.
12687         (*am33_subsi3, *mn10300_subsi3): Merge...
12688         (subsi3): ... here.  Use attribute isa.
12689         (*subsi3_flags): New.
12690         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12691         when possible.
12692         (*am33_andsi3, *mn10300_andsi3): Merge...
12693         (andsi3): ... here.
12694         (*andsi3_flags): New.
12695         (andsi3 splitters): New.
12696         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12697         (iorsi3): ... here.
12698         (*iorsi3_flags): New.
12699         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12700         (xorsi3): ... here.
12701         (*xorsi3_flags): New.
12702         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12703         (one_cmplsi2): ... here.
12704         (*one_cmplsi2_flags): New.
12705         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
12706         instead of "dax" in constraints.  Use mn10300_split_cbranch.
12707         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
12708         use matching constraints to eliminate a self-comparison.
12709         (*integer_conditional_branch): Rename from integer_conditional_branch.
12710         Use int_mode_flags to match CC_REG.
12711         (*cbranchsi4_btst, *btstsi): New.
12712         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
12713         mn10300_split_cbranch.
12714         (*am33_cmpsf): Rename from am33_cmpsf.
12715         (*float_conditional_branch): Rename from float_conditional_branch.
12716         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12717         (zero_extendqisi2): ... here.
12718         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12719         (zero_extendhisi2): ... here.
12720         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12721         (extendqisi2): ... here.
12722         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12723         (extendhisi2): ... here.
12724         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12725         (ashlsi3): ... here.
12726         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12727         (lshrsi3): ... here.
12728         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12729         (ashrsi3): ... here.
12730         (consecutive add peephole): Remove.
12731         * config/mn10300/predicates.md (label_ref_operand): New.
12732         (int_mode_flags): New.
12733         (CCZN_comparison_operator): New.
12734
12735         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12736         (throughput_42_latency_43): New reservation.
12737         (mulsidi3, umulsidi3): New expanders.
12738         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
12739         the MDR register to allocation; separately allocate the low and
12740         high parts of the DImode result.
12741         (umulsidi3_internal): Similarly.
12742         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12743         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
12744         (udivsi3, umodsi3): Remove.
12745         (udivmodsi4, divmodsi4): New expanders.
12746         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
12747         (*divmodsi4): Simiarly.
12748         (ext_internal): New.
12749
12750         * config/mn10300/constraints.md ("z"): New constraint.
12751         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12752         (FIXED_REGISTERS): Don't fix MDR.
12753         (CALL_USED_REGSITERS): Reformat nicely.
12754         (REG_ALLOC_ORDER): Add MDR.
12755         (enum regclass): Add MDR_REGS.
12756         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12757         (IRA_COVER_CLASSES): Add MDR_REGS.
12758         (REGNO_REG_CLASS): Handle MDR_REG.
12759         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12760         (mn10300_register_move_cost): Likewise.
12761         * config/mn10300/mn10300.md (MDR_REG): New.
12762         (*movsi_internal): Handle moves to/from MDR_REGS.
12763
12764         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12765         POST_MODIFY.
12766         (mn10300_secondary_reload): Tidy combination reload classes.
12767         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12768         addresses for AM33.  Allow symbolic offsets for reg+imm.
12769         (mn10300_regno_in_class_p): New.
12770         (mn10300_legitimize_reload_address): New.
12771         * config/mn10300/mn10300.h (enum reg_class): Remove
12772         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12773         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
12774         SP_OR_GENERAL_REGS.
12775         (REG_CLASS_NAMES): Update to match.
12776         (REG_CLASS_CONTENTS): Likewise.
12777         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12778         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12779         (REGNO_IN_RANGE_P): Remove.
12780         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12781         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12782         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12783         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12784         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12785         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12786         (REGNO_GENERAL_P): New.
12787         (HAVE_POST_MODIFY_DISP): New.
12788         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12789         (LEGITIMIZE_RELOAD_ADDRESS): New.
12790         * config/mn10300/mn10300-protos.h: Update.
12791
12792         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12793         DATA_REGS for AM33 stack-pointer destination.
12794         (mn10300_preferred_output_reload_class): Likewise.
12795         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12796         into a form appropriate for ...
12797         (TARGET_SECONDARY_RELOAD): New.
12798         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12799         * config/mn10300/mn10300-protos.h: Update.
12800         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12801         reload_insi; use the "A" constraint for the scratch; handle AM33
12802         moves of sp to non-address registers.
12803
12804         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12805         (*movqi_internal): ... here.
12806         (*am33_movhi, *mn10300_movhi): Merge into...
12807         (*movhi_internal): ... here.
12808         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
12809         as the source/destination of moves from/to SP.
12810         (movsf): Only allow for AM33-2.
12811         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12812         any integer constant constraint.  Only allow for AM33-2.  Tidy
12813         all of the alternative outputs.
12814         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12815         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
12816         for MN103.
12817         (udivsi3, umodsi3): New patterns for MN103 only.
12818
12819 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
12820
12821         * doc/tm.texi.in: Spell out that a lack of register class unions
12822         can lead to ICEs.
12823         * doc/tm.texi: Regenerate.
12824
12825 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12826
12827         PR rtl-optimization/47337
12828         * dce.c (check_argument_store): New function.
12829         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
12830
12831         PR tree-optimization/47290
12832         * tree-eh.c (infinite_empty_loop_p): New function.
12833         (cleanup_empty_eh): Use it.
12834
12835 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
12836
12837         PR target/46997
12838         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12839         (a64_expand_widen_sum): Ditto.
12840         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12841         (vec_extract_evenodd_help): Ditto.
12842         (vec_extract_evenv4hi): Ditto.
12843         (vec_extract_oddv4hi): Ditto.
12844         (vec_extract_evenv2si): Ditto.
12845         (vec_extract_oddv2si): Ditto.
12846         (vec_extract_evenv2sf): Ditto.
12847         (vec_extract_oddv2sf): Ditto.
12848         (vec_pack_trunc_v4hi: Ditto.
12849         (vec_pack_trunc_v2si): Ditto.
12850         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12851         (vec_interleave_highv8qi): Ditto.
12852         (mix1_r): Ditto.
12853         (vec_extract_oddv8qi): Ditto.
12854         (vec_interleave_lowv4hi): Ditto.
12855         (vec_interleave_highv4hi): Ditto.
12856         (vec_interleave_lowv2si): Ditto.
12857         (vec_interleave_highv2si): Ditto.
12858
12859 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12860
12861         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12862         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12863         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
12864         (pa_c_mode_for_suffix): New.
12865         (TARGET_EXPAND_BUILTIN): Define.
12866         (TARGET_C_MODE_FOR_SUFFIX): Define.
12867         (pa_builtins): Define.
12868         (pa_init_builtins): Register __float128 type and init new support
12869         builtins.
12870         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12871         * config/pa/quadlib.c (_U_Qfcopysign): New.
12872
12873 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
12874
12875         PR middle-end/46894
12876         * explow.c (allocate_dynamic_stack_space): Do not assume more than
12877         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12878         are defined.
12879
12880 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12881
12882         PR tree-optimization/47179
12883         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12884         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12885
12886 2011-01-18  Richard Guenther  <rguenther@suse.de>
12887
12888         PR rtl-optimization/47216
12889         * emit-rtl.c: Include tree-flow.h.
12890         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12891         of replicating it with different semantics.
12892         * Makefile.in (emit-rtl.o): Adjust.
12893
12894 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12895
12896         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12897         (cortex_a9_dp): Handle neon types correctly.
12898
12899 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
12900
12901         PR rtl-optimization/47299
12902         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12903         subtarget.  Use normal multiplication if both operands are constants.
12904         * expmed.c (expand_widening_mult): Don't try to optimize constant
12905         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
12906         before using it.
12907
12908 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12909
12910         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
12911         spacing after 'e.g.', typos, comma, hyphenation.
12912
12913 2011-01-17  Richard Henderson  <rth@redhat.com>
12914
12915         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12916         (rx_restricted_mem_operand): New.
12917         (rx_shift_operand): Use register_operand.
12918         (rx_source_operand, rx_compare_operand): Likewise.
12919         * config/rx/rx.md (addsi3_flags): New expander.
12920         (adddi3): Rewrite as expander.
12921         (adc_internal, *adc_flags, adddi3_internal): New patterns.
12922         (subsi3_flags): New expander.
12923         (subdi3): Rewrite as expander.
12924         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12925
12926         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12927         (rx_init_builtins): Remove sat builtin.
12928         (rx_expand_builtin): Likewise.
12929         * config/rx/rx.md (ssaddsi3): New.
12930         (*sat): Rename from sat.  Represent the CC_REG input.
12931
12932         * config/rx/predicates.md (rshift_operator): New.
12933         * config/rx/rx.c (rx_expand_insv): Remove.
12934         * config/rx/rx-protos.h: Update.
12935         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
12936         operand to the canonical position.
12937         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12938         (*bitclr, *bitclr_in_memory): Similarly.
12939         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12940         (insv): Retain the zero_extract in the expansion.
12941
12942         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12943         (bswaphi2, bitinvert, revw): Likewise.
12944
12945         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12946         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12947         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12948         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12949         (bitset, bitset_in_memory): Likewise.
12950         (bitinvert, bitinvert_in_memory): Likewise.
12951         (bitclr, bitclr_in_memory): Likewise.
12952         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12953         (rx_strend, rx_cmpstrn): Likewise.
12954         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
12955         (bitop peep2 patterns): Remove.
12956
12957         * config/rx/rx.c (rx_match_ccmode): New.
12958         * config/rx/rx-protos.h: Update.
12959         * config/rx/rx.md (abssi2): Clobber, don't set flags.
12960         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12961         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12962         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12963         (fix_truncsfsi2, floatsisf2): Likewise.
12964         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12965         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12966         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12967         (*subsi3_flags, *xorsi3_flags): New.
12968
12969         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12970
12971         * config/rx/rx.c (rx_print_operand): Remove workaround for
12972         unsplit comparison operations.
12973
12974         * config/rx/rx.md (movsicc): Split after reload.
12975         (*movsicc): Merge *movsieq and *movsine via match_operator.
12976         (*stcc): New pattern.
12977
12978         * config/rx/rx.c (rx_float_compare_mode): Remove.
12979         * config/rx/rx.h (rx_float_compare_mode): Remove.
12980         * config/rx/rx.md (cstoresi4): Split after reload.
12981         (*sccc): New pattern.
12982
12983         * config/rx/predicates.md (label_ref_operand): New.
12984         (rx_z_comparison_operator): New.
12985         (rx_zs_comparison_operator): New.
12986         (rx_fp_comparison_operator): New.
12987         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12988         Validate that the flags are set properly for the comparison.
12989         (rx_gen_cond_branch_template): Remove.
12990         (rx_cc_modes_compatible): Remove.
12991         (mode_from_flags): New.
12992         (flags_from_code): Rename from flags_needed_for_conditional.
12993         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12994         (rx_select_cc_mode): Likewise.
12995         (rx_split_fp_compare): New.
12996         (rx_split_cbranch): New.
12997         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12998         (*cbranchsi4): Use match_operator and rx_split_cbranch.
12999         (*cbranchsf4): Similarly.
13000         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13001         match_operator and rx_split_cbranch.
13002         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13003         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13004         (*cmpsi): Rename from cmpsi.
13005         (*tstsi): Rename from tstsi.
13006         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13007         (*conditional_branch): Rename from conditional_branch.
13008         (*reveresed_conditional_branch): Remove.
13009         (b<code>): Remove expander.
13010         * config/rx/rx-protos.h: Update.
13011
13012         * config/rx/rx.c (rx_compare_redundant): Remove.
13013         * config/rx/rx.md (cmpsi): Don't use it.
13014         * config/rx/rx-protos.h: Update.
13015
13016         * config/rx/rx-modes.def (CC_F): New mode.
13017         * config/rx/rx.c (rx_select_cc_mode): New.
13018         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13019         * config/rx/rx-protos.h: Update.
13020
13021 2011-01-17  Richard Henderson  <rth@redhat.com>
13022
13023         * except.c (dump_eh_tree): Fix stray ; after for statement.
13024
13025 2011-01-17  Richard Guenther  <rguenther@suse.de>
13026
13027         PR tree-optimization/47313
13028         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13029         handling before copying the body.  Properly deal with
13030         by-reference result in SSA form.
13031
13032 2011-01-17  Ian Lance Taylor  <iant@google.com>
13033
13034         PR target/47219
13035         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13036         (struct_value_alias_set): Don't define.
13037         (sparc_option_override): Don't set sparc_sr_alias_set and
13038         struct_value_alias_set.
13039         (save_or_restore_regs): Use gen_frame_mem rather than calling
13040         set_mem_alias_set.
13041         (sparc_struct_value_rtx): Likewise.
13042
13043 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13044
13045         PR target/47318
13046         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13047         (_mm_maskstore_pd): Likewise.
13048         (_mm_maskload_ps): Likewise.
13049         (_mm_maskstore_ps): Likewise.
13050         (_mm256_maskload_pd): Change mask to __m256i.
13051         (_mm256_maskstore_pd): Likewise.
13052         (_mm256_maskload_ps): Likewise.
13053         (_mm256_maskstore_ps): Likewise.
13054
13055         * config/i386/i386-builtin-types.def: Updated.
13056         (ix86_expand_special_args_builtin): Likewise.
13057
13058         * config/i386/i386.c (bdesc_special_args): Update
13059         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13060         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13061         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13062         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13063
13064         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13065         Use <avxpermvecmode> on mask register.
13066         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13067
13068 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13069             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13070             Eric Botcazou  <ebotcazou@adacore.com>
13071
13072         PR target/46655
13073         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13074         if <= USHRT_MAX in 32-bit mode.
13075
13076 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13077
13078         * doc/install.texi (Configuration, Specific): Wrap long
13079         lines in examples.  Allow line wrapping in long options
13080         and URLs where beneficial for PDF output.
13081
13082 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13083
13084         * config/mips/mips.c (mips_classify_symbol): Don't return
13085         SYMBOL_PC_RELATIVE for nonlocal labels.
13086
13087 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13088
13089         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13090
13091 2011-01-15  Jan Hubicka  <jh@suse.cz>
13092
13093         PR tree-optimization/47276
13094         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13095         declarations as needed.
13096
13097 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13098
13099         * common.opt (fdevirtualize): New flag.
13100         * doc/invoke.texi (Option Summary): Document it.
13101         * opts.c (default_options_table): Add devirtualize flag.
13102         * ipa-prop.c (detect_type_change): Return immediately if
13103         devirtualize flag is not set.
13104         (detect_type_change_ssa): Likewise.
13105         (compute_known_type_jump_func): Likewise.
13106         (ipa_analyze_virtual_call_uses): Likewise.
13107
13108 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13109
13110         PR tree-optimization/45934
13111         PR tree-optimization/46302
13112         * ipa-prop.c (type_change_info): New type.
13113         (stmt_may_be_vtbl_ptr_store): New function.
13114         (check_stmt_for_type_change): Likewise.
13115         (detect_type_change): Likewise.
13116         (detect_type_change_ssa): Likewise.
13117         (compute_complex_assign_jump_func): Check for dynamic type change.
13118         (compute_complex_ancestor_jump_func): Likewise.
13119         (compute_known_type_jump_func): Likewise.
13120         (compute_scalar_jump_functions): Likewise.
13121         (ipa_analyze_virtual_call_uses): Likewise.
13122         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13123
13124 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13125
13126         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13127         * config/i386/i386.opt (msse5): New Alias.
13128
13129 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13130
13131         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13132         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13133         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13134         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13135
13136 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13137
13138         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13139         -mcpu options.
13140         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13141         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13142         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13143         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13144         Likewise.
13145         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13146
13147 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13148
13149         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13150
13151 2011-01-14  Mike Stump  <mikestump@comcast.net>
13152
13153         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13154         * config/fr30/fr30.md: Likweise
13155         (movsi_push): Likewise.
13156         (movsi_pop): Likewise.
13157         (enter_func): Likewise.
13158         * config/moxie/moxie.md (movsi_push): Likewise.
13159         (movsi_pop): Likewise.
13160
13161 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13162
13163         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13164         %{no_archive} %{exact_version}.
13165         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13166         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13167         %{no_archive} %{exact_version}.
13168         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13169         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13170         * config/mips/vxworks.h: Likewise.
13171
13172 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13173
13174         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13175
13176 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13177
13178         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13179         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13180
13181 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13182
13183         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13184         -nodefaultlib.
13185
13186 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13187
13188         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13189         for mcpu not cpu.
13190         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13191         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13192         not cpu.
13193         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13194         Don't handle -shlib.
13195
13196 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13197
13198         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13199         (CC1_SPEC): Don't handle -profile.
13200
13201 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13202
13203         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13204         * config/mips/mips.h (CC1_SPEC): Likewise.
13205
13206 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13207
13208         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13209         * config/mips/mips.h (CC1_SPEC): Likewise.
13210
13211 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13212
13213         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13214         * config/m32r/linux.h (LINK_SPEC): Likewise.
13215         * config/mips/linux.h (LINK_SPEC): Likewise.
13216         * config/mips/linux64.h (LINK_SPEC): Likewise.
13217         * config/sparc/linux.h (LINK_SPEC): Likewise.
13218         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13219         LINK_SPEC): Likewise.
13220         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13221
13222 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13223
13224         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13225         %{version:-v}.
13226         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13227
13228 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13229
13230         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13231         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13232
13233 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13234
13235         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13236
13237 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13238
13239         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13240         supports -Bstatic/-Bdynamic.
13241         * configure: Regenerate.
13242
13243 2011-01-14  Jan Hubicka  <jh@suse.cz>
13244             Jack Howarth  <howarth@bromo.med.uc.edu>
13245
13246         PR target/46037
13247         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13248         when checking debug_info_level. Test write_symbols instead of
13249         debug_hooks->var_location when setting flag_var_tracking_uninit.
13250
13251 2011-01-14  Richard Guenther  <rguenther@suse.de>
13252
13253         PR tree-optimization/47179
13254         * target.def (ref_may_alias_errno): New target hook.
13255         * targhooks.h (default_ref_may_alias_errno): Declare.
13256         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13257         (default_ref_may_alias_errno): New function.
13258         * target.h (struct ao_ref_s): Declare.
13259         * tree-ssa-alias.c: Include target.h.
13260         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13261         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13262         (targhooks.o): Likewise.
13263         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13264         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13265
13266 2011-01-14  Richard Guenther  <rguenther@suse.de>
13267
13268         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13269
13270 2011-01-14  Richard Guenther  <rguenther@suse.de>
13271
13272         PR tree-optimization/47280
13273         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13274         return CFG changes.
13275         (tree_ssa_forward_propagate_single_use_vars): Deal with
13276         CFG changes from associate_plusminus.
13277
13278 2011-01-14  Richard Guenther  <rguenther@suse.de>
13279
13280         PR middle-end/47281
13281         Revert
13282         2011-01-11  Richard Guenther  <rguenther@suse.de>
13283
13284         PR tree-optimization/46076
13285         * tree-ssa.c (useless_type_conversion_p): Conversions from
13286         unprototyped to empty argument list function types are useless.
13287
13288 2011-01-14  Richard Guenther  <rguenther@suse.de>
13289
13290         PR tree-optimization/47286
13291         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13292
13293 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13294
13295         PR middle-end/46823
13296         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13297
13298 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13299
13300         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13301         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13302         * config/xtensa/xtensa.c (xtensa_libcall_value,
13303         xtensa_function_value_regno_p): New functions.
13304         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13305
13306 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13307
13308         PR c++/47213
13309         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13310         PE specific hook.
13311         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13312         New function prototype.
13313         * config/i386/winnt.c (i386_pe_assemble_visibility):
13314         Warn only if attribute was specified by user.
13315
13316 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13317
13318         PR target/47251
13319         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13320         floating point.
13321         (floatunsdidf2_fcfidu): Ditto.
13322
13323 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13324
13325         * config/s390/s390.c (print_operand_address): Replace 'error' with
13326         'output_operand_lossage'.
13327         (print_operand): Likewise.
13328
13329 2011-01-13  Jeff Law  <law@redhat.com>
13330
13331         PR rtl-optimization/39077
13332         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13333         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13334         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13335         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13336         * gcse.c (prune_insertions_deletions): New function.
13337         (compute_pre_data): Use it.
13338
13339 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13340
13341         PR debug/PR46973
13342         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13343         static function.
13344         (prune_unused_types_mark): Use it.
13345
13346 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13347
13348         PR rtl-optimization/45352
13349         * sel-sched.c: Update copyright years.
13350         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13351         in the advancing loop when we have issued issue_rate insns.
13352
13353 2011-01-12  Richard Henderson  <rth@redhat.com>
13354
13355         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13356         (TARGET_MD_ASM_CLOBBERS): New.
13357
13358         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13359         (TARGET_DELEGITIMIZE_ADDRESS): New.
13360
13361         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13362         (clzsi2, *bsch): New patterns.
13363
13364         * config/mn10300/mn10300.md (INT): New mode iterator.
13365         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13366
13367         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13368         flag_split_wide_types.
13369
13370         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13371         (mn10300_trampoline_init): Rewrite without a template, an immediate
13372         load and a direct branch.
13373         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13374
13375 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13376
13377         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13378         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13379         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13380         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13381
13382 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13383
13384         PR debug/47209
13385         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13386         of type.
13387
13388 2011-01-12  Jan Hubicka  <jh@suse.cz>
13389
13390         PR driver/47244
13391         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13392         (PLUGIN_COND_CLOSE): New macro.
13393         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13394
13395 2011-01-12  Richard Guenther  <rguenther@suse.de>
13396
13397         PR lto/47259
13398         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13399         register variables in a MEM_REF.
13400
13401 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13402
13403         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13404         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13405         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13406         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13407         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13408         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13409         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13410         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13411         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13412         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13413         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13414         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13415         * config/gnu-user.h: New.  Copied from linux.h.
13416         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13417         GNU_USER_TARGET_STARTFILE_SPEC.
13418         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13419         GNU_USER_TARGET_ENDFILE_SPEC.
13420         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13421         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13422         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13423         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13424         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13425         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13426         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13427         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13428         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13429         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13430         * config/arm/linux-eabi.h (CC1_SPEC): Use
13431         GNU_USER_TARGET_CC1_SPEC.
13432         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13433         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13434         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13435         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13436         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13437         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13438         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13439         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13440
13441 2011-01-12  Richard Guenther  <rguenther@suse.de>
13442
13443         PR other/46946
13444         * doc/invoke.texi (ffast-math): Document it is turned on
13445         with -Ofast.
13446
13447 2011-01-12  Jan Hubicka  <jh@suse.cz>
13448
13449         PR tree-optimization/47233
13450         * opts.c (common_handle_option): Disable ipa-reference with profile
13451         feedback.
13452
13453 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13454
13455         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13456         error message.
13457
13458 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13459
13460         * c-parser.c (c_lex_one_token): Updated and reindented some
13461         comments.  No changes in code.
13462
13463 2011-01-11  Ian Lance Taylor  <iant@google.com>
13464
13465         * godump.c (go_output_var): Don't output the variable if there is
13466         already a type with the same name.
13467
13468 2011-01-11  Ian Lance Taylor  <iant@google.com>
13469
13470         * godump.c (go_format_type): Don't generate float80.
13471
13472 2011-01-11  Richard Henderson  <rth@redhat.com>
13473
13474         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13475         declaration.  Rewrite for both speed and size.
13476         (mn10300_address_cost_1): Remove.
13477         (mn10300_register_move_cost): New.
13478         (mn10300_memory_move_cost): New.
13479         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13480         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13481         extensions, shifts, BSWAP, CLZ.
13482         (mn10300_wide_const_load_uses_clr): Remove.
13483         (TARGET_REGISTER_MOVE_COST): New.
13484         (TARGET_MEMORY_MOVE_COST): New.
13485         * config/mn10300/mn10300-protos.h: Update.
13486         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13487
13488         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13489         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13490         * config/mn10300/mn10300-protos.h: Update.
13491         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13492         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13493         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13494         (*test_int_bitfield, *test_byte_bitfield): Remove.
13495         (*bit_test, *subreg_bit_test): Remove.
13496         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13497
13498         * config/mn10300/constraints.md ("c"): Rename from "A".
13499         ("A", "D"): New constraint letters.
13500         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13501         (fmssf4, fnmasf4, fnmssf4): Likewise.
13502
13503         * config/mn10300/mn10300.md (isa): New attribute.
13504         (enabled): New attribute.
13505
13506         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13507         (abssf2, negsf2): Define only for hardware fp.
13508         (sqrtsf2): Reformat.
13509         (addsf3, subsf3, mulsf3): Merge expander and insn.
13510
13511         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13512         (DEBUGGER_AUTO_OFFSET): Remove.
13513         (DEBUGGER_ARG_OFFSET): Remove.
13514
13515         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13516         Emit register stores with the same offsets as the hardware.
13517         (mn10300_store_multiple_operation): Don't check that the register
13518         save offsets are monotonic.
13519         * config/mn10300/mn10300-protos.h: Update.
13520
13521         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13522
13523         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13524         in terms of the value on the stack, not the MDR register.
13525
13526 2011-01-11  Jan Hubicka  <jh@suse.cz>
13527
13528         PR lto/45721
13529         PR lto/45375
13530         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13531         (symbol_alias_set_destroy, symbol_alias_set_contains,
13532         propagate_aliases_backward): Declare.
13533         * lto-streamer-out.c (struct sets): New sturcture.
13534         (trivally_defined_alias): New function.
13535         (output_alias_pair_p): Rewrite.
13536         (output_unreferenced_globals): Fix output of alias pairs.
13537         (produce_symtab): Likewise.
13538         * ipa.c (function_and_variable_visibility): Set weak alias destination
13539         as needed in lto.
13540         * varasm.c (symbol_alias_set_t): Remove.
13541         (symbol_alias_set_destroy): Export.
13542         (propagate_aliases_forward, propagate_aliases_backward): New functions
13543         based on ...
13544         (compute_visible_aliases): ... this one; remove.
13545         (trivially_visible_alias): New
13546         (trivially_defined_alias): New.
13547         (remove_unreachable_alias_pairs): Rewrite.
13548         (finish_aliases_1): Reorganize code checking if alias is defined.
13549         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13550         in LTO mode.
13551
13552 2011-01-11  Richard Guenther  <rguenther@suse.de>
13553
13554         PR tree-optimization/46076
13555         * tree-ssa.c (useless_type_conversion_p): Conversions from
13556         unprototyped to empty argument list function types are useless.
13557
13558 2011-01-11  Richard Guenther  <rguenther@suse.de>
13559
13560         PR middle-end/45235
13561         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13562         volatile MEMs as MEM_READONLY_P.
13563
13564 2011-01-11  Richard Guenther  <rguenther@suse.de>
13565
13566         PR tree-optimization/47239
13567         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13568
13569 2011-01-11  Jeff Law  <law@redhat.com>
13570
13571         PR tree-optimization/47086
13572         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13573         IVs from statements that might throw.
13574
13575 2011-01-10  Jan Hubicka  <jh@suse.cz>
13576
13577         PR lto/45375
13578         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13579
13580 2011-01-10  Jan Hubicka  <jh@suse.cz>
13581
13582         PR lto/45375
13583         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13584         when correcting profile.
13585
13586 2011-01-10  Jan Hubicka  <jh@suse.cz>
13587
13588         PR lto/46083
13589         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13590         DECL_FINI_PRIORITY.
13591         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13592         Restore DECL_FINI_PRIORITY.
13593
13594 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13595
13596         * doc/gimple.texi: Fix quoting of multi-word return values in
13597         @deftypefn statements.  Ensure presence of return value.  Wrap
13598         overlong @deftypefn lines.
13599         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13600         descriptions of removed functions.
13601         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13602         of multi-word return value in @deftypefn statement.
13603
13604 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13605
13606         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13607         (Conditional Expressions, Logical Operators)
13608         (Statement and operand traversals): Do not indent smallexample
13609         code.  Fix duplicate function argument in example.
13610
13611 2011-01-10  Jeff Law  <law@redhat.com>
13612
13613         PR tree-optimization/47141
13614         * ipa-split.c (split_function): Handle case where we are
13615         returning a value and the return block has a virtual operand phi.
13616
13617 2011-01-10  Jan Hubicka  <jh@suse.cz>
13618
13619         PR tree-optimization/47234
13620         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13621         (pass_feedback_split_functions): Declare.
13622         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13623         tree-profile.
13624         * ipa-split.c (gate_split_functions): Update comments; disable
13625         split-functions for profile_arc_flag and branch_probabilities.
13626         (gate_feedback_split_functions): New function.
13627         (execute_feedback_split_functions): New function.
13628         (pass_feedback_split_functions): New global var.
13629
13630 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13631
13632         PR lto/46760
13633         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13634         calling gimple_call_set_cannot_inline.
13635
13636 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13637
13638         * config/darwin-sections.def: Remove unused section.
13639
13640 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13641
13642         PR c++/47218
13643         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13644
13645 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13646
13647         PR objc/47232
13648         * c-parser.c (c_parser_declaration_or_fndef): Improved
13649         error message.
13650
13651 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13652
13653         * config/i386/winnt.c (i386_pe_start_function): Make sure
13654         to switch back to function's section.
13655
13656 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13657
13658         PR gcc/46902
13659         PR testsuite/46912
13660         * plugin.c: Move include of dlfcn.h from here...
13661         * system.h: ... to here.
13662
13663 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13664
13665         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13666         file name.
13667         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13668         two extra empty pages in PDF output.
13669
13670 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13671
13672         PR objc/47078
13673         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13674         for error recovery purposes behave as if it was not specified so
13675         that the default type is usd.
13676
13677 2011-01-07  Jan Hubicka  <jh@suse.cz>
13678
13679         PR tree-optmization/46469
13680         * ipa.c (function_and_variable_visibility): Clear needed flags on
13681         nodes with external decls; handle weakrefs merging correctly.
13682
13683 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13684
13685         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13686         not false.
13687
13688 2011-01-07  Jan Hubicka  <jh@suse.cz>
13689
13690         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13691         and no longer claim that gold is required for linker plugin.
13692         * configure: Regenerate.
13693         * gcc.c (PLUGIN_COND): New macro.
13694         (LINK_COMMAND_SPEC): Use it.
13695         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13696         * config.in (HAVE_LTO_PLUGIN): New.
13697         * configure.ac (--with-lto-plugin): New parameter; autodetect
13698         HAVE_LTO_PLUGIN.
13699
13700 2011-01-07  Jan Hubicka  <jh@suse.cz>
13701
13702         PR tree-optimization/46367
13703         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13704         when we can update original.
13705         (cgraph_mark_inline_edge): Sanity check.
13706         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13707
13708 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13709
13710         * config/spu/spu.h (ASM_COMMENT_START): Define.
13711
13712 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13713
13714         PR driver/42445
13715         * gcc.c (%>S): New.
13716         (SWITCH_KEEP_FOR_GCC): Likewise.
13717         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13718         (do_spec_1): Handle "%>".
13719
13720         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13721
13722 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
13723
13724         PR target/47201
13725         * config/i386/i386.c (ix86_delegitimize_address): If
13726         simplify_gen_subreg fails, return orig_x.
13727
13728         PR bootstrap/47187
13729         * value-prof.c (gimple_stringop_fixed_value): Handle
13730         lhs of the call properly.
13731
13732 2011-01-07  Jan Hubicka  <jh@suse.cz>
13733
13734         PR lto/45375
13735         * lto-opt.c (lto_reissue_options): Set flag_shlib.
13736
13737 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13738
13739         * target.def (function_switched_text_sections): New hook.
13740         * doc/tm.texi: Regenerated.
13741         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13742         * final.c (default_function_switched_text_sections): New.
13743         (final_scan_insn): Call function_switched_text_sections when a
13744         mid-function section change occurs.
13745         * output.h (default_function_switched_text_sections): Declare.
13746         * config/darwin-protos.h (darwin_function_switched_text_sections):
13747         Likewise.
13748         * config/darwin.c (darwin_function_switched_text_sections): New.
13749         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13750
13751 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13752
13753         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13754         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13755         the secondary code fragment when outputting for DWARF == 2.
13756
13757 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13758
13759         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13760         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13761         Remove.
13762         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13763         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13764
13765 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13766
13767         PR debug/46704
13768         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13769         when it is not empty.
13770
13771 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
13772
13773         Bobcat Enablement
13774         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13775         (case ${target}): Add btver1.
13776         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13777         -march=native recognize btver1 processors.
13778         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13779         btver1 def_and_undef
13780         * config/i386/i386.c (struct processor_costs btver1_cost): New
13781         btver1 cost table.
13782         (m_BTVER1): New definition.
13783         (m_AMD_MULTIPLE): Includes m_BTVER1.
13784         (initial_ix86_tune_features): Add btver1 tune.
13785         (processor_target_table): Add btver1 entry.
13786         (static const char *const cpu_names): Add btver1 entry.
13787         (software_prefetching_beneficial_p): Add btver1.
13788         (ix86_option_override_internal): Add btver1 instruction sets.
13789         (ix86_issue_rate): Add btver1.
13790         (ix86_adjust_cost): Add btver1.
13791         * config/i386/i386.h (TARGET_BTVER1): New definition.
13792         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13793         (enum processor_type): Add PROCESSOR_BTVER1.
13794         * config/i386/i386.md (define_attr "cpu"): Add btver1.
13795
13796 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13797
13798         PR target/43309
13799         * config/i386/i386.c (legitimize_tls_address)
13800         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13801         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13802         (tls_initial_exec_64_sun): New pattern.
13803
13804 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
13805
13806         * doc/invoke.texi (Overall Options): Improve wording and markup
13807         of the description of -wrapper.
13808
13809 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13810
13811         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13812         rdynamic, threads): New Driver options.
13813
13814 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13815
13816         PR target/38118
13817         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13818         if coming from .tdata.
13819         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13820
13821 2011-01-06  Jan Hubicka  <jh@suse.cz>
13822
13823         PR lto/47188
13824         * collect2.c (main): Do not enable LTOmode when plugin is active.
13825
13826 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13827
13828         PR other/45915
13829         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13830         --version output if supported.
13831         * configure: Regenerate.
13832
13833 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13834
13835         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13836         Driver options.
13837
13838 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
13839
13840         PR c/47150
13841         * c-convert.c (convert): When converting a complex expression
13842         other than COMPLEX_EXPR to a different complex type, ensure
13843         c_save_expr is called instead of save_expr, unless in_late_binary_op.
13844         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13845         when converting COMPLEX_TYPE.
13846
13847 2011-01-06  Ira Rosen  <irar@il.ibm.com>
13848
13849         PR tree-optimization/47139
13850         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13851         only the last reduction value is used outside the loop.  Update
13852         documentation.
13853
13854 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
13855
13856         * config/rtems.opt: New.
13857         * config.gcc (*-*-rtems*): Use rtems.opt.
13858
13859 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
13860
13861         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13862         processors do not support 3DNow instructions.
13863
13864 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13865
13866         * config/spu/spu.c (spu_option_override): Set parameter
13867         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13868
13869 2011-01-05  Jan Hubicka  <jh@suse.cz>
13870
13871         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13872         at the command line.
13873
13874 2011-01-05  Martin Jambor  <mjambor@suse.cz>
13875
13876         PR lto/47162
13877         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13878         deltas on streamed outgoing edges.
13879         (output_node_opt_summary): Output info for outgoing edges only when
13880         the node is in new parameter set.
13881         (output_cgraph_opt_summary): New parameter set, passed to the two
13882         aforementioned functions.  Update its forward declaration and its
13883         callee too.
13884
13885 2011-01-05  Tom Tromey  <tromey@redhat.com>
13886
13887         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13888         operator to c_finish_omp_atomic.
13889         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13890         (build_unary_op): Update.
13891         (build_modify_expr): Update.
13892         (build_asm_expr): Update.
13893
13894 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13895
13896         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13897         newly inserted insns.
13898         (pad_bb): Likewise.
13899         (spu_emit_branch_hint): Likewise.
13900         (insert_hbrp_for_ilb_runout): Likewise.
13901         (spu_machine_dependent_reorg): Call df_finish_pass after
13902         schedule_insns returns.
13903
13904 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13905
13906         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13907
13908 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13909
13910         PR tree-optimization/47005
13911         * tree-sra.c (struct access): Add 'non_addressable' bit.
13912         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13913         (decide_one_param_reduction): Return 0 if the parameter is passed by
13914         reference and one of the accesses in the group is non_addressable.
13915
13916 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13917
13918         PR tree-optimization/47056
13919         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13920         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
13921         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
13922
13923 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13924
13925         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13926         initializer.  Skip view conversions from aggregate types.
13927
13928 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
13929
13930         PR bootstrap/47055
13931         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13932
13933 2011-01-04  Philipp Thomas  <pth@suse.de>
13934
13935         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13936         obvious typo.
13937
13938 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13939
13940         * function.c (thread_prologue_and_epilogue_insns): Do not crash
13941         on empty epilogue sequences.
13942
13943 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
13944
13945         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13946         non-static): New Driver options.
13947
13948 2011-01-04  Jie Zhang  <jie@codesourcery.com>
13949
13950         PR driver/47137
13951         * gcc.c (default_compilers[]): Set combinable field to 0
13952         for all assembly languages.
13953
13954 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
13955
13956         * config/mips/loongson3a.md: New file.
13957         * config/mips/mips.md: Include loongson3a.md.
13958         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13959         TUNE_LOONGSON_3A.
13960
13961 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13962
13963         PR middle-end/47017
13964         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13965         instead of convert_memory_address_addr_space on the base expression.
13966
13967 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13968
13969         * config/spu/spu.c (spu_option_override): Update error text
13970         for bad -march= / -mtune= values.
13971
13972 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13973
13974         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13975         if branch-hint optimization will be performed.
13976
13977 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13978
13979         PR tree-optimization/47148
13980         * ipa-split.c (split_function): Convert arguments to
13981         DECL_ARG_TYPE if possible.
13982
13983         PR tree-optimization/47155
13984         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13985         when computing uns.
13986
13987         PR rtl-optimization/47157
13988         * combine.c (try_combine): If undobuf.other_insn becomes
13989         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13990         and set *new_direct_jump_p too.
13991
13992 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
13993
13994         PR tree-optimization/47021
13995         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13996
13997 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13998
13999         * gcc.c (process_command): Update copyright notice dates.
14000         * gcov.c (print_version): Likewise.
14001         * gcov-dump.c (print_version): Likewise.
14002         * mips-tfile.c (main): Likewise.
14003         * mips-tdump.c (main): Likewise.
14004
14005 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14006
14007         PR tree-optimization/46801
14008         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14009         aggregate fields start at byte boundary instead of the bit-field flag.
14010
14011 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14012
14013         PR driver/47137
14014         * gcc.c (main): Revert revision 168407.
14015
14016 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14017
14018         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14019
14020 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14021
14022         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14023         vector optab to expand vector/scalar shift, update gimple to vector.
14024
14025 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14026
14027         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14028         a thunk.
14029
14030 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14031
14032         PR tree-optimization/46984
14033         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14034         HOST_WIDE_INT.
14035         (cgraph_create_indirect_edge): Fixed line length.
14036         (cgraph_indirect_call_info): Declare.
14037         (cgraph_make_edge_direct) Update declaration.
14038         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14039         (cgraph_create_indirect_edge): Use it.
14040         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14041         callees.
14042         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14043         the new thunk_delta representation.
14044         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14045         HOST_WIDE_INT.
14046         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14047         (ipa_read_indirect_edge_info): Likewise.
14048         * lto-cgraph.c (output_edge_opt_summary): New function.
14049         (output_node_opt_summary): Call it on all outgoing edges.
14050         (input_edge_opt_summary): New function.
14051         (input_node_opt_summary): Call it on all outgoing edges.
14052
14053 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14054
14055         PR driver/47137
14056         * gcc.c (main): Don't check have_o when settting combine_inputs.
14057
14058 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14059
14060         * regrename.c: Add general comment describing the pass.
14061         (struct du_head): Remove 'length' field.
14062         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14063         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14064         Force renaming to the preferred class (if any) in the first pass and do
14065         not consider registers that belong to it in the second pass.
14066         (create_new_chain): Do not set 'length' field.
14067         (scan_rtx_reg): Likewise.
14068
14069 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14070
14071         PR tree-optimization/47140
14072         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14073         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14074         to bit_value_binop.
14075
14076         PR rtl-optimization/47028
14077         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14078         parm_birth_insn instead of at the beginning of first bb.
14079
14080 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14081
14082         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14083         Remove the word "see" before "@pxref".
14084         * doc/rtl.texi: Remove the word "see" before "@pxref".
14085
14086 2011-01-01  Jan Hubicka  <jh@suse.cz>
14087
14088         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14089         memory.
14090
14091 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14092
14093         PR target/38662
14094         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14095
14096 \f
14097 Copyright (C) 2011 Free Software Foundation, Inc.
14098
14099 Copying and distribution of this file, with or without modification,
14100 are permitted in any medium without royalty provided the copyright
14101 notice and this notice are preserved.