2011-04-28 Tobias Burnus <burnus@net-b.de>
[official-gcc.git] / gcc / ChangeLog
blobcbaa0e62600fed7e077852d518443d1272059756
1 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3         * internal-fn.h (internal_fn_name_array): Declare.
4         (internal_fn_flags_array): Likewise.
6 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
8         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
9         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
10         Move from sse.md.
11         (ssemodefsuffix): Remove.
12         (ssevecmodesuffix): New mode attribute.
13         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
14         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
15         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
17         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
18         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
19         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
20         ssemodesuffix mode attribute.
21         (float splitters): Use ssevecmodesuffix mode attribute.
22         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
23         (sseinsmode): Rename from avxvecmode.
24         (avxsizesuffix): Rename from avxmodesuffix.
25         (sseintvecmode): Rename from avxpermvecmode.
26         (ssedoublevecmode): Rename from ssedoublesizemode.
27         (ssehalfvecmode): Rename from avxhalfvecmode.
28         (ssescalarmode): Rename from avxscalarmode.
29         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
30         templates for ssemodesuffix mode attribute.
31         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
32         mode attribute.
34         Adjust RTX patterns globally for renamed mode attributes.
36 2011-04-27  Jan Hubcika  <jh@suse.cz>
38         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
39         * ipa-inline-analysis.c: Include alloc-pool.h.
40         (edge_predicate_pool): New.
41         (trye_predicate_p): New function
42         (false_predicate_p): New function.
43         (add_clause): Sanity check that false clauses are "optimized";
44         never add clauses to predicate that is already known to be false.
45         (and_predicate): Use flase_predicate_p.
46         (evaulate_predicate): Rename to ...
47         (evaluate_predicate): ... this one; update all callers; assert
48         that false is not listed among possible truths.
49         (dump_predicate): Use true_predicate_p.
50         (account_size_time): Use false_predicate_p.
51         (evaulate_conditions_for_edge): Rename to ...
52         (evaluate_conditions_for_edge) ... this one.
53         (edge_set_predicate): New function.
54         (inline_edge_duplication_hook): Duplicate edge predicates.
55         (inline_edge_removal_hook): Free edge predicates.
56         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
57         (dump_inline_summary): Update.
58         (estimate_function_body_sizes): Set edge predicates.
59         (estimate_calls_size_and_time): Handle predicates.
60         (estimate_callee_size_and_time): Update.
61         (remap_predicate): Add toplev_predicate; update comment.
62         (remap_edge_predicates): New function.
63         (inline_merge_summary): Compute toplev predicate; update.
64         (read_predicate): New function.
65         (read_inline_edge_summary): Use it.
66         (inline_read_section): Likewise.
67         (write_predicate): New function.
68         (write_inline_edge_summary): Use it.
69         (inline_write_summary): Likewise.
70         (inline_free_summary): Free alloc pool and edge summary vec.
72 2011-04-27  Richard Guenther  <rguenther@suse.de>
74         * tree-ssa-structalias.c (changed_count): Remove.
75         (changed): Use a bitmap.
76         (unify_nodes): Adjust.
77         (do_sd_constraint): Likewise.
78         (do_ds_constraint): Likewise.
79         (do_complex_constraint): Likewise.
80         (solve_graph): Likewise.
82 2011-04-27  Jan Hubicka  <jh@suse.cz>
84         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
86 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
88         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
89         (avx_vperm2f128_*_operand): Ditto.
90         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
91         Use avx_vpermilp_parallel in insn condition.
92         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
93         Use avx_vperm2f128_parallel in insn condition.
95 2011-04-27  Richard Guenther  <rguenther@suse.de>
97         * Makefile.in (tree-ssa-structalias.o): Remove
98         gt-tree-ssa-structalias.h dependency.
99         (GTFILES): Remove tree-ssa-structalias.c.
100         * tree.c (allocate_decl_uid): New function.
101         (make_node_stat): Use it.
102         (copy_node_stat): Likewise.
103         * tree.h (allocate_decl_uid): Declare.
104         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
105         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
106         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
107         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
108         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
109         (struct heapvar_map): Likewise.
110         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
111         heapvar_insert): Likewise.
112         (make_heapvar_for): Rename to ...
113         (make_heapvar): ... this.  Simplify.
114         (fake_var_decl_obstack): New global var.
115         (build_fake_var_decl): New function.
116         (make_constraint_from_heapvar): Adjust.
117         (handle_lhs_call): Likewise.
118         (create_function_info_for): Likewise.
119         (intra_create_variable_infos): Likewise.
120         (init_alias_vars): Allocate fake_var_decl_obstack.
121         (init_alias_heapvars, delete_alias_heapvars): Remove.
122         (compute_points_to_sets): Do not call init_alias_heapvars.
123         (ipa_pta_execute): Likewise.
124         (delete_points_to_sets): Free fake_var_decl_obstack.
126 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
128         * config/spu/divmovti4.c (union qword_UTItype): New data type.
129         (si_from_UTItype, si_to_UTItype): New functions.
130         (__udivmodti4): Use them to implement type-punning.
131         * config/spu/multi3.c (union qword_TItype): New data type.
132         (si_from_TItype, si_to_TItype): New functions.
133         (__multi3): Use them to implement type-punning.
135 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
137         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
139 2011-04-27  Jan Hubicka  <jh@suse.cz>
141         * ipa-prop.c (function_insertion_hook_holder): New holder.
142         (ipa_add_new_function): New function.
143         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
144         Register/deregister holder.
146 2011-04-27  Richard Guenther  <rguenther@suse.de>
148         PR tree-optimization/48772
149         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
151 2011-04-27  Richard Guenther  <rguenther@suse.de>
153         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
154         TARGET_MEM_REF handling.
156 2011-04-27  Nick Clifton  <nickc@redhat.com>
158         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
159         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
160         (REG_CLASS_NAMES): Likewise.
161         (REG_CLASS_CONTENTS): Likewise.
162         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
163         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
164         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
165         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
166         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
167         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
168         duplicate register classes.
169         (frv_class_likely_spilled_p): Likewise.
170         (frv_register_move_cost): Likewise.
172         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
173         end of the regno_reg_class array.
175 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
177         PR c/48742
178         * c-typeck.c (build_binary_op): Don't wrap arguments if
179         int_operands is true.
181 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
183         PR target/48767
184         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
185         targetm.calls.must_pass_in_stack for void type.
187 2011-04-26  Jan Hubicka  <jh@suse.cz>
189         * cgraphbuild.c (build_cgraph_edges): Update call
190         of cgraph_create_edge and cgraph_create_indirect_edge.
191         * cgraph.c (cgraph_create_edge_including_clones,
192         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
193         cgraph_update_edges_for_call_stmt_node): Do not take nest
194         argument; do not initialize call_stmt_size/time.
195         (dump_cgraph_node): Do not dump nest.
196         (cgraph_clone_edge): Do not take loop_nest argument;
197         do not propagate it; do not clone call_stmt_size/time.
198         (cgraph_clone_node): Likewise.
199         (cgraph_create_virtual_clone): Update.
200         * cgraph.h (struct cgraph_edge): Remove
201         call_stmt_size/call_stmt_time/loop_nest.
202         (cgraph_create_edge, cgraph_create_indirect_edge,
203         cgraph_create_edge_including_clones, cgraph_clone_node): Update
204         prototype.
205         * tree-emutls.c (gen_emutls_addr): Update.
206         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
207         loop_nest; handle indirect calls, too.
208         (clone_inlined_nodes): Do not care about updating inline summaries.
209         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
210         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
211         stream call_stmt_size/call_stmt_time/loop_nest.
212         * ipa-inline.c (edge_badness): Update.
213         (ipa_inline): dump summaries after inlining.
214         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
215         New.
216         (inline_edge_summary): New function.
217         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
218         (inline_edge_removal_hook): Handle edge summaries.
219         (inline_edge_duplication_hook): New hook.
220         (inline_summary_alloc): Alloc hooks.
221         (initialize_growth_caches): Do not register removal hooks.
222         (free_growth_caches); Do not free removal hook.
223         (dump_inline_edge_summary): New function.
224         (dump_inline_summary): Use it.
225         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
226         (inline_update_callee_summaries): New function.
227         (inline_merge_summary): Use it.
228         (do_estimate_edge_time, do_estimate_edge_growth): Update.
229         (read_inline_edge_summary): New function.
230         (inline_read_section): Use it.
231         (write_inline_edge_summary): New function.
232         (inline_write_summary): Use it.
233         (inline_free_summary): Free edge new holders.
234         * tree-inline.c (copy_bb): Update.
236 2011-04-26  Jason Merrill  <jason@redhat.com>
238         * tree-eh.c (lower_try_finally_switch): Create the label along with
239         the CASE_LABEL_EXPR.
241 2011-04-26  David S. Miller  <davem@davemloft.net>
242             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
244         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
245         * configure: Regenerate.
247 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
249         PR target/48258
250         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
251         reduction.
252         (VEC_reduc): New code iterator and splitters for vector reduction.
253         (VEC_reduc_name): Ditto.
254         (VEC_reduc_rtx): Ditto.
255         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
256         (reduc_<VEC_reduc_name>_v4sf): Ditto.
258         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
259         support for extracting SF on VSX.
261         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
262         generating xscvspdp.
263         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
264         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
265         double add, minimum, maximum vector reduction.
266         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
267         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
268         optimize double vector reduction.
269         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
271 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
273         * config/fr30/fr30.h (inhibit_libc): Don't define.
274         * config/m32r/m32r-protos.h: Correct comment.
275         * config/v850/v850.h (GHS_default_section_names,
276         GHS_current_section_names): Use tree, not union tree_node *.
278 2011-04-26  Xinliang David Li  <davidxl@google.com>
280         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
281         * c-family/c-opts.c (c_common_handle_option): Set
282         warn_maybe_uninitialized.
283         * opts.c (common_handle_option): Ditto.
284         * common.opt:  New option.
285         * tree-ssa.c (warn_uninit): Add one more parameter.
286         (warn_uninitialized_var): Pass warning code.
287         * tree-flow.h: Interface change.
290 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
292         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
293         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
294         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
296 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
298         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
299         * config/mips/mips.opt (mmips-tfile): Remove.
301         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
302         mips-tdump reference to ...
303         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
304         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
305         reference by Tru64 UNIX.
307 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
309         PR debug/48768
310         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
311         is error_mark_node, set value to NULL.
313         PR tree-optimization/48734
314         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
315         if return value from maybe_fold_*_comparsions isn't something
316         the code is prepared to handle.
318 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
320         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
321         mode check.
322         (ext_QIreg_nomode_operands): Remove.
323         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
324         (*andsi_1): Ditto.
325         (*andhi_1): Ditto.
327 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
329         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
331 2011-04-26  Richard Guenther  <rguenther@suse.de>
333         * c-typeck.c (build_unary_op): Do not expand array-refs via
334         pointer arithmetic.  Only adjust qualifiers for function types.
336 2011-04-26  Richard Guenther  <rguenther@suse.de>
338         PR middle-end/48694
339         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
340         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
341         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
342         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
344 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
346         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
347         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
348         * doc/extend.texi: Document __underlying_type.
350 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
352         * config/rs6000/titan.md (automata_option "progress"): Remove.
354 2011-04-25  Jeff Law  <law@redhat.com>
356         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
358 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
360         * system.h (ENUM_BITFIELD): Remove.
362 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
363             Eric Botcazou <ebotcazou@adacore.com>
365         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
366         for STORE_FLAG_VALUE==-1 case.
368 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
370         PR target/43804
371         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
372         LEGITIMATE_PIC_OPERAND_P.
374 2011-04-24  Jan Hubicka  <jh@suse.cz>
376         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
377         WPA hack.
378         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
379         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
380         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
381         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
382         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
383         Sanity check predicate length.
384         (remap_predicate): Likewise; sanity check jump functions.
385         (inline_read_section, inline_write_summary): Sanity check
386         predicate length.
388 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
390         PR other/48748
391         * doc/extend.texi (Type Traits): Document __is_standard_layout,
392         __is_literal_type, and __is_trivial; update throughout about
393         possibly cv-qualified void types.
395 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
397         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
398         testsuite and make it version agnostic.
400 2011-04-22  Jan Hubicka  <jh@suse.cz>
402         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
404 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
406         PR c/48685
407         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
408         to VOID_TYPE even around MODIFY_EXPR.
410 2011-04-22  Mike Stump  <mikestump@comcast.net>
412         * gensupport.c (read_md_rtx): Fix typo in comment.
413         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
414         comment.
416 2011-04-22  Jan Hubicka  <jh@suse.cz>
418         * gengtype.c (open_base_files): Add ipa-inline.h include.
419         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
420         ipa-prop.c; update all uses.
421         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
422         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
423         merge summary of inlined function into former caller.
424         * ipa-inline.c (max_benefit): Remove.
425         (edge_badness): Compensate for removal of benefits.
426         (update_caller_keys): Use
427         reset_node_growth_cache/reset_edge_growth_cache.
428         (update_callee_keys): Likewise.
429         (update_all_callee_keys): Likewise.
430         (inline_small_functions): Do not collect max_benefit; do not reset
431         estimated_growth; call free_growth_caches and initialize_growth_caches.
432         * ipa-inline.h (struct condition, type clause_t, struct predicate,
433         struct size_time_entry): New structures.
434         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
435         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
436         and estimated_growth.
437         (edge_growth_cache_entry): New structure.
438         (node_growth_cache, edge_growth_cache): New global vars.
439         (estimate_growth): Turn into inline.
440         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
441         initialize_growth_caches, free_growth_caches): Declare.
442         (estimate_edge_growth): Rewrite.
443         (estimate_edge_time): Implement as inline cache lookup.
444         (reset_node_growth_cache, reset_edge_growth_cache): New inline
445         functions.
446         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
447         (NUM_CONDITIONS): New constant.
448         (predicate_conditions): New enum.
449         (IS_NOT_CONSTANT): New constant.
450         (edge_removal_hook_holder): New var.
451         (node_growth_cache, edge_growth_cache): New global vars.
452         (true_predicate, single_cond_predicate, false_predicate,
453         not_inlined_predicate, add_condition, add_clause, and_predicates,
454         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
455         dump_clause, dump_predicate, account_size_time,
456         evaulate_conditions_for_edge): New functions.
457         (inline_summary_alloc): Move to heap.
458         (inline_node_removal_hook): Clear condition and entry vectors.
459         (inline_edge_removal_hook): New function.
460         (initialize_growth_caches, free_growth_caches): New function.
461         (dump_inline_summary): Update.
462         (edge_execution_predicate): New function.
463         (will_be_nonconstant_predicate): New function.
464         (estimate_function_body_sizes): Compute BB and constantness predicates.
465         (compute_inline_parameters): Do not clear estimated_growth.
466         (estimate_edge_size_and_time): New function.
467         (estimate_calls_size_and_time): New function.
468         (estimate_callee_size_and_time): New function.
469         (remap_predicate): New function.
470         (inline_merge_summary): New function.
471         (do_estimate_edge_time): New function based on...
472         (estimate_edge_time): ... this one.
473         (do_estimate_edge_growth): New function.
474         (do_estimate_growth): New function based on....
475         (estimate_growth): ... this one.
476         (inline_analyze_function): Analyze after deciding on jump functions.
477         (inline_read_section): New function.
478         (inline_read_summary): Use it.
479         (inline_write_summary): Write all the new data.
480         * ipa-prop.c (ipa_get_param_decl_index): Export.
481         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
482         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
483         Declare.
484         (ipa_get_lattice): Move here from ipa-cp.c
485         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
486         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
487         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
488         cgraph_edge_inlinable_p): Remove.
489         * cgraphunit.c: Include ipainline.h
490         (cgraph_process_new_functions): Update call of
491         compute_inline_parameters.
493 2011-04-22  Richard Guenther  <rguenther@suse.de>
495         * tree.c (build_int_cst): Properly create canonicalized integer
496         constants.
497         (build_int_cst_type): Remove scary comments.
499 2011-04-22  Xinliang David Li  <davidxl@google.com>
501         * toplev.c (process_options): Enable -Werror=coverage-mismatch
502         by default when -Wno-error is not specified.
503         * opts-global.c (decode_options): Remove call to
504         control_warning_options.
506 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
508         PR tree-optimization/48717
509         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
510         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
512 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
514         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
515         definition where used.
517 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
519         PR c/48716
520         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
521         TREE_STATIC variables declared inside of some OpenMP construct.
523 2011-04-22  Martin Jambor  <mjambor@suse.cz>
525         PR middle-end/48585
526         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
528 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
530         PR c/36750
531         * c-typeck.c (pop_init_level): Do not warn about initializing
532         with ` = {0}'.
534 2011-04-22  Alan Modra  <amodra@gmail.com>
536         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
537         when returning call_cookie.
538         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
539         pointers, to functions with no more vector args than the current
540         function, and some non-local calls for ABI_V4.
541         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
542         sibcall_nonlocal_aix64): Combine to ..
543         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
544         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
545         (sibcall_value_nonlocal_aix<mode>): ..likewise.
546         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
547         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
548         operand.
549         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
550         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
551         sibcall_value_symbolic_64): Delete.
553 2011-04-21  Xinliang David Li  <davidxl@google.com>
555         * cgraph.h: Remove pid.
556         * cgraph.c: Remove pid.
557         * value-prof.c (init_node_map): New function.
558         (del_node_map): New function.
559         (find_func_by_funcdef_no): New function.
560         (gimple_ic_transform): Call new function.
561         * cgraphunit.c (cgraph_finalize_function): Remove pid.
562         * function.c (get_last_funcdef_no): New function.
563         * function.h (get_last_funcdef_no): New function.
564         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
565         to libgcov function.
566         (tree-profiling): Call node map init and delete function.
568 2011-04-21  Ian Lance Taylor  <iant@google.com>
570         * godump.c (go_format_type): Use exported Go name for anonymous
571         field name.
573 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
575         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
576         Call builtin_function_type_list instead of builtin_function_type.
577         (UNARY, BINARY, TRINARY, QUAD): Likewise.
579 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
581         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
582         build_function_type_list instead of build_function_type.
583         Delete variable `endlink'.
585 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
587         * config/s390/s390.c (s390_init_builtins): Call
588         build_function_type_list instead of build_function_type.
590 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
592         * config/ia64/ia64.c (ia64_init_builtins): Call
593         build_function_type_list instead of builtin_function_type.
595 2011-04-21  Easwaran Raman  <eraman@google.com>
597         * cfgexpand.c (stack_var): Remove OFFSET...
598         (add_stack_var): ...and its reference here...
599         (expand_stack_vars): ...and here.
600         (stack_var_cmp): Sort by descending order of size.
601         (partition_stack_vars): Change heuristic.
602         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
603         (dump_stack_var_partition): Add newline after each partition.
605 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
606             Jeff Law  <law@redhat.com>
608         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
609         * gengtype.c (matching_file_name_substitute): Likewise.
611 2011-04-21  Richard Guenther  <rguenther@suse.de>
613         PR lto/48703
614         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
616 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
618         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
620 2011-04-21  Richard Guenther  <rguenther@suse.de>
622         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
623         file name.
625 2011-04-21  Richard Guenther  <rguenther@suse.de>
627         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
628         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
629         Use DECL_P, not SSA_VAR_P.
630         (ptr_derefs_may_alias_p): Likewise.
631         (ptr_deref_may_alias_ref_p_1): Likewise.
632         (decl_refs_may_alias_p): Likewise.
633         (refs_may_alias_p_1): Likewise.
634         (ref_maybe_used_by_call_p_1): Likewise.
635         (call_may_clobber_ref_p_1): Likewise.
636         (indirect_ref_may_alias_decl_p): Assume indirect refrences
637         are either MEM_REF or TARGET_MEM_REF.
638         (indirect_refs_may_alias_p): Likewise.
639         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
640         for MEM_EXPR of indirect calls.
642 2011-04-21  Tristan Gingold  <gingold@adacore.com>
644         * vmsdbgout.c (write_srccorr): Compute file length from the string.
645         (dst_file_info_struct): Remove flen field.
646         (lookup_filename): Remove code that set flen field.
648 2011-04-21  Tristan Gingold  <gingold@adacore.com>
650         * config/ia64/ia64.c (ia64_start_function): Add a guard.
652 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
654         PR target/48708
655         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
656         vec_extract and vec_concat for non-SSE4_1 targets.
658 2011-04-21  Richard Guenther  <rguenther@suse.de>
660         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
661         return statements.
663 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
665         * config/i386/cygming.h (union tree_node, TREE): Don't define or
666         undefine.
667         (FILE): Don't undefine.
669 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
671         * config/alpha/alpha.c (struct machine_function): Use rtx, not
672         struct rtx_def *.
673         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
674         struct rtx_def *.
675         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
676         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
677         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
678         rtx_def *.
679         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
680         definitions where used.
681         * config/microblaze/microblaze.h (struct microblaze_args): Use
682         rtx, not struct rtx_def *.
683         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
684         rtx_def *.
685         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
686         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
687         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
688         not struct rtx_def *.
689         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
690         struct rtx_def *.
691         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
692         rtx_def *.
693         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
695 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
697         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
698         operand_equal_p to compare DR_BASE_ADDRESSes.
699         (vect_check_interleaving): Likewise.
701 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
703         PR target/46329
704         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
705         for all Neon struct constants.
707 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
709         * target.def (legitimate_constant_p): New hook.
710         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
711         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
712         * doc/tm.texi: Regenerate.
713         * hooks.h (hook_bool_mode_rtx_true): Declare.
714         * hooks.c (hook_bool_mode_rtx_true): Define.
715         * system.h (LEGITIMATE_CONSTANT_P): Poison.
716         * calls.c (precompute_register_parameters): Replace uses of
717         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
718         (emit_library_call_value_1): Likewise.
719         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
720         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
721         * ira-costs.c (scan_one_insn): Likewise.
722         * recog.c (general_operand, immediate_operand): Likewise.
723         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
724         * reload1.c (init_eliminable_invariants): Likewise.
726         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
727         mode argument.
728         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
729         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
730         argument.
731         (TARGET_LEGITIMATE_CONSTANT_P): Define.
732         * config/alpha/predicates.md (input_operand): Update call to
733         alpha_legitimate_constant_p.
735         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
736         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
737         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
738         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
739         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
740         (arm_legitimate_constant_p): New functions.
741         (arm_cannot_force_const_mem): Make static.
743         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
745         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
746         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
747         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
748         instead of bfin_legitimate_constant_p.
749         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
750         (TARGET_LEGITIMATE_CONSTANT_P): Define.
752         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
754         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
756         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
757         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
758         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
759         (frv_legitimate_constant_p): Make static.  Add a mode argument.
761         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
762         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
763         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
765         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
766         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
767         * config/i386/i386.c (legitimate_constant_p): Rename to...
768         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
769         argument.
770         (ix86_cannot_force_const_mem): Update accordingly.
771         (ix86_legitimate_address_p): Likewise.
772         (TARGET_LEGITIMATE_CONSTANT_P): Define.
773         * config/i386/i386.md: Update commentary.
775         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
776         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
777         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
778         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
780         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
782         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
783         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
784         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
785         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
787         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
788         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
789         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
791         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
792         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
793         (m32r_legitimate_constant_p): New function.
795         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
796         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
797         LEGITIMATE_CONSTANT_P.
798         (LEGITIMATE_CONSTANT_P): Delete.
799         * config/m68k/m68k.c (m68k_expand_prologue): Call
800         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
801         (m68k_legitimate_constant_p): New function.
802         * config/m68k/m68k.md: Update comments.
804         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
805         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
806         (mcore_legitimate_constant_p): New function.
808         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
809         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
810         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
811         Add a mode argument.
812         (mep_legitimate_address): Update accordingly.
813         (TARGET_LEGITIMATE_CONSTANT_P): Define.
815         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
816         Delete.
817         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
818         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
819         static.  Check OP's mode for VOIDmode.
820         (microblaze_legitimate_constant_p): New function.
821         (TARGET_LEGITIMATE_CONSTANT_P): Define.
823         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
824         * config/mips/mips.c (mips_legitimate_constant_p): New function.
825         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
826         (TARGET_LEGITIMATE_CONSTANT_P): Define.
827         * config/mips/predicates.md: Update comments.
829         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
830         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
831         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
832         (mmix_legitimate_constant_p): Make static, return a bool, and take
833         a mode argument.
834         (mmix_print_operand_address): Update accordingly.
836         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
837         Delete.
838         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
839         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
840         static.  Add a mode argument.
841         (TARGET_LEGITIMATE_CONSTANT_P): Define.
843         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
845         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
846         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
847         (pa_legitimate_constant_p): New function.
849         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
851         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
852         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
853         (pdp11_legitimate_constant_p): New function.
855         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
856         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
857         (rs6000_legitimate_constant_p): New function.
859         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
860         (rx_legitimate_constant_p): ...this.
861         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
862         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
863         (rx_legitimate_constant_p): ...this.
864         (TARGET_LEGITIMATE_CONSTANT_P): Define.
865         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
867         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
868         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
869         * config/s390/s390.c (legitimate_constant_p): Rename to...
870         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
871         and add a mode argument.
872         (TARGET_LEGITIMATE_CONSTANT_P): Define.
874         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
876         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
877         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
878         (sh_legitimate_constant_p): New function.
880         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
881         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
882         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
883         (legitimate_constant_p): Rename to...
884         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
885         argument.
886         (constant_address_p): Update accordingly.
888         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
889         argument and return a bool.
890         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
891         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
892         (spu_legitimate_constant_p): Add a mode argument and return a bool.
893         (spu_rtx_costs): Update accordingly.
894         * config/spu/predicates.md (vec_imm_operand): Likewise.
896         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
898         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
899         * config/v850/v850.c (v850_legitimate_constant_p): New function.
900         (TARGET_LEGITIMATE_CONSTANT_P): Define.
902         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
903         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
904         * config/vax/vax.c (legitimate_constant_p): Likewise.
906         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
907         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
908         (xtensa_legitimate_constant_p): New function.
910 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
912         * target.def (cannot_force_const_mem): Add a mode argument.
913         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
914         * doc/tm.texi: Regenerate.
915         * hooks.h (hook_bool_mode_rtx_false): Declare.
916         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
917         (hook_bool_mode_const_rtx_true): Likewise.
918         (hook_bool_mode_rtx_false): New function.
919         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
920         to be non-VOID.  Update call to cannot_force_const_mem.
921         (find_reloads): Update accordingly.
922         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
923         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
924         argument.
925         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
926         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
927         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
928         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
929         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
930         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
931         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
932         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
933         (m68k_cannot_force_const_mem): ...this new function.
934         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
935         argument.
936         (mips_const_insns, mips_legitimize_const_move): Update calls.
937         (mips_secondary_reload_class): Likewise.
938         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
939         (pa_cannot_force_const_mem): ...this new function.
940         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
941         (rs6000_cannot_force_const_mem): ...this new function.
942         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
943         argument.
944         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
945         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
946         to...
947         (xtensa_cannot_force_const_mem): ...this new function.
949 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
951         * config/mips/mips.c (mips16_build_function_stub): Call
952         build_function_type_list instead of build_function_type.
953         (mips16_build_call_stub): Likewise.
955 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
957         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
958         instead of build_function_type.
960 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
962         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
963         instead of build_function_type.
965 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
967         PR target/48678
968         * config/i386/i386.md (insv): Change operand 0 constraint to
969         "register_operand".  Change operand 1 and 2 constraint to
970         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
971         * config/i386/sse.md (sse4_1_pinsrb): Export.
972         (sse2_pinsrw): Ditto.
973         (sse4_1_pinsrd): Ditto.
974         (sse4_1_pinsrq): Ditto.
975         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
976         * config/i386/i386.c (ix86_expand_pinsr): New.
978 2011-04-20  Easwaran Raman  <eraman@google.com>
980         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
981         containing union type only with -fstrict-aliasing.
983 2011-04-20  Jim Meyering  <meyering@redhat.com>
985         Remove useless if-before-free tests.
986         * calls.c (expand_call, save_area): Likewise.
987         * cfgcleanup.c (try_forward_edges): Likewise.
988         * collect2.c (collect_execute): Likewise.
989         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
990         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
991         * coverage.c (coverage_checksum_string): Likewise.
992         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
993         * cselib.c (cselib_init): Likewise.
994         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
995         (df_set_clean_cfg): Likewise.
996         * function.c (free_after_compilation): Likewise.
997         * gcc.c (do_spec_1, main): Likewise.
998         * gcov.c (create_file_names): Likewise.
999         * gensupport.c (identify_predicable_attribute): Likewise.
1000         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
1001         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
1002         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
1003         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
1004         * ipa-pure-const.c (local_pure_const): Likewise.
1005         * ipa-reference.c (propagate): Likewise.
1006         * ira-costs.c (free_ira_costs): Likewise.
1007         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
1008         * matrix-reorg.c (mat_free): Likewise.
1009         * prefix.c (get_key_value): Likewise.
1010         * profile.c (compute_value_histograms): Likewise.
1011         * reload1.c (free_reg_equiv): Likewise.
1012         * sched-deps.c (free_deps): Likewise.
1013         * sel-sched-ir.c (fence_clear): Likewise.
1014         * sese.c (set_rename, if_region_set_false_region): Likewise.
1015         * tree-data-ref.c (free_rdg): Likewise.
1016         * tree-eh.c (lower_try_finally): Likewise.
1017         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
1018         * tree-ssa-live.c (delete_var_map): Likewise.
1019         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
1020         * tree-ssa-pre.c (phi_trans_add): Likewise.
1022 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
1024         PR tree-optimization/48611
1025         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
1026         beyond ERT_MUST_NOT_THROW region.
1028 2011-04-20  Catherine Moore  <clm@codesourcery.com>
1030         * config/mips/mips.opt (mfix-24k): New.
1031         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
1032         * config/mips/mips.md (length): Increase by 4 for stores if
1033         fixing 24K errata.
1034         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
1035         all noreorder if fixing 24K errata.
1036         * doc/invoke.texi: Document mfix-24k.
1038 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
1040         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
1041         quad-word modes, reduce to 9-bit index range when above 1016 limit.
1043 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
1045         * config/arm/arm.c (arm_gen_constant): Move movw support ....
1046         (const_ok_for_op): ... to here.
1048 2011-04-20  Kai Tietz  <ktietz@redhat.com>
1050         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
1051         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
1053 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
1055         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
1057 2011-04-20  Richard Guenther  <rguenther@suse.de>
1059         PR tree-optimization/47892
1060         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
1061         are if-convertible.
1063 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
1065         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
1067 2011-04-20  Tristan Gingold  <gingold@adacore.com>
1069         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
1071 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
1073         PR target/18145
1075         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
1076         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
1077         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1078         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1079         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
1081         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
1082         New prototype.
1084         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
1085         (avr_asm_named_section, avr_asm_output_aligned_common,
1086         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
1087         New functions to update...
1088         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
1089         (avr_asm_init_sections): Overwrite section callbacks for
1090         data_section, bss_section.
1091         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
1092         from here to...
1093         (avr_file_end): ...here.
1095 2011-04-20  Richard Guenther  <rguenther@suse.de>
1097         PR middle-end/48695
1098         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
1099         objects and types here.  Adjust for their offset before comparing.
1101 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
1103         * tree-vect-stmts.c (vectorizable_store): Only chain one related
1104         statement per copy.
1106 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
1108         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
1109         (GIMPLE_H): Include $(INTERNAL_FN_H).
1110         (OBJS-common): Add internal-fn.o.
1111         (internal-fn.o): New rule.
1112         * internal-fn.def: New file.
1113         * internal-fn.h: Likewise.
1114         * internal-fn.c: Likewise.
1115         * gimple.h: Include internal-fn.h.
1116         (GF_CALL_INTERNAL): New gf_mask.
1117         (gimple_statement_call): Put fntype into a union with a new
1118         internal_fn field.
1119         (gimple_build_call_internal): Declare.
1120         (gimple_build_call_internal_vec): Likewise.
1121         (gimple_call_same_target_p): Likewise.
1122         (gimple_call_internal_p): New function.
1123         (gimple_call_internal_fn): Likewise.
1124         (gimple_call_fntype): Return null for internal calls.
1125         (gimple_call_set_fntype): Assert that the function is not internal.
1126         (gimple_call_set_fn): Likewise.
1127         (gimple_call_set_fndecl): Likewise.
1128         (gimple_call_set_internal_fn): New function.
1129         (gimple_call_addr_fndecl): Handle null functions.
1130         (gimple_call_return_type): Likewise null types.
1131         * gimple.c (gimple_build_call_internal_1): New function.
1132         (gimple_build_call_internal): Likewise.
1133         (gimple_build_call_internal_vec): Likewise.
1134         (gimple_call_same_target_p): Likewise.
1135         (gimple_call_flags): Handle calls to internal functions.
1136         (gimple_call_fnspec): New function.
1137         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
1138         (gimple_has_side_effects): Handle null functions.
1139         (gimple_rhs_has_side_effects): Likewise.
1140         (gimple_call_copy_skip_args): Handle calls to internal functions.
1141         * cfgexpand.c (expand_call_stmt): Likewise.
1142         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
1143         * gimple-fold.c (gimple_fold_call): Handle null functions.
1144         (gimple_fold_stmt_to_constant_1): Don't fold
1145         calls to internal functions.
1146         * gimple-low.c (gimple_check_call_args): Handle calls to internal
1147         functions.
1148         * gimple-pretty-print.c (dump_gimple_call): Likewise.
1149         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
1150         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
1151         (do_warn_unused_result): Likewise.
1152         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
1153         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
1154         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
1155         the target of a call.
1156         (initialize_hash_element): Update accordingly.
1157         (hashable_expr_equal_p): Use gimple_call_same_target_p.
1158         (iterative_hash_hashable_expr): Handle calls to internal functions.
1159         (print_expr_hash_elt): Likewise.
1160         * tree-ssa-pre.c (can_value_number_call): Likewise.
1161         (eliminate): Handle null functions.
1162         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
1163         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
1164         (find_func_aliases): Likewise.
1165         * value-prof.c (gimple_ic_transform): Likewise.
1166         (gimple_indirect_call_to_profile): Likewise.
1167         * lto-streamer-in.c (input_gimple_stmt): Likewise.
1168         * lto-streamer-out.c (output_gimple_stmt): Likewise.
1170 2011-04-19  Jan Hubicka  <jh@suse.cz>
1172         * ipa-inline-transform.c (save_inline_function_body): Add comments.
1173         * ipa-inline.c (inline_small_functions): Compute summaries first,
1174         populate heap later.
1176 2011-04-19  Jan Hubicka  <jh@suse.cz>
1178         * cgraph.h (save_inline_function_body): Remove.
1179         * ipa-inline-transform.c: New file, broke out of...
1180         * ipa-inline.c: ... this one; Update toplevel comment.
1181         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
1182         make global.
1183         (update_noncloned_frequencies): Move to ipa-inline-transform.c
1184         (cgraph_mark_inline_edge): Rename to inline_call; move to
1185         ipa-inline-transform.c.
1186         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
1187         move to ipa-inline-transform.c
1188         (recursive_inlining, inline_small_functions, flatten_function,
1189         ipa_inline, inline_always_inline_functions,
1190         early_inline_small_functions): Update.
1191         (inline_transform): Move to ipa-inline-transform.c.
1192         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
1193         Declare.
1194         * Makefile.in (ipa-inline-transform.o): New file.
1195         * cgraphunit.c (save_inline_function_body): Move to
1196         ipa-inline-transform.c
1198 2011-04-19  DJ Delorie  <dj@redhat.com>
1200         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
1201         registers if we already know there aren't any.
1202         (m32c_emit_epilogue): Don't emit a barrier here.
1203         (m32c_emit_eh_epilogue): Likewise.
1204         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
1205         operands at expand time.
1206         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
1207         int" wchar type.
1208         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
1209         duplicates.  Provide aliases instead.
1210         * config/m32c/prologue.md (eh_return): Emit a barrier here.
1211         (eh_epilogue): Add a "(return)" here as a hint to other parts of
1212         the compiler.
1214 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
1216         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
1217         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
1218         (general_or_i64_p, sparc_register_move_cost): New function.
1220 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1222         * doc/install.texi (Configuration, --enable-threads): Remove mach.
1223         Add lynx, mipssde.  Sort table.
1225 2011-04-19  Xinliang David Li  <davidxl@google.com>
1227         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
1228         not negative.
1230 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
1232         PR target/48678
1233         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
1234         is a SUBREG with non-MODE_INT mode inside of it.
1236 2011-04-19  Martin Jambor  <mjambor@suse.cz>
1238         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
1239         also according to actual contants.
1240         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
1241         (gimple_fold_call): Use it.
1242         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
1244 2011-04-19  Martin Jambor  <mjambor@suse.cz>
1246         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
1247         non-pointer assignments.
1249 2011-04-19  Martin Jambor  <mjambor@suse.cz>
1251         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
1252         account anc_offset and otr_type from the indirect edge info.
1253         * ipa-prop.c (get_ancestor_addr_info): New function.
1254         (compute_complex_ancestor_jump_func): Assignment analysis moved to
1255         get_ancestor_addr_info, call it.
1256         (ipa_note_param_call): Do not initialize information about polymorphic
1257         calls, return the indirect call graph edge.  Remove the last
1258         parameter, adjust all callers.
1259         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
1260         parameters.  Initialize polymorphic information in the indirect edge.
1262 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
1264         PR lto/48148
1265         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
1266         the types if they have different enumeration identifiers.
1268 2011-04-19  Jan Hubicka  <jh@suse.cz>
1270         * cgraph.h (cgraph_optimize_for_size_p): Declare.
1271         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
1272         * predict.c (cgraph_optimize_for_size_p): Break out from ...
1273         (optimize_function_for_size_p) ... here.
1275 2011-04-19  Richard Guenther  <rguenther@suse.de>
1277         PR lto/48207
1278         * tree.c (free_lang_data): Do not reset the decl-assembler-name
1279         langhook.
1281 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
1283         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
1284         if DECL_NO_INLINE_WARNING_P is set on the function.
1286 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
1288         PR fortran/47976
1289         * reload1.c (inc_for_reload): Return void. All callers changed.
1290         (emit_input_reload_insns): Don't try to delete previous output
1291         reloads to a register, or record spill_reg_store for autoincs.
1293 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
1295         * gengtype.h: Updated copyright year.
1296         (struct input_file_st): Add inpisplugin field.
1297         (type_fileloc): New function.
1298         * gengtype.c
1299         (write_typed_struct_alloc_def): Add gcc_assert.
1300         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
1301         (write_typed_alloc_defns): Don't output for plugin files.
1302         (input_file_by_name): Clear inpisplugin field.
1303         (main): Set inpisplugin field for plugin files.
1305 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
1307         * gengtype-state.c (string_eq): New.
1308         (read_state): Use string_eq instead of strcmp when creating the
1309         state_ident_tab.
1311 2011-04-19  Wei Guozhi  <carrot@google.com>
1313         PR target/47855
1314         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
1315         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
1316         linkage.
1317         * config/arm/constraints.md (Uu): New constraint.
1318         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
1320 2011-04-19  Tristan Gingold  <gingold@adacore.com>
1322         * config.gcc (-*-*-*vms): Added.
1323         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
1324         definitions moved.
1325         * config/vms/vms-ld.c: New file.
1326         * config/vms/vms-ar.c: New file.
1327         * config/vms/t-vmsnative: New file.
1329 2011-04-18  Xinliang David Li  <davidxl@google.com>
1331         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
1333 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
1335         PR middle-end/48661
1336         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
1337         if TREE_TYPE (v) is non-NULL.
1339         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
1340         gimple_get_virt_mehtod_for_binfo.
1341         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
1342         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
1343         callers.
1344         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1346 2011-04-18  Michael Matz  <matz@suse.de>
1347             Steve Ellcey  <sje@cup.hp.com>
1349         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
1350         use its mode as source mode if it isn't VOIDmode.
1352 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
1354         * doc/passes.texi: Fill crossref nodes.
1356 2011-04-18  Jim Meyering  <meyering@redhat.com>
1358         Fix doubled-word typos in comments and strings
1359         * config/alpha/vms-unwind.h: s/for for/for/
1360         * config/arm/unwind-arm.h: Likewise.
1361         * config/microblaze/microblaze.c: Likewise.
1362         * config/sh/constraints.md: s/in in/in/
1363         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
1365 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
1367         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
1368         (AVX_FLOAT_MODE_P): Ditto.
1369         (AVX128_VEC_FLOAT_MODE_P): Ditto.
1370         (AVX256_VEC_FLOAT_MODE_P): Ditto.
1371         (AVX_VEC_FLOAT_MODE_P): Ditto.
1372         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
1373         (UNSPEC_MASKSTORE): Ditto.
1374         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
1375         Merge from <sse>_movmsk<ssemodesuffix> and
1376         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
1377         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
1378         iterator.
1379         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
1380         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
1381         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
1383 2011-04-18  Jan Hubicka  <jh@suse.cz>
1385         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
1387         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
1388         (want_inline_function_called_once_p): Break out the logic from
1389         ipa_inline.
1390         (edge_badness): Ensure that profile is not misupdated.
1391         (lookup_recursive_calls): Prioritize by call frequencies.
1392         (inline_small_functions): Move program size estimates here;
1393         actually process whole queue even when unit growth has been
1394         met. (to properly compute inline_failed reasons and for the
1395         case unit size decrease.) Revisit comments on recursive inlining.
1396         (ipa_inline): Remove unit summary code; first inline hot calls
1397         of functions called once, cold calls next.
1398         (order, nnodes): Remove unused variables.
1399         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
1400         (GTFILES): Remove ipa-inline.c
1401         * sel-sched.c (fill_insns): Silence uninitialized var warning.
1403 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1405         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
1407 2011-04-18  Jie Zhang  <jie@codesourcery.com>
1408             Richard Earnshaw  <rearnsha@arm.com>
1410         * arm.c (neon_builtin_type_bits): Remove.
1411         (typedef enum neon_builtin_mode): New.
1412         (T_MAX): Don't define.
1413         (typedef enum neon_builtin_datum): Remove bits, codes[],
1414         num_vars and base_fcode.  Add mode, code and fcode.
1415         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
1416         VAR10): Change accordingly.
1417         (neon_builtin_data[]): Change accordingly
1418         (arm_init_neon_builtins): Change accordingly.
1419         (neon_builtin_compare): Remove.
1420         (locate_neon_builtin_icode): Remove.
1421         (arm_expand_neon_builtin): Change accordingly.
1423         * arm.h (enum arm_builtins): Move to ...
1424         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
1426         * arm.c (arm_builtin_decl): Declare.
1427         (TARGET_BUILTIN_DECL): Define.
1428         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
1429         (arm_builtin_decls[]): New.
1430         (arm_init_neon_builtins): Store builtin declarations in
1431         arm_builtin_decls[].
1432         (arm_init_tls_builtins): Likewise.
1433         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
1434         (arm_builtin_decl): New.
1436 2011-04-18  Richard Guenther  <rguenther@suse.de>
1438         * tree.c (upper_bound_in_type): Build properly canonicalized
1439         INTEGER_CSTs.
1440         (lower_bound_in_type): Likewise.
1442 2011-04-18  Richard Guenther  <rguenther@suse.de>
1444         * gimple.h (gimple_call_addr_fndecl): New function.
1445         (gimple_call_fndecl): Use it.
1446         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
1447         for direct calls.
1448         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
1449         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
1451 2011-04-18  Richard Guenther  <rguenther@suse.de>
1453         PR middle-end/48650
1454         * tree.c (build_string): STRING_CST is now derived from tree_typed.
1456 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1458         PR lto/48492
1459         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
1460         DECL_IN_CONSTANT_POOL without RTL.
1462 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
1463             Ira Rosen  <ira.rosen@linaro.org>
1465         PR target/48252
1466         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
1467         to match neon_vzip/vuzp/vtrn_internal.
1468         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
1469         outputs explicitly dependent on both inputs.
1470         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
1472 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
1474         PR tree-optimization/48616
1475         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
1476         whether the shift is by scalar or vector based on whether all SLP
1477         scalar stmts have the same rhs.
1479 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
1481         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
1482         memory operands.
1484 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
1486         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
1487         registers.
1489 2011-04-17  Jan Hubicka  <jh@suse.cz>
1491         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
1492         * cgrpahunit.c (cgraph_finalize_function): Do not set
1493         finalized_by_frontend.
1494         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1495         finalized_by_frontend.
1497 2011-04-17  Jan Hubicka  <jh@suse.cz>
1499         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
1500         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
1501         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
1502         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
1503         method.
1504         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
1505         gimple-fold.c
1506         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
1508 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
1510         PR lto/48538
1511         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
1512         is non-null before accessing it.
1513         (input_cgraph): Remove trailing spaces.
1515 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1517         * params.def (sms-min-sc): New param flag.
1518         * modulo-sched.c (sms_schedule): Use it.
1519         * doc/invoke.texi (sms-min-sc): Document it.
1521 2011-04-17  Jan Hubicka  <jh@suse.cz>
1523         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1524         present, also set gimple_call_set_cannot_inline.
1525         * ipa-inline.c: Update toplevel comment.
1526         (MAX_TIME): Remove.
1527         (cgraph_clone_inlined_nodes): Fix linebreaks.
1528         (cgraph_check_inline_limits): Restructure to ...
1529         (caller_growth_limits): ... this one; be more tolerant
1530         on growth in nested inline chains; add explanatory comment;
1531         fix stack accounting thinko introduced by previous patch.
1532         (cgraph_default_inline_p): Remove.
1533         (report_inline_failed_reason): New function.
1534         (can_inline_edge_p): New function.
1535         (can_early_inline_edge_p): New function.
1536         (leaf_node_p): Move upwards in file.
1537         (want_early_inline_function_p): New function.
1538         (want_inline_small_function_p): New function.
1539         (want_inline_self_recursive_call_p): New function.
1540         (cgraph_edge_badness): Rename to ...
1541         (edge_badness) ... this one; fix linebreaks.
1542         (update_edge_key): Update call of edge_baddness; add
1543         detailed dump about queue updates.
1544         (update_caller_keys): Use can_inline_edge_p and
1545         want_inline_small_function_p.
1546         (cgraph_decide_recursive_inlining): Rename to...
1547         (recursive_inlining): Use can_inline_edge_p and
1548         want_inline_self_recursive_call_p; simplify and remove no longer
1549         valid FIXME.
1550         (cgraph_set_inline_failed): Remove.
1551         (add_new_edges_to_heap): Use can_inline_edge_p and
1552         want_inline_small_function_p.
1553         (cgraph_decide_inlining_of_small_functions): Rename to ...
1554         (inline_small_functions): ... this one; cleanup; use
1555         can/want predicates; cleanup debug ouput; work edges till fibheap
1556         is exhausted and do not stop once unit growth is reached; remove
1557         later loop processing remaining edges.
1558         (cgraph_flatten): Rename to ...
1559         (flatten_function): ... this one; use can_inline_edge_p
1560         and can_early_inline_edge_p predicates.
1561         (cgraph_decide_inlining): Rename to ...
1562         (ipa_inline): ... this one; remove unreachable nodes before
1563         inlining functions called once; simplify the pass.
1564         (cgraph_perform_always_inlining): Rename to ...
1565         (inline_always_inline_functions): ... this one; use
1566         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1567         (cgraph_decide_inlining_incrementally): Rename to ...
1568         (early_inline_small_functions): ... this one; simplify
1569         using new predicates; cleanup; make dumps prettier.
1570         (cgraph_early_inlining): Rename to ...
1571         (early_inliner): newer inline regular functions into always-inlines;
1572         fix updating of call stmt summaries.
1573         (pass_early_inline): Update for new names.
1574         (inline_transform): Fix formating.
1575         (gate_cgraph_decide_inlining): Rename to ...
1576         (pass_ipa_inline): ... this one.
1577         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1578         * ipa-inline-analysis.c (dump_inline_summary): Update.
1579         (compute_inline_parameters): Do not compute disregard_inline_limits;
1580         look for mismatching arguments.
1581         (estimate_growth): Fix handlig of non-trivial self recursion.
1582         (inline_read_summary): Do not read info->disregard_inline_limits.
1583         (inline_write_summary): Do not write info->disregard_inline_limits.
1584         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1585         and move all checks into can_inline_edge_p predicate; re-enable code
1586         comparing optimization levels.
1587         (expand_call_inline): Do not test inline_forbidden_into_p.
1588         * Makefile.in (ipa-inline.o): Update arguments.
1590 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1592         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1594 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1596         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1598 2011-04-17  Michael Matz  <matz@suse.de>
1600         PR tree-optimization/48622
1601         PR lto/48645
1602         * ipa-inline-analysis.c (inline_read_summary): Read size/time
1603         in same order as they're written.
1605 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1607         * config/pa/predicates.md: Reorganize and simplify predicates.
1608         Eliminate duplicate code checks.
1609         (arith_operand): Rename to arith14_operand
1610         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1611         * config/pa/pa.md: Use renamed operands.
1612         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1613         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1614         arith11_operand, adddi3_operand, indexed_memory_operand,
1615         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1616         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1617         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1618         move_dest_operand, move_src_operand, prefetch_cc_operand,
1619         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1620         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1621         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1622         div_operand, int5_operand, movb_comparison_operator,
1623         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1624         arith_double_operand, ireg_operand, lhs_lshift_operand,
1625         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1626         integer_store_memory_operand): Likewise.
1627         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1628         (integer_store_memory_operand, read_only_operand,
1629         function_label_operand, borx_reg_operand,
1630         non_hard_reg_operand): Likewise.
1631         (eq_neq_comparison_operator): Delete unused operator.
1632         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1633         function_label_operand.
1634         (emit_move_sequence): Likewise.
1636 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1638         * config/i386/sse.md (sseunpackmode): New mode attribute.
1639         (ssepackmode): Ditto.
1640         (vec_pack_trunc_<mode>): Macroize expander from
1641         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1642         (vec_unpacks_lo_<mode>): Macroize expander from
1643         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1644         (vec_unpacks_hi_<mode>): Macroize expander from
1645         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1646         (vec_unpacku_lo_<mode>): Macroize expander from
1647         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1648         (vec_unpacku_hi_<mode>): Macroize expander from
1649         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1650         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1651         ix86_expand_sse4_unpack.
1652         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1654 2011-04-16  Jan Hubicka  <jh@suse.cz>
1656         * cgraphbuild.c: Include ipa-inline.h.
1657         (reset_inline_failed): Use initialize_inline_failed.
1658         * cgraph.c: Include ipa-inline.h.
1659         (cgraph_create_node_1): Do not initialize estimated_growth.
1660         (initialize_inline_failed): More to ipa-inline-analysis.c
1661         (dump_cgraph_node): Do not dump inline flags.
1662         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1663         and disregard_inline_limits flags.
1664         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1665         time, size, estimated_growth.
1666         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1667         Update.
1668         * cgraphunit.c (cgraph_decide_is_function_needed): Use
1669         DECL_DISREGARD_INLINE_LIMITS.
1670         (cgraph_analyze_function): Do not initialize
1671         node->local.disregard_inline_limits.
1672         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1673         inlinable, versionable and disregard_inline_limits.
1674         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1675         cgraph_check_inline_limits, cgraph_default_inline_p,
1676         cgraph_edge_badness, update_caller_keys, update_callee_keys,
1677         add_new_edges_to_heap): Update.
1678         (cgraph_decide_inlining_of_small_function): Update; set
1679         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1680         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1681         cgraph_decide_inlining_incrementally): Update.
1682         * ipa-inline.h (inline_summary): Add inlinable, versionable,
1683         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1684         time, size and estimated_growth parameters.
1685         (estimate_edge_growth): Update.
1686         (initialize_inline_failed): Declare.
1687         * ipa-split.c: Include ipa-inline.h
1688         (execute_split_functions): Update.
1689         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1690         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1691         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1692         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1693         estimated_growth to INT_MIN.
1694         (inline_node_duplication_hook): Likewise.
1695         (dump_inline_summary): Dump new fields.
1696         (compute_inline_parameters): Update.
1697         (estimate_edge_time, estimate_time_after_inlining,
1698         estimate_size_after_inlining, estimate_growth, inline_read_summary,
1699         inline_write_summary):
1700         (initialize_inline_failed): Move here from cgraph.c.
1701         * tree-sra.c: Include ipa-inline.h.
1702         (ipa_sra_preliminary_function_checks): Update.
1703         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1704         ipa-inline.h.
1706 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1708         * config/i386/sse.md (V16): New mode iterator.
1709         (VI1, VI8): Ditto.
1710         (AVXMODEQI, AVXMODEDI): Remove.
1711         (sse2, sse3): New mode attribute.
1712         (mov<mode>): Use V16 mode iterator.
1713         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1714         (push<mode>1): Use V16 mode iterator.
1715         (movmisalign<mode>): Ditto.
1716         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1717         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1718         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1719         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1720         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1721         avx_movdqu<avxmodesuffix>.
1722         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1723         *avx_movdqu<avxmodesuffix>.
1724         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1725         avx_lddqu<avxmodesuffix>.
1726         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1727         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1728         avx_movnt<AVXMODEDI:mode>.
1729         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1730         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1732 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1734         PR target/48629
1735         * haifa-sched.c (prune_ready_list, schedule_block): Use
1736         sched_pressure_p rather than flag_sched_pressure.
1738 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
1740         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1741         cgraph_get_node instead of cgraph_get_create_node.
1743 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
1745         * cfgexpand.c (expand_debug_expr): Use
1746         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1748 2011-04-15  Michael Matz  <matz@suse.de>
1750         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1751         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1752         * function.c (gimplify_parameters): Ditto.
1753         * gimplify.c (gimplify_vla_decl): Ditto.
1755         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1756         (gimple_call_set_alloca_for_var): New inline function.
1757         (gimple_call_alloca_for_var_p): Ditto.
1758         * gimple.c (gimple_build_call_from_tree): Remember
1759         CALL_ALLOCA_FOR_VAR_P state.
1760         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1762         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1763         calls if they were for VLA objects.
1765 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1767         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1768         of ADR_EXPRs.
1770 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1772         PR middle-end/48601
1773         * tree-emutls.c (lower_emutls_function_body): Call
1774         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
1775         result is non-NULL.
1777 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1779         * c-decl.c (detect_field_duplicates): Call
1780         objc_detect_field_duplicates instead of objc_get_interface_ivars.
1782 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
1784         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1785         * gimple.c (gimple_asm_clobbers_memory_p): Define.
1786         * ipa-pure-const.c (check_stmt): Call it.
1787         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1789 2011-04-15  Richard Guenther  <rguenther@suse.de>
1791         PR tree-optimization/48290
1792         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1793         Properly decide inhibiting propagation based on the valueized
1794         operand.  Do loop-closed SSA form preserving here ...
1795         (init_copy_prop): ... not here.
1797 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1799         PR target/48612
1800         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1801         (*ieee_smax<mode>3): Likewise.
1803 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1805         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1806         Replace match_operand with match_dup for the third operand in
1807         these expanders.
1809 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1811         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1812         to track processing of conditionals.  Update all callers.
1813         (try_combine, simplify_if_then_else): Update.
1815 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1817         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1818         -fsched-pressure.
1820 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
1822         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1823         instead of match_operand for operand 3.
1825 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
1827         * recog.h (insn_operand_data): Add an "allows_mem" field.
1828         * genoutput.c (output_operand_data): Initialize it.
1829         * optabs.c (maybe_legitimize_operand_same_code): New function.
1830         (maybe_legitimize_operand): Use it when matching the original
1831         op->value.
1833 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1835         * gimplify.c: Fix issues in comments throughout.
1836         (voidify_wrapper_expr): Fix long line.
1837         (build_stack_save_restore): Likewise.
1838         (gimplify_loop_expr): Likewise.
1839         (gimplify_compound_lval): Likewise.
1840         (gimplify_init_ctor_eval): Likewise.
1841         (gimplify_modify_expr_rhs): Likewise.
1842         (omp_notice_threadprivate_variable): Likewise.
1844 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1846         * cfgexpand.c (expand_call_stmt): Convert the function type to the
1847         original one if this is not a builtin function.
1849 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
1851         PR target/48605
1852         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1853         offset it as needed based on top 2 bits in operands[3], change
1854         MEM mode to SFmode and mask those 2 bits away from operands[3].
1856 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1858         * c-parser.c (c_parser_objc_protocol_definition): Updated for
1859         change from objc_declare_protocols() to objc_declare_protocol().
1861 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
1863         * config/i386/sse.md (sse4_1): New mode attribute.
1864         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1865         avx_blend<ssemodesuffix><avxmodesuffix> and
1866         sse4_1_blend<ssemodesuffix> using VF mode iterator.
1867         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1868         avx_blendv<ssemodesuffix><avxmodesuffix> and
1869         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1870         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1871         avx_dp<ssemodesuffix><avxmodesuffix> and
1872         sse4_1_dp<ssemodesuffix> using VF mode iterator.
1873         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1874         (sse4_1_packusdw): Merge with *avx_packusdw.
1875         (sse4_1_pblendvb): Merge with *avx_pblendvb.
1876         (sse4_1_pblendw): Merge with *avx_pblendw.
1877         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1878         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1879         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1880         VF mode iterator.
1881         (sse4_1_round<ssescalarmodesuffix>): Merge with
1882         *avx_round<ssescalarmodesuffix>.
1883         (aesenc): Merge with *avx_aesenc.
1884         (aesenclast): Merge with *avx_aesenclast.
1885         (aesdec): Merge with *avx_aesdec.
1886         (aesdeclast): Merge with *avx_aesdeclast.
1887         (pclmulqdq): Merge with *pclmulqdq.
1888         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1889         New predicate.
1890         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1892 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
1894         PR middle-end/48608
1895         * cfgexpand.c (get_decl_align_unit): Renamed to ...
1896         (align_local_variable): This.  Update DECL_ALIGN.
1897         (add_stack_var): Updated.
1898         (expand_one_stack_var): Likewise.
1900 2011-04-14  Richard Guenther  <rguenther@suse.de>
1902         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1903         Remove.
1904         (dse_initialize_block_local_data, dse_leave_block,
1905         record_voperand_set, get_stmt_uid): Likewise.
1906         (dse_possible_dead_store_p): Allow any kind of killing stmt.
1907         (dse_optimize_stmt): Remove voperand set handling code.
1908         Simplify and improve to handle any kind of killing stmt.
1909         (dse_record_phi): Remove.
1910         (dse_enter_block): Simplify.
1911         (tree_ssa_dse): Likewise.
1912         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1914 2011-04-14  Jan Hubicka  <jh@suse.cz>
1916         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1917         * cgraph.h (struct inline_summary): Move to ipa-inline.h
1918         (cgraph_local_info): Remove inline_summary.
1919         * ipa-cp.c: Include ipa-inline.h.
1920         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1921         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1922         accesor.
1923         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1924         (input_overwrite_node): Do not set inline summary.
1925         (input_node): Do not stream inline summary.
1926         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1927         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1928         growth; we do not have inline parameters computed for that anyway.
1929         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1930         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1931         (inline_summary_t): New type and VECtor.
1932         (debug_inline_summary, dump_inline_summaries): Declare.
1933         (inline_summary): Use VOCtor.
1934         (estimate_edge_growth): Kill hack computing call stmt size directly.
1935         * lto-section-in.c (lto_section_name): Add inline section.
1936         * ipa-inline-analysis.c: Include lto-streamer.h
1937         (node_removal_hook_holder, node_duplication_hook_holder): New holders
1938         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1939         (inline_summary_vec): Define.
1940         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1941         dump_inline_summaries): New functions.
1942         (estimate_function_body_sizes): Properly compute size/time of outgoing
1943         calls.
1944         (compute_inline_parameters): Alloc inline_summary; do not compute
1945         size/time of incomming calls.
1946         (estimate_edge_time): Avoid missing time summary hack.
1947         (inline_read_summary): Read inline summary info.
1948         (inline_write_summary): Write inline summary info.
1949         (inline_free_summary): Free all hooks and inline summary vector.
1950         * lto-streamer.h: Add LTO_section_inline_summary section.
1951         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1952         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1954 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1956         * tree-vectorizer.h (vect_strided_store_supported): Add a
1957         HOST_WIDE_INT argument.
1958         (vect_strided_load_supported): Likewise.
1959         (vect_permute_store_chain): Return void.
1960         (vect_transform_strided_load): Likewise.
1961         (vect_permute_load_chain): Delete.
1962         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1963         count argument.  Check that the count is a power of two.
1964         (vect_strided_load_supported): Likewise.
1965         (vect_permute_store_chain): Return void.  Update after above changes.
1966         Assert that the access is supported.
1967         (vect_permute_load_chain): Likewise.
1968         (vect_transform_strided_load): Return void.
1969         * tree-vect-stmts.c (vectorizable_store): Update calls after
1970         above interface changes.
1971         (vectorizable_load): Likewise.
1972         (vect_analyze_stmt): Don't check for strided powers of two here.
1974 2011-04-14  Richard Guenther  <rguenther@suse.de>
1976         PR tree-optimization/48590
1977         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1978         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1979         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1980         BUILT_IN_STACK_SAVE.
1981         * tree-ssa-dce.c (propagate_necessity): Handle
1982         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1984 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1986         * c-parser.c (c_parser_objc_class_declaration): Updated call to
1987         objc_declare_class.
1989 2011-04-14  Richard Guenther  <rguenther@suse.de>
1991         * tree.h (get_object_alignment_1): Declare.
1992         * builtins.c (get_object_alignment_1): Split out worker from ...
1993         (get_object_alignment): ... here.
1994         * fold-const.c (get_pointer_modulus_and_residue): Use
1995         get_object_alignment_1.
1997 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1999         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
2000         type parameter.
2001         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
2002         parameter.  Generalise code to handle arrays as well as vectors.
2003         (vect_setup_realignment): Update accordingly.
2004         * tree-vect-stmts.c (vectorizable_store): Likewise.
2005         (vectorizable_load): Likewise.
2007 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
2009         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
2010         within the per-copy loop.
2012 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
2014         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
2015         in the dump file.
2017 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
2019         * doc/options.texi (Negative): Explicitly mention that the
2020         Negative chain must be circular.
2022 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
2024         * function.h (block_chainon): Declare.
2025         * function.c (block_chainon): Define.
2027 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
2028             Eric Weddington  <eric.weddington@atmel.com>
2029             Georg-Johann Lay <avr@gjlay.de>
2031         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
2032         New Includes
2033         (avr_init_builtins, avr_expand_builtin,
2034         avr_expand_delay_cycles, avr_expand_unop_builtin,
2035         avr_expand_binop_builtin ): New functions.
2036         (avr_builtin_id): New enum
2037         (struct avr_builtin_description): New struct
2038         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
2039         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
2041         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
2042         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
2043         UNSPECV_DELAY_CYCLES): new enumeration values
2044         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
2045         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
2046         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
2047         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
2048         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
2049         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
2050         "fmulsu"): New insns
2052         * config/avr/avr-c.c: fix line endings
2053         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
2054         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
2055         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
2056         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
2057         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
2059         * doc/extend.texi (AVR Built-in Functions): New node
2060         (Target Builtins): Add documentation of AVR
2061         built-in functions.
2063 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
2065         PR target/44643
2066         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
2067         alone. Error if non-const data has attribute progmem.
2069 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
2071         * tree.h (struct tree_constructor): Include tree_typed instead of
2072         tree_common.
2073         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
2074         TS_TYPED instead of TS_COMMON.
2076 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
2078         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
2079         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
2080         (sse2_psadbw): Merge with *avx_psadbw.
2081         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
2082         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
2083         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
2084         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
2085         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
2086         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
2087         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
2088         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
2089         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
2090         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
2091         (ssse3_palignrti): Merge with *avx_palignrti.
2093 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
2095         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
2096         * tree-ssanames.c (fini_ssanames): VEC_free it.
2097         (make_ssa_name_fn): Update for VECness of free_ssanames.
2098         (release_ssa_name, release_dead_ssa_names): Likewise.
2099         * tree.h (struct tree_ssa_name): Include tree_typed instead of
2100         tree_common.
2101         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
2102         TS_TYPED instead of TS_COMMON.
2104 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
2106         * postreload-gcse.c (gcse_after_reload_main): Add calls to
2107         statistics_counter_event.
2108         * tree-ssa-copyrename.c (stats): Define.
2109         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
2110         statistics_counter_event.
2111         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
2112         (bswap_stats, widen_mul_stats): Define.
2113         (insert_reciprocals): Increment rdivs_inserted.
2114         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
2115         rfuncs_inserted.  Add calls to statistics_counter_event.
2116         (execute_cse_sincos_1): Increment inserted.
2117         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
2118         statistics_counter_event.
2119         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
2120         of bswap_stats.  Add calls to statistics_counter_event.
2121         (convert_mult_to_widen): Increment widen_mults_inserted.
2122         (convert_plusminus_to_widen): Increment maccs_inserted.
2123         (convert_mult_to_fma): Increment fmas_inserted.
2124         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
2125         calls to statistics_counter_event.
2127 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
2129         PR rtl-optimization/48455
2130         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
2131         `temp_costs->mem_cost'.
2133 2011-04-13  Jan Hubicka  <jh@suse.cz>
2135         * ipa-inline.h: New file.
2136         * ipa-inline-analysis.c: New file. Broken out of ...
2137         * ipa-inline.c: ... this file; update toplevel comment;
2138         include ipa-inline.h
2139         (inline_summary): Move to ipa-inline.h
2140         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
2141         ipa-inline-analysis.c.
2142         (cgraph_estimate_time_after_inlining): Rename to
2143         estiamte_time_after_inlining; move to ipa-inline-analysis.c
2144         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
2145         to estimate_edge_growth.
2146         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
2147         rename to estimate_size_after_inlining.
2148         (cgraph_mark_inline_edge): Update for new naming convention.
2149         (cgraph_check_inline_limits): Likewise.
2150         (cgraph_edge_badness): Likewise.
2151         (cgraph_decide_recursive_inlining): Likewise.
2152         (cgraph_decide_inlining_of_small_functions): Likewise.
2153         (cgraph_decide_inlining_incrementally): Likewise.
2154         (cgraph_estimate_growth): Rename to estimate_growth; move to
2155         ipa-inline-analysis.c.
2156         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
2157         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
2158         (compute_inline_parameters): Likewise.
2159         (compute_inline_parameters_for_current): Likewise.
2160         (pass_inline_parameters): Likewise.
2161         (inline_indirect_intraprocedural_analysis): Likewise.
2162         (analyze_function): Rename to inline_analyze_function; likewise.
2163         (add_new_function): Move to ipa-inline-analysis.c.
2164         (inline_generate_summary): Likewise.
2165         (inline_read_summary): Likewise.
2166         (inline_write_summary): Likewise.
2167         * Makefile.in (ipa-inline-analysis.c): New file.
2169 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2171         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
2172         * configure: Regenerate.
2174 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
2176         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
2177         instead of tree_common.
2178         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
2179         Likewise.
2180         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
2181         TS_TYPED rather than TS_COMMON.
2182         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
2184 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
2186         PR target/45263
2187         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
2188         r20 around calls of __tablejump_elpm__
2190 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
2192         PR middle-end/48591
2193         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
2194         NULL.
2195         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
2197 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
2199         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
2200         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
2201         (cfi_vec): New typedef.
2202         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
2203         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
2204         (cie_cfi_vec): New static variable.
2205         (cie_cfi_head): Delete.
2206         (add_cfi): Accept a cfi_vec * as first argument. All callers and
2207         declaration changed. Use vector rather than list operations.
2208         (new_cfi): Don't initialize the dw_cfi_next field.
2209         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
2210         rather than list operations.
2211         (lookup_cfa): Use vector rather than list operations.
2212         (output_cfis): New argument upto. Accept a cfi_vec rather than
2213         a dw_cfi_ref list head as argument. All callers changed.
2214         Iterate over the vector using upto as a maximum index.
2215         (output_all_cfis): New static function.
2216         (output_fde): Use vector rather than list operations. Use the
2217         new upto argument for output_cfis rather than manipulating a
2218         list.
2219         (dwarf2out_begin_prologue): Change initializations to match
2220         new struct members.
2221         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
2222         from the vector length rather than searching for the end of a list.
2223         Use output_all_cfis.
2224         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
2226 2011-04-13  Nick Clifton  <nickc@redhat.com>
2228         * config/rx/rx.md (movmemsi): Do not use this pattern when
2229         volatile pointers are involved.
2231 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
2233         * config/i386/sse.md (pinsrbits): Remove.
2234         (sse2_packsswb): Merge with *avx_packsswb.
2235         (sse2_packssdw): Merge with *avx_packssdw.
2236         (sse2_packuswb): Merge with *avx_packuswb.
2237         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
2238         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
2239         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
2240         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
2241         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
2242         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
2243         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
2244         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
2245         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
2246         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
2247         (sse2_loadld): Merge with *avx_loadld.
2248         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
2249         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
2250         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
2251         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
2252         (vec_concatv2di): Merge with *vec_concatv2di_avx.
2254 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
2256         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
2257         calling TREE_CHAIN.
2258         * print-tree.c (print_node): Likewise.
2259         * tree-inline.c (copy_tree_r): Likewise.
2260         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
2261         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
2262         instead of TS_COMMON.
2263         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
2264         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
2265         (copy_node_stat): Zero TREE_CHAIN only if necessary.
2266         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
2267         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
2268         ...and these...
2269         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
2270         * tree.h: ...here.
2271         (TREE_CHAIN): Check for a TS_COMMON structure.
2272         (TREE_TYPE): Check for a TS_TYPED structure.
2274 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
2276         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2277         cgraph_get_create_node instead of cgraph_node.
2279 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
2281         * c-parser.c (c_parser_initelt): Updated call to
2282         objc_build_message_expr.
2283         (c_parser_postfix_expression): Likewise.
2285 2011-04-12  Kai Tietz  <ktietz@redhat.com>
2287         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
2288         MASK_MS_BITFIELD_LAYOUT bit.
2290 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2292         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
2293         assert it is always true.
2294         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
2295         moves.
2297 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
2299         * c-parser.c (c_lex_one_token): Rewritten conditional used when
2300         compiling Objective-C to be more efficient.
2302 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
2304         * opts-common.c (decode_cmdline_options_to_array): Remove variable
2305         argv_copied.
2307 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
2309         * recog.h, genoutput.c, optabs.c: Revert last patch.
2311 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2313         PR target/48090
2314         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
2316 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
2318         * recog.h (insn_operand_data): Add an "allows_mem" field.
2319         * genoutput.c (output_operand_data): Initialize it.
2320         * optabs.c (maybe_legitimize_operand_same_code): New function.
2321         (maybe_legitimize_operand): Use it when matching the original
2322         op->value.
2324 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
2326         * genpreds.c (process_define_predicate): Move most processing
2327         to gensupport.c.  Continue to validate the expression.
2328         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
2329         (process_define_predicate): Move processing to gensupport.c.
2330         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
2331         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
2332         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
2333         argument.
2334         (valid_predicate_name_p): New function, split out from old
2335         genpreds.c:process_define_predicate.
2336         (process_define_predicate): New function, combining code from
2337         old genpreds.c and genrecog.c functions.
2338         (process_rtx): Call it for DEFINE_PREDICATE and
2339         DEFINE_SPECIAL_PREDICATE.
2341 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
2343         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
2344         size of a '%A' memory reference.
2345         (T_DREG, T_QREG): New neon_builtin_type_bits.
2346         (arm_init_neon_builtins): Assert that the load and store operands
2347         are neon_struct_operands.
2348         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
2349         (NEON_ARG_MEMORY): New builtin_arg.
2350         (neon_dereference_pointer): New function.
2351         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
2352         Handle NEON_ARG_MEMORY.
2353         (arm_expand_neon_builtin): Update after above interface changes.
2354         Use NEON_ARG_MEMORY for loads and stores.
2355         * config/arm/predicates.md (neon_struct_operand): New predicate.
2356         * config/arm/iterators.md (V_two_elem): Tweak formatting.
2357         (V_three_elem): Use BLKmode for accesses that have no associated mode.
2358         (V_four_elem): Tweak formatting.
2359         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
2360         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
2361         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
2362         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
2363         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
2364         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
2365         (neon_vst4<mode>): Replace pointer operand with a memory operand.
2366         Use %A in the output template.
2367         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
2368         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
2369         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
2370         the width of the memory access.  Remove post-increment.
2371         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
2373 2011-04-12  Nick Clifton  <nickc@redhat.com>
2375         * config/v850/v850.c (expand_prologue): Do not use the CALLT
2376         instruction for interrupt handlers if the target is the basic V850
2377         architecture.
2378         (expand_epilogue): Likewise.
2380 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2382         PR rtl-optimization/48549
2383         * combine.c (propagate_for_debug): Also stop after BB_END of
2384         this_basic_block.  Process LAST and just stop processing after it.
2385         (combine_instructions): If last_combined_insn has been deleted,
2386         set last_combined_insn to its PREV_INSN.
2388 2011-04-12  Richard Guenther  <rguenther@suse.de>
2390         PR tree-optimization/46076
2391         * gimple.h (struct gimple_statement_call): Add fntype field.
2392         (gimple_call_fntype): Adjust.
2393         (gimple_call_set_fntype): New function.
2394         * gimple.c (gimple_build_call_1): Set the call function type.
2395         * gimplify.c (gimplify_call_expr): Preserve the function
2396         type the frontend used for the call.
2397         (gimplify_modify_expr): Likewise.
2398         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
2399         function type.
2400         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
2401         function type.
2402         * tree-ssa.c (useless_type_conversion_p): Function pointer
2403         conversions are useless.
2405 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2407         * cgraph.h (cgraph_node): Remove function declaration.
2408         (cgraph_create_node): Declare.
2409         (cgraph_get_create_node): Likewise.
2410         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
2411         Updated all callers.
2412         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
2413         the decl does not already exist.  Call cgraph_get_create_node instead
2414         of cgraph_node.
2415         (cgraph_get_create_node): New function.
2416         (cgraph_same_body_alias): Update comment.
2417         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
2418         assert it does not return NULL.
2419         (cgraph_update_edges_for_call_stmt): Likewise.
2420         (cgraph_clone_edge): Likewise.
2421         (cgraph_create_virtual_clone): Likewise.
2422         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
2423         instead of cgraph_node.
2424         (cgraph_add_new_function): Call cgraph_create_node or
2425         cgraph_get_create_node instead of cgraph_node.
2426         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
2427         instead of cgraph_node.
2428         (record_eh_tables): Likewise.
2429         (mark_address): Likewise.
2430         (mark_load): Likewise.
2431         (build_cgraph_edges): Call cgraph_get_create_node instead
2432         of cgraph_node.
2433         (rebuild_cgraph_edges): Likewise.
2434         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
2435         instead of cgraph_node.
2436         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
2437         cgraph_node.
2438         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
2439         cgraph_create_node instead of cgraph_node.
2440         * c-decl.c (finish_function): Call cgraph_get_create_node instead
2441         of cgraph_node.
2442         * lto-cgraph.c (input_node): Likewise.
2443         * lto-streamer-in.c (input_function): Likewise.
2444         * varasm.c (mark_decl_referenced): Likewise.
2445         (assemble_alias): Likewise.
2447 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2449         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
2450         instead of cgraph_node and assert it does not return NULL.
2451         * lto-streamer-in.c (lto_read_body): Likewise.
2452         * omp-low.c (new_omp_context): Likewise.
2453         (create_task_copyfn): Likewise.
2454         * tree-emutls.c (lower_emutls_function_body): Likewise.
2455         * matrix-reorg.c (transform_allocation_sites): Likewise.
2457 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2459         PR c/48552
2460         * c-typeck.c (build_asm_expr): Error out on attempts to use
2461         void type outputs or inputs for constraints that allow reg or
2462         don't allow memory.
2464 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
2465             Richard Earnshaw  <rearnsha@arm.com>
2467         PR target/48250
2468         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
2469         to use sign-magnitude offsets. Reject unsupported unaligned
2470         cases. Add detailed description in comments.
2471         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
2472         condition from TARGET_32BIT to TARGET_ARM.
2474 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
2476         * tree.h (struct typed_tree): New.
2477         (struct tree_common): Include it instead of tree_base.
2478         (TREE_TYPE): Update for new location of type field.
2479         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
2480         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
2481         (union tree_node): Add typed field.
2482         * treestruct.def (TS_TYPED): New.
2483         * lto-streamer.c (check_handled_ts_structures): Handle it.
2484         * tree.c (MARK_TS_TYPED): New macro.
2485         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
2487 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2489         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
2490         (force_nonfallthru): Do not alter the loop nest if no basic block
2491         was created.
2493 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2495         * config/i386/sse.md (VI): New mode iterator.
2496         (SSEMODEI): Remove.
2497         (AVX256MODEI): Ditto.
2498         (AVXMODEF4P): Ditto.
2499         (avxvecpsmode): Ditto.
2500         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
2501         (sse2_andnot<mode>3): New expander.
2502         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
2503         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
2504         (<any_logic:code><mode>3): Use VI mode iterator.
2505         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
2506         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
2507         (*andnottf3): Handle AVX three-operand constraints.
2508         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
2510 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2511             Robert Millan  <rmh@gnu.org>
2513         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
2514         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
2515         GNU_USER_DYNAMIC_LINKER64): Define.
2516         (REG_NAME): Don't undefine.
2517         (MD_UNWIND_SUPPORT): Undefine.
2518         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
2519         (REG_NAME): Don't undefine.
2520         (MD_UNWIND_SUPPORT): Undefine.
2521         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
2523 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2525         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2526         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2528 2011-04-11  Xinliang David Li  <davidxl@google.com>
2530         * value-profile.c (check_ic_target): New function.
2531         (gimple_ic_transform): Sanity check indirect call target.
2532         * gimple-low.c (gimple_check_call_args): Interface change.
2533         (gimple_check_call_matching_types): New function.
2534         * tree-inline.c (tree_can_inline_p): Call new function.
2536 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
2538         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2539         tree-pretty-print.h & realmpfr.h.
2541 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
2543         PR middle-end/48464
2544         * ira.c (setup_pressure_classes): Fix typo in loop condition.
2545         (setup_allocno_and_important_classes): Ditto.
2547 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2549         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2550         GNU_USER_DYNAMIC_LINKER.
2551         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2552         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2553         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2554         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2555         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2556         GNU_USER_TARGET_OS_CPP_BUILTINS.
2557         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2558         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2559         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2560         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2561         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2562         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2563         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2564         GNU_USER_TARGET_OS_CPP_BUILTINS.
2565         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2566         GNU_USER_DYNAMIC_LINKER.
2567         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2568         GNU_USER_TARGET_OS_CPP_BUILTINS.
2569         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2570         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2571         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2572         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2573         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2574         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2575         GNU_USER_DYNAMIC_LINKER64): Remove.
2576         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2577         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2578         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2579         GNU_USER_DYNAMIC_LINKER.
2580         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2581         GNU_USER_TARGET_OS_CPP_BUILTINS.
2582         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2583         GNU_USER_TARGET_OS_CPP_BUILTINS.
2584         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2585         to GNU_USER_TARGET_OS_CPP_BUILTINS.
2586         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2587         GNU_USER_TARGET_OS_CPP_BUILTINS.
2588         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2589         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2590         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2591         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2592         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2593         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2594         GNU_USER_DYNAMIC_LINKER.
2595         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2596         GNU_USER_TARGET_OS_CPP_BUILTINS.
2597         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2598         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2599         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2600         GNU_USER_DYNAMIC_LINKER.
2601         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2602         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2603         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2604         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2605         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2606         GNU_USER_DYNAMIC_LINKER.
2607         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2608         GNU_USER_DYNAMIC_LINKERN32.
2609         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2610         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
2611         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
2612         GNU_USER_DYNAMIC_LINKER32.
2613         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2614         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2615         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2616         GNU_USER_DYNAMIC_LINKER.
2617         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2618         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2619         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2620         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2621         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2622         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2623         GNU_USER_DYNAMIC_LINKER32.
2624         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2625         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2626         GNU_USER_DYNAMIC_LINKER.
2627         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2628         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2629         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2630         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
2631         GNU_USER_DYNAMIC_LINKER64.
2632         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2633         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2634         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2635         GNU_USER_DYNAMIC_LINKER.
2636         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2637         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2638         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2639         GNU_USER_DYNAMIC_LINKER.
2640         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2641         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2642         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2643         GNU_USER_DYNAMIC_LINKER32.
2644         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2645         GNU_USER_DYNAMIC_LINKER64.
2646         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2647         GNU_USER_DYNAMIC_LINKER64.
2648         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2649         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2650         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2651         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2652         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2654 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2656         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
2657         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2658         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2659         GNU_USER_DYNAMIC_LINKER.
2660         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2661         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
2662         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2663         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2664         GNU_USER_DYNAMIC_LINKER64.
2665         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2666         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2667         GNU_USER_LINK_EMULATION.
2668         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2669         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2670         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2671         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2672         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2673         CPP_SPEC, CC1_SPEC): Remove.
2674         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2675         (GNU_USER_DYNAMIC_LINKER): Define.
2676         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2677         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2678         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2679         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2680         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2681         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2682         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2683         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2684         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2685         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2686         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2687         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2688         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2689         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2690         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2691         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2692         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2693         GNU_USER_DYNAMIC_LINKER.
2694         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2695         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2696         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2697         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2698         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2699         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2700         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2701         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2702         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2703         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2705 2011-04-11  Kai Tietz  <ktietz@redhat.com>
2707         PR target/9601
2708         PR target/11772
2709         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2710         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2711         comment.
2712         (ix86_is_msabi_thiscall): Removed.
2713         (ix86_is_type_thiscall): Likewise.
2714         (ix86_get_callcvt): New function.
2715         (ix86_comp_type_attributes): Simplify check.
2716         (ix86_function_regparm): Use ix86_get_callcvt for calling
2717         convention attribute checks.
2718         (ix86_return_pops_args): Likewise.
2719         (ix86_static_chain): Likewise.
2720         (x86_this_parameter): Likewise.
2721         (x86_output_mi_thunk): Likewise.
2722         (ix86_function_type_abi): Optimize check for types without attributes.
2723         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2724         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2725         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2726         by flag-values.
2727         (IX86_BASE_CALLCVT): Helper macro.
2728         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2729         Use ix86_get_callcvt for calling convention attribute checks and avoid
2730         symbol-decoration for stdcall in TARGET_RTD case.
2731         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2732         Likewise.
2733         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2734         for declaration.
2736 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2738         * config/i386/sse.md (VI_128): New mode iterator.
2739         (VI12_128): Rename from SSEMODE12.
2740         (VI14_128): Rename from SSEMODE14.
2741         (VI124_128): New mode iterator.
2742         (VI24_128): Rename from SSEMODE248.
2743         (VI248_128): Rename from SSEMODE248.
2744         (SSEMODE124C8): Remove.
2745         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2746         (*sse2_<plusminus_insn><mode>3): Merge with
2747         *avx_<plusminus_insn><mode>3.
2748         (*mulv8hi3): Merge with *avx_mulv8hi3.
2749         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2750         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2751         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2752         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2753         (ashr<mode>3): Merge with *avx_ashr<mode>3.
2754         (lshr<mode>3): Merge with *avx_lshr<mode>3.
2755         (ashl<mode>3): Merge with *avx_ashl<mode>3.
2756         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2757         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2758         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2759         (*<smaxmin:code>v8hi3): Ditto.
2760         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2761         (*<smaxmin:code>v16qi3): Ditto.
2762         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2763         (*sse2_eq<mode>3): Ditto.
2764         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2765         (*sse2_gt<mode>3): Ditto.
2766         (vcondv2di): Split out of vcond<mode>.
2767         (vconduv2di): Split out of vcondu<mode>.
2769 2011-04-11  Richard Guenther  <rguenther@suse.de>
2771         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2772         before calling tree_low_cst.
2774 2011-04-11  Richard Guenther  <rguenther@suse.de>
2776         * stor-layout.c (layout_type): Compute all array index size operations
2777         in the original type.
2778         (initialize_sizetypes): Add comment.
2779         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2781 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2783         * common.opt (Tbss=, Tdata=, Ttext=): New options.
2785 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2787         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2788         of cgraph_node, handle NULL return value.
2789         (cgraph_global_info): Likewise.
2790         (cgraph_rtl_info): Likewise.
2791         * tree-inline.c (estimate_num_insns): Likewise.
2792         * gimplify.c (unshare_body): Likewise.
2793         (unvisit_body): Likewise.
2794         (gimplify_body): Likewise.
2795         * predict.c (optimize_function_for_size_p): Likewise.
2796         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2797         (call_may_clobber_ref_p_1): Likewise.
2798         * varasm.c (function_section_1): Likewise.
2799         (assemble_start_function): Likewise.
2801 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2803         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2804         of cgraph_node.
2805         * final.c (rest_of_clean_state): Likewise.
2806         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2807         * passes.c (pass_init_dump_file): Likewise.
2808         (execute_all_ipa_transforms): Likewise.
2809         (function_called_by_processed_nodes_p): Likewise.
2810         * predict.c (maybe_hot_frequency_p): Likewise.
2811         (probably_never_executed_bb_p): Likewise.
2812         (compute_function_frequency): Likewise.
2813         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2814         (unnest_nesting_tree_1): Likewise.
2815         (lower_nested_functions): Likewise.
2816         * tree-optimize.c (execute_fixup_cfg): Likewise.
2817         (tree_rest_of_compilation): Likewise.
2818         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2819         * tree-sra.c (ipa_early_sra): Likewise.
2820         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2821         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2822         * ipa.c (record_cdtor_fn): Likewise.
2823         * ipa-inline.c (cgraph_early_inlining): Likewise.
2824         (compute_inline_parameters_for_current): Likewise.
2825         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2826         * ipa-pure-const.c (local_pure_const): Likewise.
2827         * ipa-split.c (split_function): Likewise.
2828         (execute_split_functions): Likewise.
2829         * cgraphbuild.c (build_cgraph_edges): Likewise.
2830         (rebuild_cgraph_edges): Likewise.
2831         (cgraph_rebuild_references): Likewise.
2832         (remove_cgraph_callee_edges): Likewise.
2833         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2834         (verify_cgraph_node): Likewise.
2835         (cgraph_analyze_functions): Likewise.
2836         (cgraph_preserve_function_body_p): Likewise.
2837         (save_inline_function_body): Likewise.
2838         (save_inline_function_body): Likewise.
2839         * tree-inline.c (copy_bb): Likewise.
2840         (optimize_inline_calls): Likewise.
2842 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2844         PR tree-optimization/48195
2845         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2846         ipa_check_create_edge_args.
2847         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2848         ipa_check_create_edge_args.
2849         * ipa-inline.c (inline_generate_summary): Do not call
2850         ipa_check_create_node_params and ipa_check_create_edge_args.
2851         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2852         ipa_check_create_edge_args.
2854 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
2856         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2857         instead of loop.
2858         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2859         * function.c (record_hard_reg_sets): Likewise.
2860         * ira.c (compute_regs_asm_clobbered): Likewise.
2861         * sched-deps.c (sched_analyze_1): Likewise.
2862         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2864 2011-04-09  Xinliang David Li  <davidxl@google.com>
2866         PR tree-optimization/PR48484
2867         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2868         has_valid_pred lazily
2870 2011-04-09  Duncan Sands  <baldrick@free.fr>
2872         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2874 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2876         * combine.c (combine_validate_cost): Adjust comments.  Set registered
2877         cost of I0 to zero at the end, if any.
2879 2011-04-08  Xinliang David Li  <davidxl@google.com>
2881         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2882         to insane profile data.
2884 2011-04-08  Xinliang David Li  <davidxl@google.com>
2886         * ipa-cp.c (ipcp_update_profiling): Correct
2887          negative scale factor due to insane profile data.
2889 2011-04-08  Xinliang David Li  <davidxl@google.com>
2891         * final.c (dump_basic_block_info): New function.
2892         (final): Dump basic block.
2893         (final_scan_insn): Remove old dump.
2895 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2897         PR target/47829
2898         * config.gcc (i386-*-freebsd): Disable unwind table generation for
2899         crtbegin/crtend.
2901 2011-04-08  Michael Matz  <matz@suse.de>
2903         PR middle-end/48389
2904         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2905         functions.
2906         (rebuild_jump_labels): Call rebuild_jump_labels_1.
2907         * rtl.h (rebuild_jump_labels_chain): Declare.
2908         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2909         insns inserted on edges.
2911 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
2913         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2914         * config/arm/arm-arches.def: New.
2915         * config/arm/arm-opts.h: New.
2916         * config/arm/genopt.sh: New.
2917         * config/arm/arm-tables.opt: New (generated).
2918         * config/arm/arm.c (arm_handle_option, arm_target_help,
2919         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2920         (all_architectures): Get most table contents from arm-arches.def.
2921         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2922         arm_selected_tune here.
2923         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2924         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2925         (march=, mcpu=, mtune=): Use Enum and Var.
2926         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2927         (arm.o): Update dependencies.
2929 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
2931         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2932         of header_file.
2933         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2934         (write_typed_alloc_defns): Likewise.
2935         (main): Calls write_typed_alloc_defns with output_header.
2937 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
2939         PR inline-asm/48435
2940         * ira-color.c (setup_profitable_hard_regs): Add comments.
2941         Don't take prohibited hard regs into account.
2942         (setup_conflict_profitable_regs): Rename to
2943         get_conflict_profitable_regs.
2944         (check_hard_reg_p): Check prohibited hard regs.
2946 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
2948         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2949         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2950         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2952 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2954         PR target/48366
2955         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2956         move from floating point to shift amount register.
2957         (emit_move_sequence): Remove secondary reload support for floating
2958         point to shift amount amount register copies.
2959         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2960         amount register copies.
2961         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2962         register, return false if mode isn't a scalar integer mode.
2963         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2965 2011-04-08  Richard Guenther  <rguenther@suse.de>
2967         * gimple.c (gimple_call_flags): Remove kludge.
2969 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2971         * sel-sched.c (sel_region_init): Move call to
2972         sel_setup_region_sched_flags after setup_current_loop_nest.
2974 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
2976         PR rtl-optimization/48272
2977         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2978         init_insn_reg_pressure_info.  Adjust a caller.
2979         * sched-int.h (init_insn_reg_pressure_info): Declare.
2980         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2981         when sched-pressure is enabled.
2983 2011-04-08  Richard Guenther  <rguenther@suse.de>
2985         * gimple.c (gimple_set_modified): Do not queue calls to
2986         MODIFIED_NORETURN_CALLS here ...
2987         * tree-ssa-operands.c (update_stmt_operands): ... but here.
2989 2011-04-08  Richard Guenther  <rguenther@suse.de>
2991         PR lto/48467
2992         * toplev.c (lang_dependent_init): Do not open asm_out_file
2993         in WPA mode, nor perform debug machinery initialization.
2994         (finalize): Do not unlink asm_out_file in WPA mode.
2996 2011-04-08  Richard Guenther  <rguenther@suse.de>
2998         * gimple.h (gimple_call_fntype): New function.
2999         (gimple_call_return_type): Use it.
3000         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
3001         * gimple-low.c (gimple_check_call_args): Likewise.
3002         * gimple.c (gimple_call_flags): Likewise.
3003         (gimple_call_arg_flags): Likewise.
3004         (gimple_call_return_flags): Likewise.
3005         * tree-cfg.c (verify_gimple_call): Likewise.
3006         (do_warn_unused_result): Likewise.
3007         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
3008         * value-prof.c (gimple_ic_transform): Fix fndecl check.
3010 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
3012         PR rtl-optimization/48235
3013         * sel-sched.c (code_motion_process_successors): Recompute the last
3014         insn in basic block if control flow changed.
3015         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
3016         Update condition for ilist_remove.
3018 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
3020         PR rtl-optimization/48302
3021         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
3022         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
3023         it to record added preheader blocks.
3024         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
3025         on to sel_add_loop_preheaders.
3026         (sel_region_init): Move call to setup_current_loop_nest after
3027         sel_init_bbs.
3029 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
3031         PR target/48273
3032         * cfgloop.h (loop_has_exit_edges): New helper.
3033         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
3034         non-clonable.
3035         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
3036         that have no exit edges.
3038 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
3040         PR rtl-optimization/48442
3041         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
3042         all callers.  Adjust assert.
3044 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
3046         PR tree-optimization/48377
3047         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
3048         is_packed to true even for types with smaller TYPE_ALIGN than
3049         TYPE_SIZE.
3051 2011-04-08  Richard Guenther  <rguenther@suse.de>
3053         PR bootstrap/48513
3054         * doc/tm.texi: Re-generate.
3056 2011-04-08  Wei Guozhi  <carrot@google.com>
3058         PR target/47855
3059         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
3060         * config/arm/arm.c (arm_attr_length_push_multi): New function.
3061         * config/arm/arm.md (*push_multi): Change the length computation to
3062         call a C function.
3064 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
3066         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
3067         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
3068         * doc/tm.texi: Regenerate.
3069         * system.h (ASM_OUTPUT_BSS): Poison.
3070         * varasm.c (asm_output_bss): Remove function.
3071         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
3073         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
3074         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
3075         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
3076         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3077         Likewise.
3078         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3079         Likewise.
3080         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3081         Likewise.
3082         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3084 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
3086         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
3087         EnumValue lines.
3089 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
3091         * config/m68k/m68k.c (m68k_handle_option): Don't handle
3092         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
3093         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
3094         OPT_mcpu32.
3095         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3096         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
3097         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
3098         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
3099         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
3100         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
3101         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
3102         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
3103         options.  Don't map other m68k options manually.  Don't handle
3104         old-style options as canonical.
3105         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
3106         * doc/install.texi (m68k-*-*): Document binutils version requirement.
3108 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3110         * basic-block.h (force_nonfallthru): Move to...
3111         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
3112         (force_nonfallthru): ...here.
3113         * cfghooks.c (force_nonfallthru): New function.
3114         * cfgrtl.c (force_nonfallthru): Rename into...
3115         (rtl_force_nonfallthru): ...this.
3116         (commit_one_edge_insertion): Do not set AUX field.
3117         (commit_edge_insertions): Do not discover new basic blocks.
3118         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
3119         (cfg_layout_rtl_cfg_hooks): Likewise.
3120         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
3121         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
3122         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
3124 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
3126         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
3127         Remove macros.
3129 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
3131         * config/i386/sse.md: Update copyright year.
3132         (avxcvtvecmode): Remove.
3133         (sse_movhlps): Merge with *avx_movhlps.
3134         (sse_movlhps): Merge with *avx_movlhps.
3135         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
3136         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
3137         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
3138         (sse_loadhps): Merge with *avx_loadhps.
3139         (sse_storelps): Merge with *avx_storelps.
3140         (sse_loadlps): Merge with *avx_loadlps.
3141         (sse_movss): Merge with *avx_movss.
3142         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
3143         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
3144         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
3145         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
3146         (vec_set<mode>_0): Ditto.
3147         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
3148         (sse4_1_insertps): Merge with *avx_insertps.
3149         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
3150         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
3151         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
3152         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
3153         (sse2_storehpd): Merge with *avx_storehpd.
3154         (sse2_loadhpd): Merge with *avx_loadhpd.
3155         (sse2_loadlpd): Merge with *avx_loadlpd.
3156         (sse2_movsd): Merge with *avx_movsd.
3157         (*vec_concatv2df): Merge with *vec_concatv2df.
3159 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
3161         PR debug/48343
3162         * combine.c (combine_instructions): Add last_combined_insn,
3163         update it if insn is after it, pass it to all try_combine calls.
3164         (try_combine): Add last_combined_insn parameter, pass it instead of
3165         i3 to propagate_for_debug.
3167 2011-04-07  Nick Clifton  <nickc@redhat.com>
3169         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
3170         to handle MDR <-> data register transfers.
3171         (movhi_internal): Likewise.
3173 2011-04-07  Alan Modra  <amodra@gmail.com>
3175         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
3176         previous stack info.
3178 2011-04-07  Tom de Vries  <tom@codesourcery.com>
3180         PR target/43920
3181         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
3182         flow_find_cross_jump.  Swap variables to implement backward replacement.
3183         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
3185 2011-04-07  Tom de Vries  <tom@codesourcery.com>
3187         PR target/43920
3188         * cfgcleanup.c (walk_to_nondebug_insn): New function.
3189         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
3190         and bb2.
3191         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
3192         src1 or src2.  Redirect edges to the last basic block.  Update
3193         frequency and count on multiple basic blocks in case of fallthru.
3195 2011-04-07  Tom de Vries  <tom@codesourcery.com>
3197         PR target/43920
3198         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
3199         function.
3200         (old_insns_match_p): Change return type.  Replace return false/true
3201         with return dir_none/dir_both.  Use can_replace_by.
3202         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
3203         direction from dir_p.  Register replacement direction in dir, last_dir
3204         and afterlast_dir.  Handle new return type of old_insns_match_p using
3205         merge_dir.  Return replacement direction in dir_p.
3206         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
3207         return type of old_insns_match_p.
3208         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
3209         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
3210         flow_find_cross_jump.
3211         * basic-block.h (enum replace_direction): New type.
3212         (flow_find_cross_jump): Add parameter to declaration.
3214 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
3216         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
3217         (AVXMODEDCVTPS2DQ): Ditto.
3218         (VEC_FLOAT_MODE): Ditto.
3219         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
3220         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
3221         (<any_logic:code><mode>3): Use VF mode iterator.
3222         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
3223         Use VF mode iterator.
3224         (copysign<mode>3): Use VF mode iterator.
3225         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
3226         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
3227         (*<any_logic:code><MODEF:mode>3): Merge with
3228         *avx_<any_logic:code><MODEF:mode>3.
3229         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
3230         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
3231         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
3232         (avx_cvtdq2ps<avxmodesuffix>): Remove.
3233         (sse2_cvtdq2ps): Use %v modifier.
3234         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
3235         (avx_cvtps2dq<avxmodesuffix>): Remove.
3236         (sse2_cvtps2dq): Use %v modifier.
3237         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
3238         (avx_cvttps2dq<avxmodesuffix>): Remove.
3239         (sse2_cvttps2dq): Use %v modifier.
3240         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
3241         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
3242         (sse2_cvtsd2siq): Fix insn template.
3243         (sse2_cvtsd2siq_2): Ditto.
3244         (sse2_cvttsd2siq): Ditto.
3245         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
3246         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
3248 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
3250         * gcov-io.c: Use GCC Runtime Library Exception.
3252 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
3254         PR debug/48466
3255         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
3256         as base_reg whatever register reg has been eliminated to, instead
3257         of hardcoding STACK_POINTER_REGNUM.
3259 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
3261         * doc/tm.texi.in: Document C target hooks as separate from general
3262         target hooks.
3263         * doc/tm.texi: Regenerate.
3264         * genhooks.c (struct hook_desc): Add docname field.
3265         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
3266         docname field.
3267         (hook_array): Include c-target.def.
3268         (emit_documentation): Use docname field in output.
3269         (emit_init_macros): Take docname argument.  Only emit definitions
3270         for hooks matching docname.
3271         (main): Expect additional arguments in all cases.  Pass argument
3272         to emit_init_macros.
3273         * target.def: Move initial macro definitions and comments to
3274         target-hooks-macros.h.
3275         (gcc_targetcm): Move to c-family/c-target.def.
3276         * target.h (targetcm): Move declaration to c-family/c-target.h.
3277         * targhooks.c (default_handle_c_option): Move to
3278         c-family/c-opts.c.
3279         * targhooks.h (default_handle_c_option): Move declaration to
3280         c-family/c-common.h.
3281         * target-hooks-macros.h: New file.
3282         * config.gcc (target_has_targetcm): Define and use to add to
3283         c_target_objs and cxx_target_objs.
3284         * config/default-c.c: New file.
3285         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
3286         of target.h and target-def.h.
3287         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
3288         (darwin_objc_construct_string, darwin_cfstring_ref_p,
3289         darwin_check_cfstring_format_arg): Make static.
3290         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3291         TARGET_STRING_OBJECT_REF_TYPE_P,
3292         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
3293         * config/darwin-protos.h (darwin_objc_construct_string,
3294         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
3295         declare.
3296         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3297         TARGET_STRING_OBJECT_REF_TYPE_P,
3298         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
3299         * config/t-darwin (darwin-c.o): Update dependencies.
3300         * system.h (TARGET_HAS_TARGETCM): Poison.
3301         * Makefile.in (TARGET_H): Update.
3302         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
3303         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
3304         (default-c.o): New target.
3305         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
3306         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
3307         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
3308         c-target.def.
3309         (build/genhooks.o): Update dependencies.
3311 2011-04-06  Richard Guenther  <rguenther@suse.de>
3313         * ipa-inline.c (enum inlining_mode): Remove.
3314         (cgraph_flatten): Use some other token.
3315         (cgraph_edge_early_inlinable_p): New function, split out from ...
3316         (cgraph_perform_always_inlining): New function, split out from ...
3317         (cgraph_decide_inlining_incrementally): ... here.
3318         (cgraph_mark_inline_edge): Adjust.
3319         (cgraph_early_inlining): Re-structure.
3320         (pass_early_inline): Require SSA form.
3322 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
3323             Julian Brown  <julian@codesourcery.com>
3324             Mark Shinwell  <shinwell@codesourcery.com>
3326         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
3327         LO_REGS only for Thumb-1.
3328         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
3329         be used in short instructions when optimising for size on Thumb-2.
3331 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3333         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
3334         associated with user returns to be preserved.
3336 2011-04-06  Tristan Gingold  <gingold@adacore.com>
3338         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
3339         symbol_queue_size, DBXOUT_DECR_NESTING,
3340         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
3341         if XCOFF_DEBUGGING_INFO.
3343 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
3345         * config/i386/i386.md (attribute isa): New.
3346         (attribute enabled): New.
3347         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
3348         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
3349         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
3350         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
3351         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
3352         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3353         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
3354         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
3356         * config/i386/sse.md (VF): New mode iterator.
3357         (VF1): Ditto.
3358         (VF2): Ditto.
3359         (VF_128): Ditto.
3360         (SSEMODEF4): Remove.
3361         (attribute sse): Handle V8SF and V4DF modes.
3362         (<absneg:code><mode>2): Use VF mode iterator.
3363         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
3364         mode iterator.
3365         (<plusminus_insn><mode>3): Use VF mode iterator.
3366         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3367         Use VF mode iterator.
3368         (<sse>_vm<plusminus_insn><mode>3): Merge with
3369         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
3370         (mul<mode>3): Use VF mode iterator.
3371         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
3372         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
3373         mode iterator.
3374         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
3375         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
3376         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
3377         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
3378         mode iterator.
3379         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
3380         Use VF1 mode iterator.
3381         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
3382         (sqrt<VF2:mode>2): New expander.
3383         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
3384         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
3385         and sqrtv2df2.  Use VF mode iterator.
3386         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
3387         mode iterator.
3388         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
3389         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
3390         Use VF1 mode iterator.
3391         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
3392         (<smaxmin:code><mode>3): Use VF mode iterator.
3393         (*<smaxmin:code><mode>3_finite): Merge with
3394         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
3395         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3396         (<sse>_vm<smaxmin:code><mode>2): Merge with
3397         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
3398         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
3399         mode iterator.
3400         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
3401         mode iterator.
3402         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
3403         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
3404         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
3405         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
3406         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
3407         VF mode iterator.
3408         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
3409         Use VF_128 mode iterator.
3410         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
3411         mode iterator.
3412         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
3413         VF_128 mode iterator.
3414         (vcond<mode>): Use VF mode iterator.
3415         * config/i386/predicates.md (sse_comparison_operator): Merge with
3416         avx_comparison_float_operator.  Do not declare as special_predicate.
3417         * config/i386/i386.c (struct builtin_description): Update for renamed
3418         compare patterns.
3419         (ix86_expand_args_builtin): Ditto.
3420         (ix86_expand_sse_compare_mask): Ditto.
3422 2011-04-06  Richard Guenther  <rguenther@suse.de>
3424         * tree-inline.c (estimate_num_insns): For calls simply account
3425         for all passed arguments and a used return value.
3427 2011-04-06  Richard Guenther  <rguenther@suse.de>
3429         PR tree-optimization/47663
3430         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
3431         call_stmt_time fields.
3432         (cgraph_edge_inlinable_p): Declare.
3433         (cgraph_edge_recursive_p): New inline function.
3434         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
3435         (cgraph_clone_edge): Copy it.
3436         * ipa-inline.c (cgraph_estimate_edge_time): New function.
3437         Account for call stmt time.
3438         (cgraph_estimate_time_after_inlining): Take edge argument.
3439         (cgraph_estimate_edge_growth): Account call stmt size.
3440         (cgraph_estimate_size_after_inlining): Take edge argument.
3441         (cgraph_mark_inline_edge): Adjust.
3442         (cgraph_check_inline_limits): Likewise.
3443         (cgraph_recursive_inlining_p): Remove.
3444         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
3445         (cgraph_decide_recursive_inlining): Take edge argument and
3446         adjust.
3447         (cgraph_decide_inlining_of_small_functions): Do not avoid
3448         diags for recursive inlining here.
3449         (cgraph_flatten): Adjust.
3450         (cgraph_decide_inlining_incrementally): Likewise.
3451         (estimate_function_body_sizes): Remove call cost handling.
3452         (compute_inline_parameters): Initialize caller edge call costs.
3453         (cgraph_estimate_edge_growth): New function.
3454         (cgraph_estimate_growth): Use it.
3455         (cgraph_edge_badness): Likewise.
3456         (cgraph_check_inline_limits): Take an edge argument.
3457         (cgraph_decide_inlining_of_small_functions): Adjust.
3458         (cgraph_decide_inlining): Likewise.
3459         * tree-inline.c (estimate_num_insns): Only account for call
3460         return value if it is used.
3461         (expand_call_inline): Avoid diagnostics on recursive inline
3462         functions here.
3463         * lto-cgraph.c (lto_output_edge): Output edge call costs.
3464         (input_edge): Input edge call costs.
3466 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3468         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
3470 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
3472         * doc/invoke.texi (Spec Files): Fix typo.
3474 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3476         * profile.c (branch_prob): Move declaration of local variable.  Remove
3477         obsolete ??? comment.  Expand the location explicitly instead of using
3478         the LOCATION_FILE and LOCATION_LINE macros.
3480 2011-04-06  Wei Guozhi  <carrot@google.com>
3482         PR target/47855
3483         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
3484         (arm_cond_branch): Likewise.
3485         (arm_cond_branch_reversed): Likewise.
3486         (arm_jump): Likewise.
3487         (push_multi): Likewise.
3488         * config/arm/constraints.md (Py): New constraint.
3490 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3492         PR bootstrap/48471
3493         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
3494         Move these...
3495         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
3496         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
3497         #ifdef DBX_DEBUGGING_INFO.
3499 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
3501         PR bootstrap/48403
3502         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
3503         if old and new states differ.
3505 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3507         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
3508         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
3509         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3510         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
3511         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
3512         mcfv4e): Use Alias.
3513         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
3514         ColdFire options to -mcpu= options.
3516 2011-04-05  Jeff Law  <law@redhat.com>
3518         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
3519         check if BB is a successor of LOOP->header and return
3520         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
3522 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3524         * cprop.c (struct reg_use): Remove.
3525         (reg_use_table): Make an array of RTX.
3526         (find_used_regs, constprop_register, local_cprop_pass,
3527         bypass_block): Simplify users of reg_use_table.
3528         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
3529         on one of the uses found by find_used_regs.
3531 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3533         PR bootstrap/48469
3534         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3535         declaration.
3537 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3539         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3540         as an rtx.
3541         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3543 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3545         PR middle-end/48441
3546         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3548 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3550         * combine.c: Include obstack.h.
3551         (struct insn_link): Define.
3552         (uid_log_links): Adjust type.
3553         (FOR_EACH_LOG_LINK): New macro.
3554         (insn_link_obstack): Declare.
3555         (alloc_insn_link): Define.
3556         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
3557         type of link variables.
3558         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3559         (try_combine, record_promoted_values, distribute_notes): Likewise.
3560         (distribute_links): Likewise.  Tweak prototype.
3561         (clear_log_links): Delete.
3562         (adjust_for_new_dest): Call alloc_insn_link.
3563         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3565 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3567         * gcse.c (modify_mem_list): Convert to an array of VECs.
3568         (canon_modify_mem_list, compute_transp): Tweak formatting.
3569         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
3570         (load_killed_in_block_p): Likewise.
3571         (record_last_mem_set_info): Likewise.
3572         (clear_modify_mem_tables): Likewise.
3574 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3576         PR middle-end/48461
3577         * function.c (emit_use_return_register_into_block): Only define if
3578         HAVE_return.
3580 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
3582         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3584 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3586         * config/rx/rx-opts.h: New.
3587         * config/rx/rx.c (rx_cpu_type): Remove.
3588         (rx_handle_option): Don't assert that global structures are in
3589         use.  Access variables via opts pointer.  Defer most handling of
3590         OPT_mint_register_.  Use error_at.
3591         (rx_option_override): Handle deferred OPT_mint_register_ here.
3592         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3593         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3594         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3595         (rx_cpu_types): New Enum and EnumValue entries.
3596         (mint-register=): Use Defer and use Var accordingly.
3598 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3600         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3601         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3602         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3603         Move these...
3604         (debug_free_queue, debug_nesting, symbol_queue_index):
3605         ...and these...
3606         * dbxout.c: ...to here.  Make static.
3608 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3610         * gcse.c (modify_pair): Define.  Define a VEC of it.
3611         (canon_modify_mem_list): Convert to an array of VECs.
3612         (free_insn_expr_list_list): Delete.
3613         (clear_modify_mem_tables): Call VEC_free instead.
3614         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3615         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3616         (canon_list_insert, compute_transp): Likewise.
3618 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3620         PR target/43920
3621         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3622         for size.
3624 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3626         PR target/43920
3627         * function.c (emit_use_return_register_into_block): New function.
3628         (thread_prologue_and_epilogue_insns): Use
3629         emit_use_return_register_into_block.
3631 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3633         PR target/43920
3634         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3635         insn.
3637 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3639         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3641 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
3643         * config/arm/arm.md (define_constants for unspec): Replace with
3644         define_c_enum.
3645         (define_constants for unspecv): Replace with define_c_enum.
3646         * config/arm/neon.md (define_constants for unspec): Replace with
3647         define_c_enum.
3649 2011-04-04  Richard Henderson  <rth@redhat.com>
3651         PR bootstrap/48400
3652         * dwarf2out.c (output_line_info): Always emit line info from
3653         at least one section.
3654         (dwarf2out_init): Create text_section_line_info here ...
3655         (set_cur_line_info_table): ... not here.
3657 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
3659         PR target/48380
3660         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3661         not called.
3663         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3665 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
3667         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3668         (expr_equiv_p): Remove.
3669         (insert_set_in_table): Look at <dest, src> pair instead of expr.
3670         (hash_scan_set): Update call to insert_set_in_table.
3671         (dump_hash_table): Dump <dest, src> pair.
3672         (lookup_set): Simplify.  Lookup <dest, src> pair.
3673         (compute_transp): Remove, fold heavily simplified code into...
3674         (compute_local_properties): ...here.  Expect COMP and TRANSP
3675         unconditionally.
3676         (find_avail_set): Take set directly from struct expr.
3677         (find_bypass-set): Likewise.
3678         (bypass_block): Likewise.
3679         (cprop_insn): Likewise.  Remove redundant INSN_P test.
3681         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3682         checks on form of COND from find_implicit_sets to here.
3683         (find_implicit_sets): Cleanup control flow. Split critical edges
3684         if it exposes implicit sets.  Allocate/resize implicit_sets as
3685         necessary.
3686         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3687         changed something.  Run df_analyze after find_implicit_sets if any
3688         edges were split.  Do not allocate implicit_sets here.
3690         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3691         (gcse_obstack): Renamed to cprop_obstack.
3692         (GNEW, GNEWVEC, GNEWVAR): Remove.
3693         (gmalloc): Remove.
3694         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3695         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3696         (gcse_alloc): Likewise, and rename to cprop_alloc.
3697         (alloc_gcse_men, free_gcse_mem): Remove.
3698         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3699         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3700         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3702         * cprop.c (oprs_not_set_p): Remove.
3703         (mark_set, mark_clobber): Remove.
3704         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3705         (reg_not_set_p): New function.
3706         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3707         (cprop_insn): Likewise.
3708         (cprop_jump): Use FOR_EACH_EDGE.
3710 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
3712         PR bootstrap/48403
3713         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3714         (rank_for_schedule): Use scheduled_insns vector instead of
3715         last_scheduled_insn.
3716         (ok_for_early_queue_removal): Likewise.
3717         (queue_to_ready): Search forward in nonscheduled_insns_begin if
3718         we have a dbg_cnt.
3719         (choose_ready): Likewise.
3720         (commit_schedule): Use VEC_iterate.
3721         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
3722         a dbg_cnt, use it and ensure the first insn is in the ready list.
3723         (haifa_sched_init): Allocate scheduled_insns.
3724         (sched_extend_ready_list): Don't allocate it; reserve space.
3725         (haifa_sched_finish): Free it.
3727 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3729         * optc-gen.awk: Always remove type from Variable entry before
3730         recording in var_seen.
3732 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
3734         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3735         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3736         call to tidy_fallthru_edges.
3738 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3740         * doc/options.texi (ToLower): Document.
3741         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3742         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3743         * opts.h (cl_option): Add cl_tolower field.
3744         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3745         arguments with lowercase strings.
3746         * config/rx/rx.opt (mcpu=): Add ToLower.
3747         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3748         argument.
3750 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3752         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3754 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3756         * config/vax/vax.c: Include reload.h.
3758 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
3760         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3761         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3762         (sparc_preferred_reload_class): New function.
3764 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
3766         PR debug/48401
3767         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3768         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3770 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
3772         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3773         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3775 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
3777         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3778         (ASM_OUTPUT_ALIGNED_BSS): Define.
3780 2011-04-03  Michael Matz  <matz@suse.de>
3782         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3783         and next_slot members.
3784         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3785         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3786         (lto_streamer_cache_append): Declare.
3787         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3788         unsigned index, remove offset parameter, ensure that we append
3789         or update existing entries.
3790         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3791         parameter, update next_slot for append.
3792         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3793         parameter.
3794         (lto_streamer_cache_insert_at): Likewise.
3795         (lto_streamer_cache_append): New function.
3796         (lto_streamer_cache_lookup): Use unsigned index.
3797         (lto_streamer_cache_get): Likewise.
3798         (lto_record_common_node): Don't test tree_node_can_be_shared.
3799         (preload_common_node): Adjust call to lto_streamer_cache_insert.
3800         (lto_streamer_cache_delete): Don't free offsets member.
3801         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3802         (lto_output_string_with_length): Use lto_output_data_stream.
3803         (lto_output_tree_header): Remove ix parameter, don't write it.
3804         (lto_output_builtin_tree): Likewise.
3805         (lto_write_tree): Adjust callers to above, don't track and write
3806         offset, write unsigned index.
3807         (output_unreferenced_globals): Don't emit all global vars.
3808         (write_global_references): Use unsigned indices.
3809         (lto_output_decl_state_refs): Likewise.
3810         (write_symbol): Likewise.
3811         * lto-streamer-in.c (lto_input_chain): Move earlier.
3812         (input_function): Use unsigned index.
3813         (input_alias_pairs): Don't read and then ignore all global vars.
3814         (lto_materialize_tree): Remove ix_p parameter, don't read index,
3815         don't pass it back, use lto_streamer_cache_append.
3816         (lto_register_var_decl_in_symtab): Use unsigned index.
3817         (lto_register_function_decl_in_symtab): Likewise.
3818         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3819         index.
3820         (lto_get_builtin_tree): Don't read index, use
3821         lto_streamer_cache_append.
3822         (lto_read_tree): Adjust call to lto_materialize_tree.
3824         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3825         don't use function calls in arguments to MIN.
3827         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3828         twice.
3830         * gimple.c (gimple_type_leader_entry): Mark deletable.
3832 2011-04-03  Alan Modra  <amodra@gmail.com>
3834         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3836 2011-04-03  Michael Matz  <matz@suse.de>
3838         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3839         an integer.
3840         * tree.h (tree_decl_non_common.vindex): Adjust comment.
3842 2011-04-03  Michael Matz  <matz@suse.de>
3844         * cgraphbuild.c (record_reference): Canonicalize constructor values.
3845         * gimple-fold.c (canonicalize_constructor_val): Accept being called
3846         without function context.
3847         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3848         current_function_decl and cfun.
3850 2011-04-03  Michael Matz  <matz@suse.de>
3852         * tree.c (decl_init_priority_insert): Don't create entry for
3853         default priority.
3854         (decl_fini_priority_insert): Ditto.
3855         (fields_compatible_p, find_compatible_field): Remove.
3856         * tree.h (fields_compatible_p, find_compatible_field): Remove.
3857         * gimple.c (gimple_compare_field_offset): Adjust block comment.
3859 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
3861         * combine.c (try_combine): Remove useless local variable.
3863 2011-04-03  Richard Guenther  <rguenther@suse.de>
3864             Ira Rosen  <ira.rosen@linaro.org>
3866         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3867         non-variable offsets and compare the remaining bases of the two
3868         accesses instead of looking for exact same data-ref.
3870 2011-04-02  Kai Tietz  <ktietz@redhat.com>
3872         PR target/48416
3873         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3875         * i386.c (ix86_is_msabi_thiscall): New helper function.
3876         (ix86_is_type_thiscall): New helper function.
3877         (ix86_comp_type_attributes): Handle thiscall for method-functions
3878         special.
3879         (init_cumulative_args): Likewise.
3880         (find_drap_reg): Likewise.
3881         (ix86_static_chain): Likewise.
3882         (x86_this_parameter): Likewise.
3883         (x86_output_mi_thunk): Likewise.
3885 2011-04-01  Olivier Hainque  <hainque@adacore.com>
3886             Nicolas Setton  <setton@adacore.com>
3887             Eric Botcazou  <ebotcazou@adacore.com>
3889         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3890         (add_gnat_descriptive_type_attribute): New function.
3891         (gen_array_type_die): Call it.
3892         (gen_enumeration_type_die): Likewise.
3893         (gen_struct_or_union_type_die): Likewise.
3894         (modified_type_die): Likewise.
3895         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3896         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3897         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3899 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3901         PR bootstrap/48148
3902         * dwarf2out.c (resolve_addr): Don't call force_decl_die
3903         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3905         Revert:
3906         2011-03-17  Richard Guenther  <rguenther@suse.de>
3908         PR bootstrap/48148
3909         * lto-cgraph.c (input_overwrite_node): Clear the abstract
3910         origin for decls in other ltrans units.
3911         (input_varpool_node): Likewise.
3913 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3915         PR middle-end/48335
3916         * expr.c (expand_assignment): Handle all possibilities
3917         if TO_RTX is CONCAT.
3918         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3919         (store_split_bit_field): If SUBREG_REG (op0) or
3920         op0 itself has smaller mode than word, return it
3921         for offset 0 and const0_rtx for out-of-bounds stores.
3922         If word is const0_rtx, skip it.
3924 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
3926         * config/h8300/h8300.c (print_operand_address): Rename to...
3927         (h8300_print_operand_address): ...this. Make static. Adjust comments.
3928         Call h8300_print_operand and h8300_print_operand_address instead of
3929         print_operand and print_operand_address. Declare.
3930         (print_operand): Renake to...
3931         (h8300_print_operand): ...this. Make static. Adjust comments.
3932         Call h8300_print_operand instead of print_operand. Declare.
3933         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3934         (h8300_register_move_cost): Likewise.
3935         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3936         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3937         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3938         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3939         * config/h8300/h8300-protos.h (print_operand): Delete.
3940         (print_operand_address): Delete.
3942 2011-04-01  Richard Henderson  <rth@redhat.com>
3944         PR 48400
3945         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3946         in strict mode before dwarf4.  Re-order tests to early out
3947         before switching sections.
3949 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
3951         * config/h8300/constraints.md: New file.
3952         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
3953         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3954         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3955         * config/h8300/predicates.md (bit_operand): Likewise.
3956         (incdec_operand): Use satisfies_constraint_M and
3957         satisfies_constraint_O.  Don't use C code block.
3958         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3959         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3960         (compute_mov_length): Use satisfies_constraint_G.
3961         (fix_bit_operand): Use satisfies_constraint_U.
3962         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3963         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3964         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3965         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3966         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3967         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3968         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3969         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3970         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3971         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3972         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3973         (EXTRA_MEMORY_CONSTRAINT): Delete.
3975 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
3976             Michael Meissner  <meissner@linux.vnet.ibm.com>
3978         PR target/48262
3979         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3980         operands, as per the specifications.
3982         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3983         (vec_extract_evenv4sf): Ditto.
3984         (vec_extract_evenv8hi): Ditto.
3985         (vec_extract_evenv16qi): Ditto.
3986         (vec_extract_oddv4si): Ditto.
3988 2011-03-31  Mark Wielaard  <mjw@redhat.com>
3990         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3991         high_pc attribute if the CU has no associated code. Only output
3992         DW_AT_entry_pc for CU if not generating strict dwarf and
3993         dwarf_version < 4.
3995 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
3997         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3998         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3999         out of ...
4000         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
4001         * final.c (final_start_function): Call the new function rather
4002         than using a NULL argument for dwarf2out_frame_debug.
4004         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
4005         that contains the prologue.
4007         * haifa-sched.c (queue_insn): New arg REASON.  All callers
4008         changed.  Print it in debugging output.
4010         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
4012         * sched-ebb.c (begin_schedule_ready): Remove second argument.
4013         Split most of the code into...
4014         (begin_move_insn): ... here.  New function.
4015         (ebb_sched_info): Add a pointer to it.
4016         * haifa-sched.c (scheduled_insns): New static variable.
4017         (sched_extend_ready_list): Allocate it.
4018         (schedule_block): Use it to record the order of scheduled insns.
4019         Perform RTL changes to move insns only after all scheduling
4020         decisions have been made.
4021         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
4022         begin_move_insn field.
4023         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
4024         * sched-int.h (struct haifa_sched_info): Remove second argument
4025         from begin_schedule_ready hook.  Add new member begin_move_insn.
4026         * sched-rgn.c (begin_schedule_ready): Remove second argument.
4027         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
4029         * haifa-sched.c (prune_ready_list): New function, broken out of
4030         schedule_block.
4031         (schedule_block): Use it.
4033 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4035         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
4037 2011-04-01  Kai Tietz  <ktietz@redhat.com>
4039         * config.gcc (*-*-mingw*): Allow as option the
4040         posix threading model.
4041         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
4042         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
4043         definition.
4044         (CPP_SPEC): Add pthread/no-pthread handling.
4045         (LIB_SPEC): Likewise.
4046         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
4047         (LIB_SPEC): Likewise.
4048         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
4049         flag to pass -pthread option for shared libgcc build.
4050         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
4051         for shared libgcc build.
4052         * config/i386/t-mingw-pthread: New file.
4053         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
4054         New define to enable use of library pthread by default.
4055         * config/i386/mingw.opt (pthread): New driver option.
4056         (no-pthread): New driver option.
4057         * config/i386/cygming.opt: Make sure trailing empty line is retained.
4058         * config/i386/mingw-w64.opt: Likewise.
4060 2011-04-01  Gary Funck <gary@intrepid.com>
4062         * c-decl.c (grokdeclarator): Fix formatting.
4064 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
4066         * expr.c (emit_block_move_via_movmem): Use n_generator_args
4067         instead of n_operands.
4068         (set_storage_via_setmem): Likewise.
4069         * optabs.c (maybe_gen_insn): Likewise.
4070         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
4071         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
4072         (mips_expand_builtin_direct): Likewise.
4073         * config/spu/spu.c (expand_builtin_args): Likewise.
4075 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
4077         * recog.h (insn_data_d): Add n_generator_args.
4078         * genoutput.c (data): Likewise.
4079         (output_insn_data): Print it.
4080         (max_opno, num_dups): Delete.
4081         (scan_operands): Just fill in "d->operand[...]".
4082         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
4084 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
4086         * gensupport.h (pattern_stats): New structure.
4087         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
4088         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
4089         (max_operand_1, max_operand_vec): Delete.
4090         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
4092 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
4094         * emit-rtl.c (emit_pattern_after_setloc): New function.
4095         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
4096         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
4097         (emit_pattern_after): New function.
4098         (emit_insn_after, emit_jump_insn_after): Call it.
4099         (emit_call_insn_after, emit_debug_insn_after): Likewise.
4100         (emit_pattern_before_setloc): New function.
4101         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
4102         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
4103         Likewise.
4104         (emit_pattern_before): New function.
4105         (emit_insn_before, emit_jump_insn_before): Call it.
4106         (emit_call_insn_before, emit_debug_insn_before): Likewise.
4108 2011-03-31  Richard Henderson  <rth@redhat.com>
4110         * dwarf2out.c (dw_separate_line_info_ref): Remove.
4111         (dw_separate_line_info_entry): Remove.
4112         (enum dw_line_info_opcode): New.
4113         (dw_line_info_entry): Use it.
4114         (dw_line_info_table, dw_line_info_table_p): New.
4115         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
4116         (line_info_table, line_info_label_num): Remove.
4117         (line_info_table_in_use): Remove.
4118         (separate_line_info_table): Remove.
4119         (separate_line_info_table_allocated): Remove.
4120         (separate_line_info_table_in_use): Remove.
4121         (LINE_INFO_TABLE_INCREMENT): Remove.
4122         (line_info_label_num): New.
4123         (cur_line_info_table): New.
4124         (text_section_line_info, cold_text_section_line_info): New.
4125         (separate_line_info): New.
4126         (SEPARATE_LINE_CODE_LABEL): Remove.
4127         (print_dwarf_line_table): Remove.
4128         (debug_dwarf): Don't dump it.
4129         (output_one_line_info_table): New.
4130         (output_line_info): Use it.
4131         (new_line_info_table): New.
4132         (set_cur_line_info_table): New.
4133         (dwarf2out_switch_text_section): Use it.
4134         (dwarf2out_begin_function): Likewise.
4135         (push_dw_line_info_entry): New.
4136         (dwarf2out_source_line): Rewrite for new line info tables.
4137         (dwarf2out_init): Remove dead initailizations.
4139 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
4141         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
4142         various flags.
4143         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
4144         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
4145         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
4146         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
4147         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
4148         * opt-functions.awk (flag_init, switch_bit_fields): New.
4149         (switch_flags): Don't handle flags moved to bit-fields.  Don't
4150         generate CL_MISSING_OK or CL_SAVE.
4151         * optc-gen.awk: Update to generate bit-field output as well as
4152         flags field.
4153         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
4154         bit-field instead of CL_REJECT_DRIVER flag.
4155         * opts-common.c (generate_canonical_option,
4156         decode_cmdline_option): Use bit-fields instead of CL_* flags.
4157         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
4158         instead of CL_REJECT_NEGATIVE flag.
4159         * toplev.c (print_switch_values): Use cl_report bit-field instead
4160         of CL_REPORT flag.
4162 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
4164         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
4165         a zero minimum index only if it is redundant.
4167 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
4169         PR rtl-optimization/48381
4170         * ira-color.c (assign_hard_reg): Use hard reg set intersection
4171         instead of ira_class_hard_reg_index for calculating conflicting
4172         hard registers.
4174 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
4176         * cprop.c: Clean up hash table building.
4177         (reg_avail_info): Remove.
4178         (oprs_available_p): Remove.
4179         (record_last_reg_set_info): Remove.
4180         (record_last_set_info): Remove.
4181         (reg_available_p): New function.
4182         (gcse_constant_p): Do not treat unfolded conditions as constants.
4183         (make_set_regs_unavailable): New function.
4184         (hash_scan_set): Simplify with new reg_available_p.
4185         (compute_hash_table_work): Traverse insns stream only once.
4186         Do not compute reg_avail_info. Traverse insns in reverse order.
4187         Record implicit sets after recording explicit sets from the block.
4189 2011-03-31  Michael Matz  <matz@suse.de>
4191         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
4193 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
4195         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
4196         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
4197         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4198         (h8300_mode_dependent_address_p): New function.
4199         (h8300_get_index): Make static.
4201 2011-03-31  Jeff Law  <law@redhat.com>
4203         * reload1.c (elimination_effects): Fix typo in recent change.
4205         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
4206         typo potentially leading to null pointer dereference.
4208         * caller-save.c (new_saved_hard_reg): Eliminate return value.
4209         (setup_save_areas): Corresponding changes to avoid useless
4210         assignments.
4212         * jump.c (reversed_comparison_code_parts): Avoid successive return
4213         statements when REVERSE_CONDITION is defined.
4215         * expr.c (expand_assignment): Avoid useless assignments.
4216         (expand_expr_real_1): Likewise.
4217         (expand_expr_real_2): Avoid useless statements.
4219         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
4221         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
4223         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
4224         statements.
4226         * stmt.c (expand_expr_stmt): Avoid useless assignment.
4228 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
4230         PR target/47109
4231         * doc/tm.texi.in (TARGET_VERSION): Remove.
4232         * doc/tm.texi: Regenerate.
4233         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
4234         * collect2.c (main): Don't use TARGET_VERSION.
4235         * mips-tdump.c (main): Don't use TARGET_VERSION.
4236         * mips-tfile.c (main): Don't use TARGET_VERSION.
4237         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
4238         * config/rs6000/vxworksae.h: Remove.
4239         * config/alpha/alpha.h (TARGET_VERSION): Remove.
4240         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
4241         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
4242         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
4243         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
4244         * config/arm/arm.h (TARGET_VERSION): Remove.
4245         * config/arm/coff.h (TARGET_VERSION): Remove.
4246         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
4247         * config/arm/elf.h (TARGET_VERSION): Remove.
4248         * config/arm/freebsd.h (TARGET_VERSION): Remove.
4249         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
4250         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
4251         * config/arm/pe.h (TARGET_VERSION): Remove.
4252         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
4253         * config/arm/semi.h (TARGET_VERSION): Remove.
4254         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
4255         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
4256         * config/arm/vxworks.h (TARGET_VERSION): Remove.
4257         * config/avr/avr.h (TARGET_VERSION): Remove.
4258         * config/bfin/bfin.h (TARGET_VERSION): Remove.
4259         * config/fr30/fr30.h (TARGET_VERSION): Remove.
4260         * config/frv/frv.h (TARGET_VERSION): Remove.
4261         * config/h8300/h8300.h (TARGET_VERSION): Remove.
4262         * config/i386/cygwin.h (TARGET_VERSION): Remove.
4263         * config/i386/darwin.h (TARGET_VERSION): Remove.
4264         * config/i386/darwin64.h (TARGET_VERSION): Remove.
4265         * config/i386/djgpp.h (TARGET_VERSION): Remove.
4266         * config/i386/freebsd.h (TARGET_VERSION): Remove.
4267         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
4268         * config/i386/gnu.h (TARGET_VERSION): Remove.
4269         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
4270         * config/i386/i386elf.h (TARGET_VERSION): Remove.
4271         * config/i386/linux.h (TARGET_VERSION): Remove.
4272         * config/i386/linux64.h (TARGET_VERSION): Remove.
4273         * config/i386/lynx.h (TARGET_VERSION): Remove.
4274         * config/i386/mingw32.h (TARGET_VERSION): Remove.
4275         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
4276         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
4277         * config/i386/netware.h (TARGET_VERSION): Remove.
4278         * config/i386/nto.h (TARGET_VERSION): Remove.
4279         * config/i386/openbsd.h (TARGET_VERSION): Remove.
4280         * config/i386/vxworks.h (TARGET_VERSION): Remove.
4281         * config/ia64/elf.h (TARGET_VERSION): Remove.
4282         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
4283         * config/ia64/hpux.h (TARGET_VERSION): Remove.
4284         * config/ia64/linux.h (TARGET_VERSION): Remove.
4285         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
4286         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
4287         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4288         * config/lm32/lm32.h (TARGET_VERSION): Remove.
4289         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
4290         * config/m32c/m32c.h (TARGET_VERSION): Remove.
4291         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
4292         * config/m32r/m32r.h (TARGET_VERSION): Remove.
4293         * config/m68k/linux.h (TARGET_VERSION): Remove.
4294         * config/m68k/m68k.h (TARGET_VERSION): Remove.
4295         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
4296         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
4297         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
4298         * config/mep/mep.h (TARGET_VERSION): Remove.
4299         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
4300         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4301         * config/mips/iris6.h (MACHINE_TYPE): Remove.
4302         * config/mips/linux.h (TARGET_VERSION): Remove.
4303         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
4304         * config/mips/vxworks.h (TARGET_VERSION): Remove.
4305         * config/mmix/mmix.h (TARGET_VERSION): Remove.
4306         * config/mn10300/linux.h (TARGET_VERSION): Remove.
4307         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
4308         * config/pa/pa.h (TARGET_VERSION): Remove.
4309         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
4310         * config/picochip/picochip.h (TARGET_VERSION): Remove.
4311         * config/rs6000/aix.h (TARGET_VERSION): Remove.
4312         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
4313         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
4314         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
4315         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
4316         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
4317         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
4318         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
4319         * config/rs6000/linux.h (TARGET_VERSION): Remove.
4320         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
4321         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
4322         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
4323         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
4324         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
4325         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
4326         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
4327         * config/s390/linux.h (TARGET_VERSION): Remove.
4328         * config/s390/s390.h (TARGET_VERSION): Remove.
4329         * config/s390/tpf.h (TARGET_VERSION): Remove.
4330         * config/score/score.h (TARGET_VERSION): Remove.
4331         * config/sh/linux.h (TARGET_VERSION): Remove.
4332         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
4333         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
4334         * config/sh/sh.h (TARGET_VERSION): Remove.
4335         * config/sh/sh64.h (TARGET_VERSION): Remove.
4336         * config/sh/superh.h (TARGET_VERSION): Remove.
4337         * config/sh/vxworks.h (TARGET_VERSION): Remove.
4338         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
4339         * config/sparc/linux.h (TARGET_VERSION): Remove.
4340         * config/sparc/linux64.h (TARGET_VERSION): Remove.
4341         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
4342         TARGET_NAME32, TARGET_NAME): Remove.
4343         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
4344         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
4345         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
4346         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
4347         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
4348         * config/spu/spu.h (TARGET_VERSION): Remove.
4349         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
4350         * config/v850/v850.h (TARGET_VERSION): Remove.
4351         * config/vax/linux.h (TARGET_VERSION): Remove.
4352         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
4353         * config/xtensa/elf.h (TARGET_VERSION): Remove.
4354         * config/xtensa/linux.h (TARGET_VERSION): Remove.
4356 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
4358         PR target/48142
4359         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
4360         frame-related from frame-unrelated adjustments to the stack pointer.
4362 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
4364         * common.opt (fdebug-types-section): Move earlier.
4365         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
4367 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
4369         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
4370         var.
4372 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
4374         * tree.h (CASE_CHAIN): Define.
4375         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
4376         (gimple_redirect_edge_and_branch): Likewise.
4378 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4380         PR middle-end/48367
4381         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
4382         calculation.
4384 2011-03-30  Jeff Law  <law@redhat.com>
4386         * PR bootstrap/48371
4387         * reload1.c (reload): Fix botch in last change.
4389         * reload.h (struct reload): Fix typo introduced in last change.
4391 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4393         * config/arm/arm.opt (mhard-float, msoft-float): Mark
4394         Undocumented.  Remove help text.
4395         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
4396         -mhard-float.
4398 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4400         * doc/options.texi (NegativeAlias): Document.
4401         (Alias): Mention NegativeAlias.
4402         * opt-functions.awk: Handle NegativeAlias.
4403         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
4404         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
4405         * opts.h (CL_NEGATIVE_ALIAS): Define.
4406         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
4407         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
4408         OPT_mspe_.
4409         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
4410         Alias entries.
4411         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4412         mno-spe and mno-isel instead of mspe=no and -misel=no.
4414 2011-03-29  Mark Wielaard  <mjw@redhat.com>
4416         * common.opt (fdebug-types-section): New flag.
4417         * doc/invoke.texi: Document new -fno-debug-types-section flag.
4418         * dwarf2out.c (use_debug_types): New define.
4419         (struct die_struct): Mark die_id with GTY desc use_debug_types.
4420         (print_die): Guard output of type unit signatures using
4421         use_debug_types.
4422         (build_abbrev_table): Replace assert of dwarf_version >= 4
4423         with assert on use_debug_types.
4424         (size_of_die): Likewise.
4425         (unmark_dies): Likewise.
4426         (value_format): Decide AT_ref_external form on use_debug_types.
4427         (output_die): Replace dwarf_version version check guard with
4428         use_debug_types where appropriate.
4429         (modified_type_die): Likewise.
4430         (gen_reference_type_die): Likewise.
4431         (dwarf2out_start_source_file): Likewise.
4432         (dwarf2out_end_source_file): Likewise.
4433         (prune_unused_types_walk_attribs): Likewise.
4434         (dwarf2out_finish): Likewise.
4436 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4438         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
4440 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4442         PR rtl-optimization/48332
4443         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
4444         mode of input operand N and modeN to its actual mode.
4446 2011-03-30  Jeff Law  <law@redhat.com>
4448         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
4449         define accessor macro.
4450         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
4451         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
4452         (reg_equiv_init): Likewise.
4453         (reg_equivs_size): New variable.
4454         (reg_equiv_init_size): Remove.
4455         (allocate_initial_values): Move prototype to here from....
4456         * integrate.h (allocate_initial_values): Remove prototype.
4457         * integrate.c: Include reload.h.
4458         (allocate_initial_values): Corresponding changes.
4459         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
4460         (fix_reg_equiv_init, no_equiv): Corresponding changes.
4461         (update_equiv_regs): Corresponding changes.
4462         (ira): Corresponding changes.
4463         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
4464         (push_secondary_reload): Corresponding changes.
4465         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
4466         (make_memloc, find_reloads_address): Corresponding changes.
4467         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
4468         (find_reloads_address_1): Corresponding changes.
4469         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
4470         (refers_to_regno_for_reload_p): Corresponding changes.
4471         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
4472         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
4473         * reload1.c: Include ggc.h.
4474         (grow_reg_equivs): New function.
4475         (replace_pseudos_in, reload): Corresponding changes.
4476         (calculate_needs_all_insns, alter_regs): Corresponding changes.
4477         (eliminate_regs_1, elimination_effects): Corresponding changes.
4478         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
4479         (delete_output_reload): Likewise.
4480         * caller-save.c (mark_referenced_regs): Corresponding changes.
4481         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
4482         * frv/predicates.md (frv_load_operand): Corresponding changes.
4483         * microblaze/microblaze.c (double_memory_operand): Corresponding
4484         changes.
4485         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
4486         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
4487         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
4488         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
4489         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
4490         changes.
4491         * pa/pa.c (emit_move_sequence): Corresponding changes.
4492         * vax/vax.c (nonindexed_address_p): Corresponding changes.
4494 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4496         PR target/47551
4497         * config/arm/arm.c (coproc_secondary_reload_class): Handle
4498         structure modes.  Don't check neon_vector_mem_operand for
4499         vector or structure modes.
4501 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4502             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4504         PR target/43590
4505         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
4506         operand 1 and reshuffle the operands to match.
4507         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
4509 2011-03-30  Christian Schüler  <cschueler@gmx.de>
4511         PR driver/48208
4512         * config/c.opt (F): Added 'Driver' to -F option.
4514         PR driver/48260
4515         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
4516           handler function.
4517         * config/darwin.opt: Added '-arch' option.
4519 2011-03-30  Nick Clifton  <nickc@redhat.com>
4521         * config/rx/rx.md: Add peepholes and patterns to combine
4522         extending loads and simple arithmetic instructions.
4523         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
4524         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4525         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
4526         modes to use pre-decrement and post-increment addressing.
4527         (rx_is_restricted_memory_address): Add range checking of REG+INT
4528         addresses.
4529         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
4530         (rx_memory_move_cost): Adjust cost of stores.
4531         (rx_adjust_insn_length): New function.
4533 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
4535         PR c/48305
4536         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4537         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4538         matching arg00/arg01 types.
4540 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4542         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4543         last_location to UNKNOWN_LOCATION.
4545 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4547         PR target/48349
4548         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4549         FLOAT_SSE_REGS.
4551 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4552             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4554         PR bootstrap/48337
4555         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4556         Init(PROCESSOR_V7).
4557         (sparc_cpu): Likewise.
4558         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4559         PROCESSOR_V7.
4561 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4563         PR target/48336
4564         PR middle-end/48342
4565         PR rtl-optimization/48345
4566         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4567         hard regs for given mode from profitable regs when doing secondary
4568         allocation.
4570 2011-03-29  Jeff Law  <law@redhat.com>
4572         PR bootstrap/48327
4573         * tree-ssa-threadupdate.c (struct redirection_data): Remove
4574         do_not_duplicate field.
4575         (lookup_redirection_data): Corresponding changes.
4576         (create_duplicates): Always create a template block.
4577         (redirect_edges): Remove code which reused the original block
4578         when it was going to become unreachable code.
4579         (thread_block): Don't set do_not_duplicate field.
4581 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
4583         * lto-opts.c (register_user_option_p, lto_register_user_option):
4584         Make type argument unsigned.
4585         * lto-streamer.h (lto_register_user_option): Make type argument
4586         unsigned.
4587         * opth-gen.awk: Make CL_* macros unsigned.
4588         * opts-common.c (find_opt): Make lang_mask argument unsigned.
4589         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4590         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4591         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4592         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4593         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4594         (find_opt): Make lang_mask argument unsigned.
4596 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4598         PR rtl-optimization/48331
4599         PR rtl-optimization/48334
4600         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4601         for any used algorithm.
4603 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4605         * ira-conflicts.c (build_object_conflicts): Add unused attribute
4606         to parent_max.
4608 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
4610         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4611         (alpha_option_override): Don't set alpha_sr_alias_set.
4612         (emit_frame_store_1): Use gen_frame_mem rather than calling
4613         set_mem_alias_set.
4614         (alpha_expand_epilogue): Ditto.
4616 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
4618         PR tree-optimization/48290
4619         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4620         vectorization, check that relevant phis in the basic block after
4621         the inner loop are really inner loop's exit phis.
4623 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
4625         PR debug/48190
4626         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4627         (cached_dw_loc_list_def): New structure.
4628         (cached_dw_loc_list): New typedef.
4629         (cached_dw_loc_list_table): New variable.
4630         (cached_dw_loc_list_table_hash): New function.
4631         (cached_dw_loc_list_table_eq): Likewise.
4632         (add_location_or_const_value_attribute): Take a bool cache_p.
4633         Cache the list when the parameter is true.
4634         (gen_formal_parameter_die): Update caller.
4635         (gen_variable_die): Likewise.
4636         (dwarf2out_finish): Likewise.
4637         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4638         while generating debug info for the decl.
4639         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4640         (dwarf2out_init): Initialize cached_dw_loc_list_table.
4641         (resolve_addr): Cache the result of resolving a chain of
4642         location lists.
4644 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4646         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4647         conflict object hard regset nodes have intersecting hard reg sets.
4649         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4650         after regstat_init_n_sets_and_refs.
4652         * ira.c: Add more comments at the top.
4653         (setup_stack_reg_pressure_class, setup_pressure_classes):
4654         Add comments how we compute the register pressure classes.
4655         (setup_allocno_and_important_classes): Add more comments.
4656         (setup_class_translate_array, reorder_important_classes)
4657         (setup_reg_class_relations): Add comments.
4659         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
4660         start of the file.
4662         * ira-color.c: Add 2011 to the Copyright line.
4663         (assign_hard_reg):  Add more comments.
4664         (improve_allocation): Ditto.
4666         * ira-costs.c: Add 2011 to the Copyright line.
4667         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4668         comments.
4669         (setup_regno_cost_classes_by_mode): Ditto.
4671         Initial patches from ira-improv branch:
4673         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4675         * ira-build.c (ira_create_object): Remove initialization of
4676         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
4677         (ira_create_allocno): Remove initialization of
4678         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4679         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4680         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4681         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4682         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4683         Initialize ALLOCNO_ADD_DATA.
4684         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4685         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4686         ALLOCNO_REG.
4687         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
4688         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4690         * ira.c (ira_reallocate): Remove.
4691         (setup_pressure_classes): Call
4692         ira_init_register_move_cost_if_necessary.  Use
4693         ira_register_move_cost instead of ira_get_register_move_cost.
4694         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4695         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4697         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4698         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4699         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4700         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4701         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4702         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4703         Fix formatting.
4704         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4705         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4706         (struct allocno_color_data): New.
4707         (allocno_color_data_t): New typedef.
4708         (allocno_color_data): New definition.
4709         (ALLOCNO_COLOR_DATA): New macro.
4710         (struct object_color_data): New.
4711         (object_color_data_t): New typedef.
4712         (object_color_data): New definition.
4713         (OBJECT_COLOR_DATA): New macro.
4714         (update_copy_costs, calculate_allocno_spill_cost): Call
4715         ira_init_register_move_cost_if_necessary.  Use
4716         ira_register_move_cost instead of ira_get_register_move_cost.
4717         (move_spill_restore, update_curr_costs): Ditto.
4718         (allocno_spill_priority): Make it inline.
4719         (color_pass): Allocate and free allocno_color_dat and object_color_data.
4720         (struct coalesce_data, coalesce_data_t): New.
4721         (allocno_coalesce_data): New definition.
4722         (ALLOCNO_COALESCE_DATA): New macro.
4723         (merge_allocnos, coalesced_allocno_conflict_p): Use
4724         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4725         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4726         (coalesce_allocnos): Ditto.
4727         (setup_coalesced_allocno_costs_and_nums): Ditto.
4728         (collect_spilled_coalesced_allocnos): Ditto.
4729         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4730         (setup_slot_coalesced_allocno_live_ranges): Ditto.
4731         (coalesce_spill_slots): Ditto.
4732         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
4733         free allocno_coalesce_data.
4735         * ira-conflicts.c: Fix formatting.
4736         (process_regs_for_copy): Call
4737         ira_init_register_move_cost_if_necessary.  Use
4738         ira_register_move_cost instead of ira_get_register_move_cost.
4739         (build_object_conflicts): Optimize.
4741         * ira-costs.c (record_reg_classes): Optimize.  Call
4742         ira_init_register_move_cost_if_necessary.  Use
4743         ira_register_move_cost, ira_may_move_in_cost, and
4744         ira_may_move_out_cost instead of ira_get_register_move_cost and
4745         ira_get_may_move_cost.
4746         (record_address_regs): Ditto.
4747         (scan_one_insn): Optimize.
4748         (find_costs_and_classes): Optimize.
4749         (process_bb_node_for_hard_reg_moves): Call
4750         ira_init_register_move_cost_if_necessary.  Use
4751         ira_register_move_cost instead of ira_get_register_move_cost.
4753         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4754         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4755         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4756         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4757         definitions.
4758         (ira_initiate_emit_data, ira_finish_emit_data)
4759         (create_new_allocno): New functions.
4760         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4761         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4762         Use ira_register_move_cost instead of ira_get_register_move_cost.
4764         * ira-int.h: Fix some comments.
4765         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4766         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4767         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4768         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
4769         add_data.
4770         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
4771         bitfield after mode.  Make hard_regno a short int.  Make
4772         hard_regno short.  Remove first_coalesced_allocno and
4773         next_coalesced_allocno.  Move mem_optimized_dest_p,
4774         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4775         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
4776         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4777         temp, colorable_p.  Add new member add_data.
4778         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4779         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4780         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4781         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4782         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4783         (ALLOCNO_ADD_DATA): New macro.
4784         (ira_emit_data_t): New typedef.
4785         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
4786         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4787         from struct ira_allocno.
4788         (ALLOCNO_EMIT_DATA): New macro.
4789         (ira_allocno_emit_data, allocno_emit_reg): New.
4790         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4791         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4792         (OBJECT_ADD_DATA): New macro.
4793         (ira_reallocate): Remove.
4794         (ira_initiate_emit_data, ira_finish_emit_data): New.
4795         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4796         (ira_init_register_move_cost_if_necessary): New.
4797         (ira_object_conflict_iter_next): Merge into
4798         ira_object_conflict_iter_cond.
4799         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4801         * ira-live.c (process_single_reg_class_operands): Call
4802         ira_init_register_move_cost_if_necessary.  Use
4803         ira_register_move_cost instead of ira_get_register_move_cost.
4805         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4807         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4809         * ira-costs.c: Fix formatting.
4810         (cost_classes, cost_classes_num): Remove.
4811         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4812         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4813         (cost_classes_del, cost_classes_htab): New.
4814         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4815         (initiate_regno_cost_classes, setup_cost_classes): New.
4816         (setup_regno_cost_classes_by_aclass): New.
4817         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4818         (record_reg_classes): Use regno_cost_classes instead of
4819         cost_classes.  Move checking opposite operand up.
4820         (record_address_regs): Use regno_cost_classes
4821         instead of cost_classes.
4822         (scan_one_insn): Ditto.  Use always general register.
4823         (print_allocno_costs): Use regno_cost_classes instead of
4824         cost_classes.
4825         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
4826         (find_costs_and_classes): Set up cost classes for each registers.
4827         Use also their mode for this.  Use regno_cost_classes instead of
4828         cost_classes.
4829         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4830         cost_classes.
4831         (free_ira_costs, ira_init_costs): Don't use cost_classes.
4832         (ira_costs, ira_set_pseudo_classes): Call
4833         initiate_regno_cost_classes and finish_regno_cost_classes.
4835         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
4837         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4839         * target.def (ira_cover_classes): Remove.
4841         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4843         * doc/tm.texi.in: Ditto.
4845         * ira-conflicts.c: Remove mentioning cover classes from the file.
4846         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
4847         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
4849         * targhooks.c (default_ira_cover_classes): Remove.
4851         * targhooks.h (default_ira_cover_classes): Ditto.
4853         * haifa-sched.c: Remove mentioning cover classes from the file.
4854         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4855         ira_pressure_classes and ira_pressure_classes_num instead of
4856         ira_reg_class_cover_size and ira_reg_class_cover.  Use
4857         sched_regno_pressure_class instead of sched_regno_cover_class.
4858         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4859         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4861         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
4862         classes from the file.
4863         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4864         (struct object_hard_regs, struct object_hard_regs_node): New.
4865         (struct ira_object): New members profitable_hard_regs,
4866         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4867         (struct ira_allocno): Rename cover_class to aclass.  Rename
4868         cover_class_cost and updated_cover_class_cost to class_cost and
4869         updated_class_cost.  Remove splay_removed_p and
4870         left_conflict_size.  Add new members colorable_p.
4871         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4872         (ALLOCNO_COLORABLE_P): New macro.
4873         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4874         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4875         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4876         (OBJECT_...): Rename parameter C to O.
4877         (OBJECT_PROFITABLE_HARD_REGS): New macro.
4878         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4879         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4880         (struct target_ira_int): New members x_ira_max_memory_move_cost,
4881         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4882         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4883         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4884         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
4885         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
4886         x_ira_reg_class_subunion.
4887         (ira_max_memory_move_cost, ira_max_register_move_cost)
4888         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4889         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4890         (ira_important_class_nums, ira_reg_class_superunion): New macros.
4891         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4892         (ira_reg_class_union): Rename to ira_reg_class_subunion.
4893         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4894         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4895         (ira_tune_allocno_costs_and_cover_classes): Rename to
4896         ira_tune_allocno_costs.
4897         (ira_debug_hard_regs_forest): New.
4898         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4899         (ira_object_conflict_iter_next): Fix comments.
4900         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4901         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4902         cover_class to aclass.
4903         (ira_allocate_and_accumulate_costs): Ditto.
4904         (ira_allocate_and_set_or_copy_costs): Ditto.
4906         * opts.c (decode_options): Remove ira_cover_class check.
4908         * ira-color.c: Remove mentioning cover classes from the file.  Use
4909         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4910         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4911         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4912         (splay-tree.h): Remove include.
4913         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4914         before copy_freq_compare_func.
4915         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4916         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4917         New definitions.
4918         (hard_regs_roots, hard_regs_node_vec): Ditto.
4919         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4920         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4921         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4922         (create_new_object_hard_regs_node): Ditto.
4923         (add_new_object_hard_regs_node_to_forest): Ditto.
4924         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4925         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4926         Ditto.
4927         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4928         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4929         (remove_unused_object_hard_regs_nodes): Ditto.
4930         (enumerate_object_hard_regs_nodes): Ditto.
4931         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4932         (object_hard_regs_subnode_t): Ditto.
4933         (struct object_hard_regs_subnode): Ditto.
4934         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4935         (setup_object_hard_regs_subnode_index): Ditto.
4936         (get_object_hard_regs_subnodes_num): Ditto.
4937         (form_object_hard_regs_nodes_forest): Ditto.
4938         (finish_object_hard_regs_nodes_tree): Ditto.
4939         (finish_object_hard_regs_nodes_forest): Ditto.
4940         (allocnos_have_intersected_live_ranges_p): Rename to
4941         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4942         (pseudos_have_intersected_live_ranges_p): Rename to
4943         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4944         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4945         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4946         (update_copy_costs): Remove assert.  Skip cost update if the hard
4947         reg does not belong the class.
4948         (assign_hard_reg): Process only profitable hard regs.
4949         (uncolorable_allocnos_num): Make it scalar.
4950         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4951         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4952         and ira_reg_class_max_nregs.
4953         (bucket_allocno_compare_func): Check frequency first.
4954         (sort_bucket): Add compare function as a parameter.
4955         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4956         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4957         (push_allocno_to_stack): Rewrite for checking new allocno
4958         colorability.
4959         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
4960         (push_only_colorable): Pass new parameter to sort_bucket.
4961         (push_allocno_to_spill): Remove.
4962         (allocno_spill_priority_compare): Make it inline and rewrite.
4963         (splay_tree_allocate, splay_tree_free): Remove.
4964         (allocno_spill_sort_compare): New function.
4965         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
4966         build and use splay tree.  Choose first allocno in uncolorable
4967         allocno bucket to spill.  Remove setting spill cost.
4968         (all_conflicting_hard_regs): Remove.
4969         (setup_allocno_available_regs_num): Check only profitable hard
4970         regs.  Print info about hard regs nodes.
4971         (setup_allocno_left_conflicts_size): Remove.
4972         (put_allocno_into_bucket): Don't call
4973         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
4974         (improve_allocation): New.
4975         (color_allocnos): Call setup_profitable_hard_regs,
4976         form_object_hard_regs_nodes_forest, improve_allocation,
4977         finish_object_hard_regs_nodes_forest.  Setup spill cost.
4978         (print_loop_title): Use pressure classes.
4979         (color_allocnso): Ditto.
4980         (do_coloring): Remove allocation and freeing splay_tree_node_pool
4981         and allocnos_for_spilling.
4982         (ira_sort_regnos_for_alter_reg): Don't setup members
4983         {first,next}_coalesced_allocno.
4984         (color): Remove allocating and freeing removed_splay_allocno_vec.
4985         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4986         prohibited_class_mode_regs.
4988         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
4989         formatting.
4990         (update_allocno_pressure_excess_length): Use pressure classes.
4991         (inc_register_pressure, dec_register_pressure): Check for pressure
4992         class.
4993         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4994         pressure class.  Use ira_reg_class_nregs instead of
4995         ira_reg_class_max_nregs.
4996         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4997         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4998         (single_reg_class): Use ira_reg_class_nregs instead of
4999         ira_reg_class_max_nregs.
5000         (process_bb_node_lives): Use pressure classes.
5002         * ira-emit.c: Remove mentioning cover classes from the file.  Use
5003         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
5004         (change_loop): Use pressure classes.
5005         (modify_move_list): Call ira_set_allocno_class instead of
5006         ira_set_allocno_cover_class.
5008         * ira-build.c: Remove mentioning cover classes from the file.  Use
5009         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
5010         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
5011         ALLOCNO_UPDATED_CLASS_COST instead of
5012         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
5013         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
5014         (ira_create_allocno): Remove initialization of
5015         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
5016         ALLOCNO_COLORABLE_P.
5017         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
5018         Update conflict regs for the objects.
5019         (create_cap_allocno): Remove assert.  Don't propagate
5020         ALLOCNO_AVAILABLE_REGS_NUM.
5021         (ira_free_allocno_costs): New function.
5022         (finish_allocno): Change a part of code into call of
5023         ira_free_allocno_costs.
5024         (low_pressure_loop_node_p): Use pressure classes.
5025         (object_range_compare_func): Don't compare classes.
5026         (setup_min_max_conflict_allocno_ids): Ditto.
5028         * loop-invariant.c: Remove mentioning cover classes from the file.
5029         Use ira_pressure_classes and ira_pressure_classes_num instead of
5030         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
5031         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
5032         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5033         Use reg_allocno_class instead of reg_cover_class.
5034         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
5035         STACK_REG_COVER_CLASS.
5036         (get_regno_cover_class): Rename to get_regno_pressure_class.
5037         (move_loop_invariants): Initialize and finalize regstat.
5039         * ira.c: Remove mentioning cover classes from the file.  Add
5040         comments about coloring without cover classes.  Use ALLOCNO_CLASS
5041         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
5042         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
5043         setup_class_subset_and_memory_move_costs.
5044         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
5045         (setup_cover_and_important_classes): Rename to
5046         setup_allocno_and_important_classes.
5047         (setup_class_translate_array): New.
5048         (setup_class_translate): Call it for allocno and pressure classes.
5049         (cover_class_order): Rename to allocno_class_order.
5050         (comp_reg_classes_func): Use ira_allocno_class_translate instead
5051         of ira_class_translate.
5052         (reorder_important_classes): Set up ira_important_class_nums.
5053         (setup_reg_class_relations): Set up ira_reg_class_superunion.
5054         (print_class_cover): Rename to print_classes.  Add parameter.
5055         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
5056         Print pressure classes too.
5057         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
5058         setup_reg_subclasses.
5059         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
5060         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
5061         (setup_prohibited_class_mode_regs): Use
5062         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
5063         (clarify_prohibited_class_mode_regs): New function.
5064         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
5065         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
5066         (ira_init_once): Initialize them.
5067         (free_register_move_costs): Process them.
5068         (ira_init): Move calls of find_reg_classes and
5069         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
5070         Call clarify_prohibited_class_mode_regs.
5071         (ira_no_alloc_reg): Remove.
5072         (too_high_register_pressure_p): Use pressure classes.
5074         * sched-deps.c: Remove mentioning cover classes from the file.
5075         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
5076         ira_pressure_classes and ira_pressure_classes_num instead of
5077         ira_reg_class_cover_size and ira_reg_class_cover.
5078         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
5079         sched_regno_pressure_class instead of sched_regno_cover_class.
5080         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
5081         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5083         * ira.h: Add 2010 to Copyright.
5084         (ira_no_alloc_reg): Remove external.
5085         (struct target_ira): Rename x_ira_hard_regno_cover_class,
5086         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
5087         x_ira_class_translate to x_ira_hard_regno_allocno_class,
5088         x_ira_allocno_classes_num, x_ira_allocno_classes, and
5089         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
5090         x_ira_pressure_classes, x_ira_pressure_class_translate, and
5091         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
5092         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
5093         x_ira_no_alloc_regs.
5094         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
5095         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
5096         ira_allocno_classes_num and ira_allocno_classes.
5097         (ira_class_translate): Rename to ira_allocno_class_translate.
5098         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
5099         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
5100         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
5101         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
5102         (ira_no_alloc_regs): New.
5104         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
5105         classes from the file.  Use ALLOCNO_CLASS instead of
5106         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
5107         ALLOCNO_COVER_CLASS_COST.
5108         (regno_cover_class): Rename to regno_aclass.
5109         (record_reg_classes): Use ira_reg_class_subunion instead of
5110         ira_reg_class_union.
5111         (record_address_regs): Check overflow.
5112         (scan_one_insn): Ditto.
5113         (print_allocno_costs): Print total mem cost fore regional allocation.
5114         (print_pseudo_costs): Use REG_N_REFS.
5115         (find_costs_and_classes): Use classes intersected with them on the
5116         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
5117         ira_reg_class_union.  Use ira_allocno_class_translate and
5118         regno_aclass instead of ira_class_translate and regno_cover_class.
5119         Modify code for finding regno_aclass.  Setup preferred classes for
5120         the next pass.
5121         (setup_allocno_cover_class_and_costs): Rename to
5122         setup_allocno_class_and_costs.  Use regno_aclass instead of
5123         regno_cover_class.  Use ira_set_allocno_class instead of
5124         ira_set_allocno_cover_class.
5125         (init_costs, finish_costs): Use regno_aclass instead of
5126         regno_cover_class.
5127         (ira_costs): Use setup_allocno_class_and_costs instead of
5128         setup_allocno_cover_class_and_costs.
5129         (ira_tune_allocno_costs_and_cover_classes): Rename to
5130         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
5131         by processing objects.  Use ira_reg_class_max_nregs instead of
5132         ira_reg_class_nregs.
5134         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
5136         * sched-int.h: Remove mentioning cover classes from the file.
5137         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
5139         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
5140         classes from the file.
5141         (struct reg_pref): Rename coverclass into allocnoclass.
5142         (reg_cover_class): Rename to reg_allocno_class.
5144         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
5146         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
5148         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
5150         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
5152         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
5154         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
5156         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
5158         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
5160         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
5162         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
5164         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
5165         (i386_ira_cover_classes): Ditto.
5167         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
5169         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
5171         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
5173         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
5175         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
5177         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
5179         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
5180         (mips_ira_cover_classes): Ditto.
5182         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
5184         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
5186         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
5188         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
5190         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
5192         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
5193         (IRA_COVER_CLASSES_VSX): Ditto.
5195         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
5196         (rs6000_ira_cover_classes): Ditto.
5198         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
5200         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
5202         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
5204         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
5206         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
5208         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
5210         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
5212         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
5214         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
5216         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
5218 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
5220         PR debug/48253
5221         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
5222         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
5223         dw_fde_unlikely_section_end_label, cold_in_std_section,
5224         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
5225         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
5226         fields.
5227         (output_fde): Use dw_fde_second_{begin,end} if second is
5228         true, otherwise dw_fde_{begin,end}.
5229         (output_call_frame_info): Test dw_fde_second_begin != NULL
5230         instead of dw_fde_switched_sections.
5231         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
5232         fields, initialize new fields.  Initialize in_std_section
5233         unconditionally from the first partition.
5234         (dwarf2out_end_epilogue): Don't override dw_fde_end when
5235         dw_fde_second_begin is non-NULL.
5236         (dwarf2out_switch_text_section): Stop initializing removed
5237         dw_fde_struct fields, initialize new fields, initialize
5238         also dw_fde_end here.  Set dw_fde_switch_cfi even when
5239         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
5240         (struct var_loc_list_def): Add last_before_switch field.
5241         (arange_table, arange_table_allocated, arange_table_in_use,
5242         ARANGE_TABLE_INCREMENT, add_arange): Removed.
5243         (size_of_aranges): Count !in_std_section and !second_in_std_section
5244         hunks in fdes, instead of looking at arange_table_in_use.
5245         (output_aranges): Add aranges_length argument, don't call
5246         size_of_aranges here.  Instead of using aranges_table*
5247         emit ranges for fdes when !in_std_section resp.
5248         !second_in_std_section.
5249         (dw_loc_list): Break ranges crossing section switch.
5250         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
5251         use dw_fde_second_end instead of dw_fde_end as end of last range.
5252         (gen_subprogram_die): Don't call add_arange.  Use
5253         dw_fde_{begin,end} for first partition and if switched
5254         section dw_fde_second_{begin,end} for the second.
5255         (var_location_switch_text_section_1,
5256         var_location_switch_text_section): New functions.
5257         (dwarf2out_begin_function): Initialize cold_text_section even
5258         when function_section () isn't text_section.
5259         (prune_unused_types): Don't walk arange_table.
5260         (dwarf2out_finish): Don't needlessly test
5261         flag_reorder_blocks_and_partition when testing cold_text_section_used.
5262         If info_section_emitted, call size_of_aranges and if it indicates
5263         non-empty .debug_aranges, call output_aranges with the computed
5264         size.  Stop using removed dw_fde_struct fields, use
5265         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
5266         for second.
5268         PR debug/48203
5269         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
5270         create ENTRY_VALUE if incoming or address of incoming's MEM
5271         is a hard REG.
5272         * dwarf2out.c (mem_loc_descriptor): Don't emit
5273         DW_OP_GNU_entry_value of DW_OP_fbreg.
5274         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
5275         on ENTRY_VALUE is able to find the canonical parameter VALUE.
5276         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
5277         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
5278         ENTRY_VALUE_EXPs.
5279         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
5280         is a REG_P or MEM_P with REG_P address, compute hash directly
5281         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
5282         (preserve_only_constants): Don't clear VALUES forwaring
5283         ENTRY_VALUE to some other VALUE.
5285 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
5287         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
5288         instead of GEN_INT.
5290 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
5292         * cfgexpand.c (expand_gimple_cond): Always set the source location and
5293         block before expanding the statement.
5294         (expand_gimple_stmt_1): Likewise.  Set them here...
5295         (expand_gimple_stmt): ...and not here.  Tidy.
5296         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
5297         unknown.
5299 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
5301         * Makefile.in: New rule for cprop.o.
5302         * gcse.c: Move constant/copy propagation to cprop.c.
5303         (compute_local_properties): Only handle expression tables.
5304         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
5305         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
5306         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
5307         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
5308         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
5309         compute_cprop_data, find_used_regs, try_replace_reg,
5310         find_avail_set, cprop_jump, constprop_register, cprop_insn,
5311         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
5312         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
5313         find_bypass_set, reg_killed_on_edge, bypass_block,
5314         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
5315         execute_rtl_cprop, pass_rtl_cprop): Move to...
5316         * cprop.c: ...here.  New file, constant/copy propagation for RTL
5317         moved from gcse.c to here with minor cleanups in duplicated code.
5319 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
5321         * config/i386/i386.c (flag_opts): Fix a typo in
5322         -mavx256-split-unaligned-store.
5324 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
5326         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5327         LIBCALL_VALUE): Remove macros.
5328         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5329         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5330         (h8300_function_value, h8300_libcall_value,
5331         h8300_function_value_regno_p): New functions.
5333 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
5335         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
5337 2011-03-28  Jeff Law  <law@redhat.com>
5339         * tree-ssa-threadupdate.c (redirect_edges): Call
5340         create_edge_and_update_destination_phis as needed.
5341         (create_edge_and_update_destination_phis): Accept new BB argument.
5342         All callers updated.
5343         (thread_block): Do not update the profile when threading around
5344         intermediate blocks.
5345         (thread_single_edge): Likewise.
5346         (determine_bb_domination_status): If BB is not a successor of the
5347         loop header, return NONDOMINATING.
5348         (register_jump_thread): Note when we register a jump thread around
5349         an intermediate block.
5350         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
5351         (thread_across_edge): Use it.
5353 2011-03-28  Tristan Gingold  <gingold@adacore.com>
5355         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
5356         when for_return is 2.
5358 2011-03-28  Jeff Law  <law@redhat.com>
5360         * var-tracking.c (canonicalize_values_mark): Delete unused
5361         lhs assignment.
5362         (canonicalize_values_star, set_variable_part): Likewise.
5363         (clobber_variable_part, delete_variable_part): Likewise.
5365 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
5367         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
5369 2011-03-28  Martin Jambor  <mjambor@suse.cz>
5371         * tree-inline.c (expand_call_inline): Do not check that destination
5372         node is analyzed.
5373         (optimize_inline_calls): Assert that destination node is analyzed.
5374         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
5375         not call tree_lowering_passes.
5376         * cgraph.h (cgraph_analyze_function): Declare.
5377         * cgraphunit.c (cgraph_analyze_function): Make public.
5379 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
5381         * config/sparc/sparc-opts.h: New.
5382         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
5383         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
5384         (sparc_option_override): Store processor_type enumeration rather
5385         than string in cpu_default.  Remove name and enumeration from
5386         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
5387         without using sparc_select.  Use target_flags_explicit instead of
5388         fpu_option_set.
5389         * config/sparc/sparc.h (enum processor_type): Move to
5390         sparc-opts.h.
5391         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
5392         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
5393         HeaderInclude entry.
5394         (mcpu=, mtune=): Use Var and Enum.
5395         (sparc_processor_type): New Enum and EnumValue entries.
5397 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5398             Iain Sandoe  <iains@gcc.gnu.org>
5400         PR target/48245
5401         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
5403 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
5405         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
5406         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
5407         Insert new statements at it in lieu of STMT.
5408         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
5409         * tree-vect-stmts.c (vectorizable_store): Likewise.
5410         (vectorizable_load): Likewise.
5412 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
5414         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
5415         (divtf3): Ditto.
5416         (multf3): Ditto.
5417         (subtf3): Ditto.
5419 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5421         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
5422         unaligned 256bit load/store.
5423         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
5424         (*avx_movdqu<avxmodesuffix>): Likewise.
5426 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5428         PR target/48288
5429         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
5430         * config/pa/pa.md (iordi3): Use new predicate in expander.
5431         (iorsi3): Likewise.
5433 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
5435         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
5436         FUNCTION_VALUE_REGNO_P): Remove macros.
5437         * config/mips/mips-protos.h (mips_function_value): Remove.
5438         * config/mips/mips.c (mips_function_value): Rename to...
5439         (mips_function_value_1): ... this. Make static.  Handle receiving
5440         the function type in 'fn_decl_or_type' argument.
5441         (mips_function_value, mips_libcall_value,
5442         mips_function_value_regno_p): New function.
5443         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5444         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5446 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5448         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
5449         and -mavx256-split-unaligned-store.
5450         (ix86_option_override_internal): Split 32-byte AVX unaligned
5451         load/store by default.
5452         (ix86_avx256_split_vector_move_misalign): New.
5453         (ix86_expand_vector_move_misalign): Use it.
5455         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
5456         -mavx256-split-unaligned-store.
5458         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
5459         256bit load/store.  Generate unaligned store on misaligned memory
5460         operand.
5461         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
5462         256bit load/store.
5463         (*avx_movdqu<avxmodesuffix>): Likewise.
5465         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
5466         -mavx256-split-unaligned-store.
5468 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
5470         PR target/38598
5471         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
5472         Update commentary.
5474 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
5476         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
5477         opno arguments with an expand_operand.  Use create_input_operand.
5478         (mips_prepare_builtin_target): Delete.
5479         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
5480         functions.
5481         (mips_expand_builtin_direct): Use create_output_operand and
5482         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
5483         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
5484         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
5486 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
5488         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
5489         function.
5490         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5492 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
5494         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
5495         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
5496         basic blocks and call commit_edge_insertions directly.
5497         (fixup_abnormal_edges): Move from here to...
5498         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
5499         on the edges and return whether some have actually been inserted.
5500         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
5501         compensation code.
5503 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
5505         PR rtl-optimization/48144
5506         * sel-sched-ir.c (merge_history_vect): Factor out from ...
5507         (merge_expr_data): ... here.
5508         (av_set_intersect): Rename to av_set_code_motion_filter.
5509         Update all callers.  Call merge_history_vect when an expression
5510         is found in both sets.
5511         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
5513 2011-03-26  Alan Modra  <amodra@gmail.com>
5515         * config/rs6000/predicates.md (word_offset_memref_op): Handle
5516         cmodel medium addresses.
5517         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
5518         64-bit gpr loads and stores.
5519         (rs6000_secondary_reload_ppc64): New function.
5520         * config/rs6000/rs6000-protos.h: Declare it.
5521         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
5523 2011-03-26  Alan Modra  <amodra@gmail.com>
5525         PR target/47487
5526         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5527         GNU Go in traceback table.
5529 2011-03-25  Richard Henderson  <rth@redhat.com>
5531         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5532         if there are exactly 6 operands.
5533         (set_storage_via_setmem): Similarly.
5535 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5537         * collect2.c (write_c_file_stat): Handle backslash
5538         as right-hand directory separator.
5539         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5540         checking just for slash.
5541         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5542         instead of checking for trailing slash.
5543         * gcc.c (record_temp_file): Use filename_cmp instead
5544         of strcmp.
5545         (do_spec_1): Likewise.
5546         (replace_outfile_spec_function): Likewise.
5547         (is_directory): Use filename_ncmp instead of strncmp.
5548         (print_multilib_info): Likewise.
5549         * gcov.c (find_source): Use filename_cmp instead
5550         instead of strcmp.
5551         (make_gcov_file_name): Fix order of slash/backslash
5552         checks.
5553         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5554         (add_standard_paths): Likewise.
5555         * mips-tfile.c (saber_stop): Handle backslash.
5556         * prefix.c (update_path): Use filename_ncmp instead of
5557         strncmp.
5558         * profile.c (output_location): Use filename_cmp instead
5559         of strcmp.
5560         * read-md.c (handle_toplevel_file): Handle backslash.
5561         * tlink.c (frob_extension):  Likewise.
5562         * tree-cfg.c (same_line_p): Use filename_cmp instead of
5563         strcmp.
5564         * tree-dump.c (dequeue_and_dump): Handle backslash.
5565         * tree.c (get_file_function_name): Likewise.
5566         * gengtype.c (read_input_list): Likewise.
5567         (get_file_realbasename): Likewise.
5568         (get_output_file_with_visibility): Use filename_cmp
5569         instead of strcmp.
5571 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
5573         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5574         case to VFPv1.
5576 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5578         * fold-const.c (expr_location_or): New function.
5579         (fold_truth_not_expr): Call it.
5581 2011-03-25  Jeff Law  <law@redhat.com>
5583         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5584         va_end.
5585         * c-family/c-common.c (def_fn_type): Likewise.
5586         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5587         * emit-rtl.c (gen_rtvec): Likewise.
5588         * lto/lto-lang.c (def_fn_type): Likewise.
5590 2011-03-25  Richard Guenther  <rguenther@suse.de>
5592         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5593         also generate copies.
5594         (fini_copy_prop): Handle constant values properly.
5596 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
5598         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5599         mode size instead of bitsize with DWARF2_ADDR_SIZE.
5600         (hash_loc_operands, compare_loc_operands): Handle
5601         DW_OP_GNU_entry_value.
5603 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5605         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5606         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5607         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5608         comment and use macro TARGET_64BIT_MS_ABI instead.
5609         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5610         and change default behavior for 32-bit MS_ABI.
5611         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5612         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5613         32-bit, too.
5614         (ix86_cfun_abi): Likewise.
5615         (ix86_maybe_switch_abi): Adjust comment.
5616         (init_cumulative_args): Check for bit-ness in MS_ABI case.
5617         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5618         instead of checking for SYSV_ABI.
5619         (ix86_nsaved_sseregs): Likewise.
5620         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5621         to 16 bytes.
5622         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5623         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5624         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5625         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5626         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5628 2011-03-25  Richard Guenther  <rguenther@suse.de>
5630         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5631         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5632         (verify_gimple): Remove.
5633         * tree-cfg.c (verify_gimple_call): Merge verification
5634         from verify_stmts.
5635         (verify_gimple_phi): Merge verification from verify_stmts.
5636         (verify_gimple_label): New function.
5637         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5638         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5639         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5640         (verify_stmts): Rename to verify_gimple_in_cfg.
5641         (verify_gimple_in_cfg): New function.
5642         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5643         * tree-ssa.c (verify_ssa): Likewise.
5644         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5646 2011-03-25  Richard Guenther  <rguenther@suse.de>
5648         * passes.c (init_optimization_passes): Add FRE pass after
5649         early SRA.
5651 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
5652             Andrew Stubbs  <ams@codesourcery.com>
5654         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5655         for Cortex-A8.
5656         (arm_movdi_vfp_cortexa8): New pattern.
5657         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5658         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5659         instructions when tuning for Cortex-A8.  Set attribute "arch".
5660         * config/arm/arm.md: Move include arm-tune.md up a bit.
5661         (define_attr "arch"): Add "onlya8" and "nota8" values.
5662         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5664 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5666         PR bootstrap/48282
5667         Revert:
5668         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5670         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5671         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5672         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5673         * passes.c (init_optimization_passes): Move
5674         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5676 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5678         * c-typeck.c (comptypes_internal): Replace target
5679         hook call of comp_type_attributes by version in tree.c file.
5680         * gimple.c (gimple_types_compatible_p_1): Likewise.
5681         * tree-ssa.c (useless_type_conversion_p): Likewise.
5682         * tree.c (build_type_attribute_qual_variant): Likewise.
5683         (attribute_value_equal): New static helper function.
5684         (comp_type_attributes): New function.
5685         (merge_attributes): Use attribute_value_equal for comparison.
5686         (attribute_list_contained): Likewise.
5687         * tree.h (comp_type_attributes): New prototype.
5689 2011-03-25  Richard Guenther  <rguenther@suse.de>
5691         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5692         of complex types at -O0.
5693         (verify_gimple_assign_binary): Likewise.
5694         (verify_gimple_assign_ternary): Likewise.
5696 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5698         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5699         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5701 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5703         PR debug/48041
5704         * dwarf2out.c (output_abbrev_section): Only write table when
5705         abbrev_die_table_in_use > 1.
5707 2011-02-24  Richard Henderson  <rth@redhat.com>
5709         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5710         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5711         (alpha_expand_unaligned_load_words): Use extql.
5712         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5713         (emit_insxl): Handle all modes for consistency.
5715 2011-02-24  Richard Henderson  <rth@redhat.com>
5717         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5718         (alpha_expand_unaligned_load): Likewise.
5719         (alpha_expand_unaligned_store): Likewise.
5720         (alpha_expand_unaligned_load_words): Likewise.
5721         (alpha_expand_unaligned_store_words): Likewise.
5722         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5723         (alpha_split_lock_test_and_set_12): Likewise.
5724         (print_operand, alpha_fold_builtin_extxx): Likewise.
5725         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5726         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5727         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5728         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5729         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5730         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5731         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5732         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5733         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5734         (extwl, extll, extql): Similarly.
5735         (inswh, inslh, insqh): Similarly.
5736         (mskbl, mskwl, mskll, mskql): Similarly.
5737         (mskwh, msklh, mskqh): Similarly.
5739 2011-02-24  Richard Henderson  <rth@redhat.com>
5741         * config/alpha/alpha.md (attribute isa): Add er, ner.
5742         (attribute enabled): Handle them.
5743         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5745 2011-02-24  Richard Henderson  <rth@redhat.com>
5747         * config/alpha/alpha.md (attribute isa): Add vms.
5748         (attribute enabled): Handle it.
5749         (*movsf): Merge *movsf_{nofix,fix,nofp}.
5750         (*movdf): Merge *movdf_{nofix,fix,nofp}.
5751         (*movtf): Rename from *movtf_internal for consistency.
5752         (*movsi): Merge with *movsi_nt_vms.
5753         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5754         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5755         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5756         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5758 2011-02-24  Richard Henderson  <rth@redhat.com>
5760         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5761         (extendqisi2, extendhisi2): Likewise.
5762         (extendqidi2): Simplify BWX/non-BWX expansions.
5763         (extendhidi2): Similarly.
5765 2011-02-24  Richard Henderson  <rth@redhat.com>
5767         * config/alpha/alpha.md (attribute isa): New.
5768         (attribute enabled): New.
5769         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5770         (zero_extendqisi2, zero_extendqidi2): Similarly.
5771         (zero_extendhisi2, zero_extendhidi2): Similarly.
5772         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5774 2011-02-24  Richard Henderson  <rth@redhat.com>
5776         * config/alpha/predicates.md (input_operand): Revert last change;
5777         update comment to mention 32-bit VMS rather than Windows.
5779 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5781         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5782         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5783         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5784         * passes.c (init_optimization_passes): Move
5785         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5787 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5789         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5791 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5793         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5794         correctly.
5796 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
5798         PR debug/48204
5799         * simplify-rtx.c (simplify_const_unary_operation): Call
5800         real_convert when changing mode class with FLOAT_EXTEND.
5802 2011-03-24  Nick Clifton  <nickc@redhat.com>
5804         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5805         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5806         * config/rx/rx.c (rx_option_override): Set align_jumps,
5807         align_loops and align_labels if not set by the user.
5808         (rx_align_for_label): New function.
5809         (rx_max_skip_for_label): New function.
5810         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5811         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5812         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5813         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5814         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5816 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5818         PR rtl-optimization/48263
5819         * optabs.c (expand_binop_directly): Reinstate convert_modes code
5820         and original commutative_p handling.  Use maybe_gen_insn.
5822 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5824         * reload.c (find_reloads_subreg_address): Add address_reloaded
5825         parameter and return true there if the full address has been
5826         reloaded.
5827         (find_reloads_toplev): Pass address_reloaded flag.
5828         (find_reloads_address_1): Don't use address_reloaded parameter.
5830 2011-03-24  Jeff Law  <law@redhat.com>
5832         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5833         unused variable "ann".
5834         (remove_unused_locals): Likewise.
5836         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5837         statement.
5839         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5840         after it is freed.
5842 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5844         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5845         for invalid symbolic addresses.
5846         (s390_secondary_reload): Don't use s390_check_symref_alignment for
5847         larl operands.
5849 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5851         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5852         the argument in calls to fold_truth_not_expr.
5854 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5856         * tree.c (record_node_allocation_statistics): New function.
5857         (make_node_stat, copy_node_stat, build_string): Call it.
5858         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5859         (build1_stat, build_omp_clause): Likewise.
5861 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5863         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5864         last commit.
5866 2011-03-24  Richard Guenther  <rguenther@suse.de>
5868         PR tree-optimization/48271
5869         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5870         blocks that still exist.
5872 2011-03-24  Richard Guenther  <rguenther@suse.de>
5874         PR tree-optimization/48270
5875         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5876         not free datarefs before ddrs.
5878 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5880         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5881         from the address built for a reference with variable offset.
5883 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5885         PR target/48237
5886         * config/i386/i386.md (*movdf_internal_rex64): Do not split
5887         alternatives that can be handled with movq or movabsq insn.
5888         (*movdf_internal): Disable for !TARGET_64BIT.
5889         (*movdf_internal_nointeger): Ditto.
5890         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5892 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5894         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5895         (FUNCTION_ARG_ADVANCE): Likewise.
5896         * tm.texi.in: Change references to them to hook references.
5897         * tm.texi: Regenerate.
5898         * targhooks.c (default_function_arg): Eliminate check for target macro.
5899         (default_function_incoming_arg): Likewise.
5900         (default_function_arg_advance): Likewise.
5901         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5902         (function_arg_advance): Likewise.
5903         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5905 2011-03-24  Richard Guenther  <rguenther@suse.de>
5907         PR middle-end/48269
5908         * tree-object-size.c (addr_object_size): Do not double-account
5909         for MEM_REF offsets.
5911 2011-03-24  Diego Novillo  <dnovillo@google.com>
5913         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5914         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5915         (lto_input_data_block): Move from lto-opts.c.  Make extern.
5916         Update all users.
5917         (lto_input_string): Rename from input_string.  Make extern.
5918         Update all users.
5919         * lto-streamer-out.c (lto_output_string_with_length): Rename from
5920         output_string_with_length.
5921         Output 0 to indicate a non-NULL string.  Update all callers to
5922         not emit 0.
5923         (lto_output_string): Rename from output_string.  Make extern.
5924         Update all users.
5925         (lto_output_decl_state_streams): Make extern.
5926         (lto_output_decl_state_refs): Make extern.
5927         * lto-streamer.h (lto_input_string): Declare.
5928         (lto_input_data_block): Declare.
5929         (lto_output_string): Declare.
5930         (lto_output_string_with_length): Declare.
5931         (lto_output_decl_state_streams): Declare.
5932         (lto_output_decl_state_refs): Declare.
5934 2011-03-24  Richard Guenther  <rguenther@suse.de>
5936         PR tree-optimization/46562
5937         * tree.c (build_invariant_address): New function.
5938         * tree.h (build_invariant_address): Declare.
5939         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5940         a renamed function moved ...
5941         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5942         Take valueization callback parameter.
5943         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5944         * gimple-fold.h: New file.
5945         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5946         (ccp_fold, fold_const_aggregate_ref,
5947         fold_ctor_reference, fold_nonarray_ctor_reference,
5948         fold_array_ctor_reference, fold_string_cst_ctor_reference,
5949         get_base_constructor): Move ...
5950         * gimple-fold.c: ... here.
5951         (gimple_fold_stmt_to_constant_1): New function
5952         split out from ccp_fold.  Take a valueization callback parameter.
5953         Valueize all operands.
5954         (gimple_fold_stmt_to_constant): New wrapper function.
5955         (fold_const_aggregate_ref_1): New function split out from
5956         fold_const_aggregate_ref.  Take a valueization callback parameter.
5957         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5958         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5959         invariant POINTER_PLUS_EXPRs to invariant form.
5960         (vn_valueize): New function.
5961         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5962         * tree-vrp.c (vrp_valueize): New function.
5963         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5964         to fold statements to constants.
5965         * tree-ssa-pre.c (eliminate): Properly guard propagation of
5966         function declarations.
5967         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5968         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5970 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5972         * config/h8300/predicates.md (jump_address_operand): Fix register
5973         mode check.
5975 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
5977         * doc/invoke.texi (max-stores-to-sink): Document.
5978         * params.h (MAX_STORES_TO_SINK): Define.
5979         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5980         if either vectorization or if-conversion is disabled.
5981         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5982         tree-vect-data-refs.c vect_equal_offsets.
5983         (dr_equal_offsets_p): New function.
5984         (find_data_references_in_bb): Remove static.
5985         * tree-data-ref.h (find_data_references_in_bb): Declare.
5986         (dr_equal_offsets_p): Likewise.
5987         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5988         (vect_drs_dependent_in_basic_block): Update calls to
5989         vect_equal_offsets.
5990         (vect_check_interleaving): Likewise.
5991         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5992         (cond_if_else_store_replacement): Rename to...
5993         (cond_if_else_store_replacement_1): ... this.  Change arguments and
5994         documentation.
5995         (cond_if_else_store_replacement): New function.
5996         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5997         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5999 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
6001         PR target/46934
6002         * config/arm/arm.md (casesi): Use the gen_int_mode() function
6003         to subtract lower bound instead of GEN_INT().
6005 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
6007         PR other/48179
6008         PR other/48221
6009         PR other/48234
6010         * doc/extend.texi (Alignment): Move section to match order in TOC.
6011         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
6012         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
6014 2011-03-23  Jeff Law  <law@redhat.com>
6016         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
6017         before removing the edge.
6019         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
6020         it may have been freed by redirect_branch_edge or
6021         redirect_edge_succ_nodup.
6023 2011-03-23  Richard Guenther  <rguenther@suse.de>
6025         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
6026         (check_va_list_escapes): Likewise.
6027         (check_all_va_list_escapes): Likewise.
6029 2011-03-23  Richard Guenther  <rguenther@suse.de>
6031         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
6032         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
6033         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
6034         (alias.o): Likewise.
6035         (ipa-type-escape.o): Remove.
6036         (ipa-struct-reorg.o): Likewise.
6037         (GTFILES): Remove ipa-struct-reorg.c.
6038         * alias.c: Do not include ipa-type-escape.h.
6039         * tree-ssa-alias.c: Likewise.
6040         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
6041         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
6042         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
6043         and ipa-type-escape passes.
6044         * tree-pass.h (pass_ipa_type_escape): Remove.
6045         (pass_ipa_struct_reorg): Likewise.
6046         * ipa-struct-reorg.h: Remove.
6047         * ipa-struct-reorg.c: Likewise.
6048         * ipa-type-escape.h: Likewise.
6049         * ipa-type-escape.c: Likewise.
6050         * doc/invoke.texi (-fipa-struct-reorg): Remove.
6051         (--param struct-reorg-cold-struct-ratio): Likewise.
6052         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
6053         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
6054         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
6056 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6058         * config/s390/2084.md: Enable all insn reservations also for z9_ec
6059         cpu attribute value.
6060         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
6061         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
6062         * config/s390/s390.c (processor_flags_table): New constant array.
6063         (s390_handle_arch_option): Remove.
6064         (s390_handle_option): Remove s390_handle_arch_option invocations
6065         and OPT_mwarn_framesize_ handling.
6066         (s390_option_override): Remove s390_handle_arch_option invocation.
6067         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
6068         warnings.
6069         * config/s390/s390.md (cpu attribute): Add z9_ec value.
6070         * config/s390/s390.opt (s390_tune, s390_arch)
6071         (march=): Replace s390_arch_option enum and values with
6072         processor_type.  Set variable name to s390_arch.  Set
6073         initialization value.
6074         (mtune=): Replace s390_arch_option with processor_type.  Set
6075         variable name to s390_tune.  Set initialization value.
6077 2011-03-23  Julian Brown  <julian@codesourcery.com>
6079         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
6080         accesses which are not naturally aligned.
6082 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
6084         PR target/47553
6085         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
6087 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
6089         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
6090         parameter from "int" to "enum insn_code".
6091         (expand_operand_type): New enum.
6092         (expand_operand): New structure.
6093         (create_expand_operand): New function.
6094         (create_fixed_operand, create_output_operand): Likewise
6095         (create_input_operand, create_convert_operand_to): Likewise.
6096         (create_convert_operand_from, create_address_operand): Likewise.
6097         (create_integer_operand): Likewise.
6098         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
6099         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
6100         (expand_insn, expand_jump_insn): Likewise.
6101         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
6102         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
6103         (expand_movstr, expand_builtin___clear_cache): Likewise.
6104         (expand_builtin_lock_release): Likewise.
6105         * explow.c (allocate_dynamic_stack_space): Likewise.
6106         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
6107         and use the default handling in that case.
6108         * expmed.c (check_predicate_volatile_ok): Delete.
6109         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
6110         (emit_cstore): Likewise.
6111         * expr.c (emit_block_move_via_movmem): Likewise.
6112         (set_storage_via_setmem, expand_assignment): Likewise.
6113         (emit_storent_insn, try_casesi): Likewise.
6114         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
6115         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
6116         (expand_vec_shift_expr, expand_binop_directly): Likewise.
6117         (expand_twoval_unop, expand_twoval_binop): Likewise.
6118         (expand_unop_direct, emit_indirect_jump): Likewise.
6119         (emit_conditional_move, vector_compare_rtx): Likewise.
6120         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
6121         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
6122         (expand_sync_lock_test_and_set): Likewise.
6123         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
6124         (emit_unop_insn): Likewise.
6125         (expand_copysign_absneg): Change icode to an insn_code.
6126         (create_convert_operand_from_type): New function.
6127         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
6128         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
6129         (expand_insn, expand_jump_insn): Likewise.
6130         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
6131         than const_int_operand for operand 2.
6133 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6135         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
6136         if possible.
6138 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6140         * emit-rtl.c (emit_pattern_before_noloc): New function.
6141         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
6142         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
6143         (emit_pattern_after_noloc): New function.
6144         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
6145         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
6147 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6149         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
6150         (__ffsDI2): Likewise.
6152 2011-03-22  Richard Henderson  <rth@redhat.com>
6154         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
6155         of !TARGET_ABI_OPEN_VMS.
6156         (alpha_trampoline_init, alpha_start_function): Likewise.
6157         (alpha_expand_epilogue, alpha_file_start): Likewise.
6158         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
6159         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
6160         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
6161         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
6162         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
6164 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6166         * config/s390/s390-opts.h: New.
6167         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
6168         s390_arch_flags, s390_warn_framesize, s390_stack_size,
6169         s390_stack_guard): Remove.
6170         (s390_handle_arch_option): Return void.  Take enum
6171         s390_arch_option value instead of string and searching array.
6172         (s390_handle_option): Don't assert that global structures are in
6173         use.  Access variables via opts pointer.  Use error_at.  Don't use
6174         sscanf for -mstack-guard= or -mstack-size=.  Update call to
6175         s390_handle_arch_option.
6176         (s390_option_override): Update call to s390_handle_arch_option.
6177         (s390_emit_prologue): Use %d format for s390_stack_size in
6178         diagnostic.  Use %wd for HOST_WIDE_INT.
6179         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
6180         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
6181         * config/s390/s390.opt (config/s390/s390-opts.h): New
6182         HeaderInclude entry.
6183         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
6184         s390_arch_flags, s390_warn_framesize): New Variable entries.
6185         (s390_arch_option): New Enum and EnumValue entries.
6186         (march=): Use Enum instead of Var.
6187         (mstack-guard=, mstack-size=): Use UInteger and Var.
6188         (mtune=): Use Enum.
6190 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6192         * config/score/score.c (score_handle_option): Don't assert that
6193         global structures are in use.  Access target_flags via opts
6194         pointer.  Use value of -march= option to determine target_flags
6195         settings.
6196         * config/score/score.opt (march=): Use Enum.
6197         (score_arch): New Enum and EnumValue entries.
6199 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6201         * config/mep/mep.c (option_mtiny_specified): Remove.
6202         (mep_option_override): Move register handling for -mivc2 from
6203         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
6204         instead of option_mtiny_specified.
6205         (mep_handle_option): Access target_flags via opts pointer.  Don't
6206         assert that global structures are in use.  Defer part of -mivc2
6207         handling and move it to mep_option_override.
6208         * config/mep/mep.opt (IVC2): New Mask entry.
6209         (mivc2): Use Var and Defer instead of Mask.
6211 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6213         * config/v850/v850-opts.h: New.
6214         * config/v850/v850.c (small_memory): Replace with
6215         small_memory_physical_max array.  Make that array static const.
6216         (v850_handle_memory_option): Take integer value of argument.  Take
6217         gcc_options pointer, option text and location.  Return void.
6218         Update for changes to small memory structures.
6219         (v850_handle_option): Access target_flags via opts pointer.  Don't
6220         assert that global structures are in use.  Update calls to
6221         v850_handle_memory_option.
6222         (v850_encode_data_area): Update references to small memory settings.
6223         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
6224         (enum small_memory_type): Move to v850-opts.h.
6225         * config/v850/v850.opt (config/v850/v850-opts.h): New
6226         HeaderInclude entry.
6227         (small_memory_max): New Variable entry.
6228         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
6229         (mtda, mzda): Likewise.
6231 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6233         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
6234         pointer.  Don't assert that global structures are in use.
6236 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6238         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
6239         via opts pointer.  Don't assert that global structures are in use.
6241 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6243         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
6244         (munix=93): Use Var.
6245         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
6246         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
6247         * config/pa/pa-opts.h: New.
6248         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
6249         (pa_handle_option): Don't assert that global structures are in
6250         use.  Access target_flags via opts pointer.  Don't handle
6251         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
6252         OPT_munix_98 here.
6253         (pa_option_override): Handle deferred OPT_mfixed_range_.
6255 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6257         * config/mn10300/mn10300-opts.h: New.
6258         * config/mn10300/mn10300.c (mn10300_processor,
6259         mn10300_tune_string): Remove.
6260         (mn10300_handle_option): Don't assert that global structures are
6261         in use.  Access mn10300_processor via opts pointer.  Don't handle
6262         OPT_mtune_ here.
6263         * config/mn10300/mn10300.h (enum processor_type): Move to
6264         mn10300-opts.h.
6265         (mn10300_processor): Remove.
6266         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
6267         HeaderInclude entry.
6268         (mn10300_processor): New Variable entry.
6269         (mtune=): Use Var.
6271 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6273         * config/microblaze/microblaze.c: Don't include opts.h.
6274         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
6275         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
6276         (mno-clearbss): Use Var and Warn.
6278 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6280         * config/m32r/m32r-opts.h: New.
6281         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
6282         (m32r_handle_option): Don't assert that global structures are in
6283         use.  Access target_flags and m32r_cache_flush_func via opts
6284         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
6285         OPT_mno_flush_trap here.
6286         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
6287         include of m32r-opts.h.
6288         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
6289         HeaderInclude entry.
6290         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
6291         (mmodel=): Use Enum and Var.
6292         (m32r_model): New Enum and EnumValue entries.
6293         (mno-flush-trap): Use Var.
6294         (msdata=): Use Enum and Var.
6295         (m32r_sdata): New Enum and EnumValue entries.
6297 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6299         * config/m32c/m32c.c: Don't include opts.h.
6300         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
6301         m32c_handle_option): Remove.
6302         (m32c_option_override): Check global_options_set.x_target_memregs
6303         instead of target_memregs_set.
6304         * config/m32c/m32c.h (target_memregs): Remove.
6305         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
6306         variable.
6308 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6310         * config/iq2000/iq2000-opts.h: New.
6311         * config/iq2000/iq2000.c: Don't include opts.h.
6312         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
6313         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
6314         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
6315         HeaderInclude entry.
6316         (iq2000_tune): New Variable entry.
6317         (march=): Add comment.  Use Enum.
6318         (iq2000_arch): New Enum and EnumValue entries.
6319         (mcpu=): Use Enum and Var.
6320         (iq2000_tune): New Enum and EnumValue entries.
6322 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6324         * config/ia64/ia64-opts.h: New.
6325         * config/ia64/ia64.c (ia64_tune): Remove.
6326         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
6327         here.  Use error_at.
6328         (ia64_option_override): Handle deferred OPT_mfixed_range_.
6329         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
6330         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
6331         HeaderInclude entry.
6332         (ia64_tune): New Variable entry.
6333         (mfixed-range=): Use Defer and Var.
6334         (mtune=): Use Enum and Var.
6335         (ia64_tune): New Enum and EnumValue entries.
6337 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6339         * config/frv/frv-opts.h: New.
6340         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
6341         frv-opts.h.
6342         (frv_cpu_type): Remove.
6343         * config/frv/frv.c: Don't include opts.h.
6344         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
6345         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
6346         (frv_cpu_type): New Variable entry.
6347         (frv_cpu): New Enum and EnumValue entries.
6349 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6351         * config/cris/cris.c (cris_handle_option): Access target_flags via
6352         opts pointer.  Don't assert that global structures are in use.
6353         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
6354         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
6356 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6358         * config/bfin/bfin-opts.h: New.
6359         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
6360         bfin_si_revision, bfin_workarounds): Remove.
6361         (bfin_cpus): Make static const.
6362         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
6363         not bfin_lib_id_given.
6364         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
6365         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
6366         pointer. Use error_at.  Don't assert that global structures are in use.
6367         * config/bfin/bfin.h: Include bfin-opts.h.
6368         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
6369         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
6370         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
6371         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
6372         entries.
6374 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6376         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
6377         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
6378         or -msoft-float here.
6379         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
6380         -msoft-float and -mhard-float.
6381         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
6382         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6383         msoft-float.
6384         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
6385         -msoft-float.
6386         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
6387         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
6388         not mhard-float.
6389         (LIBGCC_SPEC): Don't handle -msoft-float.
6390         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
6391         -mhard-float.
6392         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6393         msoft-float.
6394         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
6395         -mfloat-abi=*, not -msoft-float and -mhard-float.
6396         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
6397         -msoft-float.
6398         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
6399         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
6400         mhard-float and msoft-float.
6401         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
6402         mfloat-abi=soft in comments, not mhard-float and msoft-float.
6403         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6404         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
6405         mhard-float.
6406         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
6407         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
6408         msoft-float.
6409         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
6410         not mhard-float.
6411         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
6412         not msoft-float.
6414 2011-03-22  Richard Henderson  <rth@redhat.com>
6416         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
6417         TARGET_ABI_WINDOWS_NT.
6418         (alpha_output_function_end_prologue): Likewise.
6419         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
6420         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6421         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
6422         (trap, *movsi_nt_vms): Likewise.
6423         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
6424         (*tablejump_osf_nt_internal): Remove.
6425         * config/alpha/predicates.md (input_operand): Only test Pmode.
6427 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6429         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
6430         via opts pointer.  Use error_at.  Don't assert that global
6431         structures are in use.
6433 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6435         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
6436         (ix86_handle_option): Access ix86_isa_flags and
6437         ix86_isa_flags_explicit via opts pointer.  Don't assert that
6438         global structures are in use.
6439         (ix86_function_specific_save, ix86_function_specific_restore):
6440         Update ix86_isa_flags_explicit field name.
6441         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
6442         (ix86_isa_flags_explicit): Rename TargetSave entry to
6443         x_ix86_isa_flags_explicit.
6445 2011-03-22  Richard Henderson  <rth@redhat.com>
6447         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
6448         (alpha_option_override, direct_return): Likewise.
6449         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
6450         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
6451         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
6452         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6453         (alpha_expand_epilogue, alpha_end_function): Likewise.
6454         (alpha_init_libfuncs): Likewise.
6455         (struct machine_function): Remove unicosmk members.
6456         (print_operand) ['t']: Remove.
6457         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
6458         unicosmk_output_module_name, unicosmk_output_common,
6459         current_section_align, unicosmk_output_text_section_asm_op,
6460         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
6461         unicosmk_section_type_flags, unicosmk_unique_section,
6462         unicosmk_asm_named_section, unicosmk_insert_attributes,
6463         unicosmk_output_align, unicosmk_defer_case_vector,
6464         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
6465         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
6466         unicosmk_output_ssib, unicosmk_add_call_info_word,
6467         unicosmk_extern_head, unicosmk_output_default_externs,
6468         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
6469         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
6470         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
6471         * config/alpha/alpha-protos.h: Update.
6472         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
6473         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
6474         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
6475         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
6476         (*mulsi_se, mulvsi3): Likewise.
6477         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
6478         (*divmodsi_internal, call, call_value, realign): Likewise.
6479         (moddi3, umoddi3): Likewise; remove duplicate expander.
6480         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
6481         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
6482         (*movdi_nofix): Remove r/U alternative.
6483         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
6484         * config/alpha/constraints.md ("U"): Remove.
6485         * config/alpha/predicates.md (call_operand"): Don't test
6486         TARGET_ABI_UNICOSMK.
6488 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6490         * target.def (handle_option): Take gcc_options and
6491         cl_decoded_option pointers and location_t.
6492         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
6493         * doc/tm.texi: Regenerate.
6494         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
6495         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
6496         * lto-opts.c (lto_reissue_options): Generate option structure for
6497         targetm.handle_option call.
6498         * opts.c (target_handle_option): Update call to
6499         targetm.handle_option.  Remove assertions about values now passed
6500         down to hook.
6501         * targhooks.c (default_target_handle_option): New.
6502         * targhooks.h (default_target_handle_option): Declare.
6503         * config/alpha/alpha.c: Include opts.h.
6504         (alpha_handle_option): Update to new hook interface.
6505         * config/arm/arm.c: Include opts.h.
6506         (arm_handle_option): Update to new hook interface.
6507         * config/arm/t-arm (arm.o): Update dependencies.
6508         * config/bfin/bfin.c: Include opts.h.
6509         (bfin_handle_option): Update to new hook interface.
6510         * config/cris/cris.c: Include opts.h.
6511         (cris_handle_option): Update to new hook interface.
6512         * config/frv/frv.c: Include opts.h.
6513         (frv_handle_option): Update to new hook interface.
6514         * config/i386/i386.c: Include opts.h.
6515         (ix86_handle_option): Update to new hook interface.
6516         (ix86_valid_target_attribute_inner_p): Generate option structure
6517         for call to ix86_handle_option.
6518         * config/i386/t-i386 (i386.o): Update dependencies.
6519         * config/ia64/ia64.c: Include opts.h.
6520         (ia64_handle_option): Update to new hook interface.
6521         * config/ia64/t-ia64 (ia64.o): Update dependencies.
6522         * config/iq2000/iq2000.c: Include opts.h.
6523         (iq2000_handle_option): Update to new hook interface.
6524         * config/m32c/m32c.c: Include opts.h.
6525         (m32c_handle_option): Update to new hook interface.
6526         * config/m32r/m32r.c: Include opts.h.
6527         (m32r_handle_option): Update to new hook interface.
6528         * config/m68k/m68k.c: Include opts.h.
6529         (m68k_handle_option): Update to new hook interface.
6530         * config/mep/mep.c: Include opts.h.
6531         (mep_handle_option): Update to new hook interface.
6532         * config/microblaze/microblaze.c: Include opts.h.
6533         (microblaze_handle_option): Update to new hook interface.
6534         * config/mips/mips.c: Include opts.h.
6535         (mips_handle_option): Update to new hook interface.
6536         * config/mn10300/mn10300.c: Include opts.h.
6537         (mn10300_handle_option): Update to new hook interface.
6538         * config/pa/pa.c: Include opts.h.
6539         (pa_handle_option): Update to new hook interface.
6540         * config/pdp11/pdp11.c: Include opts.h.
6541         (pdp11_handle_option): Update to new hook interface.
6542         * config/rs6000/rs6000.c: Include opts.h.
6543         (rs6000_handle_option): Update to new hook interface.
6544         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6545         * config/rx/rx.c: Include opts.h.
6546         (rx_handle_option): Update to new hook interface.
6547         * config/s390/s390.c: Include opts.h.
6548         (s390_handle_option): Update to new hook interface.
6549         * config/score/score.c: Include opts.h.
6550         (score_handle_option): Update to new hook interface.
6551         * config/sh/sh.c: Include opts.h.
6552         (sh_handle_option): Update to new hook interface.
6553         * config/sparc/sparc.c: Include opts.h.
6554         (sparc_handle_option): Update to new hook interface.
6555         * config/v850/v850.c: Include opts.h.
6556         (v850_handle_option): Update to new hook interface.
6558 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6560         * gcc.c (driver_unknown_option_callback): Only permit and save
6561         unknown -Wno- options.
6562         (driver_wrong_lang_callback): Save options directly instead of via
6563         driver_unknown_option_callback.
6565 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6567         * combine.c (simplify_set): Try harder to find the best CC mode when
6568         simplifying a nested COMPARE on the RHS.
6570 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6572         * config/alpha/gnu.h: Remove.
6573         * config/arc: Remove directory.
6574         * config/arm/netbsd.h: Remove.
6575         * config/arm/t-pe: Remove.
6576         * config/crx: Remove directory.
6577         * config/i386/netbsd.h: Remove.
6578         * config/m68hc11: Remove directory.
6579         * config/m68k/uclinux-oldabi.h: Remove.
6580         * config/mcore/mcore-pe.h: Remove.
6581         * config/mcore/t-mcore-pe: Remove.
6582         * config/netbsd-aout.h: Remove.
6583         * config/rs6000/gnu.h: Remove.
6584         * config/sh/sh-symbian.h: Remove.
6585         * config/sh/symbian-base.c: Remove.
6586         * config/sh/symbian-c.c: Remove.
6587         * config/sh/symbian-cxx.c: Remove.
6588         * config/sh/symbian-post.h: Remove.
6589         * config/sh/symbian-pre.h: Remove.
6590         * config/sh/t-symbian: Remove.
6591         * config/svr3.h: Remove.
6592         * config/vax/netbsd.h: Remove.
6593         * config.build: Don't handle i[34567]86-*-pe.
6594         * config.gcc: Remove handling of deprecations for most deprecated
6595         targets.
6596         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6597         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6598         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6599         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6600         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6601         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6602         Remove cases.
6603         * config.host: Don't handle i[34567]86-*-pe.
6604         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6605         (ASM_SPEC32): Don't handle -mcall-gnu.
6606         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6607         -mcall-gnu.
6608         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6609         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6610         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6611         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6612         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6613         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6614         conditional on SYMBIAN.
6615         * configure.ac: Don't handle powerpc*-*-gnu*.
6616         * configure: Regenerate.
6617         * doc/extend.texi (interrupt attribute): Don't mention CRX.
6618         * doc/install-old.texi (m6811, m6812): Don't mention.
6619         * doc/install.texi (arc-*-elf*): Don't document multilib option.
6620         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6621         (m68k-uclinuxoldabi): Don't mention.
6622         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6623         Remove.
6624         (-mcall-gnu): Remove.
6625         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6626         families): Remove constraint documentation.
6628 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
6630         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6631         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6632         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6634 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
6636         * config/avr/avr-protos.h (expand_epilogue): Change prototype
6637         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6638         * config/avr/avr.c (init_cumulative_args)
6639         (avr_function_arg_advance): Use it.
6640         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6641         sibcall epilogues.
6642         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6643         (avr_function_ok_for_sibcall): ...this new function.
6644         (avr_lookup_function_attribute1): New static Function.
6645         (avr_naked_function_p, interrupt_function_p)
6646         (signal_function_p, avr_OS_task_function_p)
6647         (avr_OS_main_function_p): Use it.
6648         * config/avr/avr.md ("sibcall", "sibcall_value")
6649         ("sibcall_epilogue"): New expander.
6650         ("*call_insn", "*call_value_insn"): New insn.
6651         ("call_insn", "call_value_insn"): Remove
6652         ("call", "call_value", "epilogue"): Change expander to handle
6653         sibling calls.
6655 2011-03-21  Nick Clifton  <nickc@redhat.com>
6657         * doc/invoke.texi (Overall Options): Move closing brace to end of
6658         options list.
6659         (Optimization Options): Add missing @gol.
6660         (Directory Options): Likewise.
6661         (i386 and x86-64 Options): Likewise.
6662         (RS6000 and PowerPC Options): Likewise.
6663         (i386 and x86-64 Windows Options): Likewise.
6664         (V850 Options): Add text missing from descriptions.
6666 2011-03-22  Richard Henderson  <rth@redhat.com>
6668         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6669         (avr_incoming_return_addr_rtx): New.
6670         (emit_push_byte): New.
6671         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
6672         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
6673         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
6674         (emit_pop_byte): New.
6675         (expand_epilogue): Use it.  Pop frame pointer by bytes.
6676         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6677         (INCOMING_RETURN_ADDR_RTX): New.
6678         (INCOMING_FRAME_SP_OFFSET): New.
6679         (ARG_POINTER_CFA_OFFSET): New.
6680         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6681         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6682         (pophi): Remove.
6684         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6686 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6688         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6689         (FUNCTION_ARG_ADVANCE): Likewise.
6690         * tm.texi.in: Change references to them to hook references.
6691         * tm.texi: Regenerate.
6692         * targhooks.c (default_function_arg): Eliminate check for target
6693         macro.
6694         (default_function_incoming_arg): Likewise.
6695         (default_function_arg_advance): Likewise.
6696         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6697         (function_arg_advance): Likewise.
6698         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6700 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6702         * tree.c (build_call_1): New function.
6703         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6705 2011-03-22  Richard Guenther  <rguenther@suse.de>
6707         PR tree-optimization/48228
6708         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6709         for single-arg PHIs.
6711 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
6713         PR rtl-optimization/48143
6714         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6715         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6716         sse2_cvtps2pd): Likewise.
6718 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6720         * recog.c (canonicalize_change_group): Use validate_unshare_change.
6722 2011-03-22  Richard Guenther  <rguenther@suse.de>
6724         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6725         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6726         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6727         and REALIGN_LOAD_EXPR.
6728         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6729         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6730         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6731         DOT_PROD_EXPR case ...
6732         (expand_expr_real_2): ... here.
6733         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6734         and REALIGN_LOAD_EXPR.
6735         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6736         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6737         (vect_create_epilog_for_reduction): Likewise.
6738         (vectorizable_reduction): Likewise.
6739         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6740         * tree-vect-stmts.c (vectorizable_load): Likewise.
6742 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6744         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6746 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6748         * config/s390/s390.c (s390_delegitimize_address): Fix offset
6749         handling for PLTOFF/GOTOFF.
6751 2011-03-22  Nick Clifton  <nickc@redhat.com>
6753         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6754         trailing backslash from the end of the macro definition.
6756 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6758         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6759         and PLT unspecs.
6761 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
6763         * expr.h (prepare_operand): Move to...
6764         * optabs.h (prepare_operand): ...here and change the insn code
6765         parameter from "int" to "enum insn_code".
6766         (insn_operand_matches): Declare.
6767         * expr.c (init_expr_target): Use insn_operand_matches.
6768         (compress_float_constant): Likewise.
6769         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6770         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6771         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6772         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6773         Likewise.
6774         (gen_cond_trap): Likewise.
6775         (prepare_operand): Likewise.  Change icode to an insn_code.
6776         (insn_operand_matches): New function.
6777         * reload.c (find_reloads_address_1): Use insn_operand_matches.
6778         * reload1.c (gen_reload): Likewise.
6779         * targhooks.c (default_secondary_reload): Likewise.
6781 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6783         * config/alpha/alpha.md (unspec): New define_c_enum.
6784         (unspecv): Ditto.
6786 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6788         PR debug/48214
6789         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6790         between a call and its CALL_ARG_LOCATION note.
6792 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6794         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6796 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6798         PR c/42544
6799         PR c/48197
6800         * c-common.c (shorten_compare): If primopN is first sign-extended
6801         to opN and then zero-extended to result type, set primopN to opN.
6803 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
6805         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6806         for barrier handlers.
6808 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6810         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6811         UNSPEC constants to be in the unspec enumeration, and redefine
6812         all UNSPECV constants to be in the unspecv enumeration, so that
6813         dumps print which unspec/unspec_volatile this is.
6814         * config/rs6000/vector.md (UNSPEC_*): Ditto.
6815         * config/rs6000/paired.md (UNSPEC_*): Ditto.
6816         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6817         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6818         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6820         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6821         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6822         UNSPECV_LWSYNC, since these are used as unspec_volatile.
6823         * config/rs6000/sync.md (isync, lwsync): Ditto.
6825 2011-03-21  Richard Guenther  <rguenther@suse.de>
6827         * params.def (lto-min-partition): Fix typo.
6829 2011-03-21  Richard Guenther  <rguenther@suse.de>
6831         PR c/47939
6832         * c-decl.c (grokdeclarator): Drop to the main variant only
6833         for array types.  Drop flag_gen_aux_info check.
6835 2011-03-21  Richard Guenther  <rguenther@suse.de>
6837         PR translation/47911
6838         * params.def (lto-partitions): Fix typo.
6839         (lto-min-partition): Fix wording.
6841 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
6843         * config/rs6000/t-freebsd: Remove duplication from file.
6845 2011-03-21  Richard Guenther  <rguenther@suse.de>
6847         PR middle-end/47661
6848         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6850 2011-03-21  Richard Guenther  <rguenther@suse.de>
6852         PR lto/48210
6853         * params.def (lto-partitions): Require at least 1 partition.
6855 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6857         * gthr-solaris.h: Remove.
6858         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6859         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6860         (LIB_SPEC): Likewise.
6861         * config/sol2.opt (threads): Remove.
6862         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6863         (sparc*-*-solaris2*): Likewise.
6864         * configure.ac (enable_threads): Enable solaris support.
6865         * configure: Regenerate.
6866         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6867         * doc/install.texi (Configuration, --enable-threads=lib): Remove
6868         solaris.
6870 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6872         * config.gcc: Obsolete *-*-solaris2.8*.
6873         * doc/install.texi (Specific, *-*-solaris2*): Document it.
6875 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6877         PR bootstrap/48135
6878         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6879         reference.  Solaris 8 perl works.
6881 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6883         PR bootstrap/48135
6884         * doc/install.texi (Prerequisites): Move jar etc. up.
6885         Explain support library version requirements.
6887 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6889         PR bootstrap/48135
6890         * doc/install.texi (Prerequisites): Move Perl to build
6891         requirements.  Always necessary on Solaris 2 with Sun ld.
6893 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6895         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6896         binutils 2.21.
6897         (Specific, i?86-*-solaris2.[89]): Likewise.
6898         (Specific, i?86-*-solaris2.10): Likewise.
6899         (Specific, mips-sgi-irix6): Likewise.
6900         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6901         Update for binutils 2.21.
6903 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6905         * configure.ac (gcc_cv_lto_plugin): Fix typo.
6906         Allow -fuse-linker-plugin for non-default plugin linker.
6907         * configure: Regenerate.
6909 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6911         PR bootstrap/48167
6912         * gengtype.c (files_rules): Added rule for cp/parser.h.
6914 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6916         PR target/48213
6917         * config/s390/s390.c (s390_delegitimize_address): Don't call
6918         lowpart_subreg if orig_x has BLKmode.
6920 2011-03-21  Kai Tietz  <ktietz@redhat.com>
6922         PR target/12171
6923         * doc/plugins.texi: Adjust documentation for plugin register_callback.
6924         * tree.h (attribute_spec): Add new member affects_type_identity.
6925         * attribs.c (empty_attribute_table): Adjust attribute_spec
6926         initializers.
6927         * config/alpha/alpha.c: Likewise.
6928         * config/arc/arc.c: Likewise.
6929         * config/arm/arm.c: Likewise.
6930         * config/avr/avr.c: Likewise.
6931         * config/bfin/bfin.c: Likewise.
6932         * config/crx/crx.c: Likewise.
6933         * config/darwin.h: Likewise.
6934         * config/h8300/h8300.c: Likewise.
6935         * config/i386/cygming.h: Likewise.
6936         * config/i386/i386.c: Likewise.
6937         * config/ia64/ia64.c: Likewise.
6938         * config/m32c/m32c.c: Likewise.
6939         * config/m32r/m32r.c: Likewise.
6940         * config/m68hc11/m68hc11.c: Likewise.
6941         * config/m68k/m68k.c: Likewise.
6942         * config/mcore/mcore.c: Likewise.
6943         * config/mep/mep.c: Likewise.
6944         * config/microblaze/microblaze.c: Likewise.
6945         * config/mips/mips.c: Likewise.
6946         * config/rs6000/rs6000.c: Likewise.
6947         * config/rx/rx.c: Likewise.
6948         * config/sh/sh.c: Likewise.
6949         * config/sol2.h: Likewise.
6950         * config/sparc/sparc.c: Likewise.
6951         * config/spu/spu.c: Likewise.
6952         * config/stormy16/stormy16.c: Likewise.
6953         * config/v850/v850.c: Likewise.
6955 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
6957         * simplify-rtx.c (simplify_binary_operation_1): Handle
6958         (xor (and A B) C) case when B and C are both constants.
6960 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
6962         * tree-dfa.c (add_referenced_var): Fix typo in comment.
6964 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
6966         PR bootstrap/48168
6967         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6969 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
6971         PR rtl-optimization/48156
6972         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6973         assume df and df_lr are not NULL.
6975 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6977         PR debug/48023
6978         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6979         between a call and its CALL_ARG_LOCATION note.
6981 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6983         PR debug/48178
6984         * config/sh/sh.c (find_barrier): Don't emit a constant pool
6985         between a call and its corresponding CALL_ARG_LOCATION note.
6987 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
6989         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6990         instead of loop. Use HARD_REGISTER_NUM_P predicate.
6991         * haifa-sched.c (setup_ref_regs): Ditto.
6992         * caller-save.c (add_used_regs_1): Ditto.
6993         * dse.c (look_for_hardregs): Ditto.
6994         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6995         * sched-rgn.c (check_live_1): Ditto.
6997 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6999         * c-decl.c (diagnose_mismatched_decls): Give an error for
7000         redefining a typedef with variably modified type.
7002 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
7004         * c-decl.c (grokfield): Don't allow typedefs for structures or
7005         unions with no tag by default.
7006         * doc/extend.texi (Unnamed Fields): Update.
7008 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
7010         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
7011         Rewrite using indirect functions.
7012         (lwp_slwpcb): Ditto.
7013         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
7014         (avx_vinsertf128<mode>): Ditto.
7016 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7018         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
7019         unspecs.
7021 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7023         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
7024         splitting between a call and its corresponding CALL_ARG_LOCATION note.
7026 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
7028         PR rtl-optimization/48170
7029         * gcse.c (hoist_code): Remove bogus asserts.
7031 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
7033         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
7034         computation for prologue/epilogue.
7036 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7038         * Makefile.in (check-consistency): Remove.
7040 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
7042         PR debug/48176
7043         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
7044         arange_table_in_use is 0, but either text_section_used or
7045         cold_text_section_used is true.  Don't call it if
7046         !info_section_emitted.
7048 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
7050         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
7051         FUNCTION_VALUE_REGNO_P): Remove.
7052         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
7053         Remove.
7054         * config/avr/avr.c (avr_ret_register): Make static inline.
7055         (avr_function_value_regno_p): New function.
7056         (avr_libcall_value): Make static. Add 'func' argument.
7057         (avr_function_value): Make static. Rename 'func' argument to
7058         'fn_decl_or_type', forward it to avr_libcall_value. Call
7059         avr_ret_register function instead of RET_REGISTER macro.
7060         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7062 2011-03-18  Jason Merrill  <jason@redhat.com>
7064         PR c++/23372
7065         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
7067 2011-03-18  Richard Guenther  <rguenther@suse.de>
7069         * doc/install.texi (--enable-gold): Remove.
7070         (--with-plugin-ld): Document.
7071         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
7073 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
7075         PR middle-end/47790
7076         * expr.c (optimize_bitfield_assignment_op): Revamp to work
7077         again after expansion changes.
7079 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
7081         * combine.c (try_combine): Do simplification only call of
7082         subst() on i2 even when i1 is present. Update comments.
7084 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
7086         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
7087         and UNSPEC_PCREL_SYMOFF.
7089 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7091         * config/s390/s390.md: Use define_c_enum for the unspec constant
7092         definitions.
7094 2011-03-18  Richard Henderson  <rth@redhat.com>
7095             Jakub Jelinek  <jakub@redhat.com>
7097         PR bootstrap/48161
7098         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
7099         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
7101 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
7103         PR middle-end/47725
7104         * combine.c (cant_combine_insn_p): Don't check zero/sign
7105         extended hard registers.
7107 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
7109         PR middle-end/47725
7110         * combine.c (cant_combine_insn_p): Check zero/sign extended
7111         hard registers.
7113 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
7115         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7116         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
7117         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
7118         Change return type to bool.
7119         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7121 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
7123         PR debug/48163
7124         * var-tracking.c (prepare_call_arguments): If CALL target
7125         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
7126         pc instead of looking it up using cselib_lookup and use
7127         Pmode for it if x has VOIDmode.
7128         * dwarf2out.c (gen_subprogram_die): If also both first and
7129         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
7131         PR debug/48163
7132         * function.c (assign_parms): For data.passed_pointer parms
7133         use MEM of data.entry_parm instead of data.entry_parm itself
7134         as DECL_INCOMING_RTL.
7135         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
7136         also when passed and declared mode is the same, DECL_RTL
7137         is a MEM with pseudo as address and DECL_INCOMING_RTL is
7138         a MEM too.
7140 2011-03-16  Jeff Law  <law@redhat.com>
7142         PR rtl-optimization/37273
7143         * ira-costs.c (scan_one_insn): Detect constants living in memory and
7144         handle them like argument loads from stack slots.  Do not double
7145         count memory for memory constants and argument loads from stack slots.
7147 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
7149         PR debug/48160
7150         * var-tracking.c (prepare_call_arguments): Check SUBREG.
7152 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
7154         PR target/48171
7155         * config/i386/i386.opt: Add Save to -mavx and -mfma.
7157 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
7159         PR bootstrap/48153
7160         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
7161         if dwarf_strict.
7162         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
7163         Clear call_arg_locations and call_arg_loc_last always.
7165         PR middle-end/48152
7166         * var-tracking.c (prepare_call_arguments): If argument needs to be
7167         passed by reference, adjust argtype and mode.
7169 2011-03-17  Richard Guenther  <rguenther@suse.de>
7171         PR middle-end/48134
7172         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
7173         a value make sure to fold the statement.
7175 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
7177         PR target/43872
7178         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
7179         return condition with !cfun->calls_alloca.
7181 2011-03-17  Richard Guenther  <rguenther@suse.de>
7183         PR bootstrap/48148
7184         * lto-cgraph.c (input_overwrite_node): Clear the abstract
7185         origin for decls in other ltrans units.
7186         (input_varpool_node): Likewise.
7188 2011-03-17  Richard Guenther  <rguenther@suse.de>
7190         PR middle-end/48165
7191         * tree-object-size.c (compute_object_offset): Properly return
7192         the offset operand of MEM_REFs as sizetype.
7194 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
7196         PR rtl-optimization/48141
7197         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
7198         * dse.c: Include params.h.
7199         (active_local_stores_len): New variable.
7200         (add_wild_read, dse_step1): Clear it when setting active_local_stores
7201         to NULL.
7202         (record_store, check_mem_read_rtx): Decrease it when removing
7203         from the chain.
7204         (scan_insn): Likewise.  Increase it when adding to chain, if it
7205         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
7206         set active_local_stores to NULL before the addition.
7207         * Makefile.in (dse.o): Depend on $(PARAMS_H).
7209         PR rtl-optimization/48141
7210         * dse.c (record_store): If no positions are needed in an insn
7211         that cannot be deleted, at least unchain it from active_local_stores.
7213 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
7215         PR debug/47510
7216         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
7217         (lookup_type_die_strip_naming_typedef): ... here.
7218         (get_context_die): Use it.
7219         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
7220         the anonymous struct named by the naming typedef.
7222 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7224         PR target/48154
7225         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
7226         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7228 2011-03-16  Jeff Law  <law@redhat.com>
7230         * tree-vrp.c (identify_jump_threads): Slightly simplify type
7231         check for operands of conditional.  Allow type to be a pointer.
7233 2011-03-16  Richard Guenther  <rguenther@suse.de>
7235         PR tree-optimization/48149
7236         * fold-const.c (fold_binary_loc): Fold
7237         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
7239 2011-03-16  Richard Guenther  <rguenther@suse.de>
7241         PR tree-optimization/26134
7242         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
7243         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
7244         (non_rewritable_mem_ref_base): Handle complex type component
7245         accesses, constrain offsets for vector and complex extracts
7246         more properly.
7248 2011-03-16  Richard Guenther  <rguenther@suse.de>
7250         PR tree-optimization/48146
7251         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
7252         operands avoiding the need for renaming.
7254 2011-03-16  Richard Guenther  <rguenther@suse.de>
7256         * gimple-fold.c (maybe_fold_reference): Open-code relevant
7257         constant folding.  Move MEM_REF canonicalization first.
7258         Rely on fold_const_aggregate_ref for initializer folding.
7259         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
7261 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
7263         PR middle-end/48136
7264         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7265         arg0/arg1 or their arguments are always fold converted to matching
7266         types.
7268         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
7269         to nargs.
7271 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7273         PR lto/46944
7274         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
7275         Handle in-tree gold.
7276         (ld_vers): Extract binutils version for gold.
7277         (gcc_cv_ld_hidden): Handle gold here.
7278         (gcc_cv_lto_plugin): Determine level of linker plugin support.
7279         * configure: Regenerate.
7280         * config.in: Regenerate.
7281         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
7282         -fuse-linker-plugin otherwise.
7283         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
7284         (LINK_COMMAND_SPEC): Use it.
7285         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
7287 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
7289         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
7290         * calls.c: Remove debug.h include.
7291         (emit_call_1): Don't call virtual_call_token debug hook.
7292         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
7293         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
7294         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
7295         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
7296         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
7297         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
7298         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
7299         dwarf2out_virtual_call): Remove.
7300         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
7301         copy_call_info and virtual_call hooks.
7302         (dwarf2out_init): Don't initialize vcall_insn_table,
7303         debug_dcall_section and debug_vcall_section.
7304         (prune_unused_types): Don't mark nodes from dcall_table.
7305         (dwarf2out_finish): Don't output dcall or vcall tables.
7306         * final.c (final_scan_insn): Don't call direct_call or
7307         virtual_call debug hooks.
7308         * debug.h (struct gcc_debug_hooks): Remove direct_call,
7309         virtual_call_token, copy_call_info and virtual_call hooks.
7310         (debug_nothing_uid): Remove prototype.
7311         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
7312         copy_call_info and virtual_call hooks.
7313         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7314         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
7315         * debug.c (do_nothing_debug_hooks): Likewise.
7316         (debug_nothing_uid): Remove.
7317         * doc/invoke.texi (-fenable-icf-debug): Remove.
7318         * common.opt (-fenable-icf-debug): Likewise.
7320         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
7321         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
7322         call's MEM.  Handle functions returning aggregate through a hidden
7323         first pointer.  For virtual calls add clobbered pc to call arguments
7324         chain.
7325         * dwarf2out.c (gen_subprogram_die): Emit
7326         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
7327         can't be emitted.
7329         PR debug/45882
7330         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
7331         * rtl.h (ENTRY_VALUE_EXP): Define.
7332         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
7333         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7334         * print-rtl.c (print_rtx): Likewise.
7335         * gengtype.c (adjust_field_rtx_def): Likewise.
7336         * var-tracking.c (vt_add_function_parameter): Adjust
7337         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
7338         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
7339         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
7340         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
7341         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
7343         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
7344         Call var_location debug hook even on CALL_INSNs.
7345         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
7346         * rtl.def (ENTRY_VALUE): New.
7347         * dwarf2out.c: Include cfglayout.h.
7348         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7349         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
7350         (struct call_arg_loc_node): New type.
7351         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
7352         tail_call_site_count): New variables.
7353         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
7354         DW_TAG_GNU_call_site_parameter.
7355         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
7356         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
7357         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
7358         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
7359         and DW_AT_GNU_all_source_call_sites.
7360         (mem_loc_descriptor): Handle ENTRY_VALUE.
7361         (add_src_coords_attributes): Don't add enything if
7362         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
7363         (dwarf2out_abstract_function): Save and clear call_arg_location,
7364         call_site_count and tail_call_site_count around dwarf2out_decl call.
7365         (gen_call_site_die): New function.
7366         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
7367         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
7368         (dwarf2out_function_decl): Clear call_arg_locations,
7369         call_arg_loc_last, set call_site_count and tail_call_site_count
7370         to -1 and free block_map.
7371         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
7372         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
7373         followed by any real instructions.
7374         (dwarf2out_begin_function): Set call_site_count and
7375         tail_call_site_count to 0.
7376         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
7377         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
7378         attempt to force a DIE for it and worst case remove the attribute.
7379         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
7380         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
7381         the decl itself.
7382         * var-tracking.c: Include tm_p.h.
7383         (vt_stack_adjustments): For calls call note_register_arguments.
7384         (argument_reg_set): New variable.
7385         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
7386         ensure the VALUE is resolved.
7387         (call_arguments): New variable.
7388         (prepare_call_arguments): New function.
7389         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
7390         (struct expand_loc_callback_data): Add ignore_cur_loc field.
7391         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
7392         always use the best expression.
7393         (vt_expand_loc): Add ignore_cur_loc argument.
7394         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
7395         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
7396         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
7397         note for all calls.
7398         (vt_add_function_parameter): Use cselib_lookup_from_insn.
7399         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
7400         argument.  Don't call cselib_preserve_only_values and
7401         cselib_reset_table.
7402         (note_register_arguments): New function.
7403         (vt_initialize): Compute argument_reg_set.  Call
7404         vt_add_function_parameters before processing basic blocks instead of
7405         afterwards.  For calls call prepare_call_arguments before calling
7406         cselib_process_insn.
7407         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
7408         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
7409         (var-tracking.o): Depend on $(TM_P_H).
7410         * cfglayout.h (insn_scope): New prototype.
7411         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
7412         * cfglayout.c (insn_scope): No longer static.
7413         * insn-notes.def (CALL_ARG_LOCATION): New.
7414         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
7415         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
7416         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
7417         nothing for DECL_EXTERNAL BLOCK_VARS.
7419 2011-03-16  Alan Modra  <amodra@gmail.com>
7421         PR target/45844
7422         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
7423         create invalid offset address for vsx splat insn.
7424         * config/rs6000/predicates.md (splat_input_operand): New.
7425         * config/rs6000/vsx.md (vsx_splat_*): Use it.
7427 2011-03-15  Xinliang David Li  <davidxl@google.com>
7429         PR c/47837
7430         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
7431         (normalize_preds): New function.
7432         (is_use_properly_guarded): Normalize def predicates.
7434 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7436         PR target/46788
7437         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
7438         in the output template.
7440 2011-03-15  Richard Guenther  <rguenther@suse.de>
7442         PR middle-end/47650
7443         * tree-pretty-print.c (dump_function_declaration): Properly
7444         dump unprototyped and varargs function types.
7446 2011-03-15  Richard Guenther  <rguenther@suse.de>
7448         PR tree-optimization/13954
7449         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
7450         and friends.
7452 2011-03-15  Richard Guenther  <rguenther@suse.de>
7454         PR tree-optimization/48037
7455         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
7456         selects into BIT_FIELD_REFs.
7457         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
7458         vector select.
7460 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
7462         PR tree-optimization/48129
7463         * builtins.c (fold_builtin_snprintf): Convert to type of
7464         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
7465         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
7467 2011-03-15  Richard Guenther  <rguenther@suse.de>
7469         PR tree-optimization/41490
7470         * tree-ssa-dce.c (propagate_necessity): Handle returns without
7471         value but with VUSE.
7472         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
7473         return statements.
7474         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
7475         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
7476         * tree-tailcall.c (find_tail_calls): Ignore returns.
7478 2011-03-15  Richard Guenther  <rguenther@suse.de>
7480         PR middle-end/48031
7481         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
7482         or variable-indexed array accesses when in gimple form.
7484 2011-03-15  Richard Guenther  <rguenther@suse.de>
7486         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
7488 2011-03-15  Alan Modra  <amodra@gmail.com>
7490         PR target/48032
7491         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
7492         presume symbol_refs without a symbol_ref_decl are suitably
7493         aligned, nor other trees we may see here.  Handle anchor symbols.
7494         (legitimate_constant_pool_address_p): Comment.  Add mode param.
7495         Check cmodel=medium addresses.  Adjust all calls.
7496         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
7497         creating cmodel=medium optimized access to locals.
7498         * config/rs6000/constraints.md (R): Pass QImode to
7499         legitimate_constant_pool_address_p.
7500         * config/rs6000/predicates.md (input_operand): Pass mode to
7501         legitimate_constant_pool_address_p.
7502         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
7503         Update prototype.
7505 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7507         PR target/48053
7508         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
7509         64-bit constants being loaded into registers other than GPRs such
7510         as loading 0 into a VSX register.
7512 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7514         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
7516 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7518         PR middle-end/47917
7519         * builtins.c (fold_builtin_snprintf): New function.
7520         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
7521         (fold_builtin_4): Likewise.
7523         PR middle-end/38878
7524         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7525         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
7526         and C - X == X also strip nops from +/-/p+ operand.
7527         When optimizing -X == C, fold C to arg0's type.
7529         PR debug/47946
7530         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7531         emit it as add_AT_int instead of add_AT_unsigned.
7533 2011-03-14  Tom Tromey  <tromey@redhat.com>
7535         * unwind-dw2.c: Include sys/sdt.h if it exists.
7536         (_Unwind_DebugHook): Use STAP_PROBE2.
7537         * config.in, configure: Rebuild.
7538         * configure.ac: Check for sys/sdt.h.
7540 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
7542         * config/i386/i386.md (ROUND_FLOOR): New constant.
7543         (ROUND_CEIL): Ditto.
7544         (ROUND_TRUNC): Ditto.
7545         (ROUND_MXCSR): Ditto.
7546         (ROUND_NO_EXC): Ditto.
7547         (rint<mode>2): Use new defines instead of numerical constants.
7548         (floor<mode>2): Ditto.
7549         (ceil<mode>2): Ditto.
7550         (btrunc<mode>2): Ditto.
7551         * config/i386/i386-builtin-types.def: Define ROUND function type
7552         aliases.
7553         * config/i386/i386.c (enum ix86_builtins): Add
7554         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7555         (struct builtin_description): Add
7556         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7557         (ix86_expand_sse_round): New static function.
7558         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7559         function types.
7560         (ix86_builtin_vectorized_function): Handle
7561         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7563 2011-03-14  Tom Tromey  <tromey@redhat.com>
7565         * c-parser.c (c_parser_asm_string_literal): Clear
7566         warn_overlength_strings.
7568 2011-03-14  Tom Tromey  <tromey@redhat.com>
7570         * c-parser.c (disable_extension_diagnostics): Save
7571         warn_overlength_strings.
7572         (restore_extension_diagnostics): Restore warn_overlength_strings.
7574 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7576         * BASE-VER: Change to 4.7.0.
7578 2011-03-14  Richard Guenther  <rguenther@suse.de>
7580         PR middle-end/48098
7581         * tree.c (build_vector_from_val): Adjust assert to requirements
7582         and reality.
7584 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7586         PR bootstrap/48102
7587         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7589 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
7591         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7592         terms of target_flags_explicit. Adjust copyright year.
7594         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7595         * config/rs6000/t-freebsd: New file. Add override for
7596         LIB2FUNCS_EXTRA.
7598 2011-03-13  Chris Demetriou  <cgd@google.com>
7600         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7601         (-fno-diagnostics-show-option): this, to reflect current default.
7602         (-Werror=): Update text about -fno-diagnostics-show-option.
7604 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
7606         PR target/48053
7607         * config/rs6000/predicates.md (easy_vector_constant_add_self,
7608         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7609         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7610         mode is not V2DImode or V2DFmode.
7611         (vspltis_constant): Do not handle V2DImode and V2DFmode.
7612         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7613         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7614         registers to 0.
7615         (movdi_internal64): Likewise.
7617 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
7619         PR tree-optimization/47127
7620         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7621         parameter.
7622         (set_cloog_options): Same.
7623         (scop_to_clast): Same.
7624         (print_clast_stmt): Do not call cloog_state_malloc and
7625         cloog_state_free.
7626         (print_generated_program): Same.
7627         (gloog): Same.
7628         * graphite-clast-to-gimple.h (cloog_state): Declared.
7629         (scop_to_clast): Adjust declaration.
7630         * graphite.c (cloog_state): Defined here.
7631         (graphite_initialize): Call cloog_state_malloc.
7632         (graphite_finalize): Call cloog_state_free.
7634 2011-03-11  Jason Merrill  <jason@redhat.com>
7636         * attribs.c (lookup_attribute_spec): Take const_tree.
7637         * tree.h: Adjust.
7639 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
7641         * config/sparc/sparc.c (sparc_option_override): Use
7642         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7644 2011-03-11  Richard Guenther  <rguenther@suse.de>
7646         PR tree-optimization/48067
7647         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7648         multiplication result will be only used once on the target
7649         stmt.
7651 2011-03-11  Richard Guenther  <rguenther@suse.de>
7653         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7655 2011-03-11  Richard Guenther  <rguenther@suse.de>
7657         PR lto/48073
7658         * tree.c (find_decls_types_r): Do not walk types only reachable
7659         from IDENTIFIER_NODEs.
7661 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7663         PR middle-end/48044
7664         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7665         all vnode->force_output nodes as needed.
7667 2011-03-11  Jason Merrill  <jason@redhat.com>
7669         PR c++/48069
7670         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7671         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7673 2011-03-11  Martin Jambor  <mjambor@suse.cz>
7675         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7676         cgraph_node.
7678 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7680         PR tree-optimization/48063
7681         * ipa-inline.c (cgraph_decide_inlining): Don't try to
7682         inline functions called once if !tree_can_inline_p (node->callers).
7684 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
7686         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7687         extra_objs.
7688         * config/score/score3.c: Delete.
7689         * config/score/score3.h: Delete.
7690         * config/score/mul-div.S: Delete.
7691         * config/score/sfp-machine.h: Add new file.
7692         * config/score/constraints.md: Add new file.
7693         * config/score/t-score-softfp: Add new file.
7694         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7695         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7696         (score7_extra_constraint): Delete.
7697         (score7_option_override): Remove unused code.
7698         * config/score/score.c: Remove score3 and score5 define and code.
7699         * config/score/score.h: Remove score3 and score5 define and code.
7700         * config/score/score.md: Remove score3 template and unusual insn.
7701         * config/score/score.opt: Remove score3 and score5 options.
7703 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7705         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7706         when _HPUX_SOURCE is defined.
7707         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7709 2011-03-10  Jason Merrill  <jason@redhat.com>
7711         PR c++/48029
7712         * stor-layout.c (layout_type): Don't set structural equality
7713         on arrays of incomplete type.
7714         * tree.c (type_hash_eq): Handle comparing them properly.
7716 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
7718         PR debug/48043
7719         * config/s390/s390.c (s390_delegitimize_address): Make sure the
7720         result mode matches original rtl mode.
7722 2011-03-10  Nick Clifton  <nickc@redhat.com>
7724         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7725         (andsi3, andsi3_flags): Fix timings for three operand alternative.
7727 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
7729         PR rtl-optimization/47866
7730         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7731         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7732         if target wasn't scalar.
7733         * function.c (assign_stack_temp_for_type): Assert that neither
7734         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7735         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7736         macro.
7737         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7739 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7741         * config/s390/s390-protos.h (s390_label_align): New prototype.
7742         * config/s390/s390.c (s390_label_align): New function.
7743         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7745 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7747         PR target/47755
7748         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7749         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
7750         (output_vec_const_move): Ditto.
7752 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
7754         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7755         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7756         * config/mips/mips.c (mips_preferred_reload_class): Make static.
7757         Change 'rclass' argument and result type to reg_class_t.
7758         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7760 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
7762         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7763         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7764         (TARGET_MEMORY_MOVE_COST): Define.
7765         (avr_register_move_cost, avr_memory_move_cost): New Functions.
7767 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
7769         PR debug/47881
7770         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7771         removed anything.
7773         PR tree-optimization/48022
7774         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7775         for EQ/NE_EXPR.
7777 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
7779         PR debug/47991
7780         * var-tracking.c (find_use_val): Return NULL for
7781         cui->sets && cui->store_p BLKmode MEMs.
7783 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
7785         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7786         Remove.
7787         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7788         xstormy16_print_operand_address): Remove.
7789         * config/stormy16/stormy16.c (xstormy16_print_operand,
7790         xstormy16_print_operand_address): Make static.
7791         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7793 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
7795         PR target/47862
7796         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7797         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7798         before definition.
7800 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
7802         PR bootstrap/48000
7803         * cfgloopmanip.c (fix_bb_placements): Return immediately
7804         if FROM is BASE_LOOP's header.
7806 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
7808         * gimplify.c (gimplify_function_tree): Fix building calls
7809         to __builtin_return_address.
7811 2011-03-07  Alan Modra  <amodra@gmail.com>
7813         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7814         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7815         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7816         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7817         return_mode args.
7818         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7819         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7820         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7821         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7822         * config/rs6000/rs6000.c
7823         (rs6000_elf_end_indicate_exec_stack): Rename to..
7824         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
7825         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
7826         (rs6000_file_start): ..here.
7827         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7828         file scope variables.
7829         (call_ABI_of_interest): New function.
7830         (init_cumulative_args): Set above vars when function return value
7831         is a float, vector, or small struct.
7832         (rs6000_function_arg_advance_1): Likewise for function args.
7833         (rs6000_va_start): Set rs6000_passes_float if variable arg function
7834         references float args.
7836 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
7838         * doc/cfg.texi: Remove "See" before @ref.
7839         * doc/invoke.texi: Likewise.
7841 2011-03-05  Jason Merrill  <jason@redhat.com>
7843         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7845 2011-03-05  Anthony Green  <green@moxielogic.com>
7847         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7849 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
7851         PR rtl-optimization/47899
7852         * cfgloopmanip.c (fix_bb_placements): Fix first argument
7853         to flow_loop_nested_p when moving the loop upward.
7855 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
7857         PR target/47719
7858         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
7860 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
7862         PR tree-optimization/47967
7863         * ipa-cp.c (build_const_val): Return NULL instead of creating
7864         VIEW_CONVERT_EXPR for mismatching sizes.
7865         (ipcp_create_replace_map): Return NULL if build_const_val failed.
7866         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7867         give up on versioning.
7869 2011-03-05  Alan Modra  <amodra@gmail.com>
7871         PR target/47986
7872         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7873         full cmodel medium/large lo_sum + high addresses.
7875 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7877         * config/s390/s390.c (s390_decompose_address): Reject non-literal
7878         pool references in UNSPEC_LTREL_OFFSET.
7880 2011-03-04  Jan Hubicka  <jh@suse.cz>
7882         PR lto/47497
7883         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7884         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7885         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7886         Add node pointers.
7887         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7888         cgraph_add_thunk): Add node pointers.
7889         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7890         associated to right node.
7891         (input_node): Update use of cgraph_same_body_alias
7892         and cgraph_add_thunk.
7894 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
7896         * config/i386/i386.opt (mprefer-avx128): New flag.
7897         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7898         modes when the flag -mprefer-avx128 is on.
7900 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
7902         * dwarf2out.c (compare_loc_operands): Fix address handling.
7904 2011-03-04  Alan Modra  <amodra@gmail.com>
7906         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7908 2011-03-04  Richard Guenther  <rguenther@suse.de>
7910         PR middle-end/47968
7911         * expmed.c (extract_bit_field_1): Prefer vector modes that
7912         vec_extract patterns can handle.
7914 2011-03-04  Richard Guenther  <rguenther@suse.de>
7916         PR middle-end/47975
7917         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7919 2011-03-04  Richard Henderson  <rth@redhat.com>
7921         * explow.c (emit_stack_save): Remove 'after' parameter.
7922         (emit_stack_restore): Likewise.
7923         * expr.h: Update to match.
7924         * builtins.c, calls.c, stmt.c: Likewise.
7925         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7926         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7927         * function.c (expand_function_end): Insert the emit_stack_save
7928         sequence before parm_birth_insn instead of after.
7930 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
7932         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7933         (ssse3_pmaddubsw128): Ditto.
7934         (ssse3_pmaddubsw): Ditto.
7936 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
7938         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7940 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
7942         PR c/47963
7943         * gimplify.c (omp_add_variable): Only call omp_notice_variable
7944         on TYPE_SIZE_UNIT if it is a DECL.
7946         PR debug/47283
7947         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7948         first operand is not is_gimple_mem_ref_addr, try to fold it.
7949         If the operand still isn't is_gimple_mem_ref_addr, clear
7950         MEM_EXPR on op0.
7952 2011-03-03  Richard Guenther  <rguenther@suse.de>
7954         PR middle-end/47283
7955         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7956         match comment.
7957         (refs_may_alias_p_1): For release branches return true if
7958         we are confused by our input.
7960 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7962         * config/s390/s390.c (s390_function_value): Rename to ...
7963         (s390_function_and_libcall_value): ... this.
7964         (s390_function_value): New function.
7965         (s390_libcall_value): New function.
7966         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7967         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7968         target macro definitions.
7969         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7971 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
7973         * config/i386/freebsd64.h (CC1_SPEC): Define.
7974         * config/i386/linux64.h (CC1_SPEC): Define.
7975         * config/i386/x86-64.h (CC1_SPEC): Don't define.
7977 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
7979         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7980         Remove.
7981         * config/stormy16/stormy16.c: Include reload.h.
7982         (xstormy16_memory_move_cost): New function.
7983         (TARGET_MEMORY_MOVE_COST): Define.
7985 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
7987         PR rtl-optimization/47925
7988         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7989         with side effects.  Remove the more-specific check for volatile asms.
7991 2011-03-02  Alan Modra  <amodra@gmail.com>
7993         PR target/47935
7994         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7995         toc relative addresses for valid offsets.
7997 2011-03-01  Richard Guenther  <rguenther@suse.de>
7999         PR tree-optimization/47890
8000         * tree-vect-loop.c (get_initial_def_for_induction): Set
8001         related stmt properly.
8003 2011-03-01  Richard Guenther  <rguenther@suse.de>
8005         PR lto/47924
8006         * lto-streamer.c (lto_record_common_node): Also register
8007         the canonical type.
8009 2011-03-01  Richard Guenther  <rguenther@suse.de>
8011         PR lto/46911
8012         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8013         Do not stream DECL_ABSTRACT_ORIGIN.
8014         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
8015         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
8016         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8017         Do not stream DECL_ABSTRACT_ORIGIN.
8018         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
8019         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
8021 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
8023         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
8024         FUNCTION_VALUE_REGNO_P): Remove.
8025         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
8026         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
8027         Add 'outgoing' argument.
8028         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
8029         function.
8030         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8031         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8033 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
8035         PR debug/28047
8036         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
8037         (lookup_filename): Likewise.
8038         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
8040 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
8041             Jakub Jelinek  <jakub@redhat.com>
8043         PR middle-end/47893
8044         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
8045         (assign_stack_local_1): Change last argument type to int.
8046         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
8047         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
8048         don't record padding space into frame_space_list nor use those areas.
8049         (assign_stack_local): Adjust caller.
8050         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
8051         of assign_stack_local, pass 0 as last argument.
8052         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
8053         callers.
8055 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
8057         PR debug/47283
8058         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
8059         Use target address_mode and pointer_mode hooks instead of hardcoded
8060         Pmode and ptr_mode.  Handle some simple cases of extending if
8061         POINTERS_EXTEND_UNSIGNED < 0.
8062         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
8063         Call convert_debug_memory_address.
8064         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
8065         convert_debug_memory_address.
8067         PR middle-end/46790
8068         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
8069         * configure: Regenerated.
8070         * config.in: Regenerated.
8071         * varasm.c (default_function_section): Return NULL
8072         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
8074 2011-02-28  Martin Jambor  <mjambor@suse.cz>
8076         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
8077         the description to match the printed values.
8079 2011-02-28  Richard Guenther  <rguenther@suse.de>
8081         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
8082         of the copied scope tree.
8084 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8086         * doc/extend.texi (Function Attributes): Avoid deeply (and
8087         wrongly) nested tables.
8089 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
8091         PR middle-end/47903
8092         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
8093         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
8094         r isn't op0 nor op1.
8096 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
8098         * config/avr/avr.md: Remove magic comment for emacs.
8100 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
8102         PR target/45261
8103         * config/avr/avr.c (avr_option_override): Use error on bad options.
8104         (avr_help): New function.
8105         (TARGET_HELP): Define.
8107 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
8109         PR target/42240
8110         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
8111         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
8113 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
8115         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
8116         (ARM Options): Ditto.
8117         (i386 and x86-64 Options): Ditto.
8118         (RX Options): Ditto.
8119         (SPARC Options): Ditto.
8121 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
8123         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
8124         FreeBSD 6 and later.  Generally use cpu generic.
8126 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
8128         * doc/cpp.texi: Update copyright years.
8130 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
8132         PR target/46898
8133         * config/lm32/lm32.md (ashrsi3): Added needed variable.
8135 2011-02-25  Jon Beniston  <jon@beniston.com>
8137         PR target/46898
8138         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
8139         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
8140         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
8141         (lm32_block_move_inline): Add type cast to remove warning.
8142         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
8143         (gen_int_relational): Move declarations to start of function.
8145 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
8147         PR tree-optimization/45470
8148         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
8149         can throw internally only.
8150         * tree-vect-stmts.c (vectorizable_call): Likewise.
8152 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
8154         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
8155         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8156         * config/stormy16/stormy16-protos.h
8157         (xstormy16_preferred_reload_class): Remove.
8158         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
8159         static. Change 'rclass' argument and return type to reg_class_t.
8160         (TARGET_PREFERRED_RELOAD_CLASS,
8161         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8163 2011-02-24  Richard Guenther  <rguenther@suse.de>
8165         * lto-streamer-in.c (input_bb): Do not find referenced vars
8166         in debug statements.
8168 2011-02-23  Jason Merrill  <jason@redhat.com>
8170         * common.opt (fabi-version): Document v5 and v6.
8172 2011-02-23  Richard Guenther  <rguenther@suse.de>
8174         PR tree-optimization/47849
8175         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
8177 2011-02-23  Jie Zhang  <jie@codesourcery.com>
8179         * opts-common.c (decode_cmdline_option): Print empty string
8180         argument as "" in decoded->orig_option_with_args_text.
8181         * gcc.c (execute): Print empty string argument as ""
8182         in the verbose output.
8183         (do_spec_1): Keep empty string argument.
8185 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
8187         * config.gcc: Declare score-* and crx-* obsolete.
8189 2011-02-23  Jie Zhang  <jie@codesourcery.com>
8191         PR rtl-optimization/47763
8192         * web.c (web_main): Ignore naked clobber when replacing register.
8194 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
8196         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8197         Remove.
8199 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
8201         PR doc/47848
8202         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
8204 2011-02-22  Mike Stump  <mikestump@comcast.net>
8206         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
8207         assembler.
8208         * configure: Regenerate.
8210 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
8212         PR rtl-optimization/46002
8213         * ira-color.c (update_copy_costs): Change class intersection
8214         test to reg_class_contents[] test of 'hard_regno'.
8216 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
8218         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
8219         than Driver option.
8220         * config/hpux11.opt (mt): Likewise.
8221         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
8222         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
8223         * config/vax/elf.opt (mno-asm-pic): Likewise.
8224         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
8226 2011-02-21  Mike Stump  <mikestump@comcast.net>
8228         PR target/47822
8229         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
8230         tree so we can get save the type.
8231         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
8232         for CFString instead of trying to use past the end of the builtins.
8233         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
8234         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
8235         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
8236         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
8237         Rename to darwin_builtin_cfstring.
8238         (darwin_init_cfstring_builtins): Return the built type.
8240 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
8242         PR target/47840
8243         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
8244         (_mm256_insert_epi64): Use _mm_insert_epi64.
8246 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
8248         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8249         * config/stormy16/stormy16-protos.h
8250         (xstormy16_mode_dependent_address_p): Remove.
8251         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
8252         Make static. Change return type to bool. Change argument type to
8253         const_rtx. Remove dead code.
8254         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8256 2011-02-21  Richard Guenther  <rguenther@suse.de>
8258         PR lto/47820
8259         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8260         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
8261         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
8262         TUs context.
8263         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8264         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
8266 2011-02-20  Richard Guenther  <rguenther@suse.de>
8268         PR lto/47822
8269         * tree.c (free_lang_data_in_decl): Clean builtins from
8270         the TU decl BLOCK_VARS.
8272 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
8274         PR debug/47620
8275         PR debug/47630
8276         * haifa-sched.c (fix_tick_ready): Skip tick computation
8277         for debug insns.
8279 2011-02-19  Richard Guenther  <rguenther@suse.de>
8281         PR lto/47647
8282         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
8283         Remove lazy BLOCK_VARS streaming.
8284         (lto_input_ts_block_tree_pointers): Likewise.
8285         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
8287 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
8289         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
8291 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
8293         * config/i386/biarch32.h, config/i386/mach.h,
8294         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
8296 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
8298         PR target/47800
8299         * config/i386/i386.md (peephole2 for shift and plus): Use
8300         operands[1] original mode in the first insn.
8302 2011-02-18  Mike Stump  <mikestump@comcast.net>
8304         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8306 2011-02-18  Jan Hubicka  <jh@suse.cz>
8308         PR middle-end/47788
8309         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
8310         to zero when the function is not inlinable at all.
8312 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8314         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
8315         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8316         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
8317         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
8318         * config/pa/t-pa64: Likewise.
8319         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8321 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
8323         PR driver/47787
8324         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
8326 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8328         PR target/47792
8329         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
8331 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
8333         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8334         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
8335         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
8336         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8337         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
8338         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
8339         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
8340         m32r_load_postinc_p, m32r_store_preinc_predec_p,
8341         m32r_legitimate_address_p): New functions.
8342         * config/m32r/constraints.md (constraint "S"): Don't use
8343         STORE_PREINC_PREDEC_P.
8344         (constraint "U"): Don't use LOAD_POSTINC_P.
8346 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
8348         PR rtl-optimization/46178
8349         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
8350         compute ira_hard_regno_cover_class[].
8352 2011-02-18  Richard Guenther  <rguenther@suse.de>
8354         PR lto/47798
8355         * lto-streamer.h (lto_global_var_decls): Declare.
8356         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
8357         statics for global var processing.
8359 2011-02-18  Richard Guenther  <rguenther@suse.de>
8361         PR tree-optimization/47737
8362         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
8363         edge dominance check.
8365 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
8367         PR debug/47780
8368         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
8369         avoid invalid rtx sharing.
8371 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
8373         * doc/cpp.texi (Obsolete Features): Add background on the
8374         origin of assertions.
8376 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
8378         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
8379         objc_abi == 2.
8380         * config/darwin.c (output_objc_section_asm_op): Added support for
8381         ABI v1 and v2.
8382         (is_objc_metadata): New.
8383         (darwin_objc2_section): New.
8384         (darwin_objc1_section): New.
8385         (machopic_select_section): Added support for ABI v1 and v2.
8386         (darwin_emit_objc_zeroed): New.
8387         (darwin_output_aligned_bss): Detect objc metadata and treat it
8388         appropriately.
8389         (darwin_asm_output_aligned_decl_common): Same.
8390         (darwin_asm_output_aligned_decl_local): Same.
8391         * config/darwin-sections.def: Updated for ABI v1 and v2.
8392         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
8393         compiling Objective-C code for the NeXT runtime, default to using
8394         ABI version 0 for 32-bit, and version 2 for 64-bit.
8396 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8398         * common.opt (optimize_fast): New Variable.
8399         * opts.c (default_options_optimization): Use opts->x_optimize_fast
8400         instead of local variable ofast.
8402 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
8404         * doc/invoke.texi (fobjc-abi-version): Documented.
8405         (fobjc-nilcheck): Documented.
8406         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
8407         version.
8409 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8411         PR driver/47390
8412         * common.opt (export-dynamic): New Driver option.
8413         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
8415 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8417         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
8419 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
8420             Jan Hubicka  <jh@suse.cz>
8422         PR debug/47106
8423         PR debug/47402
8424         * cfgexpand.c (account_used_vars_for_block): Remove.
8425         (estimated_stack_frame_size): Use referenced vars.
8426         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
8427         that were referenced in the original function.  Test src_fn
8428         rather than cfun.  Drop redundant get_var_ann.
8429         (setup_one_parameter): Drop redundant get_var_ann.
8430         (declare_return_variable): Likewise.
8431         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
8432         (copy_arguments_for_versioning): Drop redundant get_var_ann.
8433         * ipa-inline.c (compute_inline_parameters): Do not compute
8434         disregard_inline_limits here.
8435         (compute_inlinable_for_current, pass_inlinable): New.
8436         (pass_inline_parameters): Require PROP_referenced_vars.
8437         * cgraphunit.c (cgraph_process_new_functions): Don't run
8438         compute_inline_parameters explicitly unless function is in SSA form.
8439         (cgraph_analyze_function): Set .disregard_inline_limits.
8440         * tree-sra.c (convert_callers): Compute inliner parameters
8441         only for functions already in SSA form.
8443 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8445         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
8446         -mlittle-endian-data.
8448 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8450         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
8451         -mno-fpu, not -fpu and -no-fpu.
8452         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
8453         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
8455 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
8457         PR target/43653
8458         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
8459         input reload with PLUS RTX.
8461 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8463         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
8464         of InverseVar(MDMX).
8466 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8468         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
8469         --m4-340.
8471 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8473         * config/mn10300/mn10300.opt (mno-crt0): New.
8475 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8477         * config/m68k/uclinux.opt (static-libc): New Driver option.
8479 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8481         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
8483 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8485         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
8486         %{muser-extend-enabled}.
8488 2011-02-16  Richard Guenther  <rguenther@suse.de>
8490         PR tree-optimization/47738
8491         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
8492         the TODO from tree_predictive_commoning.
8494 2011-02-15  Jeff Law  <law@redhat.com>
8496         Revert
8497         2011-01-25  Jeff Law  <law@redhat.com>
8499         PR rtl-optimization/37273
8500         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8501         handle them like argument loads from stack slots.  Do not double
8502         count memory for memory constants and argument loads from stack slots.
8504 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8506         PR middle-end/47725
8507         * combine.c (cant_combine_insn_p): Revert the last change.
8509 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
8511         PR target/47755
8512         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
8513         mode for vector constants.  Remove code that checks for TImode.
8515 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8517         PR debug/47106
8518         PR debug/47402
8519         * cgraph.h (compute_inline_parameters): Return void.
8520         * ipa-inline.c (compute_inline_parameters): Adjust.
8522 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8524         PR debug/47106
8525         PR debug/47402
8526         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8527         rather than decl.
8528         * cfgexpand.c (estimated_stack_frame_size): Likewise.
8529         * ipa-inline.c (compute_inline_parameters): Adjust.
8531 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8533         PR debug/47106
8534         PR debug/47402
8535         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8536         Adjust all users.  Pass FN to...
8537         * tree-flow-inline.h (first_referenced_var): ... this.  Add
8538         fn argument.
8539         * ipa-struct-reorg.c: Adjust.
8540         * tree-dfa.c: Adjust.
8541         * tree-into-ssa.c: Adjust.
8542         * tree-sra.c: Adjust.
8543         * tree-ssa-alias.c: Adjust.
8544         * tree-ssa-live.c: Adjust.
8545         * tree-ssa.c: Adjust.
8546         * tree-ssanames.c: Adjust.
8547         * tree-tailcall.c: Adjust.
8549 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8551         PR debug/47106
8552         PR debug/47402
8553         * tree-flow.h (referenced_var_lookup): Add fn parameter.
8554         Adjust all callers.
8555         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8556         * tree-flow-inline.h: Adjust.
8557         * gimple-pretty-print.c: Adjust.
8558         * tree-into-ssa.c: Adjust.
8559         * tree-ssa.c: Adjust.
8560         * cfgexpand.c: Adjust.
8562 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8564         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8565         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8566         (EXTRA_CONSTRAINT): Delete.
8567         * config/iq2000/constraints.md: New file.
8568         * config/iq2000/iq2000.md: Include it.
8569         (define_insn ""): Delete.
8570         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8571         unsupported constraint letters from patterns.
8572         (call_value, call_value_internal1): Likewise.
8573         (call_value_multiple_internal1): Likewise.
8575 2011-02-15  Nick Clifton  <nickc@redhat.com>
8577         * config/mn10300/mn10300.c: Include tm-constrs.h.
8578         (struct liw_data): New data structure describing an LIW candidate
8579         instruction.
8580         (extract_bundle): Use struct liw_data.  Allow small integer
8581         operands for some instructions.
8582         (check_liw_constraints): Use struct liw_data.  Remove swapped
8583         parameter.  Add comments describing the checks.  Fix bug when
8584         assigning the source of liw1 to the source of liw2.
8585         (liw_candidate): Delete.  Code moved into extract_bundle.
8586         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
8587         before swapping.
8588         * config/mn10300/predicates.md (liw_operand): New predicate.
8589         Allows registers and small integer constants.
8590         * config/mn10300/constraints.md (O): New constraint.  Accetps
8591         integers in the range -8 to +7 inclusive.
8592         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8593         for moving a small integer into a register.  Give this alternative
8594         LIW attributes.
8595         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8596         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8597         using the J,K,L and M constraints,
8598         (liw): Remove SI mode on second operands to allow for HI and QI
8599         mode values.
8600         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
8601         instruction.
8603 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8605         PR middle-end/47725
8606         * combine.c (cant_combine_insn_p): Check zero/sign extended
8607         hard registers.
8609 2011-02-15  Richard Guenther  <rguenther@suse.de>
8611         PR tree-optimization/47743
8612         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8613         for a non-type-compatible VN lookup bail out.
8615 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8617         * config/fr30/constraints.md: New file.
8618         * config/fr30/fr30.md: Include it.
8619         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8620         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8621         (EXTRA_CONSTRAINT): Delete.
8623 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8625         * config/frv/constraints.md: New file.
8626         * config/frv/predicates.md: Include it.
8627         * config/frv/frv.c (reg_class_from_letter): Delete.
8628         (frv_option_override): Don't initialize it.
8629         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8630         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8631         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8632         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8633         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8634         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8635         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8636         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8637         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8638         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8639         (REG_CLASS_FROM_CONSTRAINT): Delete.
8641 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
8643         PR middle-end/47581
8644         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8645         if frame size is 0 in a leaf function.
8647 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8649         PR pch/14940
8650         * config/alpha/host-osf.c: New file.
8651         * config/alpha/x-osf: New file.
8652         * config.host (alpha*-dec-osf*): Use it.
8654 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8656         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8657         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8658         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8659         (rx_mode_dependent_address_p): ...this. Make static. Change argument
8660         type to const_rtx.
8661         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8663 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8665         * config/stormy16/constraints.md: New file.
8666         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8667         Use satisfies_constraint_Q and satisfies_constraint_R.
8668         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8669         Delete.
8670         (xstormy16_legitiamte_address_p): Declare.
8671         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8672         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8673         (EXTRA_CONSTRAINT): Delete.
8674         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8675         Un-staticize.
8676         (xstormy16_extra_constraint_p): Delete.
8678 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
8680         PR tree-optimization/46494
8681         * loop-unroll.c (split_edge_and_insert): Adjust comment.
8682         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8683         (pass_rtl_loop_done): Add TODO_verify_flow.
8684         * fwprop.c (pass_rtl_fwprop): Likewise.
8685         * modulo-sched.c (pass_sms): Likewise.
8686         * tree-ssa-dom.c (pass_dominator): Likewise.
8687         * tree-ssa-loop-ch.c (pass_ch): Likewise.
8688         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8689         (pass_tree_loop_done): Likewise.
8690         * tree-ssa-pre.c (execute_pre): Likewise.
8691         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8692         * tree-ssa-sink.c (pass_sink_code): Likewise.
8693         * tree-vrp.c (pass_vrp): Likewise.
8695 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8697         * config/v850/constraints.md: New file.
8698         * config/v850/v850.md: Include it.
8699         * config/v850/predicates.md (reg_or_0_operand): Use
8700         satisfies_constraint_G.
8701         (special_symbolref_operand): Use satisfies_constraint_K.
8702         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8703         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8704         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8705         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8706         (EXTRA_CONSTRAINT): Delete.
8707         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8708         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8709         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8711 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8713         PR target/47696
8714         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8715         description.
8717 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8719         * config/mcore/constraints.md: New file.
8720         * config/mcore/mcore.md: Include it.
8721         * config/mcore/mcore.c (reg_class_from_letter): Delete.
8722         * config/mcore/mcore.h (reg_class_from_letter): Delete.
8723         (REG_CLASS_FROM_LETTER): Delete.
8724         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8725         insn_const_int_ok_for_constraint.
8726         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8727         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8728         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8729         (EXTRA_CONSTRAINT): Delete.
8731 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8733         PR ada/41929
8734         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8735         (IS_SIGHANDLER): Define.
8736         (sparc64_is_sighandler): New function, split off from
8737         sparc64_fallback_frame_state.
8738         (sparc_is_sighandler): New function, split off from
8739         sparc_fallback_frame_state.
8740         (sparc64_fallback_frame_state): Merge with ...
8741         (sparc_fallback_frame_state): ... this into ...
8742         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8743         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
8744         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
8745         stack instead of hardcoded offsets.
8747 2011-02-14  Andriy Gapon  <avg@freebsd.org>
8749         PR target/45808
8750         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8752 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8754         * configure: Regenerate.
8756 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
8758         PR driver/45731
8759         * gcc.c (asm_options): Correct spec matching --target-help.
8761 2011-02-12  Martin Jambor  <mjambor@suse.cz>
8763         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8764         to gimple call error.
8766 2011-02-12  Mike Stump  <mikestump@comcast.net>
8768         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8769         comments in backslash regions.
8771 2011-02-12  Mike Stump  <mikestump@comcast.net>
8772             Jakub Jelinek  <jakub@redhat.com>
8773             Iain Sandoe  <iains@gcc.gnu.org>
8775         PR target/47324
8776         * dwarf2out.c (output_cfa_loc): When required, apply the
8777         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8778         (output_loc_sequence): Likewise.
8779         (output_loc_operands_raw): Likewise.
8780         (output_loc_sequence_raw): Likewise.
8781         (output_cfa_loc): Likewise.
8782         (output_loc_list): Suppress register number adjustment when
8783         calling output_loc_sequence()
8784         (output_die): Likewise.
8786 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
8788         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8789         Remove macros.
8790         * config/xtensa/xtensa.c (xtensa_register_move_cost,
8791         xtensa_memory_move_cost): New functions.
8792         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8794 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
8796         PR lto/47225
8797         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8798         in the current directory.
8799         * configure: Rebuilt.
8801 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8803         * config/darwin.c (darwin_override_options): Add a hunk missed
8804         from the commit of r168571.  Trim comment line lengths and
8805         correct indents of the preceding block.
8807 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8809         * gcc.c (driver_handle_option): Concatenate the argument to -F with
8810         the switch.
8812 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8814         * common.opt (nostartfiles): New Driver option.
8816 2011-02-11  Xinliang David Li  <davidxl@google.com>
8818         PR tree-optimization/47707
8819         * tree-chrec.c (convert_affine_scev): Keep type precision.
8821 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
8823         PR tree-optimization/47420
8824         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8826 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
8828         PR rtl-optimization/47614
8829         * rtl.h (check_for_inc_dec): Declare.
8830         * dse.c (check_for_inc_dec): Externalize...
8831         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8832         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8834 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8836         PR driver/47678
8837         * gcc.c (main): Do not compile inputs if there were errors in
8838         option handling.
8839         * opts-common.c (read_cmdline_option): Check for wrong language
8840         after other error checks.
8842 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
8844         * cgraph.c: Fix comment typos.
8845         * cgraph.h: Likewise.
8846         * cgraphunit.c: Likewise.
8847         * ipa-cp.c: Likewise.
8848         * ipa-inline.c: Likewise.
8849         * ipa-prop.c: Likewise.
8850         * ipa-pure-const.c: Likewise.
8851         * ipa-ref.c: Likewise.
8852         * ipa-reference.c: Likewise.
8854 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
8856         PR debug/47684
8857         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8859 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8861         PR testsuite/47400
8862         * doc/sourcebuild.texi (Require Support): Document
8863         dg-require-ascii-locale.
8865 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
8867         * doc/lto.texi (Write summary): Fix missing parentheses.
8869 2011-02-10  DJ Delorie  <dj@redhat.com>
8871         * config/m32c/m32c.c (m32c_option_override): Disable
8872         -fcombine-stack-adjustments until flag value tracking and compare
8873         optimization can be rewritten.
8875 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
8877         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8878         PROCESSOR_POWER7.
8879         (PROCESSOR_DEFAULT64): Likewise.
8881 2011-02-10  Richard Henderson  <rth@redhat.com>
8883         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8884         change from 2011-02-03.
8885         * config/rx/rx.c (flags_from_code): Likewise.
8886         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8887         is valid, n/pz otherwise.
8888         (rx_select_cc_mode): Return CCmode if Y is not zero.
8890 2011-02-10  Richard Guenther  <rguenther@suse.de>
8892         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8894 2011-02-10  Richard Guenther  <rguenther@suse.de>
8896         PR tree-optimization/47677
8897         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8899 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
8901         PR target/47665
8902         * combine.c (make_compound_operation): Only change shifts into
8903         multiplication for SCALAR_INT_MODE_P.
8905 2011-02-10  Jie Zhang  <jie@codesourcery.com>
8907         PR testsuite/47622
8908         Revert
8909         2011-02-05  Jie Zhang  <jie@codesourcery.com>
8910         PR debug/42631
8911         * web.c (entry_register): Don't clobber the number of the
8912         first uninitialized reference in used[].
8914 2011-02-09  Richard Guenther  <rguenther@suse.de>
8916         PR tree-optimization/47664
8917         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8918         all edges again.
8920 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
8922         PR target/46481
8923         PR target/47032
8924         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8925         PROCESSOR_POWER7.
8926         (PROCESSOR_DEFAULT64): Same.
8927         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8929 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8931         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8933 2011-02-09  Martin Jambor  <mjambor@suse.cz>
8935         PR middle-end/45505
8936         * tree-sra.c (struct access): New flags grp_scalar_read and
8937         grp_scalar_write.  Changed description of assignment read and write
8938         flags.
8939         (dump_access): Dump new flags, reorder all of them.
8940         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8941         to detect multiple scalar reads.
8942         (analyze_access_subtree): Use the new scalar read write flags instead
8943         of the old flags.  Adjusted comments.
8945 2011-02-08  DJ Delorie  <dj@redhat.com>
8947         PR target/47548
8948         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8949         patterns.
8951 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8953         * config/m68k/uclinux.opt: New.
8954         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8956 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8958         * config/cris/elf.opt (sim): New Driver option.
8960 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8962         * config/xtensa/elf.opt: New.
8963         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8965 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8967         * config/vax/elf.opt: New.
8968         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8970 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8972         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8974 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8976         * config/gnu-user.opt: New.
8977         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8978         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8979         *-*-uclinux*): Use gnu-user.opt.
8981 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
8983         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8984         * config/i386/gnu.h (CPP_SPEC): Likewise.
8986 2011-02-08  Ian Lance Taylor  <iant@google.com>
8988         * common.opt (fcx-limited-range): Add SetByCombined flag.
8989         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8990         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8991         (fassociative-math, freciprocal-math): Likewise.
8992         (funsafe-math-optimizations): Likewise.
8993         * opth-gen.awk: Handle SetByCombined.
8994         * optc-gen.awk: Likewise.
8995         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8996         (set_unsafe_math_optimizations_flags): Likewise.
8997         * doc/options.texi (Option properties): Document SetByCombined.
8999 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
9001         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
9002         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
9003         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
9004         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
9005         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
9007 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
9009         PR tree-optimization/46834
9010         PR tree-optimization/46994
9011         PR tree-optimization/46995
9012         * graphite-sese-to-poly.c (used_outside_reduction): New.
9013         (detect_commutative_reduction): Call used_outside_reduction.
9014         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
9015         translate_scalar_reduction_to_array only when at least one
9016         loop-phi/close-phi tuple has been detected.
9018 2011-02-08  Richard Guenther  <rguenther@suse.de>
9020         PR middle-end/47639
9021         * tree-vect-generic.c (expand_vector_operations_1): Update
9022         stmts here ...
9023         (expand_vector_operations): ... not here.  Cleanup EH info
9024         and the CFG if required.
9026 2011-02-08  Richard Guenther  <rguenther@suse.de>
9028         PR tree-optimization/47641
9029         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
9030         require type compatibility.
9032 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9034         * gimple-low.c (lower_function_body): Don't remove the location of
9035         the return statement here.
9036         (lower_gimple_return): Do it here instead but only if the return
9037         statement is actually used twice.
9039 2011-02-08  Richard Guenther  <rguenther@suse.de>
9041         PR tree-optimization/47632
9042         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
9043         unused up_to_stmt parameter, return whether cfg-cleanup is
9044         necessary, remove EH info properly.
9045         (forward_propagate_into_gimple_cond): Adjust caller.
9046         (forward_propagate_into_cond): Likewise.
9047         (forward_propagate_comparison): Likewise.
9048         (tree_ssa_forward_propagate_single_use_vars): Make
9049         forward_propagate_comparison case similar to the two others.
9051 2011-02-08  Nick Clifton  <nickc@redhat.com>
9053         * config/mn10300/mn10300.opt (mliw): New command line option.
9054         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
9055         (liw_bundling): New automaton.
9056         (liw): New attribute.
9057         (liw_op): New attribute.
9058         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
9059         (movsi_internal): Add LIW attributes.
9060         (andsi3): Likewise.
9061         (iorsi3): Likewise.
9062         (xorsi3): Likewise.
9063         (addsi3): Separate register and immediate alternatives.
9064         Add LIW attributes.
9065         (subsi3): Likewise.
9066         (cmpsi): Likewise.
9067         (aslsi3): Likewise.
9068         (lshrsi3): Likewise.
9069         (ashrsi3): Likewise.
9070         (liw): New pattern.
9071         * config/mn10300/mn10300.c (liw_op_names): New
9072         (mn10300_print_operand): Handle 'W' operand descriptor.
9073         (extract_bundle): New function.
9074         (check_liw_constraints): New function.
9075         (liw_candidate): New function.
9076         (mn10300_bundle_liw): New function.
9077         (mn10300_reorg): New function.
9078         (TARGET_MACHINE_DEPENDENT_REORG): Define.
9079         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
9080         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
9081         __LIW__ or __NO_LIW__.
9082         * doc/invoke.texi: Describe the -mliw command line option.
9084 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9086         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
9087         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9088         pthread_mutex_unlock): Remove.
9089         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
9090         * config/pa/t-pa64: Likewise.
9091         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
9092         shared libc if not linking against libpthread.
9093         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9095 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
9097         PR target/47558
9098         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
9099         on 10.6 and later to ensure that we always use the unwinder from
9100         the system.  Only add -no_compact_unwind when tarteting darwin
9101         10.6 or later.
9103 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
9105         PR target/46997
9106         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
9107         (vec_interleave_lowv2sf): Ditto.
9108         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
9109         (vec_extract_oddv2sf): Ditto.
9111 2011-02-07  Mike Stump  <mikestump@comcast.net>
9113         PR target/42333
9114         Add __ieee_divdc3 entry point.
9115         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
9116         entry point.
9117         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
9118         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
9119         * config/darwin.c (darwin_rename_builtins): Add.
9120         * config/darwin-protos.h (darwin_rename_builtins): Add.
9122 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
9124         PR target/47636
9125         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
9126         for the condition.
9128 2011-02-07  Mike Stump  <mikestump@comcast.net>
9130         * config/darwin.opt (mmacosx-version-min): Update default OS version.
9132 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
9134         PR target/47534
9135         * config/avr/libgcc.S (exit): Move .endfunc
9137 2011-02-07  Richard Guenther  <rguenther@suse.de>
9139         PR tree-optimization/47615
9140         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
9141         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
9142         (run_scc_vn): Initialize it.
9143         (visit_reference_op_load): Use it.
9144         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
9146 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9148         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
9149         DImode trapping arithmetic libfuncs.
9151 2011-02-07  Richard Guenther  <rguenther@suse.de>
9153         PR tree-optimization/47621
9154         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
9155         two duplicates ...
9156         (execute_update_addresses_taken): ... here.  Make it more
9157         conservative in what we accept.
9159 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
9161         * config/sparc/freebsd.h (ASM_SPEC): Define.
9162         * config/sparc/vxworks.h (ASM_SPEC): Define.
9164 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
9166         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9168 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
9170         * doc/invoke.texi: Remove reference to compiler internals from
9171         user documentation.
9173         * reg-notes.def: Remove REG_VALUE_PROFILE.
9174         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
9176 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
9178         PR middle-end/47610
9179         * varasm.c (default_section_type_flags): If decl is NULL,
9180         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
9182 2011-02-05  Jie Zhang  <jie@codesourcery.com>
9184         PR debug/42631
9185         * web.c (entry_register): Don't clobber the number of the
9186         first uninitialized reference in used[].
9188 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
9190         PR tree-optimization/46194
9191         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
9192         (build_classic_dist_vector_1): Do not represent classic distance
9193         vectors when the access functions are variating in different loops.
9195 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
9197         * config/mips/iris6.opt: New.
9198         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
9200 2011-02-04  Richard Henderson  <rth@redhat.com>
9201             Steve Ellcey  <sje@cup.hp.com>
9203         PR target/46997
9204         * config/ia64/predicates.md (mux1_brcst_element): New.
9205         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
9206         * config/ia64/ia64.c (ia64_unpack_assemble): New.
9207         (ia64_unpack_sign): New.
9208         (ia64_expand_unpack): Rewrite using new routines.
9209         (ia64_expand_widen_sum): Ditto.
9210         (ia64_expand_dot_prod_v8qi): Ditto.
9211         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
9212         routines, add endian check.
9213         (pmpy2_even): Rename from pmpy2_r, add endian check.
9214         (pmpy2_odd): Rename from pmpy2_l, add endian check.
9215         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
9216         (vec_widen_smult_hi_v4hi): Ditto.
9217         (vec_widen_umult_lo_v4hi): Ditto.
9218         (vec_widen_umult_hi_v4hi): Ditto.
9219         (mulv2si3): Change endian checks.
9220         (sdot_prodv4hi): Rewrite with new calls.
9221         (udot_prodv4hi): New.
9222         (vec_pack_ssat_v4hi): Add endian check.
9223         (vec_pack_usat_v4hi): Ditto.
9224         (vec_pack_ssat_v2si): Ditto.
9225         (max1_even): Rename from max1_r, add endian check.
9226         (max1_odd): Rename from max1_l, add endian check.
9227         (*mux1_rev): Format change.
9228         (*mux1_mix): Ditto.
9229         (*mux1_shuf): Ditto.
9230         (*mux1_alt): Ditto.
9231         (*mux1_brcst_v8qi): Use new predicate.
9232         (vec_extract_evenv8qi): Remove endian check.
9233         (vec_extract_oddv8qi): Ditto.
9234         (vec_interleave_lowv4hi): Format change.
9235         (vec_interleave_highv4hi): Ditto.
9236         (mix2_even): Rename from mix2_r, add endian check.
9237         (mix2_odd): Rename from mux2_l, add endian check.
9238         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
9239         (vec_extract_evenodd_helper): Format change.
9240         (vec_extract_evenv4hi): Remove endian check.
9241         (vec_extract_oddv4hi): Remove endian check.
9242         (vec_interleave_lowv2si): Format change.
9243         (vec_interleave_highv2si): Format change.
9244         (vec_initv2si): Remove endian check.
9245         (vecinit_v2si): Add endian check.
9246         (reduc_splus_v2sf): Add endian check.
9247         (reduc_smax_v2sf): Ditto.
9248         (reduc_smin_v2sf): Ditto.
9249         (vec_initv2sf): Remove endian check.
9250         (fpack): Add endian check.
9251         (fswap): Add endian check.
9252         (vec_interleave_highv2sf): Add endian check.
9253         (vec_interleave_lowv2sf): Add endian check.
9254         (fmix_lr): Add endian check.
9255         (vec_setv2sf): Format change.
9256         (*vec_extractv2sf_0_be): Use shift to extract operand.
9257         (*vec_extractv2sf_1_be): New.
9258         (vec_pack_trunc_v4hi): Add endian check.
9259         (vec_pack_trunc_v2si): Format change.
9261 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
9263         PR inline-asm/23200
9264         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
9265         do bb, locus and block comparison and disallow loads if it is not set.
9266         (stmt_is_replaceable_p): New function.
9267         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
9268         callers.
9269         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
9270         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
9271         SSA_NAME_DEF_STMT.
9272         * tree-flow.h (stmt_is_replaceable_p): New prototype.
9274 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
9276         * config/rs6000/xilinx.opt: New.
9277         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
9279 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
9281         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
9283 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
9285         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
9286         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9287         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
9288         secondary_reload_info, xtensa_secondary_reload): Remove.
9289         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
9290         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9291         (xtensa_preferred_reload_class): Make static. Change return and
9292         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
9293         Use CONST_DOUBLE_P predicate.
9294         (xtensa_preferred_output_reload_class): New function.
9295         (xtensa_secondary_reload): Make static.
9297 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
9299         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
9300         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
9301         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
9303 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
9305         PR middle-end/31490
9306         * output.h (SECTION_RELRO): Define.
9307         (SECTION_MACH_DEP): Adjust.
9308         (get_variable_section): New prototype.
9309         * varpool.c (varpool_finalize_named_section_flags): New function.
9310         (varpool_assemble_pending_decls): Call it.
9311         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
9312         * cgraphunit.c (cgraph_output_in_order): Call
9313         varpool_finalize_named_section_flags.
9314         * varasm.c (get_section): Allow section flags conflicts between
9315         relro and read-only sections if the section hasn't been declared yet.
9316         Set SECTION_OVERRIDE after diagnosing section type conflict.
9317         (get_variable_section): No longer static.
9318         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
9319         readonly sections that need relocations.
9320         (decl_readonly_section_1): New function.
9321         (decl_readonly_section): Use it.
9323         Revert:
9324         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
9325                     Steve Ellcey  <sje@cup.hp.com>
9327         PR middle-end/31490
9328         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
9329         if section attribute used.
9331 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
9333         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
9334         * config/darwin.c (SECTION_NO_ANCHOR): Define.
9335         (darwin_init_sections): Remove assertion.
9337 2011-02-03  Nick Clifton  <nickc@redhat.com>
9339         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
9340         lt and ge.
9341         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
9342         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
9343         instead of "n" and "pz".
9344         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
9345         CC_FLAG_S.
9347 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
9349         PR target/47312
9350         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
9351         fma, expand FMA_EXPR as fma{,f,l} call.
9353         PR lto/47274
9354         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
9355         copy them into a unsigned char variable and pass address of it to
9356         lto_output_data_stream.
9358         PR target/47564
9359         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
9360         around backend_init_target and lang_dependent_init_target calls.
9361         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
9362         (verify_cgraph_node): Don't call set_cfun here.  Use
9363         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
9364         Set error_found for incorrectly represented calls to thunks.
9366 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
9368         PR debug/43092
9369         PR rtl-optimization/43494
9370         * rtl.h (for_each_inc_dec_fn): New type.
9371         (for_each_inc_dec): Declare.
9372         * rtlanal.c (struct for_each_inc_dec_ops): New type.
9373         (for_each_inc_dec_find_inc_dec): New fn.
9374         (for_each_inc_dec_find_mem): New fn.
9375         (for_each_inc_dec): New fn.
9376         * dse.c (struct insn_size): Remove.
9377         (replace_inc_dec, replace_inc_dec_mem): Remove.
9378         (emit_inc_dec_insn_before): New fn.
9379         (check_for_inc_dec): Use it, along with for_each_inc_dec.
9380         (canon_address): Pass mem modes to cselib_lookup.
9381         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
9382         (cselib_lookup_from_insn): Likewise.
9383         (cselib_subst_to_values): Likewise.
9384         * cselib.c (find_slot_memmode): New var.
9385         (cselib_find_slot): New fn.  Use it instead of
9386         htab_find_slot_with_hash everywhere.
9387         (entry_and_rtx_equal_p): Use find_slot_memmode.
9388         (autoinc_split): New fn.
9389         (rtx_equal_for_cselib_p): Rename and implement in terms of...
9390         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
9391         Deal with autoinc.  Special-case recursion into MEMs.
9392         (cselib_hash_rtx): Likewise.
9393         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
9394         address and MEM modes.
9395         (cselib_subst_to_values): Add memmode, pass it on.
9396         Deal with autoinc.
9397         (cselib_lookup): Add memmode argument, pass it on.
9398         (cselib_lookup_from_insn): Add memmode.
9399         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
9400         (struct cselib_record_autoinc_data): New.
9401         (cselib_record_autoinc_cb): New fn.
9402         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
9403         mode to cselib_lookup.  Reset autoinced REGs here instead of...
9404         (cselib_process_insn): ... here.
9405         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
9406         to cselib_lookup.
9407         (add_uses): Likewise, also to cselib_subst_to_values.
9408         (add_stores): Likewise.
9409         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
9410         cselib_subst_to_values.
9411         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
9412         * gcse.c (do_local_cprop): Adjusted.
9413         * postreload.c (reload_cse_simplify_set): Adjusted.
9414         (reload_cse_simplify_operands): Adjusted.
9415         * sel-sched-dump (debug_mem_addr_value): Pass mode.
9417 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
9419         PR tree-optimization/45122
9420         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
9421         unsafe assumptions when there's more than one loop exit.
9423 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9425         PR target/47272
9426         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
9427         Document using vector double with the load/store builtins, and
9428         that the load/store builtins always use Altivec instructions.
9430         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
9431         to use altivec memory instructions, even on VSX.
9432         (vector_altivec_store_<mode>): Ditto.
9434         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
9435         function.
9437         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9438         V2DF, V2DI support to load/store overloaded builtins.
9440         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
9441         altivec load/store builtins for V2DF/V2DI types.
9443         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9444         set avoid indexed addresses on power6 if -maltivec.
9445         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
9446         vector_altivec_load/vector_altivec_store builtins.
9447         (altivec_expand_st_builtin): Ditto.
9448         (altivec_expand_builtin): Add VSX memory builtins.
9449         (rs6000_init_builtins): Add V2DI types to internal types.
9450         (altivec_init_builtins): Add support for V2DF/V2DI altivec
9451         load/store builtins.
9452         (rs6000_address_for_altivec): Insure memory address is appropriate
9453         for Altivec.
9455         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
9456         vec_vsx_ld and vec_vsx_st.
9457         (vsx_store_<mode>): Ditto.
9459         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
9460         variables to hold long long types for VSX vector memory builtins.
9461         (RS6000_BTI_unsigned_long_long): Ditto.
9462         (long_long_integer_type_internal_node): Ditti.
9463         (long_long_unsigned_type_internal_node): Ditti.
9465         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
9466         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
9467         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
9469         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
9470         short cuts.
9471         (vec_vsx_st): Ditto.
9473 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9475         * config/pa/pa-hpux10.opt: New.
9476         * config/hpux11.opt (pthread): New Driver option.
9477         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
9478         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
9480 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9482         * config/ia64/vms.opt: New.
9483         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
9485 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
9487         PR target/47580
9488         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
9489         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
9490         generator functions.
9491         (vsx_floatuns<VSi><mode>2): Ditto.
9492         (vsx_fix_trunc<mode><VSi>2): Ditto.
9493         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
9495 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9497         * config/i386/djgpp.opt (posix): New Driver option.
9499 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
9501         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
9502         Move to the unsupported targets list.
9504 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
9506         PR rtl-optimization/47525
9507         * df-scan.c: Update copyright years.
9508         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
9509         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
9511 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9513         * config/i386/sysv4.h (TARGET_VERSION): Remove.
9514         (SUBTARGET_RETURN_IN_MEMORY): Remove.
9515         (ASM_OUTPUT_ASCII): Remove.
9516         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
9518 2011-02-02  Jeff Law  <law@redhat.com>
9520         PR middle-end/47543
9521         * reload.c (find_reloads_address): Handle reg+d address where both
9522         components are invalid by reloading the entire address.
9524 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9525             Richard Guenther  <rguenther@suse.de>
9527         PR tree-optimization/40979
9528         PR bootstrap/47044
9529         * passes.c (init_optimization_passes): After LIM call copy_prop
9530         and DCE to clean up.
9531         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9533 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9535         PR tree-optimization/47576
9536         PR tree-optimization/47555
9537         * doc/invoke.texi (scev-max-expr-complexity): Documented.
9538         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9539         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9540         * tree-scalar-evolution.c (follow_ssa_edge): Use
9541         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9543 2011-02-02  Richard Guenther  <rguenther@suse.de>
9545         PR tree-optimization/47566
9546         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9548 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9550         PR debug/47106
9551         PR debug/47402
9552         * tree-inline.c (declare_return_variable): Remove unused caller
9553         variable.
9555         PR debug/47106
9556         PR debug/47402
9557         * tree-flow-inline.h (clear_is_used, is_used_p): New.
9558         * cfgexpand.c (account_used_vars_for_block): Use them.
9559         * tree-nrv.c (tree_nrv): Likewise.
9560         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9561         (dump_scope_block): Likewise.
9562         (remove_unused_locals): Likewise.
9564         PR debug/47106
9565         PR debug/47402
9566         * tree-inline.c (declare_return_variable): Add result decl to
9567         local decls only once.
9568         * gimple-low.c (record_vars_into): Mark newly-created variables
9569         as referenced.
9571 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9573         PR debug/47498
9574         PR debug/47501
9575         PR debug/45136
9576         PR debug/45130
9577         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9578         debug insns.
9579         (no_real_insns_p, schedule_block, set_priorities): Drop special
9580         treatment of boundary debug insns.
9581         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9582         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9583         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9584         (BOUNDARY_DEBUG_INSN_P): Likewise.
9585         (SCHEDULE_DEBUG_INSN_P): Likewise.
9586         * sched-rgn.c (init_ready_list): Drop special treatment of
9587         boundary debug insns.
9588         * final.c (rest_of_clean_state): Clear notes' BB.
9590 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9592         * config/openbsd.opt (assert=): New Driver option.
9594 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9596         * config/i386/nto.opt: New.
9597         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9599 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9601         * config/i386/netware.opt: New.
9602         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9604 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9606         * config/interix.opt (posix): New Driver option.
9608 2011-02-01  DJ Delorie  <dj@redhat.com>
9610         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9612         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9613         class for A0/A1.
9615 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
9617         PR tree-optimization/47561
9618         * toplev.c (process_options): Print the Graphite flags.  Add
9619         flag_loop_flatten to the list of options requiring Graphite.
9621 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9623         * config/i386/cygming.opt (posix): New Driver option.
9625 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9627         * config/arm/vxworks.opt: New.
9628         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9630 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9632         * config/alpha/elf.opt: New.
9633         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9634         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9636 2011-02-01  Richard Guenther  <rguenther@suse.de>
9638         PR tree-optimization/47559
9639         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9640         store-motion on references that can throw.
9642 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
9644         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9645         * tree-pass.h (TDF_CSELIB): New macro.
9646         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9647         cselib_lookup): Check for it rather than for TDF_DETAILS.
9649 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
9651         PR driver/47547
9652         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9653         is HOST_BIT_BUCKET.
9655         * opts.c (finish_options): Don't add x_aux_base_name if it is
9656         HOST_BIT_BUCKET.
9658 2011-02-01  Richard Guenther  <rguenther@suse.de>
9660         PR tree-optimization/47555
9661         Revert
9662         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
9664         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9666 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9668         PR gcc/46692
9669         * config/lm32/t-lm32: Add multilib for all CPU options.
9671 2011-02-01  Richard Guenther  <rguenther@suse.de>
9673         PR tree-optimization/47541
9674         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9675         sure to have a field at offset zero.
9677 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9679         * config/arc/arc.opt (EB, EL): New Driver options.
9681 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9683         * config/alpha/osf5.opt: New.
9684         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9686 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9688         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9690 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
9692         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9693         -floop-interchange.
9694         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9695         is an alias of -floop-interchange and that it requires the
9696         Graphite infrastructure.
9697         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9698         flag_loop_interchange based on the value of flag_tree_loop_linear.
9700 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
9701             Richard Guenther  <rguenther@suse.de>
9703         PR tree-optimization/47538
9704         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9705         type instead of r1type, except for comparisons.  For right
9706         shifts and comparisons punt if there are mismatches in
9707         sizetype vs. non-sizetype types.
9709 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9711         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9712         avx_runtime.
9714 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9716         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9717         version number.
9718         * configure: Regenerate.
9720 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9722         * configure.ac (gcc_cv_ld_static_option): Define.
9723         (gcc_cv_ld_dynamic_option): Define.
9724         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9725         instead.
9726         (HAVE_LD_STATIC_DYNAMIC): Update message.
9727         (LD_STATIC_OPTION): Define.
9728         (LD_DYNAMIC_OPTION): Define.
9729         * configure: Regenerate.
9730         * config.in: Regenerate.
9731         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9732         HAVE_LD_STATIC_DYNAMIC]: Use them.
9734 2011-01-31  Nick Clifton  <nickc@redhat.com>
9736         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9737         registers inside interrupt handlers if the handler is not a leaf
9738         function.
9740 2011-01-31  Nick Clifton  <nickc@redhat.com>
9742         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9743         reg_renumber returning an INVALID_REGNUM.
9745 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9747         PR libgcj/44341
9748         * doc/install.texi: Document host options discarded when cross
9749         configuring target libraries.
9751 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9753         Reverted:
9754         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9755         PR debug/45136
9756         PR debug/45130
9757         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9758         debug insns.
9759         (no_real_insns_p, schedule_block, set_priorities): Drop special
9760         treatment of boundary debug insns.
9761         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9762         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9763         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9764         (BOUNDARY_DEBUG_INSN_P): Likewise.
9765         (SCHEDULE_DEBUG_INSN_P): Likewise.
9766         * sched-rgn.c (init_ready_list): Drop special treatment of
9767         boundary debug insns.
9768         * final.c (rest_of_clean-state): Clear notes' BB.
9770 2011-01-31  Alan Modra  <amodra@gmail.com>
9772         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9773         toc relative expressions as we do in print_operand_address.
9775 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
9777         * doc/extend.texi: Follow spelling conventions.
9778         * doc/invoke.texi: Fix a typo.
9780 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
9782         * config/hpux11.opt: New.
9783         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9784         ia64*-*-hpux*): Use hpux11.opt.
9786 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
9788         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9789         to tmake_file.
9791 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9793         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9794         support sites.
9796 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9798         * doc/install.texi (Binaries): Remove outdated reference for
9799         Motorola 68HC11/68HC12 downloads.
9801 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9803         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9804         Drepper's paper.
9806 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
9808         PR bootstrap/47147
9809         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9810         used by NetBSD.
9812 2011-01-28  Ahmad Sharif  <asharif@google.com>
9814         * value-prof.c (check_counter): Corrected error message.
9816 2011-01-29  Jie Zhang  <jie@codesourcery.com>
9818         * config/arm/arm.c (arm_legitimize_reload_address): New.
9819         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9820         arm_legitimize_reload_address.
9821         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9823 2011-01-28  Ian Lance Taylor  <iant@google.com>
9825         * godump.c (go_define): Ignore macros whose definitions include
9826         two adjacent operands.
9828 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
9830         PR target/42894
9831         * varasm.c (force_const_mem): Store copy of x in desc->constant
9832         instead of x itself.
9833         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9834         itself into REG_EQUAL note.
9836 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
9838         * config/freebsd.opt (posix, rdynamic): New Driver options.
9840 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9842         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9843         -Bstatic/-Bdynamic.
9844         * configure: Regenerate.
9846 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
9848         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9849         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9851 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
9853         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9854         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9855         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9856         (s390_preferred_reload_class): Make static. Change return and
9857         'rclass' argument type to reg_class_t.
9859 2011-01-27  Jan Hubicka  <jh@suse.cz>
9861         PR middle-end/46949
9862         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9863         (process_function_and_variable_attributes): Check defined weakrefs.
9865 2011-01-27  Martin Jambor  <mjambor@suse.cz>
9867         PR tree-optimization/47228
9868         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9869         build_ref_for_offset.
9871 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9873         * config/spu/spu-elf.h (ASM_SPEC): Remove.
9875 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
9877         PR rtl-optimization/46856
9878         * postreload.c (reload_combine_recognize_const_pattern): Do not
9879         separate cc0 setter and user on cc0 targets.
9881 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
9883         PR c/43082
9884         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9885         passed a VOID_TYPE expression, immediately emit an error and
9886         return error_mark_node.
9888 2011-01-26  Jeff Law  <law@redhat.com>
9890         PR rtl-optimization/47464
9891         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9892         rather than may_trap_p as needed.
9894 2011-01-26  DJ Delorie  <dj@redhat.com>
9896         PR rtl-optimization/46878
9897         * combine.c (insn_a_feeds_b): Check for the implicit cc0
9898         setter/user dependency as well.
9900 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9902         PR rtl-optimization/44469
9903         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9904         after removing trivially dead basic blocks.
9906 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9908         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9909         * config/frv/frv.h (LINK_SPEC): Likewise.
9910         * config/i386/netware.h (LINK_SPEC): Likewise.
9911         * config/m68k/linux.h (ASM_SPEC): Likewise.
9912         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9913         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9914         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9915         * config/sparc/linux.h (ASM_SPEC): Likewise.
9916         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9917         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9919 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9921         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9922         * config/frv/frv.h (ASM_SPEC): Likewise.
9923         * config/m68k/linux.h (ASM_SPEC): Likewise.
9924         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9925         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9926         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9927         * config/sparc/linux.h (ASM_SPEC): Likewise.
9928         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9929         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9931 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9933         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9934         * config/frv/frv.h (LINK_SPEC): Likewise.
9935         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9937 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9939         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9940         * config/frv/frv.h (ASM_SPEC): Likewise.
9941         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9942         * config/m68k/linux.h (ASM_SPEC): Likewise.
9943         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9944         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9945         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9946         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9947         * config/sparc/linux.h (ASM_SPEC): Likewise.
9948         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9949         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9950         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9952 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
9954         PR target/46997
9955         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9956         (*mux2): Ditto.
9957         (vec_extract_evenodd_help): Ditto.
9958         (vec_extract_evenv4hi): Ditto.
9959         (vec_extract_oddv4hi): Ditto.
9960         (vec_interleave_lowv2si): Ditto.
9961         (vec_interleave_highv2si): Ditto.
9962         (vec_extract_evenv2si): Ditto.
9963         (vec_extract_oddv2si: Ditto.
9964         (vec_pack_trunc_v2si): Ditto.
9966 2011-01-22  Jan Hubicka  <jh@suse.cz>
9968         PR target/47237
9969         * cgraph.h (cgraph_local_info): New field can_change_signature.
9970         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9971         signature can change.
9972         (ipcp_estimate_growth): Call sequence simplify only if calle signature
9973         can change.
9974         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9975         (cgraph_function_versioning): We can not change signature of functions
9976         that don't allow that.
9977         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9978         (lto_input_node): Likewise.
9979         * ipa-inline.c (compute_inline_parameters): Compute
9980         local.can_change_signature.
9981         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9982         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9983         functions that can not change signature.
9984         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9985         init_cumulative_args): Do not use local calling conventions
9986         for functions that can not change signature.
9988 2011-01-22  Jan Hubicka  <jh@suse.cz>
9990         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9992 2011-01-26  Richard Guenther  <rguenther@suse.de>
9994         PR tree-optimization/47190
9995         * cgraphunit.c (process_common_attributes): New function.
9996         (process_function_and_variable_attributes): Use it.
9998 2011-01-26  Richard Guenther  <rguenther@suse.de>
10000         PR lto/47423
10001         * cgraphbuild.c (record_eh_tables): Record reference to personality
10002         function.
10004 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
10006         PR debug/45454
10007         * sel-sched.c (moveup_expr): Don't let debug insns prevent
10008         non-debug insns from moving up.
10010 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
10012         PR target/40125
10013         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
10014         t-dlldir{,-x} fragment for build and add it to tmake_file.
10015         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
10016         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
10017         * config/i386/t-dlldir: New file.
10018         (SHLIB_DLLDIR): Define.
10019         * config/i386/t-dlldir-x: New file.
10020         (SHLIB_DLLDIR): Define.
10021         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
10022         (SHLIB_INSTALL): Use it.
10024 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
10026         PR target/47246
10027         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
10028         lower bound of the allowed Thumb-2 coprocessor load/store
10029         index range to -256. Add explaining comment.
10031 2011-01-25  Ian Lance Taylor  <iant@google.com>
10033         * godump.c (go_define): Improve lexing of macro expansion to only
10034         accept expressions which match Go spec.
10036 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
10038         PR c++/43601
10039         * tree.c (handle_dll_attribute): Handle it.
10040         * doc/extend.texi (@item dllexport): Mention it.
10041         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
10043 2011-01-25  Ian Lance Taylor  <iant@google.com>
10045         PR tree-optimization/26854
10046         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
10047         (decl_jump_unsafe): Move higher in file, with no other change.
10048         (bind): Set has_jump_unsafe_decl if appropriate.
10049         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
10050         (check_earlier_gotos): Likewise.
10051         (c_check_switch_jump_warnings): Likewise.
10053 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
10055         * doc/invoke.texi (Warning Options): Add missing hyphen.
10056         (-fprofile-dir): Minor grammatical fixes.
10057         (-fbranch-probabilities): Likewise.
10059 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
10061         PR debug/45136
10062         PR debug/45130
10063         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10064         debug insns.
10065         (no_real_insns_p, schedule_block, set_priorities): Drop special
10066         treatment of boundary debug insns.
10067         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10068         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
10069         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10070         (BOUNDARY_DEBUG_INSN_P): Likewise.
10071         (SCHEDULE_DEBUG_INSN_P): Likewise.
10072         * sched-rgn.c (init_ready_list): Drop special treatment of
10073         boundary debug insns.
10074         * final.c (rest_of_clean-state): Clear notes' BB.
10076 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10078         * Makefile.in (LAMBDA_H): Removed.
10079         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
10080         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
10081         lambda-trans.o, and tree-loop-linear.o.
10082         (lto-symtab.o): Remove dependence on LAMBDA_H.
10083         (tree-loop-linear.o): Remove rule.
10084         (lambda-mat.o): Same.
10085         (lambda-trans.o): Same.
10086         (lambda-code.o): Same.
10087         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
10088         (tree-vect-slp.o): Same.
10089         * hwint.h (gcd): Moved here.
10090         (least_common_multiple): Same.
10091         * lambda-code.c: Removed.
10092         * lambda-mat.c: Removed.
10093         * lambda-trans.c: Removed.
10094         * lambda.h: Removed.
10095         * tree-loop-linear.c: Removed.
10096         * lto-symtab.c: Do not include lambda.h.
10097         * omega.c (gcd): Removed.
10098         * passes.c (init_optimization_passes): Remove pass_linear_transform.
10099         * tree-data-ref.c (print_lambda_vector): Moved here.
10100         (lambda_vector_copy): Same.
10101         (lambda_matrix_copy): Same.
10102         (lambda_matrix_id): Same.
10103         (lambda_vector_first_nz): Same.
10104         (lambda_matrix_row_add): Same.
10105         (lambda_matrix_row_exchange): Same.
10106         (lambda_vector_mult_const): Same.
10107         (lambda_vector_negate): Same.
10108         (lambda_matrix_row_negate): Same.
10109         (lambda_vector_equal): Same.
10110         (lambda_matrix_right_hermite): Same.
10111         * tree-data-ref.h: Do not include lambda.h.
10112         (lambda_vector): Moved here.
10113         (lambda_matrix): Same.
10114         (dependence_level): Same.
10115         (lambda_transform_legal_p): Removed declaration.
10116         (lambda_collect_parameters): Same.
10117         (lambda_compute_access_matrices): Same.
10118         (lambda_vector_gcd): Same.
10119         (lambda_vector_new): Same.
10120         (lambda_vector_clear): Same.
10121         (lambda_vector_lexico_pos): Same.
10122         (lambda_vector_zerop): Same.
10123         (lambda_matrix_new): Same.
10124         * tree-flow.h (least_common_multiple): Removed declaration.
10125         * tree-parloops.c (lambda_trans_matrix): Moved here.
10126         (LTM_MATRIX): Same.
10127         (LTM_ROWSIZE): Same.
10128         (LTM_COLSIZE): Same.
10129         (LTM_DENOMINATOR): Same.
10130         (lambda_trans_matrix_new): Same.
10131         (lambda_matrix_vector_mult): Same.
10132         (lambda_transform_legal_p): Same.
10133         * tree-pass.h (pass_linear_transform): Removed declaration.
10134         * tree-ssa-loop.c (tree_linear_transform): Removed.
10135         (gate_tree_linear_transform): Removed.
10136         (pass_linear_transform): Removed.
10137         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
10138         flag_loop_interchange.
10140 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
10142         PR tree-optimization/47265
10143         PR tree-optimization/47443
10144         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
10145         if name still has some uses.
10147 2011-01-25  Martin Jambor  <mjambor@suse.cz>
10149         PR tree-optimization/47382
10150         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
10151         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
10153 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
10155         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
10156         sjlj_except_unwind_info.
10158 2011-01-25  Richard Guenther  <rguenther@suse.de>
10160         PR tree-optimization/47426
10161         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
10162         visible functions results escape.
10164 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
10166         PR target/45701
10167         * config/arm/arm.c (any_sibcall_uses_r3): New function.
10168         (arm_get_frame_offsets): Use it.
10170 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10171             Jakub Jelinek  <jakub@redhat.com>
10173         PR tree-optimization/47271
10174         * tree-if-conv.c (bb_postdominates_preds): New.
10175         (if_convertible_bb_p): Call bb_postdominates_preds.
10176         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
10177         (predicate_scalar_phi): Call bb_postdominates_preds.
10179 2011-01-25  Nick Clifton  <nickc@redhat.com>
10181         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
10182         * config/rx/rx.c (rx_function_value): Likewise.
10183         (rx_promote_function_mode): Likewise.
10184         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
10185         in order to make it legitimate.
10186         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
10187         make sure that the first operand is the same as the result register.
10188         (addsi3_unspec): Delete.
10189         (subdi3): Do not accept immediate operands.
10190         (subdi3_internal): Likewise.
10192 2011-01-25  Jeff Law  <law@redhat.com>
10194         PR rtl-optimization/37273
10195         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10196         handle them like argument loads from stack slots.  Do not double
10197         count memory for memory constants and argument loads from stack slots.
10199 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
10201         PR tree-optimization/47427
10202         PR tree-optimization/47428
10203         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
10204         coalesce if the new root var would be TREE_READONLY.
10206 2011-01-25  Richard Guenther  <rguenther@suse.de>
10208         PR middle-end/47414
10209         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
10210         correct type for TBAA.
10212 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10214         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
10215         (close_phi_written_to_memory): Call for_each_index with
10216         dr_indices_valid_in_loop.
10218 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10220         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
10221         when it is initialized.
10223 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10225         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
10226         call to graphite_find_data_references_in_stmt.
10227         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
10228         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
10229         call to graphite_find_data_references_in_stmt.
10230         (analyze_drs_in_stmts): Same.
10231         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
10232         in which the scalar analysis of indices is performed.
10233         (create_data_ref): Same.  Update call to dr_analyze_indices.
10234         (find_data_references_in_stmt): Update call to create_data_ref.
10235         (graphite_find_data_references_in_stmt): Same.
10236         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
10237         declaration.
10238         (create_data_ref): Same.
10239         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
10240         call to create_data_ref.
10242 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10244         * graphite-sese-to-poly.c (build_poly_scop): Move
10245         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
10247 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10249         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
10250         VAR_DECL, PARM_DECL, and RESULT_DECL.
10252 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10254         * graphite-dependences.c (reduction_dr_1): Allow several reductions
10255         in a reduction PBB.
10256         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
10257         that have already been marked as PBB_IS_REDUCTION.
10259 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10261         * graphite-scop-detection.c (same_close_phi_node): New.
10262         (remove_duplicate_close_phi): New.
10263         (make_close_phi_nodes_unique): New.
10264         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
10266 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10268         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
10269         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
10270         of both data references to be the same.
10272 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10274         * graphite-dependences.c (build_lexicographical_constraint): Remove
10275         the gdim parameter.
10276         (build_lexicographical_constraint): Adjust call to
10277         ppl_powerset_is_empty.
10278         (dependence_polyhedron): Same.
10279         (graphite_legal_transform_dr): Same.
10280         (graphite_carried_dependence_level_k): Same.
10281         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
10282         parameter.
10283         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
10285 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10287         * graphite-sese-to-poly.c
10288         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
10289         (close_phi_written_to_memory): New.
10290         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
10291         and unshare_expr.
10293 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10295         * doc/install.texi: Update the expected version number of PPL to 0.11.
10296         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
10297         #if PPL_VERSION_MINOR < 11.
10299 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10301         * graphite-dependences.c: Include graphite-cloog-util.h.
10302         (new_poly_ddr): Inlined into dependence_polyhedron.
10303         (free_poly_ddr): Moved close by new_poly_ddr.
10304         (dependence_polyhedron_1): Renamed dependence_polyhedron.
10305         Early return NULL when ppl_powerset_is_empty returns true.
10306         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
10307         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
10308         (graphite_legal_transform_dr): Call new_poly_ddr.
10309         (graphite_carried_dependence_level_k): Same.
10310         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
10311         (dot_transformed_deps_stmt_1): Removed.
10312         (dot_deps_stmt_1): Call dot_deps_stmt_2.
10313         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
10314         (dot_deps_1): Call dot_deps_2.
10315         * Makefile.in (graphite-dependences.o): Add missing dependence on
10316         graphite-cloog-util.h.
10318 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10320         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
10321         (build_lexicographical_constraint): Same.
10322         (dependence_polyhedron_1): Same.
10323         (graphite_legal_transform_dr): Same.
10324         (graphite_carried_dependence_level_k): Same.
10325         * graphite-ppl.c (ppl_powerset_is_empty): New.
10326         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
10327         * tree-data-ref.c (dump_data_reference): Print the basic block index.
10329 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10331         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
10332         the "a followed by b" relation and document it.
10334 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10336         * graphite-dependences.c (build_lexicographical_constraint): Stop the
10337         iteration when the bag of constraints is empty.
10339 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10341         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
10343 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10345         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
10346         nest and two loop depths as parameters.
10347         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
10348         lst_perfect_nestify.
10350 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10352         * graphite-dependences.c (print_pddr): Call
10353         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
10355 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10357         * graphite-ppl.c (debug_gmp_value): New.
10358         * graphite-ppl.h (debug_gmp_value): Declared.
10360 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
10362         * doc/install.texi: Document availability of cloog-0.16.
10364 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
10366         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
10367         invalid postdominance info.
10369 2011-01-24  Jan Hubicka  <jh@suse.cz>
10371         PR c/21659
10372         * doc/extend.texi (weak pragma): Drop claim that it must
10373         appear before definition.
10374         * varasm.c (merge_weak, declare_weak): Only sanity check
10375         that DECL is not output at a time it is declared weak.
10377 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
10379         * machmode.def: Fixed comments.
10381 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
10383         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
10385 2011-01-24  Paul Koning  <ni1d@arrl.net>
10387         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
10388         WORDS_BIG_ENDIAN.
10390 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
10392         PR target/46519
10393         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
10394         (block_info): Add scanned and prev.
10395         (move_or_delete_vzeroupper_2): Return if the basic block
10396         has been scanned and the upper 128bit state is unchanged
10397         from the last scan.
10398         (move_or_delete_vzeroupper_1): Return true if the exit
10399         state is changed.
10400         (move_or_delete_vzeroupper): Visit basic blocks using the
10401         work-list based algorithm based on vt_find_locations in
10402         var-tracking.c.
10404         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
10406 2011-01-24  Nick Clifton  <nickc@redhat.com>
10408         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
10409         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
10410         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
10411         then define __v850e1__.
10412         * doc/invoke.texi: Document -mv850es.
10414 2011-01-24  Richard Henderson  <rth@redhat.com>
10416         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
10417         compound unordered comparisons.
10418         * config/rx/rx.c (rx_split_fp_compare): Remove.
10419         * config/rx/rx-protos.h: Update.
10420         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
10421         (cbranchsf4): Don't call rx_split_fp_compare.
10422         (*cbranchsf4): Use rx_split_cbranch.
10423         (*cmpsf): Don't accept "i" constraint.
10424         (*conditional_branch): Only valid after reload.
10425         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
10427 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
10429         PR target/47385
10430         * config/rs6000/altivec.md (vector constant splitters): Add
10431         support for creating vector single precision constants if -mvsx is
10432         used and we would create the constant using Altivec primitives.
10434 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
10435             Richard Sandiford  <rdsandiford@googlemail.com>
10437         PR rtl-optimization/47166
10438         * reload1.c (emit_reload_insns): Disable the spill_reg_store
10439         mechanism for PRE_MODIFY and POST_MODIFY.
10440         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
10441         reloadreg.
10443 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
10445         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
10447 2011-01-22  Jan Hubicka  <jh@suse.cz>
10449         PR lto/47333
10450         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
10452 2011-01-22  Jan Hubicka  <jh@suse.cz>
10454         PR tree-optimization/43884
10455         PR lto/44334
10456         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
10457         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
10459 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
10461         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10462         * config/s390/s390.c (s390_register_move_cost,
10463         s390_memory_move_cost): New.
10464         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10466 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10468         PR middle-end/47401
10469         * except.c (sjlj_assign_call_site_values): Move setting the
10470         crtl->uses_eh_lsda flag to ...
10471         (sjlj_mark_call_sites): ... here.
10472         (sjlj_emit_function_enter): Support NULL dispatch label.
10473         (sjlj_build_landing_pads): In a function with no landing pads
10474         that still has must-not-throw regions, generate code to register
10475         a personality function with empty LSDA.
10477 2011-01-21  Richard Henderson  <rth@redhat.com>
10479         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
10481         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
10483         * compare-elim.c: New file.
10484         * Makefile.in (OBJS-common): Add it.
10485         (compare-elim.o): New.
10486         * common.opt (fcompare-elim): New.
10487         * opts.c (default_options_table): Add OPT_fcompare_elim.
10488         * tree-pass.h (pass_compare_elim_after_reload): New.
10489         * passes.c (init_optimization_passes): Add it.
10490         * recog.h: Protect against re-inclusion.
10491         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
10492         * doc/invoke.texi (-fcompare-elim): Document it.
10493         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
10494         * doc/tm.texi: Rebuild.
10496 2011-01-22  Nick Clifton  <nickc@redhat.com>
10498         * config/rx/rx.md (cstoresf4): Pass comparison operator to
10499         rx_split_fp_compare.
10501 2011-01-22  Nick Clifton  <nickc@redhat.com>
10503         * config/rx/rx.md (UNSPEC_CONST): New.
10504         (deallocate_and_return): Wrap the amount popped off the stack in
10505         an UNSPEC_CONST in order to stop it being rejected by
10506         -mmax-constant-size.
10507         (pop_and_return): Add a "(return)" rtx.
10508         (call): Drop the immediate operand.
10509         (call_internal): Likewise.
10510         (call_value): Likewise.
10511         (call_value_internal): Likewise.
10512         (sibcall_internal): Likewise.
10513         (sibcall_value_internal): Likewise.
10514         (sibcall): Likewise.  Generate an explicit call using
10515         sibcall_internal.
10516         (sibcall_value): Likewise.
10517         (mov<>): FAIL if a constant operand is not legitimate.
10518         (addsi3_unpsec): New pattern.
10520         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
10521         (ok_for_max_constant): New function.
10522         (gen_safe_add): New function.
10523         (rx_expand_prologue): Use gen_safe_add.
10524         (rx_expand_epilogue): Likewise.
10525         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
10526         UNSPEC CONSTs.
10528 2011-01-21  Jeff Law  <law@redhat.com>
10530         PR tree-optimization/47053
10531         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10532         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10533         statements are deleted.
10534         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
10535         is nonempty, then purge dead edges and cleanup the CFG.
10537 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10539         PR debug/47402
10540         Temporarily revert:
10541         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10542         PR debug/47106
10543         * tree-dfa.c (create_var_ann): Mark variable as used.
10545 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10547         PR middle-end/45566
10548         * except.c (convert_to_eh_region_ranges): Emit queued no-region
10549         notes from other section in hot/cold partitioning even if
10550         last_action is -3.  Increment call_site_base.
10552         PR rtl-optimization/47366
10553         * fwprop.c (forward_propagate_into): Return bool.  If
10554         any changes are made, -fnon-call-exceptions is used and
10555         REG_EH_REGION note is present, call purge_dead_edges
10556         and return true if it purged anything.
10557         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10558         any EH edges were purged.
10560 2011-01-21  Jeff Law  <law@redhat.com>
10562         PR rtl-optimization/41619
10563         * caller-save.c (setup_save_areas): Break out code to determine
10564         which hard regs are live across calls by examining the reload chains
10565         so that it is always used.
10566         Eliminate code which checked REG_N_CALLS_CROSSED.
10568 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10570         PR tree-optimization/47355
10571         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10572         NOP has non-debug uses beyond PHIs in new_bb.
10574 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10576         PR debug/47106
10577         * cfgexpand.c (account_used_vars_for_block): Only account vars
10578         that are annotated as used.
10579         (estimated_stack_frame_size): Don't set TREE_USED.
10580         * tree-dfa.c (create_var_ann): Mark variable as used.
10582 2011-01-21  Richard Guenther  <rguenther@suse.de>
10584         PR middle-end/47395
10585         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10587 2011-01-21  Richard Guenther  <rguenther@suse.de>
10589         PR tree-optimization/47365
10590         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10591         (vn_reference_lookup_pieces): Adjust.
10592         (vn_reference_lookup): Likewise.
10593         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10594         (vn_reference_lookup_3): Only look through kills if in
10595         VN_WALKREWRITE mode.
10596         (vn_reference_lookup_pieces): Adjust.
10597         (vn_reference_lookup): Likewise.
10598         (visit_reference_op_load): Likewise.
10599         (visit_reference_op_store): Likewise.
10600         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10601         (compute_avail): Likewise.
10602         (eliminate): Likewise.
10604 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10606         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10607         DECL_IGNORED_P non-reg vars if they are used.
10609         PR tree-optimization/47391
10610         * varpool.c (const_value_known_p): Return false if
10611         decl is volatile.
10613 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
10615         PR bootstrap/47215
10616         * config/i386/i386.c (ix86_local_alignment): Handle
10617         case for va_list_type_node is nil.
10618         (ix86_canonical_va_list_type): Likewise.
10620 2011-01-21  Alan Modra  <amodra@gmail.com>
10622         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10623         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10625 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10627         * config/arm/arm.md (define_attr type): Rename f_load
10628         and f_store to f_fpa_load and f_fpa_store. Update.
10629         (write_conflict): Deal with rename fallout.
10630         (*push_fp_multi): Likewise.
10631         * config/arm/fpa.md (f_load): Use f_fpa_load.
10632         (f_store): Use f_fpa_store.
10633         (*movsf_fpa): Likewise.
10634         (*movdf_fpa): Likewise.
10635         (*movxf_fpa): Likewise.
10636         (*thumb2_movsf_fpa): Likewise.
10637         (*thumb2_movdf_fpa): Likewise.
10638         (*thumb2_movxf_fpa): Likewise.
10639         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10640         f_loadd and f_stored.
10641         (*thumb2_movdi_vfp): Likewise.
10642         (*thumb2_movsf_vfp): Fix attribute to f_loads.
10643         (*thumb2_movsi_vfp): Likewise.
10644         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10645         Use f_loads instead of f_load.
10646         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10648 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
10650         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10651         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10652         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10653         (xtensa_mode_dependent_address_p): New function.
10654         (constantpool_address_p): Make static. Change return type to bool.
10655         Change argument type to const_rtx. Use CONST_INT_P predicate.
10657 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
10659         PR debug/46583
10660         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10662 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10664         PR debug/47283
10665         * cfgexpand.c (expand_debug_expr): Instead of generating
10666         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10667         etc. handling.
10669 2011-01-20  Richard Guenther  <rguenther@suse.de>
10671         PR middle-end/47370
10672         * tree-inline.c (remap_gimple_op_r): Recurse manually for
10673         the pointer operand of MEM_REFs.
10675 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10677         PR tree-optimization/46130
10678         * ipa-split.c (consider_split): If return_bb contains non-virtual
10679         PHIs other than for retval or if split_function would not adjust it,
10680         refuse to split.
10682 2011-01-20  Richard Guenther  <rguenther@suse.de>
10684         PR tree-optimization/47167
10685         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10686         Revert previous change, only avoid enumeral type changes.
10688 2011-01-19  Mike Stump  <mikestump@comcast.net>
10690         * doc/tm.texi.in (BRANCH_COST): Englishify.
10691         * doc/tm.texi (BRANCH_COST): Likewise.
10693 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
10695         PR c++/47291
10696         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10697         (gen_scheduled_generic_parms_dies): New functions.
10698         (gen_struct_or_union_type_die): Schedule template parameters DIEs
10699         generation for the end of CU compilation.
10700         (dwarf2out_finish): Generate template parameters DIEs here.
10702 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10704         PR debug/46240
10705         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10706         debug bind stmt on merge edges.
10708 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10710         PR debug/47079
10711         PR debug/46724
10712         * function.c (instantiate_expr): Instantiate incoming rtl of
10713         implicit arguments, and recurse on VALUE_EXPRs.
10714         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10715         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10717 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10719         * c-parser.c (c_parser_for_statement): Initialize
10720         collection_expression.
10722 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10724         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10726 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10728         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10729         (LINK_SHLIB_SPEC): Don't use %(link_path).
10730         (SUBTARGET_EXTRA_SPECS): Remove link_path.
10732 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10734         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10735         (NO_SHARED_LIB_SUPPORT): Remove.
10736         (LINK_SHLIB_SPEC): Remove one conditional definition.
10738 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10740         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10741         %{call_shared}.
10742         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10743         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10744         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10745         %{call_shared} and conditionals on these options not being passed.
10746         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10747         %{call_shared}.
10749 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10751         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10752         simplify.
10754         * ipa-split.c: Spelling fixes.
10756 2011-01-19  Richard Henderson  <rth@redhat.com>
10758         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10759         (*mulsi3): Likewise.
10761         * longlong.h [__mn10300__] (count_leading_zeros): New.
10762         [__mn10300__] (umul_ppmm, smul_ppmm): New.
10763         [__mn10300__] (add_ssaaaa, subddmmss): New.
10764         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10765         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10767 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10769         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10771 2011-01-19  Richard Henderson  <rth@redhat.com>
10773         * config/mn10300/mn10300.md (addsi3_flags): New.
10774         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10775         (subsi3_flags, subc_internal, subdi3): New.
10776         (subdi3_internal, *subdi3_degenerate): New.
10777         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10779         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10780         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10781         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
10782         * config/mn10300/mn10300-protos.h: Update.
10783         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10784         (return_ret): Likewise.  Rename from return_internal_regs.
10785         (return_internal): Remove.
10787         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10788         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10789         (mn10300_legitimate_constant_p): Likewise.
10790         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10791         (mn10300_frame_size): New.
10792         (mn10300_expand_prologue): Use it.
10793         (mn10300_expand_epilogue): Likewise.
10794         (mn10300_initial_offset): Likewise.
10795         * config/mn10300/mn10300-protos.h: Update.
10796         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10797         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10798         (prologue, epilogue, return_internal): Tidy output code.
10799         (mn10300_store_multiple_operation, return): Likewise.
10800         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10801         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10802         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10803         (load_pic, am33_load_pic): New.
10804         (mn10300_load_pic0, mn10300_load_pic1): New.
10806         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10807         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10808         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10809         (cc_flags_for_mode, cc_flags_for_code): New.
10810         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10811         overflow flag is not valid.  Validate that the flags we need
10812         for the comparison are valid.
10813         (mn10300_output_cmp): Remove.
10814         (mn10300_output_add): New.
10815         (mn10300_select_cc_mode): Use cc_flags_for_code.
10816         (mn10300_split_cbranch): New.
10817         (mn10300_match_ccmode): New.
10818         (mn10300_split_and_operand_count): New.
10819         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10820         to the function.
10821         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10822         (addsi3): ... here.  Use mn10300_output_add.
10823         (*addsi3_flags): New.
10824         (*am33_subsi3, *mn10300_subsi3): Merge...
10825         (subsi3): ... here.  Use attribute isa.
10826         (*subsi3_flags): New.
10827         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
10828         when possible.
10829         (*am33_andsi3, *mn10300_andsi3): Merge...
10830         (andsi3): ... here.
10831         (*andsi3_flags): New.
10832         (andsi3 splitters): New.
10833         (*am33_iorsi3, *mn10300_iorsi3): Merge...
10834         (iorsi3): ... here.
10835         (*iorsi3_flags): New.
10836         (*am33_xorsi3, *mn10300_xorsi3): Merge...
10837         (xorsi3): ... here.
10838         (*xorsi3_flags): New.
10839         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10840         (one_cmplsi2): ... here.
10841         (*one_cmplsi2_flags): New.
10842         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
10843         instead of "dax" in constraints.  Use mn10300_split_cbranch.
10844         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
10845         use matching constraints to eliminate a self-comparison.
10846         (*integer_conditional_branch): Rename from integer_conditional_branch.
10847         Use int_mode_flags to match CC_REG.
10848         (*cbranchsi4_btst, *btstsi): New.
10849         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
10850         mn10300_split_cbranch.
10851         (*am33_cmpsf): Rename from am33_cmpsf.
10852         (*float_conditional_branch): Rename from float_conditional_branch.
10853         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10854         (zero_extendqisi2): ... here.
10855         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10856         (zero_extendhisi2): ... here.
10857         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10858         (extendqisi2): ... here.
10859         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10860         (extendhisi2): ... here.
10861         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10862         (ashlsi3): ... here.
10863         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10864         (lshrsi3): ... here.
10865         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10866         (ashrsi3): ... here.
10867         (consecutive add peephole): Remove.
10868         * config/mn10300/predicates.md (label_ref_operand): New.
10869         (int_mode_flags): New.
10870         (CCZN_comparison_operator): New.
10872         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10873         (throughput_42_latency_43): New reservation.
10874         (mulsidi3, umulsidi3): New expanders.
10875         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
10876         the MDR register to allocation; separately allocate the low and
10877         high parts of the DImode result.
10878         (umulsidi3_internal): Similarly.
10879         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10880         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
10881         (udivsi3, umodsi3): Remove.
10882         (udivmodsi4, divmodsi4): New expanders.
10883         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
10884         (*divmodsi4): Simiarly.
10885         (ext_internal): New.
10887         * config/mn10300/constraints.md ("z"): New constraint.
10888         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10889         (FIXED_REGISTERS): Don't fix MDR.
10890         (CALL_USED_REGSITERS): Reformat nicely.
10891         (REG_ALLOC_ORDER): Add MDR.
10892         (enum regclass): Add MDR_REGS.
10893         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10894         (IRA_COVER_CLASSES): Add MDR_REGS.
10895         (REGNO_REG_CLASS): Handle MDR_REG.
10896         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10897         (mn10300_register_move_cost): Likewise.
10898         * config/mn10300/mn10300.md (MDR_REG): New.
10899         (*movsi_internal): Handle moves to/from MDR_REGS.
10901         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10902         POST_MODIFY.
10903         (mn10300_secondary_reload): Tidy combination reload classes.
10904         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10905         addresses for AM33.  Allow symbolic offsets for reg+imm.
10906         (mn10300_regno_in_class_p): New.
10907         (mn10300_legitimize_reload_address): New.
10908         * config/mn10300/mn10300.h (enum reg_class): Remove
10909         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10910         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
10911         SP_OR_GENERAL_REGS.
10912         (REG_CLASS_NAMES): Update to match.
10913         (REG_CLASS_CONTENTS): Likewise.
10914         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10915         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10916         (REGNO_IN_RANGE_P): Remove.
10917         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10918         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10919         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10920         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10921         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10922         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10923         (REGNO_GENERAL_P): New.
10924         (HAVE_POST_MODIFY_DISP): New.
10925         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10926         (LEGITIMIZE_RELOAD_ADDRESS): New.
10927         * config/mn10300/mn10300-protos.h: Update.
10929         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10930         DATA_REGS for AM33 stack-pointer destination.
10931         (mn10300_preferred_output_reload_class): Likewise.
10932         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10933         into a form appropriate for ...
10934         (TARGET_SECONDARY_RELOAD): New.
10935         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10936         * config/mn10300/mn10300-protos.h: Update.
10937         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10938         reload_insi; use the "A" constraint for the scratch; handle AM33
10939         moves of sp to non-address registers.
10941         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10942         (*movqi_internal): ... here.
10943         (*am33_movhi, *mn10300_movhi): Merge into...
10944         (*movhi_internal): ... here.
10945         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
10946         as the source/destination of moves from/to SP.
10947         (movsf): Only allow for AM33-2.
10948         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10949         any integer constant constraint.  Only allow for AM33-2.  Tidy
10950         all of the alternative outputs.
10951         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10952         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
10953         for MN103.
10954         (udivsi3, umodsi3): New patterns for MN103 only.
10956 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
10958         * doc/tm.texi.in: Spell out that a lack of register class unions
10959         can lead to ICEs.
10960         * doc/tm.texi: Regenerate.
10962 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10964         PR rtl-optimization/47337
10965         * dce.c (check_argument_store): New function.
10966         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
10968         PR tree-optimization/47290
10969         * tree-eh.c (infinite_empty_loop_p): New function.
10970         (cleanup_empty_eh): Use it.
10972 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
10974         PR target/46997
10975         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10976         (a64_expand_widen_sum): Ditto.
10977         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10978         (vec_extract_evenodd_help): Ditto.
10979         (vec_extract_evenv4hi): Ditto.
10980         (vec_extract_oddv4hi): Ditto.
10981         (vec_extract_evenv2si): Ditto.
10982         (vec_extract_oddv2si): Ditto.
10983         (vec_extract_evenv2sf): Ditto.
10984         (vec_extract_oddv2sf): Ditto.
10985         (vec_pack_trunc_v4hi: Ditto.
10986         (vec_pack_trunc_v2si): Ditto.
10987         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10988         (vec_interleave_highv8qi): Ditto.
10989         (mix1_r): Ditto.
10990         (vec_extract_oddv8qi): Ditto.
10991         (vec_interleave_lowv4hi): Ditto.
10992         (vec_interleave_highv4hi): Ditto.
10993         (vec_interleave_lowv2si): Ditto.
10994         (vec_interleave_highv2si): Ditto.
10996 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10998         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10999         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
11000         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
11001         (pa_c_mode_for_suffix): New.
11002         (TARGET_EXPAND_BUILTIN): Define.
11003         (TARGET_C_MODE_FOR_SUFFIX): Define.
11004         (pa_builtins): Define.
11005         (pa_init_builtins): Register __float128 type and init new support
11006         builtins.
11007         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
11008         * config/pa/quadlib.c (_U_Qfcopysign): New.
11010 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
11012         PR middle-end/46894
11013         * explow.c (allocate_dynamic_stack_space): Do not assume more than
11014         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
11015         are defined.
11017 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11019         PR tree-optimization/47179
11020         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
11021         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
11023 2011-01-18  Richard Guenther  <rguenther@suse.de>
11025         PR rtl-optimization/47216
11026         * emit-rtl.c: Include tree-flow.h.
11027         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
11028         of replicating it with different semantics.
11029         * Makefile.in (emit-rtl.o): Adjust.
11031 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11033         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
11034         (cortex_a9_dp): Handle neon types correctly.
11036 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
11038         PR rtl-optimization/47299
11039         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
11040         subtarget.  Use normal multiplication if both operands are constants.
11041         * expmed.c (expand_widening_mult): Don't try to optimize constant
11042         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
11043         before using it.
11045 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11047         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
11048         spacing after 'e.g.', typos, comma, hyphenation.
11050 2011-01-17  Richard Henderson  <rth@redhat.com>
11052         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
11053         (rx_restricted_mem_operand): New.
11054         (rx_shift_operand): Use register_operand.
11055         (rx_source_operand, rx_compare_operand): Likewise.
11056         * config/rx/rx.md (addsi3_flags): New expander.
11057         (adddi3): Rewrite as expander.
11058         (adc_internal, *adc_flags, adddi3_internal): New patterns.
11059         (subsi3_flags): New expander.
11060         (subdi3): Rewrite as expander.
11061         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
11063         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
11064         (rx_init_builtins): Remove sat builtin.
11065         (rx_expand_builtin): Likewise.
11066         * config/rx/rx.md (ssaddsi3): New.
11067         (*sat): Rename from sat.  Represent the CC_REG input.
11069         * config/rx/predicates.md (rshift_operator): New.
11070         * config/rx/rx.c (rx_expand_insv): Remove.
11071         * config/rx/rx-protos.h: Update.
11072         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
11073         operand to the canonical position.
11074         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
11075         (*bitclr, *bitclr_in_memory): Similarly.
11076         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
11077         (insv): Retain the zero_extract in the expansion.
11079         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
11080         (bswaphi2, bitinvert, revw): Likewise.
11082         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
11083         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
11084         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
11085         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
11086         (bitset, bitset_in_memory): Likewise.
11087         (bitinvert, bitinvert_in_memory): Likewise.
11088         (bitclr, bitclr_in_memory): Likewise.
11089         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
11090         (rx_strend, rx_cmpstrn): Likewise.
11091         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
11092         (bitop peep2 patterns): Remove.
11094         * config/rx/rx.c (rx_match_ccmode): New.
11095         * config/rx/rx-protos.h: Update.
11096         * config/rx/rx.md (abssi2): Clobber, don't set flags.
11097         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
11098         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
11099         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
11100         (fix_truncsfsi2, floatsisf2): Likewise.
11101         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
11102         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
11103         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
11104         (*subsi3_flags, *xorsi3_flags): New.
11106         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
11108         * config/rx/rx.c (rx_print_operand): Remove workaround for
11109         unsplit comparison operations.
11111         * config/rx/rx.md (movsicc): Split after reload.
11112         (*movsicc): Merge *movsieq and *movsine via match_operator.
11113         (*stcc): New pattern.
11115         * config/rx/rx.c (rx_float_compare_mode): Remove.
11116         * config/rx/rx.h (rx_float_compare_mode): Remove.
11117         * config/rx/rx.md (cstoresi4): Split after reload.
11118         (*sccc): New pattern.
11120         * config/rx/predicates.md (label_ref_operand): New.
11121         (rx_z_comparison_operator): New.
11122         (rx_zs_comparison_operator): New.
11123         (rx_fp_comparison_operator): New.
11124         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
11125         Validate that the flags are set properly for the comparison.
11126         (rx_gen_cond_branch_template): Remove.
11127         (rx_cc_modes_compatible): Remove.
11128         (mode_from_flags): New.
11129         (flags_from_code): Rename from flags_needed_for_conditional.
11130         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
11131         (rx_select_cc_mode): Likewise.
11132         (rx_split_fp_compare): New.
11133         (rx_split_cbranch): New.
11134         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
11135         (*cbranchsi4): Use match_operator and rx_split_cbranch.
11136         (*cbranchsf4): Similarly.
11137         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
11138         match_operator and rx_split_cbranch.
11139         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
11140         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
11141         (*cmpsi): Rename from cmpsi.
11142         (*tstsi): Rename from tstsi.
11143         (*cmpsf): Rename from cmpsf; use CC_Fmode.
11144         (*conditional_branch): Rename from conditional_branch.
11145         (*reveresed_conditional_branch): Remove.
11146         (b<code>): Remove expander.
11147         * config/rx/rx-protos.h: Update.
11149         * config/rx/rx.c (rx_compare_redundant): Remove.
11150         * config/rx/rx.md (cmpsi): Don't use it.
11151         * config/rx/rx-protos.h: Update.
11153         * config/rx/rx-modes.def (CC_F): New mode.
11154         * config/rx/rx.c (rx_select_cc_mode): New.
11155         * config/rx/rx.h (SELECT_CC_MODE): Use it.
11156         * config/rx/rx-protos.h: Update.
11158 2011-01-17  Richard Henderson  <rth@redhat.com>
11160         * except.c (dump_eh_tree): Fix stray ; after for statement.
11162 2011-01-17  Richard Guenther  <rguenther@suse.de>
11164         PR tree-optimization/47313
11165         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
11166         handling before copying the body.  Properly deal with
11167         by-reference result in SSA form.
11169 2011-01-17  Ian Lance Taylor  <iant@google.com>
11171         PR target/47219
11172         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
11173         (struct_value_alias_set): Don't define.
11174         (sparc_option_override): Don't set sparc_sr_alias_set and
11175         struct_value_alias_set.
11176         (save_or_restore_regs): Use gen_frame_mem rather than calling
11177         set_mem_alias_set.
11178         (sparc_struct_value_rtx): Likewise.
11180 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
11182         PR target/47318
11183         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
11184         (_mm_maskstore_pd): Likewise.
11185         (_mm_maskload_ps): Likewise.
11186         (_mm_maskstore_ps): Likewise.
11187         (_mm256_maskload_pd): Change mask to __m256i.
11188         (_mm256_maskstore_pd): Likewise.
11189         (_mm256_maskload_ps): Likewise.
11190         (_mm256_maskstore_ps): Likewise.
11192         * config/i386/i386-builtin-types.def: Updated.
11193         (ix86_expand_special_args_builtin): Likewise.
11195         * config/i386/i386.c (bdesc_special_args): Update
11196         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
11197         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
11198         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
11199         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
11201         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
11202         Use <avxpermvecmode> on mask register.
11203         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
11205 2011-01-17  Olivier Hainque  <hainque@adacore.com>
11206             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11207             Eric Botcazou  <ebotcazou@adacore.com>
11209         PR target/46655
11210         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
11211         if <= USHRT_MAX in 32-bit mode.
11213 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11215         * doc/install.texi (Configuration, Specific): Wrap long
11216         lines in examples.  Allow line wrapping in long options
11217         and URLs where beneficial for PDF output.
11219 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
11221         * config/mips/mips.c (mips_classify_symbol): Don't return
11222         SYMBOL_PC_RELATIVE for nonlocal labels.
11224 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
11226         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
11228 2011-01-15  Jan Hubicka  <jh@suse.cz>
11230         PR tree-optimization/47276
11231         * ipa.c (function_and_variable_visibility): Do not try to mark alias
11232         declarations as needed.
11234 2011-01-15  Martin Jambor  <mjambor@suse.cz>
11236         * common.opt (fdevirtualize): New flag.
11237         * doc/invoke.texi (Option Summary): Document it.
11238         * opts.c (default_options_table): Add devirtualize flag.
11239         * ipa-prop.c (detect_type_change): Return immediately if
11240         devirtualize flag is not set.
11241         (detect_type_change_ssa): Likewise.
11242         (compute_known_type_jump_func): Likewise.
11243         (ipa_analyze_virtual_call_uses): Likewise.
11245 2011-01-14  Martin Jambor  <mjambor@suse.cz>
11247         PR tree-optimization/45934
11248         PR tree-optimization/46302
11249         * ipa-prop.c (type_change_info): New type.
11250         (stmt_may_be_vtbl_ptr_store): New function.
11251         (check_stmt_for_type_change): Likewise.
11252         (detect_type_change): Likewise.
11253         (detect_type_change_ssa): Likewise.
11254         (compute_complex_assign_jump_func): Check for dynamic type change.
11255         (compute_complex_ancestor_jump_func): Likewise.
11256         (compute_known_type_jump_func): Likewise.
11257         (compute_scalar_jump_functions): Likewise.
11258         (ipa_analyze_virtual_call_uses): Likewise.
11259         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
11261 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11263         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
11264         * config/i386/i386.opt (msse5): New Alias.
11266 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11268         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11269         * config/sparc/linux64.h (CC1_SPEC): Likewise.
11270         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11271         * config/sparc/sparc.h (CC1_SPEC): Likewise.
11273 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11275         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
11276         -mcpu options.
11277         * config/sparc/linux64.h (CC1_SPEC): Likewise.
11278         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11279         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
11280         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
11281         Likewise.
11282         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
11284 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11286         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
11288 2011-01-14  Mike Stump  <mikestump@comcast.net>
11290         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
11291         * config/fr30/fr30.md: Likweise
11292         (movsi_push): Likewise.
11293         (movsi_pop): Likewise.
11294         (enter_func): Likewise.
11295         * config/moxie/moxie.md (movsi_push): Likewise.
11296         (movsi_pop): Likewise.
11298 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11300         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
11301         %{no_archive} %{exact_version}.
11302         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
11303         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
11304         %{no_archive} %{exact_version}.
11305         * config/mips/openbsd.h (LINK_SPEC): Likewise.
11306         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
11307         * config/mips/vxworks.h: Likewise.
11309 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11311         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
11313 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11315         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
11316         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
11318 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11320         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
11321         -nodefaultlib.
11323 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11325         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
11326         for mcpu not cpu.
11327         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
11328         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
11329         not cpu.
11330         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
11331         Don't handle -shlib.
11333 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11335         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
11336         (CC1_SPEC): Don't handle -profile.
11338 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11340         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
11341         * config/mips/mips.h (CC1_SPEC): Likewise.
11343 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11345         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
11346         * config/mips/mips.h (CC1_SPEC): Likewise.
11348 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11350         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
11351         * config/m32r/linux.h (LINK_SPEC): Likewise.
11352         * config/mips/linux.h (LINK_SPEC): Likewise.
11353         * config/mips/linux64.h (LINK_SPEC): Likewise.
11354         * config/sparc/linux.h (LINK_SPEC): Likewise.
11355         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11356         LINK_SPEC): Likewise.
11357         * config/xtensa/linux.h (LINK_SPEC): Likewise.
11359 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11361         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
11362         %{version:-v}.
11363         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
11365 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11367         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
11368         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11370 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11372         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
11374 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11376         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
11377         supports -Bstatic/-Bdynamic.
11378         * configure: Regenerate.
11380 2011-01-14  Jan Hubicka  <jh@suse.cz>
11381             Jack Howarth  <howarth@bromo.med.uc.edu>
11383         PR target/46037
11384         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
11385         when checking debug_info_level. Test write_symbols instead of
11386         debug_hooks->var_location when setting flag_var_tracking_uninit.
11388 2011-01-14  Richard Guenther  <rguenther@suse.de>
11390         PR tree-optimization/47179
11391         * target.def (ref_may_alias_errno): New target hook.
11392         * targhooks.h (default_ref_may_alias_errno): Declare.
11393         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
11394         (default_ref_may_alias_errno): New function.
11395         * target.h (struct ao_ref_s): Declare.
11396         * tree-ssa-alias.c: Include target.h.
11397         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
11398         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
11399         (targhooks.o): Likewise.
11400         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
11401         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
11403 2011-01-14  Richard Guenther  <rguenther@suse.de>
11405         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
11407 2011-01-14  Richard Guenther  <rguenther@suse.de>
11409         PR tree-optimization/47280
11410         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
11411         return CFG changes.
11412         (tree_ssa_forward_propagate_single_use_vars): Deal with
11413         CFG changes from associate_plusminus.
11415 2011-01-14  Richard Guenther  <rguenther@suse.de>
11417         PR middle-end/47281
11418         Revert
11419         2011-01-11  Richard Guenther  <rguenther@suse.de>
11421         PR tree-optimization/46076
11422         * tree-ssa.c (useless_type_conversion_p): Conversions from
11423         unprototyped to empty argument list function types are useless.
11425 2011-01-14  Richard Guenther  <rguenther@suse.de>
11427         PR tree-optimization/47286
11428         * tree-ssa-structalias.c (new_var_info): Register variables are global.
11430 2011-01-14  Martin Jambor  <mjambor@suse.cz>
11432         PR middle-end/46823
11433         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
11435 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
11437         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
11438         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11439         * config/xtensa/xtensa.c (xtensa_libcall_value,
11440         xtensa_function_value_regno_p): New functions.
11441         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11443 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
11445         PR c++/47213
11446         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
11447         PE specific hook.
11448         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
11449         New function prototype.
11450         * config/i386/winnt.c (i386_pe_assemble_visibility):
11451         Warn only if attribute was specified by user.
11453 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
11455         PR target/47251
11456         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
11457         floating point.
11458         (floatunsdidf2_fcfidu): Ditto.
11460 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11462         * config/s390/s390.c (print_operand_address): Replace 'error' with
11463         'output_operand_lossage'.
11464         (print_operand): Likewise.
11466 2011-01-13  Jeff Law  <law@redhat.com>
11468         PR rtl-optimization/39077
11469         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
11470         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
11471         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
11472         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
11473         * gcse.c (prune_insertions_deletions): New function.
11474         (compute_pre_data): Use it.
11476 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
11478         PR debug/PR46973
11479         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
11480         static function.
11481         (prune_unused_types_mark): Use it.
11483 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
11485         PR rtl-optimization/45352
11486         * sel-sched.c: Update copyright years.
11487         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
11488         in the advancing loop when we have issued issue_rate insns.
11490 2011-01-12  Richard Henderson  <rth@redhat.com>
11492         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
11493         (TARGET_MD_ASM_CLOBBERS): New.
11495         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
11496         (TARGET_DELEGITIMIZE_ADDRESS): New.
11498         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
11499         (clzsi2, *bsch): New patterns.
11501         * config/mn10300/mn10300.md (INT): New mode iterator.
11502         (*mov<INT>_clr): New pattern, and peep2 to generate it.
11504         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
11505         flag_split_wide_types.
11507         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
11508         (mn10300_trampoline_init): Rewrite without a template, an immediate
11509         load and a direct branch.
11510         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
11512 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
11514         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11515         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
11516         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
11517         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11519 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
11521         PR debug/47209
11522         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
11523         of type.
11525 2011-01-12  Jan Hubicka  <jh@suse.cz>
11527         PR driver/47244
11528         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11529         (PLUGIN_COND_CLOSE): New macro.
11530         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11532 2011-01-12  Richard Guenther  <rguenther@suse.de>
11534         PR lto/47259
11535         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11536         register variables in a MEM_REF.
11538 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
11540         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11541         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11542         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11543         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11544         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11545         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11546         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11547         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11548         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11549         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11550         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11551         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11552         * config/gnu-user.h: New.  Copied from linux.h.
11553         (LINUX_TARGET_STARTFILE_SPEC): Rename to
11554         GNU_USER_TARGET_STARTFILE_SPEC.
11555         (LINUX_TARGET_ENDFILE_SPEC): Rename to
11556         GNU_USER_TARGET_ENDFILE_SPEC.
11557         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11558         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11559         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11560         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11561         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11562         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11563         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11564         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11565         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11566         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11567         * config/arm/linux-eabi.h (CC1_SPEC): Use
11568         GNU_USER_TARGET_CC1_SPEC.
11569         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11570         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11571         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11572         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11573         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11574         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11575         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11576         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11578 2011-01-12  Richard Guenther  <rguenther@suse.de>
11580         PR other/46946
11581         * doc/invoke.texi (ffast-math): Document it is turned on
11582         with -Ofast.
11584 2011-01-12  Jan Hubicka  <jh@suse.cz>
11586         PR tree-optimization/47233
11587         * opts.c (common_handle_option): Disable ipa-reference with profile
11588         feedback.
11590 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11592         * c-parser.c (c_parser_objc_at_property_declaration): Improved
11593         error message.
11595 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11597         * c-parser.c (c_lex_one_token): Updated and reindented some
11598         comments.  No changes in code.
11600 2011-01-11  Ian Lance Taylor  <iant@google.com>
11602         * godump.c (go_output_var): Don't output the variable if there is
11603         already a type with the same name.
11605 2011-01-11  Ian Lance Taylor  <iant@google.com>
11607         * godump.c (go_format_type): Don't generate float80.
11609 2011-01-11  Richard Henderson  <rth@redhat.com>
11611         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11612         declaration.  Rewrite for both speed and size.
11613         (mn10300_address_cost_1): Remove.
11614         (mn10300_register_move_cost): New.
11615         (mn10300_memory_move_cost): New.
11616         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
11617         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
11618         extensions, shifts, BSWAP, CLZ.
11619         (mn10300_wide_const_load_uses_clr): Remove.
11620         (TARGET_REGISTER_MOVE_COST): New.
11621         (TARGET_MEMORY_MOVE_COST): New.
11622         * config/mn10300/mn10300-protos.h: Update.
11623         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11625         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11626         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11627         * config/mn10300/mn10300-protos.h: Update.
11628         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11629         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11630         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11631         (*test_int_bitfield, *test_byte_bitfield): Remove.
11632         (*bit_test, *subreg_bit_test): Remove.
11633         * config/mn10300/predicates.md (const_8bit_operand): Remove.
11635         * config/mn10300/constraints.md ("c"): Rename from "A".
11636         ("A", "D"): New constraint letters.
11637         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11638         (fmssf4, fnmasf4, fnmssf4): Likewise.
11640         * config/mn10300/mn10300.md (isa): New attribute.
11641         (enabled): New attribute.
11643         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11644         (abssf2, negsf2): Define only for hardware fp.
11645         (sqrtsf2): Reformat.
11646         (addsf3, subsf3, mulsf3): Merge expander and insn.
11648         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11649         (DEBUGGER_AUTO_OFFSET): Remove.
11650         (DEBUGGER_ARG_OFFSET): Remove.
11652         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11653         Emit register stores with the same offsets as the hardware.
11654         (mn10300_store_multiple_operation): Don't check that the register
11655         save offsets are monotonic.
11656         * config/mn10300/mn10300-protos.h: Update.
11658         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11660         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11661         in terms of the value on the stack, not the MDR register.
11663 2011-01-11  Jan Hubicka  <jh@suse.cz>
11665         PR lto/45721
11666         PR lto/45375
11667         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11668         (symbol_alias_set_destroy, symbol_alias_set_contains,
11669         propagate_aliases_backward): Declare.
11670         * lto-streamer-out.c (struct sets): New sturcture.
11671         (trivally_defined_alias): New function.
11672         (output_alias_pair_p): Rewrite.
11673         (output_unreferenced_globals): Fix output of alias pairs.
11674         (produce_symtab): Likewise.
11675         * ipa.c (function_and_variable_visibility): Set weak alias destination
11676         as needed in lto.
11677         * varasm.c (symbol_alias_set_t): Remove.
11678         (symbol_alias_set_destroy): Export.
11679         (propagate_aliases_forward, propagate_aliases_backward): New functions
11680         based on ...
11681         (compute_visible_aliases): ... this one; remove.
11682         (trivially_visible_alias): New
11683         (trivially_defined_alias): New.
11684         (remove_unreachable_alias_pairs): Rewrite.
11685         (finish_aliases_1): Reorganize code checking if alias is defined.
11686         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11687         in LTO mode.
11689 2011-01-11  Richard Guenther  <rguenther@suse.de>
11691         PR tree-optimization/46076
11692         * tree-ssa.c (useless_type_conversion_p): Conversions from
11693         unprototyped to empty argument list function types are useless.
11695 2011-01-11  Richard Guenther  <rguenther@suse.de>
11697         PR middle-end/45235
11698         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11699         volatile MEMs as MEM_READONLY_P.
11701 2011-01-11  Richard Guenther  <rguenther@suse.de>
11703         PR tree-optimization/47239
11704         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11706 2011-01-11  Jeff Law  <law@redhat.com>
11708         PR tree-optimization/47086
11709         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11710         IVs from statements that might throw.
11712 2011-01-10  Jan Hubicka  <jh@suse.cz>
11714         PR lto/45375
11715         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11717 2011-01-10  Jan Hubicka  <jh@suse.cz>
11719         PR lto/45375
11720         * profile.c (read_profile_edge_counts): Ignore profile inconistency
11721         when correcting profile.
11723 2011-01-10  Jan Hubicka  <jh@suse.cz>
11725         PR lto/46083
11726         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11727         DECL_FINI_PRIORITY.
11728         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11729         Restore DECL_FINI_PRIORITY.
11731 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11733         * doc/gimple.texi: Fix quoting of multi-word return values in
11734         @deftypefn statements.  Ensure presence of return value.  Wrap
11735         overlong @deftypefn lines.
11736         (is_gimple_operand, is_gimple_min_invariant_address): Remove
11737         descriptions of removed functions.
11738         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11739         of multi-word return value in @deftypefn statement.
11741 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11743         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11744         (Conditional Expressions, Logical Operators)
11745         (Statement and operand traversals): Do not indent smallexample
11746         code.  Fix duplicate function argument in example.
11748 2011-01-10  Jeff Law  <law@redhat.com>
11750         PR tree-optimization/47141
11751         * ipa-split.c (split_function): Handle case where we are
11752         returning a value and the return block has a virtual operand phi.
11754 2011-01-10  Jan Hubicka  <jh@suse.cz>
11756         PR tree-optimization/47234
11757         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11758         (pass_feedback_split_functions): Declare.
11759         * passes.c (init_optimization_passes): Add ipa-split as subpass of
11760         tree-profile.
11761         * ipa-split.c (gate_split_functions): Update comments; disable
11762         split-functions for profile_arc_flag and branch_probabilities.
11763         (gate_feedback_split_functions): New function.
11764         (execute_feedback_split_functions): New function.
11765         (pass_feedback_split_functions): New global var.
11767 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
11769         PR lto/46760
11770         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11771         calling gimple_call_set_cannot_inline.
11773 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
11775         * config/darwin-sections.def: Remove unused section.
11777 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
11779         PR c++/47218
11780         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11782 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11784         PR objc/47232
11785         * c-parser.c (c_parser_declaration_or_fndef): Improved
11786         error message.
11788 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
11790         * config/i386/winnt.c (i386_pe_start_function): Make sure
11791         to switch back to function's section.
11793 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
11795         PR gcc/46902
11796         PR testsuite/46912
11797         * plugin.c: Move include of dlfcn.h from here...
11798         * system.h: ... to here.
11800 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11802         * doc/cpp.texi (C++ Named Operators): Fix markup for header
11803         file name.
11804         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11805         two extra empty pages in PDF output.
11807 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
11809         PR objc/47078
11810         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11811         for error recovery purposes behave as if it was not specified so
11812         that the default type is usd.
11814 2011-01-07  Jan Hubicka  <jh@suse.cz>
11816         PR tree-optmization/46469
11817         * ipa.c (function_and_variable_visibility): Clear needed flags on
11818         nodes with external decls; handle weakrefs merging correctly.
11820 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
11822         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11823         not false.
11825 2011-01-07  Jan Hubicka  <jh@suse.cz>
11827         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11828         and no longer claim that gold is required for linker plugin.
11829         * configure: Regenerate.
11830         * gcc.c (PLUGIN_COND): New macro.
11831         (LINK_COMMAND_SPEC): Use it.
11832         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11833         * config.in (HAVE_LTO_PLUGIN): New.
11834         * configure.ac (--with-lto-plugin): New parameter; autodetect
11835         HAVE_LTO_PLUGIN.
11837 2011-01-07  Jan Hubicka  <jh@suse.cz>
11839         PR tree-optimization/46367
11840         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11841         when we can update original.
11842         (cgraph_mark_inline_edge): Sanity check.
11843         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11845 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11847         * config/spu/spu.h (ASM_COMMENT_START): Define.
11849 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11851         PR driver/42445
11852         * gcc.c (%>S): New.
11853         (SWITCH_KEEP_FOR_GCC): Likewise.
11854         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11855         (do_spec_1): Handle "%>".
11857         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11859 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
11861         PR target/47201
11862         * config/i386/i386.c (ix86_delegitimize_address): If
11863         simplify_gen_subreg fails, return orig_x.
11865         PR bootstrap/47187
11866         * value-prof.c (gimple_stringop_fixed_value): Handle
11867         lhs of the call properly.
11869 2011-01-07  Jan Hubicka  <jh@suse.cz>
11871         PR lto/45375
11872         * lto-opt.c (lto_reissue_options): Set flag_shlib.
11874 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11876         * target.def (function_switched_text_sections): New hook.
11877         * doc/tm.texi: Regenerated.
11878         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11879         * final.c (default_function_switched_text_sections): New.
11880         (final_scan_insn): Call function_switched_text_sections when a
11881         mid-function section change occurs.
11882         * output.h (default_function_switched_text_sections): Declare.
11883         * config/darwin-protos.h (darwin_function_switched_text_sections):
11884         Likewise.
11885         * config/darwin.c (darwin_function_switched_text_sections): New.
11886         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11888 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11890         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
11891         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
11892         the secondary code fragment when outputting for DWARF == 2.
11894 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
11896         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11897         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11898         Remove.
11899         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11900         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11902 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
11904         PR debug/46704
11905         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11906         when it is not empty.
11908 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
11910         Bobcat Enablement
11911         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11912         (case ${target}): Add btver1.
11913         * config/i386/driver-i386.c (host_detect_local_cpu): Let
11914         -march=native recognize btver1 processors.
11915         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11916         btver1 def_and_undef
11917         * config/i386/i386.c (struct processor_costs btver1_cost): New
11918         btver1 cost table.
11919         (m_BTVER1): New definition.
11920         (m_AMD_MULTIPLE): Includes m_BTVER1.
11921         (initial_ix86_tune_features): Add btver1 tune.
11922         (processor_target_table): Add btver1 entry.
11923         (static const char *const cpu_names): Add btver1 entry.
11924         (software_prefetching_beneficial_p): Add btver1.
11925         (ix86_option_override_internal): Add btver1 instruction sets.
11926         (ix86_issue_rate): Add btver1.
11927         (ix86_adjust_cost): Add btver1.
11928         * config/i386/i386.h (TARGET_BTVER1): New definition.
11929         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11930         (enum processor_type): Add PROCESSOR_BTVER1.
11931         * config/i386/i386.md (define_attr "cpu"): Add btver1.
11933 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11935         PR target/43309
11936         * config/i386/i386.c (legitimize_tls_address)
11937         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11938         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11939         (tls_initial_exec_64_sun): New pattern.
11941 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
11943         * doc/invoke.texi (Overall Options): Improve wording and markup
11944         of the description of -wrapper.
11946 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11948         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11949         rdynamic, threads): New Driver options.
11951 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11953         PR target/38118
11954         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11955         if coming from .tdata.
11956         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11958 2011-01-06  Jan Hubicka  <jh@suse.cz>
11960         PR lto/47188
11961         * collect2.c (main): Do not enable LTOmode when plugin is active.
11963 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11965         PR other/45915
11966         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11967         --version output if supported.
11968         * configure: Regenerate.
11970 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11972         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11973         Driver options.
11975 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
11977         PR c/47150
11978         * c-convert.c (convert): When converting a complex expression
11979         other than COMPLEX_EXPR to a different complex type, ensure
11980         c_save_expr is called instead of save_expr, unless in_late_binary_op.
11981         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11982         when converting COMPLEX_TYPE.
11984 2011-01-06  Ira Rosen  <irar@il.ibm.com>
11986         PR tree-optimization/47139
11987         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11988         only the last reduction value is used outside the loop.  Update
11989         documentation.
11991 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
11993         * config/rtems.opt: New.
11994         * config.gcc (*-*-rtems*): Use rtems.opt.
11996 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
11998         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11999         processors do not support 3DNow instructions.
12001 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12003         * config/spu/spu.c (spu_option_override): Set parameter
12004         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
12006 2011-01-05  Jan Hubicka  <jh@suse.cz>
12008         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
12009         at the command line.
12011 2011-01-05  Martin Jambor  <mjambor@suse.cz>
12013         PR lto/47162
12014         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
12015         deltas on streamed outgoing edges.
12016         (output_node_opt_summary): Output info for outgoing edges only when
12017         the node is in new parameter set.
12018         (output_cgraph_opt_summary): New parameter set, passed to the two
12019         aforementioned functions.  Update its forward declaration and its
12020         callee too.
12022 2011-01-05  Tom Tromey  <tromey@redhat.com>
12024         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
12025         operator to c_finish_omp_atomic.
12026         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
12027         (build_unary_op): Update.
12028         (build_modify_expr): Update.
12029         (build_asm_expr): Update.
12031 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12033         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
12034         newly inserted insns.
12035         (pad_bb): Likewise.
12036         (spu_emit_branch_hint): Likewise.
12037         (insert_hbrp_for_ilb_runout): Likewise.
12038         (spu_machine_dependent_reorg): Call df_finish_pass after
12039         schedule_insns returns.
12041 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12043         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
12045 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
12047         PR tree-optimization/47005
12048         * tree-sra.c (struct access): Add 'non_addressable' bit.
12049         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
12050         (decide_one_param_reduction): Return 0 if the parameter is passed by
12051         reference and one of the accesses in the group is non_addressable.
12053 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
12055         PR tree-optimization/47056
12056         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
12057         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
12058         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
12060 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
12062         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
12063         initializer.  Skip view conversions from aggregate types.
12065 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
12067         PR bootstrap/47055
12068         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
12070 2011-01-04  Philipp Thomas  <pth@suse.de>
12072         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
12073         obvious typo.
12075 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12077         * function.c (thread_prologue_and_epilogue_insns): Do not crash
12078         on empty epilogue sequences.
12080 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
12082         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
12083         non-static): New Driver options.
12085 2011-01-04  Jie Zhang  <jie@codesourcery.com>
12087         PR driver/47137
12088         * gcc.c (default_compilers[]): Set combinable field to 0
12089         for all assembly languages.
12091 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
12093         * config/mips/loongson3a.md: New file.
12094         * config/mips/mips.md: Include loongson3a.md.
12095         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
12096         TUNE_LOONGSON_3A.
12098 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
12100         PR middle-end/47017
12101         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
12102         instead of convert_memory_address_addr_space on the base expression.
12104 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12106         * config/spu/spu.c (spu_option_override): Update error text
12107         for bad -march= / -mtune= values.
12109 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12111         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
12112         if branch-hint optimization will be performed.
12114 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
12116         PR tree-optimization/47148
12117         * ipa-split.c (split_function): Convert arguments to
12118         DECL_ARG_TYPE if possible.
12120         PR tree-optimization/47155
12121         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
12122         when computing uns.
12124         PR rtl-optimization/47157
12125         * combine.c (try_combine): If undobuf.other_insn becomes
12126         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
12127         and set *new_direct_jump_p too.
12129 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
12131         PR tree-optimization/47021
12132         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
12134 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
12136         * gcc.c (process_command): Update copyright notice dates.
12137         * gcov.c (print_version): Likewise.
12138         * gcov-dump.c (print_version): Likewise.
12139         * mips-tfile.c (main): Likewise.
12140         * mips-tdump.c (main): Likewise.
12142 2011-01-03  Martin Jambor  <mjambor@suse.cz>
12144         PR tree-optimization/46801
12145         * tree-sra.c (type_internals_preclude_sra_p): Check whether
12146         aggregate fields start at byte boundary instead of the bit-field flag.
12148 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
12150         PR driver/47137
12151         * gcc.c (main): Revert revision 168407.
12153 2011-01-03  Martin Jambor  <mjambor@suse.cz>
12155         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
12157 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12159         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
12160         vector optab to expand vector/scalar shift, update gimple to vector.
12162 2011-01-03  Martin Jambor  <mjambor@suse.cz>
12164         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
12165         a thunk.
12167 2011-01-03  Martin Jambor  <mjambor@suse.cz>
12169         PR tree-optimization/46984
12170         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
12171         HOST_WIDE_INT.
12172         (cgraph_create_indirect_edge): Fixed line length.
12173         (cgraph_indirect_call_info): Declare.
12174         (cgraph_make_edge_direct) Update declaration.
12175         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
12176         (cgraph_create_indirect_edge): Use it.
12177         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
12178         callees.
12179         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
12180         the new thunk_delta representation.
12181         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
12182         HOST_WIDE_INT.
12183         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
12184         (ipa_read_indirect_edge_info): Likewise.
12185         * lto-cgraph.c (output_edge_opt_summary): New function.
12186         (output_node_opt_summary): Call it on all outgoing edges.
12187         (input_edge_opt_summary): New function.
12188         (input_node_opt_summary): Call it on all outgoing edges.
12190 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
12192         PR driver/47137
12193         * gcc.c (main): Don't check have_o when settting combine_inputs.
12195 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
12197         * regrename.c: Add general comment describing the pass.
12198         (struct du_head): Remove 'length' field.
12199         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
12200         (regrename_optimize): Do not sort chains.  Rework comments, add others.
12201         Force renaming to the preferred class (if any) in the first pass and do
12202         not consider registers that belong to it in the second pass.
12203         (create_new_chain): Do not set 'length' field.
12204         (scan_rtx_reg): Likewise.
12206 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
12208         PR tree-optimization/47140
12209         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
12210         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
12211         to bit_value_binop.
12213         PR rtl-optimization/47028
12214         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
12215         parm_birth_insn instead of at the beginning of first bb.
12217 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
12219         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
12220         Remove the word "see" before "@pxref".
12221         * doc/rtl.texi: Remove the word "see" before "@pxref".
12223 2011-01-01  Jan Hubicka  <jh@suse.cz>
12225         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
12226         memory.
12228 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
12230         PR target/38662
12231         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
12234 Copyright (C) 2011 Free Software Foundation, Inc.
12236 Copying and distribution of this file, with or without modification,
12237 are permitted in any medium without royalty provided the copyright
12238 notice and this notice are preserved.