1 2011-04-29 Martin Jambor <mjambor@suse.cz>
3 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4 node instead of a decl. Update all callers.
5 * cgraph.h: Update declaration.
7 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
9 PR tree-optimization/48765
10 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
11 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
12 to indicate if loop aware SLP is being used. Scan the statements
13 and update the vectorization factor according to the type of
14 vectorization before statement analysis.
15 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
16 pass it to vect_analyze_loop_operations.
17 (vectorizable_reduction): Set number of copies to 1 in case of pure
19 * tree-vect-stmts.c (vectorizable_conversion,
20 vectorizable_assignment, vectorizable_shift,
21 vectorizable_operation, vectorizable_type_demotion,
22 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
24 (vectorizable_condition): Move the check that it is not SLP
25 vectorization before the number of copies check.
26 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
27 to vectorize the loop using SLP.
29 2011-04-28 Jakub Jelinek <jakub@redhat.com>
32 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
35 2011-04-28 Joseph Myers <joseph@codesourcery.com>
37 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
38 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
39 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
40 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
41 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
43 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
45 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
46 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
47 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
48 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't
50 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
52 * config/i386/linux.h (REG_NAME): Don't define.
53 * config/i386/linux64.h (REG_NAME): Don't define.
54 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
55 Undefine before defining.
57 2011-04-28 Jan Hubicka <jh@suse.cz>
59 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take nonconstant_names
61 (estimate_function_body_sizes): Build nonconstant_names array; handle
64 2011-04-28 Richard Guenther <rguenther@suse.de>
68 2011-04-28 Richard Guenther <rguenther@suse.de>
70 * tree-ssa-structalias.c (solve_constraints): Build succ graph
73 2011-04-28 Richard Guenther <rguenther@suse.de>
75 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
76 (debug_constraint): Do it here.
77 (dump_constraints): And here.
78 (rewrite_constraints): And here.
79 (dump_constraint_edge): Remove.
80 (dump_constraint_graph): Rewrite to produce DOT output.
81 (solve_constraints): Build succ graph as late as possible.
82 Dump constraint graphs before and after solving.
84 2011-04-28 Richard Guenther <rguenther@suse.de>
86 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
87 New function split out from ...
88 (find_func_aliases): ... here. Call it.
89 (find_func_aliases_for_call): Likewise.
91 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
93 * internal-fn.h (internal_fn_name_array): Declare.
94 (internal_fn_flags_array): Likewise.
96 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
98 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
99 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
101 (ssemodefsuffix): Remove.
102 (ssevecmodesuffix): New mode attribute.
103 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
104 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
105 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
106 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
107 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
108 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
109 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
110 ssemodesuffix mode attribute.
111 (float splitters): Use ssevecmodesuffix mode attribute.
112 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
113 (sseinsmode): Rename from avxvecmode.
114 (avxsizesuffix): Rename from avxmodesuffix.
115 (sseintvecmode): Rename from avxpermvecmode.
116 (ssedoublevecmode): Rename from ssedoublesizemode.
117 (ssehalfvecmode): Rename from avxhalfvecmode.
118 (ssescalarmode): Rename from avxscalarmode.
119 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
120 templates for ssemodesuffix mode attribute.
121 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
124 Adjust RTX patterns globally for renamed mode attributes.
126 2011-04-27 Jan Hubcika <jh@suse.cz>
128 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
129 * ipa-inline-analysis.c: Include alloc-pool.h.
130 (edge_predicate_pool): New.
131 (trye_predicate_p): New function
132 (false_predicate_p): New function.
133 (add_clause): Sanity check that false clauses are "optimized";
134 never add clauses to predicate that is already known to be false.
135 (and_predicate): Use flase_predicate_p.
136 (evaulate_predicate): Rename to ...
137 (evaluate_predicate): ... this one; update all callers; assert
138 that false is not listed among possible truths.
139 (dump_predicate): Use true_predicate_p.
140 (account_size_time): Use false_predicate_p.
141 (evaulate_conditions_for_edge): Rename to ...
142 (evaluate_conditions_for_edge) ... this one.
143 (edge_set_predicate): New function.
144 (inline_edge_duplication_hook): Duplicate edge predicates.
145 (inline_edge_removal_hook): Free edge predicates.
146 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
147 (dump_inline_summary): Update.
148 (estimate_function_body_sizes): Set edge predicates.
149 (estimate_calls_size_and_time): Handle predicates.
150 (estimate_callee_size_and_time): Update.
151 (remap_predicate): Add toplev_predicate; update comment.
152 (remap_edge_predicates): New function.
153 (inline_merge_summary): Compute toplev predicate; update.
154 (read_predicate): New function.
155 (read_inline_edge_summary): Use it.
156 (inline_read_section): Likewise.
157 (write_predicate): New function.
158 (write_inline_edge_summary): Use it.
159 (inline_write_summary): Likewise.
160 (inline_free_summary): Free alloc pool and edge summary vec.
162 2011-04-27 Richard Guenther <rguenther@suse.de>
164 * tree-ssa-structalias.c (changed_count): Remove.
165 (changed): Use a bitmap.
166 (unify_nodes): Adjust.
167 (do_sd_constraint): Likewise.
168 (do_ds_constraint): Likewise.
169 (do_complex_constraint): Likewise.
170 (solve_graph): Likewise.
172 2011-04-27 Jan Hubicka <jh@suse.cz>
174 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
176 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
178 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
179 (avx_vperm2f128_*_operand): Ditto.
180 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
181 Use avx_vpermilp_parallel in insn condition.
182 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
183 Use avx_vperm2f128_parallel in insn condition.
185 2011-04-27 Richard Guenther <rguenther@suse.de>
187 * Makefile.in (tree-ssa-structalias.o): Remove
188 gt-tree-ssa-structalias.h dependency.
189 (GTFILES): Remove tree-ssa-structalias.c.
190 * tree.c (allocate_decl_uid): New function.
191 (make_node_stat): Use it.
192 (copy_node_stat): Likewise.
193 * tree.h (allocate_decl_uid): Declare.
194 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
195 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
196 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
197 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
198 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
199 (struct heapvar_map): Likewise.
200 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
201 heapvar_insert): Likewise.
202 (make_heapvar_for): Rename to ...
203 (make_heapvar): ... this. Simplify.
204 (fake_var_decl_obstack): New global var.
205 (build_fake_var_decl): New function.
206 (make_constraint_from_heapvar): Adjust.
207 (handle_lhs_call): Likewise.
208 (create_function_info_for): Likewise.
209 (intra_create_variable_infos): Likewise.
210 (init_alias_vars): Allocate fake_var_decl_obstack.
211 (init_alias_heapvars, delete_alias_heapvars): Remove.
212 (compute_points_to_sets): Do not call init_alias_heapvars.
213 (ipa_pta_execute): Likewise.
214 (delete_points_to_sets): Free fake_var_decl_obstack.
216 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
218 * config/spu/divmovti4.c (union qword_UTItype): New data type.
219 (si_from_UTItype, si_to_UTItype): New functions.
220 (__udivmodti4): Use them to implement type-punning.
221 * config/spu/multi3.c (union qword_TItype): New data type.
222 (si_from_TItype, si_to_TItype): New functions.
223 (__multi3): Use them to implement type-punning.
225 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
227 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
229 2011-04-27 Jan Hubicka <jh@suse.cz>
231 * ipa-prop.c (function_insertion_hook_holder): New holder.
232 (ipa_add_new_function): New function.
233 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
234 Register/deregister holder.
236 2011-04-27 Richard Guenther <rguenther@suse.de>
238 PR tree-optimization/48772
239 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
241 2011-04-27 Richard Guenther <rguenther@suse.de>
243 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
244 TARGET_MEM_REF handling.
246 2011-04-27 Nick Clifton <nickc@redhat.com>
248 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
249 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
250 (REG_CLASS_NAMES): Likewise.
251 (REG_CLASS_CONTENTS): Likewise.
252 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
253 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
254 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
255 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
256 (EVEN_REGS): New macro. Alias for QUAD_REGS.
257 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
258 duplicate register classes.
259 (frv_class_likely_spilled_p): Likewise.
260 (frv_register_move_cost): Likewise.
262 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
263 end of the regno_reg_class array.
265 2011-04-27 Jakub Jelinek <jakub@redhat.com>
268 * c-typeck.c (build_binary_op): Don't wrap arguments if
269 int_operands is true.
271 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
274 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
275 targetm.calls.must_pass_in_stack for void type.
277 2011-04-26 Jan Hubicka <jh@suse.cz>
279 * cgraphbuild.c (build_cgraph_edges): Update call
280 of cgraph_create_edge and cgraph_create_indirect_edge.
281 * cgraph.c (cgraph_create_edge_including_clones,
282 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
283 cgraph_update_edges_for_call_stmt_node): Do not take nest
284 argument; do not initialize call_stmt_size/time.
285 (dump_cgraph_node): Do not dump nest.
286 (cgraph_clone_edge): Do not take loop_nest argument;
287 do not propagate it; do not clone call_stmt_size/time.
288 (cgraph_clone_node): Likewise.
289 (cgraph_create_virtual_clone): Update.
290 * cgraph.h (struct cgraph_edge): Remove
291 call_stmt_size/call_stmt_time/loop_nest.
292 (cgraph_create_edge, cgraph_create_indirect_edge,
293 cgraph_create_edge_including_clones, cgraph_clone_node): Update
295 * tree-emutls.c (gen_emutls_addr): Update.
296 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
297 loop_nest; handle indirect calls, too.
298 (clone_inlined_nodes): Do not care about updating inline summaries.
299 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
300 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
301 stream call_stmt_size/call_stmt_time/loop_nest.
302 * ipa-inline.c (edge_badness): Update.
303 (ipa_inline): dump summaries after inlining.
304 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
306 (inline_edge_summary): New function.
307 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
308 (inline_edge_removal_hook): Handle edge summaries.
309 (inline_edge_duplication_hook): New hook.
310 (inline_summary_alloc): Alloc hooks.
311 (initialize_growth_caches): Do not register removal hooks.
312 (free_growth_caches); Do not free removal hook.
313 (dump_inline_edge_summary): New function.
314 (dump_inline_summary): Use it.
315 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
316 (inline_update_callee_summaries): New function.
317 (inline_merge_summary): Use it.
318 (do_estimate_edge_time, do_estimate_edge_growth): Update.
319 (read_inline_edge_summary): New function.
320 (inline_read_section): Use it.
321 (write_inline_edge_summary): New function.
322 (inline_write_summary): Use it.
323 (inline_free_summary): Free edge new holders.
324 * tree-inline.c (copy_bb): Update.
326 2011-04-26 Jason Merrill <jason@redhat.com>
328 * tree-eh.c (lower_try_finally_switch): Create the label along with
331 2011-04-26 David S. Miller <davem@davemloft.net>
332 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
334 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
335 * configure: Regenerate.
337 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
340 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
342 (VEC_reduc): New code iterator and splitters for vector reduction.
343 (VEC_reduc_name): Ditto.
344 (VEC_reduc_rtx): Ditto.
345 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
346 (reduc_<VEC_reduc_name>_v4sf): Ditto.
348 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
349 support for extracting SF on VSX.
351 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
353 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
354 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
355 double add, minimum, maximum vector reduction.
356 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
357 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
358 optimize double vector reduction.
359 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
361 2011-04-26 Joseph Myers <joseph@codesourcery.com>
363 * config/fr30/fr30.h (inhibit_libc): Don't define.
364 * config/m32r/m32r-protos.h: Correct comment.
365 * config/v850/v850.h (GHS_default_section_names,
366 GHS_current_section_names): Use tree, not union tree_node *.
368 2011-04-26 Xinliang David Li <davidxl@google.com>
370 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
371 * c-family/c-opts.c (c_common_handle_option): Set
372 warn_maybe_uninitialized.
373 * opts.c (common_handle_option): Ditto.
374 * common.opt: New option.
375 * tree-ssa.c (warn_uninit): Add one more parameter.
376 (warn_uninitialized_var): Pass warning code.
377 * tree-flow.h: Interface change.
380 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
382 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
383 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
384 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
386 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
388 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
389 * config/mips/mips.opt (mmips-tfile): Remove.
391 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
392 mips-tdump reference to ...
393 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
394 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
395 reference by Tru64 UNIX.
397 2011-04-26 Jakub Jelinek <jakub@redhat.com>
400 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
401 is error_mark_node, set value to NULL.
403 PR tree-optimization/48734
404 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
405 if return value from maybe_fold_*_comparsions isn't something
406 the code is prepared to handle.
408 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
410 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
412 (ext_QIreg_nomode_operands): Remove.
413 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
417 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
419 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
421 2011-04-26 Richard Guenther <rguenther@suse.de>
423 * c-typeck.c (build_unary_op): Do not expand array-refs via
424 pointer arithmetic. Only adjust qualifiers for function types.
426 2011-04-26 Richard Guenther <rguenther@suse.de>
429 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
430 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
431 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
432 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
434 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
436 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
437 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
438 * doc/extend.texi: Document __underlying_type.
440 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
442 * config/rs6000/titan.md (automata_option "progress"): Remove.
444 2011-04-25 Jeff Law <law@redhat.com>
446 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
448 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
450 * system.h (ENUM_BITFIELD): Remove.
452 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
453 Eric Botcazou <ebotcazou@adacore.com>
455 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
456 for STORE_FLAG_VALUE==-1 case.
458 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
461 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
462 LEGITIMATE_PIC_OPERAND_P.
464 2011-04-24 Jan Hubicka <jh@suse.cz>
466 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
468 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
469 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
470 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
471 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
472 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
473 Sanity check predicate length.
474 (remap_predicate): Likewise; sanity check jump functions.
475 (inline_read_section, inline_write_summary): Sanity check
478 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
481 * doc/extend.texi (Type Traits): Document __is_standard_layout,
482 __is_literal_type, and __is_trivial; update throughout about
483 possibly cv-qualified void types.
485 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
487 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
488 testsuite and make it version agnostic.
490 2011-04-22 Jan Hubicka <jh@suse.cz>
492 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
494 2011-04-23 Jakub Jelinek <jakub@redhat.com>
497 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
498 to VOID_TYPE even around MODIFY_EXPR.
500 2011-04-22 Mike Stump <mikestump@comcast.net>
502 * gensupport.c (read_md_rtx): Fix typo in comment.
503 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
506 2011-04-22 Jan Hubicka <jh@suse.cz>
508 * gengtype.c (open_base_files): Add ipa-inline.h include.
509 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
510 ipa-prop.c; update all uses.
511 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
512 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
513 merge summary of inlined function into former caller.
514 * ipa-inline.c (max_benefit): Remove.
515 (edge_badness): Compensate for removal of benefits.
516 (update_caller_keys): Use
517 reset_node_growth_cache/reset_edge_growth_cache.
518 (update_callee_keys): Likewise.
519 (update_all_callee_keys): Likewise.
520 (inline_small_functions): Do not collect max_benefit; do not reset
521 estimated_growth; call free_growth_caches and initialize_growth_caches.
522 * ipa-inline.h (struct condition, type clause_t, struct predicate,
523 struct size_time_entry): New structures.
524 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
525 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
526 and estimated_growth.
527 (edge_growth_cache_entry): New structure.
528 (node_growth_cache, edge_growth_cache): New global vars.
529 (estimate_growth): Turn into inline.
530 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
531 initialize_growth_caches, free_growth_caches): Declare.
532 (estimate_edge_growth): Rewrite.
533 (estimate_edge_time): Implement as inline cache lookup.
534 (reset_node_growth_cache, reset_edge_growth_cache): New inline
536 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
537 (NUM_CONDITIONS): New constant.
538 (predicate_conditions): New enum.
539 (IS_NOT_CONSTANT): New constant.
540 (edge_removal_hook_holder): New var.
541 (node_growth_cache, edge_growth_cache): New global vars.
542 (true_predicate, single_cond_predicate, false_predicate,
543 not_inlined_predicate, add_condition, add_clause, and_predicates,
544 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
545 dump_clause, dump_predicate, account_size_time,
546 evaulate_conditions_for_edge): New functions.
547 (inline_summary_alloc): Move to heap.
548 (inline_node_removal_hook): Clear condition and entry vectors.
549 (inline_edge_removal_hook): New function.
550 (initialize_growth_caches, free_growth_caches): New function.
551 (dump_inline_summary): Update.
552 (edge_execution_predicate): New function.
553 (will_be_nonconstant_predicate): New function.
554 (estimate_function_body_sizes): Compute BB and constantness predicates.
555 (compute_inline_parameters): Do not clear estimated_growth.
556 (estimate_edge_size_and_time): New function.
557 (estimate_calls_size_and_time): New function.
558 (estimate_callee_size_and_time): New function.
559 (remap_predicate): New function.
560 (inline_merge_summary): New function.
561 (do_estimate_edge_time): New function based on...
562 (estimate_edge_time): ... this one.
563 (do_estimate_edge_growth): New function.
564 (do_estimate_growth): New function based on....
565 (estimate_growth): ... this one.
566 (inline_analyze_function): Analyze after deciding on jump functions.
567 (inline_read_section): New function.
568 (inline_read_summary): Use it.
569 (inline_write_summary): Write all the new data.
570 * ipa-prop.c (ipa_get_param_decl_index): Export.
571 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
572 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
574 (ipa_get_lattice): Move here from ipa-cp.c
575 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
576 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
577 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
578 cgraph_edge_inlinable_p): Remove.
579 * cgraphunit.c: Include ipainline.h
580 (cgraph_process_new_functions): Update call of
581 compute_inline_parameters.
583 2011-04-22 Richard Guenther <rguenther@suse.de>
585 * tree.c (build_int_cst): Properly create canonicalized integer
587 (build_int_cst_type): Remove scary comments.
589 2011-04-22 Xinliang David Li <davidxl@google.com>
591 * toplev.c (process_options): Enable -Werror=coverage-mismatch
592 by default when -Wno-error is not specified.
593 * opts-global.c (decode_options): Remove call to
594 control_warning_options.
596 2011-04-22 Jakub Jelinek <jakub@redhat.com>
598 PR tree-optimization/48717
599 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
600 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
602 2011-04-22 Joseph Myers <joseph@codesourcery.com>
604 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
605 definition where used.
607 2011-04-22 Jakub Jelinek <jakub@redhat.com>
610 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
611 TREE_STATIC variables declared inside of some OpenMP construct.
613 2011-04-22 Martin Jambor <mjambor@suse.cz>
616 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
618 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
621 * c-typeck.c (pop_init_level): Do not warn about initializing
624 2011-04-22 Alan Modra <amodra@gmail.com>
626 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
627 when returning call_cookie.
628 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
629 pointers, to functions with no more vector args than the current
630 function, and some non-local calls for ABI_V4.
631 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
632 sibcall_nonlocal_aix64): Combine to ..
633 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
634 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
635 (sibcall_value_nonlocal_aix<mode>): ..likewise.
636 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
637 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
639 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
640 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
641 sibcall_value_symbolic_64): Delete.
643 2011-04-21 Xinliang David Li <davidxl@google.com>
645 * cgraph.h: Remove pid.
646 * cgraph.c: Remove pid.
647 * value-prof.c (init_node_map): New function.
648 (del_node_map): New function.
649 (find_func_by_funcdef_no): New function.
650 (gimple_ic_transform): Call new function.
651 * cgraphunit.c (cgraph_finalize_function): Remove pid.
652 * function.c (get_last_funcdef_no): New function.
653 * function.h (get_last_funcdef_no): New function.
654 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
656 (tree-profiling): Call node map init and delete function.
658 2011-04-21 Ian Lance Taylor <iant@google.com>
660 * godump.c (go_format_type): Use exported Go name for anonymous
663 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
665 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
666 Call builtin_function_type_list instead of builtin_function_type.
667 (UNARY, BINARY, TRINARY, QUAD): Likewise.
669 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
671 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
672 build_function_type_list instead of build_function_type.
673 Delete variable `endlink'.
675 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
677 * config/s390/s390.c (s390_init_builtins): Call
678 build_function_type_list instead of build_function_type.
680 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
682 * config/ia64/ia64.c (ia64_init_builtins): Call
683 build_function_type_list instead of builtin_function_type.
685 2011-04-21 Easwaran Raman <eraman@google.com>
687 * cfgexpand.c (stack_var): Remove OFFSET...
688 (add_stack_var): ...and its reference here...
689 (expand_stack_vars): ...and here.
690 (stack_var_cmp): Sort by descending order of size.
691 (partition_stack_vars): Change heuristic.
692 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
693 (dump_stack_var_partition): Add newline after each partition.
695 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
696 Jeff Law <law@redhat.com>
698 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
699 * gengtype.c (matching_file_name_substitute): Likewise.
701 2011-04-21 Richard Guenther <rguenther@suse.de>
704 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
706 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
708 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
710 2011-04-21 Richard Guenther <rguenther@suse.de>
712 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
715 2011-04-21 Richard Guenther <rguenther@suse.de>
717 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
718 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
719 Use DECL_P, not SSA_VAR_P.
720 (ptr_derefs_may_alias_p): Likewise.
721 (ptr_deref_may_alias_ref_p_1): Likewise.
722 (decl_refs_may_alias_p): Likewise.
723 (refs_may_alias_p_1): Likewise.
724 (ref_maybe_used_by_call_p_1): Likewise.
725 (call_may_clobber_ref_p_1): Likewise.
726 (indirect_ref_may_alias_decl_p): Assume indirect refrences
727 are either MEM_REF or TARGET_MEM_REF.
728 (indirect_refs_may_alias_p): Likewise.
729 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
730 for MEM_EXPR of indirect calls.
732 2011-04-21 Tristan Gingold <gingold@adacore.com>
734 * vmsdbgout.c (write_srccorr): Compute file length from the string.
735 (dst_file_info_struct): Remove flen field.
736 (lookup_filename): Remove code that set flen field.
738 2011-04-21 Tristan Gingold <gingold@adacore.com>
740 * config/ia64/ia64.c (ia64_start_function): Add a guard.
742 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
745 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
746 vec_extract and vec_concat for non-SSE4_1 targets.
748 2011-04-21 Richard Guenther <rguenther@suse.de>
750 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
753 2011-04-21 Joseph Myers <joseph@codesourcery.com>
755 * config/i386/cygming.h (union tree_node, TREE): Don't define or
757 (FILE): Don't undefine.
759 2011-04-21 Joseph Myers <joseph@codesourcery.com>
761 * config/alpha/alpha.c (struct machine_function): Use rtx, not
763 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
765 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
766 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
767 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
769 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
770 definitions where used.
771 * config/microblaze/microblaze.h (struct microblaze_args): Use
772 rtx, not struct rtx_def *.
773 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
775 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
776 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
777 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
778 not struct rtx_def *.
779 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
781 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
783 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
785 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
787 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
788 operand_equal_p to compare DR_BASE_ADDRESSes.
789 (vect_check_interleaving): Likewise.
791 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
794 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
795 for all Neon struct constants.
797 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
799 * target.def (legitimate_constant_p): New hook.
800 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
801 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
802 * doc/tm.texi: Regenerate.
803 * hooks.h (hook_bool_mode_rtx_true): Declare.
804 * hooks.c (hook_bool_mode_rtx_true): Define.
805 * system.h (LEGITIMATE_CONSTANT_P): Poison.
806 * calls.c (precompute_register_parameters): Replace uses of
807 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
808 (emit_library_call_value_1): Likewise.
809 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
810 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
811 * ira-costs.c (scan_one_insn): Likewise.
812 * recog.c (general_operand, immediate_operand): Likewise.
813 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
814 * reload1.c (init_eliminable_invariants): Likewise.
816 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
818 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
819 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
821 (TARGET_LEGITIMATE_CONSTANT_P): Define.
822 * config/alpha/predicates.md (input_operand): Update call to
823 alpha_legitimate_constant_p.
825 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
826 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
827 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
828 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
829 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
830 (arm_legitimate_constant_p): New functions.
831 (arm_cannot_force_const_mem): Make static.
833 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
835 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
836 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
837 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
838 instead of bfin_legitimate_constant_p.
839 (bfin_legitimate_constant_p): Make static. Add a mode argument.
840 (TARGET_LEGITIMATE_CONSTANT_P): Define.
842 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
844 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
846 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
847 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
848 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
849 (frv_legitimate_constant_p): Make static. Add a mode argument.
851 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
852 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
853 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
855 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
856 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
857 * config/i386/i386.c (legitimate_constant_p): Rename to...
858 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
860 (ix86_cannot_force_const_mem): Update accordingly.
861 (ix86_legitimate_address_p): Likewise.
862 (TARGET_LEGITIMATE_CONSTANT_P): Define.
863 * config/i386/i386.md: Update commentary.
865 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
866 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
867 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
868 (ia64_legitimate_constant_p): Make static. Add a mode argument.
870 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
872 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
873 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
874 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
875 (lm32_legitimate_constant_p): Make static. Add a mode argument.
877 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
878 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
879 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
881 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
882 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
883 (m32r_legitimate_constant_p): New function.
885 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
886 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
887 LEGITIMATE_CONSTANT_P.
888 (LEGITIMATE_CONSTANT_P): Delete.
889 * config/m68k/m68k.c (m68k_expand_prologue): Call
890 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
891 (m68k_legitimate_constant_p): New function.
892 * config/m68k/m68k.md: Update comments.
894 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
895 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
896 (mcore_legitimate_constant_p): New function.
898 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
899 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
900 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
902 (mep_legitimate_address): Update accordingly.
903 (TARGET_LEGITIMATE_CONSTANT_P): Define.
905 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
907 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
908 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
909 static. Check OP's mode for VOIDmode.
910 (microblaze_legitimate_constant_p): New function.
911 (TARGET_LEGITIMATE_CONSTANT_P): Define.
913 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
914 * config/mips/mips.c (mips_legitimate_constant_p): New function.
915 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
916 (TARGET_LEGITIMATE_CONSTANT_P): Define.
917 * config/mips/predicates.md: Update comments.
919 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
920 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
921 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
922 (mmix_legitimate_constant_p): Make static, return a bool, and take
924 (mmix_print_operand_address): Update accordingly.
926 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
928 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
929 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
930 static. Add a mode argument.
931 (TARGET_LEGITIMATE_CONSTANT_P): Define.
933 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
935 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
936 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
937 (pa_legitimate_constant_p): New function.
939 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
941 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
942 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
943 (pdp11_legitimate_constant_p): New function.
945 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
946 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
947 (rs6000_legitimate_constant_p): New function.
949 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
950 (rx_legitimate_constant_p): ...this.
951 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
952 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
953 (rx_legitimate_constant_p): ...this.
954 (TARGET_LEGITIMATE_CONSTANT_P): Define.
955 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
957 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
958 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
959 * config/s390/s390.c (legitimate_constant_p): Rename to...
960 (s390_legitimate_constant_p): ...this. Make static, return a bool,
961 and add a mode argument.
962 (TARGET_LEGITIMATE_CONSTANT_P): Define.
964 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
966 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
967 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
968 (sh_legitimate_constant_p): New function.
970 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
971 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
972 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
973 (legitimate_constant_p): Rename to...
974 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
976 (constant_address_p): Update accordingly.
978 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
979 argument and return a bool.
980 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
981 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
982 (spu_legitimate_constant_p): Add a mode argument and return a bool.
983 (spu_rtx_costs): Update accordingly.
984 * config/spu/predicates.md (vec_imm_operand): Likewise.
986 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
988 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
989 * config/v850/v850.c (v850_legitimate_constant_p): New function.
990 (TARGET_LEGITIMATE_CONSTANT_P): Define.
992 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
993 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
994 * config/vax/vax.c (legitimate_constant_p): Likewise.
996 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
997 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
998 (xtensa_legitimate_constant_p): New function.
1000 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1002 * target.def (cannot_force_const_mem): Add a mode argument.
1003 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
1004 * doc/tm.texi: Regenerate.
1005 * hooks.h (hook_bool_mode_rtx_false): Declare.
1006 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
1007 (hook_bool_mode_const_rtx_true): Likewise.
1008 (hook_bool_mode_rtx_false): New function.
1009 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
1010 to be non-VOID. Update call to cannot_force_const_mem.
1011 (find_reloads): Update accordingly.
1012 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
1013 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
1015 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
1016 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
1017 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
1018 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
1019 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
1020 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
1021 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
1022 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
1023 (m68k_cannot_force_const_mem): ...this new function.
1024 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
1026 (mips_const_insns, mips_legitimize_const_move): Update calls.
1027 (mips_secondary_reload_class): Likewise.
1028 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
1029 (pa_cannot_force_const_mem): ...this new function.
1030 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
1031 (rs6000_cannot_force_const_mem): ...this new function.
1032 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
1034 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
1035 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
1037 (xtensa_cannot_force_const_mem): ...this new function.
1039 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
1041 * config/mips/mips.c (mips16_build_function_stub): Call
1042 build_function_type_list instead of build_function_type.
1043 (mips16_build_call_stub): Likewise.
1045 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
1047 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
1048 instead of build_function_type.
1050 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
1052 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
1053 instead of build_function_type.
1055 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
1058 * config/i386/i386.md (insv): Change operand 0 constraint to
1059 "register_operand". Change operand 1 and 2 constraint to
1060 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
1061 * config/i386/sse.md (sse4_1_pinsrb): Export.
1062 (sse2_pinsrw): Ditto.
1063 (sse4_1_pinsrd): Ditto.
1064 (sse4_1_pinsrq): Ditto.
1065 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
1066 * config/i386/i386.c (ix86_expand_pinsr): New.
1068 2011-04-20 Easwaran Raman <eraman@google.com>
1070 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
1071 containing union type only with -fstrict-aliasing.
1073 2011-04-20 Jim Meyering <meyering@redhat.com>
1075 Remove useless if-before-free tests.
1076 * calls.c (expand_call, save_area): Likewise.
1077 * cfgcleanup.c (try_forward_edges): Likewise.
1078 * collect2.c (collect_execute): Likewise.
1079 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
1080 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
1081 * coverage.c (coverage_checksum_string): Likewise.
1082 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
1083 * cselib.c (cselib_init): Likewise.
1084 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
1085 (df_set_clean_cfg): Likewise.
1086 * function.c (free_after_compilation): Likewise.
1087 * gcc.c (do_spec_1, main): Likewise.
1088 * gcov.c (create_file_names): Likewise.
1089 * gensupport.c (identify_predicable_attribute): Likewise.
1090 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
1091 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
1092 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
1093 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
1094 * ipa-pure-const.c (local_pure_const): Likewise.
1095 * ipa-reference.c (propagate): Likewise.
1096 * ira-costs.c (free_ira_costs): Likewise.
1097 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
1098 * matrix-reorg.c (mat_free): Likewise.
1099 * prefix.c (get_key_value): Likewise.
1100 * profile.c (compute_value_histograms): Likewise.
1101 * reload1.c (free_reg_equiv): Likewise.
1102 * sched-deps.c (free_deps): Likewise.
1103 * sel-sched-ir.c (fence_clear): Likewise.
1104 * sese.c (set_rename, if_region_set_false_region): Likewise.
1105 * tree-data-ref.c (free_rdg): Likewise.
1106 * tree-eh.c (lower_try_finally): Likewise.
1107 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
1108 * tree-ssa-live.c (delete_var_map): Likewise.
1109 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
1110 * tree-ssa-pre.c (phi_trans_add): Likewise.
1112 2011-04-20 Jakub Jelinek <jakub@redhat.com>
1114 PR tree-optimization/48611
1115 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
1116 beyond ERT_MUST_NOT_THROW region.
1118 2011-04-20 Catherine Moore <clm@codesourcery.com>
1120 * config/mips/mips.opt (mfix-24k): New.
1121 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
1122 * config/mips/mips.md (length): Increase by 4 for stores if
1124 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
1125 all noreorder if fixing 24K errata.
1126 * doc/invoke.texi: Document mfix-24k.
1128 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
1130 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
1131 quad-word modes, reduce to 9-bit index range when above 1016 limit.
1133 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
1135 * config/arm/arm.c (arm_gen_constant): Move movw support ....
1136 (const_ok_for_op): ... to here.
1138 2011-04-20 Kai Tietz <ktietz@redhat.com>
1140 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
1141 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
1143 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
1145 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
1147 2011-04-20 Richard Guenther <rguenther@suse.de>
1149 PR tree-optimization/47892
1150 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
1153 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
1155 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
1157 2011-04-20 Tristan Gingold <gingold@adacore.com>
1159 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
1161 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
1165 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
1166 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
1167 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1168 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1169 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
1171 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
1174 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
1175 (avr_asm_named_section, avr_asm_output_aligned_common,
1176 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
1177 New functions to update...
1178 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
1179 (avr_asm_init_sections): Overwrite section callbacks for
1180 data_section, bss_section.
1181 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
1183 (avr_file_end): ...here.
1185 2011-04-20 Richard Guenther <rguenther@suse.de>
1188 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
1189 objects and types here. Adjust for their offset before comparing.
1191 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
1193 * tree-vect-stmts.c (vectorizable_store): Only chain one related
1196 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
1198 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
1199 (GIMPLE_H): Include $(INTERNAL_FN_H).
1200 (OBJS-common): Add internal-fn.o.
1201 (internal-fn.o): New rule.
1202 * internal-fn.def: New file.
1203 * internal-fn.h: Likewise.
1204 * internal-fn.c: Likewise.
1205 * gimple.h: Include internal-fn.h.
1206 (GF_CALL_INTERNAL): New gf_mask.
1207 (gimple_statement_call): Put fntype into a union with a new
1209 (gimple_build_call_internal): Declare.
1210 (gimple_build_call_internal_vec): Likewise.
1211 (gimple_call_same_target_p): Likewise.
1212 (gimple_call_internal_p): New function.
1213 (gimple_call_internal_fn): Likewise.
1214 (gimple_call_fntype): Return null for internal calls.
1215 (gimple_call_set_fntype): Assert that the function is not internal.
1216 (gimple_call_set_fn): Likewise.
1217 (gimple_call_set_fndecl): Likewise.
1218 (gimple_call_set_internal_fn): New function.
1219 (gimple_call_addr_fndecl): Handle null functions.
1220 (gimple_call_return_type): Likewise null types.
1221 * gimple.c (gimple_build_call_internal_1): New function.
1222 (gimple_build_call_internal): Likewise.
1223 (gimple_build_call_internal_vec): Likewise.
1224 (gimple_call_same_target_p): Likewise.
1225 (gimple_call_flags): Handle calls to internal functions.
1226 (gimple_call_fnspec): New function.
1227 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
1228 (gimple_has_side_effects): Handle null functions.
1229 (gimple_rhs_has_side_effects): Likewise.
1230 (gimple_call_copy_skip_args): Handle calls to internal functions.
1231 * cfgexpand.c (expand_call_stmt): Likewise.
1232 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
1233 * gimple-fold.c (gimple_fold_call): Handle null functions.
1234 (gimple_fold_stmt_to_constant_1): Don't fold
1235 calls to internal functions.
1236 * gimple-low.c (gimple_check_call_args): Handle calls to internal
1238 * gimple-pretty-print.c (dump_gimple_call): Likewise.
1239 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
1240 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
1241 (do_warn_unused_result): Likewise.
1242 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
1243 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
1244 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
1245 the target of a call.
1246 (initialize_hash_element): Update accordingly.
1247 (hashable_expr_equal_p): Use gimple_call_same_target_p.
1248 (iterative_hash_hashable_expr): Handle calls to internal functions.
1249 (print_expr_hash_elt): Likewise.
1250 * tree-ssa-pre.c (can_value_number_call): Likewise.
1251 (eliminate): Handle null functions.
1252 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
1253 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
1254 (find_func_aliases): Likewise.
1255 * value-prof.c (gimple_ic_transform): Likewise.
1256 (gimple_indirect_call_to_profile): Likewise.
1257 * lto-streamer-in.c (input_gimple_stmt): Likewise.
1258 * lto-streamer-out.c (output_gimple_stmt): Likewise.
1260 2011-04-19 Jan Hubicka <jh@suse.cz>
1262 * ipa-inline-transform.c (save_inline_function_body): Add comments.
1263 * ipa-inline.c (inline_small_functions): Compute summaries first,
1264 populate heap later.
1266 2011-04-19 Jan Hubicka <jh@suse.cz>
1268 * cgraph.h (save_inline_function_body): Remove.
1269 * ipa-inline-transform.c: New file, broke out of...
1270 * ipa-inline.c: ... this one; Update toplevel comment.
1271 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
1273 (update_noncloned_frequencies): Move to ipa-inline-transform.c
1274 (cgraph_mark_inline_edge): Rename to inline_call; move to
1275 ipa-inline-transform.c.
1276 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
1277 move to ipa-inline-transform.c
1278 (recursive_inlining, inline_small_functions, flatten_function,
1279 ipa_inline, inline_always_inline_functions,
1280 early_inline_small_functions): Update.
1281 (inline_transform): Move to ipa-inline-transform.c.
1282 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
1284 * Makefile.in (ipa-inline-transform.o): New file.
1285 * cgraphunit.c (save_inline_function_body): Move to
1286 ipa-inline-transform.c
1288 2011-04-19 DJ Delorie <dj@redhat.com>
1290 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
1291 registers if we already know there aren't any.
1292 (m32c_emit_epilogue): Don't emit a barrier here.
1293 (m32c_emit_eh_epilogue): Likewise.
1294 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
1295 operands at expand time.
1296 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
1298 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
1299 duplicates. Provide aliases instead.
1300 * config/m32c/prologue.md (eh_return): Emit a barrier here.
1301 (eh_epilogue): Add a "(return)" here as a hint to other parts of
1304 2011-04-19 Anatoly Sokolov <aesok@post.ru>
1306 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
1307 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
1308 (general_or_i64_p, sparc_register_move_cost): New function.
1310 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1312 * doc/install.texi (Configuration, --enable-threads): Remove mach.
1313 Add lynx, mipssde. Sort table.
1315 2011-04-19 Xinliang David Li <davidxl@google.com>
1317 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
1320 2011-04-19 Jakub Jelinek <jakub@redhat.com>
1323 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
1324 is a SUBREG with non-MODE_INT mode inside of it.
1326 2011-04-19 Martin Jambor <mjambor@suse.cz>
1328 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
1329 also according to actual contants.
1330 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
1331 (gimple_fold_call): Use it.
1332 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
1334 2011-04-19 Martin Jambor <mjambor@suse.cz>
1336 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
1337 non-pointer assignments.
1339 2011-04-19 Martin Jambor <mjambor@suse.cz>
1341 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
1342 account anc_offset and otr_type from the indirect edge info.
1343 * ipa-prop.c (get_ancestor_addr_info): New function.
1344 (compute_complex_ancestor_jump_func): Assignment analysis moved to
1345 get_ancestor_addr_info, call it.
1346 (ipa_note_param_call): Do not initialize information about polymorphic
1347 calls, return the indirect call graph edge. Remove the last
1348 parameter, adjust all callers.
1349 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
1350 parameters. Initialize polymorphic information in the indirect edge.
1352 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
1355 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
1356 the types if they have different enumeration identifiers.
1358 2011-04-19 Jan Hubicka <jh@suse.cz>
1360 * cgraph.h (cgraph_optimize_for_size_p): Declare.
1361 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
1362 * predict.c (cgraph_optimize_for_size_p): Break out from ...
1363 (optimize_function_for_size_p) ... here.
1365 2011-04-19 Richard Guenther <rguenther@suse.de>
1368 * tree.c (free_lang_data): Do not reset the decl-assembler-name
1371 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
1373 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
1374 if DECL_NO_INLINE_WARNING_P is set on the function.
1376 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
1379 * reload1.c (inc_for_reload): Return void. All callers changed.
1380 (emit_input_reload_insns): Don't try to delete previous output
1381 reloads to a register, or record spill_reg_store for autoincs.
1383 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
1385 * gengtype.h: Updated copyright year.
1386 (struct input_file_st): Add inpisplugin field.
1387 (type_fileloc): New function.
1389 (write_typed_struct_alloc_def): Add gcc_assert.
1390 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
1391 (write_typed_alloc_defns): Don't output for plugin files.
1392 (input_file_by_name): Clear inpisplugin field.
1393 (main): Set inpisplugin field for plugin files.
1395 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
1397 * gengtype-state.c (string_eq): New.
1398 (read_state): Use string_eq instead of strcmp when creating the
1401 2011-04-19 Wei Guozhi <carrot@google.com>
1404 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
1405 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
1407 * config/arm/constraints.md (Uu): New constraint.
1408 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
1410 2011-04-19 Tristan Gingold <gingold@adacore.com>
1412 * config.gcc (-*-*-*vms): Added.
1413 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
1415 * config/vms/vms-ld.c: New file.
1416 * config/vms/vms-ar.c: New file.
1417 * config/vms/t-vmsnative: New file.
1419 2011-04-18 Xinliang David Li <davidxl@google.com>
1421 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
1423 2011-04-18 Jakub Jelinek <jakub@redhat.com>
1426 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
1427 if TREE_TYPE (v) is non-NULL.
1429 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
1430 gimple_get_virt_mehtod_for_binfo.
1431 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
1432 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
1434 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1436 2011-04-18 Michael Matz <matz@suse.de>
1437 Steve Ellcey <sje@cup.hp.com>
1439 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
1440 use its mode as source mode if it isn't VOIDmode.
1442 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
1444 * doc/passes.texi: Fill crossref nodes.
1446 2011-04-18 Jim Meyering <meyering@redhat.com>
1448 Fix doubled-word typos in comments and strings
1449 * config/alpha/vms-unwind.h: s/for for/for/
1450 * config/arm/unwind-arm.h: Likewise.
1451 * config/microblaze/microblaze.c: Likewise.
1452 * config/sh/constraints.md: s/in in/in/
1453 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
1455 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
1457 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
1458 (AVX_FLOAT_MODE_P): Ditto.
1459 (AVX128_VEC_FLOAT_MODE_P): Ditto.
1460 (AVX256_VEC_FLOAT_MODE_P): Ditto.
1461 (AVX_VEC_FLOAT_MODE_P): Ditto.
1462 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
1463 (UNSPEC_MASKSTORE): Ditto.
1464 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
1465 Merge from <sse>_movmsk<ssemodesuffix> and
1466 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
1467 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
1469 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
1470 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
1471 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
1473 2011-04-18 Jan Hubicka <jh@suse.cz>
1475 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
1477 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
1478 (want_inline_function_called_once_p): Break out the logic from
1480 (edge_badness): Ensure that profile is not misupdated.
1481 (lookup_recursive_calls): Prioritize by call frequencies.
1482 (inline_small_functions): Move program size estimates here;
1483 actually process whole queue even when unit growth has been
1484 met. (to properly compute inline_failed reasons and for the
1485 case unit size decrease.) Revisit comments on recursive inlining.
1486 (ipa_inline): Remove unit summary code; first inline hot calls
1487 of functions called once, cold calls next.
1488 (order, nnodes): Remove unused variables.
1489 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
1490 (GTFILES): Remove ipa-inline.c
1491 * sel-sched.c (fill_insns): Silence uninitialized var warning.
1493 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
1495 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
1497 2011-04-18 Jie Zhang <jie@codesourcery.com>
1498 Richard Earnshaw <rearnsha@arm.com>
1500 * arm.c (neon_builtin_type_bits): Remove.
1501 (typedef enum neon_builtin_mode): New.
1502 (T_MAX): Don't define.
1503 (typedef enum neon_builtin_datum): Remove bits, codes[],
1504 num_vars and base_fcode. Add mode, code and fcode.
1505 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
1506 VAR10): Change accordingly.
1507 (neon_builtin_data[]): Change accordingly
1508 (arm_init_neon_builtins): Change accordingly.
1509 (neon_builtin_compare): Remove.
1510 (locate_neon_builtin_icode): Remove.
1511 (arm_expand_neon_builtin): Change accordingly.
1513 * arm.h (enum arm_builtins): Move to ...
1514 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
1516 * arm.c (arm_builtin_decl): Declare.
1517 (TARGET_BUILTIN_DECL): Define.
1518 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
1519 (arm_builtin_decls[]): New.
1520 (arm_init_neon_builtins): Store builtin declarations in
1521 arm_builtin_decls[].
1522 (arm_init_tls_builtins): Likewise.
1523 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
1524 (arm_builtin_decl): New.
1526 2011-04-18 Richard Guenther <rguenther@suse.de>
1528 * tree.c (upper_bound_in_type): Build properly canonicalized
1530 (lower_bound_in_type): Likewise.
1532 2011-04-18 Richard Guenther <rguenther@suse.de>
1534 * gimple.h (gimple_call_addr_fndecl): New function.
1535 (gimple_call_fndecl): Use it.
1536 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
1538 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
1539 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
1541 2011-04-18 Richard Guenther <rguenther@suse.de>
1544 * tree.c (build_string): STRING_CST is now derived from tree_typed.
1546 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
1549 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
1550 DECL_IN_CONSTANT_POOL without RTL.
1552 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
1553 Ira Rosen <ira.rosen@linaro.org>
1556 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
1557 to match neon_vzip/vuzp/vtrn_internal.
1558 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
1559 outputs explicitly dependent on both inputs.
1560 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
1562 2011-04-18 Jakub Jelinek <jakub@redhat.com>
1564 PR tree-optimization/48616
1565 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
1566 whether the shift is by scalar or vector based on whether all SLP
1567 scalar stmts have the same rhs.
1569 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
1571 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
1574 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
1576 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
1579 2011-04-17 Jan Hubicka <jh@suse.cz>
1581 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
1582 * cgrpahunit.c (cgraph_finalize_function): Do not set
1583 finalized_by_frontend.
1584 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1585 finalized_by_frontend.
1587 2011-04-17 Jan Hubicka <jh@suse.cz>
1589 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
1590 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
1591 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
1592 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
1594 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
1596 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
1598 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
1601 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
1602 is non-null before accessing it.
1603 (input_cgraph): Remove trailing spaces.
1605 2011-04-17 Revital Eres <revital.eres@linaro.org>
1607 * params.def (sms-min-sc): New param flag.
1608 * modulo-sched.c (sms_schedule): Use it.
1609 * doc/invoke.texi (sms-min-sc): Document it.
1611 2011-04-17 Jan Hubicka <jh@suse.cz>
1613 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1614 present, also set gimple_call_set_cannot_inline.
1615 * ipa-inline.c: Update toplevel comment.
1617 (cgraph_clone_inlined_nodes): Fix linebreaks.
1618 (cgraph_check_inline_limits): Restructure to ...
1619 (caller_growth_limits): ... this one; be more tolerant
1620 on growth in nested inline chains; add explanatory comment;
1621 fix stack accounting thinko introduced by previous patch.
1622 (cgraph_default_inline_p): Remove.
1623 (report_inline_failed_reason): New function.
1624 (can_inline_edge_p): New function.
1625 (can_early_inline_edge_p): New function.
1626 (leaf_node_p): Move upwards in file.
1627 (want_early_inline_function_p): New function.
1628 (want_inline_small_function_p): New function.
1629 (want_inline_self_recursive_call_p): New function.
1630 (cgraph_edge_badness): Rename to ...
1631 (edge_badness) ... this one; fix linebreaks.
1632 (update_edge_key): Update call of edge_baddness; add
1633 detailed dump about queue updates.
1634 (update_caller_keys): Use can_inline_edge_p and
1635 want_inline_small_function_p.
1636 (cgraph_decide_recursive_inlining): Rename to...
1637 (recursive_inlining): Use can_inline_edge_p and
1638 want_inline_self_recursive_call_p; simplify and remove no longer
1640 (cgraph_set_inline_failed): Remove.
1641 (add_new_edges_to_heap): Use can_inline_edge_p and
1642 want_inline_small_function_p.
1643 (cgraph_decide_inlining_of_small_functions): Rename to ...
1644 (inline_small_functions): ... this one; cleanup; use
1645 can/want predicates; cleanup debug ouput; work edges till fibheap
1646 is exhausted and do not stop once unit growth is reached; remove
1647 later loop processing remaining edges.
1648 (cgraph_flatten): Rename to ...
1649 (flatten_function): ... this one; use can_inline_edge_p
1650 and can_early_inline_edge_p predicates.
1651 (cgraph_decide_inlining): Rename to ...
1652 (ipa_inline): ... this one; remove unreachable nodes before
1653 inlining functions called once; simplify the pass.
1654 (cgraph_perform_always_inlining): Rename to ...
1655 (inline_always_inline_functions): ... this one; use
1656 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1657 (cgraph_decide_inlining_incrementally): Rename to ...
1658 (early_inline_small_functions): ... this one; simplify
1659 using new predicates; cleanup; make dumps prettier.
1660 (cgraph_early_inlining): Rename to ...
1661 (early_inliner): newer inline regular functions into always-inlines;
1662 fix updating of call stmt summaries.
1663 (pass_early_inline): Update for new names.
1664 (inline_transform): Fix formating.
1665 (gate_cgraph_decide_inlining): Rename to ...
1666 (pass_ipa_inline): ... this one.
1667 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1668 * ipa-inline-analysis.c (dump_inline_summary): Update.
1669 (compute_inline_parameters): Do not compute disregard_inline_limits;
1670 look for mismatching arguments.
1671 (estimate_growth): Fix handlig of non-trivial self recursion.
1672 (inline_read_summary): Do not read info->disregard_inline_limits.
1673 (inline_write_summary): Do not write info->disregard_inline_limits.
1674 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1675 and move all checks into can_inline_edge_p predicate; re-enable code
1676 comparing optimization levels.
1677 (expand_call_inline): Do not test inline_forbidden_into_p.
1678 * Makefile.in (ipa-inline.o): Update arguments.
1680 2011-04-17 Revital Eres <revital.eres@linaro.org>
1682 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1684 2011-04-17 Revital Eres <revital.eres@linaro.org>
1686 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1688 2011-04-17 Michael Matz <matz@suse.de>
1690 PR tree-optimization/48622
1692 * ipa-inline-analysis.c (inline_read_summary): Read size/time
1693 in same order as they're written.
1695 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1697 * config/pa/predicates.md: Reorganize and simplify predicates.
1698 Eliminate duplicate code checks.
1699 (arith_operand): Rename to arith14_operand
1700 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1701 * config/pa/pa.md: Use renamed operands.
1702 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1703 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1704 arith11_operand, adddi3_operand, indexed_memory_operand,
1705 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1706 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1707 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1708 move_dest_operand, move_src_operand, prefetch_cc_operand,
1709 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1710 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1711 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1712 div_operand, int5_operand, movb_comparison_operator,
1713 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1714 arith_double_operand, ireg_operand, lhs_lshift_operand,
1715 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1716 integer_store_memory_operand): Likewise.
1717 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1718 (integer_store_memory_operand, read_only_operand,
1719 function_label_operand, borx_reg_operand,
1720 non_hard_reg_operand): Likewise.
1721 (eq_neq_comparison_operator): Delete unused operator.
1722 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1723 function_label_operand.
1724 (emit_move_sequence): Likewise.
1726 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1728 * config/i386/sse.md (sseunpackmode): New mode attribute.
1729 (ssepackmode): Ditto.
1730 (vec_pack_trunc_<mode>): Macroize expander from
1731 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1732 (vec_unpacks_lo_<mode>): Macroize expander from
1733 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1734 (vec_unpacks_hi_<mode>): Macroize expander from
1735 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1736 (vec_unpacku_lo_<mode>): Macroize expander from
1737 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1738 (vec_unpacku_hi_<mode>): Macroize expander from
1739 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1740 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1741 ix86_expand_sse4_unpack.
1742 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1744 2011-04-16 Jan Hubicka <jh@suse.cz>
1746 * cgraphbuild.c: Include ipa-inline.h.
1747 (reset_inline_failed): Use initialize_inline_failed.
1748 * cgraph.c: Include ipa-inline.h.
1749 (cgraph_create_node_1): Do not initialize estimated_growth.
1750 (initialize_inline_failed): More to ipa-inline-analysis.c
1751 (dump_cgraph_node): Do not dump inline flags.
1752 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1753 and disregard_inline_limits flags.
1754 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1755 time, size, estimated_growth.
1756 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1758 * cgraphunit.c (cgraph_decide_is_function_needed): Use
1759 DECL_DISREGARD_INLINE_LIMITS.
1760 (cgraph_analyze_function): Do not initialize
1761 node->local.disregard_inline_limits.
1762 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1763 inlinable, versionable and disregard_inline_limits.
1764 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1765 cgraph_check_inline_limits, cgraph_default_inline_p,
1766 cgraph_edge_badness, update_caller_keys, update_callee_keys,
1767 add_new_edges_to_heap): Update.
1768 (cgraph_decide_inlining_of_small_function): Update; set
1769 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1770 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1771 cgraph_decide_inlining_incrementally): Update.
1772 * ipa-inline.h (inline_summary): Add inlinable, versionable,
1773 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1774 time, size and estimated_growth parameters.
1775 (estimate_edge_growth): Update.
1776 (initialize_inline_failed): Declare.
1777 * ipa-split.c: Include ipa-inline.h
1778 (execute_split_functions): Update.
1779 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1780 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1781 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1782 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1783 estimated_growth to INT_MIN.
1784 (inline_node_duplication_hook): Likewise.
1785 (dump_inline_summary): Dump new fields.
1786 (compute_inline_parameters): Update.
1787 (estimate_edge_time, estimate_time_after_inlining,
1788 estimate_size_after_inlining, estimate_growth, inline_read_summary,
1789 inline_write_summary):
1790 (initialize_inline_failed): Move here from cgraph.c.
1791 * tree-sra.c: Include ipa-inline.h.
1792 (ipa_sra_preliminary_function_checks): Update.
1793 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1796 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1798 * config/i386/sse.md (V16): New mode iterator.
1800 (AVXMODEQI, AVXMODEDI): Remove.
1801 (sse2, sse3): New mode attribute.
1802 (mov<mode>): Use V16 mode iterator.
1803 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1804 (push<mode>1): Use V16 mode iterator.
1805 (movmisalign<mode>): Ditto.
1806 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1807 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1808 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1809 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1810 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1811 avx_movdqu<avxmodesuffix>.
1812 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1813 *avx_movdqu<avxmodesuffix>.
1814 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1815 avx_lddqu<avxmodesuffix>.
1816 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1817 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1818 avx_movnt<AVXMODEDI:mode>.
1819 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1820 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1822 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
1825 * haifa-sched.c (prune_ready_list, schedule_block): Use
1826 sched_pressure_p rather than flag_sched_pressure.
1828 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
1830 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1831 cgraph_get_node instead of cgraph_get_create_node.
1833 2011-04-15 Jakub Jelinek <jakub@redhat.com>
1835 * cfgexpand.c (expand_debug_expr): Use
1836 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1838 2011-04-15 Michael Matz <matz@suse.de>
1840 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1841 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1842 * function.c (gimplify_parameters): Ditto.
1843 * gimplify.c (gimplify_vla_decl): Ditto.
1845 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1846 (gimple_call_set_alloca_for_var): New inline function.
1847 (gimple_call_alloca_for_var_p): Ditto.
1848 * gimple.c (gimple_build_call_from_tree): Remember
1849 CALL_ALLOCA_FOR_VAR_P state.
1850 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1852 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1853 calls if they were for VLA objects.
1855 2011-04-15 Martin Jambor <mjambor@suse.cz>
1857 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1860 2011-04-15 Martin Jambor <mjambor@suse.cz>
1863 * tree-emutls.c (lower_emutls_function_body): Call
1864 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
1867 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1869 * c-decl.c (detect_field_duplicates): Call
1870 objc_detect_field_duplicates instead of objc_get_interface_ivars.
1872 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
1874 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1875 * gimple.c (gimple_asm_clobbers_memory_p): Define.
1876 * ipa-pure-const.c (check_stmt): Call it.
1877 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1879 2011-04-15 Richard Guenther <rguenther@suse.de>
1881 PR tree-optimization/48290
1882 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1883 Properly decide inhibiting propagation based on the valueized
1884 operand. Do loop-closed SSA form preserving here ...
1885 (init_copy_prop): ... not here.
1887 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
1890 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1891 (*ieee_smax<mode>3): Likewise.
1893 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1895 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1896 Replace match_operand with match_dup for the third operand in
1899 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1901 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1902 to track processing of conditionals. Update all callers.
1903 (try_combine, simplify_if_then_else): Update.
1905 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1907 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1910 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
1912 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1913 instead of match_operand for operand 3.
1915 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
1917 * recog.h (insn_operand_data): Add an "allows_mem" field.
1918 * genoutput.c (output_operand_data): Initialize it.
1919 * optabs.c (maybe_legitimize_operand_same_code): New function.
1920 (maybe_legitimize_operand): Use it when matching the original
1923 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1925 * gimplify.c: Fix issues in comments throughout.
1926 (voidify_wrapper_expr): Fix long line.
1927 (build_stack_save_restore): Likewise.
1928 (gimplify_loop_expr): Likewise.
1929 (gimplify_compound_lval): Likewise.
1930 (gimplify_init_ctor_eval): Likewise.
1931 (gimplify_modify_expr_rhs): Likewise.
1932 (omp_notice_threadprivate_variable): Likewise.
1934 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1936 * cfgexpand.c (expand_call_stmt): Convert the function type to the
1937 original one if this is not a builtin function.
1939 2011-04-14 Jakub Jelinek <jakub@redhat.com>
1942 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1943 offset it as needed based on top 2 bits in operands[3], change
1944 MEM mode to SFmode and mask those 2 bits away from operands[3].
1946 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1948 * c-parser.c (c_parser_objc_protocol_definition): Updated for
1949 change from objc_declare_protocols() to objc_declare_protocol().
1951 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
1953 * config/i386/sse.md (sse4_1): New mode attribute.
1954 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1955 avx_blend<ssemodesuffix><avxmodesuffix> and
1956 sse4_1_blend<ssemodesuffix> using VF mode iterator.
1957 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1958 avx_blendv<ssemodesuffix><avxmodesuffix> and
1959 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1960 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1961 avx_dp<ssemodesuffix><avxmodesuffix> and
1962 sse4_1_dp<ssemodesuffix> using VF mode iterator.
1963 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1964 (sse4_1_packusdw): Merge with *avx_packusdw.
1965 (sse4_1_pblendvb): Merge with *avx_pblendvb.
1966 (sse4_1_pblendw): Merge with *avx_pblendw.
1967 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1968 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1969 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1971 (sse4_1_round<ssescalarmodesuffix>): Merge with
1972 *avx_round<ssescalarmodesuffix>.
1973 (aesenc): Merge with *avx_aesenc.
1974 (aesenclast): Merge with *avx_aesenclast.
1975 (aesdec): Merge with *avx_aesdec.
1976 (aesdeclast): Merge with *avx_aesdeclast.
1977 (pclmulqdq): Merge with *pclmulqdq.
1978 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1980 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1982 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
1985 * cfgexpand.c (get_decl_align_unit): Renamed to ...
1986 (align_local_variable): This. Update DECL_ALIGN.
1987 (add_stack_var): Updated.
1988 (expand_one_stack_var): Likewise.
1990 2011-04-14 Richard Guenther <rguenther@suse.de>
1992 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1994 (dse_initialize_block_local_data, dse_leave_block,
1995 record_voperand_set, get_stmt_uid): Likewise.
1996 (dse_possible_dead_store_p): Allow any kind of killing stmt.
1997 (dse_optimize_stmt): Remove voperand set handling code.
1998 Simplify and improve to handle any kind of killing stmt.
1999 (dse_record_phi): Remove.
2000 (dse_enter_block): Simplify.
2001 (tree_ssa_dse): Likewise.
2002 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
2004 2011-04-14 Jan Hubicka <jh@suse.cz>
2006 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
2007 * cgraph.h (struct inline_summary): Move to ipa-inline.h
2008 (cgraph_local_info): Remove inline_summary.
2009 * ipa-cp.c: Include ipa-inline.h.
2010 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
2011 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
2013 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
2014 (input_overwrite_node): Do not set inline summary.
2015 (input_node): Do not stream inline summary.
2016 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
2017 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
2018 growth; we do not have inline parameters computed for that anyway.
2019 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
2020 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
2021 (inline_summary_t): New type and VECtor.
2022 (debug_inline_summary, dump_inline_summaries): Declare.
2023 (inline_summary): Use VOCtor.
2024 (estimate_edge_growth): Kill hack computing call stmt size directly.
2025 * lto-section-in.c (lto_section_name): Add inline section.
2026 * ipa-inline-analysis.c: Include lto-streamer.h
2027 (node_removal_hook_holder, node_duplication_hook_holder): New holders
2028 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
2029 (inline_summary_vec): Define.
2030 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
2031 dump_inline_summaries): New functions.
2032 (estimate_function_body_sizes): Properly compute size/time of outgoing
2034 (compute_inline_parameters): Alloc inline_summary; do not compute
2035 size/time of incomming calls.
2036 (estimate_edge_time): Avoid missing time summary hack.
2037 (inline_read_summary): Read inline summary info.
2038 (inline_write_summary): Write inline summary info.
2039 (inline_free_summary): Free all hooks and inline summary vector.
2040 * lto-streamer.h: Add LTO_section_inline_summary section.
2041 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
2042 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
2044 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2046 * tree-vectorizer.h (vect_strided_store_supported): Add a
2047 HOST_WIDE_INT argument.
2048 (vect_strided_load_supported): Likewise.
2049 (vect_permute_store_chain): Return void.
2050 (vect_transform_strided_load): Likewise.
2051 (vect_permute_load_chain): Delete.
2052 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
2053 count argument. Check that the count is a power of two.
2054 (vect_strided_load_supported): Likewise.
2055 (vect_permute_store_chain): Return void. Update after above changes.
2056 Assert that the access is supported.
2057 (vect_permute_load_chain): Likewise.
2058 (vect_transform_strided_load): Return void.
2059 * tree-vect-stmts.c (vectorizable_store): Update calls after
2060 above interface changes.
2061 (vectorizable_load): Likewise.
2062 (vect_analyze_stmt): Don't check for strided powers of two here.
2064 2011-04-14 Richard Guenther <rguenther@suse.de>
2066 PR tree-optimization/48590
2067 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
2068 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
2069 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
2070 BUILT_IN_STACK_SAVE.
2071 * tree-ssa-dce.c (propagate_necessity): Handle
2072 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
2074 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2076 * c-parser.c (c_parser_objc_class_declaration): Updated call to
2079 2011-04-14 Richard Guenther <rguenther@suse.de>
2081 * tree.h (get_object_alignment_1): Declare.
2082 * builtins.c (get_object_alignment_1): Split out worker from ...
2083 (get_object_alignment): ... here.
2084 * fold-const.c (get_pointer_modulus_and_residue): Use
2085 get_object_alignment_1.
2087 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2089 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
2091 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
2092 parameter. Generalise code to handle arrays as well as vectors.
2093 (vect_setup_realignment): Update accordingly.
2094 * tree-vect-stmts.c (vectorizable_store): Likewise.
2095 (vectorizable_load): Likewise.
2097 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2099 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
2100 within the per-copy loop.
2102 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2104 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
2107 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2109 * doc/options.texi (Negative): Explicitly mention that the
2110 Negative chain must be circular.
2112 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
2114 * function.h (block_chainon): Declare.
2115 * function.c (block_chainon): Define.
2117 2011-04-14 Anatoly Sokolov <aesok@post.ru>
2118 Eric Weddington <eric.weddington@atmel.com>
2119 Georg-Johann Lay <avr@gjlay.de>
2121 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
2123 (avr_init_builtins, avr_expand_builtin,
2124 avr_expand_delay_cycles, avr_expand_unop_builtin,
2125 avr_expand_binop_builtin ): New functions.
2126 (avr_builtin_id): New enum
2127 (struct avr_builtin_description): New struct
2128 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
2129 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
2131 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
2132 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
2133 UNSPECV_DELAY_CYCLES): new enumeration values
2134 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
2135 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
2136 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
2137 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
2138 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
2139 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
2140 "fmulsu"): New insns
2142 * config/avr/avr-c.c: fix line endings
2143 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
2144 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
2145 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
2146 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
2147 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
2149 * doc/extend.texi (AVR Built-in Functions): New node
2150 (Target Builtins): Add documentation of AVR
2153 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
2156 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
2157 alone. Error if non-const data has attribute progmem.
2159 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2161 * tree.h (struct tree_constructor): Include tree_typed instead of
2163 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
2164 TS_TYPED instead of TS_COMMON.
2166 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
2168 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
2169 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
2170 (sse2_psadbw): Merge with *avx_psadbw.
2171 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
2172 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
2173 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
2174 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
2175 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
2176 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
2177 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
2178 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
2179 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
2180 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
2181 (ssse3_palignrti): Merge with *avx_palignrti.
2183 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2185 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
2186 * tree-ssanames.c (fini_ssanames): VEC_free it.
2187 (make_ssa_name_fn): Update for VECness of free_ssanames.
2188 (release_ssa_name, release_dead_ssa_names): Likewise.
2189 * tree.h (struct tree_ssa_name): Include tree_typed instead of
2191 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
2192 TS_TYPED instead of TS_COMMON.
2194 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2196 * postreload-gcse.c (gcse_after_reload_main): Add calls to
2197 statistics_counter_event.
2198 * tree-ssa-copyrename.c (stats): Define.
2199 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
2200 statistics_counter_event.
2201 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
2202 (bswap_stats, widen_mul_stats): Define.
2203 (insert_reciprocals): Increment rdivs_inserted.
2204 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
2205 rfuncs_inserted. Add calls to statistics_counter_event.
2206 (execute_cse_sincos_1): Increment inserted.
2207 (execute_cse_sincos): Zeroize sincos_stats. Add call to
2208 statistics_counter_event.
2209 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
2210 of bswap_stats. Add calls to statistics_counter_event.
2211 (convert_mult_to_widen): Increment widen_mults_inserted.
2212 (convert_plusminus_to_widen): Increment maccs_inserted.
2213 (convert_mult_to_fma): Increment fmas_inserted.
2214 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
2215 calls to statistics_counter_event.
2217 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
2219 PR rtl-optimization/48455
2220 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
2221 `temp_costs->mem_cost'.
2223 2011-04-13 Jan Hubicka <jh@suse.cz>
2225 * ipa-inline.h: New file.
2226 * ipa-inline-analysis.c: New file. Broken out of ...
2227 * ipa-inline.c: ... this file; update toplevel comment;
2228 include ipa-inline.h
2229 (inline_summary): Move to ipa-inline.h
2230 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
2231 ipa-inline-analysis.c.
2232 (cgraph_estimate_time_after_inlining): Rename to
2233 estiamte_time_after_inlining; move to ipa-inline-analysis.c
2234 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
2235 to estimate_edge_growth.
2236 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
2237 rename to estimate_size_after_inlining.
2238 (cgraph_mark_inline_edge): Update for new naming convention.
2239 (cgraph_check_inline_limits): Likewise.
2240 (cgraph_edge_badness): Likewise.
2241 (cgraph_decide_recursive_inlining): Likewise.
2242 (cgraph_decide_inlining_of_small_functions): Likewise.
2243 (cgraph_decide_inlining_incrementally): Likewise.
2244 (cgraph_estimate_growth): Rename to estimate_growth; move to
2245 ipa-inline-analysis.c.
2246 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
2247 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
2248 (compute_inline_parameters): Likewise.
2249 (compute_inline_parameters_for_current): Likewise.
2250 (pass_inline_parameters): Likewise.
2251 (inline_indirect_intraprocedural_analysis): Likewise.
2252 (analyze_function): Rename to inline_analyze_function; likewise.
2253 (add_new_function): Move to ipa-inline-analysis.c.
2254 (inline_generate_summary): Likewise.
2255 (inline_read_summary): Likewise.
2256 (inline_write_summary): Likewise.
2257 * Makefile.in (ipa-inline-analysis.c): New file.
2259 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2261 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
2262 * configure: Regenerate.
2264 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2266 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
2267 instead of tree_common.
2268 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
2270 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
2271 TS_TYPED rather than TS_COMMON.
2272 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
2274 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
2277 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
2278 r20 around calls of __tablejump_elpm__
2280 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2283 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
2285 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
2287 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
2289 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
2290 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
2291 (cfi_vec): New typedef.
2292 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
2293 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
2294 (cie_cfi_vec): New static variable.
2295 (cie_cfi_head): Delete.
2296 (add_cfi): Accept a cfi_vec * as first argument. All callers and
2297 declaration changed. Use vector rather than list operations.
2298 (new_cfi): Don't initialize the dw_cfi_next field.
2299 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
2300 rather than list operations.
2301 (lookup_cfa): Use vector rather than list operations.
2302 (output_cfis): New argument upto. Accept a cfi_vec rather than
2303 a dw_cfi_ref list head as argument. All callers changed.
2304 Iterate over the vector using upto as a maximum index.
2305 (output_all_cfis): New static function.
2306 (output_fde): Use vector rather than list operations. Use the
2307 new upto argument for output_cfis rather than manipulating a
2309 (dwarf2out_begin_prologue): Change initializations to match
2311 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
2312 from the vector length rather than searching for the end of a list.
2313 Use output_all_cfis.
2314 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
2316 2011-04-13 Nick Clifton <nickc@redhat.com>
2318 * config/rx/rx.md (movmemsi): Do not use this pattern when
2319 volatile pointers are involved.
2321 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
2323 * config/i386/sse.md (pinsrbits): Remove.
2324 (sse2_packsswb): Merge with *avx_packsswb.
2325 (sse2_packssdw): Merge with *avx_packssdw.
2326 (sse2_packuswb): Merge with *avx_packuswb.
2327 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
2328 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
2329 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
2330 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
2331 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
2332 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
2333 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
2334 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
2335 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
2336 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
2337 (sse2_loadld): Merge with *avx_loadld.
2338 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
2339 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
2340 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
2341 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
2342 (vec_concatv2di): Merge with *vec_concatv2di_avx.
2344 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2346 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
2348 * print-tree.c (print_node): Likewise.
2349 * tree-inline.c (copy_tree_r): Likewise.
2350 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
2351 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
2352 instead of TS_COMMON.
2353 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
2354 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
2355 (copy_node_stat): Zero TREE_CHAIN only if necessary.
2356 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
2357 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
2359 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
2361 (TREE_CHAIN): Check for a TS_COMMON structure.
2362 (TREE_TYPE): Check for a TS_TYPED structure.
2364 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
2366 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2367 cgraph_get_create_node instead of cgraph_node.
2369 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2371 * c-parser.c (c_parser_initelt): Updated call to
2372 objc_build_message_expr.
2373 (c_parser_postfix_expression): Likewise.
2375 2011-04-12 Kai Tietz <ktietz@redhat.com>
2377 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
2378 MASK_MS_BITFIELD_LAYOUT bit.
2380 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2382 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
2383 assert it is always true.
2384 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
2387 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2389 * c-parser.c (c_lex_one_token): Rewritten conditional used when
2390 compiling Objective-C to be more efficient.
2392 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
2394 * opts-common.c (decode_cmdline_options_to_array): Remove variable
2397 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2399 * recog.h, genoutput.c, optabs.c: Revert last patch.
2401 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2404 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
2406 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2408 * recog.h (insn_operand_data): Add an "allows_mem" field.
2409 * genoutput.c (output_operand_data): Initialize it.
2410 * optabs.c (maybe_legitimize_operand_same_code): New function.
2411 (maybe_legitimize_operand): Use it when matching the original
2414 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2416 * genpreds.c (process_define_predicate): Move most processing
2417 to gensupport.c. Continue to validate the expression.
2418 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
2419 (process_define_predicate): Move processing to gensupport.c.
2420 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
2421 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
2422 (compute_predicate_codes): Moved from genrecog.c. Add lineno
2424 (valid_predicate_name_p): New function, split out from old
2425 genpreds.c:process_define_predicate.
2426 (process_define_predicate): New function, combining code from
2427 old genpreds.c and genrecog.c functions.
2428 (process_rtx): Call it for DEFINE_PREDICATE and
2429 DEFINE_SPECIAL_PREDICATE.
2431 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2433 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
2434 size of a '%A' memory reference.
2435 (T_DREG, T_QREG): New neon_builtin_type_bits.
2436 (arm_init_neon_builtins): Assert that the load and store operands
2437 are neon_struct_operands.
2438 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
2439 (NEON_ARG_MEMORY): New builtin_arg.
2440 (neon_dereference_pointer): New function.
2441 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
2442 Handle NEON_ARG_MEMORY.
2443 (arm_expand_neon_builtin): Update after above interface changes.
2444 Use NEON_ARG_MEMORY for loads and stores.
2445 * config/arm/predicates.md (neon_struct_operand): New predicate.
2446 * config/arm/iterators.md (V_two_elem): Tweak formatting.
2447 (V_three_elem): Use BLKmode for accesses that have no associated mode.
2448 (V_four_elem): Tweak formatting.
2449 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
2450 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
2451 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
2452 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
2453 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
2454 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
2455 (neon_vst4<mode>): Replace pointer operand with a memory operand.
2456 Use %A in the output template.
2457 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
2458 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
2459 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
2460 the width of the memory access. Remove post-increment.
2461 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
2463 2011-04-12 Nick Clifton <nickc@redhat.com>
2465 * config/v850/v850.c (expand_prologue): Do not use the CALLT
2466 instruction for interrupt handlers if the target is the basic V850
2468 (expand_epilogue): Likewise.
2470 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2472 PR rtl-optimization/48549
2473 * combine.c (propagate_for_debug): Also stop after BB_END of
2474 this_basic_block. Process LAST and just stop processing after it.
2475 (combine_instructions): If last_combined_insn has been deleted,
2476 set last_combined_insn to its PREV_INSN.
2478 2011-04-12 Richard Guenther <rguenther@suse.de>
2480 PR tree-optimization/46076
2481 * gimple.h (struct gimple_statement_call): Add fntype field.
2482 (gimple_call_fntype): Adjust.
2483 (gimple_call_set_fntype): New function.
2484 * gimple.c (gimple_build_call_1): Set the call function type.
2485 * gimplify.c (gimplify_call_expr): Preserve the function
2486 type the frontend used for the call.
2487 (gimplify_modify_expr): Likewise.
2488 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
2490 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
2492 * tree-ssa.c (useless_type_conversion_p): Function pointer
2493 conversions are useless.
2495 2011-04-12 Martin Jambor <mjambor@suse.cz>
2497 * cgraph.h (cgraph_node): Remove function declaration.
2498 (cgraph_create_node): Declare.
2499 (cgraph_get_create_node): Likewise.
2500 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
2501 Updated all callers.
2502 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
2503 the decl does not already exist. Call cgraph_get_create_node instead
2505 (cgraph_get_create_node): New function.
2506 (cgraph_same_body_alias): Update comment.
2507 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
2508 assert it does not return NULL.
2509 (cgraph_update_edges_for_call_stmt): Likewise.
2510 (cgraph_clone_edge): Likewise.
2511 (cgraph_create_virtual_clone): Likewise.
2512 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
2513 instead of cgraph_node.
2514 (cgraph_add_new_function): Call cgraph_create_node or
2515 cgraph_get_create_node instead of cgraph_node.
2516 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
2517 instead of cgraph_node.
2518 (record_eh_tables): Likewise.
2519 (mark_address): Likewise.
2520 (mark_load): Likewise.
2521 (build_cgraph_edges): Call cgraph_get_create_node instead
2523 (rebuild_cgraph_edges): Likewise.
2524 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
2525 instead of cgraph_node.
2526 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
2528 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
2529 cgraph_create_node instead of cgraph_node.
2530 * c-decl.c (finish_function): Call cgraph_get_create_node instead
2532 * lto-cgraph.c (input_node): Likewise.
2533 * lto-streamer-in.c (input_function): Likewise.
2534 * varasm.c (mark_decl_referenced): Likewise.
2535 (assemble_alias): Likewise.
2537 2011-04-12 Martin Jambor <mjambor@suse.cz>
2539 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
2540 instead of cgraph_node and assert it does not return NULL.
2541 * lto-streamer-in.c (lto_read_body): Likewise.
2542 * omp-low.c (new_omp_context): Likewise.
2543 (create_task_copyfn): Likewise.
2544 * tree-emutls.c (lower_emutls_function_body): Likewise.
2545 * matrix-reorg.c (transform_allocation_sites): Likewise.
2547 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2550 * c-typeck.c (build_asm_expr): Error out on attempts to use
2551 void type outputs or inputs for constraints that allow reg or
2554 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
2555 Richard Earnshaw <rearnsha@arm.com>
2558 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
2559 to use sign-magnitude offsets. Reject unsupported unaligned
2560 cases. Add detailed description in comments.
2561 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
2562 condition from TARGET_32BIT to TARGET_ARM.
2564 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
2566 * tree.h (struct typed_tree): New.
2567 (struct tree_common): Include it instead of tree_base.
2568 (TREE_TYPE): Update for new location of type field.
2569 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
2570 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
2571 (union tree_node): Add typed field.
2572 * treestruct.def (TS_TYPED): New.
2573 * lto-streamer.c (check_handled_ts_structures): Handle it.
2574 * tree.c (MARK_TS_TYPED): New macro.
2575 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
2577 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
2579 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
2580 (force_nonfallthru): Do not alter the loop nest if no basic block
2583 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
2585 * config/i386/sse.md (VI): New mode iterator.
2587 (AVX256MODEI): Ditto.
2588 (AVXMODEF4P): Ditto.
2589 (avxvecpsmode): Ditto.
2590 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
2591 (sse2_andnot<mode>3): New expander.
2592 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
2593 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
2594 (<any_logic:code><mode>3): Use VI mode iterator.
2595 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
2596 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
2597 (*andnottf3): Handle AVX three-operand constraints.
2598 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
2600 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2601 Robert Millan <rmh@gnu.org>
2603 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
2604 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
2605 GNU_USER_DYNAMIC_LINKER64): Define.
2606 (REG_NAME): Don't undefine.
2607 (MD_UNWIND_SUPPORT): Undefine.
2608 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
2609 (REG_NAME): Don't undefine.
2610 (MD_UNWIND_SUPPORT): Undefine.
2611 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
2613 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2615 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2616 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2618 2011-04-11 Xinliang David Li <davidxl@google.com>
2620 * value-profile.c (check_ic_target): New function.
2621 (gimple_ic_transform): Sanity check indirect call target.
2622 * gimple-low.c (gimple_check_call_args): Interface change.
2623 (gimple_check_call_matching_types): New function.
2624 * tree-inline.c (tree_can_inline_p): Call new function.
2626 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
2628 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2629 tree-pretty-print.h & realmpfr.h.
2631 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
2634 * ira.c (setup_pressure_classes): Fix typo in loop condition.
2635 (setup_allocno_and_important_classes): Ditto.
2637 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2639 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2640 GNU_USER_DYNAMIC_LINKER.
2641 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2642 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2643 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2644 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2645 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2646 GNU_USER_TARGET_OS_CPP_BUILTINS.
2647 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2648 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2649 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2650 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2651 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2652 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2653 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2654 GNU_USER_TARGET_OS_CPP_BUILTINS.
2655 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2656 GNU_USER_DYNAMIC_LINKER.
2657 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2658 GNU_USER_TARGET_OS_CPP_BUILTINS.
2659 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2660 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2661 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2662 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2663 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2664 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2665 GNU_USER_DYNAMIC_LINKER64): Remove.
2666 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2667 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2668 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2669 GNU_USER_DYNAMIC_LINKER.
2670 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2671 GNU_USER_TARGET_OS_CPP_BUILTINS.
2672 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2673 GNU_USER_TARGET_OS_CPP_BUILTINS.
2674 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2675 to GNU_USER_TARGET_OS_CPP_BUILTINS.
2676 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2677 GNU_USER_TARGET_OS_CPP_BUILTINS.
2678 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2679 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2680 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2681 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2682 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2683 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2684 GNU_USER_DYNAMIC_LINKER.
2685 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2686 GNU_USER_TARGET_OS_CPP_BUILTINS.
2687 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2688 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2689 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2690 GNU_USER_DYNAMIC_LINKER.
2691 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2692 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2693 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2694 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2695 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2696 GNU_USER_DYNAMIC_LINKER.
2697 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2698 GNU_USER_DYNAMIC_LINKERN32.
2699 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2700 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
2701 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
2702 GNU_USER_DYNAMIC_LINKER32.
2703 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2704 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2705 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2706 GNU_USER_DYNAMIC_LINKER.
2707 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2708 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2709 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2710 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2711 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2712 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2713 GNU_USER_DYNAMIC_LINKER32.
2714 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2715 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2716 GNU_USER_DYNAMIC_LINKER.
2717 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2718 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2719 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2720 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
2721 GNU_USER_DYNAMIC_LINKER64.
2722 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2723 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2724 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2725 GNU_USER_DYNAMIC_LINKER.
2726 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2727 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2728 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2729 GNU_USER_DYNAMIC_LINKER.
2730 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2731 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2732 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2733 GNU_USER_DYNAMIC_LINKER32.
2734 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2735 GNU_USER_DYNAMIC_LINKER64.
2736 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2737 GNU_USER_DYNAMIC_LINKER64.
2738 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2739 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2740 * config/xtensa/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.
2744 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2746 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
2747 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2748 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2749 GNU_USER_DYNAMIC_LINKER.
2750 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2751 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
2752 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2753 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2754 GNU_USER_DYNAMIC_LINKER64.
2755 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2756 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2757 GNU_USER_LINK_EMULATION.
2758 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2759 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2760 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2761 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2762 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2763 CPP_SPEC, CC1_SPEC): Remove.
2764 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2765 (GNU_USER_DYNAMIC_LINKER): Define.
2766 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2767 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2768 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2769 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2770 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2771 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2772 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2773 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2774 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2775 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2776 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2777 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2778 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2779 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2780 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2781 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2782 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2783 GNU_USER_DYNAMIC_LINKER.
2784 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2785 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2786 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2787 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2788 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2789 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2790 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2791 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2792 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2793 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2795 2011-04-11 Kai Tietz <ktietz@redhat.com>
2799 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2800 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2802 (ix86_is_msabi_thiscall): Removed.
2803 (ix86_is_type_thiscall): Likewise.
2804 (ix86_get_callcvt): New function.
2805 (ix86_comp_type_attributes): Simplify check.
2806 (ix86_function_regparm): Use ix86_get_callcvt for calling
2807 convention attribute checks.
2808 (ix86_return_pops_args): Likewise.
2809 (ix86_static_chain): Likewise.
2810 (x86_this_parameter): Likewise.
2811 (x86_output_mi_thunk): Likewise.
2812 (ix86_function_type_abi): Optimize check for types without attributes.
2813 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2814 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2815 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2817 (IX86_BASE_CALLCVT): Helper macro.
2818 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2819 Use ix86_get_callcvt for calling convention attribute checks and avoid
2820 symbol-decoration for stdcall in TARGET_RTD case.
2821 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2823 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2826 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
2828 * config/i386/sse.md (VI_128): New mode iterator.
2829 (VI12_128): Rename from SSEMODE12.
2830 (VI14_128): Rename from SSEMODE14.
2831 (VI124_128): New mode iterator.
2832 (VI24_128): Rename from SSEMODE248.
2833 (VI248_128): Rename from SSEMODE248.
2834 (SSEMODE124C8): Remove.
2835 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2836 (*sse2_<plusminus_insn><mode>3): Merge with
2837 *avx_<plusminus_insn><mode>3.
2838 (*mulv8hi3): Merge with *avx_mulv8hi3.
2839 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2840 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2841 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2842 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2843 (ashr<mode>3): Merge with *avx_ashr<mode>3.
2844 (lshr<mode>3): Merge with *avx_lshr<mode>3.
2845 (ashl<mode>3): Merge with *avx_ashl<mode>3.
2846 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2847 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2848 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2849 (*<smaxmin:code>v8hi3): Ditto.
2850 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2851 (*<smaxmin:code>v16qi3): Ditto.
2852 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2853 (*sse2_eq<mode>3): Ditto.
2854 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2855 (*sse2_gt<mode>3): Ditto.
2856 (vcondv2di): Split out of vcond<mode>.
2857 (vconduv2di): Split out of vcondu<mode>.
2859 2011-04-11 Richard Guenther <rguenther@suse.de>
2861 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2862 before calling tree_low_cst.
2864 2011-04-11 Richard Guenther <rguenther@suse.de>
2866 * stor-layout.c (layout_type): Compute all array index size operations
2867 in the original type.
2868 (initialize_sizetypes): Add comment.
2869 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2871 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2873 * common.opt (Tbss=, Tdata=, Ttext=): New options.
2875 2011-04-11 Martin Jambor <mjambor@suse.cz>
2877 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2878 of cgraph_node, handle NULL return value.
2879 (cgraph_global_info): Likewise.
2880 (cgraph_rtl_info): Likewise.
2881 * tree-inline.c (estimate_num_insns): Likewise.
2882 * gimplify.c (unshare_body): Likewise.
2883 (unvisit_body): Likewise.
2884 (gimplify_body): Likewise.
2885 * predict.c (optimize_function_for_size_p): Likewise.
2886 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2887 (call_may_clobber_ref_p_1): Likewise.
2888 * varasm.c (function_section_1): Likewise.
2889 (assemble_start_function): Likewise.
2891 2011-04-11 Martin Jambor <mjambor@suse.cz>
2893 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2895 * final.c (rest_of_clean_state): Likewise.
2896 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2897 * passes.c (pass_init_dump_file): Likewise.
2898 (execute_all_ipa_transforms): Likewise.
2899 (function_called_by_processed_nodes_p): Likewise.
2900 * predict.c (maybe_hot_frequency_p): Likewise.
2901 (probably_never_executed_bb_p): Likewise.
2902 (compute_function_frequency): Likewise.
2903 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2904 (unnest_nesting_tree_1): Likewise.
2905 (lower_nested_functions): Likewise.
2906 * tree-optimize.c (execute_fixup_cfg): Likewise.
2907 (tree_rest_of_compilation): Likewise.
2908 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2909 * tree-sra.c (ipa_early_sra): Likewise.
2910 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2911 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2912 * ipa.c (record_cdtor_fn): Likewise.
2913 * ipa-inline.c (cgraph_early_inlining): Likewise.
2914 (compute_inline_parameters_for_current): Likewise.
2915 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2916 * ipa-pure-const.c (local_pure_const): Likewise.
2917 * ipa-split.c (split_function): Likewise.
2918 (execute_split_functions): Likewise.
2919 * cgraphbuild.c (build_cgraph_edges): Likewise.
2920 (rebuild_cgraph_edges): Likewise.
2921 (cgraph_rebuild_references): Likewise.
2922 (remove_cgraph_callee_edges): Likewise.
2923 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2924 (verify_cgraph_node): Likewise.
2925 (cgraph_analyze_functions): Likewise.
2926 (cgraph_preserve_function_body_p): Likewise.
2927 (save_inline_function_body): Likewise.
2928 (save_inline_function_body): Likewise.
2929 * tree-inline.c (copy_bb): Likewise.
2930 (optimize_inline_calls): Likewise.
2932 2011-04-11 Martin Jambor <mjambor@suse.cz>
2934 PR tree-optimization/48195
2935 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2936 ipa_check_create_edge_args.
2937 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2938 ipa_check_create_edge_args.
2939 * ipa-inline.c (inline_generate_summary): Do not call
2940 ipa_check_create_node_params and ipa_check_create_edge_args.
2941 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2942 ipa_check_create_edge_args.
2944 2011-04-09 Anatoly Sokolov <aesok@post.ru>
2946 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2948 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2949 * function.c (record_hard_reg_sets): Likewise.
2950 * ira.c (compute_regs_asm_clobbered): Likewise.
2951 * sched-deps.c (sched_analyze_1): Likewise.
2952 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2954 2011-04-09 Xinliang David Li <davidxl@google.com>
2956 PR tree-optimization/PR48484
2957 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2958 has_valid_pred lazily
2960 2011-04-09 Duncan Sands <baldrick@free.fr>
2962 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2964 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
2966 * combine.c (combine_validate_cost): Adjust comments. Set registered
2967 cost of I0 to zero at the end, if any.
2969 2011-04-08 Xinliang David Li <davidxl@google.com>
2971 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2972 to insane profile data.
2974 2011-04-08 Xinliang David Li <davidxl@google.com>
2976 * ipa-cp.c (ipcp_update_profiling): Correct
2977 negative scale factor due to insane profile data.
2979 2011-04-08 Xinliang David Li <davidxl@google.com>
2981 * final.c (dump_basic_block_info): New function.
2982 (final): Dump basic block.
2983 (final_scan_insn): Remove old dump.
2985 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
2988 * config.gcc (i386-*-freebsd): Disable unwind table generation for
2991 2011-04-08 Michael Matz <matz@suse.de>
2994 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2996 (rebuild_jump_labels): Call rebuild_jump_labels_1.
2997 * rtl.h (rebuild_jump_labels_chain): Declare.
2998 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2999 insns inserted on edges.
3001 2011-04-08 Joseph Myers <joseph@codesourcery.com>
3003 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
3004 * config/arm/arm-arches.def: New.
3005 * config/arm/arm-opts.h: New.
3006 * config/arm/genopt.sh: New.
3007 * config/arm/arm-tables.opt: New (generated).
3008 * config/arm/arm.c (arm_handle_option, arm_target_help,
3009 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
3010 (all_architectures): Get most table contents from arm-arches.def.
3011 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
3012 arm_selected_tune here.
3013 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
3014 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
3015 (march=, mcpu=, mtune=): Use Enum and Var.
3016 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
3017 (arm.o): Update dependencies.
3019 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
3021 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
3023 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
3024 (write_typed_alloc_defns): Likewise.
3025 (main): Calls write_typed_alloc_defns with output_header.
3027 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
3030 * ira-color.c (setup_profitable_hard_regs): Add comments.
3031 Don't take prohibited hard regs into account.
3032 (setup_conflict_profitable_regs): Rename to
3033 get_conflict_profitable_regs.
3034 (check_hard_reg_p): Check prohibited hard regs.
3036 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3038 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
3039 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
3040 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
3042 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3045 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
3046 move from floating point to shift amount register.
3047 (emit_move_sequence): Remove secondary reload support for floating
3048 point to shift amount amount register copies.
3049 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
3050 amount register copies.
3051 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
3052 register, return false if mode isn't a scalar integer mode.
3053 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
3055 2011-04-08 Richard Guenther <rguenther@suse.de>
3057 * gimple.c (gimple_call_flags): Remove kludge.
3059 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3061 * sel-sched.c (sel_region_init): Move call to
3062 sel_setup_region_sched_flags after setup_current_loop_nest.
3064 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
3066 PR rtl-optimization/48272
3067 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
3068 init_insn_reg_pressure_info. Adjust a caller.
3069 * sched-int.h (init_insn_reg_pressure_info): Declare.
3070 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
3071 when sched-pressure is enabled.
3073 2011-04-08 Richard Guenther <rguenther@suse.de>
3075 * gimple.c (gimple_set_modified): Do not queue calls to
3076 MODIFIED_NORETURN_CALLS here ...
3077 * tree-ssa-operands.c (update_stmt_operands): ... but here.
3079 2011-04-08 Richard Guenther <rguenther@suse.de>
3082 * toplev.c (lang_dependent_init): Do not open asm_out_file
3083 in WPA mode, nor perform debug machinery initialization.
3084 (finalize): Do not unlink asm_out_file in WPA mode.
3086 2011-04-08 Richard Guenther <rguenther@suse.de>
3088 * gimple.h (gimple_call_fntype): New function.
3089 (gimple_call_return_type): Use it.
3090 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
3091 * gimple-low.c (gimple_check_call_args): Likewise.
3092 * gimple.c (gimple_call_flags): Likewise.
3093 (gimple_call_arg_flags): Likewise.
3094 (gimple_call_return_flags): Likewise.
3095 * tree-cfg.c (verify_gimple_call): Likewise.
3096 (do_warn_unused_result): Likewise.
3097 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
3098 * value-prof.c (gimple_ic_transform): Fix fndecl check.
3100 2011-04-08 Dmitry Melnik <dm@ispras.ru>
3102 PR rtl-optimization/48235
3103 * sel-sched.c (code_motion_process_successors): Recompute the last
3104 insn in basic block if control flow changed.
3105 (code_motion_path_driver): Ditto. Recompute the first insn as well.
3106 Update condition for ilist_remove.
3108 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3110 PR rtl-optimization/48302
3111 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
3112 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
3113 it to record added preheader blocks.
3114 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
3115 on to sel_add_loop_preheaders.
3116 (sel_region_init): Move call to setup_current_loop_nest after
3119 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3122 * cfgloop.h (loop_has_exit_edges): New helper.
3123 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
3125 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
3126 that have no exit edges.
3128 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3130 PR rtl-optimization/48442
3131 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
3132 all callers. Adjust assert.
3134 2011-04-08 Jakub Jelinek <jakub@redhat.com>
3136 PR tree-optimization/48377
3137 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
3138 is_packed to true even for types with smaller TYPE_ALIGN than
3141 2011-04-08 Richard Guenther <rguenther@suse.de>
3144 * doc/tm.texi: Re-generate.
3146 2011-04-08 Wei Guozhi <carrot@google.com>
3149 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
3150 * config/arm/arm.c (arm_attr_length_push_multi): New function.
3151 * config/arm/arm.md (*push_multi): Change the length computation to
3154 2011-04-08 Anatoly Sokolov <aesok@post.ru>
3156 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
3157 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
3158 * doc/tm.texi: Regenerate.
3159 * system.h (ASM_OUTPUT_BSS): Poison.
3160 * varasm.c (asm_output_bss): Remove function.
3161 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
3163 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
3164 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
3165 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
3166 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3168 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3170 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3172 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3174 2011-04-07 Joseph Myers <joseph@codesourcery.com>
3176 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
3179 2011-04-07 Joseph Myers <joseph@codesourcery.com>
3181 * config/m68k/m68k.c (m68k_handle_option): Don't handle
3182 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
3183 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
3185 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3186 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
3187 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
3188 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
3189 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
3190 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
3191 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
3192 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
3193 options. Don't map other m68k options manually. Don't handle
3194 old-style options as canonical.
3195 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
3196 * doc/install.texi (m68k-*-*): Document binutils version requirement.
3198 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
3200 * basic-block.h (force_nonfallthru): Move to...
3201 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
3202 (force_nonfallthru): ...here.
3203 * cfghooks.c (force_nonfallthru): New function.
3204 * cfgrtl.c (force_nonfallthru): Rename into...
3205 (rtl_force_nonfallthru): ...this.
3206 (commit_one_edge_insertion): Do not set AUX field.
3207 (commit_edge_insertions): Do not discover new basic blocks.
3208 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
3209 (cfg_layout_rtl_cfg_hooks): Likewise.
3210 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
3211 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
3212 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
3214 2011-04-07 Anatoly Sokolov <aesok@post.ru>
3216 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
3219 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
3221 * config/i386/sse.md: Update copyright year.
3222 (avxcvtvecmode): Remove.
3223 (sse_movhlps): Merge with *avx_movhlps.
3224 (sse_movlhps): Merge with *avx_movlhps.
3225 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
3226 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
3227 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
3228 (sse_loadhps): Merge with *avx_loadhps.
3229 (sse_storelps): Merge with *avx_storelps.
3230 (sse_loadlps): Merge with *avx_loadlps.
3231 (sse_movss): Merge with *avx_movss.
3232 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
3233 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
3234 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
3235 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
3236 (vec_set<mode>_0): Ditto.
3237 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
3238 (sse4_1_insertps): Merge with *avx_insertps.
3239 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
3240 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
3241 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
3242 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
3243 (sse2_storehpd): Merge with *avx_storehpd.
3244 (sse2_loadhpd): Merge with *avx_loadhpd.
3245 (sse2_loadlpd): Merge with *avx_loadlpd.
3246 (sse2_movsd): Merge with *avx_movsd.
3247 (*vec_concatv2df): Merge with *vec_concatv2df.
3249 2011-04-07 Jakub Jelinek <jakub@redhat.com>
3252 * combine.c (combine_instructions): Add last_combined_insn,
3253 update it if insn is after it, pass it to all try_combine calls.
3254 (try_combine): Add last_combined_insn parameter, pass it instead of
3255 i3 to propagate_for_debug.
3257 2011-04-07 Nick Clifton <nickc@redhat.com>
3259 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
3260 to handle MDR <-> data register transfers.
3261 (movhi_internal): Likewise.
3263 2011-04-07 Alan Modra <amodra@gmail.com>
3265 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
3266 previous stack info.
3268 2011-04-07 Tom de Vries <tom@codesourcery.com>
3271 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
3272 flow_find_cross_jump. Swap variables to implement backward replacement.
3273 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
3275 2011-04-07 Tom de Vries <tom@codesourcery.com>
3278 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3279 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
3281 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
3282 src1 or src2. Redirect edges to the last basic block. Update
3283 frequency and count on multiple basic blocks in case of fallthru.
3285 2011-04-07 Tom de Vries <tom@codesourcery.com>
3288 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
3290 (old_insns_match_p): Change return type. Replace return false/true
3291 with return dir_none/dir_both. Use can_replace_by.
3292 (flow_find_cross_jump): Add dir_p parameter. Init replacement
3293 direction from dir_p. Register replacement direction in dir, last_dir
3294 and afterlast_dir. Handle new return type of old_insns_match_p using
3295 merge_dir. Return replacement direction in dir_p.
3296 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
3297 return type of old_insns_match_p.
3298 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
3299 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
3300 flow_find_cross_jump.
3301 * basic-block.h (enum replace_direction): New type.
3302 (flow_find_cross_jump): Add parameter to declaration.
3304 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
3306 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
3307 (AVXMODEDCVTPS2DQ): Ditto.
3308 (VEC_FLOAT_MODE): Ditto.
3309 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
3310 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
3311 (<any_logic:code><mode>3): Use VF mode iterator.
3312 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
3313 Use VF mode iterator.
3314 (copysign<mode>3): Use VF mode iterator.
3315 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
3316 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
3317 (*<any_logic:code><MODEF:mode>3): Merge with
3318 *avx_<any_logic:code><MODEF:mode>3.
3319 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
3320 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
3321 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
3322 (avx_cvtdq2ps<avxmodesuffix>): Remove.
3323 (sse2_cvtdq2ps): Use %v modifier.
3324 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
3325 (avx_cvtps2dq<avxmodesuffix>): Remove.
3326 (sse2_cvtps2dq): Use %v modifier.
3327 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
3328 (avx_cvttps2dq<avxmodesuffix>): Remove.
3329 (sse2_cvttps2dq): Use %v modifier.
3330 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
3331 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
3332 (sse2_cvtsd2siq): Fix insn template.
3333 (sse2_cvtsd2siq_2): Ditto.
3334 (sse2_cvttsd2siq): Ditto.
3335 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
3336 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
3338 2011-04-06 Joseph Myers <joseph@codesourcery.com>
3340 * gcov-io.c: Use GCC Runtime Library Exception.
3342 2011-04-06 Jakub Jelinek <jakub@redhat.com>
3345 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
3346 as base_reg whatever register reg has been eliminated to, instead
3347 of hardcoding STACK_POINTER_REGNUM.
3349 2011-04-06 Joseph Myers <joseph@codesourcery.com>
3351 * doc/tm.texi.in: Document C target hooks as separate from general
3353 * doc/tm.texi: Regenerate.
3354 * genhooks.c (struct hook_desc): Add docname field.
3355 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
3357 (hook_array): Include c-target.def.
3358 (emit_documentation): Use docname field in output.
3359 (emit_init_macros): Take docname argument. Only emit definitions
3360 for hooks matching docname.
3361 (main): Expect additional arguments in all cases. Pass argument
3362 to emit_init_macros.
3363 * target.def: Move initial macro definitions and comments to
3364 target-hooks-macros.h.
3365 (gcc_targetcm): Move to c-family/c-target.def.
3366 * target.h (targetcm): Move declaration to c-family/c-target.h.
3367 * targhooks.c (default_handle_c_option): Move to
3369 * targhooks.h (default_handle_c_option): Move declaration to
3370 c-family/c-common.h.
3371 * target-hooks-macros.h: New file.
3372 * config.gcc (target_has_targetcm): Define and use to add to
3373 c_target_objs and cxx_target_objs.
3374 * config/default-c.c: New file.
3375 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
3376 of target.h and target-def.h.
3377 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
3378 (darwin_objc_construct_string, darwin_cfstring_ref_p,
3379 darwin_check_cfstring_format_arg): Make static.
3380 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3381 TARGET_STRING_OBJECT_REF_TYPE_P,
3382 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
3383 * config/darwin-protos.h (darwin_objc_construct_string,
3384 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
3386 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3387 TARGET_STRING_OBJECT_REF_TYPE_P,
3388 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
3389 * config/t-darwin (darwin-c.o): Update dependencies.
3390 * system.h (TARGET_HAS_TARGETCM): Poison.
3391 * Makefile.in (TARGET_H): Update.
3392 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
3393 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
3394 (default-c.o): New target.
3395 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
3396 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
3397 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
3399 (build/genhooks.o): Update dependencies.
3401 2011-04-06 Richard Guenther <rguenther@suse.de>
3403 * ipa-inline.c (enum inlining_mode): Remove.
3404 (cgraph_flatten): Use some other token.
3405 (cgraph_edge_early_inlinable_p): New function, split out from ...
3406 (cgraph_perform_always_inlining): New function, split out from ...
3407 (cgraph_decide_inlining_incrementally): ... here.
3408 (cgraph_mark_inline_edge): Adjust.
3409 (cgraph_early_inlining): Re-structure.
3410 (pass_early_inline): Require SSA form.
3412 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
3413 Julian Brown <julian@codesourcery.com>
3414 Mark Shinwell <shinwell@codesourcery.com>
3416 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
3417 LO_REGS only for Thumb-1.
3418 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
3419 be used in short instructions when optimising for size on Thumb-2.
3421 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
3423 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
3424 associated with user returns to be preserved.
3426 2011-04-06 Tristan Gingold <gingold@adacore.com>
3428 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
3429 symbol_queue_size, DBXOUT_DECR_NESTING,
3430 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
3431 if XCOFF_DEBUGGING_INFO.
3433 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
3435 * config/i386/i386.md (attribute isa): New.
3436 (attribute enabled): New.
3437 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
3438 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
3439 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
3440 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
3441 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
3442 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3443 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
3444 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
3446 * config/i386/sse.md (VF): New mode iterator.
3450 (SSEMODEF4): Remove.
3451 (attribute sse): Handle V8SF and V4DF modes.
3452 (<absneg:code><mode>2): Use VF mode iterator.
3453 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
3455 (<plusminus_insn><mode>3): Use VF mode iterator.
3456 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3457 Use VF mode iterator.
3458 (<sse>_vm<plusminus_insn><mode>3): Merge with
3459 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
3460 (mul<mode>3): Use VF mode iterator.
3461 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
3462 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
3464 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
3465 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
3466 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
3467 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
3469 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
3470 Use VF1 mode iterator.
3471 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
3472 (sqrt<VF2:mode>2): New expander.
3473 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
3474 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
3475 and sqrtv2df2. Use VF mode iterator.
3476 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
3478 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
3479 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
3480 Use VF1 mode iterator.
3481 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
3482 (<smaxmin:code><mode>3): Use VF mode iterator.
3483 (*<smaxmin:code><mode>3_finite): Merge with
3484 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
3485 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3486 (<sse>_vm<smaxmin:code><mode>2): Merge with
3487 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
3488 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
3490 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
3492 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
3493 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
3494 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
3495 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
3496 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
3498 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
3499 Use VF_128 mode iterator.
3500 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
3502 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
3503 VF_128 mode iterator.
3504 (vcond<mode>): Use VF mode iterator.
3505 * config/i386/predicates.md (sse_comparison_operator): Merge with
3506 avx_comparison_float_operator. Do not declare as special_predicate.
3507 * config/i386/i386.c (struct builtin_description): Update for renamed
3509 (ix86_expand_args_builtin): Ditto.
3510 (ix86_expand_sse_compare_mask): Ditto.
3512 2011-04-06 Richard Guenther <rguenther@suse.de>
3514 * tree-inline.c (estimate_num_insns): For calls simply account
3515 for all passed arguments and a used return value.
3517 2011-04-06 Richard Guenther <rguenther@suse.de>
3519 PR tree-optimization/47663
3520 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
3521 call_stmt_time fields.
3522 (cgraph_edge_inlinable_p): Declare.
3523 (cgraph_edge_recursive_p): New inline function.
3524 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
3525 (cgraph_clone_edge): Copy it.
3526 * ipa-inline.c (cgraph_estimate_edge_time): New function.
3527 Account for call stmt time.
3528 (cgraph_estimate_time_after_inlining): Take edge argument.
3529 (cgraph_estimate_edge_growth): Account call stmt size.
3530 (cgraph_estimate_size_after_inlining): Take edge argument.
3531 (cgraph_mark_inline_edge): Adjust.
3532 (cgraph_check_inline_limits): Likewise.
3533 (cgraph_recursive_inlining_p): Remove.
3534 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
3535 (cgraph_decide_recursive_inlining): Take edge argument and
3537 (cgraph_decide_inlining_of_small_functions): Do not avoid
3538 diags for recursive inlining here.
3539 (cgraph_flatten): Adjust.
3540 (cgraph_decide_inlining_incrementally): Likewise.
3541 (estimate_function_body_sizes): Remove call cost handling.
3542 (compute_inline_parameters): Initialize caller edge call costs.
3543 (cgraph_estimate_edge_growth): New function.
3544 (cgraph_estimate_growth): Use it.
3545 (cgraph_edge_badness): Likewise.
3546 (cgraph_check_inline_limits): Take an edge argument.
3547 (cgraph_decide_inlining_of_small_functions): Adjust.
3548 (cgraph_decide_inlining): Likewise.
3549 * tree-inline.c (estimate_num_insns): Only account for call
3550 return value if it is used.
3551 (expand_call_inline): Avoid diagnostics on recursive inline
3553 * lto-cgraph.c (lto_output_edge): Output edge call costs.
3554 (input_edge): Input edge call costs.
3556 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3558 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
3560 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
3562 * doc/invoke.texi (Spec Files): Fix typo.
3564 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
3566 * profile.c (branch_prob): Move declaration of local variable. Remove
3567 obsolete ??? comment. Expand the location explicitly instead of using
3568 the LOCATION_FILE and LOCATION_LINE macros.
3570 2011-04-06 Wei Guozhi <carrot@google.com>
3573 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
3574 (arm_cond_branch): Likewise.
3575 (arm_cond_branch_reversed): Likewise.
3576 (arm_jump): Likewise.
3577 (push_multi): Likewise.
3578 * config/arm/constraints.md (Py): New constraint.
3580 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3583 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
3585 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
3586 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
3587 #ifdef DBX_DEBUGGING_INFO.
3589 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
3592 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
3593 if old and new states differ.
3595 2011-04-05 Joseph Myers <joseph@codesourcery.com>
3597 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
3598 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
3599 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3600 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
3601 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
3603 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
3604 ColdFire options to -mcpu= options.
3606 2011-04-05 Jeff Law <law@redhat.com>
3608 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
3609 check if BB is a successor of LOOP->header and return
3610 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
3612 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
3614 * cprop.c (struct reg_use): Remove.
3615 (reg_use_table): Make an array of RTX.
3616 (find_used_regs, constprop_register, local_cprop_pass,
3617 bypass_block): Simplify users of reg_use_table.
3618 (cprop_insn): Likewise. Iterate if copy propagation succeeded
3619 on one of the uses found by find_used_regs.
3621 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3624 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3627 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3629 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3631 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3633 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
3636 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3638 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3640 * combine.c: Include obstack.h.
3641 (struct insn_link): Define.
3642 (uid_log_links): Adjust type.
3643 (FOR_EACH_LOG_LINK): New macro.
3644 (insn_link_obstack): Declare.
3645 (alloc_insn_link): Define.
3646 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
3647 type of link variables.
3648 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3649 (try_combine, record_promoted_values, distribute_notes): Likewise.
3650 (distribute_links): Likewise. Tweak prototype.
3651 (clear_log_links): Delete.
3652 (adjust_for_new_dest): Call alloc_insn_link.
3653 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3655 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3657 * gcse.c (modify_mem_list): Convert to an array of VECs.
3658 (canon_modify_mem_list, compute_transp): Tweak formatting.
3659 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
3660 (load_killed_in_block_p): Likewise.
3661 (record_last_mem_set_info): Likewise.
3662 (clear_modify_mem_tables): Likewise.
3664 2011-04-05 Tom de Vries <tom@codesourcery.com>
3667 * function.c (emit_use_return_register_into_block): Only define if
3670 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
3672 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3674 2011-04-05 Joseph Myers <joseph@codesourcery.com>
3676 * config/rx/rx-opts.h: New.
3677 * config/rx/rx.c (rx_cpu_type): Remove.
3678 (rx_handle_option): Don't assert that global structures are in
3679 use. Access variables via opts pointer. Defer most handling of
3680 OPT_mint_register_. Use error_at.
3681 (rx_option_override): Handle deferred OPT_mint_register_ here.
3682 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3683 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3684 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3685 (rx_cpu_types): New Enum and EnumValue entries.
3686 (mint-register=): Use Defer and use Var accordingly.
3688 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3690 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3691 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3692 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3694 (debug_free_queue, debug_nesting, symbol_queue_index):
3696 * dbxout.c: ...to here. Make static.
3698 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3700 * gcse.c (modify_pair): Define. Define a VEC of it.
3701 (canon_modify_mem_list): Convert to an array of VECs.
3702 (free_insn_expr_list_list): Delete.
3703 (clear_modify_mem_tables): Call VEC_free instead.
3704 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3705 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3706 (canon_list_insert, compute_transp): Likewise.
3708 2011-04-05 Tom de Vries <tom@codesourcery.com>
3711 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3714 2011-04-05 Tom de Vries <tom@codesourcery.com>
3717 * function.c (emit_use_return_register_into_block): New function.
3718 (thread_prologue_and_epilogue_insns): Use
3719 emit_use_return_register_into_block.
3721 2011-04-05 Tom de Vries <tom@codesourcery.com>
3724 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3727 2011-04-05 Tom de Vries <tom@codesourcery.com>
3729 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3731 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
3733 * config/arm/arm.md (define_constants for unspec): Replace with
3735 (define_constants for unspecv): Replace with define_c_enum.
3736 * config/arm/neon.md (define_constants for unspec): Replace with
3739 2011-04-04 Richard Henderson <rth@redhat.com>
3742 * dwarf2out.c (output_line_info): Always emit line info from
3743 at least one section.
3744 (dwarf2out_init): Create text_section_line_info here ...
3745 (set_cur_line_info_table): ... not here.
3747 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
3750 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3753 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3755 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
3757 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3758 (expr_equiv_p): Remove.
3759 (insert_set_in_table): Look at <dest, src> pair instead of expr.
3760 (hash_scan_set): Update call to insert_set_in_table.
3761 (dump_hash_table): Dump <dest, src> pair.
3762 (lookup_set): Simplify. Lookup <dest, src> pair.
3763 (compute_transp): Remove, fold heavily simplified code into...
3764 (compute_local_properties): ...here. Expect COMP and TRANSP
3766 (find_avail_set): Take set directly from struct expr.
3767 (find_bypass-set): Likewise.
3768 (bypass_block): Likewise.
3769 (cprop_insn): Likewise. Remove redundant INSN_P test.
3771 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3772 checks on form of COND from find_implicit_sets to here.
3773 (find_implicit_sets): Cleanup control flow. Split critical edges
3774 if it exposes implicit sets. Allocate/resize implicit_sets as
3776 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3777 changed something. Run df_analyze after find_implicit_sets if any
3778 edges were split. Do not allocate implicit_sets here.
3780 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3781 (gcse_obstack): Renamed to cprop_obstack.
3782 (GNEW, GNEWVEC, GNEWVAR): Remove.
3784 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3785 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3786 (gcse_alloc): Likewise, and rename to cprop_alloc.
3787 (alloc_gcse_men, free_gcse_mem): Remove.
3788 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3789 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3790 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3792 * cprop.c (oprs_not_set_p): Remove.
3793 (mark_set, mark_clobber): Remove.
3794 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3795 (reg_not_set_p): New function.
3796 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3797 (cprop_insn): Likewise.
3798 (cprop_jump): Use FOR_EACH_EDGE.
3800 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
3803 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3804 (rank_for_schedule): Use scheduled_insns vector instead of
3805 last_scheduled_insn.
3806 (ok_for_early_queue_removal): Likewise.
3807 (queue_to_ready): Search forward in nonscheduled_insns_begin if
3809 (choose_ready): Likewise.
3810 (commit_schedule): Use VEC_iterate.
3811 (schedule_block): Initialize nonscheduled_insns_begin. If we have
3812 a dbg_cnt, use it and ensure the first insn is in the ready list.
3813 (haifa_sched_init): Allocate scheduled_insns.
3814 (sched_extend_ready_list): Don't allocate it; reserve space.
3815 (haifa_sched_finish): Free it.
3817 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3819 * optc-gen.awk: Always remove type from Variable entry before
3820 recording in var_seen.
3822 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
3824 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3825 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3826 call to tidy_fallthru_edges.
3828 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3830 * doc/options.texi (ToLower): Document.
3831 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3832 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3833 * opts.h (cl_option): Add cl_tolower field.
3834 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3835 arguments with lowercase strings.
3836 * config/rx/rx.opt (mcpu=): Add ToLower.
3837 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3840 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3842 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3844 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3846 * config/vax/vax.c: Include reload.h.
3848 2011-04-04 Anatoly Sokolov <aesok@post.ru>
3850 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3851 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3852 (sparc_preferred_reload_class): New function.
3854 2011-04-04 Jakub Jelinek <jakub@redhat.com>
3857 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3858 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3860 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
3862 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3863 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3865 2011-04-03 Anatoly Sokolov <aesok@post.ru>
3867 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3868 (ASM_OUTPUT_ALIGNED_BSS): Define.
3870 2011-04-03 Michael Matz <matz@suse.de>
3872 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3873 and next_slot members.
3874 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3875 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3876 (lto_streamer_cache_append): Declare.
3877 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3878 unsigned index, remove offset parameter, ensure that we append
3879 or update existing entries.
3880 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3881 parameter, update next_slot for append.
3882 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3884 (lto_streamer_cache_insert_at): Likewise.
3885 (lto_streamer_cache_append): New function.
3886 (lto_streamer_cache_lookup): Use unsigned index.
3887 (lto_streamer_cache_get): Likewise.
3888 (lto_record_common_node): Don't test tree_node_can_be_shared.
3889 (preload_common_node): Adjust call to lto_streamer_cache_insert.
3890 (lto_streamer_cache_delete): Don't free offsets member.
3891 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3892 (lto_output_string_with_length): Use lto_output_data_stream.
3893 (lto_output_tree_header): Remove ix parameter, don't write it.
3894 (lto_output_builtin_tree): Likewise.
3895 (lto_write_tree): Adjust callers to above, don't track and write
3896 offset, write unsigned index.
3897 (output_unreferenced_globals): Don't emit all global vars.
3898 (write_global_references): Use unsigned indices.
3899 (lto_output_decl_state_refs): Likewise.
3900 (write_symbol): Likewise.
3901 * lto-streamer-in.c (lto_input_chain): Move earlier.
3902 (input_function): Use unsigned index.
3903 (input_alias_pairs): Don't read and then ignore all global vars.
3904 (lto_materialize_tree): Remove ix_p parameter, don't read index,
3905 don't pass it back, use lto_streamer_cache_append.
3906 (lto_register_var_decl_in_symtab): Use unsigned index.
3907 (lto_register_function_decl_in_symtab): Likewise.
3908 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3910 (lto_get_builtin_tree): Don't read index, use
3911 lto_streamer_cache_append.
3912 (lto_read_tree): Adjust call to lto_materialize_tree.
3914 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3915 don't use function calls in arguments to MIN.
3917 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3920 * gimple.c (gimple_type_leader_entry): Mark deletable.
3922 2011-04-03 Alan Modra <amodra@gmail.com>
3924 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3926 2011-04-03 Michael Matz <matz@suse.de>
3928 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3930 * tree.h (tree_decl_non_common.vindex): Adjust comment.
3932 2011-04-03 Michael Matz <matz@suse.de>
3934 * cgraphbuild.c (record_reference): Canonicalize constructor values.
3935 * gimple-fold.c (canonicalize_constructor_val): Accept being called
3936 without function context.
3937 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3938 current_function_decl and cfun.
3940 2011-04-03 Michael Matz <matz@suse.de>
3942 * tree.c (decl_init_priority_insert): Don't create entry for
3944 (decl_fini_priority_insert): Ditto.
3945 (fields_compatible_p, find_compatible_field): Remove.
3946 * tree.h (fields_compatible_p, find_compatible_field): Remove.
3947 * gimple.c (gimple_compare_field_offset): Adjust block comment.
3949 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
3951 * combine.c (try_combine): Remove useless local variable.
3953 2011-04-03 Richard Guenther <rguenther@suse.de>
3954 Ira Rosen <ira.rosen@linaro.org>
3956 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3957 non-variable offsets and compare the remaining bases of the two
3958 accesses instead of looking for exact same data-ref.
3960 2011-04-02 Kai Tietz <ktietz@redhat.com>
3963 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3965 * i386.c (ix86_is_msabi_thiscall): New helper function.
3966 (ix86_is_type_thiscall): New helper function.
3967 (ix86_comp_type_attributes): Handle thiscall for method-functions
3969 (init_cumulative_args): Likewise.
3970 (find_drap_reg): Likewise.
3971 (ix86_static_chain): Likewise.
3972 (x86_this_parameter): Likewise.
3973 (x86_output_mi_thunk): Likewise.
3975 2011-04-01 Olivier Hainque <hainque@adacore.com>
3976 Nicolas Setton <setton@adacore.com>
3977 Eric Botcazou <ebotcazou@adacore.com>
3979 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3980 (add_gnat_descriptive_type_attribute): New function.
3981 (gen_array_type_die): Call it.
3982 (gen_enumeration_type_die): Likewise.
3983 (gen_struct_or_union_type_die): Likewise.
3984 (modified_type_die): Likewise.
3985 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3986 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3987 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3989 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3992 * dwarf2out.c (resolve_addr): Don't call force_decl_die
3993 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3996 2011-03-17 Richard Guenther <rguenther@suse.de>
3999 * lto-cgraph.c (input_overwrite_node): Clear the abstract
4000 origin for decls in other ltrans units.
4001 (input_varpool_node): Likewise.
4003 2011-04-01 Jakub Jelinek <jakub@redhat.com>
4006 * expr.c (expand_assignment): Handle all possibilities
4007 if TO_RTX is CONCAT.
4008 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
4009 (store_split_bit_field): If SUBREG_REG (op0) or
4010 op0 itself has smaller mode than word, return it
4011 for offset 0 and const0_rtx for out-of-bounds stores.
4012 If word is const0_rtx, skip it.
4014 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
4016 * config/h8300/h8300.c (print_operand_address): Rename to...
4017 (h8300_print_operand_address): ...this. Make static. Adjust comments.
4018 Call h8300_print_operand and h8300_print_operand_address instead of
4019 print_operand and print_operand_address. Declare.
4020 (print_operand): Renake to...
4021 (h8300_print_operand): ...this. Make static. Adjust comments.
4022 Call h8300_print_operand instead of print_operand. Declare.
4023 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
4024 (h8300_register_move_cost): Likewise.
4025 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
4026 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
4027 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
4028 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
4029 * config/h8300/h8300-protos.h (print_operand): Delete.
4030 (print_operand_address): Delete.
4032 2011-04-01 Richard Henderson <rth@redhat.com>
4035 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
4036 in strict mode before dwarf4. Re-order tests to early out
4037 before switching sections.
4039 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
4041 * config/h8300/constraints.md: New file.
4042 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
4043 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
4044 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
4045 * config/h8300/predicates.md (bit_operand): Likewise.
4046 (incdec_operand): Use satisfies_constraint_M and
4047 satisfies_constraint_O. Don't use C code block.
4048 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
4049 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
4050 (compute_mov_length): Use satisfies_constraint_G.
4051 (fix_bit_operand): Use satisfies_constraint_U.
4052 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
4053 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
4054 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
4055 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
4056 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
4057 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
4058 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4059 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
4060 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
4061 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
4062 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
4063 (EXTRA_MEMORY_CONSTRAINT): Delete.
4065 2011-04-01 Andrew Pinski <pinskia@gmail.com>
4066 Michael Meissner <meissner@linux.vnet.ibm.com>
4069 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
4070 operands, as per the specifications.
4072 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
4073 (vec_extract_evenv4sf): Ditto.
4074 (vec_extract_evenv8hi): Ditto.
4075 (vec_extract_evenv16qi): Ditto.
4076 (vec_extract_oddv4si): Ditto.
4078 2011-03-31 Mark Wielaard <mjw@redhat.com>
4080 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
4081 high_pc attribute if the CU has no associated code. Only output
4082 DW_AT_entry_pc for CU if not generating strict dwarf and
4085 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
4087 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
4088 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
4090 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
4091 * final.c (final_start_function): Call the new function rather
4092 than using a NULL argument for dwarf2out_frame_debug.
4094 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
4095 that contains the prologue.
4097 * haifa-sched.c (queue_insn): New arg REASON. All callers
4098 changed. Print it in debugging output.
4100 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
4102 * sched-ebb.c (begin_schedule_ready): Remove second argument.
4103 Split most of the code into...
4104 (begin_move_insn): ... here. New function.
4105 (ebb_sched_info): Add a pointer to it.
4106 * haifa-sched.c (scheduled_insns): New static variable.
4107 (sched_extend_ready_list): Allocate it.
4108 (schedule_block): Use it to record the order of scheduled insns.
4109 Perform RTL changes to move insns only after all scheduling
4110 decisions have been made.
4111 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
4112 begin_move_insn field.
4113 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
4114 * sched-int.h (struct haifa_sched_info): Remove second argument
4115 from begin_schedule_ready hook. Add new member begin_move_insn.
4116 * sched-rgn.c (begin_schedule_ready): Remove second argument.
4117 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
4119 * haifa-sched.c (prune_ready_list): New function, broken out of
4121 (schedule_block): Use it.
4123 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4125 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
4127 2011-04-01 Kai Tietz <ktietz@redhat.com>
4129 * config.gcc (*-*-mingw*): Allow as option the
4130 posix threading model.
4131 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
4132 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
4134 (CPP_SPEC): Add pthread/no-pthread handling.
4135 (LIB_SPEC): Likewise.
4136 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
4137 (LIB_SPEC): Likewise.
4138 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
4139 flag to pass -pthread option for shared libgcc build.
4140 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
4141 for shared libgcc build.
4142 * config/i386/t-mingw-pthread: New file.
4143 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
4144 New define to enable use of library pthread by default.
4145 * config/i386/mingw.opt (pthread): New driver option.
4146 (no-pthread): New driver option.
4147 * config/i386/cygming.opt: Make sure trailing empty line is retained.
4148 * config/i386/mingw-w64.opt: Likewise.
4150 2011-04-01 Gary Funck <gary@intrepid.com>
4152 * c-decl.c (grokdeclarator): Fix formatting.
4154 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4156 * expr.c (emit_block_move_via_movmem): Use n_generator_args
4157 instead of n_operands.
4158 (set_storage_via_setmem): Likewise.
4159 * optabs.c (maybe_gen_insn): Likewise.
4160 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
4161 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
4162 (mips_expand_builtin_direct): Likewise.
4163 * config/spu/spu.c (expand_builtin_args): Likewise.
4165 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4167 * recog.h (insn_data_d): Add n_generator_args.
4168 * genoutput.c (data): Likewise.
4169 (output_insn_data): Print it.
4170 (max_opno, num_dups): Delete.
4171 (scan_operands): Just fill in "d->operand[...]".
4172 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
4174 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4176 * gensupport.h (pattern_stats): New structure.
4177 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
4178 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
4179 (max_operand_1, max_operand_vec): Delete.
4180 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
4182 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
4184 * emit-rtl.c (emit_pattern_after_setloc): New function.
4185 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
4186 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
4187 (emit_pattern_after): New function.
4188 (emit_insn_after, emit_jump_insn_after): Call it.
4189 (emit_call_insn_after, emit_debug_insn_after): Likewise.
4190 (emit_pattern_before_setloc): New function.
4191 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
4192 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
4194 (emit_pattern_before): New function.
4195 (emit_insn_before, emit_jump_insn_before): Call it.
4196 (emit_call_insn_before, emit_debug_insn_before): Likewise.
4198 2011-03-31 Richard Henderson <rth@redhat.com>
4200 * dwarf2out.c (dw_separate_line_info_ref): Remove.
4201 (dw_separate_line_info_entry): Remove.
4202 (enum dw_line_info_opcode): New.
4203 (dw_line_info_entry): Use it.
4204 (dw_line_info_table, dw_line_info_table_p): New.
4205 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
4206 (line_info_table, line_info_label_num): Remove.
4207 (line_info_table_in_use): Remove.
4208 (separate_line_info_table): Remove.
4209 (separate_line_info_table_allocated): Remove.
4210 (separate_line_info_table_in_use): Remove.
4211 (LINE_INFO_TABLE_INCREMENT): Remove.
4212 (line_info_label_num): New.
4213 (cur_line_info_table): New.
4214 (text_section_line_info, cold_text_section_line_info): New.
4215 (separate_line_info): New.
4216 (SEPARATE_LINE_CODE_LABEL): Remove.
4217 (print_dwarf_line_table): Remove.
4218 (debug_dwarf): Don't dump it.
4219 (output_one_line_info_table): New.
4220 (output_line_info): Use it.
4221 (new_line_info_table): New.
4222 (set_cur_line_info_table): New.
4223 (dwarf2out_switch_text_section): Use it.
4224 (dwarf2out_begin_function): Likewise.
4225 (push_dw_line_info_entry): New.
4226 (dwarf2out_source_line): Rewrite for new line info tables.
4227 (dwarf2out_init): Remove dead initailizations.
4229 2011-03-31 Joseph Myers <joseph@codesourcery.com>
4231 * opts.h (cl_option): Add comments to fields. Add bit-fields for
4233 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
4234 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
4235 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
4236 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
4237 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
4238 * opt-functions.awk (flag_init, switch_bit_fields): New.
4239 (switch_flags): Don't handle flags moved to bit-fields. Don't
4240 generate CL_MISSING_OK or CL_SAVE.
4241 * optc-gen.awk: Update to generate bit-field output as well as
4243 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
4244 bit-field instead of CL_REJECT_DRIVER flag.
4245 * opts-common.c (generate_canonical_option,
4246 decode_cmdline_option): Use bit-fields instead of CL_* flags.
4247 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
4248 instead of CL_REJECT_NEGATIVE flag.
4249 * toplev.c (print_switch_values): Use cl_report bit-field instead
4252 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
4254 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
4255 a zero minimum index only if it is redundant.
4257 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
4259 PR rtl-optimization/48381
4260 * ira-color.c (assign_hard_reg): Use hard reg set intersection
4261 instead of ira_class_hard_reg_index for calculating conflicting
4264 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
4266 * cprop.c: Clean up hash table building.
4267 (reg_avail_info): Remove.
4268 (oprs_available_p): Remove.
4269 (record_last_reg_set_info): Remove.
4270 (record_last_set_info): Remove.
4271 (reg_available_p): New function.
4272 (gcse_constant_p): Do not treat unfolded conditions as constants.
4273 (make_set_regs_unavailable): New function.
4274 (hash_scan_set): Simplify with new reg_available_p.
4275 (compute_hash_table_work): Traverse insns stream only once.
4276 Do not compute reg_avail_info. Traverse insns in reverse order.
4277 Record implicit sets after recording explicit sets from the block.
4279 2011-03-31 Michael Matz <matz@suse.de>
4281 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
4283 2011-03-31 Anatoly Sokolov <aesok@post.ru>
4285 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
4286 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
4287 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4288 (h8300_mode_dependent_address_p): New function.
4289 (h8300_get_index): Make static.
4291 2011-03-31 Jeff Law <law@redhat.com>
4293 * reload1.c (elimination_effects): Fix typo in recent change.
4295 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
4296 typo potentially leading to null pointer dereference.
4298 * caller-save.c (new_saved_hard_reg): Eliminate return value.
4299 (setup_save_areas): Corresponding changes to avoid useless
4302 * jump.c (reversed_comparison_code_parts): Avoid successive return
4303 statements when REVERSE_CONDITION is defined.
4305 * expr.c (expand_assignment): Avoid useless assignments.
4306 (expand_expr_real_1): Likewise.
4307 (expand_expr_real_2): Avoid useless statements.
4309 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
4311 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
4313 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
4316 * stmt.c (expand_expr_stmt): Avoid useless assignment.
4318 2011-03-31 Joseph Myers <joseph@codesourcery.com>
4321 * doc/tm.texi.in (TARGET_VERSION): Remove.
4322 * doc/tm.texi: Regenerate.
4323 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
4324 * collect2.c (main): Don't use TARGET_VERSION.
4325 * mips-tdump.c (main): Don't use TARGET_VERSION.
4326 * mips-tfile.c (main): Don't use TARGET_VERSION.
4327 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
4328 * config/rs6000/vxworksae.h: Remove.
4329 * config/alpha/alpha.h (TARGET_VERSION): Remove.
4330 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
4331 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
4332 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
4333 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
4334 * config/arm/arm.h (TARGET_VERSION): Remove.
4335 * config/arm/coff.h (TARGET_VERSION): Remove.
4336 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
4337 * config/arm/elf.h (TARGET_VERSION): Remove.
4338 * config/arm/freebsd.h (TARGET_VERSION): Remove.
4339 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
4340 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
4341 * config/arm/pe.h (TARGET_VERSION): Remove.
4342 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
4343 * config/arm/semi.h (TARGET_VERSION): Remove.
4344 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
4345 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
4346 * config/arm/vxworks.h (TARGET_VERSION): Remove.
4347 * config/avr/avr.h (TARGET_VERSION): Remove.
4348 * config/bfin/bfin.h (TARGET_VERSION): Remove.
4349 * config/fr30/fr30.h (TARGET_VERSION): Remove.
4350 * config/frv/frv.h (TARGET_VERSION): Remove.
4351 * config/h8300/h8300.h (TARGET_VERSION): Remove.
4352 * config/i386/cygwin.h (TARGET_VERSION): Remove.
4353 * config/i386/darwin.h (TARGET_VERSION): Remove.
4354 * config/i386/darwin64.h (TARGET_VERSION): Remove.
4355 * config/i386/djgpp.h (TARGET_VERSION): Remove.
4356 * config/i386/freebsd.h (TARGET_VERSION): Remove.
4357 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
4358 * config/i386/gnu.h (TARGET_VERSION): Remove.
4359 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
4360 * config/i386/i386elf.h (TARGET_VERSION): Remove.
4361 * config/i386/linux.h (TARGET_VERSION): Remove.
4362 * config/i386/linux64.h (TARGET_VERSION): Remove.
4363 * config/i386/lynx.h (TARGET_VERSION): Remove.
4364 * config/i386/mingw32.h (TARGET_VERSION): Remove.
4365 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
4366 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
4367 * config/i386/netware.h (TARGET_VERSION): Remove.
4368 * config/i386/nto.h (TARGET_VERSION): Remove.
4369 * config/i386/openbsd.h (TARGET_VERSION): Remove.
4370 * config/i386/vxworks.h (TARGET_VERSION): Remove.
4371 * config/ia64/elf.h (TARGET_VERSION): Remove.
4372 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
4373 * config/ia64/hpux.h (TARGET_VERSION): Remove.
4374 * config/ia64/linux.h (TARGET_VERSION): Remove.
4375 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
4376 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
4377 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4378 * config/lm32/lm32.h (TARGET_VERSION): Remove.
4379 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
4380 * config/m32c/m32c.h (TARGET_VERSION): Remove.
4381 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
4382 * config/m32r/m32r.h (TARGET_VERSION): Remove.
4383 * config/m68k/linux.h (TARGET_VERSION): Remove.
4384 * config/m68k/m68k.h (TARGET_VERSION): Remove.
4385 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
4386 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
4387 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
4388 * config/mep/mep.h (TARGET_VERSION): Remove.
4389 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
4390 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4391 * config/mips/iris6.h (MACHINE_TYPE): Remove.
4392 * config/mips/linux.h (TARGET_VERSION): Remove.
4393 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
4394 * config/mips/vxworks.h (TARGET_VERSION): Remove.
4395 * config/mmix/mmix.h (TARGET_VERSION): Remove.
4396 * config/mn10300/linux.h (TARGET_VERSION): Remove.
4397 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
4398 * config/pa/pa.h (TARGET_VERSION): Remove.
4399 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
4400 * config/picochip/picochip.h (TARGET_VERSION): Remove.
4401 * config/rs6000/aix.h (TARGET_VERSION): Remove.
4402 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
4403 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
4404 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
4405 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
4406 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
4407 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
4408 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
4409 * config/rs6000/linux.h (TARGET_VERSION): Remove.
4410 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
4411 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
4412 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
4413 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
4414 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
4415 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
4416 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
4417 * config/s390/linux.h (TARGET_VERSION): Remove.
4418 * config/s390/s390.h (TARGET_VERSION): Remove.
4419 * config/s390/tpf.h (TARGET_VERSION): Remove.
4420 * config/score/score.h (TARGET_VERSION): Remove.
4421 * config/sh/linux.h (TARGET_VERSION): Remove.
4422 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
4423 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
4424 * config/sh/sh.h (TARGET_VERSION): Remove.
4425 * config/sh/sh64.h (TARGET_VERSION): Remove.
4426 * config/sh/superh.h (TARGET_VERSION): Remove.
4427 * config/sh/vxworks.h (TARGET_VERSION): Remove.
4428 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
4429 * config/sparc/linux.h (TARGET_VERSION): Remove.
4430 * config/sparc/linux64.h (TARGET_VERSION): Remove.
4431 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
4432 TARGET_NAME32, TARGET_NAME): Remove.
4433 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
4434 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
4435 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
4436 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
4437 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
4438 * config/spu/spu.h (TARGET_VERSION): Remove.
4439 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
4440 * config/v850/v850.h (TARGET_VERSION): Remove.
4441 * config/vax/linux.h (TARGET_VERSION): Remove.
4442 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
4443 * config/xtensa/elf.h (TARGET_VERSION): Remove.
4444 * config/xtensa/linux.h (TARGET_VERSION): Remove.
4446 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
4449 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
4450 frame-related from frame-unrelated adjustments to the stack pointer.
4452 2011-03-31 Jakub Jelinek <jakub@redhat.com>
4454 * common.opt (fdebug-types-section): Move earlier.
4455 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
4457 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
4459 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
4462 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
4464 * tree.h (CASE_CHAIN): Define.
4465 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
4466 (gimple_redirect_edge_and_branch): Likewise.
4468 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
4471 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
4474 2011-03-30 Jeff Law <law@redhat.com>
4476 * PR bootstrap/48371
4477 * reload1.c (reload): Fix botch in last change.
4479 * reload.h (struct reload): Fix typo introduced in last change.
4481 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4483 * config/arm/arm.opt (mhard-float, msoft-float): Mark
4484 Undocumented. Remove help text.
4485 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
4488 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4490 * doc/options.texi (NegativeAlias): Document.
4491 (Alias): Mention NegativeAlias.
4492 * opt-functions.awk: Handle NegativeAlias.
4493 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
4494 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
4495 * opts.h (CL_NEGATIVE_ALIAS): Define.
4496 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
4497 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
4499 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
4501 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4502 mno-spe and mno-isel instead of mspe=no and -misel=no.
4504 2011-03-29 Mark Wielaard <mjw@redhat.com>
4506 * common.opt (fdebug-types-section): New flag.
4507 * doc/invoke.texi: Document new -fno-debug-types-section flag.
4508 * dwarf2out.c (use_debug_types): New define.
4509 (struct die_struct): Mark die_id with GTY desc use_debug_types.
4510 (print_die): Guard output of type unit signatures using
4512 (build_abbrev_table): Replace assert of dwarf_version >= 4
4513 with assert on use_debug_types.
4514 (size_of_die): Likewise.
4515 (unmark_dies): Likewise.
4516 (value_format): Decide AT_ref_external form on use_debug_types.
4517 (output_die): Replace dwarf_version version check guard with
4518 use_debug_types where appropriate.
4519 (modified_type_die): Likewise.
4520 (gen_reference_type_die): Likewise.
4521 (dwarf2out_start_source_file): Likewise.
4522 (dwarf2out_end_source_file): Likewise.
4523 (prune_unused_types_walk_attribs): Likewise.
4524 (dwarf2out_finish): Likewise.
4526 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
4528 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
4530 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4532 PR rtl-optimization/48332
4533 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
4534 mode of input operand N and modeN to its actual mode.
4536 2011-03-30 Jeff Law <law@redhat.com>
4538 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
4539 define accessor macro.
4540 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
4541 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
4542 (reg_equiv_init): Likewise.
4543 (reg_equivs_size): New variable.
4544 (reg_equiv_init_size): Remove.
4545 (allocate_initial_values): Move prototype to here from....
4546 * integrate.h (allocate_initial_values): Remove prototype.
4547 * integrate.c: Include reload.h.
4548 (allocate_initial_values): Corresponding changes.
4549 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
4550 (fix_reg_equiv_init, no_equiv): Corresponding changes.
4551 (update_equiv_regs): Corresponding changes.
4552 (ira): Corresponding changes.
4553 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
4554 (push_secondary_reload): Corresponding changes.
4555 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
4556 (make_memloc, find_reloads_address): Corresponding changes.
4557 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
4558 (find_reloads_address_1): Corresponding changes.
4559 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
4560 (refers_to_regno_for_reload_p): Corresponding changes.
4561 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
4562 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
4563 * reload1.c: Include ggc.h.
4564 (grow_reg_equivs): New function.
4565 (replace_pseudos_in, reload): Corresponding changes.
4566 (calculate_needs_all_insns, alter_regs): Corresponding changes.
4567 (eliminate_regs_1, elimination_effects): Corresponding changes.
4568 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
4569 (delete_output_reload): Likewise.
4570 * caller-save.c (mark_referenced_regs): Corresponding changes.
4571 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
4572 * frv/predicates.md (frv_load_operand): Corresponding changes.
4573 * microblaze/microblaze.c (double_memory_operand): Corresponding
4575 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
4576 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
4577 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
4578 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
4579 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
4581 * pa/pa.c (emit_move_sequence): Corresponding changes.
4582 * vax/vax.c (nonindexed_address_p): Corresponding changes.
4584 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4587 * config/arm/arm.c (coproc_secondary_reload_class): Handle
4588 structure modes. Don't check neon_vector_mem_operand for
4589 vector or structure modes.
4591 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4592 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4595 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
4596 operand 1 and reshuffle the operands to match.
4597 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
4599 2011-03-30 Christian Schüler <cschueler@gmx.de>
4602 * config/c.opt (F): Added 'Driver' to -F option.
4605 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
4607 * config/darwin.opt: Added '-arch' option.
4609 2011-03-30 Nick Clifton <nickc@redhat.com>
4611 * config/rx/rx.md: Add peepholes and patterns to combine
4612 extending loads and simple arithmetic instructions.
4613 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
4614 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4615 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
4616 modes to use pre-decrement and post-increment addressing.
4617 (rx_is_restricted_memory_address): Add range checking of REG+INT
4619 (rx_print_operand): Add support for %Q. Fix handling of %Q.
4620 (rx_memory_move_cost): Adjust cost of stores.
4621 (rx_adjust_insn_length): New function.
4623 2011-03-30 Jakub Jelinek <jakub@redhat.com>
4626 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4627 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4628 matching arg00/arg01 types.
4630 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
4632 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4633 last_location to UNKNOWN_LOCATION.
4635 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
4638 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4641 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4642 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4645 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4647 (sparc_cpu): Likewise.
4648 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4651 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4655 PR rtl-optimization/48345
4656 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4657 hard regs for given mode from profitable regs when doing secondary
4660 2011-03-29 Jeff Law <law@redhat.com>
4663 * tree-ssa-threadupdate.c (struct redirection_data): Remove
4664 do_not_duplicate field.
4665 (lookup_redirection_data): Corresponding changes.
4666 (create_duplicates): Always create a template block.
4667 (redirect_edges): Remove code which reused the original block
4668 when it was going to become unreachable code.
4669 (thread_block): Don't set do_not_duplicate field.
4671 2011-03-29 Joseph Myers <joseph@codesourcery.com>
4673 * lto-opts.c (register_user_option_p, lto_register_user_option):
4674 Make type argument unsigned.
4675 * lto-streamer.h (lto_register_user_option): Make type argument
4677 * opth-gen.awk: Make CL_* macros unsigned.
4678 * opts-common.c (find_opt): Make lang_mask argument unsigned.
4679 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4680 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4681 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4682 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4683 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4684 (find_opt): Make lang_mask argument unsigned.
4686 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4688 PR rtl-optimization/48331
4689 PR rtl-optimization/48334
4690 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4691 for any used algorithm.
4693 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4695 * ira-conflicts.c (build_object_conflicts): Add unused attribute
4698 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
4700 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4701 (alpha_option_override): Don't set alpha_sr_alias_set.
4702 (emit_frame_store_1): Use gen_frame_mem rather than calling
4704 (alpha_expand_epilogue): Ditto.
4706 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
4708 PR tree-optimization/48290
4709 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4710 vectorization, check that relevant phis in the basic block after
4711 the inner loop are really inner loop's exit phis.
4713 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
4716 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4717 (cached_dw_loc_list_def): New structure.
4718 (cached_dw_loc_list): New typedef.
4719 (cached_dw_loc_list_table): New variable.
4720 (cached_dw_loc_list_table_hash): New function.
4721 (cached_dw_loc_list_table_eq): Likewise.
4722 (add_location_or_const_value_attribute): Take a bool cache_p.
4723 Cache the list when the parameter is true.
4724 (gen_formal_parameter_die): Update caller.
4725 (gen_variable_die): Likewise.
4726 (dwarf2out_finish): Likewise.
4727 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4728 while generating debug info for the decl.
4729 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4730 (dwarf2out_init): Initialize cached_dw_loc_list_table.
4731 (resolve_addr): Cache the result of resolving a chain of
4734 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
4736 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4737 conflict object hard regset nodes have intersecting hard reg sets.
4739 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4740 after regstat_init_n_sets_and_refs.
4742 * ira.c: Add more comments at the top.
4743 (setup_stack_reg_pressure_class, setup_pressure_classes):
4744 Add comments how we compute the register pressure classes.
4745 (setup_allocno_and_important_classes): Add more comments.
4746 (setup_class_translate_array, reorder_important_classes)
4747 (setup_reg_class_relations): Add comments.
4749 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
4752 * ira-color.c: Add 2011 to the Copyright line.
4753 (assign_hard_reg): Add more comments.
4754 (improve_allocation): Ditto.
4756 * ira-costs.c: Add 2011 to the Copyright line.
4757 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4759 (setup_regno_cost_classes_by_mode): Ditto.
4761 Initial patches from ira-improv branch:
4763 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4765 * ira-build.c (ira_create_object): Remove initialization of
4766 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
4767 (ira_create_allocno): Remove initialization of
4768 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4769 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4770 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4771 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4772 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4773 Initialize ALLOCNO_ADD_DATA.
4774 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4775 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4777 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
4778 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4780 * ira.c (ira_reallocate): Remove.
4781 (setup_pressure_classes): Call
4782 ira_init_register_move_cost_if_necessary. Use
4783 ira_register_move_cost instead of ira_get_register_move_cost.
4784 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4785 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4787 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4788 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4789 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4790 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4791 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4792 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4794 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4795 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4796 (struct allocno_color_data): New.
4797 (allocno_color_data_t): New typedef.
4798 (allocno_color_data): New definition.
4799 (ALLOCNO_COLOR_DATA): New macro.
4800 (struct object_color_data): New.
4801 (object_color_data_t): New typedef.
4802 (object_color_data): New definition.
4803 (OBJECT_COLOR_DATA): New macro.
4804 (update_copy_costs, calculate_allocno_spill_cost): Call
4805 ira_init_register_move_cost_if_necessary. Use
4806 ira_register_move_cost instead of ira_get_register_move_cost.
4807 (move_spill_restore, update_curr_costs): Ditto.
4808 (allocno_spill_priority): Make it inline.
4809 (color_pass): Allocate and free allocno_color_dat and object_color_data.
4810 (struct coalesce_data, coalesce_data_t): New.
4811 (allocno_coalesce_data): New definition.
4812 (ALLOCNO_COALESCE_DATA): New macro.
4813 (merge_allocnos, coalesced_allocno_conflict_p): Use
4814 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4815 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4816 (coalesce_allocnos): Ditto.
4817 (setup_coalesced_allocno_costs_and_nums): Ditto.
4818 (collect_spilled_coalesced_allocnos): Ditto.
4819 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4820 (setup_slot_coalesced_allocno_live_ranges): Ditto.
4821 (coalesce_spill_slots): Ditto.
4822 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
4823 free allocno_coalesce_data.
4825 * ira-conflicts.c: Fix formatting.
4826 (process_regs_for_copy): Call
4827 ira_init_register_move_cost_if_necessary. Use
4828 ira_register_move_cost instead of ira_get_register_move_cost.
4829 (build_object_conflicts): Optimize.
4831 * ira-costs.c (record_reg_classes): Optimize. Call
4832 ira_init_register_move_cost_if_necessary. Use
4833 ira_register_move_cost, ira_may_move_in_cost, and
4834 ira_may_move_out_cost instead of ira_get_register_move_cost and
4835 ira_get_may_move_cost.
4836 (record_address_regs): Ditto.
4837 (scan_one_insn): Optimize.
4838 (find_costs_and_classes): Optimize.
4839 (process_bb_node_for_hard_reg_moves): Call
4840 ira_init_register_move_cost_if_necessary. Use
4841 ira_register_move_cost instead of ira_get_register_move_cost.
4843 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4844 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4845 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4846 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4848 (ira_initiate_emit_data, ira_finish_emit_data)
4849 (create_new_allocno): New functions.
4850 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4851 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4852 Use ira_register_move_cost instead of ira_get_register_move_cost.
4854 * ira-int.h: Fix some comments.
4855 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4856 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4857 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4858 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
4860 (struct ira_allocno): Make mode and aclass a bitfield. Move other
4861 bitfield after mode. Make hard_regno a short int. Make
4862 hard_regno short. Remove first_coalesced_allocno and
4863 next_coalesced_allocno. Move mem_optimized_dest_p,
4864 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4865 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
4866 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4867 temp, colorable_p. Add new member add_data.
4868 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4869 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4870 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4871 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4872 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4873 (ALLOCNO_ADD_DATA): New macro.
4874 (ira_emit_data_t): New typedef.
4875 (struct ira_emit_data): New. Move mem_optimized_dest_p,
4876 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4877 from struct ira_allocno.
4878 (ALLOCNO_EMIT_DATA): New macro.
4879 (ira_allocno_emit_data, allocno_emit_reg): New.
4880 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4881 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4882 (OBJECT_ADD_DATA): New macro.
4883 (ira_reallocate): Remove.
4884 (ira_initiate_emit_data, ira_finish_emit_data): New.
4885 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4886 (ira_init_register_move_cost_if_necessary): New.
4887 (ira_object_conflict_iter_next): Merge into
4888 ira_object_conflict_iter_cond.
4889 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4891 * ira-live.c (process_single_reg_class_operands): Call
4892 ira_init_register_move_cost_if_necessary. Use
4893 ira_register_move_cost instead of ira_get_register_move_cost.
4895 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4897 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4899 * ira-costs.c: Fix formatting.
4900 (cost_classes, cost_classes_num): Remove.
4901 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4902 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4903 (cost_classes_del, cost_classes_htab): New.
4904 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4905 (initiate_regno_cost_classes, setup_cost_classes): New.
4906 (setup_regno_cost_classes_by_aclass): New.
4907 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4908 (record_reg_classes): Use regno_cost_classes instead of
4909 cost_classes. Move checking opposite operand up.
4910 (record_address_regs): Use regno_cost_classes
4911 instead of cost_classes.
4912 (scan_one_insn): Ditto. Use always general register.
4913 (print_allocno_costs): Use regno_cost_classes instead of
4915 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
4916 (find_costs_and_classes): Set up cost classes for each registers.
4917 Use also their mode for this. Use regno_cost_classes instead of
4919 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4921 (free_ira_costs, ira_init_costs): Don't use cost_classes.
4922 (ira_costs, ira_set_pseudo_classes): Call
4923 initiate_regno_cost_classes and finish_regno_cost_classes.
4925 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4927 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4929 * target.def (ira_cover_classes): Remove.
4931 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4933 * doc/tm.texi.in: Ditto.
4935 * ira-conflicts.c: Remove mentioning cover classes from the file.
4936 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
4937 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
4939 * targhooks.c (default_ira_cover_classes): Remove.
4941 * targhooks.h (default_ira_cover_classes): Ditto.
4943 * haifa-sched.c: Remove mentioning cover classes from the file.
4944 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4945 ira_pressure_classes and ira_pressure_classes_num instead of
4946 ira_reg_class_cover_size and ira_reg_class_cover. Use
4947 sched_regno_pressure_class instead of sched_regno_cover_class.
4948 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4949 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4951 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
4952 classes from the file.
4953 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4954 (struct object_hard_regs, struct object_hard_regs_node): New.
4955 (struct ira_object): New members profitable_hard_regs,
4956 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4957 (struct ira_allocno): Rename cover_class to aclass. Rename
4958 cover_class_cost and updated_cover_class_cost to class_cost and
4959 updated_class_cost. Remove splay_removed_p and
4960 left_conflict_size. Add new members colorable_p.
4961 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4962 (ALLOCNO_COLORABLE_P): New macro.
4963 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4964 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4965 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4966 (OBJECT_...): Rename parameter C to O.
4967 (OBJECT_PROFITABLE_HARD_REGS): New macro.
4968 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4969 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4970 (struct target_ira_int): New members x_ira_max_memory_move_cost,
4971 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4972 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4973 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4974 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
4975 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
4976 x_ira_reg_class_subunion.
4977 (ira_max_memory_move_cost, ira_max_register_move_cost)
4978 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4979 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4980 (ira_important_class_nums, ira_reg_class_superunion): New macros.
4981 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4982 (ira_reg_class_union): Rename to ira_reg_class_subunion.
4983 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4984 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4985 (ira_tune_allocno_costs_and_cover_classes): Rename to
4986 ira_tune_allocno_costs.
4987 (ira_debug_hard_regs_forest): New.
4988 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4989 (ira_object_conflict_iter_next): Fix comments.
4990 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4991 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4992 cover_class to aclass.
4993 (ira_allocate_and_accumulate_costs): Ditto.
4994 (ira_allocate_and_set_or_copy_costs): Ditto.
4996 * opts.c (decode_options): Remove ira_cover_class check.
4998 * ira-color.c: Remove mentioning cover classes from the file. Use
4999 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
5000 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
5001 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
5002 (splay-tree.h): Remove include.
5003 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
5004 before copy_freq_compare_func.
5005 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
5006 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
5008 (hard_regs_roots, hard_regs_node_vec): Ditto.
5009 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
5010 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
5011 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
5012 (create_new_object_hard_regs_node): Ditto.
5013 (add_new_object_hard_regs_node_to_forest): Ditto.
5014 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
5015 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
5017 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
5018 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
5019 (remove_unused_object_hard_regs_nodes): Ditto.
5020 (enumerate_object_hard_regs_nodes): Ditto.
5021 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
5022 (object_hard_regs_subnode_t): Ditto.
5023 (struct object_hard_regs_subnode): Ditto.
5024 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
5025 (setup_object_hard_regs_subnode_index): Ditto.
5026 (get_object_hard_regs_subnodes_num): Ditto.
5027 (form_object_hard_regs_nodes_forest): Ditto.
5028 (finish_object_hard_regs_nodes_tree): Ditto.
5029 (finish_object_hard_regs_nodes_forest): Ditto.
5030 (allocnos_have_intersected_live_ranges_p): Rename to
5031 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
5032 (pseudos_have_intersected_live_ranges_p): Rename to
5033 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
5034 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
5035 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
5036 (update_copy_costs): Remove assert. Skip cost update if the hard
5037 reg does not belong the class.
5038 (assign_hard_reg): Process only profitable hard regs.
5039 (uncolorable_allocnos_num): Make it scalar.
5040 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
5041 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
5042 and ira_reg_class_max_nregs.
5043 (bucket_allocno_compare_func): Check frequency first.
5044 (sort_bucket): Add compare function as a parameter.
5045 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
5046 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
5047 (push_allocno_to_stack): Rewrite for checking new allocno
5049 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
5050 (push_only_colorable): Pass new parameter to sort_bucket.
5051 (push_allocno_to_spill): Remove.
5052 (allocno_spill_priority_compare): Make it inline and rewrite.
5053 (splay_tree_allocate, splay_tree_free): Remove.
5054 (allocno_spill_sort_compare): New function.
5055 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
5056 build and use splay tree. Choose first allocno in uncolorable
5057 allocno bucket to spill. Remove setting spill cost.
5058 (all_conflicting_hard_regs): Remove.
5059 (setup_allocno_available_regs_num): Check only profitable hard
5060 regs. Print info about hard regs nodes.
5061 (setup_allocno_left_conflicts_size): Remove.
5062 (put_allocno_into_bucket): Don't call
5063 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
5064 (improve_allocation): New.
5065 (color_allocnos): Call setup_profitable_hard_regs,
5066 form_object_hard_regs_nodes_forest, improve_allocation,
5067 finish_object_hard_regs_nodes_forest. Setup spill cost.
5068 (print_loop_title): Use pressure classes.
5069 (color_allocnso): Ditto.
5070 (do_coloring): Remove allocation and freeing splay_tree_node_pool
5071 and allocnos_for_spilling.
5072 (ira_sort_regnos_for_alter_reg): Don't setup members
5073 {first,next}_coalesced_allocno.
5074 (color): Remove allocating and freeing removed_splay_allocno_vec.
5075 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
5076 prohibited_class_mode_regs.
5078 * ira-lives.c: Remove mentioning cover classes from the file. Fix
5080 (update_allocno_pressure_excess_length): Use pressure classes.
5081 (inc_register_pressure, dec_register_pressure): Check for pressure
5083 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
5084 pressure class. Use ira_reg_class_nregs instead of
5085 ira_reg_class_max_nregs.
5086 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
5087 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
5088 (single_reg_class): Use ira_reg_class_nregs instead of
5089 ira_reg_class_max_nregs.
5090 (process_bb_node_lives): Use pressure classes.
5092 * ira-emit.c: Remove mentioning cover classes from the file. Use
5093 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
5094 (change_loop): Use pressure classes.
5095 (modify_move_list): Call ira_set_allocno_class instead of
5096 ira_set_allocno_cover_class.
5098 * ira-build.c: Remove mentioning cover classes from the file. Use
5099 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
5100 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
5101 ALLOCNO_UPDATED_CLASS_COST instead of
5102 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
5103 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
5104 (ira_create_allocno): Remove initialization of
5105 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
5106 ALLOCNO_COLORABLE_P.
5107 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
5108 Update conflict regs for the objects.
5109 (create_cap_allocno): Remove assert. Don't propagate
5110 ALLOCNO_AVAILABLE_REGS_NUM.
5111 (ira_free_allocno_costs): New function.
5112 (finish_allocno): Change a part of code into call of
5113 ira_free_allocno_costs.
5114 (low_pressure_loop_node_p): Use pressure classes.
5115 (object_range_compare_func): Don't compare classes.
5116 (setup_min_max_conflict_allocno_ids): Ditto.
5118 * loop-invariant.c: Remove mentioning cover classes from the file.
5119 Use ira_pressure_classes and ira_pressure_classes_num instead of
5120 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
5121 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
5122 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5123 Use reg_allocno_class instead of reg_cover_class.
5124 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
5125 STACK_REG_COVER_CLASS.
5126 (get_regno_cover_class): Rename to get_regno_pressure_class.
5127 (move_loop_invariants): Initialize and finalize regstat.
5129 * ira.c: Remove mentioning cover classes from the file. Add
5130 comments about coloring without cover classes. Use ALLOCNO_CLASS
5131 instead of ALLOCNO_COVER_CLASS. Fix formatting.
5132 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
5133 setup_class_subset_and_memory_move_costs.
5134 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
5135 (setup_cover_and_important_classes): Rename to
5136 setup_allocno_and_important_classes.
5137 (setup_class_translate_array): New.
5138 (setup_class_translate): Call it for allocno and pressure classes.
5139 (cover_class_order): Rename to allocno_class_order.
5140 (comp_reg_classes_func): Use ira_allocno_class_translate instead
5141 of ira_class_translate.
5142 (reorder_important_classes): Set up ira_important_class_nums.
5143 (setup_reg_class_relations): Set up ira_reg_class_superunion.
5144 (print_class_cover): Rename to print_classes. Add parameter.
5145 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
5146 Print pressure classes too.
5147 (find_reg_class_closure): Rename to find_reg_classes. Don't call
5148 setup_reg_subclasses.
5149 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
5150 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
5151 (setup_prohibited_class_mode_regs): Use
5152 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
5153 (clarify_prohibited_class_mode_regs): New function.
5154 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
5155 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
5156 (ira_init_once): Initialize them.
5157 (free_register_move_costs): Process them.
5158 (ira_init): Move calls of find_reg_classes and
5159 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
5160 Call clarify_prohibited_class_mode_regs.
5161 (ira_no_alloc_reg): Remove.
5162 (too_high_register_pressure_p): Use pressure classes.
5164 * sched-deps.c: Remove mentioning cover classes from the file.
5165 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
5166 ira_pressure_classes and ira_pressure_classes_num instead of
5167 ira_reg_class_cover_size and ira_reg_class_cover.
5168 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
5169 sched_regno_pressure_class instead of sched_regno_cover_class.
5170 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
5171 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5173 * ira.h: Add 2010 to Copyright.
5174 (ira_no_alloc_reg): Remove external.
5175 (struct target_ira): Rename x_ira_hard_regno_cover_class,
5176 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
5177 x_ira_class_translate to x_ira_hard_regno_allocno_class,
5178 x_ira_allocno_classes_num, x_ira_allocno_classes, and
5179 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
5180 x_ira_pressure_classes, x_ira_pressure_class_translate, and
5181 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
5182 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
5183 x_ira_no_alloc_regs.
5184 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
5185 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
5186 ira_allocno_classes_num and ira_allocno_classes.
5187 (ira_class_translate): Rename to ira_allocno_class_translate.
5188 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
5189 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
5190 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
5191 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
5192 (ira_no_alloc_regs): New.
5194 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
5195 classes from the file. Use ALLOCNO_CLASS instead of
5196 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
5197 ALLOCNO_COVER_CLASS_COST.
5198 (regno_cover_class): Rename to regno_aclass.
5199 (record_reg_classes): Use ira_reg_class_subunion instead of
5200 ira_reg_class_union.
5201 (record_address_regs): Check overflow.
5202 (scan_one_insn): Ditto.
5203 (print_allocno_costs): Print total mem cost fore regional allocation.
5204 (print_pseudo_costs): Use REG_N_REFS.
5205 (find_costs_and_classes): Use classes intersected with them on the
5206 1st pass. Check overflow. Use ira_reg_class_subunion instead of
5207 ira_reg_class_union. Use ira_allocno_class_translate and
5208 regno_aclass instead of ira_class_translate and regno_cover_class.
5209 Modify code for finding regno_aclass. Setup preferred classes for
5211 (setup_allocno_cover_class_and_costs): Rename to
5212 setup_allocno_class_and_costs. Use regno_aclass instead of
5213 regno_cover_class. Use ira_set_allocno_class instead of
5214 ira_set_allocno_cover_class.
5215 (init_costs, finish_costs): Use regno_aclass instead of
5217 (ira_costs): Use setup_allocno_class_and_costs instead of
5218 setup_allocno_cover_class_and_costs.
5219 (ira_tune_allocno_costs_and_cover_classes): Rename to
5220 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
5221 by processing objects. Use ira_reg_class_max_nregs instead of
5222 ira_reg_class_nregs.
5224 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
5226 * sched-int.h: Remove mentioning cover classes from the file.
5227 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
5229 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
5230 classes from the file.
5231 (struct reg_pref): Rename coverclass into allocnoclass.
5232 (reg_cover_class): Rename to reg_allocno_class.
5234 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
5236 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
5238 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
5240 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
5242 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
5244 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
5246 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
5248 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
5250 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
5252 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
5254 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
5255 (i386_ira_cover_classes): Ditto.
5257 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
5259 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
5261 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
5263 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
5265 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
5267 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
5269 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
5270 (mips_ira_cover_classes): Ditto.
5272 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
5274 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
5276 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
5278 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
5280 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
5282 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
5283 (IRA_COVER_CLASSES_VSX): Ditto.
5285 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
5286 (rs6000_ira_cover_classes): Ditto.
5288 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
5290 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
5292 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
5294 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
5296 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
5298 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
5300 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
5302 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
5304 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
5306 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
5308 2011-03-29 Jakub Jelinek <jakub@redhat.com>
5311 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
5312 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
5313 dw_fde_unlikely_section_end_label, cold_in_std_section,
5314 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
5315 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
5317 (output_fde): Use dw_fde_second_{begin,end} if second is
5318 true, otherwise dw_fde_{begin,end}.
5319 (output_call_frame_info): Test dw_fde_second_begin != NULL
5320 instead of dw_fde_switched_sections.
5321 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
5322 fields, initialize new fields. Initialize in_std_section
5323 unconditionally from the first partition.
5324 (dwarf2out_end_epilogue): Don't override dw_fde_end when
5325 dw_fde_second_begin is non-NULL.
5326 (dwarf2out_switch_text_section): Stop initializing removed
5327 dw_fde_struct fields, initialize new fields, initialize
5328 also dw_fde_end here. Set dw_fde_switch_cfi even when
5329 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
5330 (struct var_loc_list_def): Add last_before_switch field.
5331 (arange_table, arange_table_allocated, arange_table_in_use,
5332 ARANGE_TABLE_INCREMENT, add_arange): Removed.
5333 (size_of_aranges): Count !in_std_section and !second_in_std_section
5334 hunks in fdes, instead of looking at arange_table_in_use.
5335 (output_aranges): Add aranges_length argument, don't call
5336 size_of_aranges here. Instead of using aranges_table*
5337 emit ranges for fdes when !in_std_section resp.
5338 !second_in_std_section.
5339 (dw_loc_list): Break ranges crossing section switch.
5340 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
5341 use dw_fde_second_end instead of dw_fde_end as end of last range.
5342 (gen_subprogram_die): Don't call add_arange. Use
5343 dw_fde_{begin,end} for first partition and if switched
5344 section dw_fde_second_{begin,end} for the second.
5345 (var_location_switch_text_section_1,
5346 var_location_switch_text_section): New functions.
5347 (dwarf2out_begin_function): Initialize cold_text_section even
5348 when function_section () isn't text_section.
5349 (prune_unused_types): Don't walk arange_table.
5350 (dwarf2out_finish): Don't needlessly test
5351 flag_reorder_blocks_and_partition when testing cold_text_section_used.
5352 If info_section_emitted, call size_of_aranges and if it indicates
5353 non-empty .debug_aranges, call output_aranges with the computed
5354 size. Stop using removed dw_fde_struct fields, use
5355 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
5359 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
5360 create ENTRY_VALUE if incoming or address of incoming's MEM
5362 * dwarf2out.c (mem_loc_descriptor): Don't emit
5363 DW_OP_GNU_entry_value of DW_OP_fbreg.
5364 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
5365 on ENTRY_VALUE is able to find the canonical parameter VALUE.
5366 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
5367 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
5369 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
5370 is a REG_P or MEM_P with REG_P address, compute hash directly
5371 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
5372 (preserve_only_constants): Don't clear VALUES forwaring
5373 ENTRY_VALUE to some other VALUE.
5375 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
5377 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
5380 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
5382 * cfgexpand.c (expand_gimple_cond): Always set the source location and
5383 block before expanding the statement.
5384 (expand_gimple_stmt_1): Likewise. Set them here...
5385 (expand_gimple_stmt): ...and not here. Tidy.
5386 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
5389 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
5391 * Makefile.in: New rule for cprop.o.
5392 * gcse.c: Move constant/copy propagation to cprop.c.
5393 (compute_local_properties): Only handle expression tables.
5394 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
5395 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
5396 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
5397 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
5398 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
5399 compute_cprop_data, find_used_regs, try_replace_reg,
5400 find_avail_set, cprop_jump, constprop_register, cprop_insn,
5401 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
5402 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
5403 find_bypass_set, reg_killed_on_edge, bypass_block,
5404 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
5405 execute_rtl_cprop, pass_rtl_cprop): Move to...
5406 * cprop.c: ...here. New file, constant/copy propagation for RTL
5407 moved from gcse.c to here with minor cleanups in duplicated code.
5409 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
5411 * config/i386/i386.c (flag_opts): Fix a typo in
5412 -mavx256-split-unaligned-store.
5414 2011-03-28 Anatoly Sokolov <aesok@post.ru>
5416 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5417 LIBCALL_VALUE): Remove macros.
5418 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5419 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5420 (h8300_function_value, h8300_libcall_value,
5421 h8300_function_value_regno_p): New functions.
5423 2011-03-28 Anatoly Sokolov <aesok@post.ru>
5425 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
5427 2011-03-28 Jeff Law <law@redhat.com>
5429 * tree-ssa-threadupdate.c (redirect_edges): Call
5430 create_edge_and_update_destination_phis as needed.
5431 (create_edge_and_update_destination_phis): Accept new BB argument.
5432 All callers updated.
5433 (thread_block): Do not update the profile when threading around
5434 intermediate blocks.
5435 (thread_single_edge): Likewise.
5436 (determine_bb_domination_status): If BB is not a successor of the
5437 loop header, return NONDOMINATING.
5438 (register_jump_thread): Note when we register a jump thread around
5439 an intermediate block.
5440 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
5441 (thread_across_edge): Use it.
5443 2011-03-28 Tristan Gingold <gingold@adacore.com>
5445 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
5446 when for_return is 2.
5448 2011-03-28 Jeff Law <law@redhat.com>
5450 * var-tracking.c (canonicalize_values_mark): Delete unused
5452 (canonicalize_values_star, set_variable_part): Likewise.
5453 (clobber_variable_part, delete_variable_part): Likewise.
5455 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
5457 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
5459 2011-03-28 Martin Jambor <mjambor@suse.cz>
5461 * tree-inline.c (expand_call_inline): Do not check that destination
5463 (optimize_inline_calls): Assert that destination node is analyzed.
5464 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
5465 not call tree_lowering_passes.
5466 * cgraph.h (cgraph_analyze_function): Declare.
5467 * cgraphunit.c (cgraph_analyze_function): Make public.
5469 2011-03-28 Joseph Myers <joseph@codesourcery.com>
5471 * config/sparc/sparc-opts.h: New.
5472 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
5473 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
5474 (sparc_option_override): Store processor_type enumeration rather
5475 than string in cpu_default. Remove name and enumeration from
5476 cpu_table. Directly default -mcpu then default -mtune from -mcpu
5477 without using sparc_select. Use target_flags_explicit instead of
5479 * config/sparc/sparc.h (enum processor_type): Move to
5481 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
5482 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
5483 HeaderInclude entry.
5484 (mcpu=, mtune=): Use Var and Enum.
5485 (sparc_processor_type): New Enum and EnumValue entries.
5487 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5488 Iain Sandoe <iains@gcc.gnu.org>
5491 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
5493 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
5495 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
5496 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
5497 Insert new statements at it in lieu of STMT.
5498 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
5499 * tree-vect-stmts.c (vectorizable_store): Likewise.
5500 (vectorizable_load): Likewise.
5502 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
5504 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
5509 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
5511 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
5512 unaligned 256bit load/store.
5513 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
5514 (*avx_movdqu<avxmodesuffix>): Likewise.
5516 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5519 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
5520 * config/pa/pa.md (iordi3): Use new predicate in expander.
5523 2011-03-27 Anatoly Sokolov <aesok@post.ru>
5525 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
5526 FUNCTION_VALUE_REGNO_P): Remove macros.
5527 * config/mips/mips-protos.h (mips_function_value): Remove.
5528 * config/mips/mips.c (mips_function_value): Rename to...
5529 (mips_function_value_1): ... this. Make static. Handle receiving
5530 the function type in 'fn_decl_or_type' argument.
5531 (mips_function_value, mips_libcall_value,
5532 mips_function_value_regno_p): New function.
5533 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5534 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5536 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
5538 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
5539 and -mavx256-split-unaligned-store.
5540 (ix86_option_override_internal): Split 32-byte AVX unaligned
5541 load/store by default.
5542 (ix86_avx256_split_vector_move_misalign): New.
5543 (ix86_expand_vector_move_misalign): Use it.
5545 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
5546 -mavx256-split-unaligned-store.
5548 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
5549 256bit load/store. Generate unaligned store on misaligned memory
5551 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
5553 (*avx_movdqu<avxmodesuffix>): Likewise.
5555 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
5556 -mavx256-split-unaligned-store.
5558 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
5561 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
5564 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
5566 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
5567 opno arguments with an expand_operand. Use create_input_operand.
5568 (mips_prepare_builtin_target): Delete.
5569 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
5571 (mips_expand_builtin_direct): Use create_output_operand and
5572 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
5573 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
5574 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
5576 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
5578 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
5580 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5582 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
5584 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
5585 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
5586 basic blocks and call commit_edge_insertions directly.
5587 (fixup_abnormal_edges): Move from here to...
5588 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
5589 on the edges and return whether some have actually been inserted.
5590 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
5593 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
5595 PR rtl-optimization/48144
5596 * sel-sched-ir.c (merge_history_vect): Factor out from ...
5597 (merge_expr_data): ... here.
5598 (av_set_intersect): Rename to av_set_code_motion_filter.
5599 Update all callers. Call merge_history_vect when an expression
5600 is found in both sets.
5601 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
5603 2011-03-26 Alan Modra <amodra@gmail.com>
5605 * config/rs6000/predicates.md (word_offset_memref_op): Handle
5606 cmodel medium addresses.
5607 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
5608 64-bit gpr loads and stores.
5609 (rs6000_secondary_reload_ppc64): New function.
5610 * config/rs6000/rs6000-protos.h: Declare it.
5611 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
5613 2011-03-26 Alan Modra <amodra@gmail.com>
5616 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5617 GNU Go in traceback table.
5619 2011-03-25 Richard Henderson <rth@redhat.com>
5621 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5622 if there are exactly 6 operands.
5623 (set_storage_via_setmem): Similarly.
5625 2011-03-25 Kai Tietz <ktietz@redhat.com>
5627 * collect2.c (write_c_file_stat): Handle backslash
5628 as right-hand directory separator.
5629 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5630 checking just for slash.
5631 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5632 instead of checking for trailing slash.
5633 * gcc.c (record_temp_file): Use filename_cmp instead
5635 (do_spec_1): Likewise.
5636 (replace_outfile_spec_function): Likewise.
5637 (is_directory): Use filename_ncmp instead of strncmp.
5638 (print_multilib_info): Likewise.
5639 * gcov.c (find_source): Use filename_cmp instead
5641 (make_gcov_file_name): Fix order of slash/backslash
5643 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5644 (add_standard_paths): Likewise.
5645 * mips-tfile.c (saber_stop): Handle backslash.
5646 * prefix.c (update_path): Use filename_ncmp instead of
5648 * profile.c (output_location): Use filename_cmp instead
5650 * read-md.c (handle_toplevel_file): Handle backslash.
5651 * tlink.c (frob_extension): Likewise.
5652 * tree-cfg.c (same_line_p): Use filename_cmp instead of
5654 * tree-dump.c (dequeue_and_dump): Handle backslash.
5655 * tree.c (get_file_function_name): Likewise.
5656 * gengtype.c (read_input_list): Likewise.
5657 (get_file_realbasename): Likewise.
5658 (get_output_file_with_visibility): Use filename_cmp
5661 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
5663 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5666 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5668 * fold-const.c (expr_location_or): New function.
5669 (fold_truth_not_expr): Call it.
5671 2011-03-25 Jeff Law <law@redhat.com>
5673 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5675 * c-family/c-common.c (def_fn_type): Likewise.
5676 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5677 * emit-rtl.c (gen_rtvec): Likewise.
5678 * lto/lto-lang.c (def_fn_type): Likewise.
5680 2011-03-25 Richard Guenther <rguenther@suse.de>
5682 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5683 also generate copies.
5684 (fini_copy_prop): Handle constant values properly.
5686 2011-03-25 Jakub Jelinek <jakub@redhat.com>
5688 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5689 mode size instead of bitsize with DWARF2_ADDR_SIZE.
5690 (hash_loc_operands, compare_loc_operands): Handle
5691 DW_OP_GNU_entry_value.
5693 2011-03-25 Kai Tietz <ktietz@redhat.com>
5695 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5696 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5697 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5698 comment and use macro TARGET_64BIT_MS_ABI instead.
5699 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5700 and change default behavior for 32-bit MS_ABI.
5701 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5702 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5704 (ix86_cfun_abi): Likewise.
5705 (ix86_maybe_switch_abi): Adjust comment.
5706 (init_cumulative_args): Check for bit-ness in MS_ABI case.
5707 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5708 instead of checking for SYSV_ABI.
5709 (ix86_nsaved_sseregs): Likewise.
5710 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5712 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5713 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5714 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5715 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5716 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5718 2011-03-25 Richard Guenther <rguenther@suse.de>
5720 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5721 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5722 (verify_gimple): Remove.
5723 * tree-cfg.c (verify_gimple_call): Merge verification
5725 (verify_gimple_phi): Merge verification from verify_stmts.
5726 (verify_gimple_label): New function.
5727 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5728 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5729 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5730 (verify_stmts): Rename to verify_gimple_in_cfg.
5731 (verify_gimple_in_cfg): New function.
5732 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5733 * tree-ssa.c (verify_ssa): Likewise.
5734 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5736 2011-03-25 Richard Guenther <rguenther@suse.de>
5738 * passes.c (init_optimization_passes): Add FRE pass after
5741 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
5742 Andrew Stubbs <ams@codesourcery.com>
5744 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5746 (arm_movdi_vfp_cortexa8): New pattern.
5747 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5748 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5749 instructions when tuning for Cortex-A8. Set attribute "arch".
5750 * config/arm/arm.md: Move include arm-tune.md up a bit.
5751 (define_attr "arch"): Add "onlya8" and "nota8" values.
5752 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5754 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5758 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5760 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5761 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5762 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5763 * passes.c (init_optimization_passes): Move
5764 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5766 2011-03-25 Kai Tietz <ktietz@redhat.com>
5768 * c-typeck.c (comptypes_internal): Replace target
5769 hook call of comp_type_attributes by version in tree.c file.
5770 * gimple.c (gimple_types_compatible_p_1): Likewise.
5771 * tree-ssa.c (useless_type_conversion_p): Likewise.
5772 * tree.c (build_type_attribute_qual_variant): Likewise.
5773 (attribute_value_equal): New static helper function.
5774 (comp_type_attributes): New function.
5775 (merge_attributes): Use attribute_value_equal for comparison.
5776 (attribute_list_contained): Likewise.
5777 * tree.h (comp_type_attributes): New prototype.
5779 2011-03-25 Richard Guenther <rguenther@suse.de>
5781 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5782 of complex types at -O0.
5783 (verify_gimple_assign_binary): Likewise.
5784 (verify_gimple_assign_ternary): Likewise.
5786 2011-03-24 Mark Wielaard <mjw@redhat.com>
5788 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5789 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5791 2011-03-24 Mark Wielaard <mjw@redhat.com>
5794 * dwarf2out.c (output_abbrev_section): Only write table when
5795 abbrev_die_table_in_use > 1.
5797 2011-02-24 Richard Henderson <rth@redhat.com>
5799 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5800 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5801 (alpha_expand_unaligned_load_words): Use extql.
5802 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5803 (emit_insxl): Handle all modes for consistency.
5805 2011-02-24 Richard Henderson <rth@redhat.com>
5807 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5808 (alpha_expand_unaligned_load): Likewise.
5809 (alpha_expand_unaligned_store): Likewise.
5810 (alpha_expand_unaligned_load_words): Likewise.
5811 (alpha_expand_unaligned_store_words): Likewise.
5812 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5813 (alpha_split_lock_test_and_set_12): Likewise.
5814 (print_operand, alpha_fold_builtin_extxx): Likewise.
5815 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5816 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5817 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5818 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5819 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5820 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5821 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5822 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5823 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5824 (extwl, extll, extql): Similarly.
5825 (inswh, inslh, insqh): Similarly.
5826 (mskbl, mskwl, mskll, mskql): Similarly.
5827 (mskwh, msklh, mskqh): Similarly.
5829 2011-02-24 Richard Henderson <rth@redhat.com>
5831 * config/alpha/alpha.md (attribute isa): Add er, ner.
5832 (attribute enabled): Handle them.
5833 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5835 2011-02-24 Richard Henderson <rth@redhat.com>
5837 * config/alpha/alpha.md (attribute isa): Add vms.
5838 (attribute enabled): Handle it.
5839 (*movsf): Merge *movsf_{nofix,fix,nofp}.
5840 (*movdf): Merge *movdf_{nofix,fix,nofp}.
5841 (*movtf): Rename from *movtf_internal for consistency.
5842 (*movsi): Merge with *movsi_nt_vms.
5843 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5844 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5845 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5846 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5848 2011-02-24 Richard Henderson <rth@redhat.com>
5850 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5851 (extendqisi2, extendhisi2): Likewise.
5852 (extendqidi2): Simplify BWX/non-BWX expansions.
5853 (extendhidi2): Similarly.
5855 2011-02-24 Richard Henderson <rth@redhat.com>
5857 * config/alpha/alpha.md (attribute isa): New.
5858 (attribute enabled): New.
5859 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5860 (zero_extendqisi2, zero_extendqidi2): Similarly.
5861 (zero_extendhisi2, zero_extendhidi2): Similarly.
5862 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5864 2011-02-24 Richard Henderson <rth@redhat.com>
5866 * config/alpha/predicates.md (input_operand): Revert last change;
5867 update comment to mention 32-bit VMS rather than Windows.
5869 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5871 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5872 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5873 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5874 * passes.c (init_optimization_passes): Move
5875 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5877 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5879 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5881 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5883 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5886 2011-03-24 Jakub Jelinek <jakub@redhat.com>
5889 * simplify-rtx.c (simplify_const_unary_operation): Call
5890 real_convert when changing mode class with FLOAT_EXTEND.
5892 2011-03-24 Nick Clifton <nickc@redhat.com>
5894 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5895 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5896 * config/rx/rx.c (rx_option_override): Set align_jumps,
5897 align_loops and align_labels if not set by the user.
5898 (rx_align_for_label): New function.
5899 (rx_max_skip_for_label): New function.
5900 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5901 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5902 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5903 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5904 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5906 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5908 PR rtl-optimization/48263
5909 * optabs.c (expand_binop_directly): Reinstate convert_modes code
5910 and original commutative_p handling. Use maybe_gen_insn.
5912 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5914 * reload.c (find_reloads_subreg_address): Add address_reloaded
5915 parameter and return true there if the full address has been
5917 (find_reloads_toplev): Pass address_reloaded flag.
5918 (find_reloads_address_1): Don't use address_reloaded parameter.
5920 2011-03-24 Jeff Law <law@redhat.com>
5922 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5923 unused variable "ann".
5924 (remove_unused_locals): Likewise.
5926 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5929 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5932 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5934 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5935 for invalid symbolic addresses.
5936 (s390_secondary_reload): Don't use s390_check_symref_alignment for
5939 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5941 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5942 the argument in calls to fold_truth_not_expr.
5944 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5946 * tree.c (record_node_allocation_statistics): New function.
5947 (make_node_stat, copy_node_stat, build_string): Call it.
5948 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5949 (build1_stat, build_omp_clause): Likewise.
5951 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5953 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5956 2011-03-24 Richard Guenther <rguenther@suse.de>
5958 PR tree-optimization/48271
5959 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5960 blocks that still exist.
5962 2011-03-24 Richard Guenther <rguenther@suse.de>
5964 PR tree-optimization/48270
5965 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5966 not free datarefs before ddrs.
5968 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5970 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5971 from the address built for a reference with variable offset.
5973 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5976 * config/i386/i386.md (*movdf_internal_rex64): Do not split
5977 alternatives that can be handled with movq or movabsq insn.
5978 (*movdf_internal): Disable for !TARGET_64BIT.
5979 (*movdf_internal_nointeger): Ditto.
5980 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5982 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5984 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5985 (FUNCTION_ARG_ADVANCE): Likewise.
5986 * tm.texi.in: Change references to them to hook references.
5987 * tm.texi: Regenerate.
5988 * targhooks.c (default_function_arg): Eliminate check for target macro.
5989 (default_function_incoming_arg): Likewise.
5990 (default_function_arg_advance): Likewise.
5991 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5992 (function_arg_advance): Likewise.
5993 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5995 2011-03-24 Richard Guenther <rguenther@suse.de>
5998 * tree-object-size.c (addr_object_size): Do not double-account
5999 for MEM_REF offsets.
6001 2011-03-24 Diego Novillo <dnovillo@google.com>
6003 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
6004 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
6005 (lto_input_data_block): Move from lto-opts.c. Make extern.
6007 (lto_input_string): Rename from input_string. Make extern.
6009 * lto-streamer-out.c (lto_output_string_with_length): Rename from
6010 output_string_with_length.
6011 Output 0 to indicate a non-NULL string. Update all callers to
6013 (lto_output_string): Rename from output_string. Make extern.
6015 (lto_output_decl_state_streams): Make extern.
6016 (lto_output_decl_state_refs): Make extern.
6017 * lto-streamer.h (lto_input_string): Declare.
6018 (lto_input_data_block): Declare.
6019 (lto_output_string): Declare.
6020 (lto_output_string_with_length): Declare.
6021 (lto_output_decl_state_streams): Declare.
6022 (lto_output_decl_state_refs): Declare.
6024 2011-03-24 Richard Guenther <rguenther@suse.de>
6026 PR tree-optimization/46562
6027 * tree.c (build_invariant_address): New function.
6028 * tree.h (build_invariant_address): Declare.
6029 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
6030 a renamed function moved ...
6031 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
6032 Take valueization callback parameter.
6033 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
6034 * gimple-fold.h: New file.
6035 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
6036 (ccp_fold, fold_const_aggregate_ref,
6037 fold_ctor_reference, fold_nonarray_ctor_reference,
6038 fold_array_ctor_reference, fold_string_cst_ctor_reference,
6039 get_base_constructor): Move ...
6040 * gimple-fold.c: ... here.
6041 (gimple_fold_stmt_to_constant_1): New function
6042 split out from ccp_fold. Take a valueization callback parameter.
6043 Valueize all operands.
6044 (gimple_fold_stmt_to_constant): New wrapper function.
6045 (fold_const_aggregate_ref_1): New function split out from
6046 fold_const_aggregate_ref. Take a valueization callback parameter.
6047 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
6048 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
6049 invariant POINTER_PLUS_EXPRs to invariant form.
6050 (vn_valueize): New function.
6051 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
6052 * tree-vrp.c (vrp_valueize): New function.
6053 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
6054 to fold statements to constants.
6055 * tree-ssa-pre.c (eliminate): Properly guard propagation of
6056 function declarations.
6057 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
6058 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
6060 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6062 * config/h8300/predicates.md (jump_address_operand): Fix register
6065 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
6067 * doc/invoke.texi (max-stores-to-sink): Document.
6068 * params.h (MAX_STORES_TO_SINK): Define.
6069 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
6070 if either vectorization or if-conversion is disabled.
6071 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
6072 tree-vect-data-refs.c vect_equal_offsets.
6073 (dr_equal_offsets_p): New function.
6074 (find_data_references_in_bb): Remove static.
6075 * tree-data-ref.h (find_data_references_in_bb): Declare.
6076 (dr_equal_offsets_p): Likewise.
6077 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
6078 (vect_drs_dependent_in_basic_block): Update calls to
6080 (vect_check_interleaving): Likewise.
6081 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
6082 (cond_if_else_store_replacement): Rename to...
6083 (cond_if_else_store_replacement_1): ... this. Change arguments and
6085 (cond_if_else_store_replacement): New function.
6086 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
6087 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
6089 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
6092 * config/arm/arm.md (casesi): Use the gen_int_mode() function
6093 to subtract lower bound instead of GEN_INT().
6095 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
6100 * doc/extend.texi (Alignment): Move section to match order in TOC.
6101 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
6102 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
6104 2011-03-23 Jeff Law <law@redhat.com>
6106 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
6107 before removing the edge.
6109 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
6110 it may have been freed by redirect_branch_edge or
6111 redirect_edge_succ_nodup.
6113 2011-03-23 Richard Guenther <rguenther@suse.de>
6115 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
6116 (check_va_list_escapes): Likewise.
6117 (check_all_va_list_escapes): Likewise.
6119 2011-03-23 Richard Guenther <rguenther@suse.de>
6121 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
6122 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
6123 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
6124 (alias.o): Likewise.
6125 (ipa-type-escape.o): Remove.
6126 (ipa-struct-reorg.o): Likewise.
6127 (GTFILES): Remove ipa-struct-reorg.c.
6128 * alias.c: Do not include ipa-type-escape.h.
6129 * tree-ssa-alias.c: Likewise.
6130 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
6131 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
6132 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
6133 and ipa-type-escape passes.
6134 * tree-pass.h (pass_ipa_type_escape): Remove.
6135 (pass_ipa_struct_reorg): Likewise.
6136 * ipa-struct-reorg.h: Remove.
6137 * ipa-struct-reorg.c: Likewise.
6138 * ipa-type-escape.h: Likewise.
6139 * ipa-type-escape.c: Likewise.
6140 * doc/invoke.texi (-fipa-struct-reorg): Remove.
6141 (--param struct-reorg-cold-struct-ratio): Likewise.
6142 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
6143 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
6144 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
6146 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6148 * config/s390/2084.md: Enable all insn reservations also for z9_ec
6149 cpu attribute value.
6150 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
6151 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
6152 * config/s390/s390.c (processor_flags_table): New constant array.
6153 (s390_handle_arch_option): Remove.
6154 (s390_handle_option): Remove s390_handle_arch_option invocations
6155 and OPT_mwarn_framesize_ handling.
6156 (s390_option_override): Remove s390_handle_arch_option invocation.
6157 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
6159 * config/s390/s390.md (cpu attribute): Add z9_ec value.
6160 * config/s390/s390.opt (s390_tune, s390_arch)
6161 (march=): Replace s390_arch_option enum and values with
6162 processor_type. Set variable name to s390_arch. Set
6163 initialization value.
6164 (mtune=): Replace s390_arch_option with processor_type. Set
6165 variable name to s390_tune. Set initialization value.
6167 2011-03-23 Julian Brown <julian@codesourcery.com>
6169 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
6170 accesses which are not naturally aligned.
6172 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
6175 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
6177 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
6179 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
6180 parameter from "int" to "enum insn_code".
6181 (expand_operand_type): New enum.
6182 (expand_operand): New structure.
6183 (create_expand_operand): New function.
6184 (create_fixed_operand, create_output_operand): Likewise
6185 (create_input_operand, create_convert_operand_to): Likewise.
6186 (create_convert_operand_from, create_address_operand): Likewise.
6187 (create_integer_operand): Likewise.
6188 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
6189 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
6190 (expand_insn, expand_jump_insn): Likewise.
6191 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
6192 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
6193 (expand_movstr, expand_builtin___clear_cache): Likewise.
6194 (expand_builtin_lock_release): Likewise.
6195 * explow.c (allocate_dynamic_stack_space): Likewise.
6196 (probe_stack_range): Likewise. Allow check_stack to FAIL,
6197 and use the default handling in that case.
6198 * expmed.c (check_predicate_volatile_ok): Delete.
6199 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
6200 (emit_cstore): Likewise.
6201 * expr.c (emit_block_move_via_movmem): Likewise.
6202 (set_storage_via_setmem, expand_assignment): Likewise.
6203 (emit_storent_insn, try_casesi): Likewise.
6204 (emit_single_push_insn): Likewise. Allow the expansion to fail.
6205 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
6206 (expand_vec_shift_expr, expand_binop_directly): Likewise.
6207 (expand_twoval_unop, expand_twoval_binop): Likewise.
6208 (expand_unop_direct, emit_indirect_jump): Likewise.
6209 (emit_conditional_move, vector_compare_rtx): Likewise.
6210 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
6211 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
6212 (expand_sync_lock_test_and_set): Likewise.
6213 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
6214 (emit_unop_insn): Likewise.
6215 (expand_copysign_absneg): Change icode to an insn_code.
6216 (create_convert_operand_from_type): New function.
6217 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
6218 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
6219 (expand_insn, expand_jump_insn): Likewise.
6220 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
6221 than const_int_operand for operand 2.
6223 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6225 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
6228 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6230 * emit-rtl.c (emit_pattern_before_noloc): New function.
6231 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
6232 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
6233 (emit_pattern_after_noloc): New function.
6234 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
6235 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
6237 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6239 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
6240 (__ffsDI2): Likewise.
6242 2011-03-22 Richard Henderson <rth@redhat.com>
6244 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
6245 of !TARGET_ABI_OPEN_VMS.
6246 (alpha_trampoline_init, alpha_start_function): Likewise.
6247 (alpha_expand_epilogue, alpha_file_start): Likewise.
6248 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
6249 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
6250 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
6251 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
6252 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
6254 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6256 * config/s390/s390-opts.h: New.
6257 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
6258 s390_arch_flags, s390_warn_framesize, s390_stack_size,
6259 s390_stack_guard): Remove.
6260 (s390_handle_arch_option): Return void. Take enum
6261 s390_arch_option value instead of string and searching array.
6262 (s390_handle_option): Don't assert that global structures are in
6263 use. Access variables via opts pointer. Use error_at. Don't use
6264 sscanf for -mstack-guard= or -mstack-size=. Update call to
6265 s390_handle_arch_option.
6266 (s390_option_override): Update call to s390_handle_arch_option.
6267 (s390_emit_prologue): Use %d format for s390_stack_size in
6268 diagnostic. Use %wd for HOST_WIDE_INT.
6269 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
6270 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
6271 * config/s390/s390.opt (config/s390/s390-opts.h): New
6272 HeaderInclude entry.
6273 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
6274 s390_arch_flags, s390_warn_framesize): New Variable entries.
6275 (s390_arch_option): New Enum and EnumValue entries.
6276 (march=): Use Enum instead of Var.
6277 (mstack-guard=, mstack-size=): Use UInteger and Var.
6280 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6282 * config/score/score.c (score_handle_option): Don't assert that
6283 global structures are in use. Access target_flags via opts
6284 pointer. Use value of -march= option to determine target_flags
6286 * config/score/score.opt (march=): Use Enum.
6287 (score_arch): New Enum and EnumValue entries.
6289 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6291 * config/mep/mep.c (option_mtiny_specified): Remove.
6292 (mep_option_override): Move register handling for -mivc2 from
6293 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
6294 instead of option_mtiny_specified.
6295 (mep_handle_option): Access target_flags via opts pointer. Don't
6296 assert that global structures are in use. Defer part of -mivc2
6297 handling and move it to mep_option_override.
6298 * config/mep/mep.opt (IVC2): New Mask entry.
6299 (mivc2): Use Var and Defer instead of Mask.
6301 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6303 * config/v850/v850-opts.h: New.
6304 * config/v850/v850.c (small_memory): Replace with
6305 small_memory_physical_max array. Make that array static const.
6306 (v850_handle_memory_option): Take integer value of argument. Take
6307 gcc_options pointer, option text and location. Return void.
6308 Update for changes to small memory structures.
6309 (v850_handle_option): Access target_flags via opts pointer. Don't
6310 assert that global structures are in use. Update calls to
6311 v850_handle_memory_option.
6312 (v850_encode_data_area): Update references to small memory settings.
6313 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
6314 (enum small_memory_type): Move to v850-opts.h.
6315 * config/v850/v850.opt (config/v850/v850-opts.h): New
6316 HeaderInclude entry.
6317 (small_memory_max): New Variable entry.
6318 (msda): Replace by pair of options msda= and msda-. Use UInteger.
6319 (mtda, mzda): Likewise.
6321 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6323 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
6324 pointer. Don't assert that global structures are in use.
6326 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6328 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
6329 via opts pointer. Don't assert that global structures are in use.
6331 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6333 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
6334 (munix=93): Use Var.
6335 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
6336 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
6337 * config/pa/pa-opts.h: New.
6338 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
6339 (pa_handle_option): Don't assert that global structures are in
6340 use. Access target_flags via opts pointer. Don't handle
6341 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
6343 (pa_option_override): Handle deferred OPT_mfixed_range_.
6345 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6347 * config/mn10300/mn10300-opts.h: New.
6348 * config/mn10300/mn10300.c (mn10300_processor,
6349 mn10300_tune_string): Remove.
6350 (mn10300_handle_option): Don't assert that global structures are
6351 in use. Access mn10300_processor via opts pointer. Don't handle
6353 * config/mn10300/mn10300.h (enum processor_type): Move to
6355 (mn10300_processor): Remove.
6356 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
6357 HeaderInclude entry.
6358 (mn10300_processor): New Variable entry.
6361 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6363 * config/microblaze/microblaze.c: Don't include opts.h.
6364 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
6365 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
6366 (mno-clearbss): Use Var and Warn.
6368 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6370 * config/m32r/m32r-opts.h: New.
6371 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
6372 (m32r_handle_option): Don't assert that global structures are in
6373 use. Access target_flags and m32r_cache_flush_func via opts
6374 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
6375 OPT_mno_flush_trap here.
6376 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
6377 include of m32r-opts.h.
6378 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
6379 HeaderInclude entry.
6380 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
6381 (mmodel=): Use Enum and Var.
6382 (m32r_model): New Enum and EnumValue entries.
6383 (mno-flush-trap): Use Var.
6384 (msdata=): Use Enum and Var.
6385 (m32r_sdata): New Enum and EnumValue entries.
6387 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6389 * config/m32c/m32c.c: Don't include opts.h.
6390 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
6391 m32c_handle_option): Remove.
6392 (m32c_option_override): Check global_options_set.x_target_memregs
6393 instead of target_memregs_set.
6394 * config/m32c/m32c.h (target_memregs): Remove.
6395 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
6398 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6400 * config/iq2000/iq2000-opts.h: New.
6401 * config/iq2000/iq2000.c: Don't include opts.h.
6402 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
6403 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
6404 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
6405 HeaderInclude entry.
6406 (iq2000_tune): New Variable entry.
6407 (march=): Add comment. Use Enum.
6408 (iq2000_arch): New Enum and EnumValue entries.
6409 (mcpu=): Use Enum and Var.
6410 (iq2000_tune): New Enum and EnumValue entries.
6412 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6414 * config/ia64/ia64-opts.h: New.
6415 * config/ia64/ia64.c (ia64_tune): Remove.
6416 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
6418 (ia64_option_override): Handle deferred OPT_mfixed_range_.
6419 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
6420 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
6421 HeaderInclude entry.
6422 (ia64_tune): New Variable entry.
6423 (mfixed-range=): Use Defer and Var.
6424 (mtune=): Use Enum and Var.
6425 (ia64_tune): New Enum and EnumValue entries.
6427 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6429 * config/frv/frv-opts.h: New.
6430 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
6432 (frv_cpu_type): Remove.
6433 * config/frv/frv.c: Don't include opts.h.
6434 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
6435 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
6436 (frv_cpu_type): New Variable entry.
6437 (frv_cpu): New Enum and EnumValue entries.
6439 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6441 * config/cris/cris.c (cris_handle_option): Access target_flags via
6442 opts pointer. Don't assert that global structures are in use.
6443 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
6444 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
6446 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6448 * config/bfin/bfin-opts.h: New.
6449 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
6450 bfin_si_revision, bfin_workarounds): Remove.
6451 (bfin_cpus): Make static const.
6452 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
6453 not bfin_lib_id_given.
6454 (bfin_handle_option): Don't set bfin_lib_id_given. Access
6455 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
6456 pointer. Use error_at. Don't assert that global structures are in use.
6457 * config/bfin/bfin.h: Include bfin-opts.h.
6458 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
6459 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
6460 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
6461 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
6464 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6466 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
6467 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
6468 or -msoft-float here.
6469 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
6470 -msoft-float and -mhard-float.
6471 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
6472 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6474 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
6476 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
6477 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
6479 (LIBGCC_SPEC): Don't handle -msoft-float.
6480 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
6482 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6484 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
6485 -mfloat-abi=*, not -msoft-float and -mhard-float.
6486 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
6488 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
6489 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
6490 mhard-float and msoft-float.
6491 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
6492 mfloat-abi=soft in comments, not mhard-float and msoft-float.
6493 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6494 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
6496 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
6497 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
6499 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
6501 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
6504 2011-03-22 Richard Henderson <rth@redhat.com>
6506 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
6507 TARGET_ABI_WINDOWS_NT.
6508 (alpha_output_function_end_prologue): Likewise.
6509 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
6510 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6511 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
6512 (trap, *movsi_nt_vms): Likewise.
6513 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
6514 (*tablejump_osf_nt_internal): Remove.
6515 * config/alpha/predicates.md (input_operand): Only test Pmode.
6517 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6519 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
6520 via opts pointer. Use error_at. Don't assert that global
6521 structures are in use.
6523 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6525 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
6526 (ix86_handle_option): Access ix86_isa_flags and
6527 ix86_isa_flags_explicit via opts pointer. Don't assert that
6528 global structures are in use.
6529 (ix86_function_specific_save, ix86_function_specific_restore):
6530 Update ix86_isa_flags_explicit field name.
6531 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
6532 (ix86_isa_flags_explicit): Rename TargetSave entry to
6533 x_ix86_isa_flags_explicit.
6535 2011-03-22 Richard Henderson <rth@redhat.com>
6537 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
6538 (alpha_option_override, direct_return): Likewise.
6539 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
6540 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
6541 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
6542 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6543 (alpha_expand_epilogue, alpha_end_function): Likewise.
6544 (alpha_init_libfuncs): Likewise.
6545 (struct machine_function): Remove unicosmk members.
6546 (print_operand) ['t']: Remove.
6547 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
6548 unicosmk_output_module_name, unicosmk_output_common,
6549 current_section_align, unicosmk_output_text_section_asm_op,
6550 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
6551 unicosmk_section_type_flags, unicosmk_unique_section,
6552 unicosmk_asm_named_section, unicosmk_insert_attributes,
6553 unicosmk_output_align, unicosmk_defer_case_vector,
6554 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
6555 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
6556 unicosmk_output_ssib, unicosmk_add_call_info_word,
6557 unicosmk_extern_head, unicosmk_output_default_externs,
6558 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
6559 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
6560 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
6561 * config/alpha/alpha-protos.h: Update.
6562 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
6563 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
6564 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
6565 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
6566 (*mulsi_se, mulvsi3): Likewise.
6567 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
6568 (*divmodsi_internal, call, call_value, realign): Likewise.
6569 (moddi3, umoddi3): Likewise; remove duplicate expander.
6570 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
6571 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
6572 (*movdi_nofix): Remove r/U alternative.
6573 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
6574 * config/alpha/constraints.md ("U"): Remove.
6575 * config/alpha/predicates.md (call_operand"): Don't test
6576 TARGET_ABI_UNICOSMK.
6578 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6580 * target.def (handle_option): Take gcc_options and
6581 cl_decoded_option pointers and location_t.
6582 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
6583 * doc/tm.texi: Regenerate.
6584 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
6585 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
6586 * lto-opts.c (lto_reissue_options): Generate option structure for
6587 targetm.handle_option call.
6588 * opts.c (target_handle_option): Update call to
6589 targetm.handle_option. Remove assertions about values now passed
6591 * targhooks.c (default_target_handle_option): New.
6592 * targhooks.h (default_target_handle_option): Declare.
6593 * config/alpha/alpha.c: Include opts.h.
6594 (alpha_handle_option): Update to new hook interface.
6595 * config/arm/arm.c: Include opts.h.
6596 (arm_handle_option): Update to new hook interface.
6597 * config/arm/t-arm (arm.o): Update dependencies.
6598 * config/bfin/bfin.c: Include opts.h.
6599 (bfin_handle_option): Update to new hook interface.
6600 * config/cris/cris.c: Include opts.h.
6601 (cris_handle_option): Update to new hook interface.
6602 * config/frv/frv.c: Include opts.h.
6603 (frv_handle_option): Update to new hook interface.
6604 * config/i386/i386.c: Include opts.h.
6605 (ix86_handle_option): Update to new hook interface.
6606 (ix86_valid_target_attribute_inner_p): Generate option structure
6607 for call to ix86_handle_option.
6608 * config/i386/t-i386 (i386.o): Update dependencies.
6609 * config/ia64/ia64.c: Include opts.h.
6610 (ia64_handle_option): Update to new hook interface.
6611 * config/ia64/t-ia64 (ia64.o): Update dependencies.
6612 * config/iq2000/iq2000.c: Include opts.h.
6613 (iq2000_handle_option): Update to new hook interface.
6614 * config/m32c/m32c.c: Include opts.h.
6615 (m32c_handle_option): Update to new hook interface.
6616 * config/m32r/m32r.c: Include opts.h.
6617 (m32r_handle_option): Update to new hook interface.
6618 * config/m68k/m68k.c: Include opts.h.
6619 (m68k_handle_option): Update to new hook interface.
6620 * config/mep/mep.c: Include opts.h.
6621 (mep_handle_option): Update to new hook interface.
6622 * config/microblaze/microblaze.c: Include opts.h.
6623 (microblaze_handle_option): Update to new hook interface.
6624 * config/mips/mips.c: Include opts.h.
6625 (mips_handle_option): Update to new hook interface.
6626 * config/mn10300/mn10300.c: Include opts.h.
6627 (mn10300_handle_option): Update to new hook interface.
6628 * config/pa/pa.c: Include opts.h.
6629 (pa_handle_option): Update to new hook interface.
6630 * config/pdp11/pdp11.c: Include opts.h.
6631 (pdp11_handle_option): Update to new hook interface.
6632 * config/rs6000/rs6000.c: Include opts.h.
6633 (rs6000_handle_option): Update to new hook interface.
6634 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6635 * config/rx/rx.c: Include opts.h.
6636 (rx_handle_option): Update to new hook interface.
6637 * config/s390/s390.c: Include opts.h.
6638 (s390_handle_option): Update to new hook interface.
6639 * config/score/score.c: Include opts.h.
6640 (score_handle_option): Update to new hook interface.
6641 * config/sh/sh.c: Include opts.h.
6642 (sh_handle_option): Update to new hook interface.
6643 * config/sparc/sparc.c: Include opts.h.
6644 (sparc_handle_option): Update to new hook interface.
6645 * config/v850/v850.c: Include opts.h.
6646 (v850_handle_option): Update to new hook interface.
6648 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6650 * gcc.c (driver_unknown_option_callback): Only permit and save
6651 unknown -Wno- options.
6652 (driver_wrong_lang_callback): Save options directly instead of via
6653 driver_unknown_option_callback.
6655 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6657 * combine.c (simplify_set): Try harder to find the best CC mode when
6658 simplifying a nested COMPARE on the RHS.
6660 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6662 * config/alpha/gnu.h: Remove.
6663 * config/arc: Remove directory.
6664 * config/arm/netbsd.h: Remove.
6665 * config/arm/t-pe: Remove.
6666 * config/crx: Remove directory.
6667 * config/i386/netbsd.h: Remove.
6668 * config/m68hc11: Remove directory.
6669 * config/m68k/uclinux-oldabi.h: Remove.
6670 * config/mcore/mcore-pe.h: Remove.
6671 * config/mcore/t-mcore-pe: Remove.
6672 * config/netbsd-aout.h: Remove.
6673 * config/rs6000/gnu.h: Remove.
6674 * config/sh/sh-symbian.h: Remove.
6675 * config/sh/symbian-base.c: Remove.
6676 * config/sh/symbian-c.c: Remove.
6677 * config/sh/symbian-cxx.c: Remove.
6678 * config/sh/symbian-post.h: Remove.
6679 * config/sh/symbian-pre.h: Remove.
6680 * config/sh/t-symbian: Remove.
6681 * config/svr3.h: Remove.
6682 * config/vax/netbsd.h: Remove.
6683 * config.build: Don't handle i[34567]86-*-pe.
6684 * config.gcc: Remove handling of deprecations for most deprecated
6686 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6687 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6688 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6689 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6690 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6691 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6693 * config.host: Don't handle i[34567]86-*-pe.
6694 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6695 (ASM_SPEC32): Don't handle -mcall-gnu.
6696 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6698 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6699 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6700 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6701 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6702 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6703 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6704 conditional on SYMBIAN.
6705 * configure.ac: Don't handle powerpc*-*-gnu*.
6706 * configure: Regenerate.
6707 * doc/extend.texi (interrupt attribute): Don't mention CRX.
6708 * doc/install-old.texi (m6811, m6812): Don't mention.
6709 * doc/install.texi (arc-*-elf*): Don't document multilib option.
6710 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6711 (m68k-uclinuxoldabi): Don't mention.
6712 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6714 (-mcall-gnu): Remove.
6715 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6716 families): Remove constraint documentation.
6718 2011-03-22 Marius Strobl <marius@FreeBSD.org>
6720 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6721 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6722 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6724 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6727 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
6728 vector when peeking at the next token for vector, don't expand the
6731 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
6733 * config/avr/avr-protos.h (expand_epilogue): Change prototype
6734 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6735 * config/avr/avr.c (init_cumulative_args)
6736 (avr_function_arg_advance): Use it.
6737 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6739 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6740 (avr_function_ok_for_sibcall): ...this new function.
6741 (avr_lookup_function_attribute1): New static Function.
6742 (avr_naked_function_p, interrupt_function_p)
6743 (signal_function_p, avr_OS_task_function_p)
6744 (avr_OS_main_function_p): Use it.
6745 * config/avr/avr.md ("sibcall", "sibcall_value")
6746 ("sibcall_epilogue"): New expander.
6747 ("*call_insn", "*call_value_insn"): New insn.
6748 ("call_insn", "call_value_insn"): Remove
6749 ("call", "call_value", "epilogue"): Change expander to handle
6752 2011-03-21 Nick Clifton <nickc@redhat.com>
6754 * doc/invoke.texi (Overall Options): Move closing brace to end of
6756 (Optimization Options): Add missing @gol.
6757 (Directory Options): Likewise.
6758 (i386 and x86-64 Options): Likewise.
6759 (RS6000 and PowerPC Options): Likewise.
6760 (i386 and x86-64 Windows Options): Likewise.
6761 (V850 Options): Add text missing from descriptions.
6763 2011-03-22 Richard Henderson <rth@redhat.com>
6765 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6766 (avr_incoming_return_addr_rtx): New.
6767 (emit_push_byte): New.
6768 (expand_prologue): Use it. Remove incorrect dwarf annotation for
6769 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
6770 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
6771 (emit_pop_byte): New.
6772 (expand_epilogue): Use it. Pop frame pointer by bytes.
6773 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6774 (INCOMING_RETURN_ADDR_RTX): New.
6775 (INCOMING_FRAME_SP_OFFSET): New.
6776 (ARG_POINTER_CFA_OFFSET): New.
6777 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6778 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6781 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6783 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6785 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6786 (FUNCTION_ARG_ADVANCE): Likewise.
6787 * tm.texi.in: Change references to them to hook references.
6788 * tm.texi: Regenerate.
6789 * targhooks.c (default_function_arg): Eliminate check for target
6791 (default_function_incoming_arg): Likewise.
6792 (default_function_arg_advance): Likewise.
6793 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6794 (function_arg_advance): Likewise.
6795 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6797 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6799 * tree.c (build_call_1): New function.
6800 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6802 2011-03-22 Richard Guenther <rguenther@suse.de>
6804 PR tree-optimization/48228
6805 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6806 for single-arg PHIs.
6808 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
6810 PR rtl-optimization/48143
6811 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6812 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6813 sse2_cvtps2pd): Likewise.
6815 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6817 * recog.c (canonicalize_change_group): Use validate_unshare_change.
6819 2011-03-22 Richard Guenther <rguenther@suse.de>
6821 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6822 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6823 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6824 and REALIGN_LOAD_EXPR.
6825 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6826 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6827 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6828 DOT_PROD_EXPR case ...
6829 (expand_expr_real_2): ... here.
6830 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6831 and REALIGN_LOAD_EXPR.
6832 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6833 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6834 (vect_create_epilog_for_reduction): Likewise.
6835 (vectorizable_reduction): Likewise.
6836 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6837 * tree-vect-stmts.c (vectorizable_load): Likewise.
6839 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6841 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6843 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6845 * config/s390/s390.c (s390_delegitimize_address): Fix offset
6846 handling for PLTOFF/GOTOFF.
6848 2011-03-22 Nick Clifton <nickc@redhat.com>
6850 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6851 trailing backslash from the end of the macro definition.
6853 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6855 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6858 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
6860 * expr.h (prepare_operand): Move to...
6861 * optabs.h (prepare_operand): ...here and change the insn code
6862 parameter from "int" to "enum insn_code".
6863 (insn_operand_matches): Declare.
6864 * expr.c (init_expr_target): Use insn_operand_matches.
6865 (compress_float_constant): Likewise.
6866 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6867 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6868 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6869 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6871 (gen_cond_trap): Likewise.
6872 (prepare_operand): Likewise. Change icode to an insn_code.
6873 (insn_operand_matches): New function.
6874 * reload.c (find_reloads_address_1): Use insn_operand_matches.
6875 * reload1.c (gen_reload): Likewise.
6876 * targhooks.c (default_secondary_reload): Likewise.
6878 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6880 * config/alpha/alpha.md (unspec): New define_c_enum.
6883 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6886 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6887 between a call and its CALL_ARG_LOCATION note.
6889 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
6891 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6893 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6897 * c-common.c (shorten_compare): If primopN is first sign-extended
6898 to opN and then zero-extended to result type, set primopN to opN.
6900 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6902 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6903 for barrier handlers.
6905 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6907 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6908 UNSPEC constants to be in the unspec enumeration, and redefine
6909 all UNSPECV constants to be in the unspecv enumeration, so that
6910 dumps print which unspec/unspec_volatile this is.
6911 * config/rs6000/vector.md (UNSPEC_*): Ditto.
6912 * config/rs6000/paired.md (UNSPEC_*): Ditto.
6913 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6914 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6915 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6917 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6918 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6919 UNSPECV_LWSYNC, since these are used as unspec_volatile.
6920 * config/rs6000/sync.md (isync, lwsync): Ditto.
6922 2011-03-21 Richard Guenther <rguenther@suse.de>
6924 * params.def (lto-min-partition): Fix typo.
6926 2011-03-21 Richard Guenther <rguenther@suse.de>
6929 * c-decl.c (grokdeclarator): Drop to the main variant only
6930 for array types. Drop flag_gen_aux_info check.
6932 2011-03-21 Richard Guenther <rguenther@suse.de>
6934 PR translation/47911
6935 * params.def (lto-partitions): Fix typo.
6936 (lto-min-partition): Fix wording.
6938 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
6940 * config/rs6000/t-freebsd: Remove duplication from file.
6942 2011-03-21 Richard Guenther <rguenther@suse.de>
6945 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6947 2011-03-21 Richard Guenther <rguenther@suse.de>
6950 * params.def (lto-partitions): Require at least 1 partition.
6952 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6954 * gthr-solaris.h: Remove.
6955 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6956 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6957 (LIB_SPEC): Likewise.
6958 * config/sol2.opt (threads): Remove.
6959 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6960 (sparc*-*-solaris2*): Likewise.
6961 * configure.ac (enable_threads): Enable solaris support.
6962 * configure: Regenerate.
6963 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6964 * doc/install.texi (Configuration, --enable-threads=lib): Remove
6967 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6969 * config.gcc: Obsolete *-*-solaris2.8*.
6970 * doc/install.texi (Specific, *-*-solaris2*): Document it.
6972 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6975 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6976 reference. Solaris 8 perl works.
6978 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6981 * doc/install.texi (Prerequisites): Move jar etc. up.
6982 Explain support library version requirements.
6984 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6987 * doc/install.texi (Prerequisites): Move Perl to build
6988 requirements. Always necessary on Solaris 2 with Sun ld.
6990 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6992 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6994 (Specific, i?86-*-solaris2.[89]): Likewise.
6995 (Specific, i?86-*-solaris2.10): Likewise.
6996 (Specific, mips-sgi-irix6): Likewise.
6997 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6998 Update for binutils 2.21.
7000 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7002 * configure.ac (gcc_cv_lto_plugin): Fix typo.
7003 Allow -fuse-linker-plugin for non-default plugin linker.
7004 * configure: Regenerate.
7006 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
7009 * gengtype.c (files_rules): Added rule for cp/parser.h.
7011 2011-03-21 Jakub Jelinek <jakub@redhat.com>
7014 * config/s390/s390.c (s390_delegitimize_address): Don't call
7015 lowpart_subreg if orig_x has BLKmode.
7017 2011-03-21 Kai Tietz <ktietz@redhat.com>
7020 * doc/plugins.texi: Adjust documentation for plugin register_callback.
7021 * tree.h (attribute_spec): Add new member affects_type_identity.
7022 * attribs.c (empty_attribute_table): Adjust attribute_spec
7024 * config/alpha/alpha.c: Likewise.
7025 * config/arc/arc.c: Likewise.
7026 * config/arm/arm.c: Likewise.
7027 * config/avr/avr.c: Likewise.
7028 * config/bfin/bfin.c: Likewise.
7029 * config/crx/crx.c: Likewise.
7030 * config/darwin.h: Likewise.
7031 * config/h8300/h8300.c: Likewise.
7032 * config/i386/cygming.h: Likewise.
7033 * config/i386/i386.c: Likewise.
7034 * config/ia64/ia64.c: Likewise.
7035 * config/m32c/m32c.c: Likewise.
7036 * config/m32r/m32r.c: Likewise.
7037 * config/m68hc11/m68hc11.c: Likewise.
7038 * config/m68k/m68k.c: Likewise.
7039 * config/mcore/mcore.c: Likewise.
7040 * config/mep/mep.c: Likewise.
7041 * config/microblaze/microblaze.c: Likewise.
7042 * config/mips/mips.c: Likewise.
7043 * config/rs6000/rs6000.c: Likewise.
7044 * config/rx/rx.c: Likewise.
7045 * config/sh/sh.c: Likewise.
7046 * config/sol2.h: Likewise.
7047 * config/sparc/sparc.c: Likewise.
7048 * config/spu/spu.c: Likewise.
7049 * config/stormy16/stormy16.c: Likewise.
7050 * config/v850/v850.c: Likewise.
7052 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
7054 * simplify-rtx.c (simplify_binary_operation_1): Handle
7055 (xor (and A B) C) case when B and C are both constants.
7057 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
7059 * tree-dfa.c (add_referenced_var): Fix typo in comment.
7061 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
7064 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
7066 2011-03-20 Jakub Jelinek <jakub@redhat.com>
7068 PR rtl-optimization/48156
7069 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
7070 assume df and df_lr are not NULL.
7072 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7075 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
7076 between a call and its CALL_ARG_LOCATION note.
7078 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
7081 * config/sh/sh.c (find_barrier): Don't emit a constant pool
7082 between a call and its corresponding CALL_ARG_LOCATION note.
7084 2011-03-19 Anatoly Sokolov <aesok@post.ru>
7086 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
7087 instead of loop. Use HARD_REGISTER_NUM_P predicate.
7088 * haifa-sched.c (setup_ref_regs): Ditto.
7089 * caller-save.c (add_used_regs_1): Ditto.
7090 * dse.c (look_for_hardregs): Ditto.
7091 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
7092 * sched-rgn.c (check_live_1): Ditto.
7094 2011-03-18 Joseph Myers <joseph@codesourcery.com>
7096 * c-decl.c (diagnose_mismatched_decls): Give an error for
7097 redefining a typedef with variably modified type.
7099 2011-03-18 Joseph Myers <joseph@codesourcery.com>
7101 * c-decl.c (grokfield): Don't allow typedefs for structures or
7102 unions with no tag by default.
7103 * doc/extend.texi (Unnamed Fields): Update.
7105 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
7107 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
7108 Rewrite using indirect functions.
7109 (lwp_slwpcb): Ditto.
7110 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
7111 (avx_vinsertf128<mode>): Ditto.
7113 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7115 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
7118 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7120 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
7121 splitting between a call and its corresponding CALL_ARG_LOCATION note.
7123 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
7125 PR rtl-optimization/48170
7126 * gcse.c (hoist_code): Remove bogus asserts.
7128 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
7130 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
7131 computation for prologue/epilogue.
7133 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7135 * Makefile.in (check-consistency): Remove.
7137 2011-03-18 Jakub Jelinek <jakub@redhat.com>
7140 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
7141 arange_table_in_use is 0, but either text_section_used or
7142 cold_text_section_used is true. Don't call it if
7143 !info_section_emitted.
7145 2011-03-18 Anatoly Sokolov <aesok@post.ru>
7147 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
7148 FUNCTION_VALUE_REGNO_P): Remove.
7149 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
7151 * config/avr/avr.c (avr_ret_register): Make static inline.
7152 (avr_function_value_regno_p): New function.
7153 (avr_libcall_value): Make static. Add 'func' argument.
7154 (avr_function_value): Make static. Rename 'func' argument to
7155 'fn_decl_or_type', forward it to avr_libcall_value. Call
7156 avr_ret_register function instead of RET_REGISTER macro.
7157 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7159 2011-03-18 Jason Merrill <jason@redhat.com>
7162 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
7164 2011-03-18 Richard Guenther <rguenther@suse.de>
7166 * doc/install.texi (--enable-gold): Remove.
7167 (--with-plugin-ld): Document.
7168 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
7170 2011-03-18 Andrew Pinski <pinskia@gmail.com>
7173 * expr.c (optimize_bitfield_assignment_op): Revamp to work
7174 again after expansion changes.
7176 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
7178 * combine.c (try_combine): Do simplification only call of
7179 subst() on i2 even when i1 is present. Update comments.
7181 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
7183 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
7184 and UNSPEC_PCREL_SYMOFF.
7186 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7188 * config/s390/s390.md: Use define_c_enum for the unspec constant
7191 2011-03-18 Richard Henderson <rth@redhat.com>
7192 Jakub Jelinek <jakub@redhat.com>
7195 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
7196 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
7198 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7201 * combine.c (cant_combine_insn_p): Don't check zero/sign
7202 extended hard registers.
7204 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7207 * combine.c (cant_combine_insn_p): Check zero/sign extended
7210 2011-03-17 Anatoly Sokolov <aesok@post.ru>
7212 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7213 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
7214 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
7215 Change return type to bool.
7216 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7218 2011-03-17 Jakub Jelinek <jakub@redhat.com>
7221 * var-tracking.c (prepare_call_arguments): If CALL target
7222 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
7223 pc instead of looking it up using cselib_lookup and use
7224 Pmode for it if x has VOIDmode.
7225 * dwarf2out.c (gen_subprogram_die): If also both first and
7226 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
7229 * function.c (assign_parms): For data.passed_pointer parms
7230 use MEM of data.entry_parm instead of data.entry_parm itself
7231 as DECL_INCOMING_RTL.
7232 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
7233 also when passed and declared mode is the same, DECL_RTL
7234 is a MEM with pseudo as address and DECL_INCOMING_RTL is
7237 2011-03-16 Jeff Law <law@redhat.com>
7239 PR rtl-optimization/37273
7240 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7241 handle them like argument loads from stack slots. Do not double
7242 count memory for memory constants and argument loads from stack slots.
7244 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7247 * var-tracking.c (prepare_call_arguments): Check SUBREG.
7249 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7252 * config/i386/i386.opt: Add Save to -mavx and -mfma.
7254 2011-03-17 Jakub Jelinek <jakub@redhat.com>
7257 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
7259 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
7260 Clear call_arg_locations and call_arg_loc_last always.
7263 * var-tracking.c (prepare_call_arguments): If argument needs to be
7264 passed by reference, adjust argtype and mode.
7266 2011-03-17 Richard Guenther <rguenther@suse.de>
7269 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
7270 a value make sure to fold the statement.
7272 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
7275 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
7276 return condition with !cfun->calls_alloca.
7278 2011-03-17 Richard Guenther <rguenther@suse.de>
7281 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7282 origin for decls in other ltrans units.
7283 (input_varpool_node): Likewise.
7285 2011-03-17 Richard Guenther <rguenther@suse.de>
7288 * tree-object-size.c (compute_object_offset): Properly return
7289 the offset operand of MEM_REFs as sizetype.
7291 2011-03-17 Jakub Jelinek <jakub@redhat.com>
7293 PR rtl-optimization/48141
7294 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
7295 * dse.c: Include params.h.
7296 (active_local_stores_len): New variable.
7297 (add_wild_read, dse_step1): Clear it when setting active_local_stores
7299 (record_store, check_mem_read_rtx): Decrease it when removing
7301 (scan_insn): Likewise. Increase it when adding to chain, if it
7302 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
7303 set active_local_stores to NULL before the addition.
7304 * Makefile.in (dse.o): Depend on $(PARAMS_H).
7306 PR rtl-optimization/48141
7307 * dse.c (record_store): If no positions are needed in an insn
7308 that cannot be deleted, at least unchain it from active_local_stores.
7310 2011-03-16 Dodji Seketeli <dodji@redhat.com>
7313 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
7314 (lookup_type_die_strip_naming_typedef): ... here.
7315 (get_context_die): Use it.
7316 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
7317 the anonymous struct named by the naming typedef.
7319 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
7322 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
7323 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7325 2011-03-16 Jeff Law <law@redhat.com>
7327 * tree-vrp.c (identify_jump_threads): Slightly simplify type
7328 check for operands of conditional. Allow type to be a pointer.
7330 2011-03-16 Richard Guenther <rguenther@suse.de>
7332 PR tree-optimization/48149
7333 * fold-const.c (fold_binary_loc): Fold
7334 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
7336 2011-03-16 Richard Guenther <rguenther@suse.de>
7338 PR tree-optimization/26134
7339 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
7340 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
7341 (non_rewritable_mem_ref_base): Handle complex type component
7342 accesses, constrain offsets for vector and complex extracts
7345 2011-03-16 Richard Guenther <rguenther@suse.de>
7347 PR tree-optimization/48146
7348 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
7349 operands avoiding the need for renaming.
7351 2011-03-16 Richard Guenther <rguenther@suse.de>
7353 * gimple-fold.c (maybe_fold_reference): Open-code relevant
7354 constant folding. Move MEM_REF canonicalization first.
7355 Rely on fold_const_aggregate_ref for initializer folding.
7356 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
7358 2011-03-16 Jakub Jelinek <jakub@redhat.com>
7361 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7362 arg0/arg1 or their arguments are always fold converted to matching
7365 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
7368 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7371 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
7372 Handle in-tree gold.
7373 (ld_vers): Extract binutils version for gold.
7374 (gcc_cv_ld_hidden): Handle gold here.
7375 (gcc_cv_lto_plugin): Determine level of linker plugin support.
7376 * configure: Regenerate.
7377 * config.in: Regenerate.
7378 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
7379 -fuse-linker-plugin otherwise.
7380 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
7381 (LINK_COMMAND_SPEC): Use it.
7382 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
7384 2011-03-16 Jakub Jelinek <jakub@redhat.com>
7386 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
7387 * calls.c: Remove debug.h include.
7388 (emit_call_1): Don't call virtual_call_token debug hook.
7389 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
7390 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
7391 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
7392 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
7393 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
7394 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
7395 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
7396 dwarf2out_virtual_call): Remove.
7397 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
7398 copy_call_info and virtual_call hooks.
7399 (dwarf2out_init): Don't initialize vcall_insn_table,
7400 debug_dcall_section and debug_vcall_section.
7401 (prune_unused_types): Don't mark nodes from dcall_table.
7402 (dwarf2out_finish): Don't output dcall or vcall tables.
7403 * final.c (final_scan_insn): Don't call direct_call or
7404 virtual_call debug hooks.
7405 * debug.h (struct gcc_debug_hooks): Remove direct_call,
7406 virtual_call_token, copy_call_info and virtual_call hooks.
7407 (debug_nothing_uid): Remove prototype.
7408 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
7409 copy_call_info and virtual_call hooks.
7410 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7411 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
7412 * debug.c (do_nothing_debug_hooks): Likewise.
7413 (debug_nothing_uid): Remove.
7414 * doc/invoke.texi (-fenable-icf-debug): Remove.
7415 * common.opt (-fenable-icf-debug): Likewise.
7417 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
7418 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
7419 call's MEM. Handle functions returning aggregate through a hidden
7420 first pointer. For virtual calls add clobbered pc to call arguments
7422 * dwarf2out.c (gen_subprogram_die): Emit
7423 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
7427 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
7428 * rtl.h (ENTRY_VALUE_EXP): Define.
7429 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
7430 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7431 * print-rtl.c (print_rtx): Likewise.
7432 * gengtype.c (adjust_field_rtx_def): Likewise.
7433 * var-tracking.c (vt_add_function_parameter): Adjust
7434 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
7435 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
7436 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
7437 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
7438 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
7440 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
7441 Call var_location debug hook even on CALL_INSNs.
7442 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
7443 * rtl.def (ENTRY_VALUE): New.
7444 * dwarf2out.c: Include cfglayout.h.
7445 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7446 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
7447 (struct call_arg_loc_node): New type.
7448 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
7449 tail_call_site_count): New variables.
7450 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
7451 DW_TAG_GNU_call_site_parameter.
7452 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
7453 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
7454 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
7455 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
7456 and DW_AT_GNU_all_source_call_sites.
7457 (mem_loc_descriptor): Handle ENTRY_VALUE.
7458 (add_src_coords_attributes): Don't add enything if
7459 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
7460 (dwarf2out_abstract_function): Save and clear call_arg_location,
7461 call_site_count and tail_call_site_count around dwarf2out_decl call.
7462 (gen_call_site_die): New function.
7463 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
7464 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
7465 (dwarf2out_function_decl): Clear call_arg_locations,
7466 call_arg_loc_last, set call_site_count and tail_call_site_count
7467 to -1 and free block_map.
7468 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
7469 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
7470 followed by any real instructions.
7471 (dwarf2out_begin_function): Set call_site_count and
7472 tail_call_site_count to 0.
7473 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
7474 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
7475 attempt to force a DIE for it and worst case remove the attribute.
7476 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
7477 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
7479 * var-tracking.c: Include tm_p.h.
7480 (vt_stack_adjustments): For calls call note_register_arguments.
7481 (argument_reg_set): New variable.
7482 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
7483 ensure the VALUE is resolved.
7484 (call_arguments): New variable.
7485 (prepare_call_arguments): New function.
7486 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
7487 (struct expand_loc_callback_data): Add ignore_cur_loc field.
7488 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
7489 always use the best expression.
7490 (vt_expand_loc): Add ignore_cur_loc argument.
7491 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
7492 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
7493 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
7495 (vt_add_function_parameter): Use cselib_lookup_from_insn.
7496 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
7497 argument. Don't call cselib_preserve_only_values and
7499 (note_register_arguments): New function.
7500 (vt_initialize): Compute argument_reg_set. Call
7501 vt_add_function_parameters before processing basic blocks instead of
7502 afterwards. For calls call prepare_call_arguments before calling
7503 cselib_process_insn.
7504 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
7505 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
7506 (var-tracking.o): Depend on $(TM_P_H).
7507 * cfglayout.h (insn_scope): New prototype.
7508 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
7509 * cfglayout.c (insn_scope): No longer static.
7510 * insn-notes.def (CALL_ARG_LOCATION): New.
7511 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
7512 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
7513 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
7514 nothing for DECL_EXTERNAL BLOCK_VARS.
7516 2011-03-16 Alan Modra <amodra@gmail.com>
7519 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
7520 create invalid offset address for vsx splat insn.
7521 * config/rs6000/predicates.md (splat_input_operand): New.
7522 * config/rs6000/vsx.md (vsx_splat_*): Use it.
7524 2011-03-15 Xinliang David Li <davidxl@google.com>
7527 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
7528 (normalize_preds): New function.
7529 (is_use_properly_guarded): Normalize def predicates.
7531 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7534 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
7535 in the output template.
7537 2011-03-15 Richard Guenther <rguenther@suse.de>
7540 * tree-pretty-print.c (dump_function_declaration): Properly
7541 dump unprototyped and varargs function types.
7543 2011-03-15 Richard Guenther <rguenther@suse.de>
7545 PR tree-optimization/13954
7546 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
7549 2011-03-15 Richard Guenther <rguenther@suse.de>
7551 PR tree-optimization/48037
7552 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
7553 selects into BIT_FIELD_REFs.
7554 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
7557 2011-03-15 Jakub Jelinek <jakub@redhat.com>
7559 PR tree-optimization/48129
7560 * builtins.c (fold_builtin_snprintf): Convert to type of
7561 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
7562 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
7564 2011-03-15 Richard Guenther <rguenther@suse.de>
7566 PR tree-optimization/41490
7567 * tree-ssa-dce.c (propagate_necessity): Handle returns without
7568 value but with VUSE.
7569 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
7571 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
7572 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
7573 * tree-tailcall.c (find_tail_calls): Ignore returns.
7575 2011-03-15 Richard Guenther <rguenther@suse.de>
7578 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
7579 or variable-indexed array accesses when in gimple form.
7581 2011-03-15 Richard Guenther <rguenther@suse.de>
7583 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
7585 2011-03-15 Alan Modra <amodra@gmail.com>
7588 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
7589 presume symbol_refs without a symbol_ref_decl are suitably
7590 aligned, nor other trees we may see here. Handle anchor symbols.
7591 (legitimate_constant_pool_address_p): Comment. Add mode param.
7592 Check cmodel=medium addresses. Adjust all calls.
7593 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
7594 creating cmodel=medium optimized access to locals.
7595 * config/rs6000/constraints.md (R): Pass QImode to
7596 legitimate_constant_pool_address_p.
7597 * config/rs6000/predicates.md (input_operand): Pass mode to
7598 legitimate_constant_pool_address_p.
7599 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
7602 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7605 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
7606 64-bit constants being loaded into registers other than GPRs such
7607 as loading 0 into a VSX register.
7609 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7611 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
7613 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7616 * builtins.c (fold_builtin_snprintf): New function.
7617 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
7618 (fold_builtin_4): Likewise.
7621 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7622 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
7623 and C - X == X also strip nops from +/-/p+ operand.
7624 When optimizing -X == C, fold C to arg0's type.
7627 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7628 emit it as add_AT_int instead of add_AT_unsigned.
7630 2011-03-14 Tom Tromey <tromey@redhat.com>
7632 * unwind-dw2.c: Include sys/sdt.h if it exists.
7633 (_Unwind_DebugHook): Use STAP_PROBE2.
7634 * config.in, configure: Rebuild.
7635 * configure.ac: Check for sys/sdt.h.
7637 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
7639 * config/i386/i386.md (ROUND_FLOOR): New constant.
7640 (ROUND_CEIL): Ditto.
7641 (ROUND_TRUNC): Ditto.
7642 (ROUND_MXCSR): Ditto.
7643 (ROUND_NO_EXC): Ditto.
7644 (rint<mode>2): Use new defines instead of numerical constants.
7645 (floor<mode>2): Ditto.
7646 (ceil<mode>2): Ditto.
7647 (btrunc<mode>2): Ditto.
7648 * config/i386/i386-builtin-types.def: Define ROUND function type
7650 * config/i386/i386.c (enum ix86_builtins): Add
7651 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7652 (struct builtin_description): Add
7653 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7654 (ix86_expand_sse_round): New static function.
7655 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7657 (ix86_builtin_vectorized_function): Handle
7658 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7660 2011-03-14 Tom Tromey <tromey@redhat.com>
7662 * c-parser.c (c_parser_asm_string_literal): Clear
7663 warn_overlength_strings.
7665 2011-03-14 Tom Tromey <tromey@redhat.com>
7667 * c-parser.c (disable_extension_diagnostics): Save
7668 warn_overlength_strings.
7669 (restore_extension_diagnostics): Restore warn_overlength_strings.
7671 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7673 * BASE-VER: Change to 4.7.0.
7675 2011-03-14 Richard Guenther <rguenther@suse.de>
7678 * tree.c (build_vector_from_val): Adjust assert to requirements
7681 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7684 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7686 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
7688 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7689 terms of target_flags_explicit. Adjust copyright year.
7691 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7692 * config/rs6000/t-freebsd: New file. Add override for
7695 2011-03-13 Chris Demetriou <cgd@google.com>
7697 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7698 (-fno-diagnostics-show-option): this, to reflect current default.
7699 (-Werror=): Update text about -fno-diagnostics-show-option.
7701 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
7704 * config/rs6000/predicates.md (easy_vector_constant_add_self,
7705 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7706 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7707 mode is not V2DImode or V2DFmode.
7708 (vspltis_constant): Do not handle V2DImode and V2DFmode.
7709 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7710 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7712 (movdi_internal64): Likewise.
7714 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
7716 PR tree-optimization/47127
7717 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7719 (set_cloog_options): Same.
7720 (scop_to_clast): Same.
7721 (print_clast_stmt): Do not call cloog_state_malloc and
7723 (print_generated_program): Same.
7725 * graphite-clast-to-gimple.h (cloog_state): Declared.
7726 (scop_to_clast): Adjust declaration.
7727 * graphite.c (cloog_state): Defined here.
7728 (graphite_initialize): Call cloog_state_malloc.
7729 (graphite_finalize): Call cloog_state_free.
7731 2011-03-11 Jason Merrill <jason@redhat.com>
7733 * attribs.c (lookup_attribute_spec): Take const_tree.
7736 2011-03-11 Joseph Myers <joseph@codesourcery.com>
7738 * config/sparc/sparc.c (sparc_option_override): Use
7739 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7741 2011-03-11 Richard Guenther <rguenther@suse.de>
7743 PR tree-optimization/48067
7744 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7745 multiplication result will be only used once on the target
7748 2011-03-11 Richard Guenther <rguenther@suse.de>
7750 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7752 2011-03-11 Richard Guenther <rguenther@suse.de>
7755 * tree.c (find_decls_types_r): Do not walk types only reachable
7756 from IDENTIFIER_NODEs.
7758 2011-03-11 Jakub Jelinek <jakub@redhat.com>
7761 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7762 all vnode->force_output nodes as needed.
7764 2011-03-11 Jason Merrill <jason@redhat.com>
7767 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7768 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7770 2011-03-11 Martin Jambor <mjambor@suse.cz>
7772 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7775 2011-03-11 Jakub Jelinek <jakub@redhat.com>
7777 PR tree-optimization/48063
7778 * ipa-inline.c (cgraph_decide_inlining): Don't try to
7779 inline functions called once if !tree_can_inline_p (node->callers).
7781 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
7783 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7785 * config/score/score3.c: Delete.
7786 * config/score/score3.h: Delete.
7787 * config/score/mul-div.S: Delete.
7788 * config/score/sfp-machine.h: Add new file.
7789 * config/score/constraints.md: Add new file.
7790 * config/score/t-score-softfp: Add new file.
7791 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7792 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7793 (score7_extra_constraint): Delete.
7794 (score7_option_override): Remove unused code.
7795 * config/score/score.c: Remove score3 and score5 define and code.
7796 * config/score/score.h: Remove score3 and score5 define and code.
7797 * config/score/score.md: Remove score3 template and unusual insn.
7798 * config/score/score.opt: Remove score3 and score5 options.
7800 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7802 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7803 when _HPUX_SOURCE is defined.
7804 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7806 2011-03-10 Jason Merrill <jason@redhat.com>
7809 * stor-layout.c (layout_type): Don't set structural equality
7810 on arrays of incomplete type.
7811 * tree.c (type_hash_eq): Handle comparing them properly.
7813 2011-03-10 Jakub Jelinek <jakub@redhat.com>
7816 * config/s390/s390.c (s390_delegitimize_address): Make sure the
7817 result mode matches original rtl mode.
7819 2011-03-10 Nick Clifton <nickc@redhat.com>
7821 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7822 (andsi3, andsi3_flags): Fix timings for three operand alternative.
7824 2011-03-09 Jakub Jelinek <jakub@redhat.com>
7826 PR rtl-optimization/47866
7827 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7828 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7829 if target wasn't scalar.
7830 * function.c (assign_stack_temp_for_type): Assert that neither
7831 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7832 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7834 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7836 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7838 * config/s390/s390-protos.h (s390_label_align): New prototype.
7839 * config/s390/s390.c (s390_label_align): New function.
7840 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7842 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7845 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7846 V2DI/V2DF constants. Only all 0's or all 1's are easy.
7847 (output_vec_const_move): Ditto.
7849 2011-03-08 Anatoly Sokolov <aesok@post.ru>
7851 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7852 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7853 * config/mips/mips.c (mips_preferred_reload_class): Make static.
7854 Change 'rclass' argument and result type to reg_class_t.
7855 (TARGET_PREFERRED_RELOAD_CLASS): Define.
7857 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
7859 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7860 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7861 (TARGET_MEMORY_MOVE_COST): Define.
7862 (avr_register_move_cost, avr_memory_move_cost): New Functions.
7864 2011-03-08 Jakub Jelinek <jakub@redhat.com>
7867 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7870 PR tree-optimization/48022
7871 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7874 2011-03-07 Jakub Jelinek <jakub@redhat.com>
7877 * var-tracking.c (find_use_val): Return NULL for
7878 cui->sets && cui->store_p BLKmode MEMs.
7880 2011-03-07 Anatoly Sokolov <aesok@post.ru>
7882 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7884 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7885 xstormy16_print_operand_address): Remove.
7886 * config/stormy16/stormy16.c (xstormy16_print_operand,
7887 xstormy16_print_operand_address): Make static.
7888 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7890 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
7893 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7894 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7897 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
7900 * cfgloopmanip.c (fix_bb_placements): Return immediately
7901 if FROM is BASE_LOOP's header.
7903 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
7905 * gimplify.c (gimplify_function_tree): Fix building calls
7906 to __builtin_return_address.
7908 2011-03-07 Alan Modra <amodra@gmail.com>
7910 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7911 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7912 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7913 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7915 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7916 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7917 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7918 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7919 * config/rs6000/rs6000.c
7920 (rs6000_elf_end_indicate_exec_stack): Rename to..
7921 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
7922 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
7923 (rs6000_file_start): ..here.
7924 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7925 file scope variables.
7926 (call_ABI_of_interest): New function.
7927 (init_cumulative_args): Set above vars when function return value
7928 is a float, vector, or small struct.
7929 (rs6000_function_arg_advance_1): Likewise for function args.
7930 (rs6000_va_start): Set rs6000_passes_float if variable arg function
7931 references float args.
7933 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
7935 * doc/cfg.texi: Remove "See" before @ref.
7936 * doc/invoke.texi: Likewise.
7938 2011-03-05 Jason Merrill <jason@redhat.com>
7940 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7942 2011-03-05 Anthony Green <green@moxielogic.com>
7944 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7946 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
7948 PR rtl-optimization/47899
7949 * cfgloopmanip.c (fix_bb_placements): Fix first argument
7950 to flow_loop_nested_p when moving the loop upward.
7952 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
7955 * arm.md (movhi_insn_arch4): Accept any immediate constant.
7957 2011-03-05 Jakub Jelinek <jakub@redhat.com>
7959 PR tree-optimization/47967
7960 * ipa-cp.c (build_const_val): Return NULL instead of creating
7961 VIEW_CONVERT_EXPR for mismatching sizes.
7962 (ipcp_create_replace_map): Return NULL if build_const_val failed.
7963 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7964 give up on versioning.
7966 2011-03-05 Alan Modra <amodra@gmail.com>
7969 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7970 full cmodel medium/large lo_sum + high addresses.
7972 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7974 * config/s390/s390.c (s390_decompose_address): Reject non-literal
7975 pool references in UNSPEC_LTREL_OFFSET.
7977 2011-03-04 Jan Hubicka <jh@suse.cz>
7980 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7981 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7982 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7984 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7985 cgraph_add_thunk): Add node pointers.
7986 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7987 associated to right node.
7988 (input_node): Update use of cgraph_same_body_alias
7989 and cgraph_add_thunk.
7991 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
7993 * config/i386/i386.opt (mprefer-avx128): New flag.
7994 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7995 modes when the flag -mprefer-avx128 is on.
7997 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
7999 * dwarf2out.c (compare_loc_operands): Fix address handling.
8001 2011-03-04 Alan Modra <amodra@gmail.com>
8003 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
8005 2011-03-04 Richard Guenther <rguenther@suse.de>
8008 * expmed.c (extract_bit_field_1): Prefer vector modes that
8009 vec_extract patterns can handle.
8011 2011-03-04 Richard Guenther <rguenther@suse.de>
8014 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
8016 2011-03-04 Richard Henderson <rth@redhat.com>
8018 * explow.c (emit_stack_save): Remove 'after' parameter.
8019 (emit_stack_restore): Likewise.
8020 * expr.h: Update to match.
8021 * builtins.c, calls.c, stmt.c: Likewise.
8022 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
8023 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
8024 * function.c (expand_function_end): Insert the emit_stack_save
8025 sequence before parm_birth_insn instead of after.
8027 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
8029 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
8030 (ssse3_pmaddubsw128): Ditto.
8031 (ssse3_pmaddubsw): Ditto.
8033 2011-03-03 Steve Ellcey <sje@cup.hp.com>
8035 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
8037 2011-03-03 Jakub Jelinek <jakub@redhat.com>
8040 * gimplify.c (omp_add_variable): Only call omp_notice_variable
8041 on TYPE_SIZE_UNIT if it is a DECL.
8044 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
8045 first operand is not is_gimple_mem_ref_addr, try to fold it.
8046 If the operand still isn't is_gimple_mem_ref_addr, clear
8049 2011-03-03 Richard Guenther <rguenther@suse.de>
8052 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
8054 (refs_may_alias_p_1): For release branches return true if
8055 we are confused by our input.
8057 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8059 * config/s390/s390.c (s390_function_value): Rename to ...
8060 (s390_function_and_libcall_value): ... this.
8061 (s390_function_value): New function.
8062 (s390_libcall_value): New function.
8063 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
8064 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
8065 target macro definitions.
8066 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
8068 2011-03-02 Joseph Myers <joseph@codesourcery.com>
8070 * config/i386/freebsd64.h (CC1_SPEC): Define.
8071 * config/i386/linux64.h (CC1_SPEC): Define.
8072 * config/i386/x86-64.h (CC1_SPEC): Don't define.
8074 2011-03-02 Anatoly Sokolov <aesok@post.ru>
8076 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8078 * config/stormy16/stormy16.c: Include reload.h.
8079 (xstormy16_memory_move_cost): New function.
8080 (TARGET_MEMORY_MOVE_COST): Define.
8082 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
8084 PR rtl-optimization/47925
8085 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
8086 with side effects. Remove the more-specific check for volatile asms.
8088 2011-03-02 Alan Modra <amodra@gmail.com>
8091 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
8092 toc relative addresses for valid offsets.
8094 2011-03-01 Richard Guenther <rguenther@suse.de>
8096 PR tree-optimization/47890
8097 * tree-vect-loop.c (get_initial_def_for_induction): Set
8098 related stmt properly.
8100 2011-03-01 Richard Guenther <rguenther@suse.de>
8103 * lto-streamer.c (lto_record_common_node): Also register
8106 2011-03-01 Richard Guenther <rguenther@suse.de>
8109 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8110 Do not stream DECL_ABSTRACT_ORIGIN.
8111 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
8112 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
8113 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8114 Do not stream DECL_ABSTRACT_ORIGIN.
8115 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
8116 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
8118 2011-02-28 Anatoly Sokolov <aesok@post.ru>
8120 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
8121 FUNCTION_VALUE_REGNO_P): Remove.
8122 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
8123 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
8124 Add 'outgoing' argument.
8125 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
8127 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8128 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8130 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
8133 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
8134 (lookup_filename): Likewise.
8135 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
8137 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
8138 Jakub Jelinek <jakub@redhat.com>
8141 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
8142 (assign_stack_local_1): Change last argument type to int.
8143 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
8144 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
8145 don't record padding space into frame_space_list nor use those areas.
8146 (assign_stack_local): Adjust caller.
8147 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
8148 of assign_stack_local, pass 0 as last argument.
8149 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
8152 2011-02-28 Jakub Jelinek <jakub@redhat.com>
8155 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
8156 Use target address_mode and pointer_mode hooks instead of hardcoded
8157 Pmode and ptr_mode. Handle some simple cases of extending if
8158 POINTERS_EXTEND_UNSIGNED < 0.
8159 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
8160 Call convert_debug_memory_address.
8161 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
8162 convert_debug_memory_address.
8165 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
8166 * configure: Regenerated.
8167 * config.in: Regenerated.
8168 * varasm.c (default_function_section): Return NULL
8169 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
8171 2011-02-28 Martin Jambor <mjambor@suse.cz>
8173 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
8174 the description to match the printed values.
8176 2011-02-28 Richard Guenther <rguenther@suse.de>
8178 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
8179 of the copied scope tree.
8181 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8183 * doc/extend.texi (Function Attributes): Avoid deeply (and
8184 wrongly) nested tables.
8186 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8189 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
8190 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
8191 r isn't op0 nor op1.
8193 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
8195 * config/avr/avr.md: Remove magic comment for emacs.
8197 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
8200 * config/avr/avr.c (avr_option_override): Use error on bad options.
8201 (avr_help): New function.
8202 (TARGET_HELP): Define.
8204 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
8207 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
8208 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
8210 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
8212 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
8213 (ARM Options): Ditto.
8214 (i386 and x86-64 Options): Ditto.
8215 (RX Options): Ditto.
8216 (SPARC Options): Ditto.
8218 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
8220 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
8221 FreeBSD 6 and later. Generally use cpu generic.
8223 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
8225 * doc/cpp.texi: Update copyright years.
8227 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
8230 * config/lm32/lm32.md (ashrsi3): Added needed variable.
8232 2011-02-25 Jon Beniston <jon@beniston.com>
8235 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
8236 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
8237 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
8238 (lm32_block_move_inline): Add type cast to remove warning.
8239 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
8240 (gen_int_relational): Move declarations to start of function.
8242 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
8244 PR tree-optimization/45470
8245 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
8246 can throw internally only.
8247 * tree-vect-stmts.c (vectorizable_call): Likewise.
8249 2011-02-24 Anatoly Sokolov <aesok@post.ru>
8251 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
8252 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8253 * config/stormy16/stormy16-protos.h
8254 (xstormy16_preferred_reload_class): Remove.
8255 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
8256 static. Change 'rclass' argument and return type to reg_class_t.
8257 (TARGET_PREFERRED_RELOAD_CLASS,
8258 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8260 2011-02-24 Richard Guenther <rguenther@suse.de>
8262 * lto-streamer-in.c (input_bb): Do not find referenced vars
8263 in debug statements.
8265 2011-02-23 Jason Merrill <jason@redhat.com>
8267 * common.opt (fabi-version): Document v5 and v6.
8269 2011-02-23 Richard Guenther <rguenther@suse.de>
8271 PR tree-optimization/47849
8272 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
8274 2011-02-23 Jie Zhang <jie@codesourcery.com>
8276 * opts-common.c (decode_cmdline_option): Print empty string
8277 argument as "" in decoded->orig_option_with_args_text.
8278 * gcc.c (execute): Print empty string argument as ""
8279 in the verbose output.
8280 (do_spec_1): Keep empty string argument.
8282 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
8284 * config.gcc: Declare score-* and crx-* obsolete.
8286 2011-02-23 Jie Zhang <jie@codesourcery.com>
8288 PR rtl-optimization/47763
8289 * web.c (web_main): Ignore naked clobber when replacing register.
8291 2011-02-22 Anatoly Sokolov <aesok@post.ru>
8293 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8296 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
8299 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
8301 2011-02-22 Mike Stump <mikestump@comcast.net>
8303 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
8305 * configure: Regenerate.
8307 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
8309 PR rtl-optimization/46002
8310 * ira-color.c (update_copy_costs): Change class intersection
8311 test to reg_class_contents[] test of 'hard_regno'.
8313 2011-02-21 Joseph Myers <joseph@codesourcery.com>
8315 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
8317 * config/hpux11.opt (mt): Likewise.
8318 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
8319 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
8320 * config/vax/elf.opt (mno-asm-pic): Likewise.
8321 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
8323 2011-02-21 Mike Stump <mikestump@comcast.net>
8326 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
8327 tree so we can get save the type.
8328 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
8329 for CFString instead of trying to use past the end of the builtins.
8330 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
8331 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
8332 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
8333 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
8334 Rename to darwin_builtin_cfstring.
8335 (darwin_init_cfstring_builtins): Return the built type.
8337 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
8340 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
8341 (_mm256_insert_epi64): Use _mm_insert_epi64.
8343 2011-02-21 Anatoly Sokolov <aesok@post.ru>
8345 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8346 * config/stormy16/stormy16-protos.h
8347 (xstormy16_mode_dependent_address_p): Remove.
8348 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
8349 Make static. Change return type to bool. Change argument type to
8350 const_rtx. Remove dead code.
8351 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8353 2011-02-21 Richard Guenther <rguenther@suse.de>
8356 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8357 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
8358 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
8360 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8361 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
8363 2011-02-20 Richard Guenther <rguenther@suse.de>
8366 * tree.c (free_lang_data_in_decl): Clean builtins from
8367 the TU decl BLOCK_VARS.
8369 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
8373 * haifa-sched.c (fix_tick_ready): Skip tick computation
8376 2011-02-19 Richard Guenther <rguenther@suse.de>
8379 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
8380 Remove lazy BLOCK_VARS streaming.
8381 (lto_input_ts_block_tree_pointers): Likewise.
8382 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
8384 2011-02-19 Joseph Myers <joseph@codesourcery.com>
8386 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
8388 2011-02-19 Joseph Myers <joseph@codesourcery.com>
8390 * config/i386/biarch32.h, config/i386/mach.h,
8391 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
8393 2011-02-19 Jakub Jelinek <jakub@redhat.com>
8396 * config/i386/i386.md (peephole2 for shift and plus): Use
8397 operands[1] original mode in the first insn.
8399 2011-02-18 Mike Stump <mikestump@comcast.net>
8401 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8403 2011-02-18 Jan Hubicka <jh@suse.cz>
8406 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
8407 to zero when the function is not inlinable at all.
8409 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8411 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
8412 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8413 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
8414 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
8415 * config/pa/t-pa64: Likewise.
8416 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8418 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8421 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
8423 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8426 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
8428 2011-02-18 Anatoly Sokolov <aesok@post.ru>
8430 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8431 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
8432 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
8433 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8434 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
8435 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
8436 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
8437 m32r_load_postinc_p, m32r_store_preinc_predec_p,
8438 m32r_legitimate_address_p): New functions.
8439 * config/m32r/constraints.md (constraint "S"): Don't use
8440 STORE_PREINC_PREDEC_P.
8441 (constraint "U"): Don't use LOAD_POSTINC_P.
8443 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
8445 PR rtl-optimization/46178
8446 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
8447 compute ira_hard_regno_cover_class[].
8449 2011-02-18 Richard Guenther <rguenther@suse.de>
8452 * lto-streamer.h (lto_global_var_decls): Declare.
8453 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
8454 statics for global var processing.
8456 2011-02-18 Richard Guenther <rguenther@suse.de>
8458 PR tree-optimization/47737
8459 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
8460 edge dominance check.
8462 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8465 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
8466 avoid invalid rtx sharing.
8468 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
8470 * doc/cpp.texi (Obsolete Features): Add background on the
8471 origin of assertions.
8473 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
8475 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
8477 * config/darwin.c (output_objc_section_asm_op): Added support for
8479 (is_objc_metadata): New.
8480 (darwin_objc2_section): New.
8481 (darwin_objc1_section): New.
8482 (machopic_select_section): Added support for ABI v1 and v2.
8483 (darwin_emit_objc_zeroed): New.
8484 (darwin_output_aligned_bss): Detect objc metadata and treat it
8486 (darwin_asm_output_aligned_decl_common): Same.
8487 (darwin_asm_output_aligned_decl_local): Same.
8488 * config/darwin-sections.def: Updated for ABI v1 and v2.
8489 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
8490 compiling Objective-C code for the NeXT runtime, default to using
8491 ABI version 0 for 32-bit, and version 2 for 64-bit.
8493 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8495 * common.opt (optimize_fast): New Variable.
8496 * opts.c (default_options_optimization): Use opts->x_optimize_fast
8497 instead of local variable ofast.
8499 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
8501 * doc/invoke.texi (fobjc-abi-version): Documented.
8502 (fobjc-nilcheck): Documented.
8503 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
8506 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8509 * common.opt (export-dynamic): New Driver option.
8510 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
8512 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8514 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
8516 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
8517 Jan Hubicka <jh@suse.cz>
8521 * cfgexpand.c (account_used_vars_for_block): Remove.
8522 (estimated_stack_frame_size): Use referenced vars.
8523 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
8524 that were referenced in the original function. Test src_fn
8525 rather than cfun. Drop redundant get_var_ann.
8526 (setup_one_parameter): Drop redundant get_var_ann.
8527 (declare_return_variable): Likewise.
8528 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
8529 (copy_arguments_for_versioning): Drop redundant get_var_ann.
8530 * ipa-inline.c (compute_inline_parameters): Do not compute
8531 disregard_inline_limits here.
8532 (compute_inlinable_for_current, pass_inlinable): New.
8533 (pass_inline_parameters): Require PROP_referenced_vars.
8534 * cgraphunit.c (cgraph_process_new_functions): Don't run
8535 compute_inline_parameters explicitly unless function is in SSA form.
8536 (cgraph_analyze_function): Set .disregard_inline_limits.
8537 * tree-sra.c (convert_callers): Compute inliner parameters
8538 only for functions already in SSA form.
8540 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8542 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
8543 -mlittle-endian-data.
8545 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8547 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
8548 -mno-fpu, not -fpu and -no-fpu.
8549 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
8550 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
8552 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
8555 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
8556 input reload with PLUS RTX.
8558 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8560 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
8561 of InverseVar(MDMX).
8563 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8565 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
8568 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8570 * config/mn10300/mn10300.opt (mno-crt0): New.
8572 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8574 * config/m68k/uclinux.opt (static-libc): New Driver option.
8576 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8578 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
8580 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8582 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
8583 %{muser-extend-enabled}.
8585 2011-02-16 Richard Guenther <rguenther@suse.de>
8587 PR tree-optimization/47738
8588 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
8589 the TODO from tree_predictive_commoning.
8591 2011-02-15 Jeff Law <law@redhat.com>
8594 2011-01-25 Jeff Law <law@redhat.com>
8596 PR rtl-optimization/37273
8597 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8598 handle them like argument loads from stack slots. Do not double
8599 count memory for memory constants and argument loads from stack slots.
8601 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
8604 * combine.c (cant_combine_insn_p): Revert the last change.
8606 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
8609 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
8610 mode for vector constants. Remove code that checks for TImode.
8612 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8616 * cgraph.h (compute_inline_parameters): Return void.
8617 * ipa-inline.c (compute_inline_parameters): Adjust.
8619 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8623 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8625 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8626 * ipa-inline.c (compute_inline_parameters): Adjust.
8628 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8632 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8633 Adjust all users. Pass FN to...
8634 * tree-flow-inline.h (first_referenced_var): ... this. Add
8636 * ipa-struct-reorg.c: Adjust.
8637 * tree-dfa.c: Adjust.
8638 * tree-into-ssa.c: Adjust.
8639 * tree-sra.c: Adjust.
8640 * tree-ssa-alias.c: Adjust.
8641 * tree-ssa-live.c: Adjust.
8642 * tree-ssa.c: Adjust.
8643 * tree-ssanames.c: Adjust.
8644 * tree-tailcall.c: Adjust.
8646 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8650 * tree-flow.h (referenced_var_lookup): Add fn parameter.
8652 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8653 * tree-flow-inline.h: Adjust.
8654 * gimple-pretty-print.c: Adjust.
8655 * tree-into-ssa.c: Adjust.
8656 * tree-ssa.c: Adjust.
8657 * cfgexpand.c: Adjust.
8659 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8661 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8662 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8663 (EXTRA_CONSTRAINT): Delete.
8664 * config/iq2000/constraints.md: New file.
8665 * config/iq2000/iq2000.md: Include it.
8666 (define_insn ""): Delete.
8667 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8668 unsupported constraint letters from patterns.
8669 (call_value, call_value_internal1): Likewise.
8670 (call_value_multiple_internal1): Likewise.
8672 2011-02-15 Nick Clifton <nickc@redhat.com>
8674 * config/mn10300/mn10300.c: Include tm-constrs.h.
8675 (struct liw_data): New data structure describing an LIW candidate
8677 (extract_bundle): Use struct liw_data. Allow small integer
8678 operands for some instructions.
8679 (check_liw_constraints): Use struct liw_data. Remove swapped
8680 parameter. Add comments describing the checks. Fix bug when
8681 assigning the source of liw1 to the source of liw2.
8682 (liw_candidate): Delete. Code moved into extract_bundle.
8683 (mn10300_bundle_liw): Use struct liw_data. Check constraints
8685 * config/mn10300/predicates.md (liw_operand): New predicate.
8686 Allows registers and small integer constants.
8687 * config/mn10300/constraints.md (O): New constraint. Accetps
8688 integers in the range -8 to +7 inclusive.
8689 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8690 for moving a small integer into a register. Give this alternative
8692 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8693 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8694 using the J,K,L and M constraints,
8695 (liw): Remove SI mode on second operands to allow for HI and QI
8697 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
8700 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
8703 * combine.c (cant_combine_insn_p): Check zero/sign extended
8706 2011-02-15 Richard Guenther <rguenther@suse.de>
8708 PR tree-optimization/47743
8709 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8710 for a non-type-compatible VN lookup bail out.
8712 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8714 * config/fr30/constraints.md: New file.
8715 * config/fr30/fr30.md: Include it.
8716 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8717 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8718 (EXTRA_CONSTRAINT): Delete.
8720 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8722 * config/frv/constraints.md: New file.
8723 * config/frv/predicates.md: Include it.
8724 * config/frv/frv.c (reg_class_from_letter): Delete.
8725 (frv_option_override): Don't initialize it.
8726 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8727 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8728 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8729 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8730 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8731 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8732 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8733 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8734 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8735 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8736 (REG_CLASS_FROM_CONSTRAINT): Delete.
8738 2011-02-15 Jakub Jelinek <jakub@redhat.com>
8741 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8742 if frame size is 0 in a leaf function.
8744 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8747 * config/alpha/host-osf.c: New file.
8748 * config/alpha/x-osf: New file.
8749 * config.host (alpha*-dec-osf*): Use it.
8751 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8753 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8754 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8755 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8756 (rx_mode_dependent_address_p): ...this. Make static. Change argument
8758 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8760 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8762 * config/stormy16/constraints.md: New file.
8763 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8764 Use satisfies_constraint_Q and satisfies_constraint_R.
8765 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8767 (xstormy16_legitiamte_address_p): Declare.
8768 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8769 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8770 (EXTRA_CONSTRAINT): Delete.
8771 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8773 (xstormy16_extra_constraint_p): Delete.
8775 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
8777 PR tree-optimization/46494
8778 * loop-unroll.c (split_edge_and_insert): Adjust comment.
8779 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8780 (pass_rtl_loop_done): Add TODO_verify_flow.
8781 * fwprop.c (pass_rtl_fwprop): Likewise.
8782 * modulo-sched.c (pass_sms): Likewise.
8783 * tree-ssa-dom.c (pass_dominator): Likewise.
8784 * tree-ssa-loop-ch.c (pass_ch): Likewise.
8785 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8786 (pass_tree_loop_done): Likewise.
8787 * tree-ssa-pre.c (execute_pre): Likewise.
8788 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8789 * tree-ssa-sink.c (pass_sink_code): Likewise.
8790 * tree-vrp.c (pass_vrp): Likewise.
8792 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8794 * config/v850/constraints.md: New file.
8795 * config/v850/v850.md: Include it.
8796 * config/v850/predicates.md (reg_or_0_operand): Use
8797 satisfies_constraint_G.
8798 (special_symbolref_operand): Use satisfies_constraint_K.
8799 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8800 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8801 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8802 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8803 (EXTRA_CONSTRAINT): Delete.
8804 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8805 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8806 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8808 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8811 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8814 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8816 * config/mcore/constraints.md: New file.
8817 * config/mcore/mcore.md: Include it.
8818 * config/mcore/mcore.c (reg_class_from_letter): Delete.
8819 * config/mcore/mcore.h (reg_class_from_letter): Delete.
8820 (REG_CLASS_FROM_LETTER): Delete.
8821 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8822 insn_const_int_ok_for_constraint.
8823 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8824 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8825 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8826 (EXTRA_CONSTRAINT): Delete.
8828 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8831 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8832 (IS_SIGHANDLER): Define.
8833 (sparc64_is_sighandler): New function, split off from
8834 sparc64_fallback_frame_state.
8835 (sparc_is_sighandler): New function, split off from
8836 sparc_fallback_frame_state.
8837 (sparc64_fallback_frame_state): Merge with ...
8838 (sparc_fallback_frame_state): ... this into ...
8839 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8840 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
8841 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
8842 stack instead of hardcoded offsets.
8844 2011-02-14 Andriy Gapon <avg@freebsd.org>
8847 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8849 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8851 * configure: Regenerate.
8853 2011-02-12 Joseph Myers <joseph@codesourcery.com>
8856 * gcc.c (asm_options): Correct spec matching --target-help.
8858 2011-02-12 Martin Jambor <mjambor@suse.cz>
8860 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8861 to gimple call error.
8863 2011-02-12 Mike Stump <mikestump@comcast.net>
8865 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8866 comments in backslash regions.
8868 2011-02-12 Mike Stump <mikestump@comcast.net>
8869 Jakub Jelinek <jakub@redhat.com>
8870 Iain Sandoe <iains@gcc.gnu.org>
8873 * dwarf2out.c (output_cfa_loc): When required, apply the
8874 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8875 (output_loc_sequence): Likewise.
8876 (output_loc_operands_raw): Likewise.
8877 (output_loc_sequence_raw): Likewise.
8878 (output_cfa_loc): Likewise.
8879 (output_loc_list): Suppress register number adjustment when
8880 calling output_loc_sequence()
8881 (output_die): Likewise.
8883 2011-02-12 Anatoly Sokolov <aesok@post.ru>
8885 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8887 * config/xtensa/xtensa.c (xtensa_register_move_cost,
8888 xtensa_memory_move_cost): New functions.
8889 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8891 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
8894 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8895 in the current directory.
8896 * configure: Rebuilt.
8898 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8900 * config/darwin.c (darwin_override_options): Add a hunk missed
8901 from the commit of r168571. Trim comment line lengths and
8902 correct indents of the preceding block.
8904 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8906 * gcc.c (driver_handle_option): Concatenate the argument to -F with
8909 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8911 * common.opt (nostartfiles): New Driver option.
8913 2011-02-11 Xinliang David Li <davidxl@google.com>
8915 PR tree-optimization/47707
8916 * tree-chrec.c (convert_affine_scev): Keep type precision.
8918 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
8920 PR tree-optimization/47420
8921 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8923 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
8925 PR rtl-optimization/47614
8926 * rtl.h (check_for_inc_dec): Declare.
8927 * dse.c (check_for_inc_dec): Externalize...
8928 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8929 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8931 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8934 * gcc.c (main): Do not compile inputs if there were errors in
8936 * opts-common.c (read_cmdline_option): Check for wrong language
8937 after other error checks.
8939 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
8941 * cgraph.c: Fix comment typos.
8942 * cgraph.h: Likewise.
8943 * cgraphunit.c: Likewise.
8944 * ipa-cp.c: Likewise.
8945 * ipa-inline.c: Likewise.
8946 * ipa-prop.c: Likewise.
8947 * ipa-pure-const.c: Likewise.
8948 * ipa-ref.c: Likewise.
8949 * ipa-reference.c: Likewise.
8951 2011-02-11 Jakub Jelinek <jakub@redhat.com>
8954 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8956 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8959 * doc/sourcebuild.texi (Require Support): Document
8960 dg-require-ascii-locale.
8962 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
8964 * doc/lto.texi (Write summary): Fix missing parentheses.
8966 2011-02-10 DJ Delorie <dj@redhat.com>
8968 * config/m32c/m32c.c (m32c_option_override): Disable
8969 -fcombine-stack-adjustments until flag value tracking and compare
8970 optimization can be rewritten.
8972 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
8974 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8976 (PROCESSOR_DEFAULT64): Likewise.
8978 2011-02-10 Richard Henderson <rth@redhat.com>
8980 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8981 change from 2011-02-03.
8982 * config/rx/rx.c (flags_from_code): Likewise.
8983 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8984 is valid, n/pz otherwise.
8985 (rx_select_cc_mode): Return CCmode if Y is not zero.
8987 2011-02-10 Richard Guenther <rguenther@suse.de>
8989 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8991 2011-02-10 Richard Guenther <rguenther@suse.de>
8993 PR tree-optimization/47677
8994 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8996 2011-02-10 Jakub Jelinek <jakub@redhat.com>
8999 * combine.c (make_compound_operation): Only change shifts into
9000 multiplication for SCALAR_INT_MODE_P.
9002 2011-02-10 Jie Zhang <jie@codesourcery.com>
9006 2011-02-05 Jie Zhang <jie@codesourcery.com>
9008 * web.c (entry_register): Don't clobber the number of the
9009 first uninitialized reference in used[].
9011 2011-02-09 Richard Guenther <rguenther@suse.de>
9013 PR tree-optimization/47664
9014 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
9017 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
9021 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
9023 (PROCESSOR_DEFAULT64): Same.
9024 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
9026 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9028 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
9030 2011-02-09 Martin Jambor <mjambor@suse.cz>
9033 * tree-sra.c (struct access): New flags grp_scalar_read and
9034 grp_scalar_write. Changed description of assignment read and write
9036 (dump_access): Dump new flags, reorder all of them.
9037 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
9038 to detect multiple scalar reads.
9039 (analyze_access_subtree): Use the new scalar read write flags instead
9040 of the old flags. Adjusted comments.
9042 2011-02-08 DJ Delorie <dj@redhat.com>
9045 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
9048 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9050 * config/m68k/uclinux.opt: New.
9051 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
9053 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9055 * config/cris/elf.opt (sim): New Driver option.
9057 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9059 * config/xtensa/elf.opt: New.
9060 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
9062 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9064 * config/vax/elf.opt: New.
9065 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
9067 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9069 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
9071 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9073 * config/gnu-user.opt: New.
9074 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
9075 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
9076 *-*-uclinux*): Use gnu-user.opt.
9078 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
9080 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
9081 * config/i386/gnu.h (CPP_SPEC): Likewise.
9083 2011-02-08 Ian Lance Taylor <iant@google.com>
9085 * common.opt (fcx-limited-range): Add SetByCombined flag.
9086 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
9087 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
9088 (fassociative-math, freciprocal-math): Likewise.
9089 (funsafe-math-optimizations): Likewise.
9090 * opth-gen.awk: Handle SetByCombined.
9091 * optc-gen.awk: Likewise.
9092 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
9093 (set_unsafe_math_optimizations_flags): Likewise.
9094 * doc/options.texi (Option properties): Document SetByCombined.
9096 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9098 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
9099 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
9100 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
9101 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
9102 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
9104 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
9106 PR tree-optimization/46834
9107 PR tree-optimization/46994
9108 PR tree-optimization/46995
9109 * graphite-sese-to-poly.c (used_outside_reduction): New.
9110 (detect_commutative_reduction): Call used_outside_reduction.
9111 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
9112 translate_scalar_reduction_to_array only when at least one
9113 loop-phi/close-phi tuple has been detected.
9115 2011-02-08 Richard Guenther <rguenther@suse.de>
9118 * tree-vect-generic.c (expand_vector_operations_1): Update
9120 (expand_vector_operations): ... not here. Cleanup EH info
9121 and the CFG if required.
9123 2011-02-08 Richard Guenther <rguenther@suse.de>
9125 PR tree-optimization/47641
9126 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
9127 require type compatibility.
9129 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9131 * gimple-low.c (lower_function_body): Don't remove the location of
9132 the return statement here.
9133 (lower_gimple_return): Do it here instead but only if the return
9134 statement is actually used twice.
9136 2011-02-08 Richard Guenther <rguenther@suse.de>
9138 PR tree-optimization/47632
9139 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
9140 unused up_to_stmt parameter, return whether cfg-cleanup is
9141 necessary, remove EH info properly.
9142 (forward_propagate_into_gimple_cond): Adjust caller.
9143 (forward_propagate_into_cond): Likewise.
9144 (forward_propagate_comparison): Likewise.
9145 (tree_ssa_forward_propagate_single_use_vars): Make
9146 forward_propagate_comparison case similar to the two others.
9148 2011-02-08 Nick Clifton <nickc@redhat.com>
9150 * config/mn10300/mn10300.opt (mliw): New command line option.
9151 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
9152 (liw_bundling): New automaton.
9153 (liw): New attribute.
9154 (liw_op): New attribute.
9155 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
9156 (movsi_internal): Add LIW attributes.
9160 (addsi3): Separate register and immediate alternatives.
9165 (lshrsi3): Likewise.
9166 (ashrsi3): Likewise.
9168 * config/mn10300/mn10300.c (liw_op_names): New
9169 (mn10300_print_operand): Handle 'W' operand descriptor.
9170 (extract_bundle): New function.
9171 (check_liw_constraints): New function.
9172 (liw_candidate): New function.
9173 (mn10300_bundle_liw): New function.
9174 (mn10300_reorg): New function.
9175 (TARGET_MACHINE_DEPENDENT_REORG): Define.
9176 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
9177 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
9178 __LIW__ or __NO_LIW__.
9179 * doc/invoke.texi: Describe the -mliw command line option.
9181 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9183 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
9184 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9185 pthread_mutex_unlock): Remove.
9186 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
9187 * config/pa/t-pa64: Likewise.
9188 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
9189 shared libc if not linking against libpthread.
9190 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9192 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
9195 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
9196 on 10.6 and later to ensure that we always use the unwinder from
9197 the system. Only add -no_compact_unwind when tarteting darwin
9200 2011-02-07 Steve Ellcey <sje@cup.hp.com>
9203 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
9204 (vec_interleave_lowv2sf): Ditto.
9205 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
9206 (vec_extract_oddv2sf): Ditto.
9208 2011-02-07 Mike Stump <mikestump@comcast.net>
9211 Add __ieee_divdc3 entry point.
9212 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
9214 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
9215 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
9216 * config/darwin.c (darwin_rename_builtins): Add.
9217 * config/darwin-protos.h (darwin_rename_builtins): Add.
9219 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
9222 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
9225 2011-02-07 Mike Stump <mikestump@comcast.net>
9227 * config/darwin.opt (mmacosx-version-min): Update default OS version.
9229 2011-02-07 Denis Chertykov <chertykov@gmail.com>
9232 * config/avr/libgcc.S (exit): Move .endfunc
9234 2011-02-07 Richard Guenther <rguenther@suse.de>
9236 PR tree-optimization/47615
9237 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
9238 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
9239 (run_scc_vn): Initialize it.
9240 (visit_reference_op_load): Use it.
9241 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
9243 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9245 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
9246 DImode trapping arithmetic libfuncs.
9248 2011-02-07 Richard Guenther <rguenther@suse.de>
9250 PR tree-optimization/47621
9251 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
9253 (execute_update_addresses_taken): ... here. Make it more
9254 conservative in what we accept.
9256 2011-02-06 Joseph Myers <joseph@codesourcery.com>
9258 * config/sparc/freebsd.h (ASM_SPEC): Define.
9259 * config/sparc/vxworks.h (ASM_SPEC): Define.
9261 2011-02-06 Joseph Myers <joseph@codesourcery.com>
9263 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9265 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
9267 * doc/invoke.texi: Remove reference to compiler internals from
9270 * reg-notes.def: Remove REG_VALUE_PROFILE.
9271 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
9273 2011-02-05 Jakub Jelinek <jakub@redhat.com>
9276 * varasm.c (default_section_type_flags): If decl is NULL,
9277 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
9279 2011-02-05 Jie Zhang <jie@codesourcery.com>
9282 * web.c (entry_register): Don't clobber the number of the
9283 first uninitialized reference in used[].
9285 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
9287 PR tree-optimization/46194
9288 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
9289 (build_classic_dist_vector_1): Do not represent classic distance
9290 vectors when the access functions are variating in different loops.
9292 2011-02-04 Joseph Myers <joseph@codesourcery.com>
9294 * config/mips/iris6.opt: New.
9295 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
9297 2011-02-04 Richard Henderson <rth@redhat.com>
9298 Steve Ellcey <sje@cup.hp.com>
9301 * config/ia64/predicates.md (mux1_brcst_element): New.
9302 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
9303 * config/ia64/ia64.c (ia64_unpack_assemble): New.
9304 (ia64_unpack_sign): New.
9305 (ia64_expand_unpack): Rewrite using new routines.
9306 (ia64_expand_widen_sum): Ditto.
9307 (ia64_expand_dot_prod_v8qi): Ditto.
9308 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
9309 routines, add endian check.
9310 (pmpy2_even): Rename from pmpy2_r, add endian check.
9311 (pmpy2_odd): Rename from pmpy2_l, add endian check.
9312 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
9313 (vec_widen_smult_hi_v4hi): Ditto.
9314 (vec_widen_umult_lo_v4hi): Ditto.
9315 (vec_widen_umult_hi_v4hi): Ditto.
9316 (mulv2si3): Change endian checks.
9317 (sdot_prodv4hi): Rewrite with new calls.
9318 (udot_prodv4hi): New.
9319 (vec_pack_ssat_v4hi): Add endian check.
9320 (vec_pack_usat_v4hi): Ditto.
9321 (vec_pack_ssat_v2si): Ditto.
9322 (max1_even): Rename from max1_r, add endian check.
9323 (max1_odd): Rename from max1_l, add endian check.
9324 (*mux1_rev): Format change.
9326 (*mux1_shuf): Ditto.
9328 (*mux1_brcst_v8qi): Use new predicate.
9329 (vec_extract_evenv8qi): Remove endian check.
9330 (vec_extract_oddv8qi): Ditto.
9331 (vec_interleave_lowv4hi): Format change.
9332 (vec_interleave_highv4hi): Ditto.
9333 (mix2_even): Rename from mix2_r, add endian check.
9334 (mix2_odd): Rename from mux2_l, add endian check.
9335 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
9336 (vec_extract_evenodd_helper): Format change.
9337 (vec_extract_evenv4hi): Remove endian check.
9338 (vec_extract_oddv4hi): Remove endian check.
9339 (vec_interleave_lowv2si): Format change.
9340 (vec_interleave_highv2si): Format change.
9341 (vec_initv2si): Remove endian check.
9342 (vecinit_v2si): Add endian check.
9343 (reduc_splus_v2sf): Add endian check.
9344 (reduc_smax_v2sf): Ditto.
9345 (reduc_smin_v2sf): Ditto.
9346 (vec_initv2sf): Remove endian check.
9347 (fpack): Add endian check.
9348 (fswap): Add endian check.
9349 (vec_interleave_highv2sf): Add endian check.
9350 (vec_interleave_lowv2sf): Add endian check.
9351 (fmix_lr): Add endian check.
9352 (vec_setv2sf): Format change.
9353 (*vec_extractv2sf_0_be): Use shift to extract operand.
9354 (*vec_extractv2sf_1_be): New.
9355 (vec_pack_trunc_v4hi): Add endian check.
9356 (vec_pack_trunc_v2si): Format change.
9358 2011-02-04 Jakub Jelinek <jakub@redhat.com>
9361 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
9362 do bb, locus and block comparison and disallow loads if it is not set.
9363 (stmt_is_replaceable_p): New function.
9364 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
9366 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
9367 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
9369 * tree-flow.h (stmt_is_replaceable_p): New prototype.
9371 2011-02-04 Joseph Myers <joseph@codesourcery.com>
9373 * config/rs6000/xilinx.opt: New.
9374 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
9376 2011-02-04 Joseph Myers <joseph@codesourcery.com>
9378 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
9380 2011-02-03 Anatoly Sokolov <aesok@post.ru>
9382 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
9383 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9384 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
9385 secondary_reload_info, xtensa_secondary_reload): Remove.
9386 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
9387 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9388 (xtensa_preferred_reload_class): Make static. Change return and
9389 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
9390 Use CONST_DOUBLE_P predicate.
9391 (xtensa_preferred_output_reload_class): New function.
9392 (xtensa_secondary_reload): Make static.
9394 2011-02-03 Joseph Myers <joseph@codesourcery.com>
9396 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
9397 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
9398 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
9400 2011-02-03 Jakub Jelinek <jakub@redhat.com>
9403 * output.h (SECTION_RELRO): Define.
9404 (SECTION_MACH_DEP): Adjust.
9405 (get_variable_section): New prototype.
9406 * varpool.c (varpool_finalize_named_section_flags): New function.
9407 (varpool_assemble_pending_decls): Call it.
9408 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
9409 * cgraphunit.c (cgraph_output_in_order): Call
9410 varpool_finalize_named_section_flags.
9411 * varasm.c (get_section): Allow section flags conflicts between
9412 relro and read-only sections if the section hasn't been declared yet.
9413 Set SECTION_OVERRIDE after diagnosing section type conflict.
9414 (get_variable_section): No longer static.
9415 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
9416 readonly sections that need relocations.
9417 (decl_readonly_section_1): New function.
9418 (decl_readonly_section): Use it.
9421 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
9422 Steve Ellcey <sje@cup.hp.com>
9425 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
9426 if section attribute used.
9428 2011-02-03 Jakub Jelinek <jakub@redhat.com>
9430 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
9431 * config/darwin.c (SECTION_NO_ANCHOR): Define.
9432 (darwin_init_sections): Remove assertion.
9434 2011-02-03 Nick Clifton <nickc@redhat.com>
9436 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
9438 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
9439 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
9440 instead of "n" and "pz".
9441 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
9444 2011-02-03 Jakub Jelinek <jakub@redhat.com>
9447 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
9448 fma, expand FMA_EXPR as fma{,f,l} call.
9451 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
9452 copy them into a unsigned char variable and pass address of it to
9453 lto_output_data_stream.
9456 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
9457 around backend_init_target and lang_dependent_init_target calls.
9458 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
9459 (verify_cgraph_node): Don't call set_cfun here. Use
9460 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
9461 Set error_found for incorrectly represented calls to thunks.
9463 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
9466 PR rtl-optimization/43494
9467 * rtl.h (for_each_inc_dec_fn): New type.
9468 (for_each_inc_dec): Declare.
9469 * rtlanal.c (struct for_each_inc_dec_ops): New type.
9470 (for_each_inc_dec_find_inc_dec): New fn.
9471 (for_each_inc_dec_find_mem): New fn.
9472 (for_each_inc_dec): New fn.
9473 * dse.c (struct insn_size): Remove.
9474 (replace_inc_dec, replace_inc_dec_mem): Remove.
9475 (emit_inc_dec_insn_before): New fn.
9476 (check_for_inc_dec): Use it, along with for_each_inc_dec.
9477 (canon_address): Pass mem modes to cselib_lookup.
9478 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
9479 (cselib_lookup_from_insn): Likewise.
9480 (cselib_subst_to_values): Likewise.
9481 * cselib.c (find_slot_memmode): New var.
9482 (cselib_find_slot): New fn. Use it instead of
9483 htab_find_slot_with_hash everywhere.
9484 (entry_and_rtx_equal_p): Use find_slot_memmode.
9485 (autoinc_split): New fn.
9486 (rtx_equal_for_cselib_p): Rename and implement in terms of...
9487 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
9488 Deal with autoinc. Special-case recursion into MEMs.
9489 (cselib_hash_rtx): Likewise.
9490 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
9491 address and MEM modes.
9492 (cselib_subst_to_values): Add memmode, pass it on.
9494 (cselib_lookup): Add memmode argument, pass it on.
9495 (cselib_lookup_from_insn): Add memmode.
9496 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
9497 (struct cselib_record_autoinc_data): New.
9498 (cselib_record_autoinc_cb): New fn.
9499 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
9500 mode to cselib_lookup. Reset autoinced REGs here instead of...
9501 (cselib_process_insn): ... here.
9502 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
9504 (add_uses): Likewise, also to cselib_subst_to_values.
9505 (add_stores): Likewise.
9506 * sched-deps.c (add_insn_mem_dependence): Pass mode to
9507 cselib_subst_to_values.
9508 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
9509 * gcse.c (do_local_cprop): Adjusted.
9510 * postreload.c (reload_cse_simplify_set): Adjusted.
9511 (reload_cse_simplify_operands): Adjusted.
9512 * sel-sched-dump (debug_mem_addr_value): Pass mode.
9514 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
9516 PR tree-optimization/45122
9517 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
9518 unsafe assumptions when there's more than one loop exit.
9520 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9523 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
9524 Document using vector double with the load/store builtins, and
9525 that the load/store builtins always use Altivec instructions.
9527 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
9528 to use altivec memory instructions, even on VSX.
9529 (vector_altivec_store_<mode>): Ditto.
9531 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
9534 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9535 V2DF, V2DI support to load/store overloaded builtins.
9537 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
9538 altivec load/store builtins for V2DF/V2DI types.
9540 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9541 set avoid indexed addresses on power6 if -maltivec.
9542 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
9543 vector_altivec_load/vector_altivec_store builtins.
9544 (altivec_expand_st_builtin): Ditto.
9545 (altivec_expand_builtin): Add VSX memory builtins.
9546 (rs6000_init_builtins): Add V2DI types to internal types.
9547 (altivec_init_builtins): Add support for V2DF/V2DI altivec
9548 load/store builtins.
9549 (rs6000_address_for_altivec): Insure memory address is appropriate
9552 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
9553 vec_vsx_ld and vec_vsx_st.
9554 (vsx_store_<mode>): Ditto.
9556 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
9557 variables to hold long long types for VSX vector memory builtins.
9558 (RS6000_BTI_unsigned_long_long): Ditto.
9559 (long_long_integer_type_internal_node): Ditti.
9560 (long_long_unsigned_type_internal_node): Ditti.
9562 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
9563 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
9564 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
9566 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
9568 (vec_vsx_st): Ditto.
9570 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9572 * config/pa/pa-hpux10.opt: New.
9573 * config/hpux11.opt (pthread): New Driver option.
9574 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
9575 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
9577 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9579 * config/ia64/vms.opt: New.
9580 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
9582 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9585 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
9586 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
9587 generator functions.
9588 (vsx_floatuns<VSi><mode>2): Ditto.
9589 (vsx_fix_trunc<mode><VSi>2): Ditto.
9590 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
9592 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9594 * config/i386/djgpp.opt (posix): New Driver option.
9596 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
9598 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
9599 Move to the unsupported targets list.
9601 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
9603 PR rtl-optimization/47525
9604 * df-scan.c: Update copyright years.
9605 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
9606 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
9608 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9610 * config/i386/sysv4.h (TARGET_VERSION): Remove.
9611 (SUBTARGET_RETURN_IN_MEMORY): Remove.
9612 (ASM_OUTPUT_ASCII): Remove.
9613 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
9615 2011-02-02 Jeff Law <law@redhat.com>
9618 * reload.c (find_reloads_address): Handle reg+d address where both
9619 components are invalid by reloading the entire address.
9621 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
9622 Richard Guenther <rguenther@suse.de>
9624 PR tree-optimization/40979
9626 * passes.c (init_optimization_passes): After LIM call copy_prop
9627 and DCE to clean up.
9628 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9630 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
9632 PR tree-optimization/47576
9633 PR tree-optimization/47555
9634 * doc/invoke.texi (scev-max-expr-complexity): Documented.
9635 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9636 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9637 * tree-scalar-evolution.c (follow_ssa_edge): Use
9638 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9640 2011-02-02 Richard Guenther <rguenther@suse.de>
9642 PR tree-optimization/47566
9643 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9645 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
9649 * tree-inline.c (declare_return_variable): Remove unused caller
9654 * tree-flow-inline.h (clear_is_used, is_used_p): New.
9655 * cfgexpand.c (account_used_vars_for_block): Use them.
9656 * tree-nrv.c (tree_nrv): Likewise.
9657 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9658 (dump_scope_block): Likewise.
9659 (remove_unused_locals): Likewise.
9663 * tree-inline.c (declare_return_variable): Add result decl to
9664 local decls only once.
9665 * gimple-low.c (record_vars_into): Mark newly-created variables
9668 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
9674 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9676 (no_real_insns_p, schedule_block, set_priorities): Drop special
9677 treatment of boundary debug insns.
9678 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9679 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9680 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9681 (BOUNDARY_DEBUG_INSN_P): Likewise.
9682 (SCHEDULE_DEBUG_INSN_P): Likewise.
9683 * sched-rgn.c (init_ready_list): Drop special treatment of
9684 boundary debug insns.
9685 * final.c (rest_of_clean_state): Clear notes' BB.
9687 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9689 * config/openbsd.opt (assert=): New Driver option.
9691 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9693 * config/i386/nto.opt: New.
9694 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9696 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9698 * config/i386/netware.opt: New.
9699 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9701 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9703 * config/interix.opt (posix): New Driver option.
9705 2011-02-01 DJ Delorie <dj@redhat.com>
9707 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9709 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9712 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
9714 PR tree-optimization/47561
9715 * toplev.c (process_options): Print the Graphite flags. Add
9716 flag_loop_flatten to the list of options requiring Graphite.
9718 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9720 * config/i386/cygming.opt (posix): New Driver option.
9722 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9724 * config/arm/vxworks.opt: New.
9725 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9727 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9729 * config/alpha/elf.opt: New.
9730 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9731 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9733 2011-02-01 Richard Guenther <rguenther@suse.de>
9735 PR tree-optimization/47559
9736 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9737 store-motion on references that can throw.
9739 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
9741 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9742 * tree-pass.h (TDF_CSELIB): New macro.
9743 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9744 cselib_lookup): Check for it rather than for TDF_DETAILS.
9746 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
9749 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9752 * opts.c (finish_options): Don't add x_aux_base_name if it is
9755 2011-02-01 Richard Guenther <rguenther@suse.de>
9757 PR tree-optimization/47555
9759 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
9761 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9763 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
9766 * config/lm32/t-lm32: Add multilib for all CPU options.
9768 2011-02-01 Richard Guenther <rguenther@suse.de>
9770 PR tree-optimization/47541
9771 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9772 sure to have a field at offset zero.
9774 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9776 * config/arc/arc.opt (EB, EL): New Driver options.
9778 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9780 * config/alpha/osf5.opt: New.
9781 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9783 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9785 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9787 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
9789 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9791 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9792 is an alias of -floop-interchange and that it requires the
9793 Graphite infrastructure.
9794 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9795 flag_loop_interchange based on the value of flag_tree_loop_linear.
9797 2011-01-31 Jakub Jelinek <jakub@redhat.com>
9798 Richard Guenther <rguenther@suse.de>
9800 PR tree-optimization/47538
9801 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9802 type instead of r1type, except for comparisons. For right
9803 shifts and comparisons punt if there are mismatches in
9804 sizetype vs. non-sizetype types.
9806 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9808 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9811 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9813 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9815 * configure: Regenerate.
9817 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9819 * configure.ac (gcc_cv_ld_static_option): Define.
9820 (gcc_cv_ld_dynamic_option): Define.
9821 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9823 (HAVE_LD_STATIC_DYNAMIC): Update message.
9824 (LD_STATIC_OPTION): Define.
9825 (LD_DYNAMIC_OPTION): Define.
9826 * configure: Regenerate.
9827 * config.in: Regenerate.
9828 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9829 HAVE_LD_STATIC_DYNAMIC]: Use them.
9831 2011-01-31 Nick Clifton <nickc@redhat.com>
9833 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9834 registers inside interrupt handlers if the handler is not a leaf
9837 2011-01-31 Nick Clifton <nickc@redhat.com>
9839 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9840 reg_renumber returning an INVALID_REGNUM.
9842 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9845 * doc/install.texi: Document host options discarded when cross
9846 configuring target libraries.
9848 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9851 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9854 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9856 (no_real_insns_p, schedule_block, set_priorities): Drop special
9857 treatment of boundary debug insns.
9858 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9859 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9860 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9861 (BOUNDARY_DEBUG_INSN_P): Likewise.
9862 (SCHEDULE_DEBUG_INSN_P): Likewise.
9863 * sched-rgn.c (init_ready_list): Drop special treatment of
9864 boundary debug insns.
9865 * final.c (rest_of_clean-state): Clear notes' BB.
9867 2011-01-31 Alan Modra <amodra@gmail.com>
9869 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9870 toc relative expressions as we do in print_operand_address.
9872 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
9874 * doc/extend.texi: Follow spelling conventions.
9875 * doc/invoke.texi: Fix a typo.
9877 2011-01-30 Joseph Myers <joseph@codesourcery.com>
9879 * config/hpux11.opt: New.
9880 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9881 ia64*-*-hpux*): Use hpux11.opt.
9883 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
9885 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9888 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9890 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9893 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9895 * doc/install.texi (Binaries): Remove outdated reference for
9896 Motorola 68HC11/68HC12 downloads.
9898 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9900 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9903 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
9906 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9909 2011-01-28 Ahmad Sharif <asharif@google.com>
9911 * value-prof.c (check_counter): Corrected error message.
9913 2011-01-29 Jie Zhang <jie@codesourcery.com>
9915 * config/arm/arm.c (arm_legitimize_reload_address): New.
9916 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9917 arm_legitimize_reload_address.
9918 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9920 2011-01-28 Ian Lance Taylor <iant@google.com>
9922 * godump.c (go_define): Ignore macros whose definitions include
9923 two adjacent operands.
9925 2011-01-28 Jakub Jelinek <jakub@redhat.com>
9928 * varasm.c (force_const_mem): Store copy of x in desc->constant
9929 instead of x itself.
9930 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9931 itself into REG_EQUAL note.
9933 2011-01-28 Joseph Myers <joseph@codesourcery.com>
9935 * config/freebsd.opt (posix, rdynamic): New Driver options.
9937 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9939 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9941 * configure: Regenerate.
9943 2011-01-27 Joseph Myers <joseph@codesourcery.com>
9945 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9946 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9948 2011-01-27 Anatoly Sokolov <aesok@post.ru>
9950 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9951 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9952 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9953 (s390_preferred_reload_class): Make static. Change return and
9954 'rclass' argument type to reg_class_t.
9956 2011-01-27 Jan Hubicka <jh@suse.cz>
9959 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9960 (process_function_and_variable_attributes): Check defined weakrefs.
9962 2011-01-27 Martin Jambor <mjambor@suse.cz>
9964 PR tree-optimization/47228
9965 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9966 build_ref_for_offset.
9968 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9970 * config/spu/spu-elf.h (ASM_SPEC): Remove.
9972 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
9974 PR rtl-optimization/46856
9975 * postreload.c (reload_combine_recognize_const_pattern): Do not
9976 separate cc0 setter and user on cc0 targets.
9978 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
9981 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9982 passed a VOID_TYPE expression, immediately emit an error and
9983 return error_mark_node.
9985 2011-01-26 Jeff Law <law@redhat.com>
9987 PR rtl-optimization/47464
9988 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9989 rather than may_trap_p as needed.
9991 2011-01-26 DJ Delorie <dj@redhat.com>
9993 PR rtl-optimization/46878
9994 * combine.c (insn_a_feeds_b): Check for the implicit cc0
9995 setter/user dependency as well.
9997 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
9999 PR rtl-optimization/44469
10000 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
10001 after removing trivially dead basic blocks.
10003 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10005 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
10006 * config/frv/frv.h (LINK_SPEC): Likewise.
10007 * config/i386/netware.h (LINK_SPEC): Likewise.
10008 * config/m68k/linux.h (ASM_SPEC): Likewise.
10009 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
10010 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10011 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10012 * config/sparc/linux.h (ASM_SPEC): Likewise.
10013 * config/sparc/linux64.h (ASM_SPEC): Likewise.
10014 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10016 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10018 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
10019 * config/frv/frv.h (ASM_SPEC): Likewise.
10020 * config/m68k/linux.h (ASM_SPEC): Likewise.
10021 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
10022 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
10023 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10024 * config/sparc/linux.h (ASM_SPEC): Likewise.
10025 * config/sparc/linux64.h (ASM_SPEC): Likewise.
10026 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10028 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10030 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
10031 * config/frv/frv.h (LINK_SPEC): Likewise.
10032 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10034 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10036 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
10037 * config/frv/frv.h (ASM_SPEC): Likewise.
10038 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
10039 * config/m68k/linux.h (ASM_SPEC): Likewise.
10040 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
10041 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
10042 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10043 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
10044 * config/sparc/linux.h (ASM_SPEC): Likewise.
10045 * config/sparc/linux64.h (ASM_SPEC): Likewise.
10046 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10047 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
10049 2011-01-26 Steve Ellcey <sje@cup.hp.com>
10052 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
10054 (vec_extract_evenodd_help): Ditto.
10055 (vec_extract_evenv4hi): Ditto.
10056 (vec_extract_oddv4hi): Ditto.
10057 (vec_interleave_lowv2si): Ditto.
10058 (vec_interleave_highv2si): Ditto.
10059 (vec_extract_evenv2si): Ditto.
10060 (vec_extract_oddv2si: Ditto.
10061 (vec_pack_trunc_v2si): Ditto.
10063 2011-01-22 Jan Hubicka <jh@suse.cz>
10066 * cgraph.h (cgraph_local_info): New field can_change_signature.
10067 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
10068 signature can change.
10069 (ipcp_estimate_growth): Call sequence simplify only if calle signature
10071 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
10072 (cgraph_function_versioning): We can not change signature of functions
10073 that don't allow that.
10074 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
10075 (lto_input_node): Likewise.
10076 * ipa-inline.c (compute_inline_parameters): Compute
10077 local.can_change_signature.
10078 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
10079 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
10080 functions that can not change signature.
10081 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
10082 init_cumulative_args): Do not use local calling conventions
10083 for functions that can not change signature.
10085 2011-01-22 Jan Hubicka <jh@suse.cz>
10087 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
10089 2011-01-26 Richard Guenther <rguenther@suse.de>
10091 PR tree-optimization/47190
10092 * cgraphunit.c (process_common_attributes): New function.
10093 (process_function_and_variable_attributes): Use it.
10095 2011-01-26 Richard Guenther <rguenther@suse.de>
10098 * cgraphbuild.c (record_eh_tables): Record reference to personality
10101 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
10104 * sel-sched.c (moveup_expr): Don't let debug insns prevent
10105 non-debug insns from moving up.
10107 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
10110 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
10111 t-dlldir{,-x} fragment for build and add it to tmake_file.
10112 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
10113 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
10114 * config/i386/t-dlldir: New file.
10115 (SHLIB_DLLDIR): Define.
10116 * config/i386/t-dlldir-x: New file.
10117 (SHLIB_DLLDIR): Define.
10118 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
10119 (SHLIB_INSTALL): Use it.
10121 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
10124 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
10125 lower bound of the allowed Thumb-2 coprocessor load/store
10126 index range to -256. Add explaining comment.
10128 2011-01-25 Ian Lance Taylor <iant@google.com>
10130 * godump.c (go_define): Improve lexing of macro expansion to only
10131 accept expressions which match Go spec.
10133 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
10136 * tree.c (handle_dll_attribute): Handle it.
10137 * doc/extend.texi (@item dllexport): Mention it.
10138 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
10140 2011-01-25 Ian Lance Taylor <iant@google.com>
10142 PR tree-optimization/26854
10143 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
10144 (decl_jump_unsafe): Move higher in file, with no other change.
10145 (bind): Set has_jump_unsafe_decl if appropriate.
10146 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
10147 (check_earlier_gotos): Likewise.
10148 (c_check_switch_jump_warnings): Likewise.
10150 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
10152 * doc/invoke.texi (Warning Options): Add missing hyphen.
10153 (-fprofile-dir): Minor grammatical fixes.
10154 (-fbranch-probabilities): Likewise.
10156 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
10160 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10162 (no_real_insns_p, schedule_block, set_priorities): Drop special
10163 treatment of boundary debug insns.
10164 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10165 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
10166 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10167 (BOUNDARY_DEBUG_INSN_P): Likewise.
10168 (SCHEDULE_DEBUG_INSN_P): Likewise.
10169 * sched-rgn.c (init_ready_list): Drop special treatment of
10170 boundary debug insns.
10171 * final.c (rest_of_clean-state): Clear notes' BB.
10173 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10175 * Makefile.in (LAMBDA_H): Removed.
10176 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
10177 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
10178 lambda-trans.o, and tree-loop-linear.o.
10179 (lto-symtab.o): Remove dependence on LAMBDA_H.
10180 (tree-loop-linear.o): Remove rule.
10181 (lambda-mat.o): Same.
10182 (lambda-trans.o): Same.
10183 (lambda-code.o): Same.
10184 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
10185 (tree-vect-slp.o): Same.
10186 * hwint.h (gcd): Moved here.
10187 (least_common_multiple): Same.
10188 * lambda-code.c: Removed.
10189 * lambda-mat.c: Removed.
10190 * lambda-trans.c: Removed.
10191 * lambda.h: Removed.
10192 * tree-loop-linear.c: Removed.
10193 * lto-symtab.c: Do not include lambda.h.
10194 * omega.c (gcd): Removed.
10195 * passes.c (init_optimization_passes): Remove pass_linear_transform.
10196 * tree-data-ref.c (print_lambda_vector): Moved here.
10197 (lambda_vector_copy): Same.
10198 (lambda_matrix_copy): Same.
10199 (lambda_matrix_id): Same.
10200 (lambda_vector_first_nz): Same.
10201 (lambda_matrix_row_add): Same.
10202 (lambda_matrix_row_exchange): Same.
10203 (lambda_vector_mult_const): Same.
10204 (lambda_vector_negate): Same.
10205 (lambda_matrix_row_negate): Same.
10206 (lambda_vector_equal): Same.
10207 (lambda_matrix_right_hermite): Same.
10208 * tree-data-ref.h: Do not include lambda.h.
10209 (lambda_vector): Moved here.
10210 (lambda_matrix): Same.
10211 (dependence_level): Same.
10212 (lambda_transform_legal_p): Removed declaration.
10213 (lambda_collect_parameters): Same.
10214 (lambda_compute_access_matrices): Same.
10215 (lambda_vector_gcd): Same.
10216 (lambda_vector_new): Same.
10217 (lambda_vector_clear): Same.
10218 (lambda_vector_lexico_pos): Same.
10219 (lambda_vector_zerop): Same.
10220 (lambda_matrix_new): Same.
10221 * tree-flow.h (least_common_multiple): Removed declaration.
10222 * tree-parloops.c (lambda_trans_matrix): Moved here.
10223 (LTM_MATRIX): Same.
10224 (LTM_ROWSIZE): Same.
10225 (LTM_COLSIZE): Same.
10226 (LTM_DENOMINATOR): Same.
10227 (lambda_trans_matrix_new): Same.
10228 (lambda_matrix_vector_mult): Same.
10229 (lambda_transform_legal_p): Same.
10230 * tree-pass.h (pass_linear_transform): Removed declaration.
10231 * tree-ssa-loop.c (tree_linear_transform): Removed.
10232 (gate_tree_linear_transform): Removed.
10233 (pass_linear_transform): Removed.
10234 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
10235 flag_loop_interchange.
10237 2011-01-25 Jakub Jelinek <jakub@redhat.com>
10239 PR tree-optimization/47265
10240 PR tree-optimization/47443
10241 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
10242 if name still has some uses.
10244 2011-01-25 Martin Jambor <mjambor@suse.cz>
10246 PR tree-optimization/47382
10247 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
10248 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
10250 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
10252 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
10253 sjlj_except_unwind_info.
10255 2011-01-25 Richard Guenther <rguenther@suse.de>
10257 PR tree-optimization/47426
10258 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
10259 visible functions results escape.
10261 2011-01-25 Jakub Jelinek <jakub@redhat.com>
10264 * config/arm/arm.c (any_sibcall_uses_r3): New function.
10265 (arm_get_frame_offsets): Use it.
10267 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10268 Jakub Jelinek <jakub@redhat.com>
10270 PR tree-optimization/47271
10271 * tree-if-conv.c (bb_postdominates_preds): New.
10272 (if_convertible_bb_p): Call bb_postdominates_preds.
10273 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
10274 (predicate_scalar_phi): Call bb_postdominates_preds.
10276 2011-01-25 Nick Clifton <nickc@redhat.com>
10278 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
10279 * config/rx/rx.c (rx_function_value): Likewise.
10280 (rx_promote_function_mode): Likewise.
10281 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
10282 in order to make it legitimate.
10283 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
10284 make sure that the first operand is the same as the result register.
10285 (addsi3_unspec): Delete.
10286 (subdi3): Do not accept immediate operands.
10287 (subdi3_internal): Likewise.
10289 2011-01-25 Jeff Law <law@redhat.com>
10291 PR rtl-optimization/37273
10292 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10293 handle them like argument loads from stack slots. Do not double
10294 count memory for memory constants and argument loads from stack slots.
10296 2011-01-25 Jakub Jelinek <jakub@redhat.com>
10298 PR tree-optimization/47427
10299 PR tree-optimization/47428
10300 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
10301 coalesce if the new root var would be TREE_READONLY.
10303 2011-01-25 Richard Guenther <rguenther@suse.de>
10305 PR middle-end/47414
10306 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
10307 correct type for TBAA.
10309 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10311 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
10312 (close_phi_written_to_memory): Call for_each_index with
10313 dr_indices_valid_in_loop.
10315 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10317 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
10318 when it is initialized.
10320 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10322 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
10323 call to graphite_find_data_references_in_stmt.
10324 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
10325 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
10326 call to graphite_find_data_references_in_stmt.
10327 (analyze_drs_in_stmts): Same.
10328 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
10329 in which the scalar analysis of indices is performed.
10330 (create_data_ref): Same. Update call to dr_analyze_indices.
10331 (find_data_references_in_stmt): Update call to create_data_ref.
10332 (graphite_find_data_references_in_stmt): Same.
10333 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
10335 (create_data_ref): Same.
10336 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
10337 call to create_data_ref.
10339 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10341 * graphite-sese-to-poly.c (build_poly_scop): Move
10342 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
10344 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10346 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
10347 VAR_DECL, PARM_DECL, and RESULT_DECL.
10349 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10351 * graphite-dependences.c (reduction_dr_1): Allow several reductions
10352 in a reduction PBB.
10353 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
10354 that have already been marked as PBB_IS_REDUCTION.
10356 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10358 * graphite-scop-detection.c (same_close_phi_node): New.
10359 (remove_duplicate_close_phi): New.
10360 (make_close_phi_nodes_unique): New.
10361 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
10363 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10365 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
10366 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
10367 of both data references to be the same.
10369 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10371 * graphite-dependences.c (build_lexicographical_constraint): Remove
10372 the gdim parameter.
10373 (build_lexicographical_constraint): Adjust call to
10374 ppl_powerset_is_empty.
10375 (dependence_polyhedron): Same.
10376 (graphite_legal_transform_dr): Same.
10377 (graphite_carried_dependence_level_k): Same.
10378 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
10380 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
10382 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10384 * graphite-sese-to-poly.c
10385 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
10386 (close_phi_written_to_memory): New.
10387 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
10390 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10392 * doc/install.texi: Update the expected version number of PPL to 0.11.
10393 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
10394 #if PPL_VERSION_MINOR < 11.
10396 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10398 * graphite-dependences.c: Include graphite-cloog-util.h.
10399 (new_poly_ddr): Inlined into dependence_polyhedron.
10400 (free_poly_ddr): Moved close by new_poly_ddr.
10401 (dependence_polyhedron_1): Renamed dependence_polyhedron.
10402 Early return NULL when ppl_powerset_is_empty returns true.
10403 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
10404 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
10405 (graphite_legal_transform_dr): Call new_poly_ddr.
10406 (graphite_carried_dependence_level_k): Same.
10407 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
10408 (dot_transformed_deps_stmt_1): Removed.
10409 (dot_deps_stmt_1): Call dot_deps_stmt_2.
10410 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
10411 (dot_deps_1): Call dot_deps_2.
10412 * Makefile.in (graphite-dependences.o): Add missing dependence on
10413 graphite-cloog-util.h.
10415 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10417 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
10418 (build_lexicographical_constraint): Same.
10419 (dependence_polyhedron_1): Same.
10420 (graphite_legal_transform_dr): Same.
10421 (graphite_carried_dependence_level_k): Same.
10422 * graphite-ppl.c (ppl_powerset_is_empty): New.
10423 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
10424 * tree-data-ref.c (dump_data_reference): Print the basic block index.
10426 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10428 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
10429 the "a followed by b" relation and document it.
10431 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10433 * graphite-dependences.c (build_lexicographical_constraint): Stop the
10434 iteration when the bag of constraints is empty.
10436 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10438 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
10440 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10442 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
10443 nest and two loop depths as parameters.
10444 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
10445 lst_perfect_nestify.
10447 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10449 * graphite-dependences.c (print_pddr): Call
10450 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
10452 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10454 * graphite-ppl.c (debug_gmp_value): New.
10455 * graphite-ppl.h (debug_gmp_value): Declared.
10457 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
10459 * doc/install.texi: Document availability of cloog-0.16.
10461 2011-01-25 Vladimir Kargov <kargov@gmail.com>
10463 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
10464 invalid postdominance info.
10466 2011-01-24 Jan Hubicka <jh@suse.cz>
10469 * doc/extend.texi (weak pragma): Drop claim that it must
10470 appear before definition.
10471 * varasm.c (merge_weak, declare_weak): Only sanity check
10472 that DECL is not output at a time it is declared weak.
10474 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
10476 * machmode.def: Fixed comments.
10478 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
10480 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
10482 2011-01-24 Paul Koning <ni1d@arrl.net>
10484 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
10487 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
10490 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
10491 (block_info): Add scanned and prev.
10492 (move_or_delete_vzeroupper_2): Return if the basic block
10493 has been scanned and the upper 128bit state is unchanged
10494 from the last scan.
10495 (move_or_delete_vzeroupper_1): Return true if the exit
10497 (move_or_delete_vzeroupper): Visit basic blocks using the
10498 work-list based algorithm based on vt_find_locations in
10501 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
10503 2011-01-24 Nick Clifton <nickc@redhat.com>
10505 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
10506 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
10507 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
10508 then define __v850e1__.
10509 * doc/invoke.texi: Document -mv850es.
10511 2011-01-24 Richard Henderson <rth@redhat.com>
10513 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
10514 compound unordered comparisons.
10515 * config/rx/rx.c (rx_split_fp_compare): Remove.
10516 * config/rx/rx-protos.h: Update.
10517 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
10518 (cbranchsf4): Don't call rx_split_fp_compare.
10519 (*cbranchsf4): Use rx_split_cbranch.
10520 (*cmpsf): Don't accept "i" constraint.
10521 (*conditional_branch): Only valid after reload.
10522 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
10524 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
10527 * config/rs6000/altivec.md (vector constant splitters): Add
10528 support for creating vector single precision constants if -mvsx is
10529 used and we would create the constant using Altivec primitives.
10531 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
10532 Richard Sandiford <rdsandiford@googlemail.com>
10534 PR rtl-optimization/47166
10535 * reload1.c (emit_reload_insns): Disable the spill_reg_store
10536 mechanism for PRE_MODIFY and POST_MODIFY.
10537 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
10540 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
10542 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
10544 2011-01-22 Jan Hubicka <jh@suse.cz>
10547 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
10549 2011-01-22 Jan Hubicka <jh@suse.cz>
10551 PR tree-optimization/43884
10553 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
10554 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
10556 2011-01-22 Anatoly Sokolov <aesok@post.ru>
10558 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10559 * config/s390/s390.c (s390_register_move_cost,
10560 s390_memory_move_cost): New.
10561 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10563 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10565 PR middle-end/47401
10566 * except.c (sjlj_assign_call_site_values): Move setting the
10567 crtl->uses_eh_lsda flag to ...
10568 (sjlj_mark_call_sites): ... here.
10569 (sjlj_emit_function_enter): Support NULL dispatch label.
10570 (sjlj_build_landing_pads): In a function with no landing pads
10571 that still has must-not-throw regions, generate code to register
10572 a personality function with empty LSDA.
10574 2011-01-21 Richard Henderson <rth@redhat.com>
10576 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
10578 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
10580 * compare-elim.c: New file.
10581 * Makefile.in (OBJS-common): Add it.
10582 (compare-elim.o): New.
10583 * common.opt (fcompare-elim): New.
10584 * opts.c (default_options_table): Add OPT_fcompare_elim.
10585 * tree-pass.h (pass_compare_elim_after_reload): New.
10586 * passes.c (init_optimization_passes): Add it.
10587 * recog.h: Protect against re-inclusion.
10588 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
10589 * doc/invoke.texi (-fcompare-elim): Document it.
10590 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
10591 * doc/tm.texi: Rebuild.
10593 2011-01-22 Nick Clifton <nickc@redhat.com>
10595 * config/rx/rx.md (cstoresf4): Pass comparison operator to
10596 rx_split_fp_compare.
10598 2011-01-22 Nick Clifton <nickc@redhat.com>
10600 * config/rx/rx.md (UNSPEC_CONST): New.
10601 (deallocate_and_return): Wrap the amount popped off the stack in
10602 an UNSPEC_CONST in order to stop it being rejected by
10603 -mmax-constant-size.
10604 (pop_and_return): Add a "(return)" rtx.
10605 (call): Drop the immediate operand.
10606 (call_internal): Likewise.
10607 (call_value): Likewise.
10608 (call_value_internal): Likewise.
10609 (sibcall_internal): Likewise.
10610 (sibcall_value_internal): Likewise.
10611 (sibcall): Likewise. Generate an explicit call using
10613 (sibcall_value): Likewise.
10614 (mov<>): FAIL if a constant operand is not legitimate.
10615 (addsi3_unpsec): New pattern.
10617 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
10618 (ok_for_max_constant): New function.
10619 (gen_safe_add): New function.
10620 (rx_expand_prologue): Use gen_safe_add.
10621 (rx_expand_epilogue): Likewise.
10622 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
10625 2011-01-21 Jeff Law <law@redhat.com>
10627 PR tree-optimization/47053
10628 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10629 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10630 statements are deleted.
10631 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
10632 is nonempty, then purge dead edges and cleanup the CFG.
10634 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10637 Temporarily revert:
10638 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10640 * tree-dfa.c (create_var_ann): Mark variable as used.
10642 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10644 PR middle-end/45566
10645 * except.c (convert_to_eh_region_ranges): Emit queued no-region
10646 notes from other section in hot/cold partitioning even if
10647 last_action is -3. Increment call_site_base.
10649 PR rtl-optimization/47366
10650 * fwprop.c (forward_propagate_into): Return bool. If
10651 any changes are made, -fnon-call-exceptions is used and
10652 REG_EH_REGION note is present, call purge_dead_edges
10653 and return true if it purged anything.
10654 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10655 any EH edges were purged.
10657 2011-01-21 Jeff Law <law@redhat.com>
10659 PR rtl-optimization/41619
10660 * caller-save.c (setup_save_areas): Break out code to determine
10661 which hard regs are live across calls by examining the reload chains
10662 so that it is always used.
10663 Eliminate code which checked REG_N_CALLS_CROSSED.
10665 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10667 PR tree-optimization/47355
10668 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10669 NOP has non-debug uses beyond PHIs in new_bb.
10671 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10674 * cfgexpand.c (account_used_vars_for_block): Only account vars
10675 that are annotated as used.
10676 (estimated_stack_frame_size): Don't set TREE_USED.
10677 * tree-dfa.c (create_var_ann): Mark variable as used.
10679 2011-01-21 Richard Guenther <rguenther@suse.de>
10681 PR middle-end/47395
10682 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10684 2011-01-21 Richard Guenther <rguenther@suse.de>
10686 PR tree-optimization/47365
10687 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10688 (vn_reference_lookup_pieces): Adjust.
10689 (vn_reference_lookup): Likewise.
10690 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10691 (vn_reference_lookup_3): Only look through kills if in
10692 VN_WALKREWRITE mode.
10693 (vn_reference_lookup_pieces): Adjust.
10694 (vn_reference_lookup): Likewise.
10695 (visit_reference_op_load): Likewise.
10696 (visit_reference_op_store): Likewise.
10697 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10698 (compute_avail): Likewise.
10699 (eliminate): Likewise.
10701 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10703 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10704 DECL_IGNORED_P non-reg vars if they are used.
10706 PR tree-optimization/47391
10707 * varpool.c (const_value_known_p): Return false if
10710 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
10713 * config/i386/i386.c (ix86_local_alignment): Handle
10714 case for va_list_type_node is nil.
10715 (ix86_canonical_va_list_type): Likewise.
10717 2011-01-21 Alan Modra <amodra@gmail.com>
10719 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10720 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10722 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10724 * config/arm/arm.md (define_attr type): Rename f_load
10725 and f_store to f_fpa_load and f_fpa_store. Update.
10726 (write_conflict): Deal with rename fallout.
10727 (*push_fp_multi): Likewise.
10728 * config/arm/fpa.md (f_load): Use f_fpa_load.
10729 (f_store): Use f_fpa_store.
10730 (*movsf_fpa): Likewise.
10731 (*movdf_fpa): Likewise.
10732 (*movxf_fpa): Likewise.
10733 (*thumb2_movsf_fpa): Likewise.
10734 (*thumb2_movdf_fpa): Likewise.
10735 (*thumb2_movxf_fpa): Likewise.
10736 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10737 f_loadd and f_stored.
10738 (*thumb2_movdi_vfp): Likewise.
10739 (*thumb2_movsf_vfp): Fix attribute to f_loads.
10740 (*thumb2_movsi_vfp): Likewise.
10741 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10742 Use f_loads instead of f_load.
10743 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10745 2011-01-20 Anatoly Sokolov <aesok@post.ru>
10747 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10748 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10749 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10750 (xtensa_mode_dependent_address_p): New function.
10751 (constantpool_address_p): Make static. Change return type to bool.
10752 Change argument type to const_rtx. Use CONST_INT_P predicate.
10754 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
10757 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10759 2011-01-20 Jakub Jelinek <jakub@redhat.com>
10762 * cfgexpand.c (expand_debug_expr): Instead of generating
10763 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10766 2011-01-20 Richard Guenther <rguenther@suse.de>
10768 PR middle-end/47370
10769 * tree-inline.c (remap_gimple_op_r): Recurse manually for
10770 the pointer operand of MEM_REFs.
10772 2011-01-20 Jakub Jelinek <jakub@redhat.com>
10774 PR tree-optimization/46130
10775 * ipa-split.c (consider_split): If return_bb contains non-virtual
10776 PHIs other than for retval or if split_function would not adjust it,
10779 2011-01-20 Richard Guenther <rguenther@suse.de>
10781 PR tree-optimization/47167
10782 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10783 Revert previous change, only avoid enumeral type changes.
10785 2011-01-19 Mike Stump <mikestump@comcast.net>
10787 * doc/tm.texi.in (BRANCH_COST): Englishify.
10788 * doc/tm.texi (BRANCH_COST): Likewise.
10790 2011-01-19 Dodji Seketeli <dodji@redhat.com>
10793 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10794 (gen_scheduled_generic_parms_dies): New functions.
10795 (gen_struct_or_union_type_die): Schedule template parameters DIEs
10796 generation for the end of CU compilation.
10797 (dwarf2out_finish): Generate template parameters DIEs here.
10799 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10802 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10803 debug bind stmt on merge edges.
10805 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10809 * function.c (instantiate_expr): Instantiate incoming rtl of
10810 implicit arguments, and recurse on VALUE_EXPRs.
10811 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10812 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10814 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10816 * c-parser.c (c_parser_for_statement): Initialize
10817 collection_expression.
10819 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10821 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10823 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10825 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10826 (LINK_SHLIB_SPEC): Don't use %(link_path).
10827 (SUBTARGET_EXTRA_SPECS): Remove link_path.
10829 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10831 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10832 (NO_SHARED_LIB_SUPPORT): Remove.
10833 (LINK_SHLIB_SPEC): Remove one conditional definition.
10835 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10837 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10839 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10840 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10841 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10842 %{call_shared} and conditionals on these options not being passed.
10843 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10846 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10848 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10851 * ipa-split.c: Spelling fixes.
10853 2011-01-19 Richard Henderson <rth@redhat.com>
10855 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10856 (*mulsi3): Likewise.
10858 * longlong.h [__mn10300__] (count_leading_zeros): New.
10859 [__mn10300__] (umul_ppmm, smul_ppmm): New.
10860 [__mn10300__] (add_ssaaaa, subddmmss): New.
10861 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10862 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10864 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10866 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10868 2011-01-19 Richard Henderson <rth@redhat.com>
10870 * config/mn10300/mn10300.md (addsi3_flags): New.
10871 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10872 (subsi3_flags, subc_internal, subdi3): New.
10873 (subdi3_internal, *subdi3_degenerate): New.
10874 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10876 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10877 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10878 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
10879 * config/mn10300/mn10300-protos.h: Update.
10880 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10881 (return_ret): Likewise. Rename from return_internal_regs.
10882 (return_internal): Remove.
10884 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10885 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10886 (mn10300_legitimate_constant_p): Likewise.
10887 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10888 (mn10300_frame_size): New.
10889 (mn10300_expand_prologue): Use it.
10890 (mn10300_expand_epilogue): Likewise.
10891 (mn10300_initial_offset): Likewise.
10892 * config/mn10300/mn10300-protos.h: Update.
10893 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10894 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10895 (prologue, epilogue, return_internal): Tidy output code.
10896 (mn10300_store_multiple_operation, return): Likewise.
10897 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10898 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10899 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10900 (load_pic, am33_load_pic): New.
10901 (mn10300_load_pic0, mn10300_load_pic1): New.
10903 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10904 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10905 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10906 (cc_flags_for_mode, cc_flags_for_code): New.
10907 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10908 overflow flag is not valid. Validate that the flags we need
10909 for the comparison are valid.
10910 (mn10300_output_cmp): Remove.
10911 (mn10300_output_add): New.
10912 (mn10300_select_cc_mode): Use cc_flags_for_code.
10913 (mn10300_split_cbranch): New.
10914 (mn10300_match_ccmode): New.
10915 (mn10300_split_and_operand_count): New.
10916 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10918 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10919 (addsi3): ... here. Use mn10300_output_add.
10920 (*addsi3_flags): New.
10921 (*am33_subsi3, *mn10300_subsi3): Merge...
10922 (subsi3): ... here. Use attribute isa.
10923 (*subsi3_flags): New.
10924 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
10926 (*am33_andsi3, *mn10300_andsi3): Merge...
10927 (andsi3): ... here.
10928 (*andsi3_flags): New.
10929 (andsi3 splitters): New.
10930 (*am33_iorsi3, *mn10300_iorsi3): Merge...
10931 (iorsi3): ... here.
10932 (*iorsi3_flags): New.
10933 (*am33_xorsi3, *mn10300_xorsi3): Merge...
10934 (xorsi3): ... here.
10935 (*xorsi3_flags): New.
10936 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10937 (one_cmplsi2): ... here.
10938 (*one_cmplsi2_flags): New.
10939 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
10940 instead of "dax" in constraints. Use mn10300_split_cbranch.
10941 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
10942 use matching constraints to eliminate a self-comparison.
10943 (*integer_conditional_branch): Rename from integer_conditional_branch.
10944 Use int_mode_flags to match CC_REG.
10945 (*cbranchsi4_btst, *btstsi): New.
10946 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
10947 mn10300_split_cbranch.
10948 (*am33_cmpsf): Rename from am33_cmpsf.
10949 (*float_conditional_branch): Rename from float_conditional_branch.
10950 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10951 (zero_extendqisi2): ... here.
10952 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10953 (zero_extendhisi2): ... here.
10954 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10955 (extendqisi2): ... here.
10956 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10957 (extendhisi2): ... here.
10958 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10959 (ashlsi3): ... here.
10960 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10961 (lshrsi3): ... here.
10962 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10963 (ashrsi3): ... here.
10964 (consecutive add peephole): Remove.
10965 * config/mn10300/predicates.md (label_ref_operand): New.
10966 (int_mode_flags): New.
10967 (CCZN_comparison_operator): New.
10969 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10970 (throughput_42_latency_43): New reservation.
10971 (mulsidi3, umulsidi3): New expanders.
10972 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
10973 the MDR register to allocation; separately allocate the low and
10974 high parts of the DImode result.
10975 (umulsidi3_internal): Similarly.
10976 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10977 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
10978 (udivsi3, umodsi3): Remove.
10979 (udivmodsi4, divmodsi4): New expanders.
10980 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
10981 (*divmodsi4): Simiarly.
10982 (ext_internal): New.
10984 * config/mn10300/constraints.md ("z"): New constraint.
10985 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10986 (FIXED_REGISTERS): Don't fix MDR.
10987 (CALL_USED_REGSITERS): Reformat nicely.
10988 (REG_ALLOC_ORDER): Add MDR.
10989 (enum regclass): Add MDR_REGS.
10990 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10991 (IRA_COVER_CLASSES): Add MDR_REGS.
10992 (REGNO_REG_CLASS): Handle MDR_REG.
10993 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10994 (mn10300_register_move_cost): Likewise.
10995 * config/mn10300/mn10300.md (MDR_REG): New.
10996 (*movsi_internal): Handle moves to/from MDR_REGS.
10998 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
11000 (mn10300_secondary_reload): Tidy combination reload classes.
11001 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
11002 addresses for AM33. Allow symbolic offsets for reg+imm.
11003 (mn10300_regno_in_class_p): New.
11004 (mn10300_legitimize_reload_address): New.
11005 * config/mn10300/mn10300.h (enum reg_class): Remove
11006 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
11007 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
11008 SP_OR_GENERAL_REGS.
11009 (REG_CLASS_NAMES): Update to match.
11010 (REG_CLASS_CONTENTS): Likewise.
11011 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
11012 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
11013 (REGNO_IN_RANGE_P): Remove.
11014 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
11015 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
11016 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
11017 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
11018 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
11019 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
11020 (REGNO_GENERAL_P): New.
11021 (HAVE_POST_MODIFY_DISP): New.
11022 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
11023 (LEGITIMIZE_RELOAD_ADDRESS): New.
11024 * config/mn10300/mn10300-protos.h: Update.
11026 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
11027 DATA_REGS for AM33 stack-pointer destination.
11028 (mn10300_preferred_output_reload_class): Likewise.
11029 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
11030 into a form appropriate for ...
11031 (TARGET_SECONDARY_RELOAD): New.
11032 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
11033 * config/mn10300/mn10300-protos.h: Update.
11034 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
11035 reload_insi; use the "A" constraint for the scratch; handle AM33
11036 moves of sp to non-address registers.
11038 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
11039 (*movqi_internal): ... here.
11040 (*am33_movhi, *mn10300_movhi): Merge into...
11041 (*movhi_internal): ... here.
11042 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
11043 as the source/destination of moves from/to SP.
11044 (movsf): Only allow for AM33-2.
11045 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
11046 any integer constant constraint. Only allow for AM33-2. Tidy
11047 all of the alternative outputs.
11048 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
11049 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
11051 (udivsi3, umodsi3): New patterns for MN103 only.
11053 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
11055 * doc/tm.texi.in: Spell out that a lack of register class unions
11057 * doc/tm.texi: Regenerate.
11059 2011-01-19 Jakub Jelinek <jakub@redhat.com>
11061 PR rtl-optimization/47337
11062 * dce.c (check_argument_store): New function.
11063 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
11065 PR tree-optimization/47290
11066 * tree-eh.c (infinite_empty_loop_p): New function.
11067 (cleanup_empty_eh): Use it.
11069 2011-01-18 Steve Ellcey <sje@cup.hp.com>
11072 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
11073 (a64_expand_widen_sum): Ditto.
11074 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
11075 (vec_extract_evenodd_help): Ditto.
11076 (vec_extract_evenv4hi): Ditto.
11077 (vec_extract_oddv4hi): Ditto.
11078 (vec_extract_evenv2si): Ditto.
11079 (vec_extract_oddv2si): Ditto.
11080 (vec_extract_evenv2sf): Ditto.
11081 (vec_extract_oddv2sf): Ditto.
11082 (vec_pack_trunc_v4hi: Ditto.
11083 (vec_pack_trunc_v2si): Ditto.
11084 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
11085 (vec_interleave_highv8qi): Ditto.
11087 (vec_extract_oddv8qi): Ditto.
11088 (vec_interleave_lowv4hi): Ditto.
11089 (vec_interleave_highv4hi): Ditto.
11090 (vec_interleave_lowv2si): Ditto.
11091 (vec_interleave_highv2si): Ditto.
11093 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11095 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
11096 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
11097 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
11098 (pa_c_mode_for_suffix): New.
11099 (TARGET_EXPAND_BUILTIN): Define.
11100 (TARGET_C_MODE_FOR_SUFFIX): Define.
11101 (pa_builtins): Define.
11102 (pa_init_builtins): Register __float128 type and init new support
11104 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
11105 * config/pa/quadlib.c (_U_Qfcopysign): New.
11107 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
11109 PR middle-end/46894
11110 * explow.c (allocate_dynamic_stack_space): Do not assume more than
11111 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
11114 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11116 PR tree-optimization/47179
11117 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
11118 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
11120 2011-01-18 Richard Guenther <rguenther@suse.de>
11122 PR rtl-optimization/47216
11123 * emit-rtl.c: Include tree-flow.h.
11124 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
11125 of replicating it with different semantics.
11126 * Makefile.in (emit-rtl.o): Adjust.
11128 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11130 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
11131 (cortex_a9_dp): Handle neon types correctly.
11133 2011-01-18 Jakub Jelinek <jakub@redhat.com>
11135 PR rtl-optimization/47299
11136 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
11137 subtarget. Use normal multiplication if both operands are constants.
11138 * expmed.c (expand_widening_mult): Don't try to optimize constant
11139 multiplication if op0 has VOIDmode. Convert op1 constant to mode
11142 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11144 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
11145 spacing after 'e.g.', typos, comma, hyphenation.
11147 2011-01-17 Richard Henderson <rth@redhat.com>
11149 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
11150 (rx_restricted_mem_operand): New.
11151 (rx_shift_operand): Use register_operand.
11152 (rx_source_operand, rx_compare_operand): Likewise.
11153 * config/rx/rx.md (addsi3_flags): New expander.
11154 (adddi3): Rewrite as expander.
11155 (adc_internal, *adc_flags, adddi3_internal): New patterns.
11156 (subsi3_flags): New expander.
11157 (subdi3): Rewrite as expander.
11158 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
11160 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
11161 (rx_init_builtins): Remove sat builtin.
11162 (rx_expand_builtin): Likewise.
11163 * config/rx/rx.md (ssaddsi3): New.
11164 (*sat): Rename from sat. Represent the CC_REG input.
11166 * config/rx/predicates.md (rshift_operator): New.
11167 * config/rx/rx.c (rx_expand_insv): Remove.
11168 * config/rx/rx-protos.h: Update.
11169 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
11170 operand to the canonical position.
11171 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
11172 (*bitclr, *bitclr_in_memory): Similarly.
11173 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
11174 (insv): Retain the zero_extract in the expansion.
11176 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
11177 (bswaphi2, bitinvert, revw): Likewise.
11179 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
11180 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
11181 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
11182 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
11183 (bitset, bitset_in_memory): Likewise.
11184 (bitinvert, bitinvert_in_memory): Likewise.
11185 (bitclr, bitclr_in_memory): Likewise.
11186 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
11187 (rx_strend, rx_cmpstrn): Likewise.
11188 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
11189 (bitop peep2 patterns): Remove.
11191 * config/rx/rx.c (rx_match_ccmode): New.
11192 * config/rx/rx-protos.h: Update.
11193 * config/rx/rx.md (abssi2): Clobber, don't set flags.
11194 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
11195 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
11196 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
11197 (fix_truncsfsi2, floatsisf2): Likewise.
11198 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
11199 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
11200 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
11201 (*subsi3_flags, *xorsi3_flags): New.
11203 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
11205 * config/rx/rx.c (rx_print_operand): Remove workaround for
11206 unsplit comparison operations.
11208 * config/rx/rx.md (movsicc): Split after reload.
11209 (*movsicc): Merge *movsieq and *movsine via match_operator.
11210 (*stcc): New pattern.
11212 * config/rx/rx.c (rx_float_compare_mode): Remove.
11213 * config/rx/rx.h (rx_float_compare_mode): Remove.
11214 * config/rx/rx.md (cstoresi4): Split after reload.
11215 (*sccc): New pattern.
11217 * config/rx/predicates.md (label_ref_operand): New.
11218 (rx_z_comparison_operator): New.
11219 (rx_zs_comparison_operator): New.
11220 (rx_fp_comparison_operator): New.
11221 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
11222 Validate that the flags are set properly for the comparison.
11223 (rx_gen_cond_branch_template): Remove.
11224 (rx_cc_modes_compatible): Remove.
11225 (mode_from_flags): New.
11226 (flags_from_code): Rename from flags_needed_for_conditional.
11227 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
11228 (rx_select_cc_mode): Likewise.
11229 (rx_split_fp_compare): New.
11230 (rx_split_cbranch): New.
11231 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
11232 (*cbranchsi4): Use match_operator and rx_split_cbranch.
11233 (*cbranchsf4): Similarly.
11234 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
11235 match_operator and rx_split_cbranch.
11236 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
11237 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
11238 (*cmpsi): Rename from cmpsi.
11239 (*tstsi): Rename from tstsi.
11240 (*cmpsf): Rename from cmpsf; use CC_Fmode.
11241 (*conditional_branch): Rename from conditional_branch.
11242 (*reveresed_conditional_branch): Remove.
11243 (b<code>): Remove expander.
11244 * config/rx/rx-protos.h: Update.
11246 * config/rx/rx.c (rx_compare_redundant): Remove.
11247 * config/rx/rx.md (cmpsi): Don't use it.
11248 * config/rx/rx-protos.h: Update.
11250 * config/rx/rx-modes.def (CC_F): New mode.
11251 * config/rx/rx.c (rx_select_cc_mode): New.
11252 * config/rx/rx.h (SELECT_CC_MODE): Use it.
11253 * config/rx/rx-protos.h: Update.
11255 2011-01-17 Richard Henderson <rth@redhat.com>
11257 * except.c (dump_eh_tree): Fix stray ; after for statement.
11259 2011-01-17 Richard Guenther <rguenther@suse.de>
11261 PR tree-optimization/47313
11262 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
11263 handling before copying the body. Properly deal with
11264 by-reference result in SSA form.
11266 2011-01-17 Ian Lance Taylor <iant@google.com>
11269 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
11270 (struct_value_alias_set): Don't define.
11271 (sparc_option_override): Don't set sparc_sr_alias_set and
11272 struct_value_alias_set.
11273 (save_or_restore_regs): Use gen_frame_mem rather than calling
11275 (sparc_struct_value_rtx): Likewise.
11277 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
11280 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
11281 (_mm_maskstore_pd): Likewise.
11282 (_mm_maskload_ps): Likewise.
11283 (_mm_maskstore_ps): Likewise.
11284 (_mm256_maskload_pd): Change mask to __m256i.
11285 (_mm256_maskstore_pd): Likewise.
11286 (_mm256_maskload_ps): Likewise.
11287 (_mm256_maskstore_ps): Likewise.
11289 * config/i386/i386-builtin-types.def: Updated.
11290 (ix86_expand_special_args_builtin): Likewise.
11292 * config/i386/i386.c (bdesc_special_args): Update
11293 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
11294 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
11295 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
11296 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
11298 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
11299 Use <avxpermvecmode> on mask register.
11300 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
11302 2011-01-17 Olivier Hainque <hainque@adacore.com>
11303 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11304 Eric Botcazou <ebotcazou@adacore.com>
11307 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
11308 if <= USHRT_MAX in 32-bit mode.
11310 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11312 * doc/install.texi (Configuration, Specific): Wrap long
11313 lines in examples. Allow line wrapping in long options
11314 and URLs where beneficial for PDF output.
11316 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
11318 * config/mips/mips.c (mips_classify_symbol): Don't return
11319 SYMBOL_PC_RELATIVE for nonlocal labels.
11321 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
11323 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
11325 2011-01-15 Jan Hubicka <jh@suse.cz>
11327 PR tree-optimization/47276
11328 * ipa.c (function_and_variable_visibility): Do not try to mark alias
11329 declarations as needed.
11331 2011-01-15 Martin Jambor <mjambor@suse.cz>
11333 * common.opt (fdevirtualize): New flag.
11334 * doc/invoke.texi (Option Summary): Document it.
11335 * opts.c (default_options_table): Add devirtualize flag.
11336 * ipa-prop.c (detect_type_change): Return immediately if
11337 devirtualize flag is not set.
11338 (detect_type_change_ssa): Likewise.
11339 (compute_known_type_jump_func): Likewise.
11340 (ipa_analyze_virtual_call_uses): Likewise.
11342 2011-01-14 Martin Jambor <mjambor@suse.cz>
11344 PR tree-optimization/45934
11345 PR tree-optimization/46302
11346 * ipa-prop.c (type_change_info): New type.
11347 (stmt_may_be_vtbl_ptr_store): New function.
11348 (check_stmt_for_type_change): Likewise.
11349 (detect_type_change): Likewise.
11350 (detect_type_change_ssa): Likewise.
11351 (compute_complex_assign_jump_func): Check for dynamic type change.
11352 (compute_complex_ancestor_jump_func): Likewise.
11353 (compute_known_type_jump_func): Likewise.
11354 (compute_scalar_jump_functions): Likewise.
11355 (ipa_analyze_virtual_call_uses): Likewise.
11356 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
11358 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11360 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
11361 * config/i386/i386.opt (msse5): New Alias.
11363 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11365 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11366 * config/sparc/linux64.h (CC1_SPEC): Likewise.
11367 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11368 * config/sparc/sparc.h (CC1_SPEC): Likewise.
11370 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11372 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
11374 * config/sparc/linux64.h (CC1_SPEC): Likewise.
11375 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11376 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
11377 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
11379 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
11381 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11383 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
11385 2011-01-14 Mike Stump <mikestump@comcast.net>
11387 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
11388 * config/fr30/fr30.md: Likweise
11389 (movsi_push): Likewise.
11390 (movsi_pop): Likewise.
11391 (enter_func): Likewise.
11392 * config/moxie/moxie.md (movsi_push): Likewise.
11393 (movsi_pop): Likewise.
11395 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11397 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
11398 %{no_archive} %{exact_version}.
11399 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
11400 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
11401 %{no_archive} %{exact_version}.
11402 * config/mips/openbsd.h (LINK_SPEC): Likewise.
11403 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
11404 * config/mips/vxworks.h: Likewise.
11406 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11408 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
11410 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11412 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
11413 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
11415 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11417 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
11420 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11422 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
11424 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
11425 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
11427 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
11428 Don't handle -shlib.
11430 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11432 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
11433 (CC1_SPEC): Don't handle -profile.
11435 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11437 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
11438 * config/mips/mips.h (CC1_SPEC): Likewise.
11440 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11442 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
11443 * config/mips/mips.h (CC1_SPEC): Likewise.
11445 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11447 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
11448 * config/m32r/linux.h (LINK_SPEC): Likewise.
11449 * config/mips/linux.h (LINK_SPEC): Likewise.
11450 * config/mips/linux64.h (LINK_SPEC): Likewise.
11451 * config/sparc/linux.h (LINK_SPEC): Likewise.
11452 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11453 LINK_SPEC): Likewise.
11454 * config/xtensa/linux.h (LINK_SPEC): Likewise.
11456 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11458 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
11460 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
11462 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11464 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
11465 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11467 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11469 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
11471 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11473 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
11474 supports -Bstatic/-Bdynamic.
11475 * configure: Regenerate.
11477 2011-01-14 Jan Hubicka <jh@suse.cz>
11478 Jack Howarth <howarth@bromo.med.uc.edu>
11481 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
11482 when checking debug_info_level. Test write_symbols instead of
11483 debug_hooks->var_location when setting flag_var_tracking_uninit.
11485 2011-01-14 Richard Guenther <rguenther@suse.de>
11487 PR tree-optimization/47179
11488 * target.def (ref_may_alias_errno): New target hook.
11489 * targhooks.h (default_ref_may_alias_errno): Declare.
11490 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
11491 (default_ref_may_alias_errno): New function.
11492 * target.h (struct ao_ref_s): Declare.
11493 * tree-ssa-alias.c: Include target.h.
11494 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
11495 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
11496 (targhooks.o): Likewise.
11497 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
11498 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
11500 2011-01-14 Richard Guenther <rguenther@suse.de>
11502 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
11504 2011-01-14 Richard Guenther <rguenther@suse.de>
11506 PR tree-optimization/47280
11507 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
11508 return CFG changes.
11509 (tree_ssa_forward_propagate_single_use_vars): Deal with
11510 CFG changes from associate_plusminus.
11512 2011-01-14 Richard Guenther <rguenther@suse.de>
11514 PR middle-end/47281
11516 2011-01-11 Richard Guenther <rguenther@suse.de>
11518 PR tree-optimization/46076
11519 * tree-ssa.c (useless_type_conversion_p): Conversions from
11520 unprototyped to empty argument list function types are useless.
11522 2011-01-14 Richard Guenther <rguenther@suse.de>
11524 PR tree-optimization/47286
11525 * tree-ssa-structalias.c (new_var_info): Register variables are global.
11527 2011-01-14 Martin Jambor <mjambor@suse.cz>
11529 PR middle-end/46823
11530 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
11532 2011-01-13 Anatoly Sokolov <aesok@post.ru>
11534 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
11535 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11536 * config/xtensa/xtensa.c (xtensa_libcall_value,
11537 xtensa_function_value_regno_p): New functions.
11538 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11540 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
11543 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
11545 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
11546 New function prototype.
11547 * config/i386/winnt.c (i386_pe_assemble_visibility):
11548 Warn only if attribute was specified by user.
11550 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
11553 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
11555 (floatunsdidf2_fcfidu): Ditto.
11557 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11559 * config/s390/s390.c (print_operand_address): Replace 'error' with
11560 'output_operand_lossage'.
11561 (print_operand): Likewise.
11563 2011-01-13 Jeff Law <law@redhat.com>
11565 PR rtl-optimization/39077
11566 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
11567 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
11568 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
11569 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
11570 * gcse.c (prune_insertions_deletions): New function.
11571 (compute_pre_data): Use it.
11573 2011-01-13 Dodji Seketeli <dodji@redhat.com>
11576 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
11578 (prune_unused_types_mark): Use it.
11580 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
11582 PR rtl-optimization/45352
11583 * sel-sched.c: Update copyright years.
11584 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
11585 in the advancing loop when we have issued issue_rate insns.
11587 2011-01-12 Richard Henderson <rth@redhat.com>
11589 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
11590 (TARGET_MD_ASM_CLOBBERS): New.
11592 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
11593 (TARGET_DELEGITIMIZE_ADDRESS): New.
11595 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
11596 (clzsi2, *bsch): New patterns.
11598 * config/mn10300/mn10300.md (INT): New mode iterator.
11599 (*mov<INT>_clr): New pattern, and peep2 to generate it.
11601 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
11602 flag_split_wide_types.
11604 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
11605 (mn10300_trampoline_init): Rewrite without a template, an immediate
11606 load and a direct branch.
11607 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
11609 2011-01-12 Anatoly Sokolov <aesok@post.ru>
11611 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11612 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
11613 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
11614 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11616 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
11619 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
11622 2011-01-12 Jan Hubicka <jh@suse.cz>
11625 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11626 (PLUGIN_COND_CLOSE): New macro.
11627 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11629 2011-01-12 Richard Guenther <rguenther@suse.de>
11632 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11633 register variables in a MEM_REF.
11635 2011-01-12 Joseph Myers <joseph@codesourcery.com>
11637 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11638 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11639 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11640 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11641 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11642 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11643 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11644 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11645 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11646 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11647 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11648 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11649 * config/gnu-user.h: New. Copied from linux.h.
11650 (LINUX_TARGET_STARTFILE_SPEC): Rename to
11651 GNU_USER_TARGET_STARTFILE_SPEC.
11652 (LINUX_TARGET_ENDFILE_SPEC): Rename to
11653 GNU_USER_TARGET_ENDFILE_SPEC.
11654 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11655 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11656 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11657 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11658 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11659 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11660 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11661 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11662 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11663 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11664 * config/arm/linux-eabi.h (CC1_SPEC): Use
11665 GNU_USER_TARGET_CC1_SPEC.
11666 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11667 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11668 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11669 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11670 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11671 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11672 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11673 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11675 2011-01-12 Richard Guenther <rguenther@suse.de>
11678 * doc/invoke.texi (ffast-math): Document it is turned on
11681 2011-01-12 Jan Hubicka <jh@suse.cz>
11683 PR tree-optimization/47233
11684 * opts.c (common_handle_option): Disable ipa-reference with profile
11687 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11689 * c-parser.c (c_parser_objc_at_property_declaration): Improved
11692 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11694 * c-parser.c (c_lex_one_token): Updated and reindented some
11695 comments. No changes in code.
11697 2011-01-11 Ian Lance Taylor <iant@google.com>
11699 * godump.c (go_output_var): Don't output the variable if there is
11700 already a type with the same name.
11702 2011-01-11 Ian Lance Taylor <iant@google.com>
11704 * godump.c (go_format_type): Don't generate float80.
11706 2011-01-11 Richard Henderson <rth@redhat.com>
11708 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11709 declaration. Rewrite for both speed and size.
11710 (mn10300_address_cost_1): Remove.
11711 (mn10300_register_move_cost): New.
11712 (mn10300_memory_move_cost): New.
11713 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
11714 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
11715 extensions, shifts, BSWAP, CLZ.
11716 (mn10300_wide_const_load_uses_clr): Remove.
11717 (TARGET_REGISTER_MOVE_COST): New.
11718 (TARGET_MEMORY_MOVE_COST): New.
11719 * config/mn10300/mn10300-protos.h: Update.
11720 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11722 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11723 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11724 * config/mn10300/mn10300-protos.h: Update.
11725 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11726 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11727 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11728 (*test_int_bitfield, *test_byte_bitfield): Remove.
11729 (*bit_test, *subreg_bit_test): Remove.
11730 * config/mn10300/predicates.md (const_8bit_operand): Remove.
11732 * config/mn10300/constraints.md ("c"): Rename from "A".
11733 ("A", "D"): New constraint letters.
11734 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11735 (fmssf4, fnmasf4, fnmssf4): Likewise.
11737 * config/mn10300/mn10300.md (isa): New attribute.
11738 (enabled): New attribute.
11740 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11741 (abssf2, negsf2): Define only for hardware fp.
11742 (sqrtsf2): Reformat.
11743 (addsf3, subsf3, mulsf3): Merge expander and insn.
11745 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11746 (DEBUGGER_AUTO_OFFSET): Remove.
11747 (DEBUGGER_ARG_OFFSET): Remove.
11749 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11750 Emit register stores with the same offsets as the hardware.
11751 (mn10300_store_multiple_operation): Don't check that the register
11752 save offsets are monotonic.
11753 * config/mn10300/mn10300-protos.h: Update.
11755 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11757 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11758 in terms of the value on the stack, not the MDR register.
11760 2011-01-11 Jan Hubicka <jh@suse.cz>
11764 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11765 (symbol_alias_set_destroy, symbol_alias_set_contains,
11766 propagate_aliases_backward): Declare.
11767 * lto-streamer-out.c (struct sets): New sturcture.
11768 (trivally_defined_alias): New function.
11769 (output_alias_pair_p): Rewrite.
11770 (output_unreferenced_globals): Fix output of alias pairs.
11771 (produce_symtab): Likewise.
11772 * ipa.c (function_and_variable_visibility): Set weak alias destination
11774 * varasm.c (symbol_alias_set_t): Remove.
11775 (symbol_alias_set_destroy): Export.
11776 (propagate_aliases_forward, propagate_aliases_backward): New functions
11778 (compute_visible_aliases): ... this one; remove.
11779 (trivially_visible_alias): New
11780 (trivially_defined_alias): New.
11781 (remove_unreachable_alias_pairs): Rewrite.
11782 (finish_aliases_1): Reorganize code checking if alias is defined.
11783 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11786 2011-01-11 Richard Guenther <rguenther@suse.de>
11788 PR tree-optimization/46076
11789 * tree-ssa.c (useless_type_conversion_p): Conversions from
11790 unprototyped to empty argument list function types are useless.
11792 2011-01-11 Richard Guenther <rguenther@suse.de>
11794 PR middle-end/45235
11795 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11796 volatile MEMs as MEM_READONLY_P.
11798 2011-01-11 Richard Guenther <rguenther@suse.de>
11800 PR tree-optimization/47239
11801 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11803 2011-01-11 Jeff Law <law@redhat.com>
11805 PR tree-optimization/47086
11806 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11807 IVs from statements that might throw.
11809 2011-01-10 Jan Hubicka <jh@suse.cz>
11812 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11814 2011-01-10 Jan Hubicka <jh@suse.cz>
11817 * profile.c (read_profile_edge_counts): Ignore profile inconistency
11818 when correcting profile.
11820 2011-01-10 Jan Hubicka <jh@suse.cz>
11823 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11824 DECL_FINI_PRIORITY.
11825 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11826 Restore DECL_FINI_PRIORITY.
11828 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11830 * doc/gimple.texi: Fix quoting of multi-word return values in
11831 @deftypefn statements. Ensure presence of return value. Wrap
11832 overlong @deftypefn lines.
11833 (is_gimple_operand, is_gimple_min_invariant_address): Remove
11834 descriptions of removed functions.
11835 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11836 of multi-word return value in @deftypefn statement.
11838 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11840 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11841 (Conditional Expressions, Logical Operators)
11842 (Statement and operand traversals): Do not indent smallexample
11843 code. Fix duplicate function argument in example.
11845 2011-01-10 Jeff Law <law@redhat.com>
11847 PR tree-optimization/47141
11848 * ipa-split.c (split_function): Handle case where we are
11849 returning a value and the return block has a virtual operand phi.
11851 2011-01-10 Jan Hubicka <jh@suse.cz>
11853 PR tree-optimization/47234
11854 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11855 (pass_feedback_split_functions): Declare.
11856 * passes.c (init_optimization_passes): Add ipa-split as subpass of
11858 * ipa-split.c (gate_split_functions): Update comments; disable
11859 split-functions for profile_arc_flag and branch_probabilities.
11860 (gate_feedback_split_functions): New function.
11861 (execute_feedback_split_functions): New function.
11862 (pass_feedback_split_functions): New global var.
11864 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
11867 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11868 calling gimple_call_set_cannot_inline.
11870 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
11872 * config/darwin-sections.def: Remove unused section.
11874 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
11877 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11879 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
11882 * c-parser.c (c_parser_declaration_or_fndef): Improved
11885 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
11887 * config/i386/winnt.c (i386_pe_start_function): Make sure
11888 to switch back to function's section.
11890 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
11894 * plugin.c: Move include of dlfcn.h from here...
11895 * system.h: ... to here.
11897 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11899 * doc/cpp.texi (C++ Named Operators): Fix markup for header
11901 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11902 two extra empty pages in PDF output.
11904 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
11907 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11908 for error recovery purposes behave as if it was not specified so
11909 that the default type is usd.
11911 2011-01-07 Jan Hubicka <jh@suse.cz>
11913 PR tree-optmization/46469
11914 * ipa.c (function_and_variable_visibility): Clear needed flags on
11915 nodes with external decls; handle weakrefs merging correctly.
11917 2011-01-07 Joseph Myers <joseph@codesourcery.com>
11919 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11922 2011-01-07 Jan Hubicka <jh@suse.cz>
11924 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11925 and no longer claim that gold is required for linker plugin.
11926 * configure: Regenerate.
11927 * gcc.c (PLUGIN_COND): New macro.
11928 (LINK_COMMAND_SPEC): Use it.
11929 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11930 * config.in (HAVE_LTO_PLUGIN): New.
11931 * configure.ac (--with-lto-plugin): New parameter; autodetect
11934 2011-01-07 Jan Hubicka <jh@suse.cz>
11936 PR tree-optimization/46367
11937 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11938 when we can update original.
11939 (cgraph_mark_inline_edge): Sanity check.
11940 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11942 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11944 * config/spu/spu.h (ASM_COMMENT_START): Define.
11946 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
11949 * gcc.c (%>S): New.
11950 (SWITCH_KEEP_FOR_GCC): Likewise.
11951 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11952 (do_spec_1): Handle "%>".
11954 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11956 2011-01-07 Jakub Jelinek <jakub@redhat.com>
11959 * config/i386/i386.c (ix86_delegitimize_address): If
11960 simplify_gen_subreg fails, return orig_x.
11963 * value-prof.c (gimple_stringop_fixed_value): Handle
11964 lhs of the call properly.
11966 2011-01-07 Jan Hubicka <jh@suse.cz>
11969 * lto-opt.c (lto_reissue_options): Set flag_shlib.
11971 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11973 * target.def (function_switched_text_sections): New hook.
11974 * doc/tm.texi: Regenerated.
11975 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11976 * final.c (default_function_switched_text_sections): New.
11977 (final_scan_insn): Call function_switched_text_sections when a
11978 mid-function section change occurs.
11979 * output.h (default_function_switched_text_sections): Declare.
11980 * config/darwin-protos.h (darwin_function_switched_text_sections):
11982 * config/darwin.c (darwin_function_switched_text_sections): New.
11983 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11985 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11987 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
11988 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
11989 the secondary code fragment when outputting for DWARF == 2.
11991 2011-01-07 Anatoly Sokolov <aesok@post.ru>
11993 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11994 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11996 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11997 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11999 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
12002 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
12003 when it is not empty.
12005 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
12008 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
12009 (case ${target}): Add btver1.
12010 * config/i386/driver-i386.c (host_detect_local_cpu): Let
12011 -march=native recognize btver1 processors.
12012 * config/i386/i386-c.c (ix86_target_macros_internal): Add
12013 btver1 def_and_undef
12014 * config/i386/i386.c (struct processor_costs btver1_cost): New
12016 (m_BTVER1): New definition.
12017 (m_AMD_MULTIPLE): Includes m_BTVER1.
12018 (initial_ix86_tune_features): Add btver1 tune.
12019 (processor_target_table): Add btver1 entry.
12020 (static const char *const cpu_names): Add btver1 entry.
12021 (software_prefetching_beneficial_p): Add btver1.
12022 (ix86_option_override_internal): Add btver1 instruction sets.
12023 (ix86_issue_rate): Add btver1.
12024 (ix86_adjust_cost): Add btver1.
12025 * config/i386/i386.h (TARGET_BTVER1): New definition.
12026 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
12027 (enum processor_type): Add PROCESSOR_BTVER1.
12028 * config/i386/i386.md (define_attr "cpu"): Add btver1.
12030 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12033 * config/i386/i386.c (legitimize_tls_address)
12034 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
12035 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
12036 (tls_initial_exec_64_sun): New pattern.
12038 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
12040 * doc/invoke.texi (Overall Options): Improve wording and markup
12041 of the description of -wrapper.
12043 2011-01-06 Joseph Myers <joseph@codesourcery.com>
12045 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
12046 rdynamic, threads): New Driver options.
12048 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12051 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
12052 if coming from .tdata.
12053 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
12055 2011-01-06 Jan Hubicka <jh@suse.cz>
12058 * collect2.c (main): Do not enable LTOmode when plugin is active.
12060 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12063 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
12064 --version output if supported.
12065 * configure: Regenerate.
12067 2011-01-06 Joseph Myers <joseph@codesourcery.com>
12069 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
12072 2011-01-06 Jakub Jelinek <jakub@redhat.com>
12075 * c-convert.c (convert): When converting a complex expression
12076 other than COMPLEX_EXPR to a different complex type, ensure
12077 c_save_expr is called instead of save_expr, unless in_late_binary_op.
12078 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
12079 when converting COMPLEX_TYPE.
12081 2011-01-06 Ira Rosen <irar@il.ibm.com>
12083 PR tree-optimization/47139
12084 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
12085 only the last reduction value is used outside the loop. Update
12088 2011-01-05 Joseph Myers <joseph@codesourcery.com>
12090 * config/rtems.opt: New.
12091 * config.gcc (*-*-rtems*): Use rtems.opt.
12093 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
12095 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
12096 processors do not support 3DNow instructions.
12098 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12100 * config/spu/spu.c (spu_option_override): Set parameter
12101 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
12103 2011-01-05 Jan Hubicka <jh@suse.cz>
12105 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
12106 at the command line.
12108 2011-01-05 Martin Jambor <mjambor@suse.cz>
12111 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
12112 deltas on streamed outgoing edges.
12113 (output_node_opt_summary): Output info for outgoing edges only when
12114 the node is in new parameter set.
12115 (output_cgraph_opt_summary): New parameter set, passed to the two
12116 aforementioned functions. Update its forward declaration and its
12119 2011-01-05 Tom Tromey <tromey@redhat.com>
12121 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
12122 operator to c_finish_omp_atomic.
12123 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
12124 (build_unary_op): Update.
12125 (build_modify_expr): Update.
12126 (build_asm_expr): Update.
12128 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12130 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
12131 newly inserted insns.
12132 (pad_bb): Likewise.
12133 (spu_emit_branch_hint): Likewise.
12134 (insert_hbrp_for_ilb_runout): Likewise.
12135 (spu_machine_dependent_reorg): Call df_finish_pass after
12136 schedule_insns returns.
12138 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12140 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
12142 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
12144 PR tree-optimization/47005
12145 * tree-sra.c (struct access): Add 'non_addressable' bit.
12146 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
12147 (decide_one_param_reduction): Return 0 if the parameter is passed by
12148 reference and one of the accesses in the group is non_addressable.
12150 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
12152 PR tree-optimization/47056
12153 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
12154 (mark_load): Likewise. Handle FUNCTION_DECL specially.
12155 (mark_store): Likewise. Pass STMT to ipa_record_reference.
12157 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
12159 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
12160 initializer. Skip view conversions from aggregate types.
12162 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
12165 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
12167 2011-01-04 Philipp Thomas <pth@suse.de>
12169 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
12172 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12174 * function.c (thread_prologue_and_epilogue_insns): Do not crash
12175 on empty epilogue sequences.
12177 2011-01-04 Joseph Myers <joseph@codesourcery.com>
12179 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
12180 non-static): New Driver options.
12182 2011-01-04 Jie Zhang <jie@codesourcery.com>
12185 * gcc.c (default_compilers[]): Set combinable field to 0
12186 for all assembly languages.
12188 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
12190 * config/mips/loongson3a.md: New file.
12191 * config/mips/mips.md: Include loongson3a.md.
12192 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
12195 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
12197 PR middle-end/47017
12198 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
12199 instead of convert_memory_address_addr_space on the base expression.
12201 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12203 * config/spu/spu.c (spu_option_override): Update error text
12204 for bad -march= / -mtune= values.
12206 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12208 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
12209 if branch-hint optimization will be performed.
12211 2011-01-03 Jakub Jelinek <jakub@redhat.com>
12213 PR tree-optimization/47148
12214 * ipa-split.c (split_function): Convert arguments to
12215 DECL_ARG_TYPE if possible.
12217 PR tree-optimization/47155
12218 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
12219 when computing uns.
12221 PR rtl-optimization/47157
12222 * combine.c (try_combine): If undobuf.other_insn becomes
12223 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
12224 and set *new_direct_jump_p too.
12226 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
12228 PR tree-optimization/47021
12229 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
12231 2011-01-03 Jakub Jelinek <jakub@redhat.com>
12233 * gcc.c (process_command): Update copyright notice dates.
12234 * gcov.c (print_version): Likewise.
12235 * gcov-dump.c (print_version): Likewise.
12236 * mips-tfile.c (main): Likewise.
12237 * mips-tdump.c (main): Likewise.
12239 2011-01-03 Martin Jambor <mjambor@suse.cz>
12241 PR tree-optimization/46801
12242 * tree-sra.c (type_internals_preclude_sra_p): Check whether
12243 aggregate fields start at byte boundary instead of the bit-field flag.
12245 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
12248 * gcc.c (main): Revert revision 168407.
12250 2011-01-03 Martin Jambor <mjambor@suse.cz>
12252 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
12254 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12256 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
12257 vector optab to expand vector/scalar shift, update gimple to vector.
12259 2011-01-03 Martin Jambor <mjambor@suse.cz>
12261 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
12264 2011-01-03 Martin Jambor <mjambor@suse.cz>
12266 PR tree-optimization/46984
12267 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
12269 (cgraph_create_indirect_edge): Fixed line length.
12270 (cgraph_indirect_call_info): Declare.
12271 (cgraph_make_edge_direct) Update declaration.
12272 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
12273 (cgraph_create_indirect_edge): Use it.
12274 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
12276 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
12277 the new thunk_delta representation.
12278 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
12280 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
12281 (ipa_read_indirect_edge_info): Likewise.
12282 * lto-cgraph.c (output_edge_opt_summary): New function.
12283 (output_node_opt_summary): Call it on all outgoing edges.
12284 (input_edge_opt_summary): New function.
12285 (input_node_opt_summary): Call it on all outgoing edges.
12287 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
12290 * gcc.c (main): Don't check have_o when settting combine_inputs.
12292 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
12294 * regrename.c: Add general comment describing the pass.
12295 (struct du_head): Remove 'length' field.
12296 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
12297 (regrename_optimize): Do not sort chains. Rework comments, add others.
12298 Force renaming to the preferred class (if any) in the first pass and do
12299 not consider registers that belong to it in the second pass.
12300 (create_new_chain): Do not set 'length' field.
12301 (scan_rtx_reg): Likewise.
12303 2011-01-02 Jakub Jelinek <jakub@redhat.com>
12305 PR tree-optimization/47140
12306 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
12307 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
12308 to bit_value_binop.
12310 PR rtl-optimization/47028
12311 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
12312 parm_birth_insn instead of at the beginning of first bb.
12314 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
12316 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
12317 Remove the word "see" before "@pxref".
12318 * doc/rtl.texi: Remove the word "see" before "@pxref".
12320 2011-01-01 Jan Hubicka <jh@suse.cz>
12322 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
12325 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
12328 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
12331 Copyright (C) 2011 Free Software Foundation, Inc.
12333 Copying and distribution of this file, with or without modification,
12334 are permitted in any medium without royalty provided the copyright
12335 notice and this notice are preserved.