split checksum into cfg checksum and line checksum
[official-gcc.git] / gcc / ChangeLog
blobfdbc4f1212e863b9fee25e3091788ee1c5ec29ff
1 2011-04-28  David Li  <davidxl@google.com>
3         * tree.c (crc32_string): Use crc32_byte.
4         (crc32_byte): New function.
5         * tree.h (crc32_byte): New function.
6         * gcov.c (read_graph_file): Handle new cfg_cksum.
7         (read_count_file): Ditto.
8         * profile.c (instrument_values): Ditto.
9         (get_exec_counts): Ditto.
10         (read_profile_edge_counts): Ditto.
11         (compute_branch_probabilities): Ditto.
12         (compute_value_histograms): Ditto.
13         (branch_prob): Ditto.
14         (end_branch_prob): Ditto.
15         * coverage.c (read_counts_file): Ditto.
16         (get_coverage_counts): Ditto.
17         (tree_coverage_counter_addr): Ditto.
18         (coverage_checksum_string): Ditto.
19         (coverage_begin_output): Ditto.
20         (coverage_end_function): Ditto.
21         (build_fn_info_type): Ditto.
22         (build_fn_info_value): Ditto.
23         * libgcov.c (gcov_exit): Ditto.
24         * gcov-dump.c (tag_function): Ditto.
25         (compute_checksum): Remove.
27 2011-04-29  Alan Modra  <amodra@gmail.com>
29         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
30         unspec plus offset.  Tidy macho code.
32 2011-04-29  Martin Jambor  <mjambor@suse.cz>
34         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
35         node instead of a decl.  Update all callers.
36         * cgraph.h: Update declaration.
38 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
40         PR tree-optimization/48765
41         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
42         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
43         to indicate if loop aware SLP is being used.  Scan the statements
44         and update the vectorization factor according to the type of
45         vectorization before statement analysis.
46         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
47         pass it to vect_analyze_loop_operations.
48         (vectorizable_reduction): Set number of copies to 1 in case of pure
49         SLP statement.
50         * tree-vect-stmts.c (vectorizable_conversion,
51         vectorizable_assignment, vectorizable_shift,
52         vectorizable_operation, vectorizable_type_demotion,
53         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
54         Likewise.
55         (vectorizable_condition): Move the check that it is not SLP
56         vectorization before the number of copies check.
57         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
58         to vectorize the loop using SLP.
60 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
62         PR middle-end/48597
63         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
64         inline asm.
66 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
68         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
69         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
70         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
71         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
72         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
73         linux*.h headers.
74         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
75         Define.
76         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
77         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
78         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
79         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't
80         undefine.
81         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
82         REG_NAME.
83         * config/i386/linux.h (REG_NAME): Don't define.
84         * config/i386/linux64.h (REG_NAME): Don't define.
85         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
86         Undefine before defining.
88 2011-04-28  Jan Hubicka  <jh@suse.cz>
90         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take nonconstant_names
91         array.
92         (estimate_function_body_sizes): Build nonconstant_names array; handle
93         BUILT_IN_CONSTANT_P.
95 2011-04-28  Richard Guenther  <rguenther@suse.de>
97         PR bootstrap/48804
98         Revert
99         2011-04-28  Richard Guenther  <rguenther@suse.de>
101         * tree-ssa-structalias.c (solve_constraints): Build succ graph
102         as late as possible.
104 2011-04-28  Richard Guenther  <rguenther@suse.de>
106         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
107         (debug_constraint): Do it here.
108         (dump_constraints): And here.
109         (rewrite_constraints): And here.
110         (dump_constraint_edge): Remove.
111         (dump_constraint_graph): Rewrite to produce DOT output.
112         (solve_constraints): Build succ graph as late as possible.
113         Dump constraint graphs before and after solving.
115 2011-04-28  Richard Guenther  <rguenther@suse.de>
117         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
118         New function split out from ...
119         (find_func_aliases): ... here.  Call it.
120         (find_func_aliases_for_call): Likewise.
122 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
124         * internal-fn.h (internal_fn_name_array): Declare.
125         (internal_fn_flags_array): Likewise.
127 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
129         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
130         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
131         Move from sse.md.
132         (ssemodefsuffix): Remove.
133         (ssevecmodesuffix): New mode attribute.
134         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
135         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
136         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
137         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
138         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
139         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
140         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
141         ssemodesuffix mode attribute.
142         (float splitters): Use ssevecmodesuffix mode attribute.
143         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
144         (sseinsmode): Rename from avxvecmode.
145         (avxsizesuffix): Rename from avxmodesuffix.
146         (sseintvecmode): Rename from avxpermvecmode.
147         (ssedoublevecmode): Rename from ssedoublesizemode.
148         (ssehalfvecmode): Rename from avxhalfvecmode.
149         (ssescalarmode): Rename from avxscalarmode.
150         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
151         templates for ssemodesuffix mode attribute.
152         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
153         mode attribute.
155         Adjust RTX patterns globally for renamed mode attributes.
157 2011-04-27  Jan Hubcika  <jh@suse.cz>
159         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
160         * ipa-inline-analysis.c: Include alloc-pool.h.
161         (edge_predicate_pool): New.
162         (trye_predicate_p): New function
163         (false_predicate_p): New function.
164         (add_clause): Sanity check that false clauses are "optimized";
165         never add clauses to predicate that is already known to be false.
166         (and_predicate): Use flase_predicate_p.
167         (evaulate_predicate): Rename to ...
168         (evaluate_predicate): ... this one; update all callers; assert
169         that false is not listed among possible truths.
170         (dump_predicate): Use true_predicate_p.
171         (account_size_time): Use false_predicate_p.
172         (evaulate_conditions_for_edge): Rename to ...
173         (evaluate_conditions_for_edge) ... this one.
174         (edge_set_predicate): New function.
175         (inline_edge_duplication_hook): Duplicate edge predicates.
176         (inline_edge_removal_hook): Free edge predicates.
177         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
178         (dump_inline_summary): Update.
179         (estimate_function_body_sizes): Set edge predicates.
180         (estimate_calls_size_and_time): Handle predicates.
181         (estimate_callee_size_and_time): Update.
182         (remap_predicate): Add toplev_predicate; update comment.
183         (remap_edge_predicates): New function.
184         (inline_merge_summary): Compute toplev predicate; update.
185         (read_predicate): New function.
186         (read_inline_edge_summary): Use it.
187         (inline_read_section): Likewise.
188         (write_predicate): New function.
189         (write_inline_edge_summary): Use it.
190         (inline_write_summary): Likewise.
191         (inline_free_summary): Free alloc pool and edge summary vec.
193 2011-04-27  Richard Guenther  <rguenther@suse.de>
195         * tree-ssa-structalias.c (changed_count): Remove.
196         (changed): Use a bitmap.
197         (unify_nodes): Adjust.
198         (do_sd_constraint): Likewise.
199         (do_ds_constraint): Likewise.
200         (do_complex_constraint): Likewise.
201         (solve_graph): Likewise.
203 2011-04-27  Jan Hubicka  <jh@suse.cz>
205         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
207 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
209         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
210         (avx_vperm2f128_*_operand): Ditto.
211         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
212         Use avx_vpermilp_parallel in insn condition.
213         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
214         Use avx_vperm2f128_parallel in insn condition.
216 2011-04-27  Richard Guenther  <rguenther@suse.de>
218         * Makefile.in (tree-ssa-structalias.o): Remove
219         gt-tree-ssa-structalias.h dependency.
220         (GTFILES): Remove tree-ssa-structalias.c.
221         * tree.c (allocate_decl_uid): New function.
222         (make_node_stat): Use it.
223         (copy_node_stat): Likewise.
224         * tree.h (allocate_decl_uid): Declare.
225         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
226         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
227         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
228         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
229         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
230         (struct heapvar_map): Likewise.
231         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
232         heapvar_insert): Likewise.
233         (make_heapvar_for): Rename to ...
234         (make_heapvar): ... this.  Simplify.
235         (fake_var_decl_obstack): New global var.
236         (build_fake_var_decl): New function.
237         (make_constraint_from_heapvar): Adjust.
238         (handle_lhs_call): Likewise.
239         (create_function_info_for): Likewise.
240         (intra_create_variable_infos): Likewise.
241         (init_alias_vars): Allocate fake_var_decl_obstack.
242         (init_alias_heapvars, delete_alias_heapvars): Remove.
243         (compute_points_to_sets): Do not call init_alias_heapvars.
244         (ipa_pta_execute): Likewise.
245         (delete_points_to_sets): Free fake_var_decl_obstack.
247 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
249         * config/spu/divmovti4.c (union qword_UTItype): New data type.
250         (si_from_UTItype, si_to_UTItype): New functions.
251         (__udivmodti4): Use them to implement type-punning.
252         * config/spu/multi3.c (union qword_TItype): New data type.
253         (si_from_TItype, si_to_TItype): New functions.
254         (__multi3): Use them to implement type-punning.
256 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
258         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
260 2011-04-27  Jan Hubicka  <jh@suse.cz>
262         * ipa-prop.c (function_insertion_hook_holder): New holder.
263         (ipa_add_new_function): New function.
264         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
265         Register/deregister holder.
267 2011-04-27  Richard Guenther  <rguenther@suse.de>
269         PR tree-optimization/48772
270         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
272 2011-04-27  Richard Guenther  <rguenther@suse.de>
274         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
275         TARGET_MEM_REF handling.
277 2011-04-27  Nick Clifton  <nickc@redhat.com>
279         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
280         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
281         (REG_CLASS_NAMES): Likewise.
282         (REG_CLASS_CONTENTS): Likewise.
283         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
284         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
285         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
286         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
287         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
288         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
289         duplicate register classes.
290         (frv_class_likely_spilled_p): Likewise.
291         (frv_register_move_cost): Likewise.
293         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
294         end of the regno_reg_class array.
296 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
298         PR c/48742
299         * c-typeck.c (build_binary_op): Don't wrap arguments if
300         int_operands is true.
302 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
304         PR target/48767
305         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
306         targetm.calls.must_pass_in_stack for void type.
308 2011-04-26  Jan Hubicka  <jh@suse.cz>
310         * cgraphbuild.c (build_cgraph_edges): Update call
311         of cgraph_create_edge and cgraph_create_indirect_edge.
312         * cgraph.c (cgraph_create_edge_including_clones,
313         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
314         cgraph_update_edges_for_call_stmt_node): Do not take nest
315         argument; do not initialize call_stmt_size/time.
316         (dump_cgraph_node): Do not dump nest.
317         (cgraph_clone_edge): Do not take loop_nest argument;
318         do not propagate it; do not clone call_stmt_size/time.
319         (cgraph_clone_node): Likewise.
320         (cgraph_create_virtual_clone): Update.
321         * cgraph.h (struct cgraph_edge): Remove
322         call_stmt_size/call_stmt_time/loop_nest.
323         (cgraph_create_edge, cgraph_create_indirect_edge,
324         cgraph_create_edge_including_clones, cgraph_clone_node): Update
325         prototype.
326         * tree-emutls.c (gen_emutls_addr): Update.
327         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
328         loop_nest; handle indirect calls, too.
329         (clone_inlined_nodes): Do not care about updating inline summaries.
330         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
331         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
332         stream call_stmt_size/call_stmt_time/loop_nest.
333         * ipa-inline.c (edge_badness): Update.
334         (ipa_inline): dump summaries after inlining.
335         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
336         New.
337         (inline_edge_summary): New function.
338         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
339         (inline_edge_removal_hook): Handle edge summaries.
340         (inline_edge_duplication_hook): New hook.
341         (inline_summary_alloc): Alloc hooks.
342         (initialize_growth_caches): Do not register removal hooks.
343         (free_growth_caches); Do not free removal hook.
344         (dump_inline_edge_summary): New function.
345         (dump_inline_summary): Use it.
346         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
347         (inline_update_callee_summaries): New function.
348         (inline_merge_summary): Use it.
349         (do_estimate_edge_time, do_estimate_edge_growth): Update.
350         (read_inline_edge_summary): New function.
351         (inline_read_section): Use it.
352         (write_inline_edge_summary): New function.
353         (inline_write_summary): Use it.
354         (inline_free_summary): Free edge new holders.
355         * tree-inline.c (copy_bb): Update.
357 2011-04-26  Jason Merrill  <jason@redhat.com>
359         * tree-eh.c (lower_try_finally_switch): Create the label along with
360         the CASE_LABEL_EXPR.
362 2011-04-26  David S. Miller  <davem@davemloft.net>
363             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
365         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
366         * configure: Regenerate.
368 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
370         PR target/48258
371         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
372         reduction.
373         (VEC_reduc): New code iterator and splitters for vector reduction.
374         (VEC_reduc_name): Ditto.
375         (VEC_reduc_rtx): Ditto.
376         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
377         (reduc_<VEC_reduc_name>_v4sf): Ditto.
379         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
380         support for extracting SF on VSX.
382         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
383         generating xscvspdp.
384         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
385         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
386         double add, minimum, maximum vector reduction.
387         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
388         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
389         optimize double vector reduction.
390         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
392 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
394         * config/fr30/fr30.h (inhibit_libc): Don't define.
395         * config/m32r/m32r-protos.h: Correct comment.
396         * config/v850/v850.h (GHS_default_section_names,
397         GHS_current_section_names): Use tree, not union tree_node *.
399 2011-04-26  Xinliang David Li  <davidxl@google.com>
401         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
402         * c-family/c-opts.c (c_common_handle_option): Set
403         warn_maybe_uninitialized.
404         * opts.c (common_handle_option): Ditto.
405         * common.opt:  New option.
406         * tree-ssa.c (warn_uninit): Add one more parameter.
407         (warn_uninitialized_var): Pass warning code.
408         * tree-flow.h: Interface change.
411 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
413         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
414         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
415         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
417 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
419         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
420         * config/mips/mips.opt (mmips-tfile): Remove.
422         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
423         mips-tdump reference to ...
424         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
425         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
426         reference by Tru64 UNIX.
428 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
430         PR debug/48768
431         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
432         is error_mark_node, set value to NULL.
434         PR tree-optimization/48734
435         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
436         if return value from maybe_fold_*_comparsions isn't something
437         the code is prepared to handle.
439 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
441         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
442         mode check.
443         (ext_QIreg_nomode_operands): Remove.
444         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
445         (*andsi_1): Ditto.
446         (*andhi_1): Ditto.
448 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
450         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
452 2011-04-26  Richard Guenther  <rguenther@suse.de>
454         * c-typeck.c (build_unary_op): Do not expand array-refs via
455         pointer arithmetic.  Only adjust qualifiers for function types.
457 2011-04-26  Richard Guenther  <rguenther@suse.de>
459         PR middle-end/48694
460         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
461         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
462         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
463         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
465 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
467         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
468         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
469         * doc/extend.texi: Document __underlying_type.
471 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
473         * config/rs6000/titan.md (automata_option "progress"): Remove.
475 2011-04-25  Jeff Law  <law@redhat.com>
477         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
479 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
481         * system.h (ENUM_BITFIELD): Remove.
483 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
484             Eric Botcazou <ebotcazou@adacore.com>
486         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
487         for STORE_FLAG_VALUE==-1 case.
489 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
491         PR target/43804
492         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
493         LEGITIMATE_PIC_OPERAND_P.
495 2011-04-24  Jan Hubicka  <jh@suse.cz>
497         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
498         WPA hack.
499         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
500         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
501         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
502         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
503         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
504         Sanity check predicate length.
505         (remap_predicate): Likewise; sanity check jump functions.
506         (inline_read_section, inline_write_summary): Sanity check
507         predicate length.
509 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
511         PR other/48748
512         * doc/extend.texi (Type Traits): Document __is_standard_layout,
513         __is_literal_type, and __is_trivial; update throughout about
514         possibly cv-qualified void types.
516 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
518         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
519         testsuite and make it version agnostic.
521 2011-04-22  Jan Hubicka  <jh@suse.cz>
523         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
525 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
527         PR c/48685
528         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
529         to VOID_TYPE even around MODIFY_EXPR.
531 2011-04-22  Mike Stump  <mikestump@comcast.net>
533         * gensupport.c (read_md_rtx): Fix typo in comment.
534         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
535         comment.
537 2011-04-22  Jan Hubicka  <jh@suse.cz>
539         * gengtype.c (open_base_files): Add ipa-inline.h include.
540         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
541         ipa-prop.c; update all uses.
542         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
543         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
544         merge summary of inlined function into former caller.
545         * ipa-inline.c (max_benefit): Remove.
546         (edge_badness): Compensate for removal of benefits.
547         (update_caller_keys): Use
548         reset_node_growth_cache/reset_edge_growth_cache.
549         (update_callee_keys): Likewise.
550         (update_all_callee_keys): Likewise.
551         (inline_small_functions): Do not collect max_benefit; do not reset
552         estimated_growth; call free_growth_caches and initialize_growth_caches.
553         * ipa-inline.h (struct condition, type clause_t, struct predicate,
554         struct size_time_entry): New structures.
555         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
556         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
557         and estimated_growth.
558         (edge_growth_cache_entry): New structure.
559         (node_growth_cache, edge_growth_cache): New global vars.
560         (estimate_growth): Turn into inline.
561         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
562         initialize_growth_caches, free_growth_caches): Declare.
563         (estimate_edge_growth): Rewrite.
564         (estimate_edge_time): Implement as inline cache lookup.
565         (reset_node_growth_cache, reset_edge_growth_cache): New inline
566         functions.
567         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
568         (NUM_CONDITIONS): New constant.
569         (predicate_conditions): New enum.
570         (IS_NOT_CONSTANT): New constant.
571         (edge_removal_hook_holder): New var.
572         (node_growth_cache, edge_growth_cache): New global vars.
573         (true_predicate, single_cond_predicate, false_predicate,
574         not_inlined_predicate, add_condition, add_clause, and_predicates,
575         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
576         dump_clause, dump_predicate, account_size_time,
577         evaulate_conditions_for_edge): New functions.
578         (inline_summary_alloc): Move to heap.
579         (inline_node_removal_hook): Clear condition and entry vectors.
580         (inline_edge_removal_hook): New function.
581         (initialize_growth_caches, free_growth_caches): New function.
582         (dump_inline_summary): Update.
583         (edge_execution_predicate): New function.
584         (will_be_nonconstant_predicate): New function.
585         (estimate_function_body_sizes): Compute BB and constantness predicates.
586         (compute_inline_parameters): Do not clear estimated_growth.
587         (estimate_edge_size_and_time): New function.
588         (estimate_calls_size_and_time): New function.
589         (estimate_callee_size_and_time): New function.
590         (remap_predicate): New function.
591         (inline_merge_summary): New function.
592         (do_estimate_edge_time): New function based on...
593         (estimate_edge_time): ... this one.
594         (do_estimate_edge_growth): New function.
595         (do_estimate_growth): New function based on....
596         (estimate_growth): ... this one.
597         (inline_analyze_function): Analyze after deciding on jump functions.
598         (inline_read_section): New function.
599         (inline_read_summary): Use it.
600         (inline_write_summary): Write all the new data.
601         * ipa-prop.c (ipa_get_param_decl_index): Export.
602         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
603         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
604         Declare.
605         (ipa_get_lattice): Move here from ipa-cp.c
606         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
607         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
608         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
609         cgraph_edge_inlinable_p): Remove.
610         * cgraphunit.c: Include ipainline.h
611         (cgraph_process_new_functions): Update call of
612         compute_inline_parameters.
614 2011-04-22  Richard Guenther  <rguenther@suse.de>
616         * tree.c (build_int_cst): Properly create canonicalized integer
617         constants.
618         (build_int_cst_type): Remove scary comments.
620 2011-04-22  Xinliang David Li  <davidxl@google.com>
622         * toplev.c (process_options): Enable -Werror=coverage-mismatch
623         by default when -Wno-error is not specified.
624         * opts-global.c (decode_options): Remove call to
625         control_warning_options.
627 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
629         PR tree-optimization/48717
630         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
631         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
633 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
635         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
636         definition where used.
638 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
640         PR c/48716
641         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
642         TREE_STATIC variables declared inside of some OpenMP construct.
644 2011-04-22  Martin Jambor  <mjambor@suse.cz>
646         PR middle-end/48585
647         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
649 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
651         PR c/36750
652         * c-typeck.c (pop_init_level): Do not warn about initializing
653         with ` = {0}'.
655 2011-04-22  Alan Modra  <amodra@gmail.com>
657         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
658         when returning call_cookie.
659         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
660         pointers, to functions with no more vector args than the current
661         function, and some non-local calls for ABI_V4.
662         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
663         sibcall_nonlocal_aix64): Combine to ..
664         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
665         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
666         (sibcall_value_nonlocal_aix<mode>): ..likewise.
667         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
668         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
669         operand.
670         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
671         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
672         sibcall_value_symbolic_64): Delete.
674 2011-04-21  Xinliang David Li  <davidxl@google.com>
676         * cgraph.h: Remove pid.
677         * cgraph.c: Remove pid.
678         * value-prof.c (init_node_map): New function.
679         (del_node_map): New function.
680         (find_func_by_funcdef_no): New function.
681         (gimple_ic_transform): Call new function.
682         * cgraphunit.c (cgraph_finalize_function): Remove pid.
683         * function.c (get_last_funcdef_no): New function.
684         * function.h (get_last_funcdef_no): New function.
685         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
686         to libgcov function.
687         (tree-profiling): Call node map init and delete function.
689 2011-04-21  Ian Lance Taylor  <iant@google.com>
691         * godump.c (go_format_type): Use exported Go name for anonymous
692         field name.
694 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
696         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
697         Call builtin_function_type_list instead of builtin_function_type.
698         (UNARY, BINARY, TRINARY, QUAD): Likewise.
700 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
702         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
703         build_function_type_list instead of build_function_type.
704         Delete variable `endlink'.
706 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
708         * config/s390/s390.c (s390_init_builtins): Call
709         build_function_type_list instead of build_function_type.
711 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
713         * config/ia64/ia64.c (ia64_init_builtins): Call
714         build_function_type_list instead of builtin_function_type.
716 2011-04-21  Easwaran Raman  <eraman@google.com>
718         * cfgexpand.c (stack_var): Remove OFFSET...
719         (add_stack_var): ...and its reference here...
720         (expand_stack_vars): ...and here.
721         (stack_var_cmp): Sort by descending order of size.
722         (partition_stack_vars): Change heuristic.
723         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
724         (dump_stack_var_partition): Add newline after each partition.
726 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
727             Jeff Law  <law@redhat.com>
729         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
730         * gengtype.c (matching_file_name_substitute): Likewise.
732 2011-04-21  Richard Guenther  <rguenther@suse.de>
734         PR lto/48703
735         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
737 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
739         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
741 2011-04-21  Richard Guenther  <rguenther@suse.de>
743         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
744         file name.
746 2011-04-21  Richard Guenther  <rguenther@suse.de>
748         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
749         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
750         Use DECL_P, not SSA_VAR_P.
751         (ptr_derefs_may_alias_p): Likewise.
752         (ptr_deref_may_alias_ref_p_1): Likewise.
753         (decl_refs_may_alias_p): Likewise.
754         (refs_may_alias_p_1): Likewise.
755         (ref_maybe_used_by_call_p_1): Likewise.
756         (call_may_clobber_ref_p_1): Likewise.
757         (indirect_ref_may_alias_decl_p): Assume indirect refrences
758         are either MEM_REF or TARGET_MEM_REF.
759         (indirect_refs_may_alias_p): Likewise.
760         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
761         for MEM_EXPR of indirect calls.
763 2011-04-21  Tristan Gingold  <gingold@adacore.com>
765         * vmsdbgout.c (write_srccorr): Compute file length from the string.
766         (dst_file_info_struct): Remove flen field.
767         (lookup_filename): Remove code that set flen field.
769 2011-04-21  Tristan Gingold  <gingold@adacore.com>
771         * config/ia64/ia64.c (ia64_start_function): Add a guard.
773 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
775         PR target/48708
776         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
777         vec_extract and vec_concat for non-SSE4_1 targets.
779 2011-04-21  Richard Guenther  <rguenther@suse.de>
781         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
782         return statements.
784 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
786         * config/i386/cygming.h (union tree_node, TREE): Don't define or
787         undefine.
788         (FILE): Don't undefine.
790 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
792         * config/alpha/alpha.c (struct machine_function): Use rtx, not
793         struct rtx_def *.
794         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
795         struct rtx_def *.
796         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
797         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
798         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
799         rtx_def *.
800         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
801         definitions where used.
802         * config/microblaze/microblaze.h (struct microblaze_args): Use
803         rtx, not struct rtx_def *.
804         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
805         rtx_def *.
806         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
807         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
808         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
809         not struct rtx_def *.
810         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
811         struct rtx_def *.
812         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
813         rtx_def *.
814         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
816 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
818         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
819         operand_equal_p to compare DR_BASE_ADDRESSes.
820         (vect_check_interleaving): Likewise.
822 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
824         PR target/46329
825         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
826         for all Neon struct constants.
828 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
830         * target.def (legitimate_constant_p): New hook.
831         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
832         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
833         * doc/tm.texi: Regenerate.
834         * hooks.h (hook_bool_mode_rtx_true): Declare.
835         * hooks.c (hook_bool_mode_rtx_true): Define.
836         * system.h (LEGITIMATE_CONSTANT_P): Poison.
837         * calls.c (precompute_register_parameters): Replace uses of
838         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
839         (emit_library_call_value_1): Likewise.
840         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
841         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
842         * ira-costs.c (scan_one_insn): Likewise.
843         * recog.c (general_operand, immediate_operand): Likewise.
844         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
845         * reload1.c (init_eliminable_invariants): Likewise.
847         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
848         mode argument.
849         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
850         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
851         argument.
852         (TARGET_LEGITIMATE_CONSTANT_P): Define.
853         * config/alpha/predicates.md (input_operand): Update call to
854         alpha_legitimate_constant_p.
856         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
857         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
858         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
859         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
860         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
861         (arm_legitimate_constant_p): New functions.
862         (arm_cannot_force_const_mem): Make static.
864         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
866         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
867         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
868         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
869         instead of bfin_legitimate_constant_p.
870         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
871         (TARGET_LEGITIMATE_CONSTANT_P): Define.
873         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
875         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
877         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
878         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
879         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
880         (frv_legitimate_constant_p): Make static.  Add a mode argument.
882         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
883         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
884         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
886         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
887         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
888         * config/i386/i386.c (legitimate_constant_p): Rename to...
889         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
890         argument.
891         (ix86_cannot_force_const_mem): Update accordingly.
892         (ix86_legitimate_address_p): Likewise.
893         (TARGET_LEGITIMATE_CONSTANT_P): Define.
894         * config/i386/i386.md: Update commentary.
896         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
897         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
898         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
899         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
901         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
903         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
904         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
905         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
906         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
908         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
909         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
910         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
912         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
913         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
914         (m32r_legitimate_constant_p): New function.
916         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
917         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
918         LEGITIMATE_CONSTANT_P.
919         (LEGITIMATE_CONSTANT_P): Delete.
920         * config/m68k/m68k.c (m68k_expand_prologue): Call
921         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
922         (m68k_legitimate_constant_p): New function.
923         * config/m68k/m68k.md: Update comments.
925         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
926         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
927         (mcore_legitimate_constant_p): New function.
929         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
930         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
931         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
932         Add a mode argument.
933         (mep_legitimate_address): Update accordingly.
934         (TARGET_LEGITIMATE_CONSTANT_P): Define.
936         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
937         Delete.
938         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
939         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
940         static.  Check OP's mode for VOIDmode.
941         (microblaze_legitimate_constant_p): New function.
942         (TARGET_LEGITIMATE_CONSTANT_P): Define.
944         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
945         * config/mips/mips.c (mips_legitimate_constant_p): New function.
946         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
947         (TARGET_LEGITIMATE_CONSTANT_P): Define.
948         * config/mips/predicates.md: Update comments.
950         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
951         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
952         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
953         (mmix_legitimate_constant_p): Make static, return a bool, and take
954         a mode argument.
955         (mmix_print_operand_address): Update accordingly.
957         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
958         Delete.
959         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
960         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
961         static.  Add a mode argument.
962         (TARGET_LEGITIMATE_CONSTANT_P): Define.
964         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
966         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
967         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
968         (pa_legitimate_constant_p): New function.
970         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
972         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
973         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
974         (pdp11_legitimate_constant_p): New function.
976         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
977         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
978         (rs6000_legitimate_constant_p): New function.
980         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
981         (rx_legitimate_constant_p): ...this.
982         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
983         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
984         (rx_legitimate_constant_p): ...this.
985         (TARGET_LEGITIMATE_CONSTANT_P): Define.
986         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
988         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
989         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
990         * config/s390/s390.c (legitimate_constant_p): Rename to...
991         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
992         and add a mode argument.
993         (TARGET_LEGITIMATE_CONSTANT_P): Define.
995         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
997         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
998         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
999         (sh_legitimate_constant_p): New function.
1001         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
1002         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
1003         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1004         (legitimate_constant_p): Rename to...
1005         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
1006         argument.
1007         (constant_address_p): Update accordingly.
1009         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
1010         argument and return a bool.
1011         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
1012         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1013         (spu_legitimate_constant_p): Add a mode argument and return a bool.
1014         (spu_rtx_costs): Update accordingly.
1015         * config/spu/predicates.md (vec_imm_operand): Likewise.
1017         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
1019         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
1020         * config/v850/v850.c (v850_legitimate_constant_p): New function.
1021         (TARGET_LEGITIMATE_CONSTANT_P): Define.
1023         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
1024         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
1025         * config/vax/vax.c (legitimate_constant_p): Likewise.
1027         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
1028         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1029         (xtensa_legitimate_constant_p): New function.
1031 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
1033         * target.def (cannot_force_const_mem): Add a mode argument.
1034         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
1035         * doc/tm.texi: Regenerate.
1036         * hooks.h (hook_bool_mode_rtx_false): Declare.
1037         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
1038         (hook_bool_mode_const_rtx_true): Likewise.
1039         (hook_bool_mode_rtx_false): New function.
1040         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
1041         to be non-VOID.  Update call to cannot_force_const_mem.
1042         (find_reloads): Update accordingly.
1043         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
1044         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
1045         argument.
1046         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
1047         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
1048         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
1049         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
1050         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
1051         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
1052         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
1053         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
1054         (m68k_cannot_force_const_mem): ...this new function.
1055         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
1056         argument.
1057         (mips_const_insns, mips_legitimize_const_move): Update calls.
1058         (mips_secondary_reload_class): Likewise.
1059         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
1060         (pa_cannot_force_const_mem): ...this new function.
1061         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
1062         (rs6000_cannot_force_const_mem): ...this new function.
1063         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
1064         argument.
1065         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
1066         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
1067         to...
1068         (xtensa_cannot_force_const_mem): ...this new function.
1070 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
1072         * config/mips/mips.c (mips16_build_function_stub): Call
1073         build_function_type_list instead of build_function_type.
1074         (mips16_build_call_stub): Likewise.
1076 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
1078         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
1079         instead of build_function_type.
1081 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
1083         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
1084         instead of build_function_type.
1086 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
1088         PR target/48678
1089         * config/i386/i386.md (insv): Change operand 0 constraint to
1090         "register_operand".  Change operand 1 and 2 constraint to
1091         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
1092         * config/i386/sse.md (sse4_1_pinsrb): Export.
1093         (sse2_pinsrw): Ditto.
1094         (sse4_1_pinsrd): Ditto.
1095         (sse4_1_pinsrq): Ditto.
1096         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
1097         * config/i386/i386.c (ix86_expand_pinsr): New.
1099 2011-04-20  Easwaran Raman  <eraman@google.com>
1101         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
1102         containing union type only with -fstrict-aliasing.
1104 2011-04-20  Jim Meyering  <meyering@redhat.com>
1106         Remove useless if-before-free tests.
1107         * calls.c (expand_call, save_area): Likewise.
1108         * cfgcleanup.c (try_forward_edges): Likewise.
1109         * collect2.c (collect_execute): Likewise.
1110         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
1111         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
1112         * coverage.c (coverage_checksum_string): Likewise.
1113         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
1114         * cselib.c (cselib_init): Likewise.
1115         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
1116         (df_set_clean_cfg): Likewise.
1117         * function.c (free_after_compilation): Likewise.
1118         * gcc.c (do_spec_1, main): Likewise.
1119         * gcov.c (create_file_names): Likewise.
1120         * gensupport.c (identify_predicable_attribute): Likewise.
1121         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
1122         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
1123         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
1124         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
1125         * ipa-pure-const.c (local_pure_const): Likewise.
1126         * ipa-reference.c (propagate): Likewise.
1127         * ira-costs.c (free_ira_costs): Likewise.
1128         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
1129         * matrix-reorg.c (mat_free): Likewise.
1130         * prefix.c (get_key_value): Likewise.
1131         * profile.c (compute_value_histograms): Likewise.
1132         * reload1.c (free_reg_equiv): Likewise.
1133         * sched-deps.c (free_deps): Likewise.
1134         * sel-sched-ir.c (fence_clear): Likewise.
1135         * sese.c (set_rename, if_region_set_false_region): Likewise.
1136         * tree-data-ref.c (free_rdg): Likewise.
1137         * tree-eh.c (lower_try_finally): Likewise.
1138         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
1139         * tree-ssa-live.c (delete_var_map): Likewise.
1140         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
1141         * tree-ssa-pre.c (phi_trans_add): Likewise.
1143 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
1145         PR tree-optimization/48611
1146         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
1147         beyond ERT_MUST_NOT_THROW region.
1149 2011-04-20  Catherine Moore  <clm@codesourcery.com>
1151         * config/mips/mips.opt (mfix-24k): New.
1152         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
1153         * config/mips/mips.md (length): Increase by 4 for stores if
1154         fixing 24K errata.
1155         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
1156         all noreorder if fixing 24K errata.
1157         * doc/invoke.texi: Document mfix-24k.
1159 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
1161         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
1162         quad-word modes, reduce to 9-bit index range when above 1016 limit.
1164 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
1166         * config/arm/arm.c (arm_gen_constant): Move movw support ....
1167         (const_ok_for_op): ... to here.
1169 2011-04-20  Kai Tietz  <ktietz@redhat.com>
1171         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
1172         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
1174 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
1176         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
1178 2011-04-20  Richard Guenther  <rguenther@suse.de>
1180         PR tree-optimization/47892
1181         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
1182         are if-convertible.
1184 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
1186         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
1188 2011-04-20  Tristan Gingold  <gingold@adacore.com>
1190         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
1192 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
1194         PR target/18145
1196         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
1197         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
1198         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1199         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1200         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
1202         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
1203         New prototype.
1205         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
1206         (avr_asm_named_section, avr_asm_output_aligned_common,
1207         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
1208         New functions to update...
1209         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
1210         (avr_asm_init_sections): Overwrite section callbacks for
1211         data_section, bss_section.
1212         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
1213         from here to...
1214         (avr_file_end): ...here.
1216 2011-04-20  Richard Guenther  <rguenther@suse.de>
1218         PR middle-end/48695
1219         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
1220         objects and types here.  Adjust for their offset before comparing.
1222 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
1224         * tree-vect-stmts.c (vectorizable_store): Only chain one related
1225         statement per copy.
1227 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
1229         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
1230         (GIMPLE_H): Include $(INTERNAL_FN_H).
1231         (OBJS-common): Add internal-fn.o.
1232         (internal-fn.o): New rule.
1233         * internal-fn.def: New file.
1234         * internal-fn.h: Likewise.
1235         * internal-fn.c: Likewise.
1236         * gimple.h: Include internal-fn.h.
1237         (GF_CALL_INTERNAL): New gf_mask.
1238         (gimple_statement_call): Put fntype into a union with a new
1239         internal_fn field.
1240         (gimple_build_call_internal): Declare.
1241         (gimple_build_call_internal_vec): Likewise.
1242         (gimple_call_same_target_p): Likewise.
1243         (gimple_call_internal_p): New function.
1244         (gimple_call_internal_fn): Likewise.
1245         (gimple_call_fntype): Return null for internal calls.
1246         (gimple_call_set_fntype): Assert that the function is not internal.
1247         (gimple_call_set_fn): Likewise.
1248         (gimple_call_set_fndecl): Likewise.
1249         (gimple_call_set_internal_fn): New function.
1250         (gimple_call_addr_fndecl): Handle null functions.
1251         (gimple_call_return_type): Likewise null types.
1252         * gimple.c (gimple_build_call_internal_1): New function.
1253         (gimple_build_call_internal): Likewise.
1254         (gimple_build_call_internal_vec): Likewise.
1255         (gimple_call_same_target_p): Likewise.
1256         (gimple_call_flags): Handle calls to internal functions.
1257         (gimple_call_fnspec): New function.
1258         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
1259         (gimple_has_side_effects): Handle null functions.
1260         (gimple_rhs_has_side_effects): Likewise.
1261         (gimple_call_copy_skip_args): Handle calls to internal functions.
1262         * cfgexpand.c (expand_call_stmt): Likewise.
1263         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
1264         * gimple-fold.c (gimple_fold_call): Handle null functions.
1265         (gimple_fold_stmt_to_constant_1): Don't fold
1266         calls to internal functions.
1267         * gimple-low.c (gimple_check_call_args): Handle calls to internal
1268         functions.
1269         * gimple-pretty-print.c (dump_gimple_call): Likewise.
1270         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
1271         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
1272         (do_warn_unused_result): Likewise.
1273         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
1274         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
1275         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
1276         the target of a call.
1277         (initialize_hash_element): Update accordingly.
1278         (hashable_expr_equal_p): Use gimple_call_same_target_p.
1279         (iterative_hash_hashable_expr): Handle calls to internal functions.
1280         (print_expr_hash_elt): Likewise.
1281         * tree-ssa-pre.c (can_value_number_call): Likewise.
1282         (eliminate): Handle null functions.
1283         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
1284         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
1285         (find_func_aliases): Likewise.
1286         * value-prof.c (gimple_ic_transform): Likewise.
1287         (gimple_indirect_call_to_profile): Likewise.
1288         * lto-streamer-in.c (input_gimple_stmt): Likewise.
1289         * lto-streamer-out.c (output_gimple_stmt): Likewise.
1291 2011-04-19  Jan Hubicka  <jh@suse.cz>
1293         * ipa-inline-transform.c (save_inline_function_body): Add comments.
1294         * ipa-inline.c (inline_small_functions): Compute summaries first,
1295         populate heap later.
1297 2011-04-19  Jan Hubicka  <jh@suse.cz>
1299         * cgraph.h (save_inline_function_body): Remove.
1300         * ipa-inline-transform.c: New file, broke out of...
1301         * ipa-inline.c: ... this one; Update toplevel comment.
1302         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
1303         make global.
1304         (update_noncloned_frequencies): Move to ipa-inline-transform.c
1305         (cgraph_mark_inline_edge): Rename to inline_call; move to
1306         ipa-inline-transform.c.
1307         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
1308         move to ipa-inline-transform.c
1309         (recursive_inlining, inline_small_functions, flatten_function,
1310         ipa_inline, inline_always_inline_functions,
1311         early_inline_small_functions): Update.
1312         (inline_transform): Move to ipa-inline-transform.c.
1313         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
1314         Declare.
1315         * Makefile.in (ipa-inline-transform.o): New file.
1316         * cgraphunit.c (save_inline_function_body): Move to
1317         ipa-inline-transform.c
1319 2011-04-19  DJ Delorie  <dj@redhat.com>
1321         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
1322         registers if we already know there aren't any.
1323         (m32c_emit_epilogue): Don't emit a barrier here.
1324         (m32c_emit_eh_epilogue): Likewise.
1325         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
1326         operands at expand time.
1327         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
1328         int" wchar type.
1329         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
1330         duplicates.  Provide aliases instead.
1331         * config/m32c/prologue.md (eh_return): Emit a barrier here.
1332         (eh_epilogue): Add a "(return)" here as a hint to other parts of
1333         the compiler.
1335 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
1337         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
1338         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
1339         (general_or_i64_p, sparc_register_move_cost): New function.
1341 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1343         * doc/install.texi (Configuration, --enable-threads): Remove mach.
1344         Add lynx, mipssde.  Sort table.
1346 2011-04-19  Xinliang David Li  <davidxl@google.com>
1348         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
1349         not negative.
1351 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
1353         PR target/48678
1354         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
1355         is a SUBREG with non-MODE_INT mode inside of it.
1357 2011-04-19  Martin Jambor  <mjambor@suse.cz>
1359         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
1360         also according to actual contants.
1361         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
1362         (gimple_fold_call): Use it.
1363         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
1365 2011-04-19  Martin Jambor  <mjambor@suse.cz>
1367         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
1368         non-pointer assignments.
1370 2011-04-19  Martin Jambor  <mjambor@suse.cz>
1372         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
1373         account anc_offset and otr_type from the indirect edge info.
1374         * ipa-prop.c (get_ancestor_addr_info): New function.
1375         (compute_complex_ancestor_jump_func): Assignment analysis moved to
1376         get_ancestor_addr_info, call it.
1377         (ipa_note_param_call): Do not initialize information about polymorphic
1378         calls, return the indirect call graph edge.  Remove the last
1379         parameter, adjust all callers.
1380         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
1381         parameters.  Initialize polymorphic information in the indirect edge.
1383 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
1385         PR lto/48148
1386         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
1387         the types if they have different enumeration identifiers.
1389 2011-04-19  Jan Hubicka  <jh@suse.cz>
1391         * cgraph.h (cgraph_optimize_for_size_p): Declare.
1392         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
1393         * predict.c (cgraph_optimize_for_size_p): Break out from ...
1394         (optimize_function_for_size_p) ... here.
1396 2011-04-19  Richard Guenther  <rguenther@suse.de>
1398         PR lto/48207
1399         * tree.c (free_lang_data): Do not reset the decl-assembler-name
1400         langhook.
1402 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
1404         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
1405         if DECL_NO_INLINE_WARNING_P is set on the function.
1407 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
1409         PR fortran/47976
1410         * reload1.c (inc_for_reload): Return void. All callers changed.
1411         (emit_input_reload_insns): Don't try to delete previous output
1412         reloads to a register, or record spill_reg_store for autoincs.
1414 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
1416         * gengtype.h: Updated copyright year.
1417         (struct input_file_st): Add inpisplugin field.
1418         (type_fileloc): New function.
1419         * gengtype.c
1420         (write_typed_struct_alloc_def): Add gcc_assert.
1421         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
1422         (write_typed_alloc_defns): Don't output for plugin files.
1423         (input_file_by_name): Clear inpisplugin field.
1424         (main): Set inpisplugin field for plugin files.
1426 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
1428         * gengtype-state.c (string_eq): New.
1429         (read_state): Use string_eq instead of strcmp when creating the
1430         state_ident_tab.
1432 2011-04-19  Wei Guozhi  <carrot@google.com>
1434         PR target/47855
1435         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
1436         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
1437         linkage.
1438         * config/arm/constraints.md (Uu): New constraint.
1439         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
1441 2011-04-19  Tristan Gingold  <gingold@adacore.com>
1443         * config.gcc (-*-*-*vms): Added.
1444         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
1445         definitions moved.
1446         * config/vms/vms-ld.c: New file.
1447         * config/vms/vms-ar.c: New file.
1448         * config/vms/t-vmsnative: New file.
1450 2011-04-18  Xinliang David Li  <davidxl@google.com>
1452         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
1454 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
1456         PR middle-end/48661
1457         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
1458         if TREE_TYPE (v) is non-NULL.
1460         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
1461         gimple_get_virt_mehtod_for_binfo.
1462         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
1463         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
1464         callers.
1465         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1467 2011-04-18  Michael Matz  <matz@suse.de>
1468             Steve Ellcey  <sje@cup.hp.com>
1470         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
1471         use its mode as source mode if it isn't VOIDmode.
1473 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
1475         * doc/passes.texi: Fill crossref nodes.
1477 2011-04-18  Jim Meyering  <meyering@redhat.com>
1479         Fix doubled-word typos in comments and strings
1480         * config/alpha/vms-unwind.h: s/for for/for/
1481         * config/arm/unwind-arm.h: Likewise.
1482         * config/microblaze/microblaze.c: Likewise.
1483         * config/sh/constraints.md: s/in in/in/
1484         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
1486 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
1488         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
1489         (AVX_FLOAT_MODE_P): Ditto.
1490         (AVX128_VEC_FLOAT_MODE_P): Ditto.
1491         (AVX256_VEC_FLOAT_MODE_P): Ditto.
1492         (AVX_VEC_FLOAT_MODE_P): Ditto.
1493         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
1494         (UNSPEC_MASKSTORE): Ditto.
1495         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
1496         Merge from <sse>_movmsk<ssemodesuffix> and
1497         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
1498         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
1499         iterator.
1500         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
1501         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
1502         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
1504 2011-04-18  Jan Hubicka  <jh@suse.cz>
1506         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
1508         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
1509         (want_inline_function_called_once_p): Break out the logic from
1510         ipa_inline.
1511         (edge_badness): Ensure that profile is not misupdated.
1512         (lookup_recursive_calls): Prioritize by call frequencies.
1513         (inline_small_functions): Move program size estimates here;
1514         actually process whole queue even when unit growth has been
1515         met. (to properly compute inline_failed reasons and for the
1516         case unit size decrease.) Revisit comments on recursive inlining.
1517         (ipa_inline): Remove unit summary code; first inline hot calls
1518         of functions called once, cold calls next.
1519         (order, nnodes): Remove unused variables.
1520         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
1521         (GTFILES): Remove ipa-inline.c
1522         * sel-sched.c (fill_insns): Silence uninitialized var warning.
1524 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1526         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
1528 2011-04-18  Jie Zhang  <jie@codesourcery.com>
1529             Richard Earnshaw  <rearnsha@arm.com>
1531         * arm.c (neon_builtin_type_bits): Remove.
1532         (typedef enum neon_builtin_mode): New.
1533         (T_MAX): Don't define.
1534         (typedef enum neon_builtin_datum): Remove bits, codes[],
1535         num_vars and base_fcode.  Add mode, code and fcode.
1536         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
1537         VAR10): Change accordingly.
1538         (neon_builtin_data[]): Change accordingly
1539         (arm_init_neon_builtins): Change accordingly.
1540         (neon_builtin_compare): Remove.
1541         (locate_neon_builtin_icode): Remove.
1542         (arm_expand_neon_builtin): Change accordingly.
1544         * arm.h (enum arm_builtins): Move to ...
1545         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
1547         * arm.c (arm_builtin_decl): Declare.
1548         (TARGET_BUILTIN_DECL): Define.
1549         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
1550         (arm_builtin_decls[]): New.
1551         (arm_init_neon_builtins): Store builtin declarations in
1552         arm_builtin_decls[].
1553         (arm_init_tls_builtins): Likewise.
1554         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
1555         (arm_builtin_decl): New.
1557 2011-04-18  Richard Guenther  <rguenther@suse.de>
1559         * tree.c (upper_bound_in_type): Build properly canonicalized
1560         INTEGER_CSTs.
1561         (lower_bound_in_type): Likewise.
1563 2011-04-18  Richard Guenther  <rguenther@suse.de>
1565         * gimple.h (gimple_call_addr_fndecl): New function.
1566         (gimple_call_fndecl): Use it.
1567         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
1568         for direct calls.
1569         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
1570         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
1572 2011-04-18  Richard Guenther  <rguenther@suse.de>
1574         PR middle-end/48650
1575         * tree.c (build_string): STRING_CST is now derived from tree_typed.
1577 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1579         PR lto/48492
1580         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
1581         DECL_IN_CONSTANT_POOL without RTL.
1583 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
1584             Ira Rosen  <ira.rosen@linaro.org>
1586         PR target/48252
1587         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
1588         to match neon_vzip/vuzp/vtrn_internal.
1589         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
1590         outputs explicitly dependent on both inputs.
1591         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
1593 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
1595         PR tree-optimization/48616
1596         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
1597         whether the shift is by scalar or vector based on whether all SLP
1598         scalar stmts have the same rhs.
1600 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
1602         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
1603         memory operands.
1605 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
1607         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
1608         registers.
1610 2011-04-17  Jan Hubicka  <jh@suse.cz>
1612         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
1613         * cgrpahunit.c (cgraph_finalize_function): Do not set
1614         finalized_by_frontend.
1615         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1616         finalized_by_frontend.
1618 2011-04-17  Jan Hubicka  <jh@suse.cz>
1620         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
1621         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
1622         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
1623         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
1624         method.
1625         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
1626         gimple-fold.c
1627         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
1629 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
1631         PR lto/48538
1632         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
1633         is non-null before accessing it.
1634         (input_cgraph): Remove trailing spaces.
1636 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1638         * params.def (sms-min-sc): New param flag.
1639         * modulo-sched.c (sms_schedule): Use it.
1640         * doc/invoke.texi (sms-min-sc): Document it.
1642 2011-04-17  Jan Hubicka  <jh@suse.cz>
1644         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1645         present, also set gimple_call_set_cannot_inline.
1646         * ipa-inline.c: Update toplevel comment.
1647         (MAX_TIME): Remove.
1648         (cgraph_clone_inlined_nodes): Fix linebreaks.
1649         (cgraph_check_inline_limits): Restructure to ...
1650         (caller_growth_limits): ... this one; be more tolerant
1651         on growth in nested inline chains; add explanatory comment;
1652         fix stack accounting thinko introduced by previous patch.
1653         (cgraph_default_inline_p): Remove.
1654         (report_inline_failed_reason): New function.
1655         (can_inline_edge_p): New function.
1656         (can_early_inline_edge_p): New function.
1657         (leaf_node_p): Move upwards in file.
1658         (want_early_inline_function_p): New function.
1659         (want_inline_small_function_p): New function.
1660         (want_inline_self_recursive_call_p): New function.
1661         (cgraph_edge_badness): Rename to ...
1662         (edge_badness) ... this one; fix linebreaks.
1663         (update_edge_key): Update call of edge_baddness; add
1664         detailed dump about queue updates.
1665         (update_caller_keys): Use can_inline_edge_p and
1666         want_inline_small_function_p.
1667         (cgraph_decide_recursive_inlining): Rename to...
1668         (recursive_inlining): Use can_inline_edge_p and
1669         want_inline_self_recursive_call_p; simplify and remove no longer
1670         valid FIXME.
1671         (cgraph_set_inline_failed): Remove.
1672         (add_new_edges_to_heap): Use can_inline_edge_p and
1673         want_inline_small_function_p.
1674         (cgraph_decide_inlining_of_small_functions): Rename to ...
1675         (inline_small_functions): ... this one; cleanup; use
1676         can/want predicates; cleanup debug ouput; work edges till fibheap
1677         is exhausted and do not stop once unit growth is reached; remove
1678         later loop processing remaining edges.
1679         (cgraph_flatten): Rename to ...
1680         (flatten_function): ... this one; use can_inline_edge_p
1681         and can_early_inline_edge_p predicates.
1682         (cgraph_decide_inlining): Rename to ...
1683         (ipa_inline): ... this one; remove unreachable nodes before
1684         inlining functions called once; simplify the pass.
1685         (cgraph_perform_always_inlining): Rename to ...
1686         (inline_always_inline_functions): ... this one; use
1687         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1688         (cgraph_decide_inlining_incrementally): Rename to ...
1689         (early_inline_small_functions): ... this one; simplify
1690         using new predicates; cleanup; make dumps prettier.
1691         (cgraph_early_inlining): Rename to ...
1692         (early_inliner): newer inline regular functions into always-inlines;
1693         fix updating of call stmt summaries.
1694         (pass_early_inline): Update for new names.
1695         (inline_transform): Fix formating.
1696         (gate_cgraph_decide_inlining): Rename to ...
1697         (pass_ipa_inline): ... this one.
1698         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1699         * ipa-inline-analysis.c (dump_inline_summary): Update.
1700         (compute_inline_parameters): Do not compute disregard_inline_limits;
1701         look for mismatching arguments.
1702         (estimate_growth): Fix handlig of non-trivial self recursion.
1703         (inline_read_summary): Do not read info->disregard_inline_limits.
1704         (inline_write_summary): Do not write info->disregard_inline_limits.
1705         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1706         and move all checks into can_inline_edge_p predicate; re-enable code
1707         comparing optimization levels.
1708         (expand_call_inline): Do not test inline_forbidden_into_p.
1709         * Makefile.in (ipa-inline.o): Update arguments.
1711 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1713         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1715 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1717         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1719 2011-04-17  Michael Matz  <matz@suse.de>
1721         PR tree-optimization/48622
1722         PR lto/48645
1723         * ipa-inline-analysis.c (inline_read_summary): Read size/time
1724         in same order as they're written.
1726 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1728         * config/pa/predicates.md: Reorganize and simplify predicates.
1729         Eliminate duplicate code checks.
1730         (arith_operand): Rename to arith14_operand
1731         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1732         * config/pa/pa.md: Use renamed operands.
1733         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1734         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1735         arith11_operand, adddi3_operand, indexed_memory_operand,
1736         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1737         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1738         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1739         move_dest_operand, move_src_operand, prefetch_cc_operand,
1740         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1741         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1742         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1743         div_operand, int5_operand, movb_comparison_operator,
1744         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1745         arith_double_operand, ireg_operand, lhs_lshift_operand,
1746         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1747         integer_store_memory_operand): Likewise.
1748         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1749         (integer_store_memory_operand, read_only_operand,
1750         function_label_operand, borx_reg_operand,
1751         non_hard_reg_operand): Likewise.
1752         (eq_neq_comparison_operator): Delete unused operator.
1753         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1754         function_label_operand.
1755         (emit_move_sequence): Likewise.
1757 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1759         * config/i386/sse.md (sseunpackmode): New mode attribute.
1760         (ssepackmode): Ditto.
1761         (vec_pack_trunc_<mode>): Macroize expander from
1762         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1763         (vec_unpacks_lo_<mode>): Macroize expander from
1764         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1765         (vec_unpacks_hi_<mode>): Macroize expander from
1766         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1767         (vec_unpacku_lo_<mode>): Macroize expander from
1768         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1769         (vec_unpacku_hi_<mode>): Macroize expander from
1770         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1771         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1772         ix86_expand_sse4_unpack.
1773         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1775 2011-04-16  Jan Hubicka  <jh@suse.cz>
1777         * cgraphbuild.c: Include ipa-inline.h.
1778         (reset_inline_failed): Use initialize_inline_failed.
1779         * cgraph.c: Include ipa-inline.h.
1780         (cgraph_create_node_1): Do not initialize estimated_growth.
1781         (initialize_inline_failed): More to ipa-inline-analysis.c
1782         (dump_cgraph_node): Do not dump inline flags.
1783         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1784         and disregard_inline_limits flags.
1785         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1786         time, size, estimated_growth.
1787         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1788         Update.
1789         * cgraphunit.c (cgraph_decide_is_function_needed): Use
1790         DECL_DISREGARD_INLINE_LIMITS.
1791         (cgraph_analyze_function): Do not initialize
1792         node->local.disregard_inline_limits.
1793         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1794         inlinable, versionable and disregard_inline_limits.
1795         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1796         cgraph_check_inline_limits, cgraph_default_inline_p,
1797         cgraph_edge_badness, update_caller_keys, update_callee_keys,
1798         add_new_edges_to_heap): Update.
1799         (cgraph_decide_inlining_of_small_function): Update; set
1800         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1801         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1802         cgraph_decide_inlining_incrementally): Update.
1803         * ipa-inline.h (inline_summary): Add inlinable, versionable,
1804         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1805         time, size and estimated_growth parameters.
1806         (estimate_edge_growth): Update.
1807         (initialize_inline_failed): Declare.
1808         * ipa-split.c: Include ipa-inline.h
1809         (execute_split_functions): Update.
1810         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1811         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1812         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1813         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1814         estimated_growth to INT_MIN.
1815         (inline_node_duplication_hook): Likewise.
1816         (dump_inline_summary): Dump new fields.
1817         (compute_inline_parameters): Update.
1818         (estimate_edge_time, estimate_time_after_inlining,
1819         estimate_size_after_inlining, estimate_growth, inline_read_summary,
1820         inline_write_summary):
1821         (initialize_inline_failed): Move here from cgraph.c.
1822         * tree-sra.c: Include ipa-inline.h.
1823         (ipa_sra_preliminary_function_checks): Update.
1824         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1825         ipa-inline.h.
1827 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1829         * config/i386/sse.md (V16): New mode iterator.
1830         (VI1, VI8): Ditto.
1831         (AVXMODEQI, AVXMODEDI): Remove.
1832         (sse2, sse3): New mode attribute.
1833         (mov<mode>): Use V16 mode iterator.
1834         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1835         (push<mode>1): Use V16 mode iterator.
1836         (movmisalign<mode>): Ditto.
1837         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1838         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1839         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1840         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1841         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1842         avx_movdqu<avxmodesuffix>.
1843         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1844         *avx_movdqu<avxmodesuffix>.
1845         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1846         avx_lddqu<avxmodesuffix>.
1847         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1848         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1849         avx_movnt<AVXMODEDI:mode>.
1850         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1851         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1853 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1855         PR target/48629
1856         * haifa-sched.c (prune_ready_list, schedule_block): Use
1857         sched_pressure_p rather than flag_sched_pressure.
1859 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
1861         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1862         cgraph_get_node instead of cgraph_get_create_node.
1864 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
1866         * cfgexpand.c (expand_debug_expr): Use
1867         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1869 2011-04-15  Michael Matz  <matz@suse.de>
1871         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1872         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1873         * function.c (gimplify_parameters): Ditto.
1874         * gimplify.c (gimplify_vla_decl): Ditto.
1876         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1877         (gimple_call_set_alloca_for_var): New inline function.
1878         (gimple_call_alloca_for_var_p): Ditto.
1879         * gimple.c (gimple_build_call_from_tree): Remember
1880         CALL_ALLOCA_FOR_VAR_P state.
1881         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1883         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1884         calls if they were for VLA objects.
1886 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1888         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1889         of ADR_EXPRs.
1891 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1893         PR middle-end/48601
1894         * tree-emutls.c (lower_emutls_function_body): Call
1895         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
1896         result is non-NULL.
1898 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1900         * c-decl.c (detect_field_duplicates): Call
1901         objc_detect_field_duplicates instead of objc_get_interface_ivars.
1903 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
1905         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1906         * gimple.c (gimple_asm_clobbers_memory_p): Define.
1907         * ipa-pure-const.c (check_stmt): Call it.
1908         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1910 2011-04-15  Richard Guenther  <rguenther@suse.de>
1912         PR tree-optimization/48290
1913         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1914         Properly decide inhibiting propagation based on the valueized
1915         operand.  Do loop-closed SSA form preserving here ...
1916         (init_copy_prop): ... not here.
1918 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1920         PR target/48612
1921         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1922         (*ieee_smax<mode>3): Likewise.
1924 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1926         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1927         Replace match_operand with match_dup for the third operand in
1928         these expanders.
1930 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1932         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1933         to track processing of conditionals.  Update all callers.
1934         (try_combine, simplify_if_then_else): Update.
1936 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1938         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1939         -fsched-pressure.
1941 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
1943         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1944         instead of match_operand for operand 3.
1946 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
1948         * recog.h (insn_operand_data): Add an "allows_mem" field.
1949         * genoutput.c (output_operand_data): Initialize it.
1950         * optabs.c (maybe_legitimize_operand_same_code): New function.
1951         (maybe_legitimize_operand): Use it when matching the original
1952         op->value.
1954 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1956         * gimplify.c: Fix issues in comments throughout.
1957         (voidify_wrapper_expr): Fix long line.
1958         (build_stack_save_restore): Likewise.
1959         (gimplify_loop_expr): Likewise.
1960         (gimplify_compound_lval): Likewise.
1961         (gimplify_init_ctor_eval): Likewise.
1962         (gimplify_modify_expr_rhs): Likewise.
1963         (omp_notice_threadprivate_variable): Likewise.
1965 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1967         * cfgexpand.c (expand_call_stmt): Convert the function type to the
1968         original one if this is not a builtin function.
1970 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
1972         PR target/48605
1973         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1974         offset it as needed based on top 2 bits in operands[3], change
1975         MEM mode to SFmode and mask those 2 bits away from operands[3].
1977 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1979         * c-parser.c (c_parser_objc_protocol_definition): Updated for
1980         change from objc_declare_protocols() to objc_declare_protocol().
1982 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
1984         * config/i386/sse.md (sse4_1): New mode attribute.
1985         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1986         avx_blend<ssemodesuffix><avxmodesuffix> and
1987         sse4_1_blend<ssemodesuffix> using VF mode iterator.
1988         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1989         avx_blendv<ssemodesuffix><avxmodesuffix> and
1990         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1991         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1992         avx_dp<ssemodesuffix><avxmodesuffix> and
1993         sse4_1_dp<ssemodesuffix> using VF mode iterator.
1994         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1995         (sse4_1_packusdw): Merge with *avx_packusdw.
1996         (sse4_1_pblendvb): Merge with *avx_pblendvb.
1997         (sse4_1_pblendw): Merge with *avx_pblendw.
1998         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1999         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
2000         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
2001         VF mode iterator.
2002         (sse4_1_round<ssescalarmodesuffix>): Merge with
2003         *avx_round<ssescalarmodesuffix>.
2004         (aesenc): Merge with *avx_aesenc.
2005         (aesenclast): Merge with *avx_aesenclast.
2006         (aesdec): Merge with *avx_aesdec.
2007         (aesdeclast): Merge with *avx_aesdeclast.
2008         (pclmulqdq): Merge with *pclmulqdq.
2009         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
2010         New predicate.
2011         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
2013 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
2015         PR middle-end/48608
2016         * cfgexpand.c (get_decl_align_unit): Renamed to ...
2017         (align_local_variable): This.  Update DECL_ALIGN.
2018         (add_stack_var): Updated.
2019         (expand_one_stack_var): Likewise.
2021 2011-04-14  Richard Guenther  <rguenther@suse.de>
2023         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
2024         Remove.
2025         (dse_initialize_block_local_data, dse_leave_block,
2026         record_voperand_set, get_stmt_uid): Likewise.
2027         (dse_possible_dead_store_p): Allow any kind of killing stmt.
2028         (dse_optimize_stmt): Remove voperand set handling code.
2029         Simplify and improve to handle any kind of killing stmt.
2030         (dse_record_phi): Remove.
2031         (dse_enter_block): Simplify.
2032         (tree_ssa_dse): Likewise.
2033         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
2035 2011-04-14  Jan Hubicka  <jh@suse.cz>
2037         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
2038         * cgraph.h (struct inline_summary): Move to ipa-inline.h
2039         (cgraph_local_info): Remove inline_summary.
2040         * ipa-cp.c: Include ipa-inline.h.
2041         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
2042         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
2043         accesor.
2044         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
2045         (input_overwrite_node): Do not set inline summary.
2046         (input_node): Do not stream inline summary.
2047         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
2048         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
2049         growth; we do not have inline parameters computed for that anyway.
2050         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
2051         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
2052         (inline_summary_t): New type and VECtor.
2053         (debug_inline_summary, dump_inline_summaries): Declare.
2054         (inline_summary): Use VOCtor.
2055         (estimate_edge_growth): Kill hack computing call stmt size directly.
2056         * lto-section-in.c (lto_section_name): Add inline section.
2057         * ipa-inline-analysis.c: Include lto-streamer.h
2058         (node_removal_hook_holder, node_duplication_hook_holder): New holders
2059         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
2060         (inline_summary_vec): Define.
2061         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
2062         dump_inline_summaries): New functions.
2063         (estimate_function_body_sizes): Properly compute size/time of outgoing
2064         calls.
2065         (compute_inline_parameters): Alloc inline_summary; do not compute
2066         size/time of incomming calls.
2067         (estimate_edge_time): Avoid missing time summary hack.
2068         (inline_read_summary): Read inline summary info.
2069         (inline_write_summary): Write inline summary info.
2070         (inline_free_summary): Free all hooks and inline summary vector.
2071         * lto-streamer.h: Add LTO_section_inline_summary section.
2072         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
2073         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
2075 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
2077         * tree-vectorizer.h (vect_strided_store_supported): Add a
2078         HOST_WIDE_INT argument.
2079         (vect_strided_load_supported): Likewise.
2080         (vect_permute_store_chain): Return void.
2081         (vect_transform_strided_load): Likewise.
2082         (vect_permute_load_chain): Delete.
2083         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
2084         count argument.  Check that the count is a power of two.
2085         (vect_strided_load_supported): Likewise.
2086         (vect_permute_store_chain): Return void.  Update after above changes.
2087         Assert that the access is supported.
2088         (vect_permute_load_chain): Likewise.
2089         (vect_transform_strided_load): Return void.
2090         * tree-vect-stmts.c (vectorizable_store): Update calls after
2091         above interface changes.
2092         (vectorizable_load): Likewise.
2093         (vect_analyze_stmt): Don't check for strided powers of two here.
2095 2011-04-14  Richard Guenther  <rguenther@suse.de>
2097         PR tree-optimization/48590
2098         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
2099         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
2100         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
2101         BUILT_IN_STACK_SAVE.
2102         * tree-ssa-dce.c (propagate_necessity): Handle
2103         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
2105 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
2107         * c-parser.c (c_parser_objc_class_declaration): Updated call to
2108         objc_declare_class.
2110 2011-04-14  Richard Guenther  <rguenther@suse.de>
2112         * tree.h (get_object_alignment_1): Declare.
2113         * builtins.c (get_object_alignment_1): Split out worker from ...
2114         (get_object_alignment): ... here.
2115         * fold-const.c (get_pointer_modulus_and_residue): Use
2116         get_object_alignment_1.
2118 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
2120         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
2121         type parameter.
2122         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
2123         parameter.  Generalise code to handle arrays as well as vectors.
2124         (vect_setup_realignment): Update accordingly.
2125         * tree-vect-stmts.c (vectorizable_store): Likewise.
2126         (vectorizable_load): Likewise.
2128 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
2130         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
2131         within the per-copy loop.
2133 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
2135         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
2136         in the dump file.
2138 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
2140         * doc/options.texi (Negative): Explicitly mention that the
2141         Negative chain must be circular.
2143 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
2145         * function.h (block_chainon): Declare.
2146         * function.c (block_chainon): Define.
2148 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
2149             Eric Weddington  <eric.weddington@atmel.com>
2150             Georg-Johann Lay <avr@gjlay.de>
2152         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
2153         New Includes
2154         (avr_init_builtins, avr_expand_builtin,
2155         avr_expand_delay_cycles, avr_expand_unop_builtin,
2156         avr_expand_binop_builtin ): New functions.
2157         (avr_builtin_id): New enum
2158         (struct avr_builtin_description): New struct
2159         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
2160         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
2162         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
2163         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
2164         UNSPECV_DELAY_CYCLES): new enumeration values
2165         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
2166         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
2167         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
2168         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
2169         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
2170         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
2171         "fmulsu"): New insns
2173         * config/avr/avr-c.c: fix line endings
2174         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
2175         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
2176         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
2177         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
2178         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
2180         * doc/extend.texi (AVR Built-in Functions): New node
2181         (Target Builtins): Add documentation of AVR
2182         built-in functions.
2184 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
2186         PR target/44643
2187         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
2188         alone. Error if non-const data has attribute progmem.
2190 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
2192         * tree.h (struct tree_constructor): Include tree_typed instead of
2193         tree_common.
2194         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
2195         TS_TYPED instead of TS_COMMON.
2197 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
2199         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
2200         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
2201         (sse2_psadbw): Merge with *avx_psadbw.
2202         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
2203         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
2204         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
2205         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
2206         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
2207         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
2208         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
2209         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
2210         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
2211         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
2212         (ssse3_palignrti): Merge with *avx_palignrti.
2214 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
2216         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
2217         * tree-ssanames.c (fini_ssanames): VEC_free it.
2218         (make_ssa_name_fn): Update for VECness of free_ssanames.
2219         (release_ssa_name, release_dead_ssa_names): Likewise.
2220         * tree.h (struct tree_ssa_name): Include tree_typed instead of
2221         tree_common.
2222         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
2223         TS_TYPED instead of TS_COMMON.
2225 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
2227         * postreload-gcse.c (gcse_after_reload_main): Add calls to
2228         statistics_counter_event.
2229         * tree-ssa-copyrename.c (stats): Define.
2230         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
2231         statistics_counter_event.
2232         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
2233         (bswap_stats, widen_mul_stats): Define.
2234         (insert_reciprocals): Increment rdivs_inserted.
2235         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
2236         rfuncs_inserted.  Add calls to statistics_counter_event.
2237         (execute_cse_sincos_1): Increment inserted.
2238         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
2239         statistics_counter_event.
2240         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
2241         of bswap_stats.  Add calls to statistics_counter_event.
2242         (convert_mult_to_widen): Increment widen_mults_inserted.
2243         (convert_plusminus_to_widen): Increment maccs_inserted.
2244         (convert_mult_to_fma): Increment fmas_inserted.
2245         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
2246         calls to statistics_counter_event.
2248 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
2250         PR rtl-optimization/48455
2251         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
2252         `temp_costs->mem_cost'.
2254 2011-04-13  Jan Hubicka  <jh@suse.cz>
2256         * ipa-inline.h: New file.
2257         * ipa-inline-analysis.c: New file. Broken out of ...
2258         * ipa-inline.c: ... this file; update toplevel comment;
2259         include ipa-inline.h
2260         (inline_summary): Move to ipa-inline.h
2261         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
2262         ipa-inline-analysis.c.
2263         (cgraph_estimate_time_after_inlining): Rename to
2264         estiamte_time_after_inlining; move to ipa-inline-analysis.c
2265         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
2266         to estimate_edge_growth.
2267         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
2268         rename to estimate_size_after_inlining.
2269         (cgraph_mark_inline_edge): Update for new naming convention.
2270         (cgraph_check_inline_limits): Likewise.
2271         (cgraph_edge_badness): Likewise.
2272         (cgraph_decide_recursive_inlining): Likewise.
2273         (cgraph_decide_inlining_of_small_functions): Likewise.
2274         (cgraph_decide_inlining_incrementally): Likewise.
2275         (cgraph_estimate_growth): Rename to estimate_growth; move to
2276         ipa-inline-analysis.c.
2277         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
2278         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
2279         (compute_inline_parameters): Likewise.
2280         (compute_inline_parameters_for_current): Likewise.
2281         (pass_inline_parameters): Likewise.
2282         (inline_indirect_intraprocedural_analysis): Likewise.
2283         (analyze_function): Rename to inline_analyze_function; likewise.
2284         (add_new_function): Move to ipa-inline-analysis.c.
2285         (inline_generate_summary): Likewise.
2286         (inline_read_summary): Likewise.
2287         (inline_write_summary): Likewise.
2288         * Makefile.in (ipa-inline-analysis.c): New file.
2290 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2292         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
2293         * configure: Regenerate.
2295 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
2297         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
2298         instead of tree_common.
2299         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
2300         Likewise.
2301         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
2302         TS_TYPED rather than TS_COMMON.
2303         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
2305 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
2307         PR target/45263
2308         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
2309         r20 around calls of __tablejump_elpm__
2311 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
2313         PR middle-end/48591
2314         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
2315         NULL.
2316         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
2318 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
2320         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
2321         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
2322         (cfi_vec): New typedef.
2323         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
2324         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
2325         (cie_cfi_vec): New static variable.
2326         (cie_cfi_head): Delete.
2327         (add_cfi): Accept a cfi_vec * as first argument. All callers and
2328         declaration changed. Use vector rather than list operations.
2329         (new_cfi): Don't initialize the dw_cfi_next field.
2330         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
2331         rather than list operations.
2332         (lookup_cfa): Use vector rather than list operations.
2333         (output_cfis): New argument upto. Accept a cfi_vec rather than
2334         a dw_cfi_ref list head as argument. All callers changed.
2335         Iterate over the vector using upto as a maximum index.
2336         (output_all_cfis): New static function.
2337         (output_fde): Use vector rather than list operations. Use the
2338         new upto argument for output_cfis rather than manipulating a
2339         list.
2340         (dwarf2out_begin_prologue): Change initializations to match
2341         new struct members.
2342         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
2343         from the vector length rather than searching for the end of a list.
2344         Use output_all_cfis.
2345         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
2347 2011-04-13  Nick Clifton  <nickc@redhat.com>
2349         * config/rx/rx.md (movmemsi): Do not use this pattern when
2350         volatile pointers are involved.
2352 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
2354         * config/i386/sse.md (pinsrbits): Remove.
2355         (sse2_packsswb): Merge with *avx_packsswb.
2356         (sse2_packssdw): Merge with *avx_packssdw.
2357         (sse2_packuswb): Merge with *avx_packuswb.
2358         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
2359         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
2360         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
2361         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
2362         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
2363         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
2364         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
2365         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
2366         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
2367         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
2368         (sse2_loadld): Merge with *avx_loadld.
2369         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
2370         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
2371         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
2372         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
2373         (vec_concatv2di): Merge with *vec_concatv2di_avx.
2375 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
2377         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
2378         calling TREE_CHAIN.
2379         * print-tree.c (print_node): Likewise.
2380         * tree-inline.c (copy_tree_r): Likewise.
2381         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
2382         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
2383         instead of TS_COMMON.
2384         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
2385         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
2386         (copy_node_stat): Zero TREE_CHAIN only if necessary.
2387         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
2388         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
2389         ...and these...
2390         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
2391         * tree.h: ...here.
2392         (TREE_CHAIN): Check for a TS_COMMON structure.
2393         (TREE_TYPE): Check for a TS_TYPED structure.
2395 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
2397         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2398         cgraph_get_create_node instead of cgraph_node.
2400 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
2402         * c-parser.c (c_parser_initelt): Updated call to
2403         objc_build_message_expr.
2404         (c_parser_postfix_expression): Likewise.
2406 2011-04-12  Kai Tietz  <ktietz@redhat.com>
2408         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
2409         MASK_MS_BITFIELD_LAYOUT bit.
2411 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2413         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
2414         assert it is always true.
2415         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
2416         moves.
2418 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
2420         * c-parser.c (c_lex_one_token): Rewritten conditional used when
2421         compiling Objective-C to be more efficient.
2423 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
2425         * opts-common.c (decode_cmdline_options_to_array): Remove variable
2426         argv_copied.
2428 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
2430         * recog.h, genoutput.c, optabs.c: Revert last patch.
2432 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2434         PR target/48090
2435         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
2437 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
2439         * recog.h (insn_operand_data): Add an "allows_mem" field.
2440         * genoutput.c (output_operand_data): Initialize it.
2441         * optabs.c (maybe_legitimize_operand_same_code): New function.
2442         (maybe_legitimize_operand): Use it when matching the original
2443         op->value.
2445 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
2447         * genpreds.c (process_define_predicate): Move most processing
2448         to gensupport.c.  Continue to validate the expression.
2449         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
2450         (process_define_predicate): Move processing to gensupport.c.
2451         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
2452         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
2453         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
2454         argument.
2455         (valid_predicate_name_p): New function, split out from old
2456         genpreds.c:process_define_predicate.
2457         (process_define_predicate): New function, combining code from
2458         old genpreds.c and genrecog.c functions.
2459         (process_rtx): Call it for DEFINE_PREDICATE and
2460         DEFINE_SPECIAL_PREDICATE.
2462 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
2464         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
2465         size of a '%A' memory reference.
2466         (T_DREG, T_QREG): New neon_builtin_type_bits.
2467         (arm_init_neon_builtins): Assert that the load and store operands
2468         are neon_struct_operands.
2469         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
2470         (NEON_ARG_MEMORY): New builtin_arg.
2471         (neon_dereference_pointer): New function.
2472         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
2473         Handle NEON_ARG_MEMORY.
2474         (arm_expand_neon_builtin): Update after above interface changes.
2475         Use NEON_ARG_MEMORY for loads and stores.
2476         * config/arm/predicates.md (neon_struct_operand): New predicate.
2477         * config/arm/iterators.md (V_two_elem): Tweak formatting.
2478         (V_three_elem): Use BLKmode for accesses that have no associated mode.
2479         (V_four_elem): Tweak formatting.
2480         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
2481         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
2482         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
2483         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
2484         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
2485         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
2486         (neon_vst4<mode>): Replace pointer operand with a memory operand.
2487         Use %A in the output template.
2488         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
2489         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
2490         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
2491         the width of the memory access.  Remove post-increment.
2492         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
2494 2011-04-12  Nick Clifton  <nickc@redhat.com>
2496         * config/v850/v850.c (expand_prologue): Do not use the CALLT
2497         instruction for interrupt handlers if the target is the basic V850
2498         architecture.
2499         (expand_epilogue): Likewise.
2501 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2503         PR rtl-optimization/48549
2504         * combine.c (propagate_for_debug): Also stop after BB_END of
2505         this_basic_block.  Process LAST and just stop processing after it.
2506         (combine_instructions): If last_combined_insn has been deleted,
2507         set last_combined_insn to its PREV_INSN.
2509 2011-04-12  Richard Guenther  <rguenther@suse.de>
2511         PR tree-optimization/46076
2512         * gimple.h (struct gimple_statement_call): Add fntype field.
2513         (gimple_call_fntype): Adjust.
2514         (gimple_call_set_fntype): New function.
2515         * gimple.c (gimple_build_call_1): Set the call function type.
2516         * gimplify.c (gimplify_call_expr): Preserve the function
2517         type the frontend used for the call.
2518         (gimplify_modify_expr): Likewise.
2519         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
2520         function type.
2521         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
2522         function type.
2523         * tree-ssa.c (useless_type_conversion_p): Function pointer
2524         conversions are useless.
2526 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2528         * cgraph.h (cgraph_node): Remove function declaration.
2529         (cgraph_create_node): Declare.
2530         (cgraph_get_create_node): Likewise.
2531         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
2532         Updated all callers.
2533         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
2534         the decl does not already exist.  Call cgraph_get_create_node instead
2535         of cgraph_node.
2536         (cgraph_get_create_node): New function.
2537         (cgraph_same_body_alias): Update comment.
2538         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
2539         assert it does not return NULL.
2540         (cgraph_update_edges_for_call_stmt): Likewise.
2541         (cgraph_clone_edge): Likewise.
2542         (cgraph_create_virtual_clone): Likewise.
2543         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
2544         instead of cgraph_node.
2545         (cgraph_add_new_function): Call cgraph_create_node or
2546         cgraph_get_create_node instead of cgraph_node.
2547         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
2548         instead of cgraph_node.
2549         (record_eh_tables): Likewise.
2550         (mark_address): Likewise.
2551         (mark_load): Likewise.
2552         (build_cgraph_edges): Call cgraph_get_create_node instead
2553         of cgraph_node.
2554         (rebuild_cgraph_edges): Likewise.
2555         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
2556         instead of cgraph_node.
2557         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
2558         cgraph_node.
2559         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
2560         cgraph_create_node instead of cgraph_node.
2561         * c-decl.c (finish_function): Call cgraph_get_create_node instead
2562         of cgraph_node.
2563         * lto-cgraph.c (input_node): Likewise.
2564         * lto-streamer-in.c (input_function): Likewise.
2565         * varasm.c (mark_decl_referenced): Likewise.
2566         (assemble_alias): Likewise.
2568 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2570         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
2571         instead of cgraph_node and assert it does not return NULL.
2572         * lto-streamer-in.c (lto_read_body): Likewise.
2573         * omp-low.c (new_omp_context): Likewise.
2574         (create_task_copyfn): Likewise.
2575         * tree-emutls.c (lower_emutls_function_body): Likewise.
2576         * matrix-reorg.c (transform_allocation_sites): Likewise.
2578 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2580         PR c/48552
2581         * c-typeck.c (build_asm_expr): Error out on attempts to use
2582         void type outputs or inputs for constraints that allow reg or
2583         don't allow memory.
2585 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
2586             Richard Earnshaw  <rearnsha@arm.com>
2588         PR target/48250
2589         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
2590         to use sign-magnitude offsets. Reject unsupported unaligned
2591         cases. Add detailed description in comments.
2592         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
2593         condition from TARGET_32BIT to TARGET_ARM.
2595 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
2597         * tree.h (struct typed_tree): New.
2598         (struct tree_common): Include it instead of tree_base.
2599         (TREE_TYPE): Update for new location of type field.
2600         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
2601         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
2602         (union tree_node): Add typed field.
2603         * treestruct.def (TS_TYPED): New.
2604         * lto-streamer.c (check_handled_ts_structures): Handle it.
2605         * tree.c (MARK_TS_TYPED): New macro.
2606         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
2608 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2610         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
2611         (force_nonfallthru): Do not alter the loop nest if no basic block
2612         was created.
2614 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2616         * config/i386/sse.md (VI): New mode iterator.
2617         (SSEMODEI): Remove.
2618         (AVX256MODEI): Ditto.
2619         (AVXMODEF4P): Ditto.
2620         (avxvecpsmode): Ditto.
2621         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
2622         (sse2_andnot<mode>3): New expander.
2623         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
2624         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
2625         (<any_logic:code><mode>3): Use VI mode iterator.
2626         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
2627         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
2628         (*andnottf3): Handle AVX three-operand constraints.
2629         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
2631 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2632             Robert Millan  <rmh@gnu.org>
2634         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
2635         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
2636         GNU_USER_DYNAMIC_LINKER64): Define.
2637         (REG_NAME): Don't undefine.
2638         (MD_UNWIND_SUPPORT): Undefine.
2639         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
2640         (REG_NAME): Don't undefine.
2641         (MD_UNWIND_SUPPORT): Undefine.
2642         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
2644 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2646         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2647         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2649 2011-04-11  Xinliang David Li  <davidxl@google.com>
2651         * value-profile.c (check_ic_target): New function.
2652         (gimple_ic_transform): Sanity check indirect call target.
2653         * gimple-low.c (gimple_check_call_args): Interface change.
2654         (gimple_check_call_matching_types): New function.
2655         * tree-inline.c (tree_can_inline_p): Call new function.
2657 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
2659         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2660         tree-pretty-print.h & realmpfr.h.
2662 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
2664         PR middle-end/48464
2665         * ira.c (setup_pressure_classes): Fix typo in loop condition.
2666         (setup_allocno_and_important_classes): Ditto.
2668 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2670         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2671         GNU_USER_DYNAMIC_LINKER.
2672         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2673         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2674         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2675         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2676         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2677         GNU_USER_TARGET_OS_CPP_BUILTINS.
2678         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2679         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2680         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2681         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2682         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2683         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2684         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2685         GNU_USER_TARGET_OS_CPP_BUILTINS.
2686         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2687         GNU_USER_DYNAMIC_LINKER.
2688         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2689         GNU_USER_TARGET_OS_CPP_BUILTINS.
2690         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2691         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2692         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2693         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2694         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2695         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2696         GNU_USER_DYNAMIC_LINKER64): Remove.
2697         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2698         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2699         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2700         GNU_USER_DYNAMIC_LINKER.
2701         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2702         GNU_USER_TARGET_OS_CPP_BUILTINS.
2703         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2704         GNU_USER_TARGET_OS_CPP_BUILTINS.
2705         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2706         to GNU_USER_TARGET_OS_CPP_BUILTINS.
2707         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2708         GNU_USER_TARGET_OS_CPP_BUILTINS.
2709         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2710         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2711         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2712         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2713         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2714         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2715         GNU_USER_DYNAMIC_LINKER.
2716         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2717         GNU_USER_TARGET_OS_CPP_BUILTINS.
2718         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2719         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2720         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2721         GNU_USER_DYNAMIC_LINKER.
2722         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2723         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2724         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2725         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2726         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2727         GNU_USER_DYNAMIC_LINKER.
2728         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2729         GNU_USER_DYNAMIC_LINKERN32.
2730         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2731         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
2732         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
2733         GNU_USER_DYNAMIC_LINKER32.
2734         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2735         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2736         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2737         GNU_USER_DYNAMIC_LINKER.
2738         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2739         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2740         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2741         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2742         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2743         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2744         GNU_USER_DYNAMIC_LINKER32.
2745         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2746         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2747         GNU_USER_DYNAMIC_LINKER.
2748         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2749         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2750         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2751         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
2752         GNU_USER_DYNAMIC_LINKER64.
2753         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2754         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2755         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2756         GNU_USER_DYNAMIC_LINKER.
2757         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2758         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2759         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2760         GNU_USER_DYNAMIC_LINKER.
2761         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2762         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2763         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2764         GNU_USER_DYNAMIC_LINKER32.
2765         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2766         GNU_USER_DYNAMIC_LINKER64.
2767         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2768         GNU_USER_DYNAMIC_LINKER64.
2769         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2770         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2771         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2772         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2773         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2775 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2777         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
2778         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2779         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2780         GNU_USER_DYNAMIC_LINKER.
2781         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2782         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
2783         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2784         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2785         GNU_USER_DYNAMIC_LINKER64.
2786         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2787         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2788         GNU_USER_LINK_EMULATION.
2789         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2790         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2791         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2792         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2793         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2794         CPP_SPEC, CC1_SPEC): Remove.
2795         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2796         (GNU_USER_DYNAMIC_LINKER): Define.
2797         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2798         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2799         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2800         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2801         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2802         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2803         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2804         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2805         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2806         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2807         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2808         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2809         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2810         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2811         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2812         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2813         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2814         GNU_USER_DYNAMIC_LINKER.
2815         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2816         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2817         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2818         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2819         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2820         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2821         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2822         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2823         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2824         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2826 2011-04-11  Kai Tietz  <ktietz@redhat.com>
2828         PR target/9601
2829         PR target/11772
2830         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2831         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2832         comment.
2833         (ix86_is_msabi_thiscall): Removed.
2834         (ix86_is_type_thiscall): Likewise.
2835         (ix86_get_callcvt): New function.
2836         (ix86_comp_type_attributes): Simplify check.
2837         (ix86_function_regparm): Use ix86_get_callcvt for calling
2838         convention attribute checks.
2839         (ix86_return_pops_args): Likewise.
2840         (ix86_static_chain): Likewise.
2841         (x86_this_parameter): Likewise.
2842         (x86_output_mi_thunk): Likewise.
2843         (ix86_function_type_abi): Optimize check for types without attributes.
2844         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2845         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2846         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2847         by flag-values.
2848         (IX86_BASE_CALLCVT): Helper macro.
2849         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2850         Use ix86_get_callcvt for calling convention attribute checks and avoid
2851         symbol-decoration for stdcall in TARGET_RTD case.
2852         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2853         Likewise.
2854         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2855         for declaration.
2857 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2859         * config/i386/sse.md (VI_128): New mode iterator.
2860         (VI12_128): Rename from SSEMODE12.
2861         (VI14_128): Rename from SSEMODE14.
2862         (VI124_128): New mode iterator.
2863         (VI24_128): Rename from SSEMODE248.
2864         (VI248_128): Rename from SSEMODE248.
2865         (SSEMODE124C8): Remove.
2866         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2867         (*sse2_<plusminus_insn><mode>3): Merge with
2868         *avx_<plusminus_insn><mode>3.
2869         (*mulv8hi3): Merge with *avx_mulv8hi3.
2870         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2871         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2872         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2873         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2874         (ashr<mode>3): Merge with *avx_ashr<mode>3.
2875         (lshr<mode>3): Merge with *avx_lshr<mode>3.
2876         (ashl<mode>3): Merge with *avx_ashl<mode>3.
2877         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2878         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2879         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2880         (*<smaxmin:code>v8hi3): Ditto.
2881         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2882         (*<smaxmin:code>v16qi3): Ditto.
2883         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2884         (*sse2_eq<mode>3): Ditto.
2885         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2886         (*sse2_gt<mode>3): Ditto.
2887         (vcondv2di): Split out of vcond<mode>.
2888         (vconduv2di): Split out of vcondu<mode>.
2890 2011-04-11  Richard Guenther  <rguenther@suse.de>
2892         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2893         before calling tree_low_cst.
2895 2011-04-11  Richard Guenther  <rguenther@suse.de>
2897         * stor-layout.c (layout_type): Compute all array index size operations
2898         in the original type.
2899         (initialize_sizetypes): Add comment.
2900         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2902 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2904         * common.opt (Tbss=, Tdata=, Ttext=): New options.
2906 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2908         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2909         of cgraph_node, handle NULL return value.
2910         (cgraph_global_info): Likewise.
2911         (cgraph_rtl_info): Likewise.
2912         * tree-inline.c (estimate_num_insns): Likewise.
2913         * gimplify.c (unshare_body): Likewise.
2914         (unvisit_body): Likewise.
2915         (gimplify_body): Likewise.
2916         * predict.c (optimize_function_for_size_p): Likewise.
2917         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2918         (call_may_clobber_ref_p_1): Likewise.
2919         * varasm.c (function_section_1): Likewise.
2920         (assemble_start_function): Likewise.
2922 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2924         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2925         of cgraph_node.
2926         * final.c (rest_of_clean_state): Likewise.
2927         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2928         * passes.c (pass_init_dump_file): Likewise.
2929         (execute_all_ipa_transforms): Likewise.
2930         (function_called_by_processed_nodes_p): Likewise.
2931         * predict.c (maybe_hot_frequency_p): Likewise.
2932         (probably_never_executed_bb_p): Likewise.
2933         (compute_function_frequency): Likewise.
2934         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2935         (unnest_nesting_tree_1): Likewise.
2936         (lower_nested_functions): Likewise.
2937         * tree-optimize.c (execute_fixup_cfg): Likewise.
2938         (tree_rest_of_compilation): Likewise.
2939         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2940         * tree-sra.c (ipa_early_sra): Likewise.
2941         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2942         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2943         * ipa.c (record_cdtor_fn): Likewise.
2944         * ipa-inline.c (cgraph_early_inlining): Likewise.
2945         (compute_inline_parameters_for_current): Likewise.
2946         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2947         * ipa-pure-const.c (local_pure_const): Likewise.
2948         * ipa-split.c (split_function): Likewise.
2949         (execute_split_functions): Likewise.
2950         * cgraphbuild.c (build_cgraph_edges): Likewise.
2951         (rebuild_cgraph_edges): Likewise.
2952         (cgraph_rebuild_references): Likewise.
2953         (remove_cgraph_callee_edges): Likewise.
2954         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2955         (verify_cgraph_node): Likewise.
2956         (cgraph_analyze_functions): Likewise.
2957         (cgraph_preserve_function_body_p): Likewise.
2958         (save_inline_function_body): Likewise.
2959         (save_inline_function_body): Likewise.
2960         * tree-inline.c (copy_bb): Likewise.
2961         (optimize_inline_calls): Likewise.
2963 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2965         PR tree-optimization/48195
2966         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2967         ipa_check_create_edge_args.
2968         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2969         ipa_check_create_edge_args.
2970         * ipa-inline.c (inline_generate_summary): Do not call
2971         ipa_check_create_node_params and ipa_check_create_edge_args.
2972         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2973         ipa_check_create_edge_args.
2975 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
2977         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2978         instead of loop.
2979         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2980         * function.c (record_hard_reg_sets): Likewise.
2981         * ira.c (compute_regs_asm_clobbered): Likewise.
2982         * sched-deps.c (sched_analyze_1): Likewise.
2983         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2985 2011-04-09  Xinliang David Li  <davidxl@google.com>
2987         PR tree-optimization/PR48484
2988         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2989         has_valid_pred lazily
2991 2011-04-09  Duncan Sands  <baldrick@free.fr>
2993         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2995 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2997         * combine.c (combine_validate_cost): Adjust comments.  Set registered
2998         cost of I0 to zero at the end, if any.
3000 2011-04-08  Xinliang David Li  <davidxl@google.com>
3002         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
3003         to insane profile data.
3005 2011-04-08  Xinliang David Li  <davidxl@google.com>
3007         * ipa-cp.c (ipcp_update_profiling): Correct
3008          negative scale factor due to insane profile data.
3010 2011-04-08  Xinliang David Li  <davidxl@google.com>
3012         * final.c (dump_basic_block_info): New function.
3013         (final): Dump basic block.
3014         (final_scan_insn): Remove old dump.
3016 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
3018         PR target/47829
3019         * config.gcc (i386-*-freebsd): Disable unwind table generation for
3020         crtbegin/crtend.
3022 2011-04-08  Michael Matz  <matz@suse.de>
3024         PR middle-end/48389
3025         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
3026         functions.
3027         (rebuild_jump_labels): Call rebuild_jump_labels_1.
3028         * rtl.h (rebuild_jump_labels_chain): Declare.
3029         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
3030         insns inserted on edges.
3032 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
3034         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
3035         * config/arm/arm-arches.def: New.
3036         * config/arm/arm-opts.h: New.
3037         * config/arm/genopt.sh: New.
3038         * config/arm/arm-tables.opt: New (generated).
3039         * config/arm/arm.c (arm_handle_option, arm_target_help,
3040         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
3041         (all_architectures): Get most table contents from arm-arches.def.
3042         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
3043         arm_selected_tune here.
3044         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
3045         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
3046         (march=, mcpu=, mtune=): Use Enum and Var.
3047         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
3048         (arm.o): Update dependencies.
3050 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
3052         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
3053         of header_file.
3054         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
3055         (write_typed_alloc_defns): Likewise.
3056         (main): Calls write_typed_alloc_defns with output_header.
3058 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
3060         PR inline-asm/48435
3061         * ira-color.c (setup_profitable_hard_regs): Add comments.
3062         Don't take prohibited hard regs into account.
3063         (setup_conflict_profitable_regs): Rename to
3064         get_conflict_profitable_regs.
3065         (check_hard_reg_p): Check prohibited hard regs.
3067 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
3069         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
3070         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
3071         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
3073 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3075         PR target/48366
3076         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
3077         move from floating point to shift amount register.
3078         (emit_move_sequence): Remove secondary reload support for floating
3079         point to shift amount amount register copies.
3080         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
3081         amount register copies.
3082         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
3083         register, return false if mode isn't a scalar integer mode.
3084         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
3086 2011-04-08  Richard Guenther  <rguenther@suse.de>
3088         * gimple.c (gimple_call_flags): Remove kludge.
3090 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
3092         * sel-sched.c (sel_region_init): Move call to
3093         sel_setup_region_sched_flags after setup_current_loop_nest.
3095 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
3097         PR rtl-optimization/48272
3098         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
3099         init_insn_reg_pressure_info.  Adjust a caller.
3100         * sched-int.h (init_insn_reg_pressure_info): Declare.
3101         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
3102         when sched-pressure is enabled.
3104 2011-04-08  Richard Guenther  <rguenther@suse.de>
3106         * gimple.c (gimple_set_modified): Do not queue calls to
3107         MODIFIED_NORETURN_CALLS here ...
3108         * tree-ssa-operands.c (update_stmt_operands): ... but here.
3110 2011-04-08  Richard Guenther  <rguenther@suse.de>
3112         PR lto/48467
3113         * toplev.c (lang_dependent_init): Do not open asm_out_file
3114         in WPA mode, nor perform debug machinery initialization.
3115         (finalize): Do not unlink asm_out_file in WPA mode.
3117 2011-04-08  Richard Guenther  <rguenther@suse.de>
3119         * gimple.h (gimple_call_fntype): New function.
3120         (gimple_call_return_type): Use it.
3121         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
3122         * gimple-low.c (gimple_check_call_args): Likewise.
3123         * gimple.c (gimple_call_flags): Likewise.
3124         (gimple_call_arg_flags): Likewise.
3125         (gimple_call_return_flags): Likewise.
3126         * tree-cfg.c (verify_gimple_call): Likewise.
3127         (do_warn_unused_result): Likewise.
3128         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
3129         * value-prof.c (gimple_ic_transform): Fix fndecl check.
3131 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
3133         PR rtl-optimization/48235
3134         * sel-sched.c (code_motion_process_successors): Recompute the last
3135         insn in basic block if control flow changed.
3136         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
3137         Update condition for ilist_remove.
3139 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
3141         PR rtl-optimization/48302
3142         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
3143         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
3144         it to record added preheader blocks.
3145         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
3146         on to sel_add_loop_preheaders.
3147         (sel_region_init): Move call to setup_current_loop_nest after
3148         sel_init_bbs.
3150 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
3152         PR target/48273
3153         * cfgloop.h (loop_has_exit_edges): New helper.
3154         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
3155         non-clonable.
3156         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
3157         that have no exit edges.
3159 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
3161         PR rtl-optimization/48442
3162         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
3163         all callers.  Adjust assert.
3165 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
3167         PR tree-optimization/48377
3168         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
3169         is_packed to true even for types with smaller TYPE_ALIGN than
3170         TYPE_SIZE.
3172 2011-04-08  Richard Guenther  <rguenther@suse.de>
3174         PR bootstrap/48513
3175         * doc/tm.texi: Re-generate.
3177 2011-04-08  Wei Guozhi  <carrot@google.com>
3179         PR target/47855
3180         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
3181         * config/arm/arm.c (arm_attr_length_push_multi): New function.
3182         * config/arm/arm.md (*push_multi): Change the length computation to
3183         call a C function.
3185 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
3187         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
3188         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
3189         * doc/tm.texi: Regenerate.
3190         * system.h (ASM_OUTPUT_BSS): Poison.
3191         * varasm.c (asm_output_bss): Remove function.
3192         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
3194         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
3195         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
3196         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
3197         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3198         Likewise.
3199         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3200         Likewise.
3201         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3202         Likewise.
3203         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3205 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
3207         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
3208         EnumValue lines.
3210 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
3212         * config/m68k/m68k.c (m68k_handle_option): Don't handle
3213         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
3214         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
3215         OPT_mcpu32.
3216         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3217         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
3218         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
3219         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
3220         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
3221         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
3222         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
3223         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
3224         options.  Don't map other m68k options manually.  Don't handle
3225         old-style options as canonical.
3226         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
3227         * doc/install.texi (m68k-*-*): Document binutils version requirement.
3229 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3231         * basic-block.h (force_nonfallthru): Move to...
3232         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
3233         (force_nonfallthru): ...here.
3234         * cfghooks.c (force_nonfallthru): New function.
3235         * cfgrtl.c (force_nonfallthru): Rename into...
3236         (rtl_force_nonfallthru): ...this.
3237         (commit_one_edge_insertion): Do not set AUX field.
3238         (commit_edge_insertions): Do not discover new basic blocks.
3239         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
3240         (cfg_layout_rtl_cfg_hooks): Likewise.
3241         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
3242         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
3243         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
3245 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
3247         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
3248         Remove macros.
3250 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
3252         * config/i386/sse.md: Update copyright year.
3253         (avxcvtvecmode): Remove.
3254         (sse_movhlps): Merge with *avx_movhlps.
3255         (sse_movlhps): Merge with *avx_movlhps.
3256         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
3257         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
3258         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
3259         (sse_loadhps): Merge with *avx_loadhps.
3260         (sse_storelps): Merge with *avx_storelps.
3261         (sse_loadlps): Merge with *avx_loadlps.
3262         (sse_movss): Merge with *avx_movss.
3263         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
3264         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
3265         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
3266         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
3267         (vec_set<mode>_0): Ditto.
3268         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
3269         (sse4_1_insertps): Merge with *avx_insertps.
3270         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
3271         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
3272         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
3273         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
3274         (sse2_storehpd): Merge with *avx_storehpd.
3275         (sse2_loadhpd): Merge with *avx_loadhpd.
3276         (sse2_loadlpd): Merge with *avx_loadlpd.
3277         (sse2_movsd): Merge with *avx_movsd.
3278         (*vec_concatv2df): Merge with *vec_concatv2df.
3280 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
3282         PR debug/48343
3283         * combine.c (combine_instructions): Add last_combined_insn,
3284         update it if insn is after it, pass it to all try_combine calls.
3285         (try_combine): Add last_combined_insn parameter, pass it instead of
3286         i3 to propagate_for_debug.
3288 2011-04-07  Nick Clifton  <nickc@redhat.com>
3290         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
3291         to handle MDR <-> data register transfers.
3292         (movhi_internal): Likewise.
3294 2011-04-07  Alan Modra  <amodra@gmail.com>
3296         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
3297         previous stack info.
3299 2011-04-07  Tom de Vries  <tom@codesourcery.com>
3301         PR target/43920
3302         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
3303         flow_find_cross_jump.  Swap variables to implement backward replacement.
3304         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
3306 2011-04-07  Tom de Vries  <tom@codesourcery.com>
3308         PR target/43920
3309         * cfgcleanup.c (walk_to_nondebug_insn): New function.
3310         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
3311         and bb2.
3312         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
3313         src1 or src2.  Redirect edges to the last basic block.  Update
3314         frequency and count on multiple basic blocks in case of fallthru.
3316 2011-04-07  Tom de Vries  <tom@codesourcery.com>
3318         PR target/43920
3319         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
3320         function.
3321         (old_insns_match_p): Change return type.  Replace return false/true
3322         with return dir_none/dir_both.  Use can_replace_by.
3323         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
3324         direction from dir_p.  Register replacement direction in dir, last_dir
3325         and afterlast_dir.  Handle new return type of old_insns_match_p using
3326         merge_dir.  Return replacement direction in dir_p.
3327         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
3328         return type of old_insns_match_p.
3329         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
3330         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
3331         flow_find_cross_jump.
3332         * basic-block.h (enum replace_direction): New type.
3333         (flow_find_cross_jump): Add parameter to declaration.
3335 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
3337         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
3338         (AVXMODEDCVTPS2DQ): Ditto.
3339         (VEC_FLOAT_MODE): Ditto.
3340         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
3341         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
3342         (<any_logic:code><mode>3): Use VF mode iterator.
3343         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
3344         Use VF mode iterator.
3345         (copysign<mode>3): Use VF mode iterator.
3346         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
3347         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
3348         (*<any_logic:code><MODEF:mode>3): Merge with
3349         *avx_<any_logic:code><MODEF:mode>3.
3350         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
3351         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
3352         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
3353         (avx_cvtdq2ps<avxmodesuffix>): Remove.
3354         (sse2_cvtdq2ps): Use %v modifier.
3355         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
3356         (avx_cvtps2dq<avxmodesuffix>): Remove.
3357         (sse2_cvtps2dq): Use %v modifier.
3358         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
3359         (avx_cvttps2dq<avxmodesuffix>): Remove.
3360         (sse2_cvttps2dq): Use %v modifier.
3361         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
3362         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
3363         (sse2_cvtsd2siq): Fix insn template.
3364         (sse2_cvtsd2siq_2): Ditto.
3365         (sse2_cvttsd2siq): Ditto.
3366         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
3367         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
3369 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
3371         * gcov-io.c: Use GCC Runtime Library Exception.
3373 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
3375         PR debug/48466
3376         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
3377         as base_reg whatever register reg has been eliminated to, instead
3378         of hardcoding STACK_POINTER_REGNUM.
3380 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
3382         * doc/tm.texi.in: Document C target hooks as separate from general
3383         target hooks.
3384         * doc/tm.texi: Regenerate.
3385         * genhooks.c (struct hook_desc): Add docname field.
3386         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
3387         docname field.
3388         (hook_array): Include c-target.def.
3389         (emit_documentation): Use docname field in output.
3390         (emit_init_macros): Take docname argument.  Only emit definitions
3391         for hooks matching docname.
3392         (main): Expect additional arguments in all cases.  Pass argument
3393         to emit_init_macros.
3394         * target.def: Move initial macro definitions and comments to
3395         target-hooks-macros.h.
3396         (gcc_targetcm): Move to c-family/c-target.def.
3397         * target.h (targetcm): Move declaration to c-family/c-target.h.
3398         * targhooks.c (default_handle_c_option): Move to
3399         c-family/c-opts.c.
3400         * targhooks.h (default_handle_c_option): Move declaration to
3401         c-family/c-common.h.
3402         * target-hooks-macros.h: New file.
3403         * config.gcc (target_has_targetcm): Define and use to add to
3404         c_target_objs and cxx_target_objs.
3405         * config/default-c.c: New file.
3406         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
3407         of target.h and target-def.h.
3408         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
3409         (darwin_objc_construct_string, darwin_cfstring_ref_p,
3410         darwin_check_cfstring_format_arg): Make static.
3411         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3412         TARGET_STRING_OBJECT_REF_TYPE_P,
3413         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
3414         * config/darwin-protos.h (darwin_objc_construct_string,
3415         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
3416         declare.
3417         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3418         TARGET_STRING_OBJECT_REF_TYPE_P,
3419         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
3420         * config/t-darwin (darwin-c.o): Update dependencies.
3421         * system.h (TARGET_HAS_TARGETCM): Poison.
3422         * Makefile.in (TARGET_H): Update.
3423         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
3424         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
3425         (default-c.o): New target.
3426         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
3427         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
3428         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
3429         c-target.def.
3430         (build/genhooks.o): Update dependencies.
3432 2011-04-06  Richard Guenther  <rguenther@suse.de>
3434         * ipa-inline.c (enum inlining_mode): Remove.
3435         (cgraph_flatten): Use some other token.
3436         (cgraph_edge_early_inlinable_p): New function, split out from ...
3437         (cgraph_perform_always_inlining): New function, split out from ...
3438         (cgraph_decide_inlining_incrementally): ... here.
3439         (cgraph_mark_inline_edge): Adjust.
3440         (cgraph_early_inlining): Re-structure.
3441         (pass_early_inline): Require SSA form.
3443 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
3444             Julian Brown  <julian@codesourcery.com>
3445             Mark Shinwell  <shinwell@codesourcery.com>
3447         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
3448         LO_REGS only for Thumb-1.
3449         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
3450         be used in short instructions when optimising for size on Thumb-2.
3452 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3454         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
3455         associated with user returns to be preserved.
3457 2011-04-06  Tristan Gingold  <gingold@adacore.com>
3459         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
3460         symbol_queue_size, DBXOUT_DECR_NESTING,
3461         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
3462         if XCOFF_DEBUGGING_INFO.
3464 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
3466         * config/i386/i386.md (attribute isa): New.
3467         (attribute enabled): New.
3468         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
3469         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
3470         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
3471         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
3472         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
3473         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3474         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
3475         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
3477         * config/i386/sse.md (VF): New mode iterator.
3478         (VF1): Ditto.
3479         (VF2): Ditto.
3480         (VF_128): Ditto.
3481         (SSEMODEF4): Remove.
3482         (attribute sse): Handle V8SF and V4DF modes.
3483         (<absneg:code><mode>2): Use VF mode iterator.
3484         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
3485         mode iterator.
3486         (<plusminus_insn><mode>3): Use VF mode iterator.
3487         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3488         Use VF mode iterator.
3489         (<sse>_vm<plusminus_insn><mode>3): Merge with
3490         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
3491         (mul<mode>3): Use VF mode iterator.
3492         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
3493         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
3494         mode iterator.
3495         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
3496         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
3497         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
3498         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
3499         mode iterator.
3500         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
3501         Use VF1 mode iterator.
3502         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
3503         (sqrt<VF2:mode>2): New expander.
3504         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
3505         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
3506         and sqrtv2df2.  Use VF mode iterator.
3507         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
3508         mode iterator.
3509         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
3510         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
3511         Use VF1 mode iterator.
3512         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
3513         (<smaxmin:code><mode>3): Use VF mode iterator.
3514         (*<smaxmin:code><mode>3_finite): Merge with
3515         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
3516         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3517         (<sse>_vm<smaxmin:code><mode>2): Merge with
3518         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
3519         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
3520         mode iterator.
3521         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
3522         mode iterator.
3523         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
3524         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
3525         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
3526         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
3527         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
3528         VF mode iterator.
3529         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
3530         Use VF_128 mode iterator.
3531         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
3532         mode iterator.
3533         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
3534         VF_128 mode iterator.
3535         (vcond<mode>): Use VF mode iterator.
3536         * config/i386/predicates.md (sse_comparison_operator): Merge with
3537         avx_comparison_float_operator.  Do not declare as special_predicate.
3538         * config/i386/i386.c (struct builtin_description): Update for renamed
3539         compare patterns.
3540         (ix86_expand_args_builtin): Ditto.
3541         (ix86_expand_sse_compare_mask): Ditto.
3543 2011-04-06  Richard Guenther  <rguenther@suse.de>
3545         * tree-inline.c (estimate_num_insns): For calls simply account
3546         for all passed arguments and a used return value.
3548 2011-04-06  Richard Guenther  <rguenther@suse.de>
3550         PR tree-optimization/47663
3551         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
3552         call_stmt_time fields.
3553         (cgraph_edge_inlinable_p): Declare.
3554         (cgraph_edge_recursive_p): New inline function.
3555         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
3556         (cgraph_clone_edge): Copy it.
3557         * ipa-inline.c (cgraph_estimate_edge_time): New function.
3558         Account for call stmt time.
3559         (cgraph_estimate_time_after_inlining): Take edge argument.
3560         (cgraph_estimate_edge_growth): Account call stmt size.
3561         (cgraph_estimate_size_after_inlining): Take edge argument.
3562         (cgraph_mark_inline_edge): Adjust.
3563         (cgraph_check_inline_limits): Likewise.
3564         (cgraph_recursive_inlining_p): Remove.
3565         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
3566         (cgraph_decide_recursive_inlining): Take edge argument and
3567         adjust.
3568         (cgraph_decide_inlining_of_small_functions): Do not avoid
3569         diags for recursive inlining here.
3570         (cgraph_flatten): Adjust.
3571         (cgraph_decide_inlining_incrementally): Likewise.
3572         (estimate_function_body_sizes): Remove call cost handling.
3573         (compute_inline_parameters): Initialize caller edge call costs.
3574         (cgraph_estimate_edge_growth): New function.
3575         (cgraph_estimate_growth): Use it.
3576         (cgraph_edge_badness): Likewise.
3577         (cgraph_check_inline_limits): Take an edge argument.
3578         (cgraph_decide_inlining_of_small_functions): Adjust.
3579         (cgraph_decide_inlining): Likewise.
3580         * tree-inline.c (estimate_num_insns): Only account for call
3581         return value if it is used.
3582         (expand_call_inline): Avoid diagnostics on recursive inline
3583         functions here.
3584         * lto-cgraph.c (lto_output_edge): Output edge call costs.
3585         (input_edge): Input edge call costs.
3587 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3589         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
3591 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
3593         * doc/invoke.texi (Spec Files): Fix typo.
3595 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3597         * profile.c (branch_prob): Move declaration of local variable.  Remove
3598         obsolete ??? comment.  Expand the location explicitly instead of using
3599         the LOCATION_FILE and LOCATION_LINE macros.
3601 2011-04-06  Wei Guozhi  <carrot@google.com>
3603         PR target/47855
3604         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
3605         (arm_cond_branch): Likewise.
3606         (arm_cond_branch_reversed): Likewise.
3607         (arm_jump): Likewise.
3608         (push_multi): Likewise.
3609         * config/arm/constraints.md (Py): New constraint.
3611 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3613         PR bootstrap/48471
3614         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
3615         Move these...
3616         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
3617         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
3618         #ifdef DBX_DEBUGGING_INFO.
3620 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
3622         PR bootstrap/48403
3623         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
3624         if old and new states differ.
3626 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3628         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
3629         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
3630         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3631         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
3632         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
3633         mcfv4e): Use Alias.
3634         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
3635         ColdFire options to -mcpu= options.
3637 2011-04-05  Jeff Law  <law@redhat.com>
3639         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
3640         check if BB is a successor of LOOP->header and return
3641         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
3643 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3645         * cprop.c (struct reg_use): Remove.
3646         (reg_use_table): Make an array of RTX.
3647         (find_used_regs, constprop_register, local_cprop_pass,
3648         bypass_block): Simplify users of reg_use_table.
3649         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
3650         on one of the uses found by find_used_regs.
3652 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3654         PR bootstrap/48469
3655         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3656         declaration.
3658 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3660         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3661         as an rtx.
3662         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3664 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3666         PR middle-end/48441
3667         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3669 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3671         * combine.c: Include obstack.h.
3672         (struct insn_link): Define.
3673         (uid_log_links): Adjust type.
3674         (FOR_EACH_LOG_LINK): New macro.
3675         (insn_link_obstack): Declare.
3676         (alloc_insn_link): Define.
3677         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
3678         type of link variables.
3679         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3680         (try_combine, record_promoted_values, distribute_notes): Likewise.
3681         (distribute_links): Likewise.  Tweak prototype.
3682         (clear_log_links): Delete.
3683         (adjust_for_new_dest): Call alloc_insn_link.
3684         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3686 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3688         * gcse.c (modify_mem_list): Convert to an array of VECs.
3689         (canon_modify_mem_list, compute_transp): Tweak formatting.
3690         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
3691         (load_killed_in_block_p): Likewise.
3692         (record_last_mem_set_info): Likewise.
3693         (clear_modify_mem_tables): Likewise.
3695 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3697         PR middle-end/48461
3698         * function.c (emit_use_return_register_into_block): Only define if
3699         HAVE_return.
3701 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
3703         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3705 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3707         * config/rx/rx-opts.h: New.
3708         * config/rx/rx.c (rx_cpu_type): Remove.
3709         (rx_handle_option): Don't assert that global structures are in
3710         use.  Access variables via opts pointer.  Defer most handling of
3711         OPT_mint_register_.  Use error_at.
3712         (rx_option_override): Handle deferred OPT_mint_register_ here.
3713         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3714         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3715         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3716         (rx_cpu_types): New Enum and EnumValue entries.
3717         (mint-register=): Use Defer and use Var accordingly.
3719 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3721         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3722         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3723         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3724         Move these...
3725         (debug_free_queue, debug_nesting, symbol_queue_index):
3726         ...and these...
3727         * dbxout.c: ...to here.  Make static.
3729 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3731         * gcse.c (modify_pair): Define.  Define a VEC of it.
3732         (canon_modify_mem_list): Convert to an array of VECs.
3733         (free_insn_expr_list_list): Delete.
3734         (clear_modify_mem_tables): Call VEC_free instead.
3735         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3736         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3737         (canon_list_insert, compute_transp): Likewise.
3739 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3741         PR target/43920
3742         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3743         for size.
3745 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3747         PR target/43920
3748         * function.c (emit_use_return_register_into_block): New function.
3749         (thread_prologue_and_epilogue_insns): Use
3750         emit_use_return_register_into_block.
3752 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3754         PR target/43920
3755         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3756         insn.
3758 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3760         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3762 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
3764         * config/arm/arm.md (define_constants for unspec): Replace with
3765         define_c_enum.
3766         (define_constants for unspecv): Replace with define_c_enum.
3767         * config/arm/neon.md (define_constants for unspec): Replace with
3768         define_c_enum.
3770 2011-04-04  Richard Henderson  <rth@redhat.com>
3772         PR bootstrap/48400
3773         * dwarf2out.c (output_line_info): Always emit line info from
3774         at least one section.
3775         (dwarf2out_init): Create text_section_line_info here ...
3776         (set_cur_line_info_table): ... not here.
3778 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
3780         PR target/48380
3781         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3782         not called.
3784         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3786 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
3788         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3789         (expr_equiv_p): Remove.
3790         (insert_set_in_table): Look at <dest, src> pair instead of expr.
3791         (hash_scan_set): Update call to insert_set_in_table.
3792         (dump_hash_table): Dump <dest, src> pair.
3793         (lookup_set): Simplify.  Lookup <dest, src> pair.
3794         (compute_transp): Remove, fold heavily simplified code into...
3795         (compute_local_properties): ...here.  Expect COMP and TRANSP
3796         unconditionally.
3797         (find_avail_set): Take set directly from struct expr.
3798         (find_bypass-set): Likewise.
3799         (bypass_block): Likewise.
3800         (cprop_insn): Likewise.  Remove redundant INSN_P test.
3802         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3803         checks on form of COND from find_implicit_sets to here.
3804         (find_implicit_sets): Cleanup control flow. Split critical edges
3805         if it exposes implicit sets.  Allocate/resize implicit_sets as
3806         necessary.
3807         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3808         changed something.  Run df_analyze after find_implicit_sets if any
3809         edges were split.  Do not allocate implicit_sets here.
3811         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3812         (gcse_obstack): Renamed to cprop_obstack.
3813         (GNEW, GNEWVEC, GNEWVAR): Remove.
3814         (gmalloc): Remove.
3815         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3816         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3817         (gcse_alloc): Likewise, and rename to cprop_alloc.
3818         (alloc_gcse_men, free_gcse_mem): Remove.
3819         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3820         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3821         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3823         * cprop.c (oprs_not_set_p): Remove.
3824         (mark_set, mark_clobber): Remove.
3825         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3826         (reg_not_set_p): New function.
3827         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3828         (cprop_insn): Likewise.
3829         (cprop_jump): Use FOR_EACH_EDGE.
3831 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
3833         PR bootstrap/48403
3834         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3835         (rank_for_schedule): Use scheduled_insns vector instead of
3836         last_scheduled_insn.
3837         (ok_for_early_queue_removal): Likewise.
3838         (queue_to_ready): Search forward in nonscheduled_insns_begin if
3839         we have a dbg_cnt.
3840         (choose_ready): Likewise.
3841         (commit_schedule): Use VEC_iterate.
3842         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
3843         a dbg_cnt, use it and ensure the first insn is in the ready list.
3844         (haifa_sched_init): Allocate scheduled_insns.
3845         (sched_extend_ready_list): Don't allocate it; reserve space.
3846         (haifa_sched_finish): Free it.
3848 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3850         * optc-gen.awk: Always remove type from Variable entry before
3851         recording in var_seen.
3853 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
3855         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3856         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3857         call to tidy_fallthru_edges.
3859 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3861         * doc/options.texi (ToLower): Document.
3862         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3863         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3864         * opts.h (cl_option): Add cl_tolower field.
3865         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3866         arguments with lowercase strings.
3867         * config/rx/rx.opt (mcpu=): Add ToLower.
3868         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3869         argument.
3871 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3873         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3875 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3877         * config/vax/vax.c: Include reload.h.
3879 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
3881         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3882         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3883         (sparc_preferred_reload_class): New function.
3885 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
3887         PR debug/48401
3888         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3889         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3891 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
3893         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3894         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3896 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
3898         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3899         (ASM_OUTPUT_ALIGNED_BSS): Define.
3901 2011-04-03  Michael Matz  <matz@suse.de>
3903         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3904         and next_slot members.
3905         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3906         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3907         (lto_streamer_cache_append): Declare.
3908         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3909         unsigned index, remove offset parameter, ensure that we append
3910         or update existing entries.
3911         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3912         parameter, update next_slot for append.
3913         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3914         parameter.
3915         (lto_streamer_cache_insert_at): Likewise.
3916         (lto_streamer_cache_append): New function.
3917         (lto_streamer_cache_lookup): Use unsigned index.
3918         (lto_streamer_cache_get): Likewise.
3919         (lto_record_common_node): Don't test tree_node_can_be_shared.
3920         (preload_common_node): Adjust call to lto_streamer_cache_insert.
3921         (lto_streamer_cache_delete): Don't free offsets member.
3922         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3923         (lto_output_string_with_length): Use lto_output_data_stream.
3924         (lto_output_tree_header): Remove ix parameter, don't write it.
3925         (lto_output_builtin_tree): Likewise.
3926         (lto_write_tree): Adjust callers to above, don't track and write
3927         offset, write unsigned index.
3928         (output_unreferenced_globals): Don't emit all global vars.
3929         (write_global_references): Use unsigned indices.
3930         (lto_output_decl_state_refs): Likewise.
3931         (write_symbol): Likewise.
3932         * lto-streamer-in.c (lto_input_chain): Move earlier.
3933         (input_function): Use unsigned index.
3934         (input_alias_pairs): Don't read and then ignore all global vars.
3935         (lto_materialize_tree): Remove ix_p parameter, don't read index,
3936         don't pass it back, use lto_streamer_cache_append.
3937         (lto_register_var_decl_in_symtab): Use unsigned index.
3938         (lto_register_function_decl_in_symtab): Likewise.
3939         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3940         index.
3941         (lto_get_builtin_tree): Don't read index, use
3942         lto_streamer_cache_append.
3943         (lto_read_tree): Adjust call to lto_materialize_tree.
3945         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3946         don't use function calls in arguments to MIN.
3948         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3949         twice.
3951         * gimple.c (gimple_type_leader_entry): Mark deletable.
3953 2011-04-03  Alan Modra  <amodra@gmail.com>
3955         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3957 2011-04-03  Michael Matz  <matz@suse.de>
3959         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3960         an integer.
3961         * tree.h (tree_decl_non_common.vindex): Adjust comment.
3963 2011-04-03  Michael Matz  <matz@suse.de>
3965         * cgraphbuild.c (record_reference): Canonicalize constructor values.
3966         * gimple-fold.c (canonicalize_constructor_val): Accept being called
3967         without function context.
3968         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3969         current_function_decl and cfun.
3971 2011-04-03  Michael Matz  <matz@suse.de>
3973         * tree.c (decl_init_priority_insert): Don't create entry for
3974         default priority.
3975         (decl_fini_priority_insert): Ditto.
3976         (fields_compatible_p, find_compatible_field): Remove.
3977         * tree.h (fields_compatible_p, find_compatible_field): Remove.
3978         * gimple.c (gimple_compare_field_offset): Adjust block comment.
3980 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
3982         * combine.c (try_combine): Remove useless local variable.
3984 2011-04-03  Richard Guenther  <rguenther@suse.de>
3985             Ira Rosen  <ira.rosen@linaro.org>
3987         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3988         non-variable offsets and compare the remaining bases of the two
3989         accesses instead of looking for exact same data-ref.
3991 2011-04-02  Kai Tietz  <ktietz@redhat.com>
3993         PR target/48416
3994         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3996         * i386.c (ix86_is_msabi_thiscall): New helper function.
3997         (ix86_is_type_thiscall): New helper function.
3998         (ix86_comp_type_attributes): Handle thiscall for method-functions
3999         special.
4000         (init_cumulative_args): Likewise.
4001         (find_drap_reg): Likewise.
4002         (ix86_static_chain): Likewise.
4003         (x86_this_parameter): Likewise.
4004         (x86_output_mi_thunk): Likewise.
4006 2011-04-01  Olivier Hainque  <hainque@adacore.com>
4007             Nicolas Setton  <setton@adacore.com>
4008             Eric Botcazou  <ebotcazou@adacore.com>
4010         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
4011         (add_gnat_descriptive_type_attribute): New function.
4012         (gen_array_type_die): Call it.
4013         (gen_enumeration_type_die): Likewise.
4014         (gen_struct_or_union_type_die): Likewise.
4015         (modified_type_die): Likewise.
4016         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
4017         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
4018         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
4020 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
4022         PR bootstrap/48148
4023         * dwarf2out.c (resolve_addr): Don't call force_decl_die
4024         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
4026         Revert:
4027         2011-03-17  Richard Guenther  <rguenther@suse.de>
4029         PR bootstrap/48148
4030         * lto-cgraph.c (input_overwrite_node): Clear the abstract
4031         origin for decls in other ltrans units.
4032         (input_varpool_node): Likewise.
4034 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
4036         PR middle-end/48335
4037         * expr.c (expand_assignment): Handle all possibilities
4038         if TO_RTX is CONCAT.
4039         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
4040         (store_split_bit_field): If SUBREG_REG (op0) or
4041         op0 itself has smaller mode than word, return it
4042         for offset 0 and const0_rtx for out-of-bounds stores.
4043         If word is const0_rtx, skip it.
4045 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
4047         * config/h8300/h8300.c (print_operand_address): Rename to...
4048         (h8300_print_operand_address): ...this. Make static. Adjust comments.
4049         Call h8300_print_operand and h8300_print_operand_address instead of
4050         print_operand and print_operand_address. Declare.
4051         (print_operand): Renake to...
4052         (h8300_print_operand): ...this. Make static. Adjust comments.
4053         Call h8300_print_operand instead of print_operand. Declare.
4054         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
4055         (h8300_register_move_cost): Likewise.
4056         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
4057         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
4058         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
4059         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
4060         * config/h8300/h8300-protos.h (print_operand): Delete.
4061         (print_operand_address): Delete.
4063 2011-04-01  Richard Henderson  <rth@redhat.com>
4065         PR 48400
4066         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
4067         in strict mode before dwarf4.  Re-order tests to early out
4068         before switching sections.
4070 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
4072         * config/h8300/constraints.md: New file.
4073         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
4074         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
4075         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
4076         * config/h8300/predicates.md (bit_operand): Likewise.
4077         (incdec_operand): Use satisfies_constraint_M and
4078         satisfies_constraint_O.  Don't use C code block.
4079         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
4080         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
4081         (compute_mov_length): Use satisfies_constraint_G.
4082         (fix_bit_operand): Use satisfies_constraint_U.
4083         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
4084         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
4085         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
4086         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
4087         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
4088         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
4089         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4090         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
4091         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
4092         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
4093         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
4094         (EXTRA_MEMORY_CONSTRAINT): Delete.
4096 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
4097             Michael Meissner  <meissner@linux.vnet.ibm.com>
4099         PR target/48262
4100         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
4101         operands, as per the specifications.
4103         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
4104         (vec_extract_evenv4sf): Ditto.
4105         (vec_extract_evenv8hi): Ditto.
4106         (vec_extract_evenv16qi): Ditto.
4107         (vec_extract_oddv4si): Ditto.
4109 2011-03-31  Mark Wielaard  <mjw@redhat.com>
4111         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
4112         high_pc attribute if the CU has no associated code. Only output
4113         DW_AT_entry_pc for CU if not generating strict dwarf and
4114         dwarf_version < 4.
4116 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
4118         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
4119         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
4120         out of ...
4121         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
4122         * final.c (final_start_function): Call the new function rather
4123         than using a NULL argument for dwarf2out_frame_debug.
4125         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
4126         that contains the prologue.
4128         * haifa-sched.c (queue_insn): New arg REASON.  All callers
4129         changed.  Print it in debugging output.
4131         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
4133         * sched-ebb.c (begin_schedule_ready): Remove second argument.
4134         Split most of the code into...
4135         (begin_move_insn): ... here.  New function.
4136         (ebb_sched_info): Add a pointer to it.
4137         * haifa-sched.c (scheduled_insns): New static variable.
4138         (sched_extend_ready_list): Allocate it.
4139         (schedule_block): Use it to record the order of scheduled insns.
4140         Perform RTL changes to move insns only after all scheduling
4141         decisions have been made.
4142         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
4143         begin_move_insn field.
4144         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
4145         * sched-int.h (struct haifa_sched_info): Remove second argument
4146         from begin_schedule_ready hook.  Add new member begin_move_insn.
4147         * sched-rgn.c (begin_schedule_ready): Remove second argument.
4148         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
4150         * haifa-sched.c (prune_ready_list): New function, broken out of
4151         schedule_block.
4152         (schedule_block): Use it.
4154 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4156         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
4158 2011-04-01  Kai Tietz  <ktietz@redhat.com>
4160         * config.gcc (*-*-mingw*): Allow as option the
4161         posix threading model.
4162         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
4163         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
4164         definition.
4165         (CPP_SPEC): Add pthread/no-pthread handling.
4166         (LIB_SPEC): Likewise.
4167         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
4168         (LIB_SPEC): Likewise.
4169         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
4170         flag to pass -pthread option for shared libgcc build.
4171         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
4172         for shared libgcc build.
4173         * config/i386/t-mingw-pthread: New file.
4174         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
4175         New define to enable use of library pthread by default.
4176         * config/i386/mingw.opt (pthread): New driver option.
4177         (no-pthread): New driver option.
4178         * config/i386/cygming.opt: Make sure trailing empty line is retained.
4179         * config/i386/mingw-w64.opt: Likewise.
4181 2011-04-01  Gary Funck <gary@intrepid.com>
4183         * c-decl.c (grokdeclarator): Fix formatting.
4185 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
4187         * expr.c (emit_block_move_via_movmem): Use n_generator_args
4188         instead of n_operands.
4189         (set_storage_via_setmem): Likewise.
4190         * optabs.c (maybe_gen_insn): Likewise.
4191         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
4192         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
4193         (mips_expand_builtin_direct): Likewise.
4194         * config/spu/spu.c (expand_builtin_args): Likewise.
4196 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
4198         * recog.h (insn_data_d): Add n_generator_args.
4199         * genoutput.c (data): Likewise.
4200         (output_insn_data): Print it.
4201         (max_opno, num_dups): Delete.
4202         (scan_operands): Just fill in "d->operand[...]".
4203         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
4205 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
4207         * gensupport.h (pattern_stats): New structure.
4208         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
4209         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
4210         (max_operand_1, max_operand_vec): Delete.
4211         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
4213 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
4215         * emit-rtl.c (emit_pattern_after_setloc): New function.
4216         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
4217         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
4218         (emit_pattern_after): New function.
4219         (emit_insn_after, emit_jump_insn_after): Call it.
4220         (emit_call_insn_after, emit_debug_insn_after): Likewise.
4221         (emit_pattern_before_setloc): New function.
4222         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
4223         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
4224         Likewise.
4225         (emit_pattern_before): New function.
4226         (emit_insn_before, emit_jump_insn_before): Call it.
4227         (emit_call_insn_before, emit_debug_insn_before): Likewise.
4229 2011-03-31  Richard Henderson  <rth@redhat.com>
4231         * dwarf2out.c (dw_separate_line_info_ref): Remove.
4232         (dw_separate_line_info_entry): Remove.
4233         (enum dw_line_info_opcode): New.
4234         (dw_line_info_entry): Use it.
4235         (dw_line_info_table, dw_line_info_table_p): New.
4236         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
4237         (line_info_table, line_info_label_num): Remove.
4238         (line_info_table_in_use): Remove.
4239         (separate_line_info_table): Remove.
4240         (separate_line_info_table_allocated): Remove.
4241         (separate_line_info_table_in_use): Remove.
4242         (LINE_INFO_TABLE_INCREMENT): Remove.
4243         (line_info_label_num): New.
4244         (cur_line_info_table): New.
4245         (text_section_line_info, cold_text_section_line_info): New.
4246         (separate_line_info): New.
4247         (SEPARATE_LINE_CODE_LABEL): Remove.
4248         (print_dwarf_line_table): Remove.
4249         (debug_dwarf): Don't dump it.
4250         (output_one_line_info_table): New.
4251         (output_line_info): Use it.
4252         (new_line_info_table): New.
4253         (set_cur_line_info_table): New.
4254         (dwarf2out_switch_text_section): Use it.
4255         (dwarf2out_begin_function): Likewise.
4256         (push_dw_line_info_entry): New.
4257         (dwarf2out_source_line): Rewrite for new line info tables.
4258         (dwarf2out_init): Remove dead initailizations.
4260 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
4262         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
4263         various flags.
4264         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
4265         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
4266         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
4267         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
4268         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
4269         * opt-functions.awk (flag_init, switch_bit_fields): New.
4270         (switch_flags): Don't handle flags moved to bit-fields.  Don't
4271         generate CL_MISSING_OK or CL_SAVE.
4272         * optc-gen.awk: Update to generate bit-field output as well as
4273         flags field.
4274         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
4275         bit-field instead of CL_REJECT_DRIVER flag.
4276         * opts-common.c (generate_canonical_option,
4277         decode_cmdline_option): Use bit-fields instead of CL_* flags.
4278         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
4279         instead of CL_REJECT_NEGATIVE flag.
4280         * toplev.c (print_switch_values): Use cl_report bit-field instead
4281         of CL_REPORT flag.
4283 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
4285         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
4286         a zero minimum index only if it is redundant.
4288 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
4290         PR rtl-optimization/48381
4291         * ira-color.c (assign_hard_reg): Use hard reg set intersection
4292         instead of ira_class_hard_reg_index for calculating conflicting
4293         hard registers.
4295 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
4297         * cprop.c: Clean up hash table building.
4298         (reg_avail_info): Remove.
4299         (oprs_available_p): Remove.
4300         (record_last_reg_set_info): Remove.
4301         (record_last_set_info): Remove.
4302         (reg_available_p): New function.
4303         (gcse_constant_p): Do not treat unfolded conditions as constants.
4304         (make_set_regs_unavailable): New function.
4305         (hash_scan_set): Simplify with new reg_available_p.
4306         (compute_hash_table_work): Traverse insns stream only once.
4307         Do not compute reg_avail_info. Traverse insns in reverse order.
4308         Record implicit sets after recording explicit sets from the block.
4310 2011-03-31  Michael Matz  <matz@suse.de>
4312         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
4314 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
4316         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
4317         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
4318         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4319         (h8300_mode_dependent_address_p): New function.
4320         (h8300_get_index): Make static.
4322 2011-03-31  Jeff Law  <law@redhat.com>
4324         * reload1.c (elimination_effects): Fix typo in recent change.
4326         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
4327         typo potentially leading to null pointer dereference.
4329         * caller-save.c (new_saved_hard_reg): Eliminate return value.
4330         (setup_save_areas): Corresponding changes to avoid useless
4331         assignments.
4333         * jump.c (reversed_comparison_code_parts): Avoid successive return
4334         statements when REVERSE_CONDITION is defined.
4336         * expr.c (expand_assignment): Avoid useless assignments.
4337         (expand_expr_real_1): Likewise.
4338         (expand_expr_real_2): Avoid useless statements.
4340         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
4342         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
4344         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
4345         statements.
4347         * stmt.c (expand_expr_stmt): Avoid useless assignment.
4349 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
4351         PR target/47109
4352         * doc/tm.texi.in (TARGET_VERSION): Remove.
4353         * doc/tm.texi: Regenerate.
4354         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
4355         * collect2.c (main): Don't use TARGET_VERSION.
4356         * mips-tdump.c (main): Don't use TARGET_VERSION.
4357         * mips-tfile.c (main): Don't use TARGET_VERSION.
4358         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
4359         * config/rs6000/vxworksae.h: Remove.
4360         * config/alpha/alpha.h (TARGET_VERSION): Remove.
4361         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
4362         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
4363         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
4364         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
4365         * config/arm/arm.h (TARGET_VERSION): Remove.
4366         * config/arm/coff.h (TARGET_VERSION): Remove.
4367         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
4368         * config/arm/elf.h (TARGET_VERSION): Remove.
4369         * config/arm/freebsd.h (TARGET_VERSION): Remove.
4370         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
4371         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
4372         * config/arm/pe.h (TARGET_VERSION): Remove.
4373         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
4374         * config/arm/semi.h (TARGET_VERSION): Remove.
4375         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
4376         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
4377         * config/arm/vxworks.h (TARGET_VERSION): Remove.
4378         * config/avr/avr.h (TARGET_VERSION): Remove.
4379         * config/bfin/bfin.h (TARGET_VERSION): Remove.
4380         * config/fr30/fr30.h (TARGET_VERSION): Remove.
4381         * config/frv/frv.h (TARGET_VERSION): Remove.
4382         * config/h8300/h8300.h (TARGET_VERSION): Remove.
4383         * config/i386/cygwin.h (TARGET_VERSION): Remove.
4384         * config/i386/darwin.h (TARGET_VERSION): Remove.
4385         * config/i386/darwin64.h (TARGET_VERSION): Remove.
4386         * config/i386/djgpp.h (TARGET_VERSION): Remove.
4387         * config/i386/freebsd.h (TARGET_VERSION): Remove.
4388         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
4389         * config/i386/gnu.h (TARGET_VERSION): Remove.
4390         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
4391         * config/i386/i386elf.h (TARGET_VERSION): Remove.
4392         * config/i386/linux.h (TARGET_VERSION): Remove.
4393         * config/i386/linux64.h (TARGET_VERSION): Remove.
4394         * config/i386/lynx.h (TARGET_VERSION): Remove.
4395         * config/i386/mingw32.h (TARGET_VERSION): Remove.
4396         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
4397         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
4398         * config/i386/netware.h (TARGET_VERSION): Remove.
4399         * config/i386/nto.h (TARGET_VERSION): Remove.
4400         * config/i386/openbsd.h (TARGET_VERSION): Remove.
4401         * config/i386/vxworks.h (TARGET_VERSION): Remove.
4402         * config/ia64/elf.h (TARGET_VERSION): Remove.
4403         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
4404         * config/ia64/hpux.h (TARGET_VERSION): Remove.
4405         * config/ia64/linux.h (TARGET_VERSION): Remove.
4406         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
4407         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
4408         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4409         * config/lm32/lm32.h (TARGET_VERSION): Remove.
4410         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
4411         * config/m32c/m32c.h (TARGET_VERSION): Remove.
4412         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
4413         * config/m32r/m32r.h (TARGET_VERSION): Remove.
4414         * config/m68k/linux.h (TARGET_VERSION): Remove.
4415         * config/m68k/m68k.h (TARGET_VERSION): Remove.
4416         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
4417         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
4418         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
4419         * config/mep/mep.h (TARGET_VERSION): Remove.
4420         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
4421         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4422         * config/mips/iris6.h (MACHINE_TYPE): Remove.
4423         * config/mips/linux.h (TARGET_VERSION): Remove.
4424         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
4425         * config/mips/vxworks.h (TARGET_VERSION): Remove.
4426         * config/mmix/mmix.h (TARGET_VERSION): Remove.
4427         * config/mn10300/linux.h (TARGET_VERSION): Remove.
4428         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
4429         * config/pa/pa.h (TARGET_VERSION): Remove.
4430         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
4431         * config/picochip/picochip.h (TARGET_VERSION): Remove.
4432         * config/rs6000/aix.h (TARGET_VERSION): Remove.
4433         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
4434         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
4435         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
4436         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
4437         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
4438         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
4439         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
4440         * config/rs6000/linux.h (TARGET_VERSION): Remove.
4441         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
4442         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
4443         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
4444         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
4445         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
4446         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
4447         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
4448         * config/s390/linux.h (TARGET_VERSION): Remove.
4449         * config/s390/s390.h (TARGET_VERSION): Remove.
4450         * config/s390/tpf.h (TARGET_VERSION): Remove.
4451         * config/score/score.h (TARGET_VERSION): Remove.
4452         * config/sh/linux.h (TARGET_VERSION): Remove.
4453         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
4454         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
4455         * config/sh/sh.h (TARGET_VERSION): Remove.
4456         * config/sh/sh64.h (TARGET_VERSION): Remove.
4457         * config/sh/superh.h (TARGET_VERSION): Remove.
4458         * config/sh/vxworks.h (TARGET_VERSION): Remove.
4459         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
4460         * config/sparc/linux.h (TARGET_VERSION): Remove.
4461         * config/sparc/linux64.h (TARGET_VERSION): Remove.
4462         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
4463         TARGET_NAME32, TARGET_NAME): Remove.
4464         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
4465         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
4466         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
4467         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
4468         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
4469         * config/spu/spu.h (TARGET_VERSION): Remove.
4470         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
4471         * config/v850/v850.h (TARGET_VERSION): Remove.
4472         * config/vax/linux.h (TARGET_VERSION): Remove.
4473         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
4474         * config/xtensa/elf.h (TARGET_VERSION): Remove.
4475         * config/xtensa/linux.h (TARGET_VERSION): Remove.
4477 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
4479         PR target/48142
4480         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
4481         frame-related from frame-unrelated adjustments to the stack pointer.
4483 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
4485         * common.opt (fdebug-types-section): Move earlier.
4486         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
4488 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
4490         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
4491         var.
4493 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
4495         * tree.h (CASE_CHAIN): Define.
4496         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
4497         (gimple_redirect_edge_and_branch): Likewise.
4499 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4501         PR middle-end/48367
4502         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
4503         calculation.
4505 2011-03-30  Jeff Law  <law@redhat.com>
4507         * PR bootstrap/48371
4508         * reload1.c (reload): Fix botch in last change.
4510         * reload.h (struct reload): Fix typo introduced in last change.
4512 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4514         * config/arm/arm.opt (mhard-float, msoft-float): Mark
4515         Undocumented.  Remove help text.
4516         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
4517         -mhard-float.
4519 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4521         * doc/options.texi (NegativeAlias): Document.
4522         (Alias): Mention NegativeAlias.
4523         * opt-functions.awk: Handle NegativeAlias.
4524         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
4525         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
4526         * opts.h (CL_NEGATIVE_ALIAS): Define.
4527         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
4528         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
4529         OPT_mspe_.
4530         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
4531         Alias entries.
4532         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4533         mno-spe and mno-isel instead of mspe=no and -misel=no.
4535 2011-03-29  Mark Wielaard  <mjw@redhat.com>
4537         * common.opt (fdebug-types-section): New flag.
4538         * doc/invoke.texi: Document new -fno-debug-types-section flag.
4539         * dwarf2out.c (use_debug_types): New define.
4540         (struct die_struct): Mark die_id with GTY desc use_debug_types.
4541         (print_die): Guard output of type unit signatures using
4542         use_debug_types.
4543         (build_abbrev_table): Replace assert of dwarf_version >= 4
4544         with assert on use_debug_types.
4545         (size_of_die): Likewise.
4546         (unmark_dies): Likewise.
4547         (value_format): Decide AT_ref_external form on use_debug_types.
4548         (output_die): Replace dwarf_version version check guard with
4549         use_debug_types where appropriate.
4550         (modified_type_die): Likewise.
4551         (gen_reference_type_die): Likewise.
4552         (dwarf2out_start_source_file): Likewise.
4553         (dwarf2out_end_source_file): Likewise.
4554         (prune_unused_types_walk_attribs): Likewise.
4555         (dwarf2out_finish): Likewise.
4557 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4559         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
4561 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4563         PR rtl-optimization/48332
4564         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
4565         mode of input operand N and modeN to its actual mode.
4567 2011-03-30  Jeff Law  <law@redhat.com>
4569         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
4570         define accessor macro.
4571         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
4572         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
4573         (reg_equiv_init): Likewise.
4574         (reg_equivs_size): New variable.
4575         (reg_equiv_init_size): Remove.
4576         (allocate_initial_values): Move prototype to here from....
4577         * integrate.h (allocate_initial_values): Remove prototype.
4578         * integrate.c: Include reload.h.
4579         (allocate_initial_values): Corresponding changes.
4580         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
4581         (fix_reg_equiv_init, no_equiv): Corresponding changes.
4582         (update_equiv_regs): Corresponding changes.
4583         (ira): Corresponding changes.
4584         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
4585         (push_secondary_reload): Corresponding changes.
4586         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
4587         (make_memloc, find_reloads_address): Corresponding changes.
4588         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
4589         (find_reloads_address_1): Corresponding changes.
4590         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
4591         (refers_to_regno_for_reload_p): Corresponding changes.
4592         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
4593         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
4594         * reload1.c: Include ggc.h.
4595         (grow_reg_equivs): New function.
4596         (replace_pseudos_in, reload): Corresponding changes.
4597         (calculate_needs_all_insns, alter_regs): Corresponding changes.
4598         (eliminate_regs_1, elimination_effects): Corresponding changes.
4599         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
4600         (delete_output_reload): Likewise.
4601         * caller-save.c (mark_referenced_regs): Corresponding changes.
4602         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
4603         * frv/predicates.md (frv_load_operand): Corresponding changes.
4604         * microblaze/microblaze.c (double_memory_operand): Corresponding
4605         changes.
4606         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
4607         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
4608         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
4609         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
4610         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
4611         changes.
4612         * pa/pa.c (emit_move_sequence): Corresponding changes.
4613         * vax/vax.c (nonindexed_address_p): Corresponding changes.
4615 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4617         PR target/47551
4618         * config/arm/arm.c (coproc_secondary_reload_class): Handle
4619         structure modes.  Don't check neon_vector_mem_operand for
4620         vector or structure modes.
4622 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4623             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4625         PR target/43590
4626         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
4627         operand 1 and reshuffle the operands to match.
4628         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
4630 2011-03-30  Christian Schüler  <cschueler@gmx.de>
4632         PR driver/48208
4633         * config/c.opt (F): Added 'Driver' to -F option.
4635         PR driver/48260
4636         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
4637           handler function.
4638         * config/darwin.opt: Added '-arch' option.
4640 2011-03-30  Nick Clifton  <nickc@redhat.com>
4642         * config/rx/rx.md: Add peepholes and patterns to combine
4643         extending loads and simple arithmetic instructions.
4644         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
4645         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4646         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
4647         modes to use pre-decrement and post-increment addressing.
4648         (rx_is_restricted_memory_address): Add range checking of REG+INT
4649         addresses.
4650         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
4651         (rx_memory_move_cost): Adjust cost of stores.
4652         (rx_adjust_insn_length): New function.
4654 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
4656         PR c/48305
4657         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4658         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4659         matching arg00/arg01 types.
4661 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4663         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4664         last_location to UNKNOWN_LOCATION.
4666 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4668         PR target/48349
4669         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4670         FLOAT_SSE_REGS.
4672 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4673             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4675         PR bootstrap/48337
4676         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4677         Init(PROCESSOR_V7).
4678         (sparc_cpu): Likewise.
4679         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4680         PROCESSOR_V7.
4682 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4684         PR target/48336
4685         PR middle-end/48342
4686         PR rtl-optimization/48345
4687         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4688         hard regs for given mode from profitable regs when doing secondary
4689         allocation.
4691 2011-03-29  Jeff Law  <law@redhat.com>
4693         PR bootstrap/48327
4694         * tree-ssa-threadupdate.c (struct redirection_data): Remove
4695         do_not_duplicate field.
4696         (lookup_redirection_data): Corresponding changes.
4697         (create_duplicates): Always create a template block.
4698         (redirect_edges): Remove code which reused the original block
4699         when it was going to become unreachable code.
4700         (thread_block): Don't set do_not_duplicate field.
4702 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
4704         * lto-opts.c (register_user_option_p, lto_register_user_option):
4705         Make type argument unsigned.
4706         * lto-streamer.h (lto_register_user_option): Make type argument
4707         unsigned.
4708         * opth-gen.awk: Make CL_* macros unsigned.
4709         * opts-common.c (find_opt): Make lang_mask argument unsigned.
4710         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4711         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4712         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4713         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4714         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4715         (find_opt): Make lang_mask argument unsigned.
4717 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4719         PR rtl-optimization/48331
4720         PR rtl-optimization/48334
4721         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4722         for any used algorithm.
4724 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4726         * ira-conflicts.c (build_object_conflicts): Add unused attribute
4727         to parent_max.
4729 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
4731         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4732         (alpha_option_override): Don't set alpha_sr_alias_set.
4733         (emit_frame_store_1): Use gen_frame_mem rather than calling
4734         set_mem_alias_set.
4735         (alpha_expand_epilogue): Ditto.
4737 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
4739         PR tree-optimization/48290
4740         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4741         vectorization, check that relevant phis in the basic block after
4742         the inner loop are really inner loop's exit phis.
4744 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
4746         PR debug/48190
4747         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4748         (cached_dw_loc_list_def): New structure.
4749         (cached_dw_loc_list): New typedef.
4750         (cached_dw_loc_list_table): New variable.
4751         (cached_dw_loc_list_table_hash): New function.
4752         (cached_dw_loc_list_table_eq): Likewise.
4753         (add_location_or_const_value_attribute): Take a bool cache_p.
4754         Cache the list when the parameter is true.
4755         (gen_formal_parameter_die): Update caller.
4756         (gen_variable_die): Likewise.
4757         (dwarf2out_finish): Likewise.
4758         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4759         while generating debug info for the decl.
4760         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4761         (dwarf2out_init): Initialize cached_dw_loc_list_table.
4762         (resolve_addr): Cache the result of resolving a chain of
4763         location lists.
4765 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4767         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4768         conflict object hard regset nodes have intersecting hard reg sets.
4770         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4771         after regstat_init_n_sets_and_refs.
4773         * ira.c: Add more comments at the top.
4774         (setup_stack_reg_pressure_class, setup_pressure_classes):
4775         Add comments how we compute the register pressure classes.
4776         (setup_allocno_and_important_classes): Add more comments.
4777         (setup_class_translate_array, reorder_important_classes)
4778         (setup_reg_class_relations): Add comments.
4780         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
4781         start of the file.
4783         * ira-color.c: Add 2011 to the Copyright line.
4784         (assign_hard_reg):  Add more comments.
4785         (improve_allocation): Ditto.
4787         * ira-costs.c: Add 2011 to the Copyright line.
4788         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4789         comments.
4790         (setup_regno_cost_classes_by_mode): Ditto.
4792         Initial patches from ira-improv branch:
4794         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4796         * ira-build.c (ira_create_object): Remove initialization of
4797         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
4798         (ira_create_allocno): Remove initialization of
4799         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4800         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4801         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4802         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4803         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4804         Initialize ALLOCNO_ADD_DATA.
4805         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4806         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4807         ALLOCNO_REG.
4808         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
4809         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4811         * ira.c (ira_reallocate): Remove.
4812         (setup_pressure_classes): Call
4813         ira_init_register_move_cost_if_necessary.  Use
4814         ira_register_move_cost instead of ira_get_register_move_cost.
4815         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4816         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4818         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4819         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4820         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4821         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4822         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4823         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4824         Fix formatting.
4825         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4826         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4827         (struct allocno_color_data): New.
4828         (allocno_color_data_t): New typedef.
4829         (allocno_color_data): New definition.
4830         (ALLOCNO_COLOR_DATA): New macro.
4831         (struct object_color_data): New.
4832         (object_color_data_t): New typedef.
4833         (object_color_data): New definition.
4834         (OBJECT_COLOR_DATA): New macro.
4835         (update_copy_costs, calculate_allocno_spill_cost): Call
4836         ira_init_register_move_cost_if_necessary.  Use
4837         ira_register_move_cost instead of ira_get_register_move_cost.
4838         (move_spill_restore, update_curr_costs): Ditto.
4839         (allocno_spill_priority): Make it inline.
4840         (color_pass): Allocate and free allocno_color_dat and object_color_data.
4841         (struct coalesce_data, coalesce_data_t): New.
4842         (allocno_coalesce_data): New definition.
4843         (ALLOCNO_COALESCE_DATA): New macro.
4844         (merge_allocnos, coalesced_allocno_conflict_p): Use
4845         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4846         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4847         (coalesce_allocnos): Ditto.
4848         (setup_coalesced_allocno_costs_and_nums): Ditto.
4849         (collect_spilled_coalesced_allocnos): Ditto.
4850         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4851         (setup_slot_coalesced_allocno_live_ranges): Ditto.
4852         (coalesce_spill_slots): Ditto.
4853         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
4854         free allocno_coalesce_data.
4856         * ira-conflicts.c: Fix formatting.
4857         (process_regs_for_copy): Call
4858         ira_init_register_move_cost_if_necessary.  Use
4859         ira_register_move_cost instead of ira_get_register_move_cost.
4860         (build_object_conflicts): Optimize.
4862         * ira-costs.c (record_reg_classes): Optimize.  Call
4863         ira_init_register_move_cost_if_necessary.  Use
4864         ira_register_move_cost, ira_may_move_in_cost, and
4865         ira_may_move_out_cost instead of ira_get_register_move_cost and
4866         ira_get_may_move_cost.
4867         (record_address_regs): Ditto.
4868         (scan_one_insn): Optimize.
4869         (find_costs_and_classes): Optimize.
4870         (process_bb_node_for_hard_reg_moves): Call
4871         ira_init_register_move_cost_if_necessary.  Use
4872         ira_register_move_cost instead of ira_get_register_move_cost.
4874         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4875         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4876         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4877         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4878         definitions.
4879         (ira_initiate_emit_data, ira_finish_emit_data)
4880         (create_new_allocno): New functions.
4881         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4882         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4883         Use ira_register_move_cost instead of ira_get_register_move_cost.
4885         * ira-int.h: Fix some comments.
4886         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4887         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4888         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4889         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
4890         add_data.
4891         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
4892         bitfield after mode.  Make hard_regno a short int.  Make
4893         hard_regno short.  Remove first_coalesced_allocno and
4894         next_coalesced_allocno.  Move mem_optimized_dest_p,
4895         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4896         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
4897         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4898         temp, colorable_p.  Add new member add_data.
4899         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4900         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4901         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4902         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4903         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4904         (ALLOCNO_ADD_DATA): New macro.
4905         (ira_emit_data_t): New typedef.
4906         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
4907         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4908         from struct ira_allocno.
4909         (ALLOCNO_EMIT_DATA): New macro.
4910         (ira_allocno_emit_data, allocno_emit_reg): New.
4911         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4912         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4913         (OBJECT_ADD_DATA): New macro.
4914         (ira_reallocate): Remove.
4915         (ira_initiate_emit_data, ira_finish_emit_data): New.
4916         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4917         (ira_init_register_move_cost_if_necessary): New.
4918         (ira_object_conflict_iter_next): Merge into
4919         ira_object_conflict_iter_cond.
4920         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4922         * ira-live.c (process_single_reg_class_operands): Call
4923         ira_init_register_move_cost_if_necessary.  Use
4924         ira_register_move_cost instead of ira_get_register_move_cost.
4926         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4928         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4930         * ira-costs.c: Fix formatting.
4931         (cost_classes, cost_classes_num): Remove.
4932         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4933         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4934         (cost_classes_del, cost_classes_htab): New.
4935         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4936         (initiate_regno_cost_classes, setup_cost_classes): New.
4937         (setup_regno_cost_classes_by_aclass): New.
4938         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4939         (record_reg_classes): Use regno_cost_classes instead of
4940         cost_classes.  Move checking opposite operand up.
4941         (record_address_regs): Use regno_cost_classes
4942         instead of cost_classes.
4943         (scan_one_insn): Ditto.  Use always general register.
4944         (print_allocno_costs): Use regno_cost_classes instead of
4945         cost_classes.
4946         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
4947         (find_costs_and_classes): Set up cost classes for each registers.
4948         Use also their mode for this.  Use regno_cost_classes instead of
4949         cost_classes.
4950         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4951         cost_classes.
4952         (free_ira_costs, ira_init_costs): Don't use cost_classes.
4953         (ira_costs, ira_set_pseudo_classes): Call
4954         initiate_regno_cost_classes and finish_regno_cost_classes.
4956         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
4958         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4960         * target.def (ira_cover_classes): Remove.
4962         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4964         * doc/tm.texi.in: Ditto.
4966         * ira-conflicts.c: Remove mentioning cover classes from the file.
4967         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
4968         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
4970         * targhooks.c (default_ira_cover_classes): Remove.
4972         * targhooks.h (default_ira_cover_classes): Ditto.
4974         * haifa-sched.c: Remove mentioning cover classes from the file.
4975         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4976         ira_pressure_classes and ira_pressure_classes_num instead of
4977         ira_reg_class_cover_size and ira_reg_class_cover.  Use
4978         sched_regno_pressure_class instead of sched_regno_cover_class.
4979         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4980         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4982         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
4983         classes from the file.
4984         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4985         (struct object_hard_regs, struct object_hard_regs_node): New.
4986         (struct ira_object): New members profitable_hard_regs,
4987         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4988         (struct ira_allocno): Rename cover_class to aclass.  Rename
4989         cover_class_cost and updated_cover_class_cost to class_cost and
4990         updated_class_cost.  Remove splay_removed_p and
4991         left_conflict_size.  Add new members colorable_p.
4992         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4993         (ALLOCNO_COLORABLE_P): New macro.
4994         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4995         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4996         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4997         (OBJECT_...): Rename parameter C to O.
4998         (OBJECT_PROFITABLE_HARD_REGS): New macro.
4999         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
5000         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
5001         (struct target_ira_int): New members x_ira_max_memory_move_cost,
5002         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
5003         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
5004         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
5005         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
5006         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
5007         x_ira_reg_class_subunion.
5008         (ira_max_memory_move_cost, ira_max_register_move_cost)
5009         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
5010         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
5011         (ira_important_class_nums, ira_reg_class_superunion): New macros.
5012         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
5013         (ira_reg_class_union): Rename to ira_reg_class_subunion.
5014         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
5015         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
5016         (ira_tune_allocno_costs_and_cover_classes): Rename to
5017         ira_tune_allocno_costs.
5018         (ira_debug_hard_regs_forest): New.
5019         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
5020         (ira_object_conflict_iter_next): Fix comments.
5021         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
5022         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
5023         cover_class to aclass.
5024         (ira_allocate_and_accumulate_costs): Ditto.
5025         (ira_allocate_and_set_or_copy_costs): Ditto.
5027         * opts.c (decode_options): Remove ira_cover_class check.
5029         * ira-color.c: Remove mentioning cover classes from the file.  Use
5030         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
5031         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
5032         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
5033         (splay-tree.h): Remove include.
5034         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
5035         before copy_freq_compare_func.
5036         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
5037         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
5038         New definitions.
5039         (hard_regs_roots, hard_regs_node_vec): Ditto.
5040         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
5041         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
5042         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
5043         (create_new_object_hard_regs_node): Ditto.
5044         (add_new_object_hard_regs_node_to_forest): Ditto.
5045         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
5046         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
5047         Ditto.
5048         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
5049         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
5050         (remove_unused_object_hard_regs_nodes): Ditto.
5051         (enumerate_object_hard_regs_nodes): Ditto.
5052         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
5053         (object_hard_regs_subnode_t): Ditto.
5054         (struct object_hard_regs_subnode): Ditto.
5055         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
5056         (setup_object_hard_regs_subnode_index): Ditto.
5057         (get_object_hard_regs_subnodes_num): Ditto.
5058         (form_object_hard_regs_nodes_forest): Ditto.
5059         (finish_object_hard_regs_nodes_tree): Ditto.
5060         (finish_object_hard_regs_nodes_forest): Ditto.
5061         (allocnos_have_intersected_live_ranges_p): Rename to
5062         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
5063         (pseudos_have_intersected_live_ranges_p): Rename to
5064         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
5065         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
5066         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
5067         (update_copy_costs): Remove assert.  Skip cost update if the hard
5068         reg does not belong the class.
5069         (assign_hard_reg): Process only profitable hard regs.
5070         (uncolorable_allocnos_num): Make it scalar.
5071         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
5072         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
5073         and ira_reg_class_max_nregs.
5074         (bucket_allocno_compare_func): Check frequency first.
5075         (sort_bucket): Add compare function as a parameter.
5076         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
5077         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
5078         (push_allocno_to_stack): Rewrite for checking new allocno
5079         colorability.
5080         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
5081         (push_only_colorable): Pass new parameter to sort_bucket.
5082         (push_allocno_to_spill): Remove.
5083         (allocno_spill_priority_compare): Make it inline and rewrite.
5084         (splay_tree_allocate, splay_tree_free): Remove.
5085         (allocno_spill_sort_compare): New function.
5086         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
5087         build and use splay tree.  Choose first allocno in uncolorable
5088         allocno bucket to spill.  Remove setting spill cost.
5089         (all_conflicting_hard_regs): Remove.
5090         (setup_allocno_available_regs_num): Check only profitable hard
5091         regs.  Print info about hard regs nodes.
5092         (setup_allocno_left_conflicts_size): Remove.
5093         (put_allocno_into_bucket): Don't call
5094         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
5095         (improve_allocation): New.
5096         (color_allocnos): Call setup_profitable_hard_regs,
5097         form_object_hard_regs_nodes_forest, improve_allocation,
5098         finish_object_hard_regs_nodes_forest.  Setup spill cost.
5099         (print_loop_title): Use pressure classes.
5100         (color_allocnso): Ditto.
5101         (do_coloring): Remove allocation and freeing splay_tree_node_pool
5102         and allocnos_for_spilling.
5103         (ira_sort_regnos_for_alter_reg): Don't setup members
5104         {first,next}_coalesced_allocno.
5105         (color): Remove allocating and freeing removed_splay_allocno_vec.
5106         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
5107         prohibited_class_mode_regs.
5109         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
5110         formatting.
5111         (update_allocno_pressure_excess_length): Use pressure classes.
5112         (inc_register_pressure, dec_register_pressure): Check for pressure
5113         class.
5114         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
5115         pressure class.  Use ira_reg_class_nregs instead of
5116         ira_reg_class_max_nregs.
5117         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
5118         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
5119         (single_reg_class): Use ira_reg_class_nregs instead of
5120         ira_reg_class_max_nregs.
5121         (process_bb_node_lives): Use pressure classes.
5123         * ira-emit.c: Remove mentioning cover classes from the file.  Use
5124         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
5125         (change_loop): Use pressure classes.
5126         (modify_move_list): Call ira_set_allocno_class instead of
5127         ira_set_allocno_cover_class.
5129         * ira-build.c: Remove mentioning cover classes from the file.  Use
5130         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
5131         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
5132         ALLOCNO_UPDATED_CLASS_COST instead of
5133         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
5134         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
5135         (ira_create_allocno): Remove initialization of
5136         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
5137         ALLOCNO_COLORABLE_P.
5138         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
5139         Update conflict regs for the objects.
5140         (create_cap_allocno): Remove assert.  Don't propagate
5141         ALLOCNO_AVAILABLE_REGS_NUM.
5142         (ira_free_allocno_costs): New function.
5143         (finish_allocno): Change a part of code into call of
5144         ira_free_allocno_costs.
5145         (low_pressure_loop_node_p): Use pressure classes.
5146         (object_range_compare_func): Don't compare classes.
5147         (setup_min_max_conflict_allocno_ids): Ditto.
5149         * loop-invariant.c: Remove mentioning cover classes from the file.
5150         Use ira_pressure_classes and ira_pressure_classes_num instead of
5151         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
5152         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
5153         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5154         Use reg_allocno_class instead of reg_cover_class.
5155         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
5156         STACK_REG_COVER_CLASS.
5157         (get_regno_cover_class): Rename to get_regno_pressure_class.
5158         (move_loop_invariants): Initialize and finalize regstat.
5160         * ira.c: Remove mentioning cover classes from the file.  Add
5161         comments about coloring without cover classes.  Use ALLOCNO_CLASS
5162         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
5163         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
5164         setup_class_subset_and_memory_move_costs.
5165         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
5166         (setup_cover_and_important_classes): Rename to
5167         setup_allocno_and_important_classes.
5168         (setup_class_translate_array): New.
5169         (setup_class_translate): Call it for allocno and pressure classes.
5170         (cover_class_order): Rename to allocno_class_order.
5171         (comp_reg_classes_func): Use ira_allocno_class_translate instead
5172         of ira_class_translate.
5173         (reorder_important_classes): Set up ira_important_class_nums.
5174         (setup_reg_class_relations): Set up ira_reg_class_superunion.
5175         (print_class_cover): Rename to print_classes.  Add parameter.
5176         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
5177         Print pressure classes too.
5178         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
5179         setup_reg_subclasses.
5180         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
5181         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
5182         (setup_prohibited_class_mode_regs): Use
5183         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
5184         (clarify_prohibited_class_mode_regs): New function.
5185         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
5186         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
5187         (ira_init_once): Initialize them.
5188         (free_register_move_costs): Process them.
5189         (ira_init): Move calls of find_reg_classes and
5190         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
5191         Call clarify_prohibited_class_mode_regs.
5192         (ira_no_alloc_reg): Remove.
5193         (too_high_register_pressure_p): Use pressure classes.
5195         * sched-deps.c: Remove mentioning cover classes from the file.
5196         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
5197         ira_pressure_classes and ira_pressure_classes_num instead of
5198         ira_reg_class_cover_size and ira_reg_class_cover.
5199         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
5200         sched_regno_pressure_class instead of sched_regno_cover_class.
5201         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
5202         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5204         * ira.h: Add 2010 to Copyright.
5205         (ira_no_alloc_reg): Remove external.
5206         (struct target_ira): Rename x_ira_hard_regno_cover_class,
5207         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
5208         x_ira_class_translate to x_ira_hard_regno_allocno_class,
5209         x_ira_allocno_classes_num, x_ira_allocno_classes, and
5210         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
5211         x_ira_pressure_classes, x_ira_pressure_class_translate, and
5212         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
5213         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
5214         x_ira_no_alloc_regs.
5215         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
5216         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
5217         ira_allocno_classes_num and ira_allocno_classes.
5218         (ira_class_translate): Rename to ira_allocno_class_translate.
5219         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
5220         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
5221         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
5222         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
5223         (ira_no_alloc_regs): New.
5225         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
5226         classes from the file.  Use ALLOCNO_CLASS instead of
5227         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
5228         ALLOCNO_COVER_CLASS_COST.
5229         (regno_cover_class): Rename to regno_aclass.
5230         (record_reg_classes): Use ira_reg_class_subunion instead of
5231         ira_reg_class_union.
5232         (record_address_regs): Check overflow.
5233         (scan_one_insn): Ditto.
5234         (print_allocno_costs): Print total mem cost fore regional allocation.
5235         (print_pseudo_costs): Use REG_N_REFS.
5236         (find_costs_and_classes): Use classes intersected with them on the
5237         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
5238         ira_reg_class_union.  Use ira_allocno_class_translate and
5239         regno_aclass instead of ira_class_translate and regno_cover_class.
5240         Modify code for finding regno_aclass.  Setup preferred classes for
5241         the next pass.
5242         (setup_allocno_cover_class_and_costs): Rename to
5243         setup_allocno_class_and_costs.  Use regno_aclass instead of
5244         regno_cover_class.  Use ira_set_allocno_class instead of
5245         ira_set_allocno_cover_class.
5246         (init_costs, finish_costs): Use regno_aclass instead of
5247         regno_cover_class.
5248         (ira_costs): Use setup_allocno_class_and_costs instead of
5249         setup_allocno_cover_class_and_costs.
5250         (ira_tune_allocno_costs_and_cover_classes): Rename to
5251         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
5252         by processing objects.  Use ira_reg_class_max_nregs instead of
5253         ira_reg_class_nregs.
5255         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
5257         * sched-int.h: Remove mentioning cover classes from the file.
5258         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
5260         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
5261         classes from the file.
5262         (struct reg_pref): Rename coverclass into allocnoclass.
5263         (reg_cover_class): Rename to reg_allocno_class.
5265         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
5267         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
5269         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
5271         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
5273         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
5275         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
5277         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
5279         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
5281         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
5283         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
5285         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
5286         (i386_ira_cover_classes): Ditto.
5288         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
5290         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
5292         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
5294         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
5296         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
5298         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
5300         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
5301         (mips_ira_cover_classes): Ditto.
5303         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
5305         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
5307         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
5309         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
5311         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
5313         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
5314         (IRA_COVER_CLASSES_VSX): Ditto.
5316         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
5317         (rs6000_ira_cover_classes): Ditto.
5319         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
5321         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
5323         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
5325         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
5327         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
5329         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
5331         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
5333         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
5335         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
5337         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
5339 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
5341         PR debug/48253
5342         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
5343         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
5344         dw_fde_unlikely_section_end_label, cold_in_std_section,
5345         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
5346         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
5347         fields.
5348         (output_fde): Use dw_fde_second_{begin,end} if second is
5349         true, otherwise dw_fde_{begin,end}.
5350         (output_call_frame_info): Test dw_fde_second_begin != NULL
5351         instead of dw_fde_switched_sections.
5352         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
5353         fields, initialize new fields.  Initialize in_std_section
5354         unconditionally from the first partition.
5355         (dwarf2out_end_epilogue): Don't override dw_fde_end when
5356         dw_fde_second_begin is non-NULL.
5357         (dwarf2out_switch_text_section): Stop initializing removed
5358         dw_fde_struct fields, initialize new fields, initialize
5359         also dw_fde_end here.  Set dw_fde_switch_cfi even when
5360         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
5361         (struct var_loc_list_def): Add last_before_switch field.
5362         (arange_table, arange_table_allocated, arange_table_in_use,
5363         ARANGE_TABLE_INCREMENT, add_arange): Removed.
5364         (size_of_aranges): Count !in_std_section and !second_in_std_section
5365         hunks in fdes, instead of looking at arange_table_in_use.
5366         (output_aranges): Add aranges_length argument, don't call
5367         size_of_aranges here.  Instead of using aranges_table*
5368         emit ranges for fdes when !in_std_section resp.
5369         !second_in_std_section.
5370         (dw_loc_list): Break ranges crossing section switch.
5371         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
5372         use dw_fde_second_end instead of dw_fde_end as end of last range.
5373         (gen_subprogram_die): Don't call add_arange.  Use
5374         dw_fde_{begin,end} for first partition and if switched
5375         section dw_fde_second_{begin,end} for the second.
5376         (var_location_switch_text_section_1,
5377         var_location_switch_text_section): New functions.
5378         (dwarf2out_begin_function): Initialize cold_text_section even
5379         when function_section () isn't text_section.
5380         (prune_unused_types): Don't walk arange_table.
5381         (dwarf2out_finish): Don't needlessly test
5382         flag_reorder_blocks_and_partition when testing cold_text_section_used.
5383         If info_section_emitted, call size_of_aranges and if it indicates
5384         non-empty .debug_aranges, call output_aranges with the computed
5385         size.  Stop using removed dw_fde_struct fields, use
5386         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
5387         for second.
5389         PR debug/48203
5390         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
5391         create ENTRY_VALUE if incoming or address of incoming's MEM
5392         is a hard REG.
5393         * dwarf2out.c (mem_loc_descriptor): Don't emit
5394         DW_OP_GNU_entry_value of DW_OP_fbreg.
5395         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
5396         on ENTRY_VALUE is able to find the canonical parameter VALUE.
5397         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
5398         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
5399         ENTRY_VALUE_EXPs.
5400         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
5401         is a REG_P or MEM_P with REG_P address, compute hash directly
5402         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
5403         (preserve_only_constants): Don't clear VALUES forwaring
5404         ENTRY_VALUE to some other VALUE.
5406 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
5408         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
5409         instead of GEN_INT.
5411 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
5413         * cfgexpand.c (expand_gimple_cond): Always set the source location and
5414         block before expanding the statement.
5415         (expand_gimple_stmt_1): Likewise.  Set them here...
5416         (expand_gimple_stmt): ...and not here.  Tidy.
5417         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
5418         unknown.
5420 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
5422         * Makefile.in: New rule for cprop.o.
5423         * gcse.c: Move constant/copy propagation to cprop.c.
5424         (compute_local_properties): Only handle expression tables.
5425         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
5426         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
5427         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
5428         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
5429         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
5430         compute_cprop_data, find_used_regs, try_replace_reg,
5431         find_avail_set, cprop_jump, constprop_register, cprop_insn,
5432         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
5433         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
5434         find_bypass_set, reg_killed_on_edge, bypass_block,
5435         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
5436         execute_rtl_cprop, pass_rtl_cprop): Move to...
5437         * cprop.c: ...here.  New file, constant/copy propagation for RTL
5438         moved from gcse.c to here with minor cleanups in duplicated code.
5440 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
5442         * config/i386/i386.c (flag_opts): Fix a typo in
5443         -mavx256-split-unaligned-store.
5445 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
5447         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5448         LIBCALL_VALUE): Remove macros.
5449         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5450         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5451         (h8300_function_value, h8300_libcall_value,
5452         h8300_function_value_regno_p): New functions.
5454 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
5456         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
5458 2011-03-28  Jeff Law  <law@redhat.com>
5460         * tree-ssa-threadupdate.c (redirect_edges): Call
5461         create_edge_and_update_destination_phis as needed.
5462         (create_edge_and_update_destination_phis): Accept new BB argument.
5463         All callers updated.
5464         (thread_block): Do not update the profile when threading around
5465         intermediate blocks.
5466         (thread_single_edge): Likewise.
5467         (determine_bb_domination_status): If BB is not a successor of the
5468         loop header, return NONDOMINATING.
5469         (register_jump_thread): Note when we register a jump thread around
5470         an intermediate block.
5471         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
5472         (thread_across_edge): Use it.
5474 2011-03-28  Tristan Gingold  <gingold@adacore.com>
5476         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
5477         when for_return is 2.
5479 2011-03-28  Jeff Law  <law@redhat.com>
5481         * var-tracking.c (canonicalize_values_mark): Delete unused
5482         lhs assignment.
5483         (canonicalize_values_star, set_variable_part): Likewise.
5484         (clobber_variable_part, delete_variable_part): Likewise.
5486 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
5488         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
5490 2011-03-28  Martin Jambor  <mjambor@suse.cz>
5492         * tree-inline.c (expand_call_inline): Do not check that destination
5493         node is analyzed.
5494         (optimize_inline_calls): Assert that destination node is analyzed.
5495         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
5496         not call tree_lowering_passes.
5497         * cgraph.h (cgraph_analyze_function): Declare.
5498         * cgraphunit.c (cgraph_analyze_function): Make public.
5500 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
5502         * config/sparc/sparc-opts.h: New.
5503         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
5504         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
5505         (sparc_option_override): Store processor_type enumeration rather
5506         than string in cpu_default.  Remove name and enumeration from
5507         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
5508         without using sparc_select.  Use target_flags_explicit instead of
5509         fpu_option_set.
5510         * config/sparc/sparc.h (enum processor_type): Move to
5511         sparc-opts.h.
5512         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
5513         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
5514         HeaderInclude entry.
5515         (mcpu=, mtune=): Use Var and Enum.
5516         (sparc_processor_type): New Enum and EnumValue entries.
5518 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5519             Iain Sandoe  <iains@gcc.gnu.org>
5521         PR target/48245
5522         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
5524 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
5526         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
5527         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
5528         Insert new statements at it in lieu of STMT.
5529         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
5530         * tree-vect-stmts.c (vectorizable_store): Likewise.
5531         (vectorizable_load): Likewise.
5533 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
5535         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
5536         (divtf3): Ditto.
5537         (multf3): Ditto.
5538         (subtf3): Ditto.
5540 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5542         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
5543         unaligned 256bit load/store.
5544         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
5545         (*avx_movdqu<avxmodesuffix>): Likewise.
5547 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5549         PR target/48288
5550         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
5551         * config/pa/pa.md (iordi3): Use new predicate in expander.
5552         (iorsi3): Likewise.
5554 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
5556         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
5557         FUNCTION_VALUE_REGNO_P): Remove macros.
5558         * config/mips/mips-protos.h (mips_function_value): Remove.
5559         * config/mips/mips.c (mips_function_value): Rename to...
5560         (mips_function_value_1): ... this. Make static.  Handle receiving
5561         the function type in 'fn_decl_or_type' argument.
5562         (mips_function_value, mips_libcall_value,
5563         mips_function_value_regno_p): New function.
5564         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5565         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5567 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5569         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
5570         and -mavx256-split-unaligned-store.
5571         (ix86_option_override_internal): Split 32-byte AVX unaligned
5572         load/store by default.
5573         (ix86_avx256_split_vector_move_misalign): New.
5574         (ix86_expand_vector_move_misalign): Use it.
5576         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
5577         -mavx256-split-unaligned-store.
5579         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
5580         256bit load/store.  Generate unaligned store on misaligned memory
5581         operand.
5582         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
5583         256bit load/store.
5584         (*avx_movdqu<avxmodesuffix>): Likewise.
5586         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
5587         -mavx256-split-unaligned-store.
5589 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
5591         PR target/38598
5592         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
5593         Update commentary.
5595 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
5597         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
5598         opno arguments with an expand_operand.  Use create_input_operand.
5599         (mips_prepare_builtin_target): Delete.
5600         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
5601         functions.
5602         (mips_expand_builtin_direct): Use create_output_operand and
5603         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
5604         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
5605         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
5607 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
5609         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
5610         function.
5611         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5613 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
5615         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
5616         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
5617         basic blocks and call commit_edge_insertions directly.
5618         (fixup_abnormal_edges): Move from here to...
5619         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
5620         on the edges and return whether some have actually been inserted.
5621         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
5622         compensation code.
5624 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
5626         PR rtl-optimization/48144
5627         * sel-sched-ir.c (merge_history_vect): Factor out from ...
5628         (merge_expr_data): ... here.
5629         (av_set_intersect): Rename to av_set_code_motion_filter.
5630         Update all callers.  Call merge_history_vect when an expression
5631         is found in both sets.
5632         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
5634 2011-03-26  Alan Modra  <amodra@gmail.com>
5636         * config/rs6000/predicates.md (word_offset_memref_op): Handle
5637         cmodel medium addresses.
5638         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
5639         64-bit gpr loads and stores.
5640         (rs6000_secondary_reload_ppc64): New function.
5641         * config/rs6000/rs6000-protos.h: Declare it.
5642         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
5644 2011-03-26  Alan Modra  <amodra@gmail.com>
5646         PR target/47487
5647         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5648         GNU Go in traceback table.
5650 2011-03-25  Richard Henderson  <rth@redhat.com>
5652         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5653         if there are exactly 6 operands.
5654         (set_storage_via_setmem): Similarly.
5656 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5658         * collect2.c (write_c_file_stat): Handle backslash
5659         as right-hand directory separator.
5660         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5661         checking just for slash.
5662         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5663         instead of checking for trailing slash.
5664         * gcc.c (record_temp_file): Use filename_cmp instead
5665         of strcmp.
5666         (do_spec_1): Likewise.
5667         (replace_outfile_spec_function): Likewise.
5668         (is_directory): Use filename_ncmp instead of strncmp.
5669         (print_multilib_info): Likewise.
5670         * gcov.c (find_source): Use filename_cmp instead
5671         instead of strcmp.
5672         (make_gcov_file_name): Fix order of slash/backslash
5673         checks.
5674         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5675         (add_standard_paths): Likewise.
5676         * mips-tfile.c (saber_stop): Handle backslash.
5677         * prefix.c (update_path): Use filename_ncmp instead of
5678         strncmp.
5679         * profile.c (output_location): Use filename_cmp instead
5680         of strcmp.
5681         * read-md.c (handle_toplevel_file): Handle backslash.
5682         * tlink.c (frob_extension):  Likewise.
5683         * tree-cfg.c (same_line_p): Use filename_cmp instead of
5684         strcmp.
5685         * tree-dump.c (dequeue_and_dump): Handle backslash.
5686         * tree.c (get_file_function_name): Likewise.
5687         * gengtype.c (read_input_list): Likewise.
5688         (get_file_realbasename): Likewise.
5689         (get_output_file_with_visibility): Use filename_cmp
5690         instead of strcmp.
5692 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
5694         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5695         case to VFPv1.
5697 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5699         * fold-const.c (expr_location_or): New function.
5700         (fold_truth_not_expr): Call it.
5702 2011-03-25  Jeff Law  <law@redhat.com>
5704         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5705         va_end.
5706         * c-family/c-common.c (def_fn_type): Likewise.
5707         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5708         * emit-rtl.c (gen_rtvec): Likewise.
5709         * lto/lto-lang.c (def_fn_type): Likewise.
5711 2011-03-25  Richard Guenther  <rguenther@suse.de>
5713         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5714         also generate copies.
5715         (fini_copy_prop): Handle constant values properly.
5717 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
5719         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5720         mode size instead of bitsize with DWARF2_ADDR_SIZE.
5721         (hash_loc_operands, compare_loc_operands): Handle
5722         DW_OP_GNU_entry_value.
5724 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5726         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5727         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5728         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5729         comment and use macro TARGET_64BIT_MS_ABI instead.
5730         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5731         and change default behavior for 32-bit MS_ABI.
5732         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5733         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5734         32-bit, too.
5735         (ix86_cfun_abi): Likewise.
5736         (ix86_maybe_switch_abi): Adjust comment.
5737         (init_cumulative_args): Check for bit-ness in MS_ABI case.
5738         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5739         instead of checking for SYSV_ABI.
5740         (ix86_nsaved_sseregs): Likewise.
5741         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5742         to 16 bytes.
5743         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5744         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5745         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5746         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5747         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5749 2011-03-25  Richard Guenther  <rguenther@suse.de>
5751         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5752         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5753         (verify_gimple): Remove.
5754         * tree-cfg.c (verify_gimple_call): Merge verification
5755         from verify_stmts.
5756         (verify_gimple_phi): Merge verification from verify_stmts.
5757         (verify_gimple_label): New function.
5758         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5759         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5760         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5761         (verify_stmts): Rename to verify_gimple_in_cfg.
5762         (verify_gimple_in_cfg): New function.
5763         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5764         * tree-ssa.c (verify_ssa): Likewise.
5765         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5767 2011-03-25  Richard Guenther  <rguenther@suse.de>
5769         * passes.c (init_optimization_passes): Add FRE pass after
5770         early SRA.
5772 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
5773             Andrew Stubbs  <ams@codesourcery.com>
5775         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5776         for Cortex-A8.
5777         (arm_movdi_vfp_cortexa8): New pattern.
5778         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5779         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5780         instructions when tuning for Cortex-A8.  Set attribute "arch".
5781         * config/arm/arm.md: Move include arm-tune.md up a bit.
5782         (define_attr "arch"): Add "onlya8" and "nota8" values.
5783         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5785 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5787         PR bootstrap/48282
5788         Revert:
5789         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5791         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5792         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5793         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5794         * passes.c (init_optimization_passes): Move
5795         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5797 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5799         * c-typeck.c (comptypes_internal): Replace target
5800         hook call of comp_type_attributes by version in tree.c file.
5801         * gimple.c (gimple_types_compatible_p_1): Likewise.
5802         * tree-ssa.c (useless_type_conversion_p): Likewise.
5803         * tree.c (build_type_attribute_qual_variant): Likewise.
5804         (attribute_value_equal): New static helper function.
5805         (comp_type_attributes): New function.
5806         (merge_attributes): Use attribute_value_equal for comparison.
5807         (attribute_list_contained): Likewise.
5808         * tree.h (comp_type_attributes): New prototype.
5810 2011-03-25  Richard Guenther  <rguenther@suse.de>
5812         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5813         of complex types at -O0.
5814         (verify_gimple_assign_binary): Likewise.
5815         (verify_gimple_assign_ternary): Likewise.
5817 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5819         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5820         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5822 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5824         PR debug/48041
5825         * dwarf2out.c (output_abbrev_section): Only write table when
5826         abbrev_die_table_in_use > 1.
5828 2011-02-24  Richard Henderson  <rth@redhat.com>
5830         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5831         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5832         (alpha_expand_unaligned_load_words): Use extql.
5833         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5834         (emit_insxl): Handle all modes for consistency.
5836 2011-02-24  Richard Henderson  <rth@redhat.com>
5838         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5839         (alpha_expand_unaligned_load): Likewise.
5840         (alpha_expand_unaligned_store): Likewise.
5841         (alpha_expand_unaligned_load_words): Likewise.
5842         (alpha_expand_unaligned_store_words): Likewise.
5843         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5844         (alpha_split_lock_test_and_set_12): Likewise.
5845         (print_operand, alpha_fold_builtin_extxx): Likewise.
5846         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5847         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5848         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5849         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5850         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5851         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5852         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5853         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5854         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5855         (extwl, extll, extql): Similarly.
5856         (inswh, inslh, insqh): Similarly.
5857         (mskbl, mskwl, mskll, mskql): Similarly.
5858         (mskwh, msklh, mskqh): Similarly.
5860 2011-02-24  Richard Henderson  <rth@redhat.com>
5862         * config/alpha/alpha.md (attribute isa): Add er, ner.
5863         (attribute enabled): Handle them.
5864         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5866 2011-02-24  Richard Henderson  <rth@redhat.com>
5868         * config/alpha/alpha.md (attribute isa): Add vms.
5869         (attribute enabled): Handle it.
5870         (*movsf): Merge *movsf_{nofix,fix,nofp}.
5871         (*movdf): Merge *movdf_{nofix,fix,nofp}.
5872         (*movtf): Rename from *movtf_internal for consistency.
5873         (*movsi): Merge with *movsi_nt_vms.
5874         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5875         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5876         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5877         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5879 2011-02-24  Richard Henderson  <rth@redhat.com>
5881         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5882         (extendqisi2, extendhisi2): Likewise.
5883         (extendqidi2): Simplify BWX/non-BWX expansions.
5884         (extendhidi2): Similarly.
5886 2011-02-24  Richard Henderson  <rth@redhat.com>
5888         * config/alpha/alpha.md (attribute isa): New.
5889         (attribute enabled): New.
5890         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5891         (zero_extendqisi2, zero_extendqidi2): Similarly.
5892         (zero_extendhisi2, zero_extendhidi2): Similarly.
5893         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5895 2011-02-24  Richard Henderson  <rth@redhat.com>
5897         * config/alpha/predicates.md (input_operand): Revert last change;
5898         update comment to mention 32-bit VMS rather than Windows.
5900 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5902         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5903         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5904         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5905         * passes.c (init_optimization_passes): Move
5906         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5908 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5910         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5912 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5914         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5915         correctly.
5917 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
5919         PR debug/48204
5920         * simplify-rtx.c (simplify_const_unary_operation): Call
5921         real_convert when changing mode class with FLOAT_EXTEND.
5923 2011-03-24  Nick Clifton  <nickc@redhat.com>
5925         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5926         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5927         * config/rx/rx.c (rx_option_override): Set align_jumps,
5928         align_loops and align_labels if not set by the user.
5929         (rx_align_for_label): New function.
5930         (rx_max_skip_for_label): New function.
5931         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5932         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5933         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5934         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5935         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5937 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5939         PR rtl-optimization/48263
5940         * optabs.c (expand_binop_directly): Reinstate convert_modes code
5941         and original commutative_p handling.  Use maybe_gen_insn.
5943 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5945         * reload.c (find_reloads_subreg_address): Add address_reloaded
5946         parameter and return true there if the full address has been
5947         reloaded.
5948         (find_reloads_toplev): Pass address_reloaded flag.
5949         (find_reloads_address_1): Don't use address_reloaded parameter.
5951 2011-03-24  Jeff Law  <law@redhat.com>
5953         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5954         unused variable "ann".
5955         (remove_unused_locals): Likewise.
5957         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5958         statement.
5960         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5961         after it is freed.
5963 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5965         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5966         for invalid symbolic addresses.
5967         (s390_secondary_reload): Don't use s390_check_symref_alignment for
5968         larl operands.
5970 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5972         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5973         the argument in calls to fold_truth_not_expr.
5975 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5977         * tree.c (record_node_allocation_statistics): New function.
5978         (make_node_stat, copy_node_stat, build_string): Call it.
5979         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5980         (build1_stat, build_omp_clause): Likewise.
5982 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5984         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5985         last commit.
5987 2011-03-24  Richard Guenther  <rguenther@suse.de>
5989         PR tree-optimization/48271
5990         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5991         blocks that still exist.
5993 2011-03-24  Richard Guenther  <rguenther@suse.de>
5995         PR tree-optimization/48270
5996         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5997         not free datarefs before ddrs.
5999 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
6001         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
6002         from the address built for a reference with variable offset.
6004 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
6006         PR target/48237
6007         * config/i386/i386.md (*movdf_internal_rex64): Do not split
6008         alternatives that can be handled with movq or movabsq insn.
6009         (*movdf_internal): Disable for !TARGET_64BIT.
6010         (*movdf_internal_nointeger): Ditto.
6011         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
6013 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
6015         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6016         (FUNCTION_ARG_ADVANCE): Likewise.
6017         * tm.texi.in: Change references to them to hook references.
6018         * tm.texi: Regenerate.
6019         * targhooks.c (default_function_arg): Eliminate check for target macro.
6020         (default_function_incoming_arg): Likewise.
6021         (default_function_arg_advance): Likewise.
6022         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6023         (function_arg_advance): Likewise.
6024         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6026 2011-03-24  Richard Guenther  <rguenther@suse.de>
6028         PR middle-end/48269
6029         * tree-object-size.c (addr_object_size): Do not double-account
6030         for MEM_REF offsets.
6032 2011-03-24  Diego Novillo  <dnovillo@google.com>
6034         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
6035         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
6036         (lto_input_data_block): Move from lto-opts.c.  Make extern.
6037         Update all users.
6038         (lto_input_string): Rename from input_string.  Make extern.
6039         Update all users.
6040         * lto-streamer-out.c (lto_output_string_with_length): Rename from
6041         output_string_with_length.
6042         Output 0 to indicate a non-NULL string.  Update all callers to
6043         not emit 0.
6044         (lto_output_string): Rename from output_string.  Make extern.
6045         Update all users.
6046         (lto_output_decl_state_streams): Make extern.
6047         (lto_output_decl_state_refs): Make extern.
6048         * lto-streamer.h (lto_input_string): Declare.
6049         (lto_input_data_block): Declare.
6050         (lto_output_string): Declare.
6051         (lto_output_string_with_length): Declare.
6052         (lto_output_decl_state_streams): Declare.
6053         (lto_output_decl_state_refs): Declare.
6055 2011-03-24  Richard Guenther  <rguenther@suse.de>
6057         PR tree-optimization/46562
6058         * tree.c (build_invariant_address): New function.
6059         * tree.h (build_invariant_address): Declare.
6060         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
6061         a renamed function moved ...
6062         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
6063         Take valueization callback parameter.
6064         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
6065         * gimple-fold.h: New file.
6066         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
6067         (ccp_fold, fold_const_aggregate_ref,
6068         fold_ctor_reference, fold_nonarray_ctor_reference,
6069         fold_array_ctor_reference, fold_string_cst_ctor_reference,
6070         get_base_constructor): Move ...
6071         * gimple-fold.c: ... here.
6072         (gimple_fold_stmt_to_constant_1): New function
6073         split out from ccp_fold.  Take a valueization callback parameter.
6074         Valueize all operands.
6075         (gimple_fold_stmt_to_constant): New wrapper function.
6076         (fold_const_aggregate_ref_1): New function split out from
6077         fold_const_aggregate_ref.  Take a valueization callback parameter.
6078         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
6079         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
6080         invariant POINTER_PLUS_EXPRs to invariant form.
6081         (vn_valueize): New function.
6082         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
6083         * tree-vrp.c (vrp_valueize): New function.
6084         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
6085         to fold statements to constants.
6086         * tree-ssa-pre.c (eliminate): Properly guard propagation of
6087         function declarations.
6088         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
6089         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
6091 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
6093         * config/h8300/predicates.md (jump_address_operand): Fix register
6094         mode check.
6096 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
6098         * doc/invoke.texi (max-stores-to-sink): Document.
6099         * params.h (MAX_STORES_TO_SINK): Define.
6100         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
6101         if either vectorization or if-conversion is disabled.
6102         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
6103         tree-vect-data-refs.c vect_equal_offsets.
6104         (dr_equal_offsets_p): New function.
6105         (find_data_references_in_bb): Remove static.
6106         * tree-data-ref.h (find_data_references_in_bb): Declare.
6107         (dr_equal_offsets_p): Likewise.
6108         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
6109         (vect_drs_dependent_in_basic_block): Update calls to
6110         vect_equal_offsets.
6111         (vect_check_interleaving): Likewise.
6112         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
6113         (cond_if_else_store_replacement): Rename to...
6114         (cond_if_else_store_replacement_1): ... this.  Change arguments and
6115         documentation.
6116         (cond_if_else_store_replacement): New function.
6117         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
6118         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
6120 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
6122         PR target/46934
6123         * config/arm/arm.md (casesi): Use the gen_int_mode() function
6124         to subtract lower bound instead of GEN_INT().
6126 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
6128         PR other/48179
6129         PR other/48221
6130         PR other/48234
6131         * doc/extend.texi (Alignment): Move section to match order in TOC.
6132         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
6133         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
6135 2011-03-23  Jeff Law  <law@redhat.com>
6137         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
6138         before removing the edge.
6140         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
6141         it may have been freed by redirect_branch_edge or
6142         redirect_edge_succ_nodup.
6144 2011-03-23  Richard Guenther  <rguenther@suse.de>
6146         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
6147         (check_va_list_escapes): Likewise.
6148         (check_all_va_list_escapes): Likewise.
6150 2011-03-23  Richard Guenther  <rguenther@suse.de>
6152         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
6153         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
6154         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
6155         (alias.o): Likewise.
6156         (ipa-type-escape.o): Remove.
6157         (ipa-struct-reorg.o): Likewise.
6158         (GTFILES): Remove ipa-struct-reorg.c.
6159         * alias.c: Do not include ipa-type-escape.h.
6160         * tree-ssa-alias.c: Likewise.
6161         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
6162         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
6163         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
6164         and ipa-type-escape passes.
6165         * tree-pass.h (pass_ipa_type_escape): Remove.
6166         (pass_ipa_struct_reorg): Likewise.
6167         * ipa-struct-reorg.h: Remove.
6168         * ipa-struct-reorg.c: Likewise.
6169         * ipa-type-escape.h: Likewise.
6170         * ipa-type-escape.c: Likewise.
6171         * doc/invoke.texi (-fipa-struct-reorg): Remove.
6172         (--param struct-reorg-cold-struct-ratio): Likewise.
6173         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
6174         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
6175         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
6177 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6179         * config/s390/2084.md: Enable all insn reservations also for z9_ec
6180         cpu attribute value.
6181         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
6182         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
6183         * config/s390/s390.c (processor_flags_table): New constant array.
6184         (s390_handle_arch_option): Remove.
6185         (s390_handle_option): Remove s390_handle_arch_option invocations
6186         and OPT_mwarn_framesize_ handling.
6187         (s390_option_override): Remove s390_handle_arch_option invocation.
6188         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
6189         warnings.
6190         * config/s390/s390.md (cpu attribute): Add z9_ec value.
6191         * config/s390/s390.opt (s390_tune, s390_arch)
6192         (march=): Replace s390_arch_option enum and values with
6193         processor_type.  Set variable name to s390_arch.  Set
6194         initialization value.
6195         (mtune=): Replace s390_arch_option with processor_type.  Set
6196         variable name to s390_tune.  Set initialization value.
6198 2011-03-23  Julian Brown  <julian@codesourcery.com>
6200         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
6201         accesses which are not naturally aligned.
6203 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
6205         PR target/47553
6206         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
6208 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
6210         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
6211         parameter from "int" to "enum insn_code".
6212         (expand_operand_type): New enum.
6213         (expand_operand): New structure.
6214         (create_expand_operand): New function.
6215         (create_fixed_operand, create_output_operand): Likewise
6216         (create_input_operand, create_convert_operand_to): Likewise.
6217         (create_convert_operand_from, create_address_operand): Likewise.
6218         (create_integer_operand): Likewise.
6219         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
6220         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
6221         (expand_insn, expand_jump_insn): Likewise.
6222         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
6223         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
6224         (expand_movstr, expand_builtin___clear_cache): Likewise.
6225         (expand_builtin_lock_release): Likewise.
6226         * explow.c (allocate_dynamic_stack_space): Likewise.
6227         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
6228         and use the default handling in that case.
6229         * expmed.c (check_predicate_volatile_ok): Delete.
6230         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
6231         (emit_cstore): Likewise.
6232         * expr.c (emit_block_move_via_movmem): Likewise.
6233         (set_storage_via_setmem, expand_assignment): Likewise.
6234         (emit_storent_insn, try_casesi): Likewise.
6235         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
6236         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
6237         (expand_vec_shift_expr, expand_binop_directly): Likewise.
6238         (expand_twoval_unop, expand_twoval_binop): Likewise.
6239         (expand_unop_direct, emit_indirect_jump): Likewise.
6240         (emit_conditional_move, vector_compare_rtx): Likewise.
6241         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
6242         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
6243         (expand_sync_lock_test_and_set): Likewise.
6244         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
6245         (emit_unop_insn): Likewise.
6246         (expand_copysign_absneg): Change icode to an insn_code.
6247         (create_convert_operand_from_type): New function.
6248         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
6249         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
6250         (expand_insn, expand_jump_insn): Likewise.
6251         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
6252         than const_int_operand for operand 2.
6254 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6256         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
6257         if possible.
6259 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6261         * emit-rtl.c (emit_pattern_before_noloc): New function.
6262         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
6263         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
6264         (emit_pattern_after_noloc): New function.
6265         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
6266         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
6268 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6270         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
6271         (__ffsDI2): Likewise.
6273 2011-03-22  Richard Henderson  <rth@redhat.com>
6275         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
6276         of !TARGET_ABI_OPEN_VMS.
6277         (alpha_trampoline_init, alpha_start_function): Likewise.
6278         (alpha_expand_epilogue, alpha_file_start): Likewise.
6279         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
6280         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
6281         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
6282         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
6283         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
6285 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6287         * config/s390/s390-opts.h: New.
6288         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
6289         s390_arch_flags, s390_warn_framesize, s390_stack_size,
6290         s390_stack_guard): Remove.
6291         (s390_handle_arch_option): Return void.  Take enum
6292         s390_arch_option value instead of string and searching array.
6293         (s390_handle_option): Don't assert that global structures are in
6294         use.  Access variables via opts pointer.  Use error_at.  Don't use
6295         sscanf for -mstack-guard= or -mstack-size=.  Update call to
6296         s390_handle_arch_option.
6297         (s390_option_override): Update call to s390_handle_arch_option.
6298         (s390_emit_prologue): Use %d format for s390_stack_size in
6299         diagnostic.  Use %wd for HOST_WIDE_INT.
6300         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
6301         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
6302         * config/s390/s390.opt (config/s390/s390-opts.h): New
6303         HeaderInclude entry.
6304         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
6305         s390_arch_flags, s390_warn_framesize): New Variable entries.
6306         (s390_arch_option): New Enum and EnumValue entries.
6307         (march=): Use Enum instead of Var.
6308         (mstack-guard=, mstack-size=): Use UInteger and Var.
6309         (mtune=): Use Enum.
6311 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6313         * config/score/score.c (score_handle_option): Don't assert that
6314         global structures are in use.  Access target_flags via opts
6315         pointer.  Use value of -march= option to determine target_flags
6316         settings.
6317         * config/score/score.opt (march=): Use Enum.
6318         (score_arch): New Enum and EnumValue entries.
6320 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6322         * config/mep/mep.c (option_mtiny_specified): Remove.
6323         (mep_option_override): Move register handling for -mivc2 from
6324         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
6325         instead of option_mtiny_specified.
6326         (mep_handle_option): Access target_flags via opts pointer.  Don't
6327         assert that global structures are in use.  Defer part of -mivc2
6328         handling and move it to mep_option_override.
6329         * config/mep/mep.opt (IVC2): New Mask entry.
6330         (mivc2): Use Var and Defer instead of Mask.
6332 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6334         * config/v850/v850-opts.h: New.
6335         * config/v850/v850.c (small_memory): Replace with
6336         small_memory_physical_max array.  Make that array static const.
6337         (v850_handle_memory_option): Take integer value of argument.  Take
6338         gcc_options pointer, option text and location.  Return void.
6339         Update for changes to small memory structures.
6340         (v850_handle_option): Access target_flags via opts pointer.  Don't
6341         assert that global structures are in use.  Update calls to
6342         v850_handle_memory_option.
6343         (v850_encode_data_area): Update references to small memory settings.
6344         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
6345         (enum small_memory_type): Move to v850-opts.h.
6346         * config/v850/v850.opt (config/v850/v850-opts.h): New
6347         HeaderInclude entry.
6348         (small_memory_max): New Variable entry.
6349         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
6350         (mtda, mzda): Likewise.
6352 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6354         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
6355         pointer.  Don't assert that global structures are in use.
6357 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6359         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
6360         via opts pointer.  Don't assert that global structures are in use.
6362 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6364         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
6365         (munix=93): Use Var.
6366         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
6367         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
6368         * config/pa/pa-opts.h: New.
6369         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
6370         (pa_handle_option): Don't assert that global structures are in
6371         use.  Access target_flags via opts pointer.  Don't handle
6372         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
6373         OPT_munix_98 here.
6374         (pa_option_override): Handle deferred OPT_mfixed_range_.
6376 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6378         * config/mn10300/mn10300-opts.h: New.
6379         * config/mn10300/mn10300.c (mn10300_processor,
6380         mn10300_tune_string): Remove.
6381         (mn10300_handle_option): Don't assert that global structures are
6382         in use.  Access mn10300_processor via opts pointer.  Don't handle
6383         OPT_mtune_ here.
6384         * config/mn10300/mn10300.h (enum processor_type): Move to
6385         mn10300-opts.h.
6386         (mn10300_processor): Remove.
6387         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
6388         HeaderInclude entry.
6389         (mn10300_processor): New Variable entry.
6390         (mtune=): Use Var.
6392 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6394         * config/microblaze/microblaze.c: Don't include opts.h.
6395         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
6396         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
6397         (mno-clearbss): Use Var and Warn.
6399 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6401         * config/m32r/m32r-opts.h: New.
6402         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
6403         (m32r_handle_option): Don't assert that global structures are in
6404         use.  Access target_flags and m32r_cache_flush_func via opts
6405         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
6406         OPT_mno_flush_trap here.
6407         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
6408         include of m32r-opts.h.
6409         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
6410         HeaderInclude entry.
6411         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
6412         (mmodel=): Use Enum and Var.
6413         (m32r_model): New Enum and EnumValue entries.
6414         (mno-flush-trap): Use Var.
6415         (msdata=): Use Enum and Var.
6416         (m32r_sdata): New Enum and EnumValue entries.
6418 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6420         * config/m32c/m32c.c: Don't include opts.h.
6421         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
6422         m32c_handle_option): Remove.
6423         (m32c_option_override): Check global_options_set.x_target_memregs
6424         instead of target_memregs_set.
6425         * config/m32c/m32c.h (target_memregs): Remove.
6426         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
6427         variable.
6429 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6431         * config/iq2000/iq2000-opts.h: New.
6432         * config/iq2000/iq2000.c: Don't include opts.h.
6433         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
6434         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
6435         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
6436         HeaderInclude entry.
6437         (iq2000_tune): New Variable entry.
6438         (march=): Add comment.  Use Enum.
6439         (iq2000_arch): New Enum and EnumValue entries.
6440         (mcpu=): Use Enum and Var.
6441         (iq2000_tune): New Enum and EnumValue entries.
6443 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6445         * config/ia64/ia64-opts.h: New.
6446         * config/ia64/ia64.c (ia64_tune): Remove.
6447         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
6448         here.  Use error_at.
6449         (ia64_option_override): Handle deferred OPT_mfixed_range_.
6450         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
6451         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
6452         HeaderInclude entry.
6453         (ia64_tune): New Variable entry.
6454         (mfixed-range=): Use Defer and Var.
6455         (mtune=): Use Enum and Var.
6456         (ia64_tune): New Enum and EnumValue entries.
6458 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6460         * config/frv/frv-opts.h: New.
6461         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
6462         frv-opts.h.
6463         (frv_cpu_type): Remove.
6464         * config/frv/frv.c: Don't include opts.h.
6465         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
6466         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
6467         (frv_cpu_type): New Variable entry.
6468         (frv_cpu): New Enum and EnumValue entries.
6470 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6472         * config/cris/cris.c (cris_handle_option): Access target_flags via
6473         opts pointer.  Don't assert that global structures are in use.
6474         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
6475         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
6477 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6479         * config/bfin/bfin-opts.h: New.
6480         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
6481         bfin_si_revision, bfin_workarounds): Remove.
6482         (bfin_cpus): Make static const.
6483         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
6484         not bfin_lib_id_given.
6485         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
6486         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
6487         pointer. Use error_at.  Don't assert that global structures are in use.
6488         * config/bfin/bfin.h: Include bfin-opts.h.
6489         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
6490         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
6491         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
6492         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
6493         entries.
6495 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6497         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
6498         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
6499         or -msoft-float here.
6500         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
6501         -msoft-float and -mhard-float.
6502         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
6503         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6504         msoft-float.
6505         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
6506         -msoft-float.
6507         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
6508         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
6509         not mhard-float.
6510         (LIBGCC_SPEC): Don't handle -msoft-float.
6511         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
6512         -mhard-float.
6513         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6514         msoft-float.
6515         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
6516         -mfloat-abi=*, not -msoft-float and -mhard-float.
6517         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
6518         -msoft-float.
6519         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
6520         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
6521         mhard-float and msoft-float.
6522         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
6523         mfloat-abi=soft in comments, not mhard-float and msoft-float.
6524         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6525         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
6526         mhard-float.
6527         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
6528         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
6529         msoft-float.
6530         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
6531         not mhard-float.
6532         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
6533         not msoft-float.
6535 2011-03-22  Richard Henderson  <rth@redhat.com>
6537         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
6538         TARGET_ABI_WINDOWS_NT.
6539         (alpha_output_function_end_prologue): Likewise.
6540         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
6541         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6542         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
6543         (trap, *movsi_nt_vms): Likewise.
6544         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
6545         (*tablejump_osf_nt_internal): Remove.
6546         * config/alpha/predicates.md (input_operand): Only test Pmode.
6548 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6550         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
6551         via opts pointer.  Use error_at.  Don't assert that global
6552         structures are in use.
6554 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6556         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
6557         (ix86_handle_option): Access ix86_isa_flags and
6558         ix86_isa_flags_explicit via opts pointer.  Don't assert that
6559         global structures are in use.
6560         (ix86_function_specific_save, ix86_function_specific_restore):
6561         Update ix86_isa_flags_explicit field name.
6562         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
6563         (ix86_isa_flags_explicit): Rename TargetSave entry to
6564         x_ix86_isa_flags_explicit.
6566 2011-03-22  Richard Henderson  <rth@redhat.com>
6568         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
6569         (alpha_option_override, direct_return): Likewise.
6570         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
6571         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
6572         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
6573         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6574         (alpha_expand_epilogue, alpha_end_function): Likewise.
6575         (alpha_init_libfuncs): Likewise.
6576         (struct machine_function): Remove unicosmk members.
6577         (print_operand) ['t']: Remove.
6578         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
6579         unicosmk_output_module_name, unicosmk_output_common,
6580         current_section_align, unicosmk_output_text_section_asm_op,
6581         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
6582         unicosmk_section_type_flags, unicosmk_unique_section,
6583         unicosmk_asm_named_section, unicosmk_insert_attributes,
6584         unicosmk_output_align, unicosmk_defer_case_vector,
6585         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
6586         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
6587         unicosmk_output_ssib, unicosmk_add_call_info_word,
6588         unicosmk_extern_head, unicosmk_output_default_externs,
6589         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
6590         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
6591         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
6592         * config/alpha/alpha-protos.h: Update.
6593         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
6594         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
6595         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
6596         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
6597         (*mulsi_se, mulvsi3): Likewise.
6598         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
6599         (*divmodsi_internal, call, call_value, realign): Likewise.
6600         (moddi3, umoddi3): Likewise; remove duplicate expander.
6601         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
6602         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
6603         (*movdi_nofix): Remove r/U alternative.
6604         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
6605         * config/alpha/constraints.md ("U"): Remove.
6606         * config/alpha/predicates.md (call_operand"): Don't test
6607         TARGET_ABI_UNICOSMK.
6609 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6611         * target.def (handle_option): Take gcc_options and
6612         cl_decoded_option pointers and location_t.
6613         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
6614         * doc/tm.texi: Regenerate.
6615         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
6616         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
6617         * lto-opts.c (lto_reissue_options): Generate option structure for
6618         targetm.handle_option call.
6619         * opts.c (target_handle_option): Update call to
6620         targetm.handle_option.  Remove assertions about values now passed
6621         down to hook.
6622         * targhooks.c (default_target_handle_option): New.
6623         * targhooks.h (default_target_handle_option): Declare.
6624         * config/alpha/alpha.c: Include opts.h.
6625         (alpha_handle_option): Update to new hook interface.
6626         * config/arm/arm.c: Include opts.h.
6627         (arm_handle_option): Update to new hook interface.
6628         * config/arm/t-arm (arm.o): Update dependencies.
6629         * config/bfin/bfin.c: Include opts.h.
6630         (bfin_handle_option): Update to new hook interface.
6631         * config/cris/cris.c: Include opts.h.
6632         (cris_handle_option): Update to new hook interface.
6633         * config/frv/frv.c: Include opts.h.
6634         (frv_handle_option): Update to new hook interface.
6635         * config/i386/i386.c: Include opts.h.
6636         (ix86_handle_option): Update to new hook interface.
6637         (ix86_valid_target_attribute_inner_p): Generate option structure
6638         for call to ix86_handle_option.
6639         * config/i386/t-i386 (i386.o): Update dependencies.
6640         * config/ia64/ia64.c: Include opts.h.
6641         (ia64_handle_option): Update to new hook interface.
6642         * config/ia64/t-ia64 (ia64.o): Update dependencies.
6643         * config/iq2000/iq2000.c: Include opts.h.
6644         (iq2000_handle_option): Update to new hook interface.
6645         * config/m32c/m32c.c: Include opts.h.
6646         (m32c_handle_option): Update to new hook interface.
6647         * config/m32r/m32r.c: Include opts.h.
6648         (m32r_handle_option): Update to new hook interface.
6649         * config/m68k/m68k.c: Include opts.h.
6650         (m68k_handle_option): Update to new hook interface.
6651         * config/mep/mep.c: Include opts.h.
6652         (mep_handle_option): Update to new hook interface.
6653         * config/microblaze/microblaze.c: Include opts.h.
6654         (microblaze_handle_option): Update to new hook interface.
6655         * config/mips/mips.c: Include opts.h.
6656         (mips_handle_option): Update to new hook interface.
6657         * config/mn10300/mn10300.c: Include opts.h.
6658         (mn10300_handle_option): Update to new hook interface.
6659         * config/pa/pa.c: Include opts.h.
6660         (pa_handle_option): Update to new hook interface.
6661         * config/pdp11/pdp11.c: Include opts.h.
6662         (pdp11_handle_option): Update to new hook interface.
6663         * config/rs6000/rs6000.c: Include opts.h.
6664         (rs6000_handle_option): Update to new hook interface.
6665         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6666         * config/rx/rx.c: Include opts.h.
6667         (rx_handle_option): Update to new hook interface.
6668         * config/s390/s390.c: Include opts.h.
6669         (s390_handle_option): Update to new hook interface.
6670         * config/score/score.c: Include opts.h.
6671         (score_handle_option): Update to new hook interface.
6672         * config/sh/sh.c: Include opts.h.
6673         (sh_handle_option): Update to new hook interface.
6674         * config/sparc/sparc.c: Include opts.h.
6675         (sparc_handle_option): Update to new hook interface.
6676         * config/v850/v850.c: Include opts.h.
6677         (v850_handle_option): Update to new hook interface.
6679 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6681         * gcc.c (driver_unknown_option_callback): Only permit and save
6682         unknown -Wno- options.
6683         (driver_wrong_lang_callback): Save options directly instead of via
6684         driver_unknown_option_callback.
6686 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6688         * combine.c (simplify_set): Try harder to find the best CC mode when
6689         simplifying a nested COMPARE on the RHS.
6691 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6693         * config/alpha/gnu.h: Remove.
6694         * config/arc: Remove directory.
6695         * config/arm/netbsd.h: Remove.
6696         * config/arm/t-pe: Remove.
6697         * config/crx: Remove directory.
6698         * config/i386/netbsd.h: Remove.
6699         * config/m68hc11: Remove directory.
6700         * config/m68k/uclinux-oldabi.h: Remove.
6701         * config/mcore/mcore-pe.h: Remove.
6702         * config/mcore/t-mcore-pe: Remove.
6703         * config/netbsd-aout.h: Remove.
6704         * config/rs6000/gnu.h: Remove.
6705         * config/sh/sh-symbian.h: Remove.
6706         * config/sh/symbian-base.c: Remove.
6707         * config/sh/symbian-c.c: Remove.
6708         * config/sh/symbian-cxx.c: Remove.
6709         * config/sh/symbian-post.h: Remove.
6710         * config/sh/symbian-pre.h: Remove.
6711         * config/sh/t-symbian: Remove.
6712         * config/svr3.h: Remove.
6713         * config/vax/netbsd.h: Remove.
6714         * config.build: Don't handle i[34567]86-*-pe.
6715         * config.gcc: Remove handling of deprecations for most deprecated
6716         targets.
6717         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6718         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6719         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6720         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6721         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6722         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6723         Remove cases.
6724         * config.host: Don't handle i[34567]86-*-pe.
6725         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6726         (ASM_SPEC32): Don't handle -mcall-gnu.
6727         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6728         -mcall-gnu.
6729         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6730         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6731         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6732         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6733         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6734         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6735         conditional on SYMBIAN.
6736         * configure.ac: Don't handle powerpc*-*-gnu*.
6737         * configure: Regenerate.
6738         * doc/extend.texi (interrupt attribute): Don't mention CRX.
6739         * doc/install-old.texi (m6811, m6812): Don't mention.
6740         * doc/install.texi (arc-*-elf*): Don't document multilib option.
6741         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6742         (m68k-uclinuxoldabi): Don't mention.
6743         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6744         Remove.
6745         (-mcall-gnu): Remove.
6746         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6747         families): Remove constraint documentation.
6749 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
6751         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6752         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6753         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6755 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6757         PR target/48226
6758         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
6759         vector when peeking at the next token for vector, don't expand the
6760         keywords.
6762 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
6764         * config/avr/avr-protos.h (expand_epilogue): Change prototype
6765         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6766         * config/avr/avr.c (init_cumulative_args)
6767         (avr_function_arg_advance): Use it.
6768         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6769         sibcall epilogues.
6770         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6771         (avr_function_ok_for_sibcall): ...this new function.
6772         (avr_lookup_function_attribute1): New static Function.
6773         (avr_naked_function_p, interrupt_function_p)
6774         (signal_function_p, avr_OS_task_function_p)
6775         (avr_OS_main_function_p): Use it.
6776         * config/avr/avr.md ("sibcall", "sibcall_value")
6777         ("sibcall_epilogue"): New expander.
6778         ("*call_insn", "*call_value_insn"): New insn.
6779         ("call_insn", "call_value_insn"): Remove
6780         ("call", "call_value", "epilogue"): Change expander to handle
6781         sibling calls.
6783 2011-03-21  Nick Clifton  <nickc@redhat.com>
6785         * doc/invoke.texi (Overall Options): Move closing brace to end of
6786         options list.
6787         (Optimization Options): Add missing @gol.
6788         (Directory Options): Likewise.
6789         (i386 and x86-64 Options): Likewise.
6790         (RS6000 and PowerPC Options): Likewise.
6791         (i386 and x86-64 Windows Options): Likewise.
6792         (V850 Options): Add text missing from descriptions.
6794 2011-03-22  Richard Henderson  <rth@redhat.com>
6796         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6797         (avr_incoming_return_addr_rtx): New.
6798         (emit_push_byte): New.
6799         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
6800         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
6801         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
6802         (emit_pop_byte): New.
6803         (expand_epilogue): Use it.  Pop frame pointer by bytes.
6804         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6805         (INCOMING_RETURN_ADDR_RTX): New.
6806         (INCOMING_FRAME_SP_OFFSET): New.
6807         (ARG_POINTER_CFA_OFFSET): New.
6808         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6809         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6810         (pophi): Remove.
6812         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6814 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6816         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6817         (FUNCTION_ARG_ADVANCE): Likewise.
6818         * tm.texi.in: Change references to them to hook references.
6819         * tm.texi: Regenerate.
6820         * targhooks.c (default_function_arg): Eliminate check for target
6821         macro.
6822         (default_function_incoming_arg): Likewise.
6823         (default_function_arg_advance): Likewise.
6824         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6825         (function_arg_advance): Likewise.
6826         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6828 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6830         * tree.c (build_call_1): New function.
6831         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6833 2011-03-22  Richard Guenther  <rguenther@suse.de>
6835         PR tree-optimization/48228
6836         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6837         for single-arg PHIs.
6839 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
6841         PR rtl-optimization/48143
6842         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6843         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6844         sse2_cvtps2pd): Likewise.
6846 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6848         * recog.c (canonicalize_change_group): Use validate_unshare_change.
6850 2011-03-22  Richard Guenther  <rguenther@suse.de>
6852         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6853         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6854         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6855         and REALIGN_LOAD_EXPR.
6856         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6857         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6858         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6859         DOT_PROD_EXPR case ...
6860         (expand_expr_real_2): ... here.
6861         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6862         and REALIGN_LOAD_EXPR.
6863         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6864         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6865         (vect_create_epilog_for_reduction): Likewise.
6866         (vectorizable_reduction): Likewise.
6867         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6868         * tree-vect-stmts.c (vectorizable_load): Likewise.
6870 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6872         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6874 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6876         * config/s390/s390.c (s390_delegitimize_address): Fix offset
6877         handling for PLTOFF/GOTOFF.
6879 2011-03-22  Nick Clifton  <nickc@redhat.com>
6881         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6882         trailing backslash from the end of the macro definition.
6884 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6886         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6887         and PLT unspecs.
6889 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
6891         * expr.h (prepare_operand): Move to...
6892         * optabs.h (prepare_operand): ...here and change the insn code
6893         parameter from "int" to "enum insn_code".
6894         (insn_operand_matches): Declare.
6895         * expr.c (init_expr_target): Use insn_operand_matches.
6896         (compress_float_constant): Likewise.
6897         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6898         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6899         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6900         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6901         Likewise.
6902         (gen_cond_trap): Likewise.
6903         (prepare_operand): Likewise.  Change icode to an insn_code.
6904         (insn_operand_matches): New function.
6905         * reload.c (find_reloads_address_1): Use insn_operand_matches.
6906         * reload1.c (gen_reload): Likewise.
6907         * targhooks.c (default_secondary_reload): Likewise.
6909 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6911         * config/alpha/alpha.md (unspec): New define_c_enum.
6912         (unspecv): Ditto.
6914 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6916         PR debug/48214
6917         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6918         between a call and its CALL_ARG_LOCATION note.
6920 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6922         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6924 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6926         PR c/42544
6927         PR c/48197
6928         * c-common.c (shorten_compare): If primopN is first sign-extended
6929         to opN and then zero-extended to result type, set primopN to opN.
6931 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
6933         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6934         for barrier handlers.
6936 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6938         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6939         UNSPEC constants to be in the unspec enumeration, and redefine
6940         all UNSPECV constants to be in the unspecv enumeration, so that
6941         dumps print which unspec/unspec_volatile this is.
6942         * config/rs6000/vector.md (UNSPEC_*): Ditto.
6943         * config/rs6000/paired.md (UNSPEC_*): Ditto.
6944         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6945         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6946         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6948         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6949         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6950         UNSPECV_LWSYNC, since these are used as unspec_volatile.
6951         * config/rs6000/sync.md (isync, lwsync): Ditto.
6953 2011-03-21  Richard Guenther  <rguenther@suse.de>
6955         * params.def (lto-min-partition): Fix typo.
6957 2011-03-21  Richard Guenther  <rguenther@suse.de>
6959         PR c/47939
6960         * c-decl.c (grokdeclarator): Drop to the main variant only
6961         for array types.  Drop flag_gen_aux_info check.
6963 2011-03-21  Richard Guenther  <rguenther@suse.de>
6965         PR translation/47911
6966         * params.def (lto-partitions): Fix typo.
6967         (lto-min-partition): Fix wording.
6969 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
6971         * config/rs6000/t-freebsd: Remove duplication from file.
6973 2011-03-21  Richard Guenther  <rguenther@suse.de>
6975         PR middle-end/47661
6976         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6978 2011-03-21  Richard Guenther  <rguenther@suse.de>
6980         PR lto/48210
6981         * params.def (lto-partitions): Require at least 1 partition.
6983 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6985         * gthr-solaris.h: Remove.
6986         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6987         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6988         (LIB_SPEC): Likewise.
6989         * config/sol2.opt (threads): Remove.
6990         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6991         (sparc*-*-solaris2*): Likewise.
6992         * configure.ac (enable_threads): Enable solaris support.
6993         * configure: Regenerate.
6994         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6995         * doc/install.texi (Configuration, --enable-threads=lib): Remove
6996         solaris.
6998 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7000         * config.gcc: Obsolete *-*-solaris2.8*.
7001         * doc/install.texi (Specific, *-*-solaris2*): Document it.
7003 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7005         PR bootstrap/48135
7006         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
7007         reference.  Solaris 8 perl works.
7009 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7011         PR bootstrap/48135
7012         * doc/install.texi (Prerequisites): Move jar etc. up.
7013         Explain support library version requirements.
7015 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7017         PR bootstrap/48135
7018         * doc/install.texi (Prerequisites): Move Perl to build
7019         requirements.  Always necessary on Solaris 2 with Sun ld.
7021 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7023         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
7024         binutils 2.21.
7025         (Specific, i?86-*-solaris2.[89]): Likewise.
7026         (Specific, i?86-*-solaris2.10): Likewise.
7027         (Specific, mips-sgi-irix6): Likewise.
7028         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
7029         Update for binutils 2.21.
7031 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7033         * configure.ac (gcc_cv_lto_plugin): Fix typo.
7034         Allow -fuse-linker-plugin for non-default plugin linker.
7035         * configure: Regenerate.
7037 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
7039         PR bootstrap/48167
7040         * gengtype.c (files_rules): Added rule for cp/parser.h.
7042 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
7044         PR target/48213
7045         * config/s390/s390.c (s390_delegitimize_address): Don't call
7046         lowpart_subreg if orig_x has BLKmode.
7048 2011-03-21  Kai Tietz  <ktietz@redhat.com>
7050         PR target/12171
7051         * doc/plugins.texi: Adjust documentation for plugin register_callback.
7052         * tree.h (attribute_spec): Add new member affects_type_identity.
7053         * attribs.c (empty_attribute_table): Adjust attribute_spec
7054         initializers.
7055         * config/alpha/alpha.c: Likewise.
7056         * config/arc/arc.c: Likewise.
7057         * config/arm/arm.c: Likewise.
7058         * config/avr/avr.c: Likewise.
7059         * config/bfin/bfin.c: Likewise.
7060         * config/crx/crx.c: Likewise.
7061         * config/darwin.h: Likewise.
7062         * config/h8300/h8300.c: Likewise.
7063         * config/i386/cygming.h: Likewise.
7064         * config/i386/i386.c: Likewise.
7065         * config/ia64/ia64.c: Likewise.
7066         * config/m32c/m32c.c: Likewise.
7067         * config/m32r/m32r.c: Likewise.
7068         * config/m68hc11/m68hc11.c: Likewise.
7069         * config/m68k/m68k.c: Likewise.
7070         * config/mcore/mcore.c: Likewise.
7071         * config/mep/mep.c: Likewise.
7072         * config/microblaze/microblaze.c: Likewise.
7073         * config/mips/mips.c: Likewise.
7074         * config/rs6000/rs6000.c: Likewise.
7075         * config/rx/rx.c: Likewise.
7076         * config/sh/sh.c: Likewise.
7077         * config/sol2.h: Likewise.
7078         * config/sparc/sparc.c: Likewise.
7079         * config/spu/spu.c: Likewise.
7080         * config/stormy16/stormy16.c: Likewise.
7081         * config/v850/v850.c: Likewise.
7083 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
7085         * simplify-rtx.c (simplify_binary_operation_1): Handle
7086         (xor (and A B) C) case when B and C are both constants.
7088 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
7090         * tree-dfa.c (add_referenced_var): Fix typo in comment.
7092 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
7094         PR bootstrap/48168
7095         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
7097 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
7099         PR rtl-optimization/48156
7100         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
7101         assume df and df_lr are not NULL.
7103 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7105         PR debug/48023
7106         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
7107         between a call and its CALL_ARG_LOCATION note.
7109 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
7111         PR debug/48178
7112         * config/sh/sh.c (find_barrier): Don't emit a constant pool
7113         between a call and its corresponding CALL_ARG_LOCATION note.
7115 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
7117         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
7118         instead of loop. Use HARD_REGISTER_NUM_P predicate.
7119         * haifa-sched.c (setup_ref_regs): Ditto.
7120         * caller-save.c (add_used_regs_1): Ditto.
7121         * dse.c (look_for_hardregs): Ditto.
7122         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
7123         * sched-rgn.c (check_live_1): Ditto.
7125 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
7127         * c-decl.c (diagnose_mismatched_decls): Give an error for
7128         redefining a typedef with variably modified type.
7130 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
7132         * c-decl.c (grokfield): Don't allow typedefs for structures or
7133         unions with no tag by default.
7134         * doc/extend.texi (Unnamed Fields): Update.
7136 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
7138         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
7139         Rewrite using indirect functions.
7140         (lwp_slwpcb): Ditto.
7141         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
7142         (avx_vinsertf128<mode>): Ditto.
7144 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7146         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
7147         unspecs.
7149 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7151         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
7152         splitting between a call and its corresponding CALL_ARG_LOCATION note.
7154 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
7156         PR rtl-optimization/48170
7157         * gcse.c (hoist_code): Remove bogus asserts.
7159 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
7161         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
7162         computation for prologue/epilogue.
7164 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7166         * Makefile.in (check-consistency): Remove.
7168 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
7170         PR debug/48176
7171         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
7172         arange_table_in_use is 0, but either text_section_used or
7173         cold_text_section_used is true.  Don't call it if
7174         !info_section_emitted.
7176 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
7178         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
7179         FUNCTION_VALUE_REGNO_P): Remove.
7180         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
7181         Remove.
7182         * config/avr/avr.c (avr_ret_register): Make static inline.
7183         (avr_function_value_regno_p): New function.
7184         (avr_libcall_value): Make static. Add 'func' argument.
7185         (avr_function_value): Make static. Rename 'func' argument to
7186         'fn_decl_or_type', forward it to avr_libcall_value. Call
7187         avr_ret_register function instead of RET_REGISTER macro.
7188         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7190 2011-03-18  Jason Merrill  <jason@redhat.com>
7192         PR c++/23372
7193         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
7195 2011-03-18  Richard Guenther  <rguenther@suse.de>
7197         * doc/install.texi (--enable-gold): Remove.
7198         (--with-plugin-ld): Document.
7199         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
7201 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
7203         PR middle-end/47790
7204         * expr.c (optimize_bitfield_assignment_op): Revamp to work
7205         again after expansion changes.
7207 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
7209         * combine.c (try_combine): Do simplification only call of
7210         subst() on i2 even when i1 is present. Update comments.
7212 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
7214         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
7215         and UNSPEC_PCREL_SYMOFF.
7217 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7219         * config/s390/s390.md: Use define_c_enum for the unspec constant
7220         definitions.
7222 2011-03-18  Richard Henderson  <rth@redhat.com>
7223             Jakub Jelinek  <jakub@redhat.com>
7225         PR bootstrap/48161
7226         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
7227         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
7229 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
7231         PR middle-end/47725
7232         * combine.c (cant_combine_insn_p): Don't check zero/sign
7233         extended hard registers.
7235 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
7237         PR middle-end/47725
7238         * combine.c (cant_combine_insn_p): Check zero/sign extended
7239         hard registers.
7241 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
7243         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7244         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
7245         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
7246         Change return type to bool.
7247         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7249 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
7251         PR debug/48163
7252         * var-tracking.c (prepare_call_arguments): If CALL target
7253         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
7254         pc instead of looking it up using cselib_lookup and use
7255         Pmode for it if x has VOIDmode.
7256         * dwarf2out.c (gen_subprogram_die): If also both first and
7257         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
7259         PR debug/48163
7260         * function.c (assign_parms): For data.passed_pointer parms
7261         use MEM of data.entry_parm instead of data.entry_parm itself
7262         as DECL_INCOMING_RTL.
7263         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
7264         also when passed and declared mode is the same, DECL_RTL
7265         is a MEM with pseudo as address and DECL_INCOMING_RTL is
7266         a MEM too.
7268 2011-03-16  Jeff Law  <law@redhat.com>
7270         PR rtl-optimization/37273
7271         * ira-costs.c (scan_one_insn): Detect constants living in memory and
7272         handle them like argument loads from stack slots.  Do not double
7273         count memory for memory constants and argument loads from stack slots.
7275 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
7277         PR debug/48160
7278         * var-tracking.c (prepare_call_arguments): Check SUBREG.
7280 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
7282         PR target/48171
7283         * config/i386/i386.opt: Add Save to -mavx and -mfma.
7285 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
7287         PR bootstrap/48153
7288         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
7289         if dwarf_strict.
7290         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
7291         Clear call_arg_locations and call_arg_loc_last always.
7293         PR middle-end/48152
7294         * var-tracking.c (prepare_call_arguments): If argument needs to be
7295         passed by reference, adjust argtype and mode.
7297 2011-03-17  Richard Guenther  <rguenther@suse.de>
7299         PR middle-end/48134
7300         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
7301         a value make sure to fold the statement.
7303 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
7305         PR target/43872
7306         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
7307         return condition with !cfun->calls_alloca.
7309 2011-03-17  Richard Guenther  <rguenther@suse.de>
7311         PR bootstrap/48148
7312         * lto-cgraph.c (input_overwrite_node): Clear the abstract
7313         origin for decls in other ltrans units.
7314         (input_varpool_node): Likewise.
7316 2011-03-17  Richard Guenther  <rguenther@suse.de>
7318         PR middle-end/48165
7319         * tree-object-size.c (compute_object_offset): Properly return
7320         the offset operand of MEM_REFs as sizetype.
7322 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
7324         PR rtl-optimization/48141
7325         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
7326         * dse.c: Include params.h.
7327         (active_local_stores_len): New variable.
7328         (add_wild_read, dse_step1): Clear it when setting active_local_stores
7329         to NULL.
7330         (record_store, check_mem_read_rtx): Decrease it when removing
7331         from the chain.
7332         (scan_insn): Likewise.  Increase it when adding to chain, if it
7333         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
7334         set active_local_stores to NULL before the addition.
7335         * Makefile.in (dse.o): Depend on $(PARAMS_H).
7337         PR rtl-optimization/48141
7338         * dse.c (record_store): If no positions are needed in an insn
7339         that cannot be deleted, at least unchain it from active_local_stores.
7341 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
7343         PR debug/47510
7344         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
7345         (lookup_type_die_strip_naming_typedef): ... here.
7346         (get_context_die): Use it.
7347         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
7348         the anonymous struct named by the naming typedef.
7350 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7352         PR target/48154
7353         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
7354         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7356 2011-03-16  Jeff Law  <law@redhat.com>
7358         * tree-vrp.c (identify_jump_threads): Slightly simplify type
7359         check for operands of conditional.  Allow type to be a pointer.
7361 2011-03-16  Richard Guenther  <rguenther@suse.de>
7363         PR tree-optimization/48149
7364         * fold-const.c (fold_binary_loc): Fold
7365         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
7367 2011-03-16  Richard Guenther  <rguenther@suse.de>
7369         PR tree-optimization/26134
7370         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
7371         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
7372         (non_rewritable_mem_ref_base): Handle complex type component
7373         accesses, constrain offsets for vector and complex extracts
7374         more properly.
7376 2011-03-16  Richard Guenther  <rguenther@suse.de>
7378         PR tree-optimization/48146
7379         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
7380         operands avoiding the need for renaming.
7382 2011-03-16  Richard Guenther  <rguenther@suse.de>
7384         * gimple-fold.c (maybe_fold_reference): Open-code relevant
7385         constant folding.  Move MEM_REF canonicalization first.
7386         Rely on fold_const_aggregate_ref for initializer folding.
7387         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
7389 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
7391         PR middle-end/48136
7392         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7393         arg0/arg1 or their arguments are always fold converted to matching
7394         types.
7396         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
7397         to nargs.
7399 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7401         PR lto/46944
7402         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
7403         Handle in-tree gold.
7404         (ld_vers): Extract binutils version for gold.
7405         (gcc_cv_ld_hidden): Handle gold here.
7406         (gcc_cv_lto_plugin): Determine level of linker plugin support.
7407         * configure: Regenerate.
7408         * config.in: Regenerate.
7409         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
7410         -fuse-linker-plugin otherwise.
7411         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
7412         (LINK_COMMAND_SPEC): Use it.
7413         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
7415 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
7417         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
7418         * calls.c: Remove debug.h include.
7419         (emit_call_1): Don't call virtual_call_token debug hook.
7420         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
7421         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
7422         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
7423         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
7424         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
7425         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
7426         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
7427         dwarf2out_virtual_call): Remove.
7428         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
7429         copy_call_info and virtual_call hooks.
7430         (dwarf2out_init): Don't initialize vcall_insn_table,
7431         debug_dcall_section and debug_vcall_section.
7432         (prune_unused_types): Don't mark nodes from dcall_table.
7433         (dwarf2out_finish): Don't output dcall or vcall tables.
7434         * final.c (final_scan_insn): Don't call direct_call or
7435         virtual_call debug hooks.
7436         * debug.h (struct gcc_debug_hooks): Remove direct_call,
7437         virtual_call_token, copy_call_info and virtual_call hooks.
7438         (debug_nothing_uid): Remove prototype.
7439         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
7440         copy_call_info and virtual_call hooks.
7441         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7442         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
7443         * debug.c (do_nothing_debug_hooks): Likewise.
7444         (debug_nothing_uid): Remove.
7445         * doc/invoke.texi (-fenable-icf-debug): Remove.
7446         * common.opt (-fenable-icf-debug): Likewise.
7448         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
7449         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
7450         call's MEM.  Handle functions returning aggregate through a hidden
7451         first pointer.  For virtual calls add clobbered pc to call arguments
7452         chain.
7453         * dwarf2out.c (gen_subprogram_die): Emit
7454         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
7455         can't be emitted.
7457         PR debug/45882
7458         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
7459         * rtl.h (ENTRY_VALUE_EXP): Define.
7460         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
7461         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7462         * print-rtl.c (print_rtx): Likewise.
7463         * gengtype.c (adjust_field_rtx_def): Likewise.
7464         * var-tracking.c (vt_add_function_parameter): Adjust
7465         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
7466         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
7467         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
7468         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
7469         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
7471         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
7472         Call var_location debug hook even on CALL_INSNs.
7473         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
7474         * rtl.def (ENTRY_VALUE): New.
7475         * dwarf2out.c: Include cfglayout.h.
7476         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7477         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
7478         (struct call_arg_loc_node): New type.
7479         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
7480         tail_call_site_count): New variables.
7481         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
7482         DW_TAG_GNU_call_site_parameter.
7483         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
7484         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
7485         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
7486         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
7487         and DW_AT_GNU_all_source_call_sites.
7488         (mem_loc_descriptor): Handle ENTRY_VALUE.
7489         (add_src_coords_attributes): Don't add enything if
7490         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
7491         (dwarf2out_abstract_function): Save and clear call_arg_location,
7492         call_site_count and tail_call_site_count around dwarf2out_decl call.
7493         (gen_call_site_die): New function.
7494         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
7495         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
7496         (dwarf2out_function_decl): Clear call_arg_locations,
7497         call_arg_loc_last, set call_site_count and tail_call_site_count
7498         to -1 and free block_map.
7499         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
7500         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
7501         followed by any real instructions.
7502         (dwarf2out_begin_function): Set call_site_count and
7503         tail_call_site_count to 0.
7504         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
7505         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
7506         attempt to force a DIE for it and worst case remove the attribute.
7507         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
7508         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
7509         the decl itself.
7510         * var-tracking.c: Include tm_p.h.
7511         (vt_stack_adjustments): For calls call note_register_arguments.
7512         (argument_reg_set): New variable.
7513         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
7514         ensure the VALUE is resolved.
7515         (call_arguments): New variable.
7516         (prepare_call_arguments): New function.
7517         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
7518         (struct expand_loc_callback_data): Add ignore_cur_loc field.
7519         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
7520         always use the best expression.
7521         (vt_expand_loc): Add ignore_cur_loc argument.
7522         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
7523         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
7524         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
7525         note for all calls.
7526         (vt_add_function_parameter): Use cselib_lookup_from_insn.
7527         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
7528         argument.  Don't call cselib_preserve_only_values and
7529         cselib_reset_table.
7530         (note_register_arguments): New function.
7531         (vt_initialize): Compute argument_reg_set.  Call
7532         vt_add_function_parameters before processing basic blocks instead of
7533         afterwards.  For calls call prepare_call_arguments before calling
7534         cselib_process_insn.
7535         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
7536         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
7537         (var-tracking.o): Depend on $(TM_P_H).
7538         * cfglayout.h (insn_scope): New prototype.
7539         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
7540         * cfglayout.c (insn_scope): No longer static.
7541         * insn-notes.def (CALL_ARG_LOCATION): New.
7542         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
7543         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
7544         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
7545         nothing for DECL_EXTERNAL BLOCK_VARS.
7547 2011-03-16  Alan Modra  <amodra@gmail.com>
7549         PR target/45844
7550         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
7551         create invalid offset address for vsx splat insn.
7552         * config/rs6000/predicates.md (splat_input_operand): New.
7553         * config/rs6000/vsx.md (vsx_splat_*): Use it.
7555 2011-03-15  Xinliang David Li  <davidxl@google.com>
7557         PR c/47837
7558         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
7559         (normalize_preds): New function.
7560         (is_use_properly_guarded): Normalize def predicates.
7562 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7564         PR target/46788
7565         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
7566         in the output template.
7568 2011-03-15  Richard Guenther  <rguenther@suse.de>
7570         PR middle-end/47650
7571         * tree-pretty-print.c (dump_function_declaration): Properly
7572         dump unprototyped and varargs function types.
7574 2011-03-15  Richard Guenther  <rguenther@suse.de>
7576         PR tree-optimization/13954
7577         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
7578         and friends.
7580 2011-03-15  Richard Guenther  <rguenther@suse.de>
7582         PR tree-optimization/48037
7583         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
7584         selects into BIT_FIELD_REFs.
7585         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
7586         vector select.
7588 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
7590         PR tree-optimization/48129
7591         * builtins.c (fold_builtin_snprintf): Convert to type of
7592         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
7593         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
7595 2011-03-15  Richard Guenther  <rguenther@suse.de>
7597         PR tree-optimization/41490
7598         * tree-ssa-dce.c (propagate_necessity): Handle returns without
7599         value but with VUSE.
7600         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
7601         return statements.
7602         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
7603         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
7604         * tree-tailcall.c (find_tail_calls): Ignore returns.
7606 2011-03-15  Richard Guenther  <rguenther@suse.de>
7608         PR middle-end/48031
7609         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
7610         or variable-indexed array accesses when in gimple form.
7612 2011-03-15  Richard Guenther  <rguenther@suse.de>
7614         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
7616 2011-03-15  Alan Modra  <amodra@gmail.com>
7618         PR target/48032
7619         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
7620         presume symbol_refs without a symbol_ref_decl are suitably
7621         aligned, nor other trees we may see here.  Handle anchor symbols.
7622         (legitimate_constant_pool_address_p): Comment.  Add mode param.
7623         Check cmodel=medium addresses.  Adjust all calls.
7624         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
7625         creating cmodel=medium optimized access to locals.
7626         * config/rs6000/constraints.md (R): Pass QImode to
7627         legitimate_constant_pool_address_p.
7628         * config/rs6000/predicates.md (input_operand): Pass mode to
7629         legitimate_constant_pool_address_p.
7630         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
7631         Update prototype.
7633 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7635         PR target/48053
7636         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
7637         64-bit constants being loaded into registers other than GPRs such
7638         as loading 0 into a VSX register.
7640 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7642         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
7644 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7646         PR middle-end/47917
7647         * builtins.c (fold_builtin_snprintf): New function.
7648         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
7649         (fold_builtin_4): Likewise.
7651         PR middle-end/38878
7652         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7653         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
7654         and C - X == X also strip nops from +/-/p+ operand.
7655         When optimizing -X == C, fold C to arg0's type.
7657         PR debug/47946
7658         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7659         emit it as add_AT_int instead of add_AT_unsigned.
7661 2011-03-14  Tom Tromey  <tromey@redhat.com>
7663         * unwind-dw2.c: Include sys/sdt.h if it exists.
7664         (_Unwind_DebugHook): Use STAP_PROBE2.
7665         * config.in, configure: Rebuild.
7666         * configure.ac: Check for sys/sdt.h.
7668 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
7670         * config/i386/i386.md (ROUND_FLOOR): New constant.
7671         (ROUND_CEIL): Ditto.
7672         (ROUND_TRUNC): Ditto.
7673         (ROUND_MXCSR): Ditto.
7674         (ROUND_NO_EXC): Ditto.
7675         (rint<mode>2): Use new defines instead of numerical constants.
7676         (floor<mode>2): Ditto.
7677         (ceil<mode>2): Ditto.
7678         (btrunc<mode>2): Ditto.
7679         * config/i386/i386-builtin-types.def: Define ROUND function type
7680         aliases.
7681         * config/i386/i386.c (enum ix86_builtins): Add
7682         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7683         (struct builtin_description): Add
7684         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7685         (ix86_expand_sse_round): New static function.
7686         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7687         function types.
7688         (ix86_builtin_vectorized_function): Handle
7689         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7691 2011-03-14  Tom Tromey  <tromey@redhat.com>
7693         * c-parser.c (c_parser_asm_string_literal): Clear
7694         warn_overlength_strings.
7696 2011-03-14  Tom Tromey  <tromey@redhat.com>
7698         * c-parser.c (disable_extension_diagnostics): Save
7699         warn_overlength_strings.
7700         (restore_extension_diagnostics): Restore warn_overlength_strings.
7702 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7704         * BASE-VER: Change to 4.7.0.
7706 2011-03-14  Richard Guenther  <rguenther@suse.de>
7708         PR middle-end/48098
7709         * tree.c (build_vector_from_val): Adjust assert to requirements
7710         and reality.
7712 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7714         PR bootstrap/48102
7715         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7717 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
7719         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7720         terms of target_flags_explicit. Adjust copyright year.
7722         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7723         * config/rs6000/t-freebsd: New file. Add override for
7724         LIB2FUNCS_EXTRA.
7726 2011-03-13  Chris Demetriou  <cgd@google.com>
7728         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7729         (-fno-diagnostics-show-option): this, to reflect current default.
7730         (-Werror=): Update text about -fno-diagnostics-show-option.
7732 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
7734         PR target/48053
7735         * config/rs6000/predicates.md (easy_vector_constant_add_self,
7736         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7737         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7738         mode is not V2DImode or V2DFmode.
7739         (vspltis_constant): Do not handle V2DImode and V2DFmode.
7740         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7741         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7742         registers to 0.
7743         (movdi_internal64): Likewise.
7745 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
7747         PR tree-optimization/47127
7748         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7749         parameter.
7750         (set_cloog_options): Same.
7751         (scop_to_clast): Same.
7752         (print_clast_stmt): Do not call cloog_state_malloc and
7753         cloog_state_free.
7754         (print_generated_program): Same.
7755         (gloog): Same.
7756         * graphite-clast-to-gimple.h (cloog_state): Declared.
7757         (scop_to_clast): Adjust declaration.
7758         * graphite.c (cloog_state): Defined here.
7759         (graphite_initialize): Call cloog_state_malloc.
7760         (graphite_finalize): Call cloog_state_free.
7762 2011-03-11  Jason Merrill  <jason@redhat.com>
7764         * attribs.c (lookup_attribute_spec): Take const_tree.
7765         * tree.h: Adjust.
7767 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
7769         * config/sparc/sparc.c (sparc_option_override): Use
7770         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7772 2011-03-11  Richard Guenther  <rguenther@suse.de>
7774         PR tree-optimization/48067
7775         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7776         multiplication result will be only used once on the target
7777         stmt.
7779 2011-03-11  Richard Guenther  <rguenther@suse.de>
7781         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7783 2011-03-11  Richard Guenther  <rguenther@suse.de>
7785         PR lto/48073
7786         * tree.c (find_decls_types_r): Do not walk types only reachable
7787         from IDENTIFIER_NODEs.
7789 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7791         PR middle-end/48044
7792         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7793         all vnode->force_output nodes as needed.
7795 2011-03-11  Jason Merrill  <jason@redhat.com>
7797         PR c++/48069
7798         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7799         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7801 2011-03-11  Martin Jambor  <mjambor@suse.cz>
7803         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7804         cgraph_node.
7806 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7808         PR tree-optimization/48063
7809         * ipa-inline.c (cgraph_decide_inlining): Don't try to
7810         inline functions called once if !tree_can_inline_p (node->callers).
7812 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
7814         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7815         extra_objs.
7816         * config/score/score3.c: Delete.
7817         * config/score/score3.h: Delete.
7818         * config/score/mul-div.S: Delete.
7819         * config/score/sfp-machine.h: Add new file.
7820         * config/score/constraints.md: Add new file.
7821         * config/score/t-score-softfp: Add new file.
7822         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7823         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7824         (score7_extra_constraint): Delete.
7825         (score7_option_override): Remove unused code.
7826         * config/score/score.c: Remove score3 and score5 define and code.
7827         * config/score/score.h: Remove score3 and score5 define and code.
7828         * config/score/score.md: Remove score3 template and unusual insn.
7829         * config/score/score.opt: Remove score3 and score5 options.
7831 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7833         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7834         when _HPUX_SOURCE is defined.
7835         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7837 2011-03-10  Jason Merrill  <jason@redhat.com>
7839         PR c++/48029
7840         * stor-layout.c (layout_type): Don't set structural equality
7841         on arrays of incomplete type.
7842         * tree.c (type_hash_eq): Handle comparing them properly.
7844 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
7846         PR debug/48043
7847         * config/s390/s390.c (s390_delegitimize_address): Make sure the
7848         result mode matches original rtl mode.
7850 2011-03-10  Nick Clifton  <nickc@redhat.com>
7852         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7853         (andsi3, andsi3_flags): Fix timings for three operand alternative.
7855 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
7857         PR rtl-optimization/47866
7858         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7859         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7860         if target wasn't scalar.
7861         * function.c (assign_stack_temp_for_type): Assert that neither
7862         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7863         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7864         macro.
7865         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7867 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7869         * config/s390/s390-protos.h (s390_label_align): New prototype.
7870         * config/s390/s390.c (s390_label_align): New function.
7871         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7873 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7875         PR target/47755
7876         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7877         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
7878         (output_vec_const_move): Ditto.
7880 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
7882         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7883         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7884         * config/mips/mips.c (mips_preferred_reload_class): Make static.
7885         Change 'rclass' argument and result type to reg_class_t.
7886         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7888 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
7890         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7891         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7892         (TARGET_MEMORY_MOVE_COST): Define.
7893         (avr_register_move_cost, avr_memory_move_cost): New Functions.
7895 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
7897         PR debug/47881
7898         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7899         removed anything.
7901         PR tree-optimization/48022
7902         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7903         for EQ/NE_EXPR.
7905 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
7907         PR debug/47991
7908         * var-tracking.c (find_use_val): Return NULL for
7909         cui->sets && cui->store_p BLKmode MEMs.
7911 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
7913         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7914         Remove.
7915         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7916         xstormy16_print_operand_address): Remove.
7917         * config/stormy16/stormy16.c (xstormy16_print_operand,
7918         xstormy16_print_operand_address): Make static.
7919         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7921 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
7923         PR target/47862
7924         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7925         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7926         before definition.
7928 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
7930         PR bootstrap/48000
7931         * cfgloopmanip.c (fix_bb_placements): Return immediately
7932         if FROM is BASE_LOOP's header.
7934 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
7936         * gimplify.c (gimplify_function_tree): Fix building calls
7937         to __builtin_return_address.
7939 2011-03-07  Alan Modra  <amodra@gmail.com>
7941         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7942         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7943         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7944         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7945         return_mode args.
7946         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7947         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7948         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7949         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7950         * config/rs6000/rs6000.c
7951         (rs6000_elf_end_indicate_exec_stack): Rename to..
7952         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
7953         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
7954         (rs6000_file_start): ..here.
7955         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7956         file scope variables.
7957         (call_ABI_of_interest): New function.
7958         (init_cumulative_args): Set above vars when function return value
7959         is a float, vector, or small struct.
7960         (rs6000_function_arg_advance_1): Likewise for function args.
7961         (rs6000_va_start): Set rs6000_passes_float if variable arg function
7962         references float args.
7964 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
7966         * doc/cfg.texi: Remove "See" before @ref.
7967         * doc/invoke.texi: Likewise.
7969 2011-03-05  Jason Merrill  <jason@redhat.com>
7971         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7973 2011-03-05  Anthony Green  <green@moxielogic.com>
7975         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7977 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
7979         PR rtl-optimization/47899
7980         * cfgloopmanip.c (fix_bb_placements): Fix first argument
7981         to flow_loop_nested_p when moving the loop upward.
7983 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
7985         PR target/47719
7986         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
7988 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
7990         PR tree-optimization/47967
7991         * ipa-cp.c (build_const_val): Return NULL instead of creating
7992         VIEW_CONVERT_EXPR for mismatching sizes.
7993         (ipcp_create_replace_map): Return NULL if build_const_val failed.
7994         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7995         give up on versioning.
7997 2011-03-05  Alan Modra  <amodra@gmail.com>
7999         PR target/47986
8000         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8001         full cmodel medium/large lo_sum + high addresses.
8003 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8005         * config/s390/s390.c (s390_decompose_address): Reject non-literal
8006         pool references in UNSPEC_LTREL_OFFSET.
8008 2011-03-04  Jan Hubicka  <jh@suse.cz>
8010         PR lto/47497
8011         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
8012         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
8013         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
8014         Add node pointers.
8015         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
8016         cgraph_add_thunk): Add node pointers.
8017         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
8018         associated to right node.
8019         (input_node): Update use of cgraph_same_body_alias
8020         and cgraph_add_thunk.
8022 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
8024         * config/i386/i386.opt (mprefer-avx128): New flag.
8025         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
8026         modes when the flag -mprefer-avx128 is on.
8028 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
8030         * dwarf2out.c (compare_loc_operands): Fix address handling.
8032 2011-03-04  Alan Modra  <amodra@gmail.com>
8034         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
8036 2011-03-04  Richard Guenther  <rguenther@suse.de>
8038         PR middle-end/47968
8039         * expmed.c (extract_bit_field_1): Prefer vector modes that
8040         vec_extract patterns can handle.
8042 2011-03-04  Richard Guenther  <rguenther@suse.de>
8044         PR middle-end/47975
8045         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
8047 2011-03-04  Richard Henderson  <rth@redhat.com>
8049         * explow.c (emit_stack_save): Remove 'after' parameter.
8050         (emit_stack_restore): Likewise.
8051         * expr.h: Update to match.
8052         * builtins.c, calls.c, stmt.c: Likewise.
8053         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
8054         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
8055         * function.c (expand_function_end): Insert the emit_stack_save
8056         sequence before parm_birth_insn instead of after.
8058 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
8060         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
8061         (ssse3_pmaddubsw128): Ditto.
8062         (ssse3_pmaddubsw): Ditto.
8064 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
8066         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
8068 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
8070         PR c/47963
8071         * gimplify.c (omp_add_variable): Only call omp_notice_variable
8072         on TYPE_SIZE_UNIT if it is a DECL.
8074         PR debug/47283
8075         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
8076         first operand is not is_gimple_mem_ref_addr, try to fold it.
8077         If the operand still isn't is_gimple_mem_ref_addr, clear
8078         MEM_EXPR on op0.
8080 2011-03-03  Richard Guenther  <rguenther@suse.de>
8082         PR middle-end/47283
8083         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
8084         match comment.
8085         (refs_may_alias_p_1): For release branches return true if
8086         we are confused by our input.
8088 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8090         * config/s390/s390.c (s390_function_value): Rename to ...
8091         (s390_function_and_libcall_value): ... this.
8092         (s390_function_value): New function.
8093         (s390_libcall_value): New function.
8094         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
8095         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
8096         target macro definitions.
8097         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
8099 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
8101         * config/i386/freebsd64.h (CC1_SPEC): Define.
8102         * config/i386/linux64.h (CC1_SPEC): Define.
8103         * config/i386/x86-64.h (CC1_SPEC): Don't define.
8105 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
8107         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8108         Remove.
8109         * config/stormy16/stormy16.c: Include reload.h.
8110         (xstormy16_memory_move_cost): New function.
8111         (TARGET_MEMORY_MOVE_COST): Define.
8113 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
8115         PR rtl-optimization/47925
8116         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
8117         with side effects.  Remove the more-specific check for volatile asms.
8119 2011-03-02  Alan Modra  <amodra@gmail.com>
8121         PR target/47935
8122         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
8123         toc relative addresses for valid offsets.
8125 2011-03-01  Richard Guenther  <rguenther@suse.de>
8127         PR tree-optimization/47890
8128         * tree-vect-loop.c (get_initial_def_for_induction): Set
8129         related stmt properly.
8131 2011-03-01  Richard Guenther  <rguenther@suse.de>
8133         PR lto/47924
8134         * lto-streamer.c (lto_record_common_node): Also register
8135         the canonical type.
8137 2011-03-01  Richard Guenther  <rguenther@suse.de>
8139         PR lto/46911
8140         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8141         Do not stream DECL_ABSTRACT_ORIGIN.
8142         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
8143         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
8144         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8145         Do not stream DECL_ABSTRACT_ORIGIN.
8146         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
8147         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
8149 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
8151         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
8152         FUNCTION_VALUE_REGNO_P): Remove.
8153         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
8154         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
8155         Add 'outgoing' argument.
8156         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
8157         function.
8158         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8159         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8161 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
8163         PR debug/28047
8164         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
8165         (lookup_filename): Likewise.
8166         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
8168 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
8169             Jakub Jelinek  <jakub@redhat.com>
8171         PR middle-end/47893
8172         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
8173         (assign_stack_local_1): Change last argument type to int.
8174         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
8175         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
8176         don't record padding space into frame_space_list nor use those areas.
8177         (assign_stack_local): Adjust caller.
8178         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
8179         of assign_stack_local, pass 0 as last argument.
8180         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
8181         callers.
8183 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
8185         PR debug/47283
8186         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
8187         Use target address_mode and pointer_mode hooks instead of hardcoded
8188         Pmode and ptr_mode.  Handle some simple cases of extending if
8189         POINTERS_EXTEND_UNSIGNED < 0.
8190         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
8191         Call convert_debug_memory_address.
8192         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
8193         convert_debug_memory_address.
8195         PR middle-end/46790
8196         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
8197         * configure: Regenerated.
8198         * config.in: Regenerated.
8199         * varasm.c (default_function_section): Return NULL
8200         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
8202 2011-02-28  Martin Jambor  <mjambor@suse.cz>
8204         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
8205         the description to match the printed values.
8207 2011-02-28  Richard Guenther  <rguenther@suse.de>
8209         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
8210         of the copied scope tree.
8212 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8214         * doc/extend.texi (Function Attributes): Avoid deeply (and
8215         wrongly) nested tables.
8217 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
8219         PR middle-end/47903
8220         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
8221         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
8222         r isn't op0 nor op1.
8224 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
8226         * config/avr/avr.md: Remove magic comment for emacs.
8228 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
8230         PR target/45261
8231         * config/avr/avr.c (avr_option_override): Use error on bad options.
8232         (avr_help): New function.
8233         (TARGET_HELP): Define.
8235 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
8237         PR target/42240
8238         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
8239         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
8241 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
8243         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
8244         (ARM Options): Ditto.
8245         (i386 and x86-64 Options): Ditto.
8246         (RX Options): Ditto.
8247         (SPARC Options): Ditto.
8249 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
8251         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
8252         FreeBSD 6 and later.  Generally use cpu generic.
8254 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
8256         * doc/cpp.texi: Update copyright years.
8258 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
8260         PR target/46898
8261         * config/lm32/lm32.md (ashrsi3): Added needed variable.
8263 2011-02-25  Jon Beniston  <jon@beniston.com>
8265         PR target/46898
8266         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
8267         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
8268         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
8269         (lm32_block_move_inline): Add type cast to remove warning.
8270         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
8271         (gen_int_relational): Move declarations to start of function.
8273 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
8275         PR tree-optimization/45470
8276         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
8277         can throw internally only.
8278         * tree-vect-stmts.c (vectorizable_call): Likewise.
8280 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
8282         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
8283         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8284         * config/stormy16/stormy16-protos.h
8285         (xstormy16_preferred_reload_class): Remove.
8286         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
8287         static. Change 'rclass' argument and return type to reg_class_t.
8288         (TARGET_PREFERRED_RELOAD_CLASS,
8289         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8291 2011-02-24  Richard Guenther  <rguenther@suse.de>
8293         * lto-streamer-in.c (input_bb): Do not find referenced vars
8294         in debug statements.
8296 2011-02-23  Jason Merrill  <jason@redhat.com>
8298         * common.opt (fabi-version): Document v5 and v6.
8300 2011-02-23  Richard Guenther  <rguenther@suse.de>
8302         PR tree-optimization/47849
8303         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
8305 2011-02-23  Jie Zhang  <jie@codesourcery.com>
8307         * opts-common.c (decode_cmdline_option): Print empty string
8308         argument as "" in decoded->orig_option_with_args_text.
8309         * gcc.c (execute): Print empty string argument as ""
8310         in the verbose output.
8311         (do_spec_1): Keep empty string argument.
8313 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
8315         * config.gcc: Declare score-* and crx-* obsolete.
8317 2011-02-23  Jie Zhang  <jie@codesourcery.com>
8319         PR rtl-optimization/47763
8320         * web.c (web_main): Ignore naked clobber when replacing register.
8322 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
8324         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8325         Remove.
8327 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
8329         PR doc/47848
8330         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
8332 2011-02-22  Mike Stump  <mikestump@comcast.net>
8334         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
8335         assembler.
8336         * configure: Regenerate.
8338 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
8340         PR rtl-optimization/46002
8341         * ira-color.c (update_copy_costs): Change class intersection
8342         test to reg_class_contents[] test of 'hard_regno'.
8344 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
8346         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
8347         than Driver option.
8348         * config/hpux11.opt (mt): Likewise.
8349         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
8350         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
8351         * config/vax/elf.opt (mno-asm-pic): Likewise.
8352         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
8354 2011-02-21  Mike Stump  <mikestump@comcast.net>
8356         PR target/47822
8357         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
8358         tree so we can get save the type.
8359         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
8360         for CFString instead of trying to use past the end of the builtins.
8361         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
8362         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
8363         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
8364         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
8365         Rename to darwin_builtin_cfstring.
8366         (darwin_init_cfstring_builtins): Return the built type.
8368 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
8370         PR target/47840
8371         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
8372         (_mm256_insert_epi64): Use _mm_insert_epi64.
8374 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
8376         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8377         * config/stormy16/stormy16-protos.h
8378         (xstormy16_mode_dependent_address_p): Remove.
8379         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
8380         Make static. Change return type to bool. Change argument type to
8381         const_rtx. Remove dead code.
8382         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8384 2011-02-21  Richard Guenther  <rguenther@suse.de>
8386         PR lto/47820
8387         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8388         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
8389         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
8390         TUs context.
8391         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8392         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
8394 2011-02-20  Richard Guenther  <rguenther@suse.de>
8396         PR lto/47822
8397         * tree.c (free_lang_data_in_decl): Clean builtins from
8398         the TU decl BLOCK_VARS.
8400 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
8402         PR debug/47620
8403         PR debug/47630
8404         * haifa-sched.c (fix_tick_ready): Skip tick computation
8405         for debug insns.
8407 2011-02-19  Richard Guenther  <rguenther@suse.de>
8409         PR lto/47647
8410         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
8411         Remove lazy BLOCK_VARS streaming.
8412         (lto_input_ts_block_tree_pointers): Likewise.
8413         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
8415 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
8417         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
8419 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
8421         * config/i386/biarch32.h, config/i386/mach.h,
8422         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
8424 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
8426         PR target/47800
8427         * config/i386/i386.md (peephole2 for shift and plus): Use
8428         operands[1] original mode in the first insn.
8430 2011-02-18  Mike Stump  <mikestump@comcast.net>
8432         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8434 2011-02-18  Jan Hubicka  <jh@suse.cz>
8436         PR middle-end/47788
8437         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
8438         to zero when the function is not inlinable at all.
8440 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8442         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
8443         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8444         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
8445         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
8446         * config/pa/t-pa64: Likewise.
8447         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8449 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
8451         PR driver/47787
8452         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
8454 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8456         PR target/47792
8457         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
8459 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
8461         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8462         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
8463         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
8464         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8465         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
8466         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
8467         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
8468         m32r_load_postinc_p, m32r_store_preinc_predec_p,
8469         m32r_legitimate_address_p): New functions.
8470         * config/m32r/constraints.md (constraint "S"): Don't use
8471         STORE_PREINC_PREDEC_P.
8472         (constraint "U"): Don't use LOAD_POSTINC_P.
8474 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
8476         PR rtl-optimization/46178
8477         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
8478         compute ira_hard_regno_cover_class[].
8480 2011-02-18  Richard Guenther  <rguenther@suse.de>
8482         PR lto/47798
8483         * lto-streamer.h (lto_global_var_decls): Declare.
8484         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
8485         statics for global var processing.
8487 2011-02-18  Richard Guenther  <rguenther@suse.de>
8489         PR tree-optimization/47737
8490         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
8491         edge dominance check.
8493 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
8495         PR debug/47780
8496         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
8497         avoid invalid rtx sharing.
8499 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
8501         * doc/cpp.texi (Obsolete Features): Add background on the
8502         origin of assertions.
8504 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
8506         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
8507         objc_abi == 2.
8508         * config/darwin.c (output_objc_section_asm_op): Added support for
8509         ABI v1 and v2.
8510         (is_objc_metadata): New.
8511         (darwin_objc2_section): New.
8512         (darwin_objc1_section): New.
8513         (machopic_select_section): Added support for ABI v1 and v2.
8514         (darwin_emit_objc_zeroed): New.
8515         (darwin_output_aligned_bss): Detect objc metadata and treat it
8516         appropriately.
8517         (darwin_asm_output_aligned_decl_common): Same.
8518         (darwin_asm_output_aligned_decl_local): Same.
8519         * config/darwin-sections.def: Updated for ABI v1 and v2.
8520         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
8521         compiling Objective-C code for the NeXT runtime, default to using
8522         ABI version 0 for 32-bit, and version 2 for 64-bit.
8524 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8526         * common.opt (optimize_fast): New Variable.
8527         * opts.c (default_options_optimization): Use opts->x_optimize_fast
8528         instead of local variable ofast.
8530 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
8532         * doc/invoke.texi (fobjc-abi-version): Documented.
8533         (fobjc-nilcheck): Documented.
8534         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
8535         version.
8537 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8539         PR driver/47390
8540         * common.opt (export-dynamic): New Driver option.
8541         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
8543 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8545         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
8547 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
8548             Jan Hubicka  <jh@suse.cz>
8550         PR debug/47106
8551         PR debug/47402
8552         * cfgexpand.c (account_used_vars_for_block): Remove.
8553         (estimated_stack_frame_size): Use referenced vars.
8554         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
8555         that were referenced in the original function.  Test src_fn
8556         rather than cfun.  Drop redundant get_var_ann.
8557         (setup_one_parameter): Drop redundant get_var_ann.
8558         (declare_return_variable): Likewise.
8559         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
8560         (copy_arguments_for_versioning): Drop redundant get_var_ann.
8561         * ipa-inline.c (compute_inline_parameters): Do not compute
8562         disregard_inline_limits here.
8563         (compute_inlinable_for_current, pass_inlinable): New.
8564         (pass_inline_parameters): Require PROP_referenced_vars.
8565         * cgraphunit.c (cgraph_process_new_functions): Don't run
8566         compute_inline_parameters explicitly unless function is in SSA form.
8567         (cgraph_analyze_function): Set .disregard_inline_limits.
8568         * tree-sra.c (convert_callers): Compute inliner parameters
8569         only for functions already in SSA form.
8571 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8573         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
8574         -mlittle-endian-data.
8576 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8578         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
8579         -mno-fpu, not -fpu and -no-fpu.
8580         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
8581         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
8583 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
8585         PR target/43653
8586         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
8587         input reload with PLUS RTX.
8589 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8591         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
8592         of InverseVar(MDMX).
8594 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8596         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
8597         --m4-340.
8599 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8601         * config/mn10300/mn10300.opt (mno-crt0): New.
8603 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8605         * config/m68k/uclinux.opt (static-libc): New Driver option.
8607 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8609         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
8611 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8613         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
8614         %{muser-extend-enabled}.
8616 2011-02-16  Richard Guenther  <rguenther@suse.de>
8618         PR tree-optimization/47738
8619         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
8620         the TODO from tree_predictive_commoning.
8622 2011-02-15  Jeff Law  <law@redhat.com>
8624         Revert
8625         2011-01-25  Jeff Law  <law@redhat.com>
8627         PR rtl-optimization/37273
8628         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8629         handle them like argument loads from stack slots.  Do not double
8630         count memory for memory constants and argument loads from stack slots.
8632 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8634         PR middle-end/47725
8635         * combine.c (cant_combine_insn_p): Revert the last change.
8637 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
8639         PR target/47755
8640         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
8641         mode for vector constants.  Remove code that checks for TImode.
8643 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8645         PR debug/47106
8646         PR debug/47402
8647         * cgraph.h (compute_inline_parameters): Return void.
8648         * ipa-inline.c (compute_inline_parameters): Adjust.
8650 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8652         PR debug/47106
8653         PR debug/47402
8654         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8655         rather than decl.
8656         * cfgexpand.c (estimated_stack_frame_size): Likewise.
8657         * ipa-inline.c (compute_inline_parameters): Adjust.
8659 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8661         PR debug/47106
8662         PR debug/47402
8663         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8664         Adjust all users.  Pass FN to...
8665         * tree-flow-inline.h (first_referenced_var): ... this.  Add
8666         fn argument.
8667         * ipa-struct-reorg.c: Adjust.
8668         * tree-dfa.c: Adjust.
8669         * tree-into-ssa.c: Adjust.
8670         * tree-sra.c: Adjust.
8671         * tree-ssa-alias.c: Adjust.
8672         * tree-ssa-live.c: Adjust.
8673         * tree-ssa.c: Adjust.
8674         * tree-ssanames.c: Adjust.
8675         * tree-tailcall.c: Adjust.
8677 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8679         PR debug/47106
8680         PR debug/47402
8681         * tree-flow.h (referenced_var_lookup): Add fn parameter.
8682         Adjust all callers.
8683         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8684         * tree-flow-inline.h: Adjust.
8685         * gimple-pretty-print.c: Adjust.
8686         * tree-into-ssa.c: Adjust.
8687         * tree-ssa.c: Adjust.
8688         * cfgexpand.c: Adjust.
8690 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8692         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8693         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8694         (EXTRA_CONSTRAINT): Delete.
8695         * config/iq2000/constraints.md: New file.
8696         * config/iq2000/iq2000.md: Include it.
8697         (define_insn ""): Delete.
8698         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8699         unsupported constraint letters from patterns.
8700         (call_value, call_value_internal1): Likewise.
8701         (call_value_multiple_internal1): Likewise.
8703 2011-02-15  Nick Clifton  <nickc@redhat.com>
8705         * config/mn10300/mn10300.c: Include tm-constrs.h.
8706         (struct liw_data): New data structure describing an LIW candidate
8707         instruction.
8708         (extract_bundle): Use struct liw_data.  Allow small integer
8709         operands for some instructions.
8710         (check_liw_constraints): Use struct liw_data.  Remove swapped
8711         parameter.  Add comments describing the checks.  Fix bug when
8712         assigning the source of liw1 to the source of liw2.
8713         (liw_candidate): Delete.  Code moved into extract_bundle.
8714         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
8715         before swapping.
8716         * config/mn10300/predicates.md (liw_operand): New predicate.
8717         Allows registers and small integer constants.
8718         * config/mn10300/constraints.md (O): New constraint.  Accetps
8719         integers in the range -8 to +7 inclusive.
8720         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8721         for moving a small integer into a register.  Give this alternative
8722         LIW attributes.
8723         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8724         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8725         using the J,K,L and M constraints,
8726         (liw): Remove SI mode on second operands to allow for HI and QI
8727         mode values.
8728         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
8729         instruction.
8731 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8733         PR middle-end/47725
8734         * combine.c (cant_combine_insn_p): Check zero/sign extended
8735         hard registers.
8737 2011-02-15  Richard Guenther  <rguenther@suse.de>
8739         PR tree-optimization/47743
8740         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8741         for a non-type-compatible VN lookup bail out.
8743 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8745         * config/fr30/constraints.md: New file.
8746         * config/fr30/fr30.md: Include it.
8747         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8748         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8749         (EXTRA_CONSTRAINT): Delete.
8751 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8753         * config/frv/constraints.md: New file.
8754         * config/frv/predicates.md: Include it.
8755         * config/frv/frv.c (reg_class_from_letter): Delete.
8756         (frv_option_override): Don't initialize it.
8757         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8758         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8759         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8760         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8761         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8762         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8763         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8764         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8765         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8766         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8767         (REG_CLASS_FROM_CONSTRAINT): Delete.
8769 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
8771         PR middle-end/47581
8772         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8773         if frame size is 0 in a leaf function.
8775 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8777         PR pch/14940
8778         * config/alpha/host-osf.c: New file.
8779         * config/alpha/x-osf: New file.
8780         * config.host (alpha*-dec-osf*): Use it.
8782 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8784         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8785         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8786         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8787         (rx_mode_dependent_address_p): ...this. Make static. Change argument
8788         type to const_rtx.
8789         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8791 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8793         * config/stormy16/constraints.md: New file.
8794         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8795         Use satisfies_constraint_Q and satisfies_constraint_R.
8796         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8797         Delete.
8798         (xstormy16_legitiamte_address_p): Declare.
8799         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8800         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8801         (EXTRA_CONSTRAINT): Delete.
8802         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8803         Un-staticize.
8804         (xstormy16_extra_constraint_p): Delete.
8806 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
8808         PR tree-optimization/46494
8809         * loop-unroll.c (split_edge_and_insert): Adjust comment.
8810         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8811         (pass_rtl_loop_done): Add TODO_verify_flow.
8812         * fwprop.c (pass_rtl_fwprop): Likewise.
8813         * modulo-sched.c (pass_sms): Likewise.
8814         * tree-ssa-dom.c (pass_dominator): Likewise.
8815         * tree-ssa-loop-ch.c (pass_ch): Likewise.
8816         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8817         (pass_tree_loop_done): Likewise.
8818         * tree-ssa-pre.c (execute_pre): Likewise.
8819         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8820         * tree-ssa-sink.c (pass_sink_code): Likewise.
8821         * tree-vrp.c (pass_vrp): Likewise.
8823 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8825         * config/v850/constraints.md: New file.
8826         * config/v850/v850.md: Include it.
8827         * config/v850/predicates.md (reg_or_0_operand): Use
8828         satisfies_constraint_G.
8829         (special_symbolref_operand): Use satisfies_constraint_K.
8830         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8831         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8832         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8833         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8834         (EXTRA_CONSTRAINT): Delete.
8835         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8836         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8837         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8839 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8841         PR target/47696
8842         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8843         description.
8845 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8847         * config/mcore/constraints.md: New file.
8848         * config/mcore/mcore.md: Include it.
8849         * config/mcore/mcore.c (reg_class_from_letter): Delete.
8850         * config/mcore/mcore.h (reg_class_from_letter): Delete.
8851         (REG_CLASS_FROM_LETTER): Delete.
8852         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8853         insn_const_int_ok_for_constraint.
8854         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8855         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8856         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8857         (EXTRA_CONSTRAINT): Delete.
8859 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8861         PR ada/41929
8862         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8863         (IS_SIGHANDLER): Define.
8864         (sparc64_is_sighandler): New function, split off from
8865         sparc64_fallback_frame_state.
8866         (sparc_is_sighandler): New function, split off from
8867         sparc_fallback_frame_state.
8868         (sparc64_fallback_frame_state): Merge with ...
8869         (sparc_fallback_frame_state): ... this into ...
8870         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8871         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
8872         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
8873         stack instead of hardcoded offsets.
8875 2011-02-14  Andriy Gapon  <avg@freebsd.org>
8877         PR target/45808
8878         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8880 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8882         * configure: Regenerate.
8884 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
8886         PR driver/45731
8887         * gcc.c (asm_options): Correct spec matching --target-help.
8889 2011-02-12  Martin Jambor  <mjambor@suse.cz>
8891         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8892         to gimple call error.
8894 2011-02-12  Mike Stump  <mikestump@comcast.net>
8896         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8897         comments in backslash regions.
8899 2011-02-12  Mike Stump  <mikestump@comcast.net>
8900             Jakub Jelinek  <jakub@redhat.com>
8901             Iain Sandoe  <iains@gcc.gnu.org>
8903         PR target/47324
8904         * dwarf2out.c (output_cfa_loc): When required, apply the
8905         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8906         (output_loc_sequence): Likewise.
8907         (output_loc_operands_raw): Likewise.
8908         (output_loc_sequence_raw): Likewise.
8909         (output_cfa_loc): Likewise.
8910         (output_loc_list): Suppress register number adjustment when
8911         calling output_loc_sequence()
8912         (output_die): Likewise.
8914 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
8916         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8917         Remove macros.
8918         * config/xtensa/xtensa.c (xtensa_register_move_cost,
8919         xtensa_memory_move_cost): New functions.
8920         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8922 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
8924         PR lto/47225
8925         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8926         in the current directory.
8927         * configure: Rebuilt.
8929 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8931         * config/darwin.c (darwin_override_options): Add a hunk missed
8932         from the commit of r168571.  Trim comment line lengths and
8933         correct indents of the preceding block.
8935 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8937         * gcc.c (driver_handle_option): Concatenate the argument to -F with
8938         the switch.
8940 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8942         * common.opt (nostartfiles): New Driver option.
8944 2011-02-11  Xinliang David Li  <davidxl@google.com>
8946         PR tree-optimization/47707
8947         * tree-chrec.c (convert_affine_scev): Keep type precision.
8949 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
8951         PR tree-optimization/47420
8952         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8954 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
8956         PR rtl-optimization/47614
8957         * rtl.h (check_for_inc_dec): Declare.
8958         * dse.c (check_for_inc_dec): Externalize...
8959         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8960         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8962 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8964         PR driver/47678
8965         * gcc.c (main): Do not compile inputs if there were errors in
8966         option handling.
8967         * opts-common.c (read_cmdline_option): Check for wrong language
8968         after other error checks.
8970 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
8972         * cgraph.c: Fix comment typos.
8973         * cgraph.h: Likewise.
8974         * cgraphunit.c: Likewise.
8975         * ipa-cp.c: Likewise.
8976         * ipa-inline.c: Likewise.
8977         * ipa-prop.c: Likewise.
8978         * ipa-pure-const.c: Likewise.
8979         * ipa-ref.c: Likewise.
8980         * ipa-reference.c: Likewise.
8982 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
8984         PR debug/47684
8985         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8987 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8989         PR testsuite/47400
8990         * doc/sourcebuild.texi (Require Support): Document
8991         dg-require-ascii-locale.
8993 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
8995         * doc/lto.texi (Write summary): Fix missing parentheses.
8997 2011-02-10  DJ Delorie  <dj@redhat.com>
8999         * config/m32c/m32c.c (m32c_option_override): Disable
9000         -fcombine-stack-adjustments until flag value tracking and compare
9001         optimization can be rewritten.
9003 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
9005         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
9006         PROCESSOR_POWER7.
9007         (PROCESSOR_DEFAULT64): Likewise.
9009 2011-02-10  Richard Henderson  <rth@redhat.com>
9011         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
9012         change from 2011-02-03.
9013         * config/rx/rx.c (flags_from_code): Likewise.
9014         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
9015         is valid, n/pz otherwise.
9016         (rx_select_cc_mode): Return CCmode if Y is not zero.
9018 2011-02-10  Richard Guenther  <rguenther@suse.de>
9020         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
9022 2011-02-10  Richard Guenther  <rguenther@suse.de>
9024         PR tree-optimization/47677
9025         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
9027 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
9029         PR target/47665
9030         * combine.c (make_compound_operation): Only change shifts into
9031         multiplication for SCALAR_INT_MODE_P.
9033 2011-02-10  Jie Zhang  <jie@codesourcery.com>
9035         PR testsuite/47622
9036         Revert
9037         2011-02-05  Jie Zhang  <jie@codesourcery.com>
9038         PR debug/42631
9039         * web.c (entry_register): Don't clobber the number of the
9040         first uninitialized reference in used[].
9042 2011-02-09  Richard Guenther  <rguenther@suse.de>
9044         PR tree-optimization/47664
9045         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
9046         all edges again.
9048 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
9050         PR target/46481
9051         PR target/47032
9052         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
9053         PROCESSOR_POWER7.
9054         (PROCESSOR_DEFAULT64): Same.
9055         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
9057 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9059         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
9061 2011-02-09  Martin Jambor  <mjambor@suse.cz>
9063         PR middle-end/45505
9064         * tree-sra.c (struct access): New flags grp_scalar_read and
9065         grp_scalar_write.  Changed description of assignment read and write
9066         flags.
9067         (dump_access): Dump new flags, reorder all of them.
9068         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
9069         to detect multiple scalar reads.
9070         (analyze_access_subtree): Use the new scalar read write flags instead
9071         of the old flags.  Adjusted comments.
9073 2011-02-08  DJ Delorie  <dj@redhat.com>
9075         PR target/47548
9076         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
9077         patterns.
9079 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
9081         * config/m68k/uclinux.opt: New.
9082         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
9084 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
9086         * config/cris/elf.opt (sim): New Driver option.
9088 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
9090         * config/xtensa/elf.opt: New.
9091         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
9093 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
9095         * config/vax/elf.opt: New.
9096         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
9098 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
9100         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
9102 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
9104         * config/gnu-user.opt: New.
9105         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
9106         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
9107         *-*-uclinux*): Use gnu-user.opt.
9109 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
9111         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
9112         * config/i386/gnu.h (CPP_SPEC): Likewise.
9114 2011-02-08  Ian Lance Taylor  <iant@google.com>
9116         * common.opt (fcx-limited-range): Add SetByCombined flag.
9117         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
9118         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
9119         (fassociative-math, freciprocal-math): Likewise.
9120         (funsafe-math-optimizations): Likewise.
9121         * opth-gen.awk: Handle SetByCombined.
9122         * optc-gen.awk: Likewise.
9123         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
9124         (set_unsafe_math_optimizations_flags): Likewise.
9125         * doc/options.texi (Option properties): Document SetByCombined.
9127 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
9129         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
9130         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
9131         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
9132         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
9133         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
9135 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
9137         PR tree-optimization/46834
9138         PR tree-optimization/46994
9139         PR tree-optimization/46995
9140         * graphite-sese-to-poly.c (used_outside_reduction): New.
9141         (detect_commutative_reduction): Call used_outside_reduction.
9142         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
9143         translate_scalar_reduction_to_array only when at least one
9144         loop-phi/close-phi tuple has been detected.
9146 2011-02-08  Richard Guenther  <rguenther@suse.de>
9148         PR middle-end/47639
9149         * tree-vect-generic.c (expand_vector_operations_1): Update
9150         stmts here ...
9151         (expand_vector_operations): ... not here.  Cleanup EH info
9152         and the CFG if required.
9154 2011-02-08  Richard Guenther  <rguenther@suse.de>
9156         PR tree-optimization/47641
9157         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
9158         require type compatibility.
9160 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9162         * gimple-low.c (lower_function_body): Don't remove the location of
9163         the return statement here.
9164         (lower_gimple_return): Do it here instead but only if the return
9165         statement is actually used twice.
9167 2011-02-08  Richard Guenther  <rguenther@suse.de>
9169         PR tree-optimization/47632
9170         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
9171         unused up_to_stmt parameter, return whether cfg-cleanup is
9172         necessary, remove EH info properly.
9173         (forward_propagate_into_gimple_cond): Adjust caller.
9174         (forward_propagate_into_cond): Likewise.
9175         (forward_propagate_comparison): Likewise.
9176         (tree_ssa_forward_propagate_single_use_vars): Make
9177         forward_propagate_comparison case similar to the two others.
9179 2011-02-08  Nick Clifton  <nickc@redhat.com>
9181         * config/mn10300/mn10300.opt (mliw): New command line option.
9182         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
9183         (liw_bundling): New automaton.
9184         (liw): New attribute.
9185         (liw_op): New attribute.
9186         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
9187         (movsi_internal): Add LIW attributes.
9188         (andsi3): Likewise.
9189         (iorsi3): Likewise.
9190         (xorsi3): Likewise.
9191         (addsi3): Separate register and immediate alternatives.
9192         Add LIW attributes.
9193         (subsi3): Likewise.
9194         (cmpsi): Likewise.
9195         (aslsi3): Likewise.
9196         (lshrsi3): Likewise.
9197         (ashrsi3): Likewise.
9198         (liw): New pattern.
9199         * config/mn10300/mn10300.c (liw_op_names): New
9200         (mn10300_print_operand): Handle 'W' operand descriptor.
9201         (extract_bundle): New function.
9202         (check_liw_constraints): New function.
9203         (liw_candidate): New function.
9204         (mn10300_bundle_liw): New function.
9205         (mn10300_reorg): New function.
9206         (TARGET_MACHINE_DEPENDENT_REORG): Define.
9207         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
9208         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
9209         __LIW__ or __NO_LIW__.
9210         * doc/invoke.texi: Describe the -mliw command line option.
9212 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9214         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
9215         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9216         pthread_mutex_unlock): Remove.
9217         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
9218         * config/pa/t-pa64: Likewise.
9219         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
9220         shared libc if not linking against libpthread.
9221         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9223 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
9225         PR target/47558
9226         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
9227         on 10.6 and later to ensure that we always use the unwinder from
9228         the system.  Only add -no_compact_unwind when tarteting darwin
9229         10.6 or later.
9231 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
9233         PR target/46997
9234         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
9235         (vec_interleave_lowv2sf): Ditto.
9236         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
9237         (vec_extract_oddv2sf): Ditto.
9239 2011-02-07  Mike Stump  <mikestump@comcast.net>
9241         PR target/42333
9242         Add __ieee_divdc3 entry point.
9243         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
9244         entry point.
9245         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
9246         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
9247         * config/darwin.c (darwin_rename_builtins): Add.
9248         * config/darwin-protos.h (darwin_rename_builtins): Add.
9250 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
9252         PR target/47636
9253         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
9254         for the condition.
9256 2011-02-07  Mike Stump  <mikestump@comcast.net>
9258         * config/darwin.opt (mmacosx-version-min): Update default OS version.
9260 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
9262         PR target/47534
9263         * config/avr/libgcc.S (exit): Move .endfunc
9265 2011-02-07  Richard Guenther  <rguenther@suse.de>
9267         PR tree-optimization/47615
9268         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
9269         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
9270         (run_scc_vn): Initialize it.
9271         (visit_reference_op_load): Use it.
9272         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
9274 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9276         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
9277         DImode trapping arithmetic libfuncs.
9279 2011-02-07  Richard Guenther  <rguenther@suse.de>
9281         PR tree-optimization/47621
9282         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
9283         two duplicates ...
9284         (execute_update_addresses_taken): ... here.  Make it more
9285         conservative in what we accept.
9287 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
9289         * config/sparc/freebsd.h (ASM_SPEC): Define.
9290         * config/sparc/vxworks.h (ASM_SPEC): Define.
9292 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
9294         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9296 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
9298         * doc/invoke.texi: Remove reference to compiler internals from
9299         user documentation.
9301         * reg-notes.def: Remove REG_VALUE_PROFILE.
9302         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
9304 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
9306         PR middle-end/47610
9307         * varasm.c (default_section_type_flags): If decl is NULL,
9308         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
9310 2011-02-05  Jie Zhang  <jie@codesourcery.com>
9312         PR debug/42631
9313         * web.c (entry_register): Don't clobber the number of the
9314         first uninitialized reference in used[].
9316 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
9318         PR tree-optimization/46194
9319         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
9320         (build_classic_dist_vector_1): Do not represent classic distance
9321         vectors when the access functions are variating in different loops.
9323 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
9325         * config/mips/iris6.opt: New.
9326         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
9328 2011-02-04  Richard Henderson  <rth@redhat.com>
9329             Steve Ellcey  <sje@cup.hp.com>
9331         PR target/46997
9332         * config/ia64/predicates.md (mux1_brcst_element): New.
9333         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
9334         * config/ia64/ia64.c (ia64_unpack_assemble): New.
9335         (ia64_unpack_sign): New.
9336         (ia64_expand_unpack): Rewrite using new routines.
9337         (ia64_expand_widen_sum): Ditto.
9338         (ia64_expand_dot_prod_v8qi): Ditto.
9339         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
9340         routines, add endian check.
9341         (pmpy2_even): Rename from pmpy2_r, add endian check.
9342         (pmpy2_odd): Rename from pmpy2_l, add endian check.
9343         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
9344         (vec_widen_smult_hi_v4hi): Ditto.
9345         (vec_widen_umult_lo_v4hi): Ditto.
9346         (vec_widen_umult_hi_v4hi): Ditto.
9347         (mulv2si3): Change endian checks.
9348         (sdot_prodv4hi): Rewrite with new calls.
9349         (udot_prodv4hi): New.
9350         (vec_pack_ssat_v4hi): Add endian check.
9351         (vec_pack_usat_v4hi): Ditto.
9352         (vec_pack_ssat_v2si): Ditto.
9353         (max1_even): Rename from max1_r, add endian check.
9354         (max1_odd): Rename from max1_l, add endian check.
9355         (*mux1_rev): Format change.
9356         (*mux1_mix): Ditto.
9357         (*mux1_shuf): Ditto.
9358         (*mux1_alt): Ditto.
9359         (*mux1_brcst_v8qi): Use new predicate.
9360         (vec_extract_evenv8qi): Remove endian check.
9361         (vec_extract_oddv8qi): Ditto.
9362         (vec_interleave_lowv4hi): Format change.
9363         (vec_interleave_highv4hi): Ditto.
9364         (mix2_even): Rename from mix2_r, add endian check.
9365         (mix2_odd): Rename from mux2_l, add endian check.
9366         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
9367         (vec_extract_evenodd_helper): Format change.
9368         (vec_extract_evenv4hi): Remove endian check.
9369         (vec_extract_oddv4hi): Remove endian check.
9370         (vec_interleave_lowv2si): Format change.
9371         (vec_interleave_highv2si): Format change.
9372         (vec_initv2si): Remove endian check.
9373         (vecinit_v2si): Add endian check.
9374         (reduc_splus_v2sf): Add endian check.
9375         (reduc_smax_v2sf): Ditto.
9376         (reduc_smin_v2sf): Ditto.
9377         (vec_initv2sf): Remove endian check.
9378         (fpack): Add endian check.
9379         (fswap): Add endian check.
9380         (vec_interleave_highv2sf): Add endian check.
9381         (vec_interleave_lowv2sf): Add endian check.
9382         (fmix_lr): Add endian check.
9383         (vec_setv2sf): Format change.
9384         (*vec_extractv2sf_0_be): Use shift to extract operand.
9385         (*vec_extractv2sf_1_be): New.
9386         (vec_pack_trunc_v4hi): Add endian check.
9387         (vec_pack_trunc_v2si): Format change.
9389 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
9391         PR inline-asm/23200
9392         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
9393         do bb, locus and block comparison and disallow loads if it is not set.
9394         (stmt_is_replaceable_p): New function.
9395         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
9396         callers.
9397         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
9398         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
9399         SSA_NAME_DEF_STMT.
9400         * tree-flow.h (stmt_is_replaceable_p): New prototype.
9402 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
9404         * config/rs6000/xilinx.opt: New.
9405         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
9407 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
9409         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
9411 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
9413         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
9414         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9415         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
9416         secondary_reload_info, xtensa_secondary_reload): Remove.
9417         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
9418         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9419         (xtensa_preferred_reload_class): Make static. Change return and
9420         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
9421         Use CONST_DOUBLE_P predicate.
9422         (xtensa_preferred_output_reload_class): New function.
9423         (xtensa_secondary_reload): Make static.
9425 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
9427         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
9428         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
9429         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
9431 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
9433         PR middle-end/31490
9434         * output.h (SECTION_RELRO): Define.
9435         (SECTION_MACH_DEP): Adjust.
9436         (get_variable_section): New prototype.
9437         * varpool.c (varpool_finalize_named_section_flags): New function.
9438         (varpool_assemble_pending_decls): Call it.
9439         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
9440         * cgraphunit.c (cgraph_output_in_order): Call
9441         varpool_finalize_named_section_flags.
9442         * varasm.c (get_section): Allow section flags conflicts between
9443         relro and read-only sections if the section hasn't been declared yet.
9444         Set SECTION_OVERRIDE after diagnosing section type conflict.
9445         (get_variable_section): No longer static.
9446         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
9447         readonly sections that need relocations.
9448         (decl_readonly_section_1): New function.
9449         (decl_readonly_section): Use it.
9451         Revert:
9452         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
9453                     Steve Ellcey  <sje@cup.hp.com>
9455         PR middle-end/31490
9456         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
9457         if section attribute used.
9459 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
9461         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
9462         * config/darwin.c (SECTION_NO_ANCHOR): Define.
9463         (darwin_init_sections): Remove assertion.
9465 2011-02-03  Nick Clifton  <nickc@redhat.com>
9467         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
9468         lt and ge.
9469         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
9470         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
9471         instead of "n" and "pz".
9472         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
9473         CC_FLAG_S.
9475 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
9477         PR target/47312
9478         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
9479         fma, expand FMA_EXPR as fma{,f,l} call.
9481         PR lto/47274
9482         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
9483         copy them into a unsigned char variable and pass address of it to
9484         lto_output_data_stream.
9486         PR target/47564
9487         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
9488         around backend_init_target and lang_dependent_init_target calls.
9489         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
9490         (verify_cgraph_node): Don't call set_cfun here.  Use
9491         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
9492         Set error_found for incorrectly represented calls to thunks.
9494 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
9496         PR debug/43092
9497         PR rtl-optimization/43494
9498         * rtl.h (for_each_inc_dec_fn): New type.
9499         (for_each_inc_dec): Declare.
9500         * rtlanal.c (struct for_each_inc_dec_ops): New type.
9501         (for_each_inc_dec_find_inc_dec): New fn.
9502         (for_each_inc_dec_find_mem): New fn.
9503         (for_each_inc_dec): New fn.
9504         * dse.c (struct insn_size): Remove.
9505         (replace_inc_dec, replace_inc_dec_mem): Remove.
9506         (emit_inc_dec_insn_before): New fn.
9507         (check_for_inc_dec): Use it, along with for_each_inc_dec.
9508         (canon_address): Pass mem modes to cselib_lookup.
9509         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
9510         (cselib_lookup_from_insn): Likewise.
9511         (cselib_subst_to_values): Likewise.
9512         * cselib.c (find_slot_memmode): New var.
9513         (cselib_find_slot): New fn.  Use it instead of
9514         htab_find_slot_with_hash everywhere.
9515         (entry_and_rtx_equal_p): Use find_slot_memmode.
9516         (autoinc_split): New fn.
9517         (rtx_equal_for_cselib_p): Rename and implement in terms of...
9518         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
9519         Deal with autoinc.  Special-case recursion into MEMs.
9520         (cselib_hash_rtx): Likewise.
9521         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
9522         address and MEM modes.
9523         (cselib_subst_to_values): Add memmode, pass it on.
9524         Deal with autoinc.
9525         (cselib_lookup): Add memmode argument, pass it on.
9526         (cselib_lookup_from_insn): Add memmode.
9527         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
9528         (struct cselib_record_autoinc_data): New.
9529         (cselib_record_autoinc_cb): New fn.
9530         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
9531         mode to cselib_lookup.  Reset autoinced REGs here instead of...
9532         (cselib_process_insn): ... here.
9533         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
9534         to cselib_lookup.
9535         (add_uses): Likewise, also to cselib_subst_to_values.
9536         (add_stores): Likewise.
9537         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
9538         cselib_subst_to_values.
9539         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
9540         * gcse.c (do_local_cprop): Adjusted.
9541         * postreload.c (reload_cse_simplify_set): Adjusted.
9542         (reload_cse_simplify_operands): Adjusted.
9543         * sel-sched-dump (debug_mem_addr_value): Pass mode.
9545 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
9547         PR tree-optimization/45122
9548         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
9549         unsafe assumptions when there's more than one loop exit.
9551 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9553         PR target/47272
9554         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
9555         Document using vector double with the load/store builtins, and
9556         that the load/store builtins always use Altivec instructions.
9558         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
9559         to use altivec memory instructions, even on VSX.
9560         (vector_altivec_store_<mode>): Ditto.
9562         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
9563         function.
9565         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9566         V2DF, V2DI support to load/store overloaded builtins.
9568         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
9569         altivec load/store builtins for V2DF/V2DI types.
9571         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9572         set avoid indexed addresses on power6 if -maltivec.
9573         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
9574         vector_altivec_load/vector_altivec_store builtins.
9575         (altivec_expand_st_builtin): Ditto.
9576         (altivec_expand_builtin): Add VSX memory builtins.
9577         (rs6000_init_builtins): Add V2DI types to internal types.
9578         (altivec_init_builtins): Add support for V2DF/V2DI altivec
9579         load/store builtins.
9580         (rs6000_address_for_altivec): Insure memory address is appropriate
9581         for Altivec.
9583         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
9584         vec_vsx_ld and vec_vsx_st.
9585         (vsx_store_<mode>): Ditto.
9587         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
9588         variables to hold long long types for VSX vector memory builtins.
9589         (RS6000_BTI_unsigned_long_long): Ditto.
9590         (long_long_integer_type_internal_node): Ditti.
9591         (long_long_unsigned_type_internal_node): Ditti.
9593         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
9594         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
9595         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
9597         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
9598         short cuts.
9599         (vec_vsx_st): Ditto.
9601 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9603         * config/pa/pa-hpux10.opt: New.
9604         * config/hpux11.opt (pthread): New Driver option.
9605         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
9606         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
9608 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9610         * config/ia64/vms.opt: New.
9611         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
9613 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
9615         PR target/47580
9616         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
9617         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
9618         generator functions.
9619         (vsx_floatuns<VSi><mode>2): Ditto.
9620         (vsx_fix_trunc<mode><VSi>2): Ditto.
9621         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
9623 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9625         * config/i386/djgpp.opt (posix): New Driver option.
9627 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
9629         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
9630         Move to the unsupported targets list.
9632 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
9634         PR rtl-optimization/47525
9635         * df-scan.c: Update copyright years.
9636         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
9637         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
9639 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9641         * config/i386/sysv4.h (TARGET_VERSION): Remove.
9642         (SUBTARGET_RETURN_IN_MEMORY): Remove.
9643         (ASM_OUTPUT_ASCII): Remove.
9644         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
9646 2011-02-02  Jeff Law  <law@redhat.com>
9648         PR middle-end/47543
9649         * reload.c (find_reloads_address): Handle reg+d address where both
9650         components are invalid by reloading the entire address.
9652 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9653             Richard Guenther  <rguenther@suse.de>
9655         PR tree-optimization/40979
9656         PR bootstrap/47044
9657         * passes.c (init_optimization_passes): After LIM call copy_prop
9658         and DCE to clean up.
9659         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9661 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9663         PR tree-optimization/47576
9664         PR tree-optimization/47555
9665         * doc/invoke.texi (scev-max-expr-complexity): Documented.
9666         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9667         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9668         * tree-scalar-evolution.c (follow_ssa_edge): Use
9669         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9671 2011-02-02  Richard Guenther  <rguenther@suse.de>
9673         PR tree-optimization/47566
9674         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9676 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9678         PR debug/47106
9679         PR debug/47402
9680         * tree-inline.c (declare_return_variable): Remove unused caller
9681         variable.
9683         PR debug/47106
9684         PR debug/47402
9685         * tree-flow-inline.h (clear_is_used, is_used_p): New.
9686         * cfgexpand.c (account_used_vars_for_block): Use them.
9687         * tree-nrv.c (tree_nrv): Likewise.
9688         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9689         (dump_scope_block): Likewise.
9690         (remove_unused_locals): Likewise.
9692         PR debug/47106
9693         PR debug/47402
9694         * tree-inline.c (declare_return_variable): Add result decl to
9695         local decls only once.
9696         * gimple-low.c (record_vars_into): Mark newly-created variables
9697         as referenced.
9699 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9701         PR debug/47498
9702         PR debug/47501
9703         PR debug/45136
9704         PR debug/45130
9705         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9706         debug insns.
9707         (no_real_insns_p, schedule_block, set_priorities): Drop special
9708         treatment of boundary debug insns.
9709         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9710         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9711         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9712         (BOUNDARY_DEBUG_INSN_P): Likewise.
9713         (SCHEDULE_DEBUG_INSN_P): Likewise.
9714         * sched-rgn.c (init_ready_list): Drop special treatment of
9715         boundary debug insns.
9716         * final.c (rest_of_clean_state): Clear notes' BB.
9718 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9720         * config/openbsd.opt (assert=): New Driver option.
9722 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9724         * config/i386/nto.opt: New.
9725         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9727 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9729         * config/i386/netware.opt: New.
9730         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9732 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9734         * config/interix.opt (posix): New Driver option.
9736 2011-02-01  DJ Delorie  <dj@redhat.com>
9738         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9740         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9741         class for A0/A1.
9743 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
9745         PR tree-optimization/47561
9746         * toplev.c (process_options): Print the Graphite flags.  Add
9747         flag_loop_flatten to the list of options requiring Graphite.
9749 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9751         * config/i386/cygming.opt (posix): New Driver option.
9753 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9755         * config/arm/vxworks.opt: New.
9756         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9758 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9760         * config/alpha/elf.opt: New.
9761         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9762         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9764 2011-02-01  Richard Guenther  <rguenther@suse.de>
9766         PR tree-optimization/47559
9767         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9768         store-motion on references that can throw.
9770 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
9772         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9773         * tree-pass.h (TDF_CSELIB): New macro.
9774         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9775         cselib_lookup): Check for it rather than for TDF_DETAILS.
9777 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
9779         PR driver/47547
9780         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9781         is HOST_BIT_BUCKET.
9783         * opts.c (finish_options): Don't add x_aux_base_name if it is
9784         HOST_BIT_BUCKET.
9786 2011-02-01  Richard Guenther  <rguenther@suse.de>
9788         PR tree-optimization/47555
9789         Revert
9790         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
9792         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9794 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9796         PR gcc/46692
9797         * config/lm32/t-lm32: Add multilib for all CPU options.
9799 2011-02-01  Richard Guenther  <rguenther@suse.de>
9801         PR tree-optimization/47541
9802         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9803         sure to have a field at offset zero.
9805 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9807         * config/arc/arc.opt (EB, EL): New Driver options.
9809 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9811         * config/alpha/osf5.opt: New.
9812         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9814 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9816         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9818 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
9820         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9821         -floop-interchange.
9822         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9823         is an alias of -floop-interchange and that it requires the
9824         Graphite infrastructure.
9825         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9826         flag_loop_interchange based on the value of flag_tree_loop_linear.
9828 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
9829             Richard Guenther  <rguenther@suse.de>
9831         PR tree-optimization/47538
9832         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9833         type instead of r1type, except for comparisons.  For right
9834         shifts and comparisons punt if there are mismatches in
9835         sizetype vs. non-sizetype types.
9837 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9839         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9840         avx_runtime.
9842 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9844         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9845         version number.
9846         * configure: Regenerate.
9848 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9850         * configure.ac (gcc_cv_ld_static_option): Define.
9851         (gcc_cv_ld_dynamic_option): Define.
9852         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9853         instead.
9854         (HAVE_LD_STATIC_DYNAMIC): Update message.
9855         (LD_STATIC_OPTION): Define.
9856         (LD_DYNAMIC_OPTION): Define.
9857         * configure: Regenerate.
9858         * config.in: Regenerate.
9859         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9860         HAVE_LD_STATIC_DYNAMIC]: Use them.
9862 2011-01-31  Nick Clifton  <nickc@redhat.com>
9864         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9865         registers inside interrupt handlers if the handler is not a leaf
9866         function.
9868 2011-01-31  Nick Clifton  <nickc@redhat.com>
9870         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9871         reg_renumber returning an INVALID_REGNUM.
9873 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9875         PR libgcj/44341
9876         * doc/install.texi: Document host options discarded when cross
9877         configuring target libraries.
9879 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9881         Reverted:
9882         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9883         PR debug/45136
9884         PR debug/45130
9885         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9886         debug insns.
9887         (no_real_insns_p, schedule_block, set_priorities): Drop special
9888         treatment of boundary debug insns.
9889         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9890         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9891         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9892         (BOUNDARY_DEBUG_INSN_P): Likewise.
9893         (SCHEDULE_DEBUG_INSN_P): Likewise.
9894         * sched-rgn.c (init_ready_list): Drop special treatment of
9895         boundary debug insns.
9896         * final.c (rest_of_clean-state): Clear notes' BB.
9898 2011-01-31  Alan Modra  <amodra@gmail.com>
9900         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9901         toc relative expressions as we do in print_operand_address.
9903 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
9905         * doc/extend.texi: Follow spelling conventions.
9906         * doc/invoke.texi: Fix a typo.
9908 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
9910         * config/hpux11.opt: New.
9911         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9912         ia64*-*-hpux*): Use hpux11.opt.
9914 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
9916         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9917         to tmake_file.
9919 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9921         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9922         support sites.
9924 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9926         * doc/install.texi (Binaries): Remove outdated reference for
9927         Motorola 68HC11/68HC12 downloads.
9929 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9931         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9932         Drepper's paper.
9934 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
9936         PR bootstrap/47147
9937         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9938         used by NetBSD.
9940 2011-01-28  Ahmad Sharif  <asharif@google.com>
9942         * value-prof.c (check_counter): Corrected error message.
9944 2011-01-29  Jie Zhang  <jie@codesourcery.com>
9946         * config/arm/arm.c (arm_legitimize_reload_address): New.
9947         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9948         arm_legitimize_reload_address.
9949         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9951 2011-01-28  Ian Lance Taylor  <iant@google.com>
9953         * godump.c (go_define): Ignore macros whose definitions include
9954         two adjacent operands.
9956 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
9958         PR target/42894
9959         * varasm.c (force_const_mem): Store copy of x in desc->constant
9960         instead of x itself.
9961         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9962         itself into REG_EQUAL note.
9964 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
9966         * config/freebsd.opt (posix, rdynamic): New Driver options.
9968 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9970         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9971         -Bstatic/-Bdynamic.
9972         * configure: Regenerate.
9974 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
9976         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9977         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9979 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
9981         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9982         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9983         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9984         (s390_preferred_reload_class): Make static. Change return and
9985         'rclass' argument type to reg_class_t.
9987 2011-01-27  Jan Hubicka  <jh@suse.cz>
9989         PR middle-end/46949
9990         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9991         (process_function_and_variable_attributes): Check defined weakrefs.
9993 2011-01-27  Martin Jambor  <mjambor@suse.cz>
9995         PR tree-optimization/47228
9996         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9997         build_ref_for_offset.
9999 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10001         * config/spu/spu-elf.h (ASM_SPEC): Remove.
10003 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
10005         PR rtl-optimization/46856
10006         * postreload.c (reload_combine_recognize_const_pattern): Do not
10007         separate cc0 setter and user on cc0 targets.
10009 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
10011         PR c/43082
10012         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
10013         passed a VOID_TYPE expression, immediately emit an error and
10014         return error_mark_node.
10016 2011-01-26  Jeff Law  <law@redhat.com>
10018         PR rtl-optimization/47464
10019         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
10020         rather than may_trap_p as needed.
10022 2011-01-26  DJ Delorie  <dj@redhat.com>
10024         PR rtl-optimization/46878
10025         * combine.c (insn_a_feeds_b): Check for the implicit cc0
10026         setter/user dependency as well.
10028 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
10030         PR rtl-optimization/44469
10031         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
10032         after removing trivially dead basic blocks.
10034 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
10036         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
10037         * config/frv/frv.h (LINK_SPEC): Likewise.
10038         * config/i386/netware.h (LINK_SPEC): Likewise.
10039         * config/m68k/linux.h (ASM_SPEC): Likewise.
10040         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
10041         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10042         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10043         * config/sparc/linux.h (ASM_SPEC): Likewise.
10044         * config/sparc/linux64.h (ASM_SPEC): Likewise.
10045         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10047 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
10049         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
10050         * config/frv/frv.h (ASM_SPEC): Likewise.
10051         * config/m68k/linux.h (ASM_SPEC): Likewise.
10052         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
10053         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
10054         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10055         * config/sparc/linux.h (ASM_SPEC): Likewise.
10056         * config/sparc/linux64.h (ASM_SPEC): Likewise.
10057         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10059 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
10061         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
10062         * config/frv/frv.h (LINK_SPEC): Likewise.
10063         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10065 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
10067         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
10068         * config/frv/frv.h (ASM_SPEC): Likewise.
10069         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
10070         * config/m68k/linux.h (ASM_SPEC): Likewise.
10071         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
10072         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
10073         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10074         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
10075         * config/sparc/linux.h (ASM_SPEC): Likewise.
10076         * config/sparc/linux64.h (ASM_SPEC): Likewise.
10077         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10078         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
10080 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
10082         PR target/46997
10083         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
10084         (*mux2): Ditto.
10085         (vec_extract_evenodd_help): Ditto.
10086         (vec_extract_evenv4hi): Ditto.
10087         (vec_extract_oddv4hi): Ditto.
10088         (vec_interleave_lowv2si): Ditto.
10089         (vec_interleave_highv2si): Ditto.
10090         (vec_extract_evenv2si): Ditto.
10091         (vec_extract_oddv2si: Ditto.
10092         (vec_pack_trunc_v2si): Ditto.
10094 2011-01-22  Jan Hubicka  <jh@suse.cz>
10096         PR target/47237
10097         * cgraph.h (cgraph_local_info): New field can_change_signature.
10098         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
10099         signature can change.
10100         (ipcp_estimate_growth): Call sequence simplify only if calle signature
10101         can change.
10102         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
10103         (cgraph_function_versioning): We can not change signature of functions
10104         that don't allow that.
10105         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
10106         (lto_input_node): Likewise.
10107         * ipa-inline.c (compute_inline_parameters): Compute
10108         local.can_change_signature.
10109         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
10110         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
10111         functions that can not change signature.
10112         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
10113         init_cumulative_args): Do not use local calling conventions
10114         for functions that can not change signature.
10116 2011-01-22  Jan Hubicka  <jh@suse.cz>
10118         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
10120 2011-01-26  Richard Guenther  <rguenther@suse.de>
10122         PR tree-optimization/47190
10123         * cgraphunit.c (process_common_attributes): New function.
10124         (process_function_and_variable_attributes): Use it.
10126 2011-01-26  Richard Guenther  <rguenther@suse.de>
10128         PR lto/47423
10129         * cgraphbuild.c (record_eh_tables): Record reference to personality
10130         function.
10132 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
10134         PR debug/45454
10135         * sel-sched.c (moveup_expr): Don't let debug insns prevent
10136         non-debug insns from moving up.
10138 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
10140         PR target/40125
10141         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
10142         t-dlldir{,-x} fragment for build and add it to tmake_file.
10143         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
10144         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
10145         * config/i386/t-dlldir: New file.
10146         (SHLIB_DLLDIR): Define.
10147         * config/i386/t-dlldir-x: New file.
10148         (SHLIB_DLLDIR): Define.
10149         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
10150         (SHLIB_INSTALL): Use it.
10152 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
10154         PR target/47246
10155         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
10156         lower bound of the allowed Thumb-2 coprocessor load/store
10157         index range to -256. Add explaining comment.
10159 2011-01-25  Ian Lance Taylor  <iant@google.com>
10161         * godump.c (go_define): Improve lexing of macro expansion to only
10162         accept expressions which match Go spec.
10164 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
10166         PR c++/43601
10167         * tree.c (handle_dll_attribute): Handle it.
10168         * doc/extend.texi (@item dllexport): Mention it.
10169         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
10171 2011-01-25  Ian Lance Taylor  <iant@google.com>
10173         PR tree-optimization/26854
10174         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
10175         (decl_jump_unsafe): Move higher in file, with no other change.
10176         (bind): Set has_jump_unsafe_decl if appropriate.
10177         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
10178         (check_earlier_gotos): Likewise.
10179         (c_check_switch_jump_warnings): Likewise.
10181 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
10183         * doc/invoke.texi (Warning Options): Add missing hyphen.
10184         (-fprofile-dir): Minor grammatical fixes.
10185         (-fbranch-probabilities): Likewise.
10187 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
10189         PR debug/45136
10190         PR debug/45130
10191         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10192         debug insns.
10193         (no_real_insns_p, schedule_block, set_priorities): Drop special
10194         treatment of boundary debug insns.
10195         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10196         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
10197         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10198         (BOUNDARY_DEBUG_INSN_P): Likewise.
10199         (SCHEDULE_DEBUG_INSN_P): Likewise.
10200         * sched-rgn.c (init_ready_list): Drop special treatment of
10201         boundary debug insns.
10202         * final.c (rest_of_clean-state): Clear notes' BB.
10204 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10206         * Makefile.in (LAMBDA_H): Removed.
10207         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
10208         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
10209         lambda-trans.o, and tree-loop-linear.o.
10210         (lto-symtab.o): Remove dependence on LAMBDA_H.
10211         (tree-loop-linear.o): Remove rule.
10212         (lambda-mat.o): Same.
10213         (lambda-trans.o): Same.
10214         (lambda-code.o): Same.
10215         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
10216         (tree-vect-slp.o): Same.
10217         * hwint.h (gcd): Moved here.
10218         (least_common_multiple): Same.
10219         * lambda-code.c: Removed.
10220         * lambda-mat.c: Removed.
10221         * lambda-trans.c: Removed.
10222         * lambda.h: Removed.
10223         * tree-loop-linear.c: Removed.
10224         * lto-symtab.c: Do not include lambda.h.
10225         * omega.c (gcd): Removed.
10226         * passes.c (init_optimization_passes): Remove pass_linear_transform.
10227         * tree-data-ref.c (print_lambda_vector): Moved here.
10228         (lambda_vector_copy): Same.
10229         (lambda_matrix_copy): Same.
10230         (lambda_matrix_id): Same.
10231         (lambda_vector_first_nz): Same.
10232         (lambda_matrix_row_add): Same.
10233         (lambda_matrix_row_exchange): Same.
10234         (lambda_vector_mult_const): Same.
10235         (lambda_vector_negate): Same.
10236         (lambda_matrix_row_negate): Same.
10237         (lambda_vector_equal): Same.
10238         (lambda_matrix_right_hermite): Same.
10239         * tree-data-ref.h: Do not include lambda.h.
10240         (lambda_vector): Moved here.
10241         (lambda_matrix): Same.
10242         (dependence_level): Same.
10243         (lambda_transform_legal_p): Removed declaration.
10244         (lambda_collect_parameters): Same.
10245         (lambda_compute_access_matrices): Same.
10246         (lambda_vector_gcd): Same.
10247         (lambda_vector_new): Same.
10248         (lambda_vector_clear): Same.
10249         (lambda_vector_lexico_pos): Same.
10250         (lambda_vector_zerop): Same.
10251         (lambda_matrix_new): Same.
10252         * tree-flow.h (least_common_multiple): Removed declaration.
10253         * tree-parloops.c (lambda_trans_matrix): Moved here.
10254         (LTM_MATRIX): Same.
10255         (LTM_ROWSIZE): Same.
10256         (LTM_COLSIZE): Same.
10257         (LTM_DENOMINATOR): Same.
10258         (lambda_trans_matrix_new): Same.
10259         (lambda_matrix_vector_mult): Same.
10260         (lambda_transform_legal_p): Same.
10261         * tree-pass.h (pass_linear_transform): Removed declaration.
10262         * tree-ssa-loop.c (tree_linear_transform): Removed.
10263         (gate_tree_linear_transform): Removed.
10264         (pass_linear_transform): Removed.
10265         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
10266         flag_loop_interchange.
10268 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
10270         PR tree-optimization/47265
10271         PR tree-optimization/47443
10272         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
10273         if name still has some uses.
10275 2011-01-25  Martin Jambor  <mjambor@suse.cz>
10277         PR tree-optimization/47382
10278         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
10279         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
10281 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
10283         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
10284         sjlj_except_unwind_info.
10286 2011-01-25  Richard Guenther  <rguenther@suse.de>
10288         PR tree-optimization/47426
10289         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
10290         visible functions results escape.
10292 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
10294         PR target/45701
10295         * config/arm/arm.c (any_sibcall_uses_r3): New function.
10296         (arm_get_frame_offsets): Use it.
10298 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10299             Jakub Jelinek  <jakub@redhat.com>
10301         PR tree-optimization/47271
10302         * tree-if-conv.c (bb_postdominates_preds): New.
10303         (if_convertible_bb_p): Call bb_postdominates_preds.
10304         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
10305         (predicate_scalar_phi): Call bb_postdominates_preds.
10307 2011-01-25  Nick Clifton  <nickc@redhat.com>
10309         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
10310         * config/rx/rx.c (rx_function_value): Likewise.
10311         (rx_promote_function_mode): Likewise.
10312         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
10313         in order to make it legitimate.
10314         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
10315         make sure that the first operand is the same as the result register.
10316         (addsi3_unspec): Delete.
10317         (subdi3): Do not accept immediate operands.
10318         (subdi3_internal): Likewise.
10320 2011-01-25  Jeff Law  <law@redhat.com>
10322         PR rtl-optimization/37273
10323         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10324         handle them like argument loads from stack slots.  Do not double
10325         count memory for memory constants and argument loads from stack slots.
10327 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
10329         PR tree-optimization/47427
10330         PR tree-optimization/47428
10331         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
10332         coalesce if the new root var would be TREE_READONLY.
10334 2011-01-25  Richard Guenther  <rguenther@suse.de>
10336         PR middle-end/47414
10337         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
10338         correct type for TBAA.
10340 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10342         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
10343         (close_phi_written_to_memory): Call for_each_index with
10344         dr_indices_valid_in_loop.
10346 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10348         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
10349         when it is initialized.
10351 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10353         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
10354         call to graphite_find_data_references_in_stmt.
10355         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
10356         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
10357         call to graphite_find_data_references_in_stmt.
10358         (analyze_drs_in_stmts): Same.
10359         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
10360         in which the scalar analysis of indices is performed.
10361         (create_data_ref): Same.  Update call to dr_analyze_indices.
10362         (find_data_references_in_stmt): Update call to create_data_ref.
10363         (graphite_find_data_references_in_stmt): Same.
10364         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
10365         declaration.
10366         (create_data_ref): Same.
10367         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
10368         call to create_data_ref.
10370 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10372         * graphite-sese-to-poly.c (build_poly_scop): Move
10373         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
10375 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10377         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
10378         VAR_DECL, PARM_DECL, and RESULT_DECL.
10380 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10382         * graphite-dependences.c (reduction_dr_1): Allow several reductions
10383         in a reduction PBB.
10384         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
10385         that have already been marked as PBB_IS_REDUCTION.
10387 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10389         * graphite-scop-detection.c (same_close_phi_node): New.
10390         (remove_duplicate_close_phi): New.
10391         (make_close_phi_nodes_unique): New.
10392         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
10394 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10396         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
10397         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
10398         of both data references to be the same.
10400 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10402         * graphite-dependences.c (build_lexicographical_constraint): Remove
10403         the gdim parameter.
10404         (build_lexicographical_constraint): Adjust call to
10405         ppl_powerset_is_empty.
10406         (dependence_polyhedron): Same.
10407         (graphite_legal_transform_dr): Same.
10408         (graphite_carried_dependence_level_k): Same.
10409         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
10410         parameter.
10411         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
10413 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10415         * graphite-sese-to-poly.c
10416         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
10417         (close_phi_written_to_memory): New.
10418         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
10419         and unshare_expr.
10421 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10423         * doc/install.texi: Update the expected version number of PPL to 0.11.
10424         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
10425         #if PPL_VERSION_MINOR < 11.
10427 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10429         * graphite-dependences.c: Include graphite-cloog-util.h.
10430         (new_poly_ddr): Inlined into dependence_polyhedron.
10431         (free_poly_ddr): Moved close by new_poly_ddr.
10432         (dependence_polyhedron_1): Renamed dependence_polyhedron.
10433         Early return NULL when ppl_powerset_is_empty returns true.
10434         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
10435         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
10436         (graphite_legal_transform_dr): Call new_poly_ddr.
10437         (graphite_carried_dependence_level_k): Same.
10438         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
10439         (dot_transformed_deps_stmt_1): Removed.
10440         (dot_deps_stmt_1): Call dot_deps_stmt_2.
10441         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
10442         (dot_deps_1): Call dot_deps_2.
10443         * Makefile.in (graphite-dependences.o): Add missing dependence on
10444         graphite-cloog-util.h.
10446 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10448         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
10449         (build_lexicographical_constraint): Same.
10450         (dependence_polyhedron_1): Same.
10451         (graphite_legal_transform_dr): Same.
10452         (graphite_carried_dependence_level_k): Same.
10453         * graphite-ppl.c (ppl_powerset_is_empty): New.
10454         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
10455         * tree-data-ref.c (dump_data_reference): Print the basic block index.
10457 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10459         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
10460         the "a followed by b" relation and document it.
10462 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10464         * graphite-dependences.c (build_lexicographical_constraint): Stop the
10465         iteration when the bag of constraints is empty.
10467 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10469         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
10471 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10473         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
10474         nest and two loop depths as parameters.
10475         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
10476         lst_perfect_nestify.
10478 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10480         * graphite-dependences.c (print_pddr): Call
10481         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
10483 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10485         * graphite-ppl.c (debug_gmp_value): New.
10486         * graphite-ppl.h (debug_gmp_value): Declared.
10488 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
10490         * doc/install.texi: Document availability of cloog-0.16.
10492 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
10494         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
10495         invalid postdominance info.
10497 2011-01-24  Jan Hubicka  <jh@suse.cz>
10499         PR c/21659
10500         * doc/extend.texi (weak pragma): Drop claim that it must
10501         appear before definition.
10502         * varasm.c (merge_weak, declare_weak): Only sanity check
10503         that DECL is not output at a time it is declared weak.
10505 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
10507         * machmode.def: Fixed comments.
10509 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
10511         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
10513 2011-01-24  Paul Koning  <ni1d@arrl.net>
10515         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
10516         WORDS_BIG_ENDIAN.
10518 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
10520         PR target/46519
10521         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
10522         (block_info): Add scanned and prev.
10523         (move_or_delete_vzeroupper_2): Return if the basic block
10524         has been scanned and the upper 128bit state is unchanged
10525         from the last scan.
10526         (move_or_delete_vzeroupper_1): Return true if the exit
10527         state is changed.
10528         (move_or_delete_vzeroupper): Visit basic blocks using the
10529         work-list based algorithm based on vt_find_locations in
10530         var-tracking.c.
10532         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
10534 2011-01-24  Nick Clifton  <nickc@redhat.com>
10536         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
10537         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
10538         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
10539         then define __v850e1__.
10540         * doc/invoke.texi: Document -mv850es.
10542 2011-01-24  Richard Henderson  <rth@redhat.com>
10544         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
10545         compound unordered comparisons.
10546         * config/rx/rx.c (rx_split_fp_compare): Remove.
10547         * config/rx/rx-protos.h: Update.
10548         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
10549         (cbranchsf4): Don't call rx_split_fp_compare.
10550         (*cbranchsf4): Use rx_split_cbranch.
10551         (*cmpsf): Don't accept "i" constraint.
10552         (*conditional_branch): Only valid after reload.
10553         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
10555 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
10557         PR target/47385
10558         * config/rs6000/altivec.md (vector constant splitters): Add
10559         support for creating vector single precision constants if -mvsx is
10560         used and we would create the constant using Altivec primitives.
10562 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
10563             Richard Sandiford  <rdsandiford@googlemail.com>
10565         PR rtl-optimization/47166
10566         * reload1.c (emit_reload_insns): Disable the spill_reg_store
10567         mechanism for PRE_MODIFY and POST_MODIFY.
10568         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
10569         reloadreg.
10571 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
10573         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
10575 2011-01-22  Jan Hubicka  <jh@suse.cz>
10577         PR lto/47333
10578         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
10580 2011-01-22  Jan Hubicka  <jh@suse.cz>
10582         PR tree-optimization/43884
10583         PR lto/44334
10584         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
10585         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
10587 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
10589         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10590         * config/s390/s390.c (s390_register_move_cost,
10591         s390_memory_move_cost): New.
10592         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10594 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10596         PR middle-end/47401
10597         * except.c (sjlj_assign_call_site_values): Move setting the
10598         crtl->uses_eh_lsda flag to ...
10599         (sjlj_mark_call_sites): ... here.
10600         (sjlj_emit_function_enter): Support NULL dispatch label.
10601         (sjlj_build_landing_pads): In a function with no landing pads
10602         that still has must-not-throw regions, generate code to register
10603         a personality function with empty LSDA.
10605 2011-01-21  Richard Henderson  <rth@redhat.com>
10607         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
10609         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
10611         * compare-elim.c: New file.
10612         * Makefile.in (OBJS-common): Add it.
10613         (compare-elim.o): New.
10614         * common.opt (fcompare-elim): New.
10615         * opts.c (default_options_table): Add OPT_fcompare_elim.
10616         * tree-pass.h (pass_compare_elim_after_reload): New.
10617         * passes.c (init_optimization_passes): Add it.
10618         * recog.h: Protect against re-inclusion.
10619         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
10620         * doc/invoke.texi (-fcompare-elim): Document it.
10621         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
10622         * doc/tm.texi: Rebuild.
10624 2011-01-22  Nick Clifton  <nickc@redhat.com>
10626         * config/rx/rx.md (cstoresf4): Pass comparison operator to
10627         rx_split_fp_compare.
10629 2011-01-22  Nick Clifton  <nickc@redhat.com>
10631         * config/rx/rx.md (UNSPEC_CONST): New.
10632         (deallocate_and_return): Wrap the amount popped off the stack in
10633         an UNSPEC_CONST in order to stop it being rejected by
10634         -mmax-constant-size.
10635         (pop_and_return): Add a "(return)" rtx.
10636         (call): Drop the immediate operand.
10637         (call_internal): Likewise.
10638         (call_value): Likewise.
10639         (call_value_internal): Likewise.
10640         (sibcall_internal): Likewise.
10641         (sibcall_value_internal): Likewise.
10642         (sibcall): Likewise.  Generate an explicit call using
10643         sibcall_internal.
10644         (sibcall_value): Likewise.
10645         (mov<>): FAIL if a constant operand is not legitimate.
10646         (addsi3_unpsec): New pattern.
10648         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
10649         (ok_for_max_constant): New function.
10650         (gen_safe_add): New function.
10651         (rx_expand_prologue): Use gen_safe_add.
10652         (rx_expand_epilogue): Likewise.
10653         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
10654         UNSPEC CONSTs.
10656 2011-01-21  Jeff Law  <law@redhat.com>
10658         PR tree-optimization/47053
10659         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10660         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10661         statements are deleted.
10662         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
10663         is nonempty, then purge dead edges and cleanup the CFG.
10665 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10667         PR debug/47402
10668         Temporarily revert:
10669         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10670         PR debug/47106
10671         * tree-dfa.c (create_var_ann): Mark variable as used.
10673 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10675         PR middle-end/45566
10676         * except.c (convert_to_eh_region_ranges): Emit queued no-region
10677         notes from other section in hot/cold partitioning even if
10678         last_action is -3.  Increment call_site_base.
10680         PR rtl-optimization/47366
10681         * fwprop.c (forward_propagate_into): Return bool.  If
10682         any changes are made, -fnon-call-exceptions is used and
10683         REG_EH_REGION note is present, call purge_dead_edges
10684         and return true if it purged anything.
10685         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10686         any EH edges were purged.
10688 2011-01-21  Jeff Law  <law@redhat.com>
10690         PR rtl-optimization/41619
10691         * caller-save.c (setup_save_areas): Break out code to determine
10692         which hard regs are live across calls by examining the reload chains
10693         so that it is always used.
10694         Eliminate code which checked REG_N_CALLS_CROSSED.
10696 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10698         PR tree-optimization/47355
10699         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10700         NOP has non-debug uses beyond PHIs in new_bb.
10702 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10704         PR debug/47106
10705         * cfgexpand.c (account_used_vars_for_block): Only account vars
10706         that are annotated as used.
10707         (estimated_stack_frame_size): Don't set TREE_USED.
10708         * tree-dfa.c (create_var_ann): Mark variable as used.
10710 2011-01-21  Richard Guenther  <rguenther@suse.de>
10712         PR middle-end/47395
10713         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10715 2011-01-21  Richard Guenther  <rguenther@suse.de>
10717         PR tree-optimization/47365
10718         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10719         (vn_reference_lookup_pieces): Adjust.
10720         (vn_reference_lookup): Likewise.
10721         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10722         (vn_reference_lookup_3): Only look through kills if in
10723         VN_WALKREWRITE mode.
10724         (vn_reference_lookup_pieces): Adjust.
10725         (vn_reference_lookup): Likewise.
10726         (visit_reference_op_load): Likewise.
10727         (visit_reference_op_store): Likewise.
10728         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10729         (compute_avail): Likewise.
10730         (eliminate): Likewise.
10732 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10734         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10735         DECL_IGNORED_P non-reg vars if they are used.
10737         PR tree-optimization/47391
10738         * varpool.c (const_value_known_p): Return false if
10739         decl is volatile.
10741 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
10743         PR bootstrap/47215
10744         * config/i386/i386.c (ix86_local_alignment): Handle
10745         case for va_list_type_node is nil.
10746         (ix86_canonical_va_list_type): Likewise.
10748 2011-01-21  Alan Modra  <amodra@gmail.com>
10750         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10751         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10753 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10755         * config/arm/arm.md (define_attr type): Rename f_load
10756         and f_store to f_fpa_load and f_fpa_store. Update.
10757         (write_conflict): Deal with rename fallout.
10758         (*push_fp_multi): Likewise.
10759         * config/arm/fpa.md (f_load): Use f_fpa_load.
10760         (f_store): Use f_fpa_store.
10761         (*movsf_fpa): Likewise.
10762         (*movdf_fpa): Likewise.
10763         (*movxf_fpa): Likewise.
10764         (*thumb2_movsf_fpa): Likewise.
10765         (*thumb2_movdf_fpa): Likewise.
10766         (*thumb2_movxf_fpa): Likewise.
10767         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10768         f_loadd and f_stored.
10769         (*thumb2_movdi_vfp): Likewise.
10770         (*thumb2_movsf_vfp): Fix attribute to f_loads.
10771         (*thumb2_movsi_vfp): Likewise.
10772         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10773         Use f_loads instead of f_load.
10774         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10776 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
10778         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10779         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10780         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10781         (xtensa_mode_dependent_address_p): New function.
10782         (constantpool_address_p): Make static. Change return type to bool.
10783         Change argument type to const_rtx. Use CONST_INT_P predicate.
10785 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
10787         PR debug/46583
10788         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10790 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10792         PR debug/47283
10793         * cfgexpand.c (expand_debug_expr): Instead of generating
10794         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10795         etc. handling.
10797 2011-01-20  Richard Guenther  <rguenther@suse.de>
10799         PR middle-end/47370
10800         * tree-inline.c (remap_gimple_op_r): Recurse manually for
10801         the pointer operand of MEM_REFs.
10803 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10805         PR tree-optimization/46130
10806         * ipa-split.c (consider_split): If return_bb contains non-virtual
10807         PHIs other than for retval or if split_function would not adjust it,
10808         refuse to split.
10810 2011-01-20  Richard Guenther  <rguenther@suse.de>
10812         PR tree-optimization/47167
10813         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10814         Revert previous change, only avoid enumeral type changes.
10816 2011-01-19  Mike Stump  <mikestump@comcast.net>
10818         * doc/tm.texi.in (BRANCH_COST): Englishify.
10819         * doc/tm.texi (BRANCH_COST): Likewise.
10821 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
10823         PR c++/47291
10824         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10825         (gen_scheduled_generic_parms_dies): New functions.
10826         (gen_struct_or_union_type_die): Schedule template parameters DIEs
10827         generation for the end of CU compilation.
10828         (dwarf2out_finish): Generate template parameters DIEs here.
10830 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10832         PR debug/46240
10833         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10834         debug bind stmt on merge edges.
10836 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10838         PR debug/47079
10839         PR debug/46724
10840         * function.c (instantiate_expr): Instantiate incoming rtl of
10841         implicit arguments, and recurse on VALUE_EXPRs.
10842         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10843         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10845 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10847         * c-parser.c (c_parser_for_statement): Initialize
10848         collection_expression.
10850 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10852         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10854 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10856         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10857         (LINK_SHLIB_SPEC): Don't use %(link_path).
10858         (SUBTARGET_EXTRA_SPECS): Remove link_path.
10860 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10862         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10863         (NO_SHARED_LIB_SUPPORT): Remove.
10864         (LINK_SHLIB_SPEC): Remove one conditional definition.
10866 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10868         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10869         %{call_shared}.
10870         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10871         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10872         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10873         %{call_shared} and conditionals on these options not being passed.
10874         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10875         %{call_shared}.
10877 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10879         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10880         simplify.
10882         * ipa-split.c: Spelling fixes.
10884 2011-01-19  Richard Henderson  <rth@redhat.com>
10886         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10887         (*mulsi3): Likewise.
10889         * longlong.h [__mn10300__] (count_leading_zeros): New.
10890         [__mn10300__] (umul_ppmm, smul_ppmm): New.
10891         [__mn10300__] (add_ssaaaa, subddmmss): New.
10892         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10893         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10895 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10897         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10899 2011-01-19  Richard Henderson  <rth@redhat.com>
10901         * config/mn10300/mn10300.md (addsi3_flags): New.
10902         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10903         (subsi3_flags, subc_internal, subdi3): New.
10904         (subdi3_internal, *subdi3_degenerate): New.
10905         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10907         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10908         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10909         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
10910         * config/mn10300/mn10300-protos.h: Update.
10911         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10912         (return_ret): Likewise.  Rename from return_internal_regs.
10913         (return_internal): Remove.
10915         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10916         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10917         (mn10300_legitimate_constant_p): Likewise.
10918         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10919         (mn10300_frame_size): New.
10920         (mn10300_expand_prologue): Use it.
10921         (mn10300_expand_epilogue): Likewise.
10922         (mn10300_initial_offset): Likewise.
10923         * config/mn10300/mn10300-protos.h: Update.
10924         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10925         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10926         (prologue, epilogue, return_internal): Tidy output code.
10927         (mn10300_store_multiple_operation, return): Likewise.
10928         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10929         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10930         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10931         (load_pic, am33_load_pic): New.
10932         (mn10300_load_pic0, mn10300_load_pic1): New.
10934         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10935         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10936         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10937         (cc_flags_for_mode, cc_flags_for_code): New.
10938         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10939         overflow flag is not valid.  Validate that the flags we need
10940         for the comparison are valid.
10941         (mn10300_output_cmp): Remove.
10942         (mn10300_output_add): New.
10943         (mn10300_select_cc_mode): Use cc_flags_for_code.
10944         (mn10300_split_cbranch): New.
10945         (mn10300_match_ccmode): New.
10946         (mn10300_split_and_operand_count): New.
10947         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10948         to the function.
10949         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10950         (addsi3): ... here.  Use mn10300_output_add.
10951         (*addsi3_flags): New.
10952         (*am33_subsi3, *mn10300_subsi3): Merge...
10953         (subsi3): ... here.  Use attribute isa.
10954         (*subsi3_flags): New.
10955         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
10956         when possible.
10957         (*am33_andsi3, *mn10300_andsi3): Merge...
10958         (andsi3): ... here.
10959         (*andsi3_flags): New.
10960         (andsi3 splitters): New.
10961         (*am33_iorsi3, *mn10300_iorsi3): Merge...
10962         (iorsi3): ... here.
10963         (*iorsi3_flags): New.
10964         (*am33_xorsi3, *mn10300_xorsi3): Merge...
10965         (xorsi3): ... here.
10966         (*xorsi3_flags): New.
10967         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10968         (one_cmplsi2): ... here.
10969         (*one_cmplsi2_flags): New.
10970         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
10971         instead of "dax" in constraints.  Use mn10300_split_cbranch.
10972         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
10973         use matching constraints to eliminate a self-comparison.
10974         (*integer_conditional_branch): Rename from integer_conditional_branch.
10975         Use int_mode_flags to match CC_REG.
10976         (*cbranchsi4_btst, *btstsi): New.
10977         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
10978         mn10300_split_cbranch.
10979         (*am33_cmpsf): Rename from am33_cmpsf.
10980         (*float_conditional_branch): Rename from float_conditional_branch.
10981         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10982         (zero_extendqisi2): ... here.
10983         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10984         (zero_extendhisi2): ... here.
10985         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10986         (extendqisi2): ... here.
10987         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10988         (extendhisi2): ... here.
10989         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10990         (ashlsi3): ... here.
10991         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10992         (lshrsi3): ... here.
10993         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10994         (ashrsi3): ... here.
10995         (consecutive add peephole): Remove.
10996         * config/mn10300/predicates.md (label_ref_operand): New.
10997         (int_mode_flags): New.
10998         (CCZN_comparison_operator): New.
11000         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
11001         (throughput_42_latency_43): New reservation.
11002         (mulsidi3, umulsidi3): New expanders.
11003         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
11004         the MDR register to allocation; separately allocate the low and
11005         high parts of the DImode result.
11006         (umulsidi3_internal): Similarly.
11007         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
11008         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
11009         (udivsi3, umodsi3): Remove.
11010         (udivmodsi4, divmodsi4): New expanders.
11011         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
11012         (*divmodsi4): Simiarly.
11013         (ext_internal): New.
11015         * config/mn10300/constraints.md ("z"): New constraint.
11016         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
11017         (FIXED_REGISTERS): Don't fix MDR.
11018         (CALL_USED_REGSITERS): Reformat nicely.
11019         (REG_ALLOC_ORDER): Add MDR.
11020         (enum regclass): Add MDR_REGS.
11021         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
11022         (IRA_COVER_CLASSES): Add MDR_REGS.
11023         (REGNO_REG_CLASS): Handle MDR_REG.
11024         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
11025         (mn10300_register_move_cost): Likewise.
11026         * config/mn10300/mn10300.md (MDR_REG): New.
11027         (*movsi_internal): Handle moves to/from MDR_REGS.
11029         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
11030         POST_MODIFY.
11031         (mn10300_secondary_reload): Tidy combination reload classes.
11032         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
11033         addresses for AM33.  Allow symbolic offsets for reg+imm.
11034         (mn10300_regno_in_class_p): New.
11035         (mn10300_legitimize_reload_address): New.
11036         * config/mn10300/mn10300.h (enum reg_class): Remove
11037         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
11038         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
11039         SP_OR_GENERAL_REGS.
11040         (REG_CLASS_NAMES): Update to match.
11041         (REG_CLASS_CONTENTS): Likewise.
11042         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
11043         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
11044         (REGNO_IN_RANGE_P): Remove.
11045         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
11046         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
11047         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
11048         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
11049         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
11050         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
11051         (REGNO_GENERAL_P): New.
11052         (HAVE_POST_MODIFY_DISP): New.
11053         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
11054         (LEGITIMIZE_RELOAD_ADDRESS): New.
11055         * config/mn10300/mn10300-protos.h: Update.
11057         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
11058         DATA_REGS for AM33 stack-pointer destination.
11059         (mn10300_preferred_output_reload_class): Likewise.
11060         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
11061         into a form appropriate for ...
11062         (TARGET_SECONDARY_RELOAD): New.
11063         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
11064         * config/mn10300/mn10300-protos.h: Update.
11065         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
11066         reload_insi; use the "A" constraint for the scratch; handle AM33
11067         moves of sp to non-address registers.
11069         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
11070         (*movqi_internal): ... here.
11071         (*am33_movhi, *mn10300_movhi): Merge into...
11072         (*movhi_internal): ... here.
11073         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
11074         as the source/destination of moves from/to SP.
11075         (movsf): Only allow for AM33-2.
11076         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
11077         any integer constant constraint.  Only allow for AM33-2.  Tidy
11078         all of the alternative outputs.
11079         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
11080         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
11081         for MN103.
11082         (udivsi3, umodsi3): New patterns for MN103 only.
11084 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
11086         * doc/tm.texi.in: Spell out that a lack of register class unions
11087         can lead to ICEs.
11088         * doc/tm.texi: Regenerate.
11090 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
11092         PR rtl-optimization/47337
11093         * dce.c (check_argument_store): New function.
11094         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
11096         PR tree-optimization/47290
11097         * tree-eh.c (infinite_empty_loop_p): New function.
11098         (cleanup_empty_eh): Use it.
11100 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
11102         PR target/46997
11103         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
11104         (a64_expand_widen_sum): Ditto.
11105         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
11106         (vec_extract_evenodd_help): Ditto.
11107         (vec_extract_evenv4hi): Ditto.
11108         (vec_extract_oddv4hi): Ditto.
11109         (vec_extract_evenv2si): Ditto.
11110         (vec_extract_oddv2si): Ditto.
11111         (vec_extract_evenv2sf): Ditto.
11112         (vec_extract_oddv2sf): Ditto.
11113         (vec_pack_trunc_v4hi: Ditto.
11114         (vec_pack_trunc_v2si): Ditto.
11115         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
11116         (vec_interleave_highv8qi): Ditto.
11117         (mix1_r): Ditto.
11118         (vec_extract_oddv8qi): Ditto.
11119         (vec_interleave_lowv4hi): Ditto.
11120         (vec_interleave_highv4hi): Ditto.
11121         (vec_interleave_lowv2si): Ditto.
11122         (vec_interleave_highv2si): Ditto.
11124 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11126         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
11127         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
11128         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
11129         (pa_c_mode_for_suffix): New.
11130         (TARGET_EXPAND_BUILTIN): Define.
11131         (TARGET_C_MODE_FOR_SUFFIX): Define.
11132         (pa_builtins): Define.
11133         (pa_init_builtins): Register __float128 type and init new support
11134         builtins.
11135         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
11136         * config/pa/quadlib.c (_U_Qfcopysign): New.
11138 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
11140         PR middle-end/46894
11141         * explow.c (allocate_dynamic_stack_space): Do not assume more than
11142         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
11143         are defined.
11145 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11147         PR tree-optimization/47179
11148         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
11149         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
11151 2011-01-18  Richard Guenther  <rguenther@suse.de>
11153         PR rtl-optimization/47216
11154         * emit-rtl.c: Include tree-flow.h.
11155         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
11156         of replicating it with different semantics.
11157         * Makefile.in (emit-rtl.o): Adjust.
11159 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11161         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
11162         (cortex_a9_dp): Handle neon types correctly.
11164 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
11166         PR rtl-optimization/47299
11167         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
11168         subtarget.  Use normal multiplication if both operands are constants.
11169         * expmed.c (expand_widening_mult): Don't try to optimize constant
11170         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
11171         before using it.
11173 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11175         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
11176         spacing after 'e.g.', typos, comma, hyphenation.
11178 2011-01-17  Richard Henderson  <rth@redhat.com>
11180         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
11181         (rx_restricted_mem_operand): New.
11182         (rx_shift_operand): Use register_operand.
11183         (rx_source_operand, rx_compare_operand): Likewise.
11184         * config/rx/rx.md (addsi3_flags): New expander.
11185         (adddi3): Rewrite as expander.
11186         (adc_internal, *adc_flags, adddi3_internal): New patterns.
11187         (subsi3_flags): New expander.
11188         (subdi3): Rewrite as expander.
11189         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
11191         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
11192         (rx_init_builtins): Remove sat builtin.
11193         (rx_expand_builtin): Likewise.
11194         * config/rx/rx.md (ssaddsi3): New.
11195         (*sat): Rename from sat.  Represent the CC_REG input.
11197         * config/rx/predicates.md (rshift_operator): New.
11198         * config/rx/rx.c (rx_expand_insv): Remove.
11199         * config/rx/rx-protos.h: Update.
11200         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
11201         operand to the canonical position.
11202         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
11203         (*bitclr, *bitclr_in_memory): Similarly.
11204         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
11205         (insv): Retain the zero_extract in the expansion.
11207         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
11208         (bswaphi2, bitinvert, revw): Likewise.
11210         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
11211         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
11212         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
11213         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
11214         (bitset, bitset_in_memory): Likewise.
11215         (bitinvert, bitinvert_in_memory): Likewise.
11216         (bitclr, bitclr_in_memory): Likewise.
11217         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
11218         (rx_strend, rx_cmpstrn): Likewise.
11219         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
11220         (bitop peep2 patterns): Remove.
11222         * config/rx/rx.c (rx_match_ccmode): New.
11223         * config/rx/rx-protos.h: Update.
11224         * config/rx/rx.md (abssi2): Clobber, don't set flags.
11225         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
11226         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
11227         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
11228         (fix_truncsfsi2, floatsisf2): Likewise.
11229         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
11230         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
11231         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
11232         (*subsi3_flags, *xorsi3_flags): New.
11234         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
11236         * config/rx/rx.c (rx_print_operand): Remove workaround for
11237         unsplit comparison operations.
11239         * config/rx/rx.md (movsicc): Split after reload.
11240         (*movsicc): Merge *movsieq and *movsine via match_operator.
11241         (*stcc): New pattern.
11243         * config/rx/rx.c (rx_float_compare_mode): Remove.
11244         * config/rx/rx.h (rx_float_compare_mode): Remove.
11245         * config/rx/rx.md (cstoresi4): Split after reload.
11246         (*sccc): New pattern.
11248         * config/rx/predicates.md (label_ref_operand): New.
11249         (rx_z_comparison_operator): New.
11250         (rx_zs_comparison_operator): New.
11251         (rx_fp_comparison_operator): New.
11252         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
11253         Validate that the flags are set properly for the comparison.
11254         (rx_gen_cond_branch_template): Remove.
11255         (rx_cc_modes_compatible): Remove.
11256         (mode_from_flags): New.
11257         (flags_from_code): Rename from flags_needed_for_conditional.
11258         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
11259         (rx_select_cc_mode): Likewise.
11260         (rx_split_fp_compare): New.
11261         (rx_split_cbranch): New.
11262         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
11263         (*cbranchsi4): Use match_operator and rx_split_cbranch.
11264         (*cbranchsf4): Similarly.
11265         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
11266         match_operator and rx_split_cbranch.
11267         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
11268         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
11269         (*cmpsi): Rename from cmpsi.
11270         (*tstsi): Rename from tstsi.
11271         (*cmpsf): Rename from cmpsf; use CC_Fmode.
11272         (*conditional_branch): Rename from conditional_branch.
11273         (*reveresed_conditional_branch): Remove.
11274         (b<code>): Remove expander.
11275         * config/rx/rx-protos.h: Update.
11277         * config/rx/rx.c (rx_compare_redundant): Remove.
11278         * config/rx/rx.md (cmpsi): Don't use it.
11279         * config/rx/rx-protos.h: Update.
11281         * config/rx/rx-modes.def (CC_F): New mode.
11282         * config/rx/rx.c (rx_select_cc_mode): New.
11283         * config/rx/rx.h (SELECT_CC_MODE): Use it.
11284         * config/rx/rx-protos.h: Update.
11286 2011-01-17  Richard Henderson  <rth@redhat.com>
11288         * except.c (dump_eh_tree): Fix stray ; after for statement.
11290 2011-01-17  Richard Guenther  <rguenther@suse.de>
11292         PR tree-optimization/47313
11293         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
11294         handling before copying the body.  Properly deal with
11295         by-reference result in SSA form.
11297 2011-01-17  Ian Lance Taylor  <iant@google.com>
11299         PR target/47219
11300         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
11301         (struct_value_alias_set): Don't define.
11302         (sparc_option_override): Don't set sparc_sr_alias_set and
11303         struct_value_alias_set.
11304         (save_or_restore_regs): Use gen_frame_mem rather than calling
11305         set_mem_alias_set.
11306         (sparc_struct_value_rtx): Likewise.
11308 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
11310         PR target/47318
11311         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
11312         (_mm_maskstore_pd): Likewise.
11313         (_mm_maskload_ps): Likewise.
11314         (_mm_maskstore_ps): Likewise.
11315         (_mm256_maskload_pd): Change mask to __m256i.
11316         (_mm256_maskstore_pd): Likewise.
11317         (_mm256_maskload_ps): Likewise.
11318         (_mm256_maskstore_ps): Likewise.
11320         * config/i386/i386-builtin-types.def: Updated.
11321         (ix86_expand_special_args_builtin): Likewise.
11323         * config/i386/i386.c (bdesc_special_args): Update
11324         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
11325         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
11326         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
11327         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
11329         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
11330         Use <avxpermvecmode> on mask register.
11331         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
11333 2011-01-17  Olivier Hainque  <hainque@adacore.com>
11334             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11335             Eric Botcazou  <ebotcazou@adacore.com>
11337         PR target/46655
11338         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
11339         if <= USHRT_MAX in 32-bit mode.
11341 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11343         * doc/install.texi (Configuration, Specific): Wrap long
11344         lines in examples.  Allow line wrapping in long options
11345         and URLs where beneficial for PDF output.
11347 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
11349         * config/mips/mips.c (mips_classify_symbol): Don't return
11350         SYMBOL_PC_RELATIVE for nonlocal labels.
11352 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
11354         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
11356 2011-01-15  Jan Hubicka  <jh@suse.cz>
11358         PR tree-optimization/47276
11359         * ipa.c (function_and_variable_visibility): Do not try to mark alias
11360         declarations as needed.
11362 2011-01-15  Martin Jambor  <mjambor@suse.cz>
11364         * common.opt (fdevirtualize): New flag.
11365         * doc/invoke.texi (Option Summary): Document it.
11366         * opts.c (default_options_table): Add devirtualize flag.
11367         * ipa-prop.c (detect_type_change): Return immediately if
11368         devirtualize flag is not set.
11369         (detect_type_change_ssa): Likewise.
11370         (compute_known_type_jump_func): Likewise.
11371         (ipa_analyze_virtual_call_uses): Likewise.
11373 2011-01-14  Martin Jambor  <mjambor@suse.cz>
11375         PR tree-optimization/45934
11376         PR tree-optimization/46302
11377         * ipa-prop.c (type_change_info): New type.
11378         (stmt_may_be_vtbl_ptr_store): New function.
11379         (check_stmt_for_type_change): Likewise.
11380         (detect_type_change): Likewise.
11381         (detect_type_change_ssa): Likewise.
11382         (compute_complex_assign_jump_func): Check for dynamic type change.
11383         (compute_complex_ancestor_jump_func): Likewise.
11384         (compute_known_type_jump_func): Likewise.
11385         (compute_scalar_jump_functions): Likewise.
11386         (ipa_analyze_virtual_call_uses): Likewise.
11387         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
11389 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11391         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
11392         * config/i386/i386.opt (msse5): New Alias.
11394 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11396         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11397         * config/sparc/linux64.h (CC1_SPEC): Likewise.
11398         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11399         * config/sparc/sparc.h (CC1_SPEC): Likewise.
11401 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11403         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
11404         -mcpu options.
11405         * config/sparc/linux64.h (CC1_SPEC): Likewise.
11406         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11407         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
11408         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
11409         Likewise.
11410         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
11412 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11414         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
11416 2011-01-14  Mike Stump  <mikestump@comcast.net>
11418         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
11419         * config/fr30/fr30.md: Likweise
11420         (movsi_push): Likewise.
11421         (movsi_pop): Likewise.
11422         (enter_func): Likewise.
11423         * config/moxie/moxie.md (movsi_push): Likewise.
11424         (movsi_pop): Likewise.
11426 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11428         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
11429         %{no_archive} %{exact_version}.
11430         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
11431         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
11432         %{no_archive} %{exact_version}.
11433         * config/mips/openbsd.h (LINK_SPEC): Likewise.
11434         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
11435         * config/mips/vxworks.h: Likewise.
11437 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11439         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
11441 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11443         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
11444         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
11446 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11448         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
11449         -nodefaultlib.
11451 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11453         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
11454         for mcpu not cpu.
11455         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
11456         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
11457         not cpu.
11458         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
11459         Don't handle -shlib.
11461 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11463         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
11464         (CC1_SPEC): Don't handle -profile.
11466 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11468         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
11469         * config/mips/mips.h (CC1_SPEC): Likewise.
11471 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11473         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
11474         * config/mips/mips.h (CC1_SPEC): Likewise.
11476 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11478         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
11479         * config/m32r/linux.h (LINK_SPEC): Likewise.
11480         * config/mips/linux.h (LINK_SPEC): Likewise.
11481         * config/mips/linux64.h (LINK_SPEC): Likewise.
11482         * config/sparc/linux.h (LINK_SPEC): Likewise.
11483         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11484         LINK_SPEC): Likewise.
11485         * config/xtensa/linux.h (LINK_SPEC): Likewise.
11487 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11489         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
11490         %{version:-v}.
11491         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
11493 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11495         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
11496         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11498 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11500         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
11502 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11504         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
11505         supports -Bstatic/-Bdynamic.
11506         * configure: Regenerate.
11508 2011-01-14  Jan Hubicka  <jh@suse.cz>
11509             Jack Howarth  <howarth@bromo.med.uc.edu>
11511         PR target/46037
11512         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
11513         when checking debug_info_level. Test write_symbols instead of
11514         debug_hooks->var_location when setting flag_var_tracking_uninit.
11516 2011-01-14  Richard Guenther  <rguenther@suse.de>
11518         PR tree-optimization/47179
11519         * target.def (ref_may_alias_errno): New target hook.
11520         * targhooks.h (default_ref_may_alias_errno): Declare.
11521         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
11522         (default_ref_may_alias_errno): New function.
11523         * target.h (struct ao_ref_s): Declare.
11524         * tree-ssa-alias.c: Include target.h.
11525         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
11526         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
11527         (targhooks.o): Likewise.
11528         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
11529         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
11531 2011-01-14  Richard Guenther  <rguenther@suse.de>
11533         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
11535 2011-01-14  Richard Guenther  <rguenther@suse.de>
11537         PR tree-optimization/47280
11538         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
11539         return CFG changes.
11540         (tree_ssa_forward_propagate_single_use_vars): Deal with
11541         CFG changes from associate_plusminus.
11543 2011-01-14  Richard Guenther  <rguenther@suse.de>
11545         PR middle-end/47281
11546         Revert
11547         2011-01-11  Richard Guenther  <rguenther@suse.de>
11549         PR tree-optimization/46076
11550         * tree-ssa.c (useless_type_conversion_p): Conversions from
11551         unprototyped to empty argument list function types are useless.
11553 2011-01-14  Richard Guenther  <rguenther@suse.de>
11555         PR tree-optimization/47286
11556         * tree-ssa-structalias.c (new_var_info): Register variables are global.
11558 2011-01-14  Martin Jambor  <mjambor@suse.cz>
11560         PR middle-end/46823
11561         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
11563 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
11565         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
11566         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11567         * config/xtensa/xtensa.c (xtensa_libcall_value,
11568         xtensa_function_value_regno_p): New functions.
11569         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11571 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
11573         PR c++/47213
11574         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
11575         PE specific hook.
11576         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
11577         New function prototype.
11578         * config/i386/winnt.c (i386_pe_assemble_visibility):
11579         Warn only if attribute was specified by user.
11581 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
11583         PR target/47251
11584         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
11585         floating point.
11586         (floatunsdidf2_fcfidu): Ditto.
11588 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11590         * config/s390/s390.c (print_operand_address): Replace 'error' with
11591         'output_operand_lossage'.
11592         (print_operand): Likewise.
11594 2011-01-13  Jeff Law  <law@redhat.com>
11596         PR rtl-optimization/39077
11597         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
11598         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
11599         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
11600         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
11601         * gcse.c (prune_insertions_deletions): New function.
11602         (compute_pre_data): Use it.
11604 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
11606         PR debug/PR46973
11607         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
11608         static function.
11609         (prune_unused_types_mark): Use it.
11611 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
11613         PR rtl-optimization/45352
11614         * sel-sched.c: Update copyright years.
11615         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
11616         in the advancing loop when we have issued issue_rate insns.
11618 2011-01-12  Richard Henderson  <rth@redhat.com>
11620         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
11621         (TARGET_MD_ASM_CLOBBERS): New.
11623         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
11624         (TARGET_DELEGITIMIZE_ADDRESS): New.
11626         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
11627         (clzsi2, *bsch): New patterns.
11629         * config/mn10300/mn10300.md (INT): New mode iterator.
11630         (*mov<INT>_clr): New pattern, and peep2 to generate it.
11632         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
11633         flag_split_wide_types.
11635         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
11636         (mn10300_trampoline_init): Rewrite without a template, an immediate
11637         load and a direct branch.
11638         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
11640 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
11642         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11643         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
11644         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
11645         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11647 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
11649         PR debug/47209
11650         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
11651         of type.
11653 2011-01-12  Jan Hubicka  <jh@suse.cz>
11655         PR driver/47244
11656         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11657         (PLUGIN_COND_CLOSE): New macro.
11658         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11660 2011-01-12  Richard Guenther  <rguenther@suse.de>
11662         PR lto/47259
11663         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11664         register variables in a MEM_REF.
11666 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
11668         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11669         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11670         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11671         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11672         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11673         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11674         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11675         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11676         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11677         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11678         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11679         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11680         * config/gnu-user.h: New.  Copied from linux.h.
11681         (LINUX_TARGET_STARTFILE_SPEC): Rename to
11682         GNU_USER_TARGET_STARTFILE_SPEC.
11683         (LINUX_TARGET_ENDFILE_SPEC): Rename to
11684         GNU_USER_TARGET_ENDFILE_SPEC.
11685         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11686         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11687         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11688         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11689         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11690         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11691         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11692         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11693         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11694         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11695         * config/arm/linux-eabi.h (CC1_SPEC): Use
11696         GNU_USER_TARGET_CC1_SPEC.
11697         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11698         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11699         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11700         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11701         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11702         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11703         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11704         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11706 2011-01-12  Richard Guenther  <rguenther@suse.de>
11708         PR other/46946
11709         * doc/invoke.texi (ffast-math): Document it is turned on
11710         with -Ofast.
11712 2011-01-12  Jan Hubicka  <jh@suse.cz>
11714         PR tree-optimization/47233
11715         * opts.c (common_handle_option): Disable ipa-reference with profile
11716         feedback.
11718 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11720         * c-parser.c (c_parser_objc_at_property_declaration): Improved
11721         error message.
11723 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11725         * c-parser.c (c_lex_one_token): Updated and reindented some
11726         comments.  No changes in code.
11728 2011-01-11  Ian Lance Taylor  <iant@google.com>
11730         * godump.c (go_output_var): Don't output the variable if there is
11731         already a type with the same name.
11733 2011-01-11  Ian Lance Taylor  <iant@google.com>
11735         * godump.c (go_format_type): Don't generate float80.
11737 2011-01-11  Richard Henderson  <rth@redhat.com>
11739         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11740         declaration.  Rewrite for both speed and size.
11741         (mn10300_address_cost_1): Remove.
11742         (mn10300_register_move_cost): New.
11743         (mn10300_memory_move_cost): New.
11744         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
11745         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
11746         extensions, shifts, BSWAP, CLZ.
11747         (mn10300_wide_const_load_uses_clr): Remove.
11748         (TARGET_REGISTER_MOVE_COST): New.
11749         (TARGET_MEMORY_MOVE_COST): New.
11750         * config/mn10300/mn10300-protos.h: Update.
11751         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11753         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11754         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11755         * config/mn10300/mn10300-protos.h: Update.
11756         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11757         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11758         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11759         (*test_int_bitfield, *test_byte_bitfield): Remove.
11760         (*bit_test, *subreg_bit_test): Remove.
11761         * config/mn10300/predicates.md (const_8bit_operand): Remove.
11763         * config/mn10300/constraints.md ("c"): Rename from "A".
11764         ("A", "D"): New constraint letters.
11765         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11766         (fmssf4, fnmasf4, fnmssf4): Likewise.
11768         * config/mn10300/mn10300.md (isa): New attribute.
11769         (enabled): New attribute.
11771         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11772         (abssf2, negsf2): Define only for hardware fp.
11773         (sqrtsf2): Reformat.
11774         (addsf3, subsf3, mulsf3): Merge expander and insn.
11776         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11777         (DEBUGGER_AUTO_OFFSET): Remove.
11778         (DEBUGGER_ARG_OFFSET): Remove.
11780         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11781         Emit register stores with the same offsets as the hardware.
11782         (mn10300_store_multiple_operation): Don't check that the register
11783         save offsets are monotonic.
11784         * config/mn10300/mn10300-protos.h: Update.
11786         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11788         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11789         in terms of the value on the stack, not the MDR register.
11791 2011-01-11  Jan Hubicka  <jh@suse.cz>
11793         PR lto/45721
11794         PR lto/45375
11795         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11796         (symbol_alias_set_destroy, symbol_alias_set_contains,
11797         propagate_aliases_backward): Declare.
11798         * lto-streamer-out.c (struct sets): New sturcture.
11799         (trivally_defined_alias): New function.
11800         (output_alias_pair_p): Rewrite.
11801         (output_unreferenced_globals): Fix output of alias pairs.
11802         (produce_symtab): Likewise.
11803         * ipa.c (function_and_variable_visibility): Set weak alias destination
11804         as needed in lto.
11805         * varasm.c (symbol_alias_set_t): Remove.
11806         (symbol_alias_set_destroy): Export.
11807         (propagate_aliases_forward, propagate_aliases_backward): New functions
11808         based on ...
11809         (compute_visible_aliases): ... this one; remove.
11810         (trivially_visible_alias): New
11811         (trivially_defined_alias): New.
11812         (remove_unreachable_alias_pairs): Rewrite.
11813         (finish_aliases_1): Reorganize code checking if alias is defined.
11814         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11815         in LTO mode.
11817 2011-01-11  Richard Guenther  <rguenther@suse.de>
11819         PR tree-optimization/46076
11820         * tree-ssa.c (useless_type_conversion_p): Conversions from
11821         unprototyped to empty argument list function types are useless.
11823 2011-01-11  Richard Guenther  <rguenther@suse.de>
11825         PR middle-end/45235
11826         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11827         volatile MEMs as MEM_READONLY_P.
11829 2011-01-11  Richard Guenther  <rguenther@suse.de>
11831         PR tree-optimization/47239
11832         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11834 2011-01-11  Jeff Law  <law@redhat.com>
11836         PR tree-optimization/47086
11837         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11838         IVs from statements that might throw.
11840 2011-01-10  Jan Hubicka  <jh@suse.cz>
11842         PR lto/45375
11843         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11845 2011-01-10  Jan Hubicka  <jh@suse.cz>
11847         PR lto/45375
11848         * profile.c (read_profile_edge_counts): Ignore profile inconistency
11849         when correcting profile.
11851 2011-01-10  Jan Hubicka  <jh@suse.cz>
11853         PR lto/46083
11854         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11855         DECL_FINI_PRIORITY.
11856         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11857         Restore DECL_FINI_PRIORITY.
11859 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11861         * doc/gimple.texi: Fix quoting of multi-word return values in
11862         @deftypefn statements.  Ensure presence of return value.  Wrap
11863         overlong @deftypefn lines.
11864         (is_gimple_operand, is_gimple_min_invariant_address): Remove
11865         descriptions of removed functions.
11866         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11867         of multi-word return value in @deftypefn statement.
11869 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11871         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11872         (Conditional Expressions, Logical Operators)
11873         (Statement and operand traversals): Do not indent smallexample
11874         code.  Fix duplicate function argument in example.
11876 2011-01-10  Jeff Law  <law@redhat.com>
11878         PR tree-optimization/47141
11879         * ipa-split.c (split_function): Handle case where we are
11880         returning a value and the return block has a virtual operand phi.
11882 2011-01-10  Jan Hubicka  <jh@suse.cz>
11884         PR tree-optimization/47234
11885         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11886         (pass_feedback_split_functions): Declare.
11887         * passes.c (init_optimization_passes): Add ipa-split as subpass of
11888         tree-profile.
11889         * ipa-split.c (gate_split_functions): Update comments; disable
11890         split-functions for profile_arc_flag and branch_probabilities.
11891         (gate_feedback_split_functions): New function.
11892         (execute_feedback_split_functions): New function.
11893         (pass_feedback_split_functions): New global var.
11895 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
11897         PR lto/46760
11898         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11899         calling gimple_call_set_cannot_inline.
11901 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
11903         * config/darwin-sections.def: Remove unused section.
11905 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
11907         PR c++/47218
11908         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11910 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11912         PR objc/47232
11913         * c-parser.c (c_parser_declaration_or_fndef): Improved
11914         error message.
11916 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
11918         * config/i386/winnt.c (i386_pe_start_function): Make sure
11919         to switch back to function's section.
11921 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
11923         PR gcc/46902
11924         PR testsuite/46912
11925         * plugin.c: Move include of dlfcn.h from here...
11926         * system.h: ... to here.
11928 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11930         * doc/cpp.texi (C++ Named Operators): Fix markup for header
11931         file name.
11932         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11933         two extra empty pages in PDF output.
11935 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
11937         PR objc/47078
11938         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11939         for error recovery purposes behave as if it was not specified so
11940         that the default type is usd.
11942 2011-01-07  Jan Hubicka  <jh@suse.cz>
11944         PR tree-optmization/46469
11945         * ipa.c (function_and_variable_visibility): Clear needed flags on
11946         nodes with external decls; handle weakrefs merging correctly.
11948 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
11950         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11951         not false.
11953 2011-01-07  Jan Hubicka  <jh@suse.cz>
11955         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11956         and no longer claim that gold is required for linker plugin.
11957         * configure: Regenerate.
11958         * gcc.c (PLUGIN_COND): New macro.
11959         (LINK_COMMAND_SPEC): Use it.
11960         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11961         * config.in (HAVE_LTO_PLUGIN): New.
11962         * configure.ac (--with-lto-plugin): New parameter; autodetect
11963         HAVE_LTO_PLUGIN.
11965 2011-01-07  Jan Hubicka  <jh@suse.cz>
11967         PR tree-optimization/46367
11968         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11969         when we can update original.
11970         (cgraph_mark_inline_edge): Sanity check.
11971         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11973 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11975         * config/spu/spu.h (ASM_COMMENT_START): Define.
11977 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11979         PR driver/42445
11980         * gcc.c (%>S): New.
11981         (SWITCH_KEEP_FOR_GCC): Likewise.
11982         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11983         (do_spec_1): Handle "%>".
11985         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11987 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
11989         PR target/47201
11990         * config/i386/i386.c (ix86_delegitimize_address): If
11991         simplify_gen_subreg fails, return orig_x.
11993         PR bootstrap/47187
11994         * value-prof.c (gimple_stringop_fixed_value): Handle
11995         lhs of the call properly.
11997 2011-01-07  Jan Hubicka  <jh@suse.cz>
11999         PR lto/45375
12000         * lto-opt.c (lto_reissue_options): Set flag_shlib.
12002 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
12004         * target.def (function_switched_text_sections): New hook.
12005         * doc/tm.texi: Regenerated.
12006         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
12007         * final.c (default_function_switched_text_sections): New.
12008         (final_scan_insn): Call function_switched_text_sections when a
12009         mid-function section change occurs.
12010         * output.h (default_function_switched_text_sections): Declare.
12011         * config/darwin-protos.h (darwin_function_switched_text_sections):
12012         Likewise.
12013         * config/darwin.c (darwin_function_switched_text_sections): New.
12014         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
12016 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
12018         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
12019         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
12020         the secondary code fragment when outputting for DWARF == 2.
12022 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
12024         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12025         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
12026         Remove.
12027         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
12028         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12030 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
12032         PR debug/46704
12033         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
12034         when it is not empty.
12036 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
12038         Bobcat Enablement
12039         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
12040         (case ${target}): Add btver1.
12041         * config/i386/driver-i386.c (host_detect_local_cpu): Let
12042         -march=native recognize btver1 processors.
12043         * config/i386/i386-c.c (ix86_target_macros_internal): Add
12044         btver1 def_and_undef
12045         * config/i386/i386.c (struct processor_costs btver1_cost): New
12046         btver1 cost table.
12047         (m_BTVER1): New definition.
12048         (m_AMD_MULTIPLE): Includes m_BTVER1.
12049         (initial_ix86_tune_features): Add btver1 tune.
12050         (processor_target_table): Add btver1 entry.
12051         (static const char *const cpu_names): Add btver1 entry.
12052         (software_prefetching_beneficial_p): Add btver1.
12053         (ix86_option_override_internal): Add btver1 instruction sets.
12054         (ix86_issue_rate): Add btver1.
12055         (ix86_adjust_cost): Add btver1.
12056         * config/i386/i386.h (TARGET_BTVER1): New definition.
12057         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
12058         (enum processor_type): Add PROCESSOR_BTVER1.
12059         * config/i386/i386.md (define_attr "cpu"): Add btver1.
12061 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12063         PR target/43309
12064         * config/i386/i386.c (legitimize_tls_address)
12065         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
12066         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
12067         (tls_initial_exec_64_sun): New pattern.
12069 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
12071         * doc/invoke.texi (Overall Options): Improve wording and markup
12072         of the description of -wrapper.
12074 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
12076         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
12077         rdynamic, threads): New Driver options.
12079 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12081         PR target/38118
12082         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
12083         if coming from .tdata.
12084         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
12086 2011-01-06  Jan Hubicka  <jh@suse.cz>
12088         PR lto/47188
12089         * collect2.c (main): Do not enable LTOmode when plugin is active.
12091 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12093         PR other/45915
12094         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
12095         --version output if supported.
12096         * configure: Regenerate.
12098 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
12100         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
12101         Driver options.
12103 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
12105         PR c/47150
12106         * c-convert.c (convert): When converting a complex expression
12107         other than COMPLEX_EXPR to a different complex type, ensure
12108         c_save_expr is called instead of save_expr, unless in_late_binary_op.
12109         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
12110         when converting COMPLEX_TYPE.
12112 2011-01-06  Ira Rosen  <irar@il.ibm.com>
12114         PR tree-optimization/47139
12115         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
12116         only the last reduction value is used outside the loop.  Update
12117         documentation.
12119 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
12121         * config/rtems.opt: New.
12122         * config.gcc (*-*-rtems*): Use rtems.opt.
12124 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
12126         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
12127         processors do not support 3DNow instructions.
12129 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12131         * config/spu/spu.c (spu_option_override): Set parameter
12132         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
12134 2011-01-05  Jan Hubicka  <jh@suse.cz>
12136         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
12137         at the command line.
12139 2011-01-05  Martin Jambor  <mjambor@suse.cz>
12141         PR lto/47162
12142         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
12143         deltas on streamed outgoing edges.
12144         (output_node_opt_summary): Output info for outgoing edges only when
12145         the node is in new parameter set.
12146         (output_cgraph_opt_summary): New parameter set, passed to the two
12147         aforementioned functions.  Update its forward declaration and its
12148         callee too.
12150 2011-01-05  Tom Tromey  <tromey@redhat.com>
12152         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
12153         operator to c_finish_omp_atomic.
12154         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
12155         (build_unary_op): Update.
12156         (build_modify_expr): Update.
12157         (build_asm_expr): Update.
12159 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12161         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
12162         newly inserted insns.
12163         (pad_bb): Likewise.
12164         (spu_emit_branch_hint): Likewise.
12165         (insert_hbrp_for_ilb_runout): Likewise.
12166         (spu_machine_dependent_reorg): Call df_finish_pass after
12167         schedule_insns returns.
12169 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12171         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
12173 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
12175         PR tree-optimization/47005
12176         * tree-sra.c (struct access): Add 'non_addressable' bit.
12177         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
12178         (decide_one_param_reduction): Return 0 if the parameter is passed by
12179         reference and one of the accesses in the group is non_addressable.
12181 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
12183         PR tree-optimization/47056
12184         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
12185         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
12186         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
12188 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
12190         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
12191         initializer.  Skip view conversions from aggregate types.
12193 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
12195         PR bootstrap/47055
12196         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
12198 2011-01-04  Philipp Thomas  <pth@suse.de>
12200         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
12201         obvious typo.
12203 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12205         * function.c (thread_prologue_and_epilogue_insns): Do not crash
12206         on empty epilogue sequences.
12208 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
12210         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
12211         non-static): New Driver options.
12213 2011-01-04  Jie Zhang  <jie@codesourcery.com>
12215         PR driver/47137
12216         * gcc.c (default_compilers[]): Set combinable field to 0
12217         for all assembly languages.
12219 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
12221         * config/mips/loongson3a.md: New file.
12222         * config/mips/mips.md: Include loongson3a.md.
12223         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
12224         TUNE_LOONGSON_3A.
12226 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
12228         PR middle-end/47017
12229         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
12230         instead of convert_memory_address_addr_space on the base expression.
12232 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12234         * config/spu/spu.c (spu_option_override): Update error text
12235         for bad -march= / -mtune= values.
12237 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12239         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
12240         if branch-hint optimization will be performed.
12242 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
12244         PR tree-optimization/47148
12245         * ipa-split.c (split_function): Convert arguments to
12246         DECL_ARG_TYPE if possible.
12248         PR tree-optimization/47155
12249         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
12250         when computing uns.
12252         PR rtl-optimization/47157
12253         * combine.c (try_combine): If undobuf.other_insn becomes
12254         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
12255         and set *new_direct_jump_p too.
12257 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
12259         PR tree-optimization/47021
12260         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
12262 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
12264         * gcc.c (process_command): Update copyright notice dates.
12265         * gcov.c (print_version): Likewise.
12266         * gcov-dump.c (print_version): Likewise.
12267         * mips-tfile.c (main): Likewise.
12268         * mips-tdump.c (main): Likewise.
12270 2011-01-03  Martin Jambor  <mjambor@suse.cz>
12272         PR tree-optimization/46801
12273         * tree-sra.c (type_internals_preclude_sra_p): Check whether
12274         aggregate fields start at byte boundary instead of the bit-field flag.
12276 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
12278         PR driver/47137
12279         * gcc.c (main): Revert revision 168407.
12281 2011-01-03  Martin Jambor  <mjambor@suse.cz>
12283         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
12285 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12287         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
12288         vector optab to expand vector/scalar shift, update gimple to vector.
12290 2011-01-03  Martin Jambor  <mjambor@suse.cz>
12292         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
12293         a thunk.
12295 2011-01-03  Martin Jambor  <mjambor@suse.cz>
12297         PR tree-optimization/46984
12298         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
12299         HOST_WIDE_INT.
12300         (cgraph_create_indirect_edge): Fixed line length.
12301         (cgraph_indirect_call_info): Declare.
12302         (cgraph_make_edge_direct) Update declaration.
12303         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
12304         (cgraph_create_indirect_edge): Use it.
12305         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
12306         callees.
12307         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
12308         the new thunk_delta representation.
12309         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
12310         HOST_WIDE_INT.
12311         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
12312         (ipa_read_indirect_edge_info): Likewise.
12313         * lto-cgraph.c (output_edge_opt_summary): New function.
12314         (output_node_opt_summary): Call it on all outgoing edges.
12315         (input_edge_opt_summary): New function.
12316         (input_node_opt_summary): Call it on all outgoing edges.
12318 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
12320         PR driver/47137
12321         * gcc.c (main): Don't check have_o when settting combine_inputs.
12323 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
12325         * regrename.c: Add general comment describing the pass.
12326         (struct du_head): Remove 'length' field.
12327         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
12328         (regrename_optimize): Do not sort chains.  Rework comments, add others.
12329         Force renaming to the preferred class (if any) in the first pass and do
12330         not consider registers that belong to it in the second pass.
12331         (create_new_chain): Do not set 'length' field.
12332         (scan_rtx_reg): Likewise.
12334 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
12336         PR tree-optimization/47140
12337         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
12338         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
12339         to bit_value_binop.
12341         PR rtl-optimization/47028
12342         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
12343         parm_birth_insn instead of at the beginning of first bb.
12345 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
12347         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
12348         Remove the word "see" before "@pxref".
12349         * doc/rtl.texi: Remove the word "see" before "@pxref".
12351 2011-01-01  Jan Hubicka  <jh@suse.cz>
12353         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
12354         memory.
12356 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
12358         PR target/38662
12359         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
12362 Copyright (C) 2011 Free Software Foundation, Inc.
12364 Copying and distribution of this file, with or without modification,
12365 are permitted in any medium without royalty provided the copyright
12366 notice and this notice are preserved.