1 2011-04-28 Richard Guenther <rguenther@suse.de>
5 2011-04-28 Richard Guenther <rguenther@suse.de>
7 * tree-ssa-structalias.c (solve_constraints): Build succ graph
10 2011-04-28 Richard Guenther <rguenther@suse.de>
12 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
13 (debug_constraint): Do it here.
14 (dump_constraints): And here.
15 (rewrite_constraints): And here.
16 (dump_constraint_edge): Remove.
17 (dump_constraint_graph): Rewrite to produce DOT output.
18 (solve_constraints): Build succ graph as late as possible.
19 Dump constraint graphs before and after solving.
21 2011-04-28 Richard Guenther <rguenther@suse.de>
23 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24 New function split out from ...
25 (find_func_aliases): ... here. Call it.
26 (find_func_aliases_for_call): Likewise.
28 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
30 * internal-fn.h (internal_fn_name_array): Declare.
31 (internal_fn_flags_array): Likewise.
33 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
35 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
36 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
38 (ssemodefsuffix): Remove.
39 (ssevecmodesuffix): New mode attribute.
40 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
41 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
42 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
43 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
44 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
45 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
46 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
47 ssemodesuffix mode attribute.
48 (float splitters): Use ssevecmodesuffix mode attribute.
49 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
50 (sseinsmode): Rename from avxvecmode.
51 (avxsizesuffix): Rename from avxmodesuffix.
52 (sseintvecmode): Rename from avxpermvecmode.
53 (ssedoublevecmode): Rename from ssedoublesizemode.
54 (ssehalfvecmode): Rename from avxhalfvecmode.
55 (ssescalarmode): Rename from avxscalarmode.
56 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
57 templates for ssemodesuffix mode attribute.
58 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
61 Adjust RTX patterns globally for renamed mode attributes.
63 2011-04-27 Jan Hubcika <jh@suse.cz>
65 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
66 * ipa-inline-analysis.c: Include alloc-pool.h.
67 (edge_predicate_pool): New.
68 (trye_predicate_p): New function
69 (false_predicate_p): New function.
70 (add_clause): Sanity check that false clauses are "optimized";
71 never add clauses to predicate that is already known to be false.
72 (and_predicate): Use flase_predicate_p.
73 (evaulate_predicate): Rename to ...
74 (evaluate_predicate): ... this one; update all callers; assert
75 that false is not listed among possible truths.
76 (dump_predicate): Use true_predicate_p.
77 (account_size_time): Use false_predicate_p.
78 (evaulate_conditions_for_edge): Rename to ...
79 (evaluate_conditions_for_edge) ... this one.
80 (edge_set_predicate): New function.
81 (inline_edge_duplication_hook): Duplicate edge predicates.
82 (inline_edge_removal_hook): Free edge predicates.
83 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
84 (dump_inline_summary): Update.
85 (estimate_function_body_sizes): Set edge predicates.
86 (estimate_calls_size_and_time): Handle predicates.
87 (estimate_callee_size_and_time): Update.
88 (remap_predicate): Add toplev_predicate; update comment.
89 (remap_edge_predicates): New function.
90 (inline_merge_summary): Compute toplev predicate; update.
91 (read_predicate): New function.
92 (read_inline_edge_summary): Use it.
93 (inline_read_section): Likewise.
94 (write_predicate): New function.
95 (write_inline_edge_summary): Use it.
96 (inline_write_summary): Likewise.
97 (inline_free_summary): Free alloc pool and edge summary vec.
99 2011-04-27 Richard Guenther <rguenther@suse.de>
101 * tree-ssa-structalias.c (changed_count): Remove.
102 (changed): Use a bitmap.
103 (unify_nodes): Adjust.
104 (do_sd_constraint): Likewise.
105 (do_ds_constraint): Likewise.
106 (do_complex_constraint): Likewise.
107 (solve_graph): Likewise.
109 2011-04-27 Jan Hubicka <jh@suse.cz>
111 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
113 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
115 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
116 (avx_vperm2f128_*_operand): Ditto.
117 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
118 Use avx_vpermilp_parallel in insn condition.
119 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
120 Use avx_vperm2f128_parallel in insn condition.
122 2011-04-27 Richard Guenther <rguenther@suse.de>
124 * Makefile.in (tree-ssa-structalias.o): Remove
125 gt-tree-ssa-structalias.h dependency.
126 (GTFILES): Remove tree-ssa-structalias.c.
127 * tree.c (allocate_decl_uid): New function.
128 (make_node_stat): Use it.
129 (copy_node_stat): Likewise.
130 * tree.h (allocate_decl_uid): Declare.
131 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
132 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
133 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
134 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
135 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
136 (struct heapvar_map): Likewise.
137 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
138 heapvar_insert): Likewise.
139 (make_heapvar_for): Rename to ...
140 (make_heapvar): ... this. Simplify.
141 (fake_var_decl_obstack): New global var.
142 (build_fake_var_decl): New function.
143 (make_constraint_from_heapvar): Adjust.
144 (handle_lhs_call): Likewise.
145 (create_function_info_for): Likewise.
146 (intra_create_variable_infos): Likewise.
147 (init_alias_vars): Allocate fake_var_decl_obstack.
148 (init_alias_heapvars, delete_alias_heapvars): Remove.
149 (compute_points_to_sets): Do not call init_alias_heapvars.
150 (ipa_pta_execute): Likewise.
151 (delete_points_to_sets): Free fake_var_decl_obstack.
153 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
155 * config/spu/divmovti4.c (union qword_UTItype): New data type.
156 (si_from_UTItype, si_to_UTItype): New functions.
157 (__udivmodti4): Use them to implement type-punning.
158 * config/spu/multi3.c (union qword_TItype): New data type.
159 (si_from_TItype, si_to_TItype): New functions.
160 (__multi3): Use them to implement type-punning.
162 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
164 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
166 2011-04-27 Jan Hubicka <jh@suse.cz>
168 * ipa-prop.c (function_insertion_hook_holder): New holder.
169 (ipa_add_new_function): New function.
170 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
171 Register/deregister holder.
173 2011-04-27 Richard Guenther <rguenther@suse.de>
175 PR tree-optimization/48772
176 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
178 2011-04-27 Richard Guenther <rguenther@suse.de>
180 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
181 TARGET_MEM_REF handling.
183 2011-04-27 Nick Clifton <nickc@redhat.com>
185 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
186 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
187 (REG_CLASS_NAMES): Likewise.
188 (REG_CLASS_CONTENTS): Likewise.
189 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
190 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
191 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
192 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
193 (EVEN_REGS): New macro. Alias for QUAD_REGS.
194 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
195 duplicate register classes.
196 (frv_class_likely_spilled_p): Likewise.
197 (frv_register_move_cost): Likewise.
199 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
200 end of the regno_reg_class array.
202 2011-04-27 Jakub Jelinek <jakub@redhat.com>
205 * c-typeck.c (build_binary_op): Don't wrap arguments if
206 int_operands is true.
208 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
211 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
212 targetm.calls.must_pass_in_stack for void type.
214 2011-04-26 Jan Hubicka <jh@suse.cz>
216 * cgraphbuild.c (build_cgraph_edges): Update call
217 of cgraph_create_edge and cgraph_create_indirect_edge.
218 * cgraph.c (cgraph_create_edge_including_clones,
219 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
220 cgraph_update_edges_for_call_stmt_node): Do not take nest
221 argument; do not initialize call_stmt_size/time.
222 (dump_cgraph_node): Do not dump nest.
223 (cgraph_clone_edge): Do not take loop_nest argument;
224 do not propagate it; do not clone call_stmt_size/time.
225 (cgraph_clone_node): Likewise.
226 (cgraph_create_virtual_clone): Update.
227 * cgraph.h (struct cgraph_edge): Remove
228 call_stmt_size/call_stmt_time/loop_nest.
229 (cgraph_create_edge, cgraph_create_indirect_edge,
230 cgraph_create_edge_including_clones, cgraph_clone_node): Update
232 * tree-emutls.c (gen_emutls_addr): Update.
233 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
234 loop_nest; handle indirect calls, too.
235 (clone_inlined_nodes): Do not care about updating inline summaries.
236 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
237 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
238 stream call_stmt_size/call_stmt_time/loop_nest.
239 * ipa-inline.c (edge_badness): Update.
240 (ipa_inline): dump summaries after inlining.
241 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
243 (inline_edge_summary): New function.
244 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
245 (inline_edge_removal_hook): Handle edge summaries.
246 (inline_edge_duplication_hook): New hook.
247 (inline_summary_alloc): Alloc hooks.
248 (initialize_growth_caches): Do not register removal hooks.
249 (free_growth_caches); Do not free removal hook.
250 (dump_inline_edge_summary): New function.
251 (dump_inline_summary): Use it.
252 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
253 (inline_update_callee_summaries): New function.
254 (inline_merge_summary): Use it.
255 (do_estimate_edge_time, do_estimate_edge_growth): Update.
256 (read_inline_edge_summary): New function.
257 (inline_read_section): Use it.
258 (write_inline_edge_summary): New function.
259 (inline_write_summary): Use it.
260 (inline_free_summary): Free edge new holders.
261 * tree-inline.c (copy_bb): Update.
263 2011-04-26 Jason Merrill <jason@redhat.com>
265 * tree-eh.c (lower_try_finally_switch): Create the label along with
268 2011-04-26 David S. Miller <davem@davemloft.net>
269 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
271 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
272 * configure: Regenerate.
274 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
277 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
279 (VEC_reduc): New code iterator and splitters for vector reduction.
280 (VEC_reduc_name): Ditto.
281 (VEC_reduc_rtx): Ditto.
282 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
283 (reduc_<VEC_reduc_name>_v4sf): Ditto.
285 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
286 support for extracting SF on VSX.
288 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
290 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
291 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
292 double add, minimum, maximum vector reduction.
293 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
294 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
295 optimize double vector reduction.
296 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
298 2011-04-26 Joseph Myers <joseph@codesourcery.com>
300 * config/fr30/fr30.h (inhibit_libc): Don't define.
301 * config/m32r/m32r-protos.h: Correct comment.
302 * config/v850/v850.h (GHS_default_section_names,
303 GHS_current_section_names): Use tree, not union tree_node *.
305 2011-04-26 Xinliang David Li <davidxl@google.com>
307 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
308 * c-family/c-opts.c (c_common_handle_option): Set
309 warn_maybe_uninitialized.
310 * opts.c (common_handle_option): Ditto.
311 * common.opt: New option.
312 * tree-ssa.c (warn_uninit): Add one more parameter.
313 (warn_uninitialized_var): Pass warning code.
314 * tree-flow.h: Interface change.
317 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
319 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
320 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
321 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
323 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
325 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
326 * config/mips/mips.opt (mmips-tfile): Remove.
328 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
329 mips-tdump reference to ...
330 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
331 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
332 reference by Tru64 UNIX.
334 2011-04-26 Jakub Jelinek <jakub@redhat.com>
337 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
338 is error_mark_node, set value to NULL.
340 PR tree-optimization/48734
341 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
342 if return value from maybe_fold_*_comparsions isn't something
343 the code is prepared to handle.
345 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
347 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
349 (ext_QIreg_nomode_operands): Remove.
350 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
354 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
356 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
358 2011-04-26 Richard Guenther <rguenther@suse.de>
360 * c-typeck.c (build_unary_op): Do not expand array-refs via
361 pointer arithmetic. Only adjust qualifiers for function types.
363 2011-04-26 Richard Guenther <rguenther@suse.de>
366 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
367 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
368 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
369 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
371 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
373 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
374 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
375 * doc/extend.texi: Document __underlying_type.
377 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
379 * config/rs6000/titan.md (automata_option "progress"): Remove.
381 2011-04-25 Jeff Law <law@redhat.com>
383 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
385 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
387 * system.h (ENUM_BITFIELD): Remove.
389 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
390 Eric Botcazou <ebotcazou@adacore.com>
392 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
393 for STORE_FLAG_VALUE==-1 case.
395 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
398 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
399 LEGITIMATE_PIC_OPERAND_P.
401 2011-04-24 Jan Hubicka <jh@suse.cz>
403 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
405 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
406 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
407 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
408 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
409 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
410 Sanity check predicate length.
411 (remap_predicate): Likewise; sanity check jump functions.
412 (inline_read_section, inline_write_summary): Sanity check
415 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
418 * doc/extend.texi (Type Traits): Document __is_standard_layout,
419 __is_literal_type, and __is_trivial; update throughout about
420 possibly cv-qualified void types.
422 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
424 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
425 testsuite and make it version agnostic.
427 2011-04-22 Jan Hubicka <jh@suse.cz>
429 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
431 2011-04-23 Jakub Jelinek <jakub@redhat.com>
434 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
435 to VOID_TYPE even around MODIFY_EXPR.
437 2011-04-22 Mike Stump <mikestump@comcast.net>
439 * gensupport.c (read_md_rtx): Fix typo in comment.
440 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
443 2011-04-22 Jan Hubicka <jh@suse.cz>
445 * gengtype.c (open_base_files): Add ipa-inline.h include.
446 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
447 ipa-prop.c; update all uses.
448 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
449 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
450 merge summary of inlined function into former caller.
451 * ipa-inline.c (max_benefit): Remove.
452 (edge_badness): Compensate for removal of benefits.
453 (update_caller_keys): Use
454 reset_node_growth_cache/reset_edge_growth_cache.
455 (update_callee_keys): Likewise.
456 (update_all_callee_keys): Likewise.
457 (inline_small_functions): Do not collect max_benefit; do not reset
458 estimated_growth; call free_growth_caches and initialize_growth_caches.
459 * ipa-inline.h (struct condition, type clause_t, struct predicate,
460 struct size_time_entry): New structures.
461 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
462 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
463 and estimated_growth.
464 (edge_growth_cache_entry): New structure.
465 (node_growth_cache, edge_growth_cache): New global vars.
466 (estimate_growth): Turn into inline.
467 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
468 initialize_growth_caches, free_growth_caches): Declare.
469 (estimate_edge_growth): Rewrite.
470 (estimate_edge_time): Implement as inline cache lookup.
471 (reset_node_growth_cache, reset_edge_growth_cache): New inline
473 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
474 (NUM_CONDITIONS): New constant.
475 (predicate_conditions): New enum.
476 (IS_NOT_CONSTANT): New constant.
477 (edge_removal_hook_holder): New var.
478 (node_growth_cache, edge_growth_cache): New global vars.
479 (true_predicate, single_cond_predicate, false_predicate,
480 not_inlined_predicate, add_condition, add_clause, and_predicates,
481 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
482 dump_clause, dump_predicate, account_size_time,
483 evaulate_conditions_for_edge): New functions.
484 (inline_summary_alloc): Move to heap.
485 (inline_node_removal_hook): Clear condition and entry vectors.
486 (inline_edge_removal_hook): New function.
487 (initialize_growth_caches, free_growth_caches): New function.
488 (dump_inline_summary): Update.
489 (edge_execution_predicate): New function.
490 (will_be_nonconstant_predicate): New function.
491 (estimate_function_body_sizes): Compute BB and constantness predicates.
492 (compute_inline_parameters): Do not clear estimated_growth.
493 (estimate_edge_size_and_time): New function.
494 (estimate_calls_size_and_time): New function.
495 (estimate_callee_size_and_time): New function.
496 (remap_predicate): New function.
497 (inline_merge_summary): New function.
498 (do_estimate_edge_time): New function based on...
499 (estimate_edge_time): ... this one.
500 (do_estimate_edge_growth): New function.
501 (do_estimate_growth): New function based on....
502 (estimate_growth): ... this one.
503 (inline_analyze_function): Analyze after deciding on jump functions.
504 (inline_read_section): New function.
505 (inline_read_summary): Use it.
506 (inline_write_summary): Write all the new data.
507 * ipa-prop.c (ipa_get_param_decl_index): Export.
508 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
509 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
511 (ipa_get_lattice): Move here from ipa-cp.c
512 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
513 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
514 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
515 cgraph_edge_inlinable_p): Remove.
516 * cgraphunit.c: Include ipainline.h
517 (cgraph_process_new_functions): Update call of
518 compute_inline_parameters.
520 2011-04-22 Richard Guenther <rguenther@suse.de>
522 * tree.c (build_int_cst): Properly create canonicalized integer
524 (build_int_cst_type): Remove scary comments.
526 2011-04-22 Xinliang David Li <davidxl@google.com>
528 * toplev.c (process_options): Enable -Werror=coverage-mismatch
529 by default when -Wno-error is not specified.
530 * opts-global.c (decode_options): Remove call to
531 control_warning_options.
533 2011-04-22 Jakub Jelinek <jakub@redhat.com>
535 PR tree-optimization/48717
536 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
537 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
539 2011-04-22 Joseph Myers <joseph@codesourcery.com>
541 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
542 definition where used.
544 2011-04-22 Jakub Jelinek <jakub@redhat.com>
547 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
548 TREE_STATIC variables declared inside of some OpenMP construct.
550 2011-04-22 Martin Jambor <mjambor@suse.cz>
553 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
555 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
558 * c-typeck.c (pop_init_level): Do not warn about initializing
561 2011-04-22 Alan Modra <amodra@gmail.com>
563 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
564 when returning call_cookie.
565 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
566 pointers, to functions with no more vector args than the current
567 function, and some non-local calls for ABI_V4.
568 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
569 sibcall_nonlocal_aix64): Combine to ..
570 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
571 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
572 (sibcall_value_nonlocal_aix<mode>): ..likewise.
573 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
574 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
576 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
577 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
578 sibcall_value_symbolic_64): Delete.
580 2011-04-21 Xinliang David Li <davidxl@google.com>
582 * cgraph.h: Remove pid.
583 * cgraph.c: Remove pid.
584 * value-prof.c (init_node_map): New function.
585 (del_node_map): New function.
586 (find_func_by_funcdef_no): New function.
587 (gimple_ic_transform): Call new function.
588 * cgraphunit.c (cgraph_finalize_function): Remove pid.
589 * function.c (get_last_funcdef_no): New function.
590 * function.h (get_last_funcdef_no): New function.
591 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
593 (tree-profiling): Call node map init and delete function.
595 2011-04-21 Ian Lance Taylor <iant@google.com>
597 * godump.c (go_format_type): Use exported Go name for anonymous
600 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
602 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
603 Call builtin_function_type_list instead of builtin_function_type.
604 (UNARY, BINARY, TRINARY, QUAD): Likewise.
606 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
608 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
609 build_function_type_list instead of build_function_type.
610 Delete variable `endlink'.
612 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
614 * config/s390/s390.c (s390_init_builtins): Call
615 build_function_type_list instead of build_function_type.
617 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
619 * config/ia64/ia64.c (ia64_init_builtins): Call
620 build_function_type_list instead of builtin_function_type.
622 2011-04-21 Easwaran Raman <eraman@google.com>
624 * cfgexpand.c (stack_var): Remove OFFSET...
625 (add_stack_var): ...and its reference here...
626 (expand_stack_vars): ...and here.
627 (stack_var_cmp): Sort by descending order of size.
628 (partition_stack_vars): Change heuristic.
629 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
630 (dump_stack_var_partition): Add newline after each partition.
632 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
633 Jeff Law <law@redhat.com>
635 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
636 * gengtype.c (matching_file_name_substitute): Likewise.
638 2011-04-21 Richard Guenther <rguenther@suse.de>
641 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
643 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
645 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
647 2011-04-21 Richard Guenther <rguenther@suse.de>
649 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
652 2011-04-21 Richard Guenther <rguenther@suse.de>
654 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
655 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
656 Use DECL_P, not SSA_VAR_P.
657 (ptr_derefs_may_alias_p): Likewise.
658 (ptr_deref_may_alias_ref_p_1): Likewise.
659 (decl_refs_may_alias_p): Likewise.
660 (refs_may_alias_p_1): Likewise.
661 (ref_maybe_used_by_call_p_1): Likewise.
662 (call_may_clobber_ref_p_1): Likewise.
663 (indirect_ref_may_alias_decl_p): Assume indirect refrences
664 are either MEM_REF or TARGET_MEM_REF.
665 (indirect_refs_may_alias_p): Likewise.
666 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
667 for MEM_EXPR of indirect calls.
669 2011-04-21 Tristan Gingold <gingold@adacore.com>
671 * vmsdbgout.c (write_srccorr): Compute file length from the string.
672 (dst_file_info_struct): Remove flen field.
673 (lookup_filename): Remove code that set flen field.
675 2011-04-21 Tristan Gingold <gingold@adacore.com>
677 * config/ia64/ia64.c (ia64_start_function): Add a guard.
679 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
682 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
683 vec_extract and vec_concat for non-SSE4_1 targets.
685 2011-04-21 Richard Guenther <rguenther@suse.de>
687 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
690 2011-04-21 Joseph Myers <joseph@codesourcery.com>
692 * config/i386/cygming.h (union tree_node, TREE): Don't define or
694 (FILE): Don't undefine.
696 2011-04-21 Joseph Myers <joseph@codesourcery.com>
698 * config/alpha/alpha.c (struct machine_function): Use rtx, not
700 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
702 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
703 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
704 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
706 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
707 definitions where used.
708 * config/microblaze/microblaze.h (struct microblaze_args): Use
709 rtx, not struct rtx_def *.
710 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
712 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
713 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
714 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
715 not struct rtx_def *.
716 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
718 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
720 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
722 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
724 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
725 operand_equal_p to compare DR_BASE_ADDRESSes.
726 (vect_check_interleaving): Likewise.
728 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
731 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
732 for all Neon struct constants.
734 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
736 * target.def (legitimate_constant_p): New hook.
737 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
738 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
739 * doc/tm.texi: Regenerate.
740 * hooks.h (hook_bool_mode_rtx_true): Declare.
741 * hooks.c (hook_bool_mode_rtx_true): Define.
742 * system.h (LEGITIMATE_CONSTANT_P): Poison.
743 * calls.c (precompute_register_parameters): Replace uses of
744 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
745 (emit_library_call_value_1): Likewise.
746 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
747 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
748 * ira-costs.c (scan_one_insn): Likewise.
749 * recog.c (general_operand, immediate_operand): Likewise.
750 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
751 * reload1.c (init_eliminable_invariants): Likewise.
753 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
755 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
756 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
758 (TARGET_LEGITIMATE_CONSTANT_P): Define.
759 * config/alpha/predicates.md (input_operand): Update call to
760 alpha_legitimate_constant_p.
762 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
763 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
764 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
765 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
766 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
767 (arm_legitimate_constant_p): New functions.
768 (arm_cannot_force_const_mem): Make static.
770 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
772 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
773 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
774 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
775 instead of bfin_legitimate_constant_p.
776 (bfin_legitimate_constant_p): Make static. Add a mode argument.
777 (TARGET_LEGITIMATE_CONSTANT_P): Define.
779 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
781 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
783 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
784 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
785 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
786 (frv_legitimate_constant_p): Make static. Add a mode argument.
788 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
789 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
790 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
792 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
793 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
794 * config/i386/i386.c (legitimate_constant_p): Rename to...
795 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
797 (ix86_cannot_force_const_mem): Update accordingly.
798 (ix86_legitimate_address_p): Likewise.
799 (TARGET_LEGITIMATE_CONSTANT_P): Define.
800 * config/i386/i386.md: Update commentary.
802 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
803 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
804 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
805 (ia64_legitimate_constant_p): Make static. Add a mode argument.
807 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
809 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
810 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
811 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
812 (lm32_legitimate_constant_p): Make static. Add a mode argument.
814 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
815 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
816 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
818 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
819 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
820 (m32r_legitimate_constant_p): New function.
822 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
823 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
824 LEGITIMATE_CONSTANT_P.
825 (LEGITIMATE_CONSTANT_P): Delete.
826 * config/m68k/m68k.c (m68k_expand_prologue): Call
827 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
828 (m68k_legitimate_constant_p): New function.
829 * config/m68k/m68k.md: Update comments.
831 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
832 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
833 (mcore_legitimate_constant_p): New function.
835 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
836 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
837 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
839 (mep_legitimate_address): Update accordingly.
840 (TARGET_LEGITIMATE_CONSTANT_P): Define.
842 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
844 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
845 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
846 static. Check OP's mode for VOIDmode.
847 (microblaze_legitimate_constant_p): New function.
848 (TARGET_LEGITIMATE_CONSTANT_P): Define.
850 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
851 * config/mips/mips.c (mips_legitimate_constant_p): New function.
852 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
853 (TARGET_LEGITIMATE_CONSTANT_P): Define.
854 * config/mips/predicates.md: Update comments.
856 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
857 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
858 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
859 (mmix_legitimate_constant_p): Make static, return a bool, and take
861 (mmix_print_operand_address): Update accordingly.
863 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
865 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
866 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
867 static. Add a mode argument.
868 (TARGET_LEGITIMATE_CONSTANT_P): Define.
870 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
872 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
873 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
874 (pa_legitimate_constant_p): New function.
876 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
878 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
879 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
880 (pdp11_legitimate_constant_p): New function.
882 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
883 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
884 (rs6000_legitimate_constant_p): New function.
886 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
887 (rx_legitimate_constant_p): ...this.
888 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
889 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
890 (rx_legitimate_constant_p): ...this.
891 (TARGET_LEGITIMATE_CONSTANT_P): Define.
892 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
894 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
895 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
896 * config/s390/s390.c (legitimate_constant_p): Rename to...
897 (s390_legitimate_constant_p): ...this. Make static, return a bool,
898 and add a mode argument.
899 (TARGET_LEGITIMATE_CONSTANT_P): Define.
901 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
903 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
904 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
905 (sh_legitimate_constant_p): New function.
907 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
908 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
909 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
910 (legitimate_constant_p): Rename to...
911 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
913 (constant_address_p): Update accordingly.
915 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
916 argument and return a bool.
917 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
918 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
919 (spu_legitimate_constant_p): Add a mode argument and return a bool.
920 (spu_rtx_costs): Update accordingly.
921 * config/spu/predicates.md (vec_imm_operand): Likewise.
923 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
925 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
926 * config/v850/v850.c (v850_legitimate_constant_p): New function.
927 (TARGET_LEGITIMATE_CONSTANT_P): Define.
929 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
930 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
931 * config/vax/vax.c (legitimate_constant_p): Likewise.
933 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
934 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
935 (xtensa_legitimate_constant_p): New function.
937 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
939 * target.def (cannot_force_const_mem): Add a mode argument.
940 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
941 * doc/tm.texi: Regenerate.
942 * hooks.h (hook_bool_mode_rtx_false): Declare.
943 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
944 (hook_bool_mode_const_rtx_true): Likewise.
945 (hook_bool_mode_rtx_false): New function.
946 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
947 to be non-VOID. Update call to cannot_force_const_mem.
948 (find_reloads): Update accordingly.
949 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
950 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
952 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
953 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
954 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
955 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
956 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
957 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
958 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
959 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
960 (m68k_cannot_force_const_mem): ...this new function.
961 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
963 (mips_const_insns, mips_legitimize_const_move): Update calls.
964 (mips_secondary_reload_class): Likewise.
965 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
966 (pa_cannot_force_const_mem): ...this new function.
967 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
968 (rs6000_cannot_force_const_mem): ...this new function.
969 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
971 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
972 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
974 (xtensa_cannot_force_const_mem): ...this new function.
976 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
978 * config/mips/mips.c (mips16_build_function_stub): Call
979 build_function_type_list instead of build_function_type.
980 (mips16_build_call_stub): Likewise.
982 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
984 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
985 instead of build_function_type.
987 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
989 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
990 instead of build_function_type.
992 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
995 * config/i386/i386.md (insv): Change operand 0 constraint to
996 "register_operand". Change operand 1 and 2 constraint to
997 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
998 * config/i386/sse.md (sse4_1_pinsrb): Export.
999 (sse2_pinsrw): Ditto.
1000 (sse4_1_pinsrd): Ditto.
1001 (sse4_1_pinsrq): Ditto.
1002 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
1003 * config/i386/i386.c (ix86_expand_pinsr): New.
1005 2011-04-20 Easwaran Raman <eraman@google.com>
1007 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
1008 containing union type only with -fstrict-aliasing.
1010 2011-04-20 Jim Meyering <meyering@redhat.com>
1012 Remove useless if-before-free tests.
1013 * calls.c (expand_call, save_area): Likewise.
1014 * cfgcleanup.c (try_forward_edges): Likewise.
1015 * collect2.c (collect_execute): Likewise.
1016 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
1017 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
1018 * coverage.c (coverage_checksum_string): Likewise.
1019 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
1020 * cselib.c (cselib_init): Likewise.
1021 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
1022 (df_set_clean_cfg): Likewise.
1023 * function.c (free_after_compilation): Likewise.
1024 * gcc.c (do_spec_1, main): Likewise.
1025 * gcov.c (create_file_names): Likewise.
1026 * gensupport.c (identify_predicable_attribute): Likewise.
1027 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
1028 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
1029 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
1030 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
1031 * ipa-pure-const.c (local_pure_const): Likewise.
1032 * ipa-reference.c (propagate): Likewise.
1033 * ira-costs.c (free_ira_costs): Likewise.
1034 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
1035 * matrix-reorg.c (mat_free): Likewise.
1036 * prefix.c (get_key_value): Likewise.
1037 * profile.c (compute_value_histograms): Likewise.
1038 * reload1.c (free_reg_equiv): Likewise.
1039 * sched-deps.c (free_deps): Likewise.
1040 * sel-sched-ir.c (fence_clear): Likewise.
1041 * sese.c (set_rename, if_region_set_false_region): Likewise.
1042 * tree-data-ref.c (free_rdg): Likewise.
1043 * tree-eh.c (lower_try_finally): Likewise.
1044 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
1045 * tree-ssa-live.c (delete_var_map): Likewise.
1046 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
1047 * tree-ssa-pre.c (phi_trans_add): Likewise.
1049 2011-04-20 Jakub Jelinek <jakub@redhat.com>
1051 PR tree-optimization/48611
1052 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
1053 beyond ERT_MUST_NOT_THROW region.
1055 2011-04-20 Catherine Moore <clm@codesourcery.com>
1057 * config/mips/mips.opt (mfix-24k): New.
1058 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
1059 * config/mips/mips.md (length): Increase by 4 for stores if
1061 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
1062 all noreorder if fixing 24K errata.
1063 * doc/invoke.texi: Document mfix-24k.
1065 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
1067 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
1068 quad-word modes, reduce to 9-bit index range when above 1016 limit.
1070 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
1072 * config/arm/arm.c (arm_gen_constant): Move movw support ....
1073 (const_ok_for_op): ... to here.
1075 2011-04-20 Kai Tietz <ktietz@redhat.com>
1077 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
1078 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
1080 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
1082 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
1084 2011-04-20 Richard Guenther <rguenther@suse.de>
1086 PR tree-optimization/47892
1087 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
1090 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
1092 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
1094 2011-04-20 Tristan Gingold <gingold@adacore.com>
1096 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
1098 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
1102 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
1103 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
1104 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1105 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1106 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
1108 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
1111 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
1112 (avr_asm_named_section, avr_asm_output_aligned_common,
1113 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
1114 New functions to update...
1115 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
1116 (avr_asm_init_sections): Overwrite section callbacks for
1117 data_section, bss_section.
1118 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
1120 (avr_file_end): ...here.
1122 2011-04-20 Richard Guenther <rguenther@suse.de>
1125 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
1126 objects and types here. Adjust for their offset before comparing.
1128 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
1130 * tree-vect-stmts.c (vectorizable_store): Only chain one related
1133 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
1135 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
1136 (GIMPLE_H): Include $(INTERNAL_FN_H).
1137 (OBJS-common): Add internal-fn.o.
1138 (internal-fn.o): New rule.
1139 * internal-fn.def: New file.
1140 * internal-fn.h: Likewise.
1141 * internal-fn.c: Likewise.
1142 * gimple.h: Include internal-fn.h.
1143 (GF_CALL_INTERNAL): New gf_mask.
1144 (gimple_statement_call): Put fntype into a union with a new
1146 (gimple_build_call_internal): Declare.
1147 (gimple_build_call_internal_vec): Likewise.
1148 (gimple_call_same_target_p): Likewise.
1149 (gimple_call_internal_p): New function.
1150 (gimple_call_internal_fn): Likewise.
1151 (gimple_call_fntype): Return null for internal calls.
1152 (gimple_call_set_fntype): Assert that the function is not internal.
1153 (gimple_call_set_fn): Likewise.
1154 (gimple_call_set_fndecl): Likewise.
1155 (gimple_call_set_internal_fn): New function.
1156 (gimple_call_addr_fndecl): Handle null functions.
1157 (gimple_call_return_type): Likewise null types.
1158 * gimple.c (gimple_build_call_internal_1): New function.
1159 (gimple_build_call_internal): Likewise.
1160 (gimple_build_call_internal_vec): Likewise.
1161 (gimple_call_same_target_p): Likewise.
1162 (gimple_call_flags): Handle calls to internal functions.
1163 (gimple_call_fnspec): New function.
1164 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
1165 (gimple_has_side_effects): Handle null functions.
1166 (gimple_rhs_has_side_effects): Likewise.
1167 (gimple_call_copy_skip_args): Handle calls to internal functions.
1168 * cfgexpand.c (expand_call_stmt): Likewise.
1169 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
1170 * gimple-fold.c (gimple_fold_call): Handle null functions.
1171 (gimple_fold_stmt_to_constant_1): Don't fold
1172 calls to internal functions.
1173 * gimple-low.c (gimple_check_call_args): Handle calls to internal
1175 * gimple-pretty-print.c (dump_gimple_call): Likewise.
1176 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
1177 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
1178 (do_warn_unused_result): Likewise.
1179 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
1180 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
1181 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
1182 the target of a call.
1183 (initialize_hash_element): Update accordingly.
1184 (hashable_expr_equal_p): Use gimple_call_same_target_p.
1185 (iterative_hash_hashable_expr): Handle calls to internal functions.
1186 (print_expr_hash_elt): Likewise.
1187 * tree-ssa-pre.c (can_value_number_call): Likewise.
1188 (eliminate): Handle null functions.
1189 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
1190 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
1191 (find_func_aliases): Likewise.
1192 * value-prof.c (gimple_ic_transform): Likewise.
1193 (gimple_indirect_call_to_profile): Likewise.
1194 * lto-streamer-in.c (input_gimple_stmt): Likewise.
1195 * lto-streamer-out.c (output_gimple_stmt): Likewise.
1197 2011-04-19 Jan Hubicka <jh@suse.cz>
1199 * ipa-inline-transform.c (save_inline_function_body): Add comments.
1200 * ipa-inline.c (inline_small_functions): Compute summaries first,
1201 populate heap later.
1203 2011-04-19 Jan Hubicka <jh@suse.cz>
1205 * cgraph.h (save_inline_function_body): Remove.
1206 * ipa-inline-transform.c: New file, broke out of...
1207 * ipa-inline.c: ... this one; Update toplevel comment.
1208 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
1210 (update_noncloned_frequencies): Move to ipa-inline-transform.c
1211 (cgraph_mark_inline_edge): Rename to inline_call; move to
1212 ipa-inline-transform.c.
1213 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
1214 move to ipa-inline-transform.c
1215 (recursive_inlining, inline_small_functions, flatten_function,
1216 ipa_inline, inline_always_inline_functions,
1217 early_inline_small_functions): Update.
1218 (inline_transform): Move to ipa-inline-transform.c.
1219 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
1221 * Makefile.in (ipa-inline-transform.o): New file.
1222 * cgraphunit.c (save_inline_function_body): Move to
1223 ipa-inline-transform.c
1225 2011-04-19 DJ Delorie <dj@redhat.com>
1227 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
1228 registers if we already know there aren't any.
1229 (m32c_emit_epilogue): Don't emit a barrier here.
1230 (m32c_emit_eh_epilogue): Likewise.
1231 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
1232 operands at expand time.
1233 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
1235 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
1236 duplicates. Provide aliases instead.
1237 * config/m32c/prologue.md (eh_return): Emit a barrier here.
1238 (eh_epilogue): Add a "(return)" here as a hint to other parts of
1241 2011-04-19 Anatoly Sokolov <aesok@post.ru>
1243 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
1244 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
1245 (general_or_i64_p, sparc_register_move_cost): New function.
1247 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1249 * doc/install.texi (Configuration, --enable-threads): Remove mach.
1250 Add lynx, mipssde. Sort table.
1252 2011-04-19 Xinliang David Li <davidxl@google.com>
1254 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
1257 2011-04-19 Jakub Jelinek <jakub@redhat.com>
1260 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
1261 is a SUBREG with non-MODE_INT mode inside of it.
1263 2011-04-19 Martin Jambor <mjambor@suse.cz>
1265 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
1266 also according to actual contants.
1267 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
1268 (gimple_fold_call): Use it.
1269 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
1271 2011-04-19 Martin Jambor <mjambor@suse.cz>
1273 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
1274 non-pointer assignments.
1276 2011-04-19 Martin Jambor <mjambor@suse.cz>
1278 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
1279 account anc_offset and otr_type from the indirect edge info.
1280 * ipa-prop.c (get_ancestor_addr_info): New function.
1281 (compute_complex_ancestor_jump_func): Assignment analysis moved to
1282 get_ancestor_addr_info, call it.
1283 (ipa_note_param_call): Do not initialize information about polymorphic
1284 calls, return the indirect call graph edge. Remove the last
1285 parameter, adjust all callers.
1286 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
1287 parameters. Initialize polymorphic information in the indirect edge.
1289 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
1292 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
1293 the types if they have different enumeration identifiers.
1295 2011-04-19 Jan Hubicka <jh@suse.cz>
1297 * cgraph.h (cgraph_optimize_for_size_p): Declare.
1298 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
1299 * predict.c (cgraph_optimize_for_size_p): Break out from ...
1300 (optimize_function_for_size_p) ... here.
1302 2011-04-19 Richard Guenther <rguenther@suse.de>
1305 * tree.c (free_lang_data): Do not reset the decl-assembler-name
1308 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
1310 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
1311 if DECL_NO_INLINE_WARNING_P is set on the function.
1313 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
1316 * reload1.c (inc_for_reload): Return void. All callers changed.
1317 (emit_input_reload_insns): Don't try to delete previous output
1318 reloads to a register, or record spill_reg_store for autoincs.
1320 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
1322 * gengtype.h: Updated copyright year.
1323 (struct input_file_st): Add inpisplugin field.
1324 (type_fileloc): New function.
1326 (write_typed_struct_alloc_def): Add gcc_assert.
1327 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
1328 (write_typed_alloc_defns): Don't output for plugin files.
1329 (input_file_by_name): Clear inpisplugin field.
1330 (main): Set inpisplugin field for plugin files.
1332 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
1334 * gengtype-state.c (string_eq): New.
1335 (read_state): Use string_eq instead of strcmp when creating the
1338 2011-04-19 Wei Guozhi <carrot@google.com>
1341 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
1342 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
1344 * config/arm/constraints.md (Uu): New constraint.
1345 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
1347 2011-04-19 Tristan Gingold <gingold@adacore.com>
1349 * config.gcc (-*-*-*vms): Added.
1350 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
1352 * config/vms/vms-ld.c: New file.
1353 * config/vms/vms-ar.c: New file.
1354 * config/vms/t-vmsnative: New file.
1356 2011-04-18 Xinliang David Li <davidxl@google.com>
1358 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
1360 2011-04-18 Jakub Jelinek <jakub@redhat.com>
1363 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
1364 if TREE_TYPE (v) is non-NULL.
1366 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
1367 gimple_get_virt_mehtod_for_binfo.
1368 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
1369 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
1371 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1373 2011-04-18 Michael Matz <matz@suse.de>
1374 Steve Ellcey <sje@cup.hp.com>
1376 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
1377 use its mode as source mode if it isn't VOIDmode.
1379 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
1381 * doc/passes.texi: Fill crossref nodes.
1383 2011-04-18 Jim Meyering <meyering@redhat.com>
1385 Fix doubled-word typos in comments and strings
1386 * config/alpha/vms-unwind.h: s/for for/for/
1387 * config/arm/unwind-arm.h: Likewise.
1388 * config/microblaze/microblaze.c: Likewise.
1389 * config/sh/constraints.md: s/in in/in/
1390 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
1392 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
1394 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
1395 (AVX_FLOAT_MODE_P): Ditto.
1396 (AVX128_VEC_FLOAT_MODE_P): Ditto.
1397 (AVX256_VEC_FLOAT_MODE_P): Ditto.
1398 (AVX_VEC_FLOAT_MODE_P): Ditto.
1399 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
1400 (UNSPEC_MASKSTORE): Ditto.
1401 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
1402 Merge from <sse>_movmsk<ssemodesuffix> and
1403 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
1404 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
1406 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
1407 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
1408 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
1410 2011-04-18 Jan Hubicka <jh@suse.cz>
1412 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
1414 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
1415 (want_inline_function_called_once_p): Break out the logic from
1417 (edge_badness): Ensure that profile is not misupdated.
1418 (lookup_recursive_calls): Prioritize by call frequencies.
1419 (inline_small_functions): Move program size estimates here;
1420 actually process whole queue even when unit growth has been
1421 met. (to properly compute inline_failed reasons and for the
1422 case unit size decrease.) Revisit comments on recursive inlining.
1423 (ipa_inline): Remove unit summary code; first inline hot calls
1424 of functions called once, cold calls next.
1425 (order, nnodes): Remove unused variables.
1426 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
1427 (GTFILES): Remove ipa-inline.c
1428 * sel-sched.c (fill_insns): Silence uninitialized var warning.
1430 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
1432 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
1434 2011-04-18 Jie Zhang <jie@codesourcery.com>
1435 Richard Earnshaw <rearnsha@arm.com>
1437 * arm.c (neon_builtin_type_bits): Remove.
1438 (typedef enum neon_builtin_mode): New.
1439 (T_MAX): Don't define.
1440 (typedef enum neon_builtin_datum): Remove bits, codes[],
1441 num_vars and base_fcode. Add mode, code and fcode.
1442 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
1443 VAR10): Change accordingly.
1444 (neon_builtin_data[]): Change accordingly
1445 (arm_init_neon_builtins): Change accordingly.
1446 (neon_builtin_compare): Remove.
1447 (locate_neon_builtin_icode): Remove.
1448 (arm_expand_neon_builtin): Change accordingly.
1450 * arm.h (enum arm_builtins): Move to ...
1451 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
1453 * arm.c (arm_builtin_decl): Declare.
1454 (TARGET_BUILTIN_DECL): Define.
1455 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
1456 (arm_builtin_decls[]): New.
1457 (arm_init_neon_builtins): Store builtin declarations in
1458 arm_builtin_decls[].
1459 (arm_init_tls_builtins): Likewise.
1460 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
1461 (arm_builtin_decl): New.
1463 2011-04-18 Richard Guenther <rguenther@suse.de>
1465 * tree.c (upper_bound_in_type): Build properly canonicalized
1467 (lower_bound_in_type): Likewise.
1469 2011-04-18 Richard Guenther <rguenther@suse.de>
1471 * gimple.h (gimple_call_addr_fndecl): New function.
1472 (gimple_call_fndecl): Use it.
1473 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
1475 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
1476 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
1478 2011-04-18 Richard Guenther <rguenther@suse.de>
1481 * tree.c (build_string): STRING_CST is now derived from tree_typed.
1483 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
1486 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
1487 DECL_IN_CONSTANT_POOL without RTL.
1489 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
1490 Ira Rosen <ira.rosen@linaro.org>
1493 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
1494 to match neon_vzip/vuzp/vtrn_internal.
1495 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
1496 outputs explicitly dependent on both inputs.
1497 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
1499 2011-04-18 Jakub Jelinek <jakub@redhat.com>
1501 PR tree-optimization/48616
1502 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
1503 whether the shift is by scalar or vector based on whether all SLP
1504 scalar stmts have the same rhs.
1506 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
1508 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
1511 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
1513 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
1516 2011-04-17 Jan Hubicka <jh@suse.cz>
1518 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
1519 * cgrpahunit.c (cgraph_finalize_function): Do not set
1520 finalized_by_frontend.
1521 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1522 finalized_by_frontend.
1524 2011-04-17 Jan Hubicka <jh@suse.cz>
1526 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
1527 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
1528 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
1529 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
1531 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
1533 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
1535 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
1538 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
1539 is non-null before accessing it.
1540 (input_cgraph): Remove trailing spaces.
1542 2011-04-17 Revital Eres <revital.eres@linaro.org>
1544 * params.def (sms-min-sc): New param flag.
1545 * modulo-sched.c (sms_schedule): Use it.
1546 * doc/invoke.texi (sms-min-sc): Document it.
1548 2011-04-17 Jan Hubicka <jh@suse.cz>
1550 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1551 present, also set gimple_call_set_cannot_inline.
1552 * ipa-inline.c: Update toplevel comment.
1554 (cgraph_clone_inlined_nodes): Fix linebreaks.
1555 (cgraph_check_inline_limits): Restructure to ...
1556 (caller_growth_limits): ... this one; be more tolerant
1557 on growth in nested inline chains; add explanatory comment;
1558 fix stack accounting thinko introduced by previous patch.
1559 (cgraph_default_inline_p): Remove.
1560 (report_inline_failed_reason): New function.
1561 (can_inline_edge_p): New function.
1562 (can_early_inline_edge_p): New function.
1563 (leaf_node_p): Move upwards in file.
1564 (want_early_inline_function_p): New function.
1565 (want_inline_small_function_p): New function.
1566 (want_inline_self_recursive_call_p): New function.
1567 (cgraph_edge_badness): Rename to ...
1568 (edge_badness) ... this one; fix linebreaks.
1569 (update_edge_key): Update call of edge_baddness; add
1570 detailed dump about queue updates.
1571 (update_caller_keys): Use can_inline_edge_p and
1572 want_inline_small_function_p.
1573 (cgraph_decide_recursive_inlining): Rename to...
1574 (recursive_inlining): Use can_inline_edge_p and
1575 want_inline_self_recursive_call_p; simplify and remove no longer
1577 (cgraph_set_inline_failed): Remove.
1578 (add_new_edges_to_heap): Use can_inline_edge_p and
1579 want_inline_small_function_p.
1580 (cgraph_decide_inlining_of_small_functions): Rename to ...
1581 (inline_small_functions): ... this one; cleanup; use
1582 can/want predicates; cleanup debug ouput; work edges till fibheap
1583 is exhausted and do not stop once unit growth is reached; remove
1584 later loop processing remaining edges.
1585 (cgraph_flatten): Rename to ...
1586 (flatten_function): ... this one; use can_inline_edge_p
1587 and can_early_inline_edge_p predicates.
1588 (cgraph_decide_inlining): Rename to ...
1589 (ipa_inline): ... this one; remove unreachable nodes before
1590 inlining functions called once; simplify the pass.
1591 (cgraph_perform_always_inlining): Rename to ...
1592 (inline_always_inline_functions): ... this one; use
1593 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1594 (cgraph_decide_inlining_incrementally): Rename to ...
1595 (early_inline_small_functions): ... this one; simplify
1596 using new predicates; cleanup; make dumps prettier.
1597 (cgraph_early_inlining): Rename to ...
1598 (early_inliner): newer inline regular functions into always-inlines;
1599 fix updating of call stmt summaries.
1600 (pass_early_inline): Update for new names.
1601 (inline_transform): Fix formating.
1602 (gate_cgraph_decide_inlining): Rename to ...
1603 (pass_ipa_inline): ... this one.
1604 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1605 * ipa-inline-analysis.c (dump_inline_summary): Update.
1606 (compute_inline_parameters): Do not compute disregard_inline_limits;
1607 look for mismatching arguments.
1608 (estimate_growth): Fix handlig of non-trivial self recursion.
1609 (inline_read_summary): Do not read info->disregard_inline_limits.
1610 (inline_write_summary): Do not write info->disregard_inline_limits.
1611 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1612 and move all checks into can_inline_edge_p predicate; re-enable code
1613 comparing optimization levels.
1614 (expand_call_inline): Do not test inline_forbidden_into_p.
1615 * Makefile.in (ipa-inline.o): Update arguments.
1617 2011-04-17 Revital Eres <revital.eres@linaro.org>
1619 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1621 2011-04-17 Revital Eres <revital.eres@linaro.org>
1623 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1625 2011-04-17 Michael Matz <matz@suse.de>
1627 PR tree-optimization/48622
1629 * ipa-inline-analysis.c (inline_read_summary): Read size/time
1630 in same order as they're written.
1632 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1634 * config/pa/predicates.md: Reorganize and simplify predicates.
1635 Eliminate duplicate code checks.
1636 (arith_operand): Rename to arith14_operand
1637 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1638 * config/pa/pa.md: Use renamed operands.
1639 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1640 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1641 arith11_operand, adddi3_operand, indexed_memory_operand,
1642 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1643 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1644 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1645 move_dest_operand, move_src_operand, prefetch_cc_operand,
1646 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1647 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1648 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1649 div_operand, int5_operand, movb_comparison_operator,
1650 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1651 arith_double_operand, ireg_operand, lhs_lshift_operand,
1652 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1653 integer_store_memory_operand): Likewise.
1654 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1655 (integer_store_memory_operand, read_only_operand,
1656 function_label_operand, borx_reg_operand,
1657 non_hard_reg_operand): Likewise.
1658 (eq_neq_comparison_operator): Delete unused operator.
1659 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1660 function_label_operand.
1661 (emit_move_sequence): Likewise.
1663 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1665 * config/i386/sse.md (sseunpackmode): New mode attribute.
1666 (ssepackmode): Ditto.
1667 (vec_pack_trunc_<mode>): Macroize expander from
1668 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1669 (vec_unpacks_lo_<mode>): Macroize expander from
1670 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1671 (vec_unpacks_hi_<mode>): Macroize expander from
1672 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1673 (vec_unpacku_lo_<mode>): Macroize expander from
1674 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1675 (vec_unpacku_hi_<mode>): Macroize expander from
1676 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1677 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1678 ix86_expand_sse4_unpack.
1679 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1681 2011-04-16 Jan Hubicka <jh@suse.cz>
1683 * cgraphbuild.c: Include ipa-inline.h.
1684 (reset_inline_failed): Use initialize_inline_failed.
1685 * cgraph.c: Include ipa-inline.h.
1686 (cgraph_create_node_1): Do not initialize estimated_growth.
1687 (initialize_inline_failed): More to ipa-inline-analysis.c
1688 (dump_cgraph_node): Do not dump inline flags.
1689 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1690 and disregard_inline_limits flags.
1691 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1692 time, size, estimated_growth.
1693 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1695 * cgraphunit.c (cgraph_decide_is_function_needed): Use
1696 DECL_DISREGARD_INLINE_LIMITS.
1697 (cgraph_analyze_function): Do not initialize
1698 node->local.disregard_inline_limits.
1699 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1700 inlinable, versionable and disregard_inline_limits.
1701 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1702 cgraph_check_inline_limits, cgraph_default_inline_p,
1703 cgraph_edge_badness, update_caller_keys, update_callee_keys,
1704 add_new_edges_to_heap): Update.
1705 (cgraph_decide_inlining_of_small_function): Update; set
1706 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1707 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1708 cgraph_decide_inlining_incrementally): Update.
1709 * ipa-inline.h (inline_summary): Add inlinable, versionable,
1710 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1711 time, size and estimated_growth parameters.
1712 (estimate_edge_growth): Update.
1713 (initialize_inline_failed): Declare.
1714 * ipa-split.c: Include ipa-inline.h
1715 (execute_split_functions): Update.
1716 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1717 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1718 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1719 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1720 estimated_growth to INT_MIN.
1721 (inline_node_duplication_hook): Likewise.
1722 (dump_inline_summary): Dump new fields.
1723 (compute_inline_parameters): Update.
1724 (estimate_edge_time, estimate_time_after_inlining,
1725 estimate_size_after_inlining, estimate_growth, inline_read_summary,
1726 inline_write_summary):
1727 (initialize_inline_failed): Move here from cgraph.c.
1728 * tree-sra.c: Include ipa-inline.h.
1729 (ipa_sra_preliminary_function_checks): Update.
1730 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1733 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1735 * config/i386/sse.md (V16): New mode iterator.
1737 (AVXMODEQI, AVXMODEDI): Remove.
1738 (sse2, sse3): New mode attribute.
1739 (mov<mode>): Use V16 mode iterator.
1740 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1741 (push<mode>1): Use V16 mode iterator.
1742 (movmisalign<mode>): Ditto.
1743 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1744 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1745 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1746 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1747 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1748 avx_movdqu<avxmodesuffix>.
1749 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1750 *avx_movdqu<avxmodesuffix>.
1751 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1752 avx_lddqu<avxmodesuffix>.
1753 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1754 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1755 avx_movnt<AVXMODEDI:mode>.
1756 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1757 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1759 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
1762 * haifa-sched.c (prune_ready_list, schedule_block): Use
1763 sched_pressure_p rather than flag_sched_pressure.
1765 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
1767 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1768 cgraph_get_node instead of cgraph_get_create_node.
1770 2011-04-15 Jakub Jelinek <jakub@redhat.com>
1772 * cfgexpand.c (expand_debug_expr): Use
1773 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1775 2011-04-15 Michael Matz <matz@suse.de>
1777 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1778 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1779 * function.c (gimplify_parameters): Ditto.
1780 * gimplify.c (gimplify_vla_decl): Ditto.
1782 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1783 (gimple_call_set_alloca_for_var): New inline function.
1784 (gimple_call_alloca_for_var_p): Ditto.
1785 * gimple.c (gimple_build_call_from_tree): Remember
1786 CALL_ALLOCA_FOR_VAR_P state.
1787 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1789 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1790 calls if they were for VLA objects.
1792 2011-04-15 Martin Jambor <mjambor@suse.cz>
1794 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1797 2011-04-15 Martin Jambor <mjambor@suse.cz>
1800 * tree-emutls.c (lower_emutls_function_body): Call
1801 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
1804 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1806 * c-decl.c (detect_field_duplicates): Call
1807 objc_detect_field_duplicates instead of objc_get_interface_ivars.
1809 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
1811 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1812 * gimple.c (gimple_asm_clobbers_memory_p): Define.
1813 * ipa-pure-const.c (check_stmt): Call it.
1814 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1816 2011-04-15 Richard Guenther <rguenther@suse.de>
1818 PR tree-optimization/48290
1819 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1820 Properly decide inhibiting propagation based on the valueized
1821 operand. Do loop-closed SSA form preserving here ...
1822 (init_copy_prop): ... not here.
1824 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
1827 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1828 (*ieee_smax<mode>3): Likewise.
1830 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1832 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1833 Replace match_operand with match_dup for the third operand in
1836 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1838 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1839 to track processing of conditionals. Update all callers.
1840 (try_combine, simplify_if_then_else): Update.
1842 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1844 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1847 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
1849 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1850 instead of match_operand for operand 3.
1852 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
1854 * recog.h (insn_operand_data): Add an "allows_mem" field.
1855 * genoutput.c (output_operand_data): Initialize it.
1856 * optabs.c (maybe_legitimize_operand_same_code): New function.
1857 (maybe_legitimize_operand): Use it when matching the original
1860 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1862 * gimplify.c: Fix issues in comments throughout.
1863 (voidify_wrapper_expr): Fix long line.
1864 (build_stack_save_restore): Likewise.
1865 (gimplify_loop_expr): Likewise.
1866 (gimplify_compound_lval): Likewise.
1867 (gimplify_init_ctor_eval): Likewise.
1868 (gimplify_modify_expr_rhs): Likewise.
1869 (omp_notice_threadprivate_variable): Likewise.
1871 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1873 * cfgexpand.c (expand_call_stmt): Convert the function type to the
1874 original one if this is not a builtin function.
1876 2011-04-14 Jakub Jelinek <jakub@redhat.com>
1879 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1880 offset it as needed based on top 2 bits in operands[3], change
1881 MEM mode to SFmode and mask those 2 bits away from operands[3].
1883 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1885 * c-parser.c (c_parser_objc_protocol_definition): Updated for
1886 change from objc_declare_protocols() to objc_declare_protocol().
1888 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
1890 * config/i386/sse.md (sse4_1): New mode attribute.
1891 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1892 avx_blend<ssemodesuffix><avxmodesuffix> and
1893 sse4_1_blend<ssemodesuffix> using VF mode iterator.
1894 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1895 avx_blendv<ssemodesuffix><avxmodesuffix> and
1896 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1897 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1898 avx_dp<ssemodesuffix><avxmodesuffix> and
1899 sse4_1_dp<ssemodesuffix> using VF mode iterator.
1900 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1901 (sse4_1_packusdw): Merge with *avx_packusdw.
1902 (sse4_1_pblendvb): Merge with *avx_pblendvb.
1903 (sse4_1_pblendw): Merge with *avx_pblendw.
1904 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1905 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1906 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1908 (sse4_1_round<ssescalarmodesuffix>): Merge with
1909 *avx_round<ssescalarmodesuffix>.
1910 (aesenc): Merge with *avx_aesenc.
1911 (aesenclast): Merge with *avx_aesenclast.
1912 (aesdec): Merge with *avx_aesdec.
1913 (aesdeclast): Merge with *avx_aesdeclast.
1914 (pclmulqdq): Merge with *pclmulqdq.
1915 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1917 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1919 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
1922 * cfgexpand.c (get_decl_align_unit): Renamed to ...
1923 (align_local_variable): This. Update DECL_ALIGN.
1924 (add_stack_var): Updated.
1925 (expand_one_stack_var): Likewise.
1927 2011-04-14 Richard Guenther <rguenther@suse.de>
1929 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1931 (dse_initialize_block_local_data, dse_leave_block,
1932 record_voperand_set, get_stmt_uid): Likewise.
1933 (dse_possible_dead_store_p): Allow any kind of killing stmt.
1934 (dse_optimize_stmt): Remove voperand set handling code.
1935 Simplify and improve to handle any kind of killing stmt.
1936 (dse_record_phi): Remove.
1937 (dse_enter_block): Simplify.
1938 (tree_ssa_dse): Likewise.
1939 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1941 2011-04-14 Jan Hubicka <jh@suse.cz>
1943 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1944 * cgraph.h (struct inline_summary): Move to ipa-inline.h
1945 (cgraph_local_info): Remove inline_summary.
1946 * ipa-cp.c: Include ipa-inline.h.
1947 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1948 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1950 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1951 (input_overwrite_node): Do not set inline summary.
1952 (input_node): Do not stream inline summary.
1953 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1954 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1955 growth; we do not have inline parameters computed for that anyway.
1956 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1957 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1958 (inline_summary_t): New type and VECtor.
1959 (debug_inline_summary, dump_inline_summaries): Declare.
1960 (inline_summary): Use VOCtor.
1961 (estimate_edge_growth): Kill hack computing call stmt size directly.
1962 * lto-section-in.c (lto_section_name): Add inline section.
1963 * ipa-inline-analysis.c: Include lto-streamer.h
1964 (node_removal_hook_holder, node_duplication_hook_holder): New holders
1965 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1966 (inline_summary_vec): Define.
1967 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1968 dump_inline_summaries): New functions.
1969 (estimate_function_body_sizes): Properly compute size/time of outgoing
1971 (compute_inline_parameters): Alloc inline_summary; do not compute
1972 size/time of incomming calls.
1973 (estimate_edge_time): Avoid missing time summary hack.
1974 (inline_read_summary): Read inline summary info.
1975 (inline_write_summary): Write inline summary info.
1976 (inline_free_summary): Free all hooks and inline summary vector.
1977 * lto-streamer.h: Add LTO_section_inline_summary section.
1978 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1979 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1981 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1983 * tree-vectorizer.h (vect_strided_store_supported): Add a
1984 HOST_WIDE_INT argument.
1985 (vect_strided_load_supported): Likewise.
1986 (vect_permute_store_chain): Return void.
1987 (vect_transform_strided_load): Likewise.
1988 (vect_permute_load_chain): Delete.
1989 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1990 count argument. Check that the count is a power of two.
1991 (vect_strided_load_supported): Likewise.
1992 (vect_permute_store_chain): Return void. Update after above changes.
1993 Assert that the access is supported.
1994 (vect_permute_load_chain): Likewise.
1995 (vect_transform_strided_load): Return void.
1996 * tree-vect-stmts.c (vectorizable_store): Update calls after
1997 above interface changes.
1998 (vectorizable_load): Likewise.
1999 (vect_analyze_stmt): Don't check for strided powers of two here.
2001 2011-04-14 Richard Guenther <rguenther@suse.de>
2003 PR tree-optimization/48590
2004 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
2005 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
2006 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
2007 BUILT_IN_STACK_SAVE.
2008 * tree-ssa-dce.c (propagate_necessity): Handle
2009 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
2011 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2013 * c-parser.c (c_parser_objc_class_declaration): Updated call to
2016 2011-04-14 Richard Guenther <rguenther@suse.de>
2018 * tree.h (get_object_alignment_1): Declare.
2019 * builtins.c (get_object_alignment_1): Split out worker from ...
2020 (get_object_alignment): ... here.
2021 * fold-const.c (get_pointer_modulus_and_residue): Use
2022 get_object_alignment_1.
2024 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2026 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
2028 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
2029 parameter. Generalise code to handle arrays as well as vectors.
2030 (vect_setup_realignment): Update accordingly.
2031 * tree-vect-stmts.c (vectorizable_store): Likewise.
2032 (vectorizable_load): Likewise.
2034 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2036 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
2037 within the per-copy loop.
2039 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2041 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
2044 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2046 * doc/options.texi (Negative): Explicitly mention that the
2047 Negative chain must be circular.
2049 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
2051 * function.h (block_chainon): Declare.
2052 * function.c (block_chainon): Define.
2054 2011-04-14 Anatoly Sokolov <aesok@post.ru>
2055 Eric Weddington <eric.weddington@atmel.com>
2056 Georg-Johann Lay <avr@gjlay.de>
2058 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
2060 (avr_init_builtins, avr_expand_builtin,
2061 avr_expand_delay_cycles, avr_expand_unop_builtin,
2062 avr_expand_binop_builtin ): New functions.
2063 (avr_builtin_id): New enum
2064 (struct avr_builtin_description): New struct
2065 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
2066 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
2068 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
2069 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
2070 UNSPECV_DELAY_CYCLES): new enumeration values
2071 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
2072 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
2073 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
2074 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
2075 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
2076 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
2077 "fmulsu"): New insns
2079 * config/avr/avr-c.c: fix line endings
2080 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
2081 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
2082 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
2083 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
2084 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
2086 * doc/extend.texi (AVR Built-in Functions): New node
2087 (Target Builtins): Add documentation of AVR
2090 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
2093 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
2094 alone. Error if non-const data has attribute progmem.
2096 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2098 * tree.h (struct tree_constructor): Include tree_typed instead of
2100 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
2101 TS_TYPED instead of TS_COMMON.
2103 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
2105 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
2106 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
2107 (sse2_psadbw): Merge with *avx_psadbw.
2108 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
2109 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
2110 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
2111 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
2112 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
2113 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
2114 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
2115 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
2116 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
2117 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
2118 (ssse3_palignrti): Merge with *avx_palignrti.
2120 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2122 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
2123 * tree-ssanames.c (fini_ssanames): VEC_free it.
2124 (make_ssa_name_fn): Update for VECness of free_ssanames.
2125 (release_ssa_name, release_dead_ssa_names): Likewise.
2126 * tree.h (struct tree_ssa_name): Include tree_typed instead of
2128 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
2129 TS_TYPED instead of TS_COMMON.
2131 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2133 * postreload-gcse.c (gcse_after_reload_main): Add calls to
2134 statistics_counter_event.
2135 * tree-ssa-copyrename.c (stats): Define.
2136 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
2137 statistics_counter_event.
2138 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
2139 (bswap_stats, widen_mul_stats): Define.
2140 (insert_reciprocals): Increment rdivs_inserted.
2141 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
2142 rfuncs_inserted. Add calls to statistics_counter_event.
2143 (execute_cse_sincos_1): Increment inserted.
2144 (execute_cse_sincos): Zeroize sincos_stats. Add call to
2145 statistics_counter_event.
2146 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
2147 of bswap_stats. Add calls to statistics_counter_event.
2148 (convert_mult_to_widen): Increment widen_mults_inserted.
2149 (convert_plusminus_to_widen): Increment maccs_inserted.
2150 (convert_mult_to_fma): Increment fmas_inserted.
2151 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
2152 calls to statistics_counter_event.
2154 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
2156 PR rtl-optimization/48455
2157 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
2158 `temp_costs->mem_cost'.
2160 2011-04-13 Jan Hubicka <jh@suse.cz>
2162 * ipa-inline.h: New file.
2163 * ipa-inline-analysis.c: New file. Broken out of ...
2164 * ipa-inline.c: ... this file; update toplevel comment;
2165 include ipa-inline.h
2166 (inline_summary): Move to ipa-inline.h
2167 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
2168 ipa-inline-analysis.c.
2169 (cgraph_estimate_time_after_inlining): Rename to
2170 estiamte_time_after_inlining; move to ipa-inline-analysis.c
2171 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
2172 to estimate_edge_growth.
2173 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
2174 rename to estimate_size_after_inlining.
2175 (cgraph_mark_inline_edge): Update for new naming convention.
2176 (cgraph_check_inline_limits): Likewise.
2177 (cgraph_edge_badness): Likewise.
2178 (cgraph_decide_recursive_inlining): Likewise.
2179 (cgraph_decide_inlining_of_small_functions): Likewise.
2180 (cgraph_decide_inlining_incrementally): Likewise.
2181 (cgraph_estimate_growth): Rename to estimate_growth; move to
2182 ipa-inline-analysis.c.
2183 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
2184 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
2185 (compute_inline_parameters): Likewise.
2186 (compute_inline_parameters_for_current): Likewise.
2187 (pass_inline_parameters): Likewise.
2188 (inline_indirect_intraprocedural_analysis): Likewise.
2189 (analyze_function): Rename to inline_analyze_function; likewise.
2190 (add_new_function): Move to ipa-inline-analysis.c.
2191 (inline_generate_summary): Likewise.
2192 (inline_read_summary): Likewise.
2193 (inline_write_summary): Likewise.
2194 * Makefile.in (ipa-inline-analysis.c): New file.
2196 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2198 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
2199 * configure: Regenerate.
2201 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2203 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
2204 instead of tree_common.
2205 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
2207 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
2208 TS_TYPED rather than TS_COMMON.
2209 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
2211 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
2214 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
2215 r20 around calls of __tablejump_elpm__
2217 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2220 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
2222 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
2224 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
2226 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
2227 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
2228 (cfi_vec): New typedef.
2229 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
2230 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
2231 (cie_cfi_vec): New static variable.
2232 (cie_cfi_head): Delete.
2233 (add_cfi): Accept a cfi_vec * as first argument. All callers and
2234 declaration changed. Use vector rather than list operations.
2235 (new_cfi): Don't initialize the dw_cfi_next field.
2236 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
2237 rather than list operations.
2238 (lookup_cfa): Use vector rather than list operations.
2239 (output_cfis): New argument upto. Accept a cfi_vec rather than
2240 a dw_cfi_ref list head as argument. All callers changed.
2241 Iterate over the vector using upto as a maximum index.
2242 (output_all_cfis): New static function.
2243 (output_fde): Use vector rather than list operations. Use the
2244 new upto argument for output_cfis rather than manipulating a
2246 (dwarf2out_begin_prologue): Change initializations to match
2248 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
2249 from the vector length rather than searching for the end of a list.
2250 Use output_all_cfis.
2251 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
2253 2011-04-13 Nick Clifton <nickc@redhat.com>
2255 * config/rx/rx.md (movmemsi): Do not use this pattern when
2256 volatile pointers are involved.
2258 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
2260 * config/i386/sse.md (pinsrbits): Remove.
2261 (sse2_packsswb): Merge with *avx_packsswb.
2262 (sse2_packssdw): Merge with *avx_packssdw.
2263 (sse2_packuswb): Merge with *avx_packuswb.
2264 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
2265 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
2266 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
2267 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
2268 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
2269 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
2270 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
2271 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
2272 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
2273 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
2274 (sse2_loadld): Merge with *avx_loadld.
2275 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
2276 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
2277 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
2278 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
2279 (vec_concatv2di): Merge with *vec_concatv2di_avx.
2281 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2283 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
2285 * print-tree.c (print_node): Likewise.
2286 * tree-inline.c (copy_tree_r): Likewise.
2287 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
2288 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
2289 instead of TS_COMMON.
2290 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
2291 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
2292 (copy_node_stat): Zero TREE_CHAIN only if necessary.
2293 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
2294 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
2296 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
2298 (TREE_CHAIN): Check for a TS_COMMON structure.
2299 (TREE_TYPE): Check for a TS_TYPED structure.
2301 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
2303 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2304 cgraph_get_create_node instead of cgraph_node.
2306 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2308 * c-parser.c (c_parser_initelt): Updated call to
2309 objc_build_message_expr.
2310 (c_parser_postfix_expression): Likewise.
2312 2011-04-12 Kai Tietz <ktietz@redhat.com>
2314 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
2315 MASK_MS_BITFIELD_LAYOUT bit.
2317 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2319 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
2320 assert it is always true.
2321 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
2324 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2326 * c-parser.c (c_lex_one_token): Rewritten conditional used when
2327 compiling Objective-C to be more efficient.
2329 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
2331 * opts-common.c (decode_cmdline_options_to_array): Remove variable
2334 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2336 * recog.h, genoutput.c, optabs.c: Revert last patch.
2338 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2341 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
2343 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2345 * recog.h (insn_operand_data): Add an "allows_mem" field.
2346 * genoutput.c (output_operand_data): Initialize it.
2347 * optabs.c (maybe_legitimize_operand_same_code): New function.
2348 (maybe_legitimize_operand): Use it when matching the original
2351 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2353 * genpreds.c (process_define_predicate): Move most processing
2354 to gensupport.c. Continue to validate the expression.
2355 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
2356 (process_define_predicate): Move processing to gensupport.c.
2357 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
2358 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
2359 (compute_predicate_codes): Moved from genrecog.c. Add lineno
2361 (valid_predicate_name_p): New function, split out from old
2362 genpreds.c:process_define_predicate.
2363 (process_define_predicate): New function, combining code from
2364 old genpreds.c and genrecog.c functions.
2365 (process_rtx): Call it for DEFINE_PREDICATE and
2366 DEFINE_SPECIAL_PREDICATE.
2368 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2370 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
2371 size of a '%A' memory reference.
2372 (T_DREG, T_QREG): New neon_builtin_type_bits.
2373 (arm_init_neon_builtins): Assert that the load and store operands
2374 are neon_struct_operands.
2375 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
2376 (NEON_ARG_MEMORY): New builtin_arg.
2377 (neon_dereference_pointer): New function.
2378 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
2379 Handle NEON_ARG_MEMORY.
2380 (arm_expand_neon_builtin): Update after above interface changes.
2381 Use NEON_ARG_MEMORY for loads and stores.
2382 * config/arm/predicates.md (neon_struct_operand): New predicate.
2383 * config/arm/iterators.md (V_two_elem): Tweak formatting.
2384 (V_three_elem): Use BLKmode for accesses that have no associated mode.
2385 (V_four_elem): Tweak formatting.
2386 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
2387 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
2388 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
2389 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
2390 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
2391 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
2392 (neon_vst4<mode>): Replace pointer operand with a memory operand.
2393 Use %A in the output template.
2394 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
2395 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
2396 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
2397 the width of the memory access. Remove post-increment.
2398 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
2400 2011-04-12 Nick Clifton <nickc@redhat.com>
2402 * config/v850/v850.c (expand_prologue): Do not use the CALLT
2403 instruction for interrupt handlers if the target is the basic V850
2405 (expand_epilogue): Likewise.
2407 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2409 PR rtl-optimization/48549
2410 * combine.c (propagate_for_debug): Also stop after BB_END of
2411 this_basic_block. Process LAST and just stop processing after it.
2412 (combine_instructions): If last_combined_insn has been deleted,
2413 set last_combined_insn to its PREV_INSN.
2415 2011-04-12 Richard Guenther <rguenther@suse.de>
2417 PR tree-optimization/46076
2418 * gimple.h (struct gimple_statement_call): Add fntype field.
2419 (gimple_call_fntype): Adjust.
2420 (gimple_call_set_fntype): New function.
2421 * gimple.c (gimple_build_call_1): Set the call function type.
2422 * gimplify.c (gimplify_call_expr): Preserve the function
2423 type the frontend used for the call.
2424 (gimplify_modify_expr): Likewise.
2425 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
2427 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
2429 * tree-ssa.c (useless_type_conversion_p): Function pointer
2430 conversions are useless.
2432 2011-04-12 Martin Jambor <mjambor@suse.cz>
2434 * cgraph.h (cgraph_node): Remove function declaration.
2435 (cgraph_create_node): Declare.
2436 (cgraph_get_create_node): Likewise.
2437 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
2438 Updated all callers.
2439 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
2440 the decl does not already exist. Call cgraph_get_create_node instead
2442 (cgraph_get_create_node): New function.
2443 (cgraph_same_body_alias): Update comment.
2444 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
2445 assert it does not return NULL.
2446 (cgraph_update_edges_for_call_stmt): Likewise.
2447 (cgraph_clone_edge): Likewise.
2448 (cgraph_create_virtual_clone): Likewise.
2449 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
2450 instead of cgraph_node.
2451 (cgraph_add_new_function): Call cgraph_create_node or
2452 cgraph_get_create_node instead of cgraph_node.
2453 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
2454 instead of cgraph_node.
2455 (record_eh_tables): Likewise.
2456 (mark_address): Likewise.
2457 (mark_load): Likewise.
2458 (build_cgraph_edges): Call cgraph_get_create_node instead
2460 (rebuild_cgraph_edges): Likewise.
2461 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
2462 instead of cgraph_node.
2463 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
2465 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
2466 cgraph_create_node instead of cgraph_node.
2467 * c-decl.c (finish_function): Call cgraph_get_create_node instead
2469 * lto-cgraph.c (input_node): Likewise.
2470 * lto-streamer-in.c (input_function): Likewise.
2471 * varasm.c (mark_decl_referenced): Likewise.
2472 (assemble_alias): Likewise.
2474 2011-04-12 Martin Jambor <mjambor@suse.cz>
2476 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
2477 instead of cgraph_node and assert it does not return NULL.
2478 * lto-streamer-in.c (lto_read_body): Likewise.
2479 * omp-low.c (new_omp_context): Likewise.
2480 (create_task_copyfn): Likewise.
2481 * tree-emutls.c (lower_emutls_function_body): Likewise.
2482 * matrix-reorg.c (transform_allocation_sites): Likewise.
2484 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2487 * c-typeck.c (build_asm_expr): Error out on attempts to use
2488 void type outputs or inputs for constraints that allow reg or
2491 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
2492 Richard Earnshaw <rearnsha@arm.com>
2495 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
2496 to use sign-magnitude offsets. Reject unsupported unaligned
2497 cases. Add detailed description in comments.
2498 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
2499 condition from TARGET_32BIT to TARGET_ARM.
2501 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
2503 * tree.h (struct typed_tree): New.
2504 (struct tree_common): Include it instead of tree_base.
2505 (TREE_TYPE): Update for new location of type field.
2506 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
2507 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
2508 (union tree_node): Add typed field.
2509 * treestruct.def (TS_TYPED): New.
2510 * lto-streamer.c (check_handled_ts_structures): Handle it.
2511 * tree.c (MARK_TS_TYPED): New macro.
2512 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
2514 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
2516 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
2517 (force_nonfallthru): Do not alter the loop nest if no basic block
2520 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
2522 * config/i386/sse.md (VI): New mode iterator.
2524 (AVX256MODEI): Ditto.
2525 (AVXMODEF4P): Ditto.
2526 (avxvecpsmode): Ditto.
2527 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
2528 (sse2_andnot<mode>3): New expander.
2529 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
2530 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
2531 (<any_logic:code><mode>3): Use VI mode iterator.
2532 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
2533 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
2534 (*andnottf3): Handle AVX three-operand constraints.
2535 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
2537 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2538 Robert Millan <rmh@gnu.org>
2540 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
2541 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
2542 GNU_USER_DYNAMIC_LINKER64): Define.
2543 (REG_NAME): Don't undefine.
2544 (MD_UNWIND_SUPPORT): Undefine.
2545 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
2546 (REG_NAME): Don't undefine.
2547 (MD_UNWIND_SUPPORT): Undefine.
2548 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
2550 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2552 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2553 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2555 2011-04-11 Xinliang David Li <davidxl@google.com>
2557 * value-profile.c (check_ic_target): New function.
2558 (gimple_ic_transform): Sanity check indirect call target.
2559 * gimple-low.c (gimple_check_call_args): Interface change.
2560 (gimple_check_call_matching_types): New function.
2561 * tree-inline.c (tree_can_inline_p): Call new function.
2563 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
2565 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2566 tree-pretty-print.h & realmpfr.h.
2568 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
2571 * ira.c (setup_pressure_classes): Fix typo in loop condition.
2572 (setup_allocno_and_important_classes): Ditto.
2574 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2576 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2577 GNU_USER_DYNAMIC_LINKER.
2578 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2579 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2580 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2581 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2582 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2583 GNU_USER_TARGET_OS_CPP_BUILTINS.
2584 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2585 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2586 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2587 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2588 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2589 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2590 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2591 GNU_USER_TARGET_OS_CPP_BUILTINS.
2592 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2593 GNU_USER_DYNAMIC_LINKER.
2594 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2595 GNU_USER_TARGET_OS_CPP_BUILTINS.
2596 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2597 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2598 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2599 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2600 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2601 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2602 GNU_USER_DYNAMIC_LINKER64): Remove.
2603 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2604 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2605 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2606 GNU_USER_DYNAMIC_LINKER.
2607 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2608 GNU_USER_TARGET_OS_CPP_BUILTINS.
2609 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2610 GNU_USER_TARGET_OS_CPP_BUILTINS.
2611 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2612 to GNU_USER_TARGET_OS_CPP_BUILTINS.
2613 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2614 GNU_USER_TARGET_OS_CPP_BUILTINS.
2615 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2616 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2617 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2618 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2619 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2620 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2621 GNU_USER_DYNAMIC_LINKER.
2622 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2623 GNU_USER_TARGET_OS_CPP_BUILTINS.
2624 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2625 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2626 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2627 GNU_USER_DYNAMIC_LINKER.
2628 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2629 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2630 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2631 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2632 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2633 GNU_USER_DYNAMIC_LINKER.
2634 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2635 GNU_USER_DYNAMIC_LINKERN32.
2636 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2637 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
2638 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
2639 GNU_USER_DYNAMIC_LINKER32.
2640 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2641 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2642 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2643 GNU_USER_DYNAMIC_LINKER.
2644 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2645 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2646 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2647 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2648 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2649 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2650 GNU_USER_DYNAMIC_LINKER32.
2651 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2652 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2653 GNU_USER_DYNAMIC_LINKER.
2654 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2655 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2656 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2657 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
2658 GNU_USER_DYNAMIC_LINKER64.
2659 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2660 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2661 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2662 GNU_USER_DYNAMIC_LINKER.
2663 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2664 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2665 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2666 GNU_USER_DYNAMIC_LINKER.
2667 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2668 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2669 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2670 GNU_USER_DYNAMIC_LINKER32.
2671 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2672 GNU_USER_DYNAMIC_LINKER64.
2673 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2674 GNU_USER_DYNAMIC_LINKER64.
2675 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2676 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2677 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2678 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2679 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2681 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2683 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
2684 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2685 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2686 GNU_USER_DYNAMIC_LINKER.
2687 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2688 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
2689 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2690 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2691 GNU_USER_DYNAMIC_LINKER64.
2692 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2693 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2694 GNU_USER_LINK_EMULATION.
2695 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2696 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2697 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2698 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2699 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2700 CPP_SPEC, CC1_SPEC): Remove.
2701 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2702 (GNU_USER_DYNAMIC_LINKER): Define.
2703 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2704 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2705 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2706 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2707 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2708 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2709 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2710 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2711 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2712 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2713 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2714 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2715 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2716 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2717 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2718 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2719 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2720 GNU_USER_DYNAMIC_LINKER.
2721 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2722 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2723 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2724 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2725 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2726 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2727 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2728 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2729 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2730 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2732 2011-04-11 Kai Tietz <ktietz@redhat.com>
2736 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2737 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2739 (ix86_is_msabi_thiscall): Removed.
2740 (ix86_is_type_thiscall): Likewise.
2741 (ix86_get_callcvt): New function.
2742 (ix86_comp_type_attributes): Simplify check.
2743 (ix86_function_regparm): Use ix86_get_callcvt for calling
2744 convention attribute checks.
2745 (ix86_return_pops_args): Likewise.
2746 (ix86_static_chain): Likewise.
2747 (x86_this_parameter): Likewise.
2748 (x86_output_mi_thunk): Likewise.
2749 (ix86_function_type_abi): Optimize check for types without attributes.
2750 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2751 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2752 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2754 (IX86_BASE_CALLCVT): Helper macro.
2755 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2756 Use ix86_get_callcvt for calling convention attribute checks and avoid
2757 symbol-decoration for stdcall in TARGET_RTD case.
2758 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2760 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2763 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
2765 * config/i386/sse.md (VI_128): New mode iterator.
2766 (VI12_128): Rename from SSEMODE12.
2767 (VI14_128): Rename from SSEMODE14.
2768 (VI124_128): New mode iterator.
2769 (VI24_128): Rename from SSEMODE248.
2770 (VI248_128): Rename from SSEMODE248.
2771 (SSEMODE124C8): Remove.
2772 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2773 (*sse2_<plusminus_insn><mode>3): Merge with
2774 *avx_<plusminus_insn><mode>3.
2775 (*mulv8hi3): Merge with *avx_mulv8hi3.
2776 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2777 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2778 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2779 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2780 (ashr<mode>3): Merge with *avx_ashr<mode>3.
2781 (lshr<mode>3): Merge with *avx_lshr<mode>3.
2782 (ashl<mode>3): Merge with *avx_ashl<mode>3.
2783 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2784 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2785 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2786 (*<smaxmin:code>v8hi3): Ditto.
2787 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2788 (*<smaxmin:code>v16qi3): Ditto.
2789 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2790 (*sse2_eq<mode>3): Ditto.
2791 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2792 (*sse2_gt<mode>3): Ditto.
2793 (vcondv2di): Split out of vcond<mode>.
2794 (vconduv2di): Split out of vcondu<mode>.
2796 2011-04-11 Richard Guenther <rguenther@suse.de>
2798 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2799 before calling tree_low_cst.
2801 2011-04-11 Richard Guenther <rguenther@suse.de>
2803 * stor-layout.c (layout_type): Compute all array index size operations
2804 in the original type.
2805 (initialize_sizetypes): Add comment.
2806 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2808 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2810 * common.opt (Tbss=, Tdata=, Ttext=): New options.
2812 2011-04-11 Martin Jambor <mjambor@suse.cz>
2814 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2815 of cgraph_node, handle NULL return value.
2816 (cgraph_global_info): Likewise.
2817 (cgraph_rtl_info): Likewise.
2818 * tree-inline.c (estimate_num_insns): Likewise.
2819 * gimplify.c (unshare_body): Likewise.
2820 (unvisit_body): Likewise.
2821 (gimplify_body): Likewise.
2822 * predict.c (optimize_function_for_size_p): Likewise.
2823 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2824 (call_may_clobber_ref_p_1): Likewise.
2825 * varasm.c (function_section_1): Likewise.
2826 (assemble_start_function): Likewise.
2828 2011-04-11 Martin Jambor <mjambor@suse.cz>
2830 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2832 * final.c (rest_of_clean_state): Likewise.
2833 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2834 * passes.c (pass_init_dump_file): Likewise.
2835 (execute_all_ipa_transforms): Likewise.
2836 (function_called_by_processed_nodes_p): Likewise.
2837 * predict.c (maybe_hot_frequency_p): Likewise.
2838 (probably_never_executed_bb_p): Likewise.
2839 (compute_function_frequency): Likewise.
2840 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2841 (unnest_nesting_tree_1): Likewise.
2842 (lower_nested_functions): Likewise.
2843 * tree-optimize.c (execute_fixup_cfg): Likewise.
2844 (tree_rest_of_compilation): Likewise.
2845 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2846 * tree-sra.c (ipa_early_sra): Likewise.
2847 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2848 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2849 * ipa.c (record_cdtor_fn): Likewise.
2850 * ipa-inline.c (cgraph_early_inlining): Likewise.
2851 (compute_inline_parameters_for_current): Likewise.
2852 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2853 * ipa-pure-const.c (local_pure_const): Likewise.
2854 * ipa-split.c (split_function): Likewise.
2855 (execute_split_functions): Likewise.
2856 * cgraphbuild.c (build_cgraph_edges): Likewise.
2857 (rebuild_cgraph_edges): Likewise.
2858 (cgraph_rebuild_references): Likewise.
2859 (remove_cgraph_callee_edges): Likewise.
2860 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2861 (verify_cgraph_node): Likewise.
2862 (cgraph_analyze_functions): Likewise.
2863 (cgraph_preserve_function_body_p): Likewise.
2864 (save_inline_function_body): Likewise.
2865 (save_inline_function_body): Likewise.
2866 * tree-inline.c (copy_bb): Likewise.
2867 (optimize_inline_calls): Likewise.
2869 2011-04-11 Martin Jambor <mjambor@suse.cz>
2871 PR tree-optimization/48195
2872 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2873 ipa_check_create_edge_args.
2874 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2875 ipa_check_create_edge_args.
2876 * ipa-inline.c (inline_generate_summary): Do not call
2877 ipa_check_create_node_params and ipa_check_create_edge_args.
2878 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2879 ipa_check_create_edge_args.
2881 2011-04-09 Anatoly Sokolov <aesok@post.ru>
2883 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2885 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2886 * function.c (record_hard_reg_sets): Likewise.
2887 * ira.c (compute_regs_asm_clobbered): Likewise.
2888 * sched-deps.c (sched_analyze_1): Likewise.
2889 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2891 2011-04-09 Xinliang David Li <davidxl@google.com>
2893 PR tree-optimization/PR48484
2894 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2895 has_valid_pred lazily
2897 2011-04-09 Duncan Sands <baldrick@free.fr>
2899 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2901 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
2903 * combine.c (combine_validate_cost): Adjust comments. Set registered
2904 cost of I0 to zero at the end, if any.
2906 2011-04-08 Xinliang David Li <davidxl@google.com>
2908 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2909 to insane profile data.
2911 2011-04-08 Xinliang David Li <davidxl@google.com>
2913 * ipa-cp.c (ipcp_update_profiling): Correct
2914 negative scale factor due to insane profile data.
2916 2011-04-08 Xinliang David Li <davidxl@google.com>
2918 * final.c (dump_basic_block_info): New function.
2919 (final): Dump basic block.
2920 (final_scan_insn): Remove old dump.
2922 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
2925 * config.gcc (i386-*-freebsd): Disable unwind table generation for
2928 2011-04-08 Michael Matz <matz@suse.de>
2931 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2933 (rebuild_jump_labels): Call rebuild_jump_labels_1.
2934 * rtl.h (rebuild_jump_labels_chain): Declare.
2935 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2936 insns inserted on edges.
2938 2011-04-08 Joseph Myers <joseph@codesourcery.com>
2940 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2941 * config/arm/arm-arches.def: New.
2942 * config/arm/arm-opts.h: New.
2943 * config/arm/genopt.sh: New.
2944 * config/arm/arm-tables.opt: New (generated).
2945 * config/arm/arm.c (arm_handle_option, arm_target_help,
2946 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2947 (all_architectures): Get most table contents from arm-arches.def.
2948 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2949 arm_selected_tune here.
2950 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2951 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2952 (march=, mcpu=, mtune=): Use Enum and Var.
2953 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2954 (arm.o): Update dependencies.
2956 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
2958 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2960 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2961 (write_typed_alloc_defns): Likewise.
2962 (main): Calls write_typed_alloc_defns with output_header.
2964 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
2967 * ira-color.c (setup_profitable_hard_regs): Add comments.
2968 Don't take prohibited hard regs into account.
2969 (setup_conflict_profitable_regs): Rename to
2970 get_conflict_profitable_regs.
2971 (check_hard_reg_p): Check prohibited hard regs.
2973 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2975 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2976 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2977 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2979 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2982 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2983 move from floating point to shift amount register.
2984 (emit_move_sequence): Remove secondary reload support for floating
2985 point to shift amount amount register copies.
2986 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2987 amount register copies.
2988 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2989 register, return false if mode isn't a scalar integer mode.
2990 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2992 2011-04-08 Richard Guenther <rguenther@suse.de>
2994 * gimple.c (gimple_call_flags): Remove kludge.
2996 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2998 * sel-sched.c (sel_region_init): Move call to
2999 sel_setup_region_sched_flags after setup_current_loop_nest.
3001 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
3003 PR rtl-optimization/48272
3004 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
3005 init_insn_reg_pressure_info. Adjust a caller.
3006 * sched-int.h (init_insn_reg_pressure_info): Declare.
3007 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
3008 when sched-pressure is enabled.
3010 2011-04-08 Richard Guenther <rguenther@suse.de>
3012 * gimple.c (gimple_set_modified): Do not queue calls to
3013 MODIFIED_NORETURN_CALLS here ...
3014 * tree-ssa-operands.c (update_stmt_operands): ... but here.
3016 2011-04-08 Richard Guenther <rguenther@suse.de>
3019 * toplev.c (lang_dependent_init): Do not open asm_out_file
3020 in WPA mode, nor perform debug machinery initialization.
3021 (finalize): Do not unlink asm_out_file in WPA mode.
3023 2011-04-08 Richard Guenther <rguenther@suse.de>
3025 * gimple.h (gimple_call_fntype): New function.
3026 (gimple_call_return_type): Use it.
3027 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
3028 * gimple-low.c (gimple_check_call_args): Likewise.
3029 * gimple.c (gimple_call_flags): Likewise.
3030 (gimple_call_arg_flags): Likewise.
3031 (gimple_call_return_flags): Likewise.
3032 * tree-cfg.c (verify_gimple_call): Likewise.
3033 (do_warn_unused_result): Likewise.
3034 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
3035 * value-prof.c (gimple_ic_transform): Fix fndecl check.
3037 2011-04-08 Dmitry Melnik <dm@ispras.ru>
3039 PR rtl-optimization/48235
3040 * sel-sched.c (code_motion_process_successors): Recompute the last
3041 insn in basic block if control flow changed.
3042 (code_motion_path_driver): Ditto. Recompute the first insn as well.
3043 Update condition for ilist_remove.
3045 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3047 PR rtl-optimization/48302
3048 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
3049 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
3050 it to record added preheader blocks.
3051 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
3052 on to sel_add_loop_preheaders.
3053 (sel_region_init): Move call to setup_current_loop_nest after
3056 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3059 * cfgloop.h (loop_has_exit_edges): New helper.
3060 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
3062 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
3063 that have no exit edges.
3065 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3067 PR rtl-optimization/48442
3068 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
3069 all callers. Adjust assert.
3071 2011-04-08 Jakub Jelinek <jakub@redhat.com>
3073 PR tree-optimization/48377
3074 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
3075 is_packed to true even for types with smaller TYPE_ALIGN than
3078 2011-04-08 Richard Guenther <rguenther@suse.de>
3081 * doc/tm.texi: Re-generate.
3083 2011-04-08 Wei Guozhi <carrot@google.com>
3086 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
3087 * config/arm/arm.c (arm_attr_length_push_multi): New function.
3088 * config/arm/arm.md (*push_multi): Change the length computation to
3091 2011-04-08 Anatoly Sokolov <aesok@post.ru>
3093 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
3094 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
3095 * doc/tm.texi: Regenerate.
3096 * system.h (ASM_OUTPUT_BSS): Poison.
3097 * varasm.c (asm_output_bss): Remove function.
3098 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
3100 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
3101 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
3102 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
3103 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3105 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3107 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3109 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3111 2011-04-07 Joseph Myers <joseph@codesourcery.com>
3113 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
3116 2011-04-07 Joseph Myers <joseph@codesourcery.com>
3118 * config/m68k/m68k.c (m68k_handle_option): Don't handle
3119 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
3120 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
3122 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3123 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
3124 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
3125 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
3126 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
3127 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
3128 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
3129 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
3130 options. Don't map other m68k options manually. Don't handle
3131 old-style options as canonical.
3132 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
3133 * doc/install.texi (m68k-*-*): Document binutils version requirement.
3135 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
3137 * basic-block.h (force_nonfallthru): Move to...
3138 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
3139 (force_nonfallthru): ...here.
3140 * cfghooks.c (force_nonfallthru): New function.
3141 * cfgrtl.c (force_nonfallthru): Rename into...
3142 (rtl_force_nonfallthru): ...this.
3143 (commit_one_edge_insertion): Do not set AUX field.
3144 (commit_edge_insertions): Do not discover new basic blocks.
3145 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
3146 (cfg_layout_rtl_cfg_hooks): Likewise.
3147 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
3148 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
3149 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
3151 2011-04-07 Anatoly Sokolov <aesok@post.ru>
3153 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
3156 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
3158 * config/i386/sse.md: Update copyright year.
3159 (avxcvtvecmode): Remove.
3160 (sse_movhlps): Merge with *avx_movhlps.
3161 (sse_movlhps): Merge with *avx_movlhps.
3162 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
3163 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
3164 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
3165 (sse_loadhps): Merge with *avx_loadhps.
3166 (sse_storelps): Merge with *avx_storelps.
3167 (sse_loadlps): Merge with *avx_loadlps.
3168 (sse_movss): Merge with *avx_movss.
3169 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
3170 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
3171 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
3172 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
3173 (vec_set<mode>_0): Ditto.
3174 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
3175 (sse4_1_insertps): Merge with *avx_insertps.
3176 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
3177 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
3178 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
3179 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
3180 (sse2_storehpd): Merge with *avx_storehpd.
3181 (sse2_loadhpd): Merge with *avx_loadhpd.
3182 (sse2_loadlpd): Merge with *avx_loadlpd.
3183 (sse2_movsd): Merge with *avx_movsd.
3184 (*vec_concatv2df): Merge with *vec_concatv2df.
3186 2011-04-07 Jakub Jelinek <jakub@redhat.com>
3189 * combine.c (combine_instructions): Add last_combined_insn,
3190 update it if insn is after it, pass it to all try_combine calls.
3191 (try_combine): Add last_combined_insn parameter, pass it instead of
3192 i3 to propagate_for_debug.
3194 2011-04-07 Nick Clifton <nickc@redhat.com>
3196 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
3197 to handle MDR <-> data register transfers.
3198 (movhi_internal): Likewise.
3200 2011-04-07 Alan Modra <amodra@gmail.com>
3202 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
3203 previous stack info.
3205 2011-04-07 Tom de Vries <tom@codesourcery.com>
3208 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
3209 flow_find_cross_jump. Swap variables to implement backward replacement.
3210 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
3212 2011-04-07 Tom de Vries <tom@codesourcery.com>
3215 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3216 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
3218 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
3219 src1 or src2. Redirect edges to the last basic block. Update
3220 frequency and count on multiple basic blocks in case of fallthru.
3222 2011-04-07 Tom de Vries <tom@codesourcery.com>
3225 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
3227 (old_insns_match_p): Change return type. Replace return false/true
3228 with return dir_none/dir_both. Use can_replace_by.
3229 (flow_find_cross_jump): Add dir_p parameter. Init replacement
3230 direction from dir_p. Register replacement direction in dir, last_dir
3231 and afterlast_dir. Handle new return type of old_insns_match_p using
3232 merge_dir. Return replacement direction in dir_p.
3233 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
3234 return type of old_insns_match_p.
3235 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
3236 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
3237 flow_find_cross_jump.
3238 * basic-block.h (enum replace_direction): New type.
3239 (flow_find_cross_jump): Add parameter to declaration.
3241 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
3243 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
3244 (AVXMODEDCVTPS2DQ): Ditto.
3245 (VEC_FLOAT_MODE): Ditto.
3246 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
3247 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
3248 (<any_logic:code><mode>3): Use VF mode iterator.
3249 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
3250 Use VF mode iterator.
3251 (copysign<mode>3): Use VF mode iterator.
3252 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
3253 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
3254 (*<any_logic:code><MODEF:mode>3): Merge with
3255 *avx_<any_logic:code><MODEF:mode>3.
3256 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
3257 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
3258 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
3259 (avx_cvtdq2ps<avxmodesuffix>): Remove.
3260 (sse2_cvtdq2ps): Use %v modifier.
3261 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
3262 (avx_cvtps2dq<avxmodesuffix>): Remove.
3263 (sse2_cvtps2dq): Use %v modifier.
3264 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
3265 (avx_cvttps2dq<avxmodesuffix>): Remove.
3266 (sse2_cvttps2dq): Use %v modifier.
3267 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
3268 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
3269 (sse2_cvtsd2siq): Fix insn template.
3270 (sse2_cvtsd2siq_2): Ditto.
3271 (sse2_cvttsd2siq): Ditto.
3272 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
3273 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
3275 2011-04-06 Joseph Myers <joseph@codesourcery.com>
3277 * gcov-io.c: Use GCC Runtime Library Exception.
3279 2011-04-06 Jakub Jelinek <jakub@redhat.com>
3282 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
3283 as base_reg whatever register reg has been eliminated to, instead
3284 of hardcoding STACK_POINTER_REGNUM.
3286 2011-04-06 Joseph Myers <joseph@codesourcery.com>
3288 * doc/tm.texi.in: Document C target hooks as separate from general
3290 * doc/tm.texi: Regenerate.
3291 * genhooks.c (struct hook_desc): Add docname field.
3292 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
3294 (hook_array): Include c-target.def.
3295 (emit_documentation): Use docname field in output.
3296 (emit_init_macros): Take docname argument. Only emit definitions
3297 for hooks matching docname.
3298 (main): Expect additional arguments in all cases. Pass argument
3299 to emit_init_macros.
3300 * target.def: Move initial macro definitions and comments to
3301 target-hooks-macros.h.
3302 (gcc_targetcm): Move to c-family/c-target.def.
3303 * target.h (targetcm): Move declaration to c-family/c-target.h.
3304 * targhooks.c (default_handle_c_option): Move to
3306 * targhooks.h (default_handle_c_option): Move declaration to
3307 c-family/c-common.h.
3308 * target-hooks-macros.h: New file.
3309 * config.gcc (target_has_targetcm): Define and use to add to
3310 c_target_objs and cxx_target_objs.
3311 * config/default-c.c: New file.
3312 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
3313 of target.h and target-def.h.
3314 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
3315 (darwin_objc_construct_string, darwin_cfstring_ref_p,
3316 darwin_check_cfstring_format_arg): Make static.
3317 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3318 TARGET_STRING_OBJECT_REF_TYPE_P,
3319 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
3320 * config/darwin-protos.h (darwin_objc_construct_string,
3321 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
3323 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3324 TARGET_STRING_OBJECT_REF_TYPE_P,
3325 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
3326 * config/t-darwin (darwin-c.o): Update dependencies.
3327 * system.h (TARGET_HAS_TARGETCM): Poison.
3328 * Makefile.in (TARGET_H): Update.
3329 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
3330 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
3331 (default-c.o): New target.
3332 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
3333 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
3334 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
3336 (build/genhooks.o): Update dependencies.
3338 2011-04-06 Richard Guenther <rguenther@suse.de>
3340 * ipa-inline.c (enum inlining_mode): Remove.
3341 (cgraph_flatten): Use some other token.
3342 (cgraph_edge_early_inlinable_p): New function, split out from ...
3343 (cgraph_perform_always_inlining): New function, split out from ...
3344 (cgraph_decide_inlining_incrementally): ... here.
3345 (cgraph_mark_inline_edge): Adjust.
3346 (cgraph_early_inlining): Re-structure.
3347 (pass_early_inline): Require SSA form.
3349 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
3350 Julian Brown <julian@codesourcery.com>
3351 Mark Shinwell <shinwell@codesourcery.com>
3353 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
3354 LO_REGS only for Thumb-1.
3355 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
3356 be used in short instructions when optimising for size on Thumb-2.
3358 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
3360 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
3361 associated with user returns to be preserved.
3363 2011-04-06 Tristan Gingold <gingold@adacore.com>
3365 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
3366 symbol_queue_size, DBXOUT_DECR_NESTING,
3367 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
3368 if XCOFF_DEBUGGING_INFO.
3370 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
3372 * config/i386/i386.md (attribute isa): New.
3373 (attribute enabled): New.
3374 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
3375 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
3376 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
3377 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
3378 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
3379 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3380 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
3381 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
3383 * config/i386/sse.md (VF): New mode iterator.
3387 (SSEMODEF4): Remove.
3388 (attribute sse): Handle V8SF and V4DF modes.
3389 (<absneg:code><mode>2): Use VF mode iterator.
3390 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
3392 (<plusminus_insn><mode>3): Use VF mode iterator.
3393 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3394 Use VF mode iterator.
3395 (<sse>_vm<plusminus_insn><mode>3): Merge with
3396 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
3397 (mul<mode>3): Use VF mode iterator.
3398 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
3399 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
3401 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
3402 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
3403 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
3404 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
3406 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
3407 Use VF1 mode iterator.
3408 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
3409 (sqrt<VF2:mode>2): New expander.
3410 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
3411 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
3412 and sqrtv2df2. Use VF mode iterator.
3413 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
3415 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
3416 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
3417 Use VF1 mode iterator.
3418 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
3419 (<smaxmin:code><mode>3): Use VF mode iterator.
3420 (*<smaxmin:code><mode>3_finite): Merge with
3421 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
3422 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3423 (<sse>_vm<smaxmin:code><mode>2): Merge with
3424 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
3425 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
3427 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
3429 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
3430 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
3431 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
3432 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
3433 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
3435 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
3436 Use VF_128 mode iterator.
3437 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
3439 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
3440 VF_128 mode iterator.
3441 (vcond<mode>): Use VF mode iterator.
3442 * config/i386/predicates.md (sse_comparison_operator): Merge with
3443 avx_comparison_float_operator. Do not declare as special_predicate.
3444 * config/i386/i386.c (struct builtin_description): Update for renamed
3446 (ix86_expand_args_builtin): Ditto.
3447 (ix86_expand_sse_compare_mask): Ditto.
3449 2011-04-06 Richard Guenther <rguenther@suse.de>
3451 * tree-inline.c (estimate_num_insns): For calls simply account
3452 for all passed arguments and a used return value.
3454 2011-04-06 Richard Guenther <rguenther@suse.de>
3456 PR tree-optimization/47663
3457 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
3458 call_stmt_time fields.
3459 (cgraph_edge_inlinable_p): Declare.
3460 (cgraph_edge_recursive_p): New inline function.
3461 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
3462 (cgraph_clone_edge): Copy it.
3463 * ipa-inline.c (cgraph_estimate_edge_time): New function.
3464 Account for call stmt time.
3465 (cgraph_estimate_time_after_inlining): Take edge argument.
3466 (cgraph_estimate_edge_growth): Account call stmt size.
3467 (cgraph_estimate_size_after_inlining): Take edge argument.
3468 (cgraph_mark_inline_edge): Adjust.
3469 (cgraph_check_inline_limits): Likewise.
3470 (cgraph_recursive_inlining_p): Remove.
3471 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
3472 (cgraph_decide_recursive_inlining): Take edge argument and
3474 (cgraph_decide_inlining_of_small_functions): Do not avoid
3475 diags for recursive inlining here.
3476 (cgraph_flatten): Adjust.
3477 (cgraph_decide_inlining_incrementally): Likewise.
3478 (estimate_function_body_sizes): Remove call cost handling.
3479 (compute_inline_parameters): Initialize caller edge call costs.
3480 (cgraph_estimate_edge_growth): New function.
3481 (cgraph_estimate_growth): Use it.
3482 (cgraph_edge_badness): Likewise.
3483 (cgraph_check_inline_limits): Take an edge argument.
3484 (cgraph_decide_inlining_of_small_functions): Adjust.
3485 (cgraph_decide_inlining): Likewise.
3486 * tree-inline.c (estimate_num_insns): Only account for call
3487 return value if it is used.
3488 (expand_call_inline): Avoid diagnostics on recursive inline
3490 * lto-cgraph.c (lto_output_edge): Output edge call costs.
3491 (input_edge): Input edge call costs.
3493 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3495 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
3497 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
3499 * doc/invoke.texi (Spec Files): Fix typo.
3501 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
3503 * profile.c (branch_prob): Move declaration of local variable. Remove
3504 obsolete ??? comment. Expand the location explicitly instead of using
3505 the LOCATION_FILE and LOCATION_LINE macros.
3507 2011-04-06 Wei Guozhi <carrot@google.com>
3510 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
3511 (arm_cond_branch): Likewise.
3512 (arm_cond_branch_reversed): Likewise.
3513 (arm_jump): Likewise.
3514 (push_multi): Likewise.
3515 * config/arm/constraints.md (Py): New constraint.
3517 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3520 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
3522 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
3523 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
3524 #ifdef DBX_DEBUGGING_INFO.
3526 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
3529 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
3530 if old and new states differ.
3532 2011-04-05 Joseph Myers <joseph@codesourcery.com>
3534 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
3535 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
3536 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3537 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
3538 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
3540 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
3541 ColdFire options to -mcpu= options.
3543 2011-04-05 Jeff Law <law@redhat.com>
3545 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
3546 check if BB is a successor of LOOP->header and return
3547 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
3549 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
3551 * cprop.c (struct reg_use): Remove.
3552 (reg_use_table): Make an array of RTX.
3553 (find_used_regs, constprop_register, local_cprop_pass,
3554 bypass_block): Simplify users of reg_use_table.
3555 (cprop_insn): Likewise. Iterate if copy propagation succeeded
3556 on one of the uses found by find_used_regs.
3558 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3561 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3564 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3566 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3568 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3570 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
3573 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3575 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3577 * combine.c: Include obstack.h.
3578 (struct insn_link): Define.
3579 (uid_log_links): Adjust type.
3580 (FOR_EACH_LOG_LINK): New macro.
3581 (insn_link_obstack): Declare.
3582 (alloc_insn_link): Define.
3583 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
3584 type of link variables.
3585 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3586 (try_combine, record_promoted_values, distribute_notes): Likewise.
3587 (distribute_links): Likewise. Tweak prototype.
3588 (clear_log_links): Delete.
3589 (adjust_for_new_dest): Call alloc_insn_link.
3590 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3592 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3594 * gcse.c (modify_mem_list): Convert to an array of VECs.
3595 (canon_modify_mem_list, compute_transp): Tweak formatting.
3596 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
3597 (load_killed_in_block_p): Likewise.
3598 (record_last_mem_set_info): Likewise.
3599 (clear_modify_mem_tables): Likewise.
3601 2011-04-05 Tom de Vries <tom@codesourcery.com>
3604 * function.c (emit_use_return_register_into_block): Only define if
3607 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
3609 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3611 2011-04-05 Joseph Myers <joseph@codesourcery.com>
3613 * config/rx/rx-opts.h: New.
3614 * config/rx/rx.c (rx_cpu_type): Remove.
3615 (rx_handle_option): Don't assert that global structures are in
3616 use. Access variables via opts pointer. Defer most handling of
3617 OPT_mint_register_. Use error_at.
3618 (rx_option_override): Handle deferred OPT_mint_register_ here.
3619 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3620 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3621 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3622 (rx_cpu_types): New Enum and EnumValue entries.
3623 (mint-register=): Use Defer and use Var accordingly.
3625 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3627 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3628 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3629 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3631 (debug_free_queue, debug_nesting, symbol_queue_index):
3633 * dbxout.c: ...to here. Make static.
3635 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3637 * gcse.c (modify_pair): Define. Define a VEC of it.
3638 (canon_modify_mem_list): Convert to an array of VECs.
3639 (free_insn_expr_list_list): Delete.
3640 (clear_modify_mem_tables): Call VEC_free instead.
3641 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3642 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3643 (canon_list_insert, compute_transp): Likewise.
3645 2011-04-05 Tom de Vries <tom@codesourcery.com>
3648 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3651 2011-04-05 Tom de Vries <tom@codesourcery.com>
3654 * function.c (emit_use_return_register_into_block): New function.
3655 (thread_prologue_and_epilogue_insns): Use
3656 emit_use_return_register_into_block.
3658 2011-04-05 Tom de Vries <tom@codesourcery.com>
3661 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3664 2011-04-05 Tom de Vries <tom@codesourcery.com>
3666 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3668 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
3670 * config/arm/arm.md (define_constants for unspec): Replace with
3672 (define_constants for unspecv): Replace with define_c_enum.
3673 * config/arm/neon.md (define_constants for unspec): Replace with
3676 2011-04-04 Richard Henderson <rth@redhat.com>
3679 * dwarf2out.c (output_line_info): Always emit line info from
3680 at least one section.
3681 (dwarf2out_init): Create text_section_line_info here ...
3682 (set_cur_line_info_table): ... not here.
3684 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
3687 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3690 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3692 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
3694 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3695 (expr_equiv_p): Remove.
3696 (insert_set_in_table): Look at <dest, src> pair instead of expr.
3697 (hash_scan_set): Update call to insert_set_in_table.
3698 (dump_hash_table): Dump <dest, src> pair.
3699 (lookup_set): Simplify. Lookup <dest, src> pair.
3700 (compute_transp): Remove, fold heavily simplified code into...
3701 (compute_local_properties): ...here. Expect COMP and TRANSP
3703 (find_avail_set): Take set directly from struct expr.
3704 (find_bypass-set): Likewise.
3705 (bypass_block): Likewise.
3706 (cprop_insn): Likewise. Remove redundant INSN_P test.
3708 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3709 checks on form of COND from find_implicit_sets to here.
3710 (find_implicit_sets): Cleanup control flow. Split critical edges
3711 if it exposes implicit sets. Allocate/resize implicit_sets as
3713 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3714 changed something. Run df_analyze after find_implicit_sets if any
3715 edges were split. Do not allocate implicit_sets here.
3717 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3718 (gcse_obstack): Renamed to cprop_obstack.
3719 (GNEW, GNEWVEC, GNEWVAR): Remove.
3721 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3722 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3723 (gcse_alloc): Likewise, and rename to cprop_alloc.
3724 (alloc_gcse_men, free_gcse_mem): Remove.
3725 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3726 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3727 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3729 * cprop.c (oprs_not_set_p): Remove.
3730 (mark_set, mark_clobber): Remove.
3731 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3732 (reg_not_set_p): New function.
3733 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3734 (cprop_insn): Likewise.
3735 (cprop_jump): Use FOR_EACH_EDGE.
3737 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
3740 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3741 (rank_for_schedule): Use scheduled_insns vector instead of
3742 last_scheduled_insn.
3743 (ok_for_early_queue_removal): Likewise.
3744 (queue_to_ready): Search forward in nonscheduled_insns_begin if
3746 (choose_ready): Likewise.
3747 (commit_schedule): Use VEC_iterate.
3748 (schedule_block): Initialize nonscheduled_insns_begin. If we have
3749 a dbg_cnt, use it and ensure the first insn is in the ready list.
3750 (haifa_sched_init): Allocate scheduled_insns.
3751 (sched_extend_ready_list): Don't allocate it; reserve space.
3752 (haifa_sched_finish): Free it.
3754 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3756 * optc-gen.awk: Always remove type from Variable entry before
3757 recording in var_seen.
3759 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
3761 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3762 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3763 call to tidy_fallthru_edges.
3765 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3767 * doc/options.texi (ToLower): Document.
3768 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3769 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3770 * opts.h (cl_option): Add cl_tolower field.
3771 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3772 arguments with lowercase strings.
3773 * config/rx/rx.opt (mcpu=): Add ToLower.
3774 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3777 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3779 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3781 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3783 * config/vax/vax.c: Include reload.h.
3785 2011-04-04 Anatoly Sokolov <aesok@post.ru>
3787 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3788 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3789 (sparc_preferred_reload_class): New function.
3791 2011-04-04 Jakub Jelinek <jakub@redhat.com>
3794 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3795 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3797 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
3799 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3800 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3802 2011-04-03 Anatoly Sokolov <aesok@post.ru>
3804 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3805 (ASM_OUTPUT_ALIGNED_BSS): Define.
3807 2011-04-03 Michael Matz <matz@suse.de>
3809 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3810 and next_slot members.
3811 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3812 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3813 (lto_streamer_cache_append): Declare.
3814 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3815 unsigned index, remove offset parameter, ensure that we append
3816 or update existing entries.
3817 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3818 parameter, update next_slot for append.
3819 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3821 (lto_streamer_cache_insert_at): Likewise.
3822 (lto_streamer_cache_append): New function.
3823 (lto_streamer_cache_lookup): Use unsigned index.
3824 (lto_streamer_cache_get): Likewise.
3825 (lto_record_common_node): Don't test tree_node_can_be_shared.
3826 (preload_common_node): Adjust call to lto_streamer_cache_insert.
3827 (lto_streamer_cache_delete): Don't free offsets member.
3828 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3829 (lto_output_string_with_length): Use lto_output_data_stream.
3830 (lto_output_tree_header): Remove ix parameter, don't write it.
3831 (lto_output_builtin_tree): Likewise.
3832 (lto_write_tree): Adjust callers to above, don't track and write
3833 offset, write unsigned index.
3834 (output_unreferenced_globals): Don't emit all global vars.
3835 (write_global_references): Use unsigned indices.
3836 (lto_output_decl_state_refs): Likewise.
3837 (write_symbol): Likewise.
3838 * lto-streamer-in.c (lto_input_chain): Move earlier.
3839 (input_function): Use unsigned index.
3840 (input_alias_pairs): Don't read and then ignore all global vars.
3841 (lto_materialize_tree): Remove ix_p parameter, don't read index,
3842 don't pass it back, use lto_streamer_cache_append.
3843 (lto_register_var_decl_in_symtab): Use unsigned index.
3844 (lto_register_function_decl_in_symtab): Likewise.
3845 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3847 (lto_get_builtin_tree): Don't read index, use
3848 lto_streamer_cache_append.
3849 (lto_read_tree): Adjust call to lto_materialize_tree.
3851 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3852 don't use function calls in arguments to MIN.
3854 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3857 * gimple.c (gimple_type_leader_entry): Mark deletable.
3859 2011-04-03 Alan Modra <amodra@gmail.com>
3861 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3863 2011-04-03 Michael Matz <matz@suse.de>
3865 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3867 * tree.h (tree_decl_non_common.vindex): Adjust comment.
3869 2011-04-03 Michael Matz <matz@suse.de>
3871 * cgraphbuild.c (record_reference): Canonicalize constructor values.
3872 * gimple-fold.c (canonicalize_constructor_val): Accept being called
3873 without function context.
3874 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3875 current_function_decl and cfun.
3877 2011-04-03 Michael Matz <matz@suse.de>
3879 * tree.c (decl_init_priority_insert): Don't create entry for
3881 (decl_fini_priority_insert): Ditto.
3882 (fields_compatible_p, find_compatible_field): Remove.
3883 * tree.h (fields_compatible_p, find_compatible_field): Remove.
3884 * gimple.c (gimple_compare_field_offset): Adjust block comment.
3886 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
3888 * combine.c (try_combine): Remove useless local variable.
3890 2011-04-03 Richard Guenther <rguenther@suse.de>
3891 Ira Rosen <ira.rosen@linaro.org>
3893 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3894 non-variable offsets and compare the remaining bases of the two
3895 accesses instead of looking for exact same data-ref.
3897 2011-04-02 Kai Tietz <ktietz@redhat.com>
3900 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3902 * i386.c (ix86_is_msabi_thiscall): New helper function.
3903 (ix86_is_type_thiscall): New helper function.
3904 (ix86_comp_type_attributes): Handle thiscall for method-functions
3906 (init_cumulative_args): Likewise.
3907 (find_drap_reg): Likewise.
3908 (ix86_static_chain): Likewise.
3909 (x86_this_parameter): Likewise.
3910 (x86_output_mi_thunk): Likewise.
3912 2011-04-01 Olivier Hainque <hainque@adacore.com>
3913 Nicolas Setton <setton@adacore.com>
3914 Eric Botcazou <ebotcazou@adacore.com>
3916 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3917 (add_gnat_descriptive_type_attribute): New function.
3918 (gen_array_type_die): Call it.
3919 (gen_enumeration_type_die): Likewise.
3920 (gen_struct_or_union_type_die): Likewise.
3921 (modified_type_die): Likewise.
3922 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3923 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3924 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3926 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3929 * dwarf2out.c (resolve_addr): Don't call force_decl_die
3930 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3933 2011-03-17 Richard Guenther <rguenther@suse.de>
3936 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3937 origin for decls in other ltrans units.
3938 (input_varpool_node): Likewise.
3940 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3943 * expr.c (expand_assignment): Handle all possibilities
3944 if TO_RTX is CONCAT.
3945 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3946 (store_split_bit_field): If SUBREG_REG (op0) or
3947 op0 itself has smaller mode than word, return it
3948 for offset 0 and const0_rtx for out-of-bounds stores.
3949 If word is const0_rtx, skip it.
3951 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
3953 * config/h8300/h8300.c (print_operand_address): Rename to...
3954 (h8300_print_operand_address): ...this. Make static. Adjust comments.
3955 Call h8300_print_operand and h8300_print_operand_address instead of
3956 print_operand and print_operand_address. Declare.
3957 (print_operand): Renake to...
3958 (h8300_print_operand): ...this. Make static. Adjust comments.
3959 Call h8300_print_operand instead of print_operand. Declare.
3960 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3961 (h8300_register_move_cost): Likewise.
3962 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3963 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3964 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3965 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3966 * config/h8300/h8300-protos.h (print_operand): Delete.
3967 (print_operand_address): Delete.
3969 2011-04-01 Richard Henderson <rth@redhat.com>
3972 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3973 in strict mode before dwarf4. Re-order tests to early out
3974 before switching sections.
3976 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
3978 * config/h8300/constraints.md: New file.
3979 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
3980 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3981 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3982 * config/h8300/predicates.md (bit_operand): Likewise.
3983 (incdec_operand): Use satisfies_constraint_M and
3984 satisfies_constraint_O. Don't use C code block.
3985 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3986 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3987 (compute_mov_length): Use satisfies_constraint_G.
3988 (fix_bit_operand): Use satisfies_constraint_U.
3989 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3990 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3991 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3992 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3993 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3994 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3995 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3996 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3997 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3998 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3999 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
4000 (EXTRA_MEMORY_CONSTRAINT): Delete.
4002 2011-04-01 Andrew Pinski <pinskia@gmail.com>
4003 Michael Meissner <meissner@linux.vnet.ibm.com>
4006 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
4007 operands, as per the specifications.
4009 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
4010 (vec_extract_evenv4sf): Ditto.
4011 (vec_extract_evenv8hi): Ditto.
4012 (vec_extract_evenv16qi): Ditto.
4013 (vec_extract_oddv4si): Ditto.
4015 2011-03-31 Mark Wielaard <mjw@redhat.com>
4017 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
4018 high_pc attribute if the CU has no associated code. Only output
4019 DW_AT_entry_pc for CU if not generating strict dwarf and
4022 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
4024 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
4025 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
4027 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
4028 * final.c (final_start_function): Call the new function rather
4029 than using a NULL argument for dwarf2out_frame_debug.
4031 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
4032 that contains the prologue.
4034 * haifa-sched.c (queue_insn): New arg REASON. All callers
4035 changed. Print it in debugging output.
4037 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
4039 * sched-ebb.c (begin_schedule_ready): Remove second argument.
4040 Split most of the code into...
4041 (begin_move_insn): ... here. New function.
4042 (ebb_sched_info): Add a pointer to it.
4043 * haifa-sched.c (scheduled_insns): New static variable.
4044 (sched_extend_ready_list): Allocate it.
4045 (schedule_block): Use it to record the order of scheduled insns.
4046 Perform RTL changes to move insns only after all scheduling
4047 decisions have been made.
4048 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
4049 begin_move_insn field.
4050 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
4051 * sched-int.h (struct haifa_sched_info): Remove second argument
4052 from begin_schedule_ready hook. Add new member begin_move_insn.
4053 * sched-rgn.c (begin_schedule_ready): Remove second argument.
4054 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
4056 * haifa-sched.c (prune_ready_list): New function, broken out of
4058 (schedule_block): Use it.
4060 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4062 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
4064 2011-04-01 Kai Tietz <ktietz@redhat.com>
4066 * config.gcc (*-*-mingw*): Allow as option the
4067 posix threading model.
4068 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
4069 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
4071 (CPP_SPEC): Add pthread/no-pthread handling.
4072 (LIB_SPEC): Likewise.
4073 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
4074 (LIB_SPEC): Likewise.
4075 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
4076 flag to pass -pthread option for shared libgcc build.
4077 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
4078 for shared libgcc build.
4079 * config/i386/t-mingw-pthread: New file.
4080 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
4081 New define to enable use of library pthread by default.
4082 * config/i386/mingw.opt (pthread): New driver option.
4083 (no-pthread): New driver option.
4084 * config/i386/cygming.opt: Make sure trailing empty line is retained.
4085 * config/i386/mingw-w64.opt: Likewise.
4087 2011-04-01 Gary Funck <gary@intrepid.com>
4089 * c-decl.c (grokdeclarator): Fix formatting.
4091 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4093 * expr.c (emit_block_move_via_movmem): Use n_generator_args
4094 instead of n_operands.
4095 (set_storage_via_setmem): Likewise.
4096 * optabs.c (maybe_gen_insn): Likewise.
4097 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
4098 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
4099 (mips_expand_builtin_direct): Likewise.
4100 * config/spu/spu.c (expand_builtin_args): Likewise.
4102 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4104 * recog.h (insn_data_d): Add n_generator_args.
4105 * genoutput.c (data): Likewise.
4106 (output_insn_data): Print it.
4107 (max_opno, num_dups): Delete.
4108 (scan_operands): Just fill in "d->operand[...]".
4109 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
4111 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4113 * gensupport.h (pattern_stats): New structure.
4114 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
4115 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
4116 (max_operand_1, max_operand_vec): Delete.
4117 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
4119 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
4121 * emit-rtl.c (emit_pattern_after_setloc): New function.
4122 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
4123 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
4124 (emit_pattern_after): New function.
4125 (emit_insn_after, emit_jump_insn_after): Call it.
4126 (emit_call_insn_after, emit_debug_insn_after): Likewise.
4127 (emit_pattern_before_setloc): New function.
4128 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
4129 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
4131 (emit_pattern_before): New function.
4132 (emit_insn_before, emit_jump_insn_before): Call it.
4133 (emit_call_insn_before, emit_debug_insn_before): Likewise.
4135 2011-03-31 Richard Henderson <rth@redhat.com>
4137 * dwarf2out.c (dw_separate_line_info_ref): Remove.
4138 (dw_separate_line_info_entry): Remove.
4139 (enum dw_line_info_opcode): New.
4140 (dw_line_info_entry): Use it.
4141 (dw_line_info_table, dw_line_info_table_p): New.
4142 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
4143 (line_info_table, line_info_label_num): Remove.
4144 (line_info_table_in_use): Remove.
4145 (separate_line_info_table): Remove.
4146 (separate_line_info_table_allocated): Remove.
4147 (separate_line_info_table_in_use): Remove.
4148 (LINE_INFO_TABLE_INCREMENT): Remove.
4149 (line_info_label_num): New.
4150 (cur_line_info_table): New.
4151 (text_section_line_info, cold_text_section_line_info): New.
4152 (separate_line_info): New.
4153 (SEPARATE_LINE_CODE_LABEL): Remove.
4154 (print_dwarf_line_table): Remove.
4155 (debug_dwarf): Don't dump it.
4156 (output_one_line_info_table): New.
4157 (output_line_info): Use it.
4158 (new_line_info_table): New.
4159 (set_cur_line_info_table): New.
4160 (dwarf2out_switch_text_section): Use it.
4161 (dwarf2out_begin_function): Likewise.
4162 (push_dw_line_info_entry): New.
4163 (dwarf2out_source_line): Rewrite for new line info tables.
4164 (dwarf2out_init): Remove dead initailizations.
4166 2011-03-31 Joseph Myers <joseph@codesourcery.com>
4168 * opts.h (cl_option): Add comments to fields. Add bit-fields for
4170 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
4171 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
4172 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
4173 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
4174 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
4175 * opt-functions.awk (flag_init, switch_bit_fields): New.
4176 (switch_flags): Don't handle flags moved to bit-fields. Don't
4177 generate CL_MISSING_OK or CL_SAVE.
4178 * optc-gen.awk: Update to generate bit-field output as well as
4180 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
4181 bit-field instead of CL_REJECT_DRIVER flag.
4182 * opts-common.c (generate_canonical_option,
4183 decode_cmdline_option): Use bit-fields instead of CL_* flags.
4184 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
4185 instead of CL_REJECT_NEGATIVE flag.
4186 * toplev.c (print_switch_values): Use cl_report bit-field instead
4189 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
4191 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
4192 a zero minimum index only if it is redundant.
4194 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
4196 PR rtl-optimization/48381
4197 * ira-color.c (assign_hard_reg): Use hard reg set intersection
4198 instead of ira_class_hard_reg_index for calculating conflicting
4201 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
4203 * cprop.c: Clean up hash table building.
4204 (reg_avail_info): Remove.
4205 (oprs_available_p): Remove.
4206 (record_last_reg_set_info): Remove.
4207 (record_last_set_info): Remove.
4208 (reg_available_p): New function.
4209 (gcse_constant_p): Do not treat unfolded conditions as constants.
4210 (make_set_regs_unavailable): New function.
4211 (hash_scan_set): Simplify with new reg_available_p.
4212 (compute_hash_table_work): Traverse insns stream only once.
4213 Do not compute reg_avail_info. Traverse insns in reverse order.
4214 Record implicit sets after recording explicit sets from the block.
4216 2011-03-31 Michael Matz <matz@suse.de>
4218 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
4220 2011-03-31 Anatoly Sokolov <aesok@post.ru>
4222 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
4223 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
4224 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4225 (h8300_mode_dependent_address_p): New function.
4226 (h8300_get_index): Make static.
4228 2011-03-31 Jeff Law <law@redhat.com>
4230 * reload1.c (elimination_effects): Fix typo in recent change.
4232 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
4233 typo potentially leading to null pointer dereference.
4235 * caller-save.c (new_saved_hard_reg): Eliminate return value.
4236 (setup_save_areas): Corresponding changes to avoid useless
4239 * jump.c (reversed_comparison_code_parts): Avoid successive return
4240 statements when REVERSE_CONDITION is defined.
4242 * expr.c (expand_assignment): Avoid useless assignments.
4243 (expand_expr_real_1): Likewise.
4244 (expand_expr_real_2): Avoid useless statements.
4246 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
4248 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
4250 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
4253 * stmt.c (expand_expr_stmt): Avoid useless assignment.
4255 2011-03-31 Joseph Myers <joseph@codesourcery.com>
4258 * doc/tm.texi.in (TARGET_VERSION): Remove.
4259 * doc/tm.texi: Regenerate.
4260 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
4261 * collect2.c (main): Don't use TARGET_VERSION.
4262 * mips-tdump.c (main): Don't use TARGET_VERSION.
4263 * mips-tfile.c (main): Don't use TARGET_VERSION.
4264 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
4265 * config/rs6000/vxworksae.h: Remove.
4266 * config/alpha/alpha.h (TARGET_VERSION): Remove.
4267 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
4268 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
4269 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
4270 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
4271 * config/arm/arm.h (TARGET_VERSION): Remove.
4272 * config/arm/coff.h (TARGET_VERSION): Remove.
4273 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
4274 * config/arm/elf.h (TARGET_VERSION): Remove.
4275 * config/arm/freebsd.h (TARGET_VERSION): Remove.
4276 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
4277 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
4278 * config/arm/pe.h (TARGET_VERSION): Remove.
4279 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
4280 * config/arm/semi.h (TARGET_VERSION): Remove.
4281 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
4282 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
4283 * config/arm/vxworks.h (TARGET_VERSION): Remove.
4284 * config/avr/avr.h (TARGET_VERSION): Remove.
4285 * config/bfin/bfin.h (TARGET_VERSION): Remove.
4286 * config/fr30/fr30.h (TARGET_VERSION): Remove.
4287 * config/frv/frv.h (TARGET_VERSION): Remove.
4288 * config/h8300/h8300.h (TARGET_VERSION): Remove.
4289 * config/i386/cygwin.h (TARGET_VERSION): Remove.
4290 * config/i386/darwin.h (TARGET_VERSION): Remove.
4291 * config/i386/darwin64.h (TARGET_VERSION): Remove.
4292 * config/i386/djgpp.h (TARGET_VERSION): Remove.
4293 * config/i386/freebsd.h (TARGET_VERSION): Remove.
4294 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
4295 * config/i386/gnu.h (TARGET_VERSION): Remove.
4296 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
4297 * config/i386/i386elf.h (TARGET_VERSION): Remove.
4298 * config/i386/linux.h (TARGET_VERSION): Remove.
4299 * config/i386/linux64.h (TARGET_VERSION): Remove.
4300 * config/i386/lynx.h (TARGET_VERSION): Remove.
4301 * config/i386/mingw32.h (TARGET_VERSION): Remove.
4302 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
4303 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
4304 * config/i386/netware.h (TARGET_VERSION): Remove.
4305 * config/i386/nto.h (TARGET_VERSION): Remove.
4306 * config/i386/openbsd.h (TARGET_VERSION): Remove.
4307 * config/i386/vxworks.h (TARGET_VERSION): Remove.
4308 * config/ia64/elf.h (TARGET_VERSION): Remove.
4309 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
4310 * config/ia64/hpux.h (TARGET_VERSION): Remove.
4311 * config/ia64/linux.h (TARGET_VERSION): Remove.
4312 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
4313 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
4314 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4315 * config/lm32/lm32.h (TARGET_VERSION): Remove.
4316 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
4317 * config/m32c/m32c.h (TARGET_VERSION): Remove.
4318 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
4319 * config/m32r/m32r.h (TARGET_VERSION): Remove.
4320 * config/m68k/linux.h (TARGET_VERSION): Remove.
4321 * config/m68k/m68k.h (TARGET_VERSION): Remove.
4322 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
4323 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
4324 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
4325 * config/mep/mep.h (TARGET_VERSION): Remove.
4326 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
4327 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4328 * config/mips/iris6.h (MACHINE_TYPE): Remove.
4329 * config/mips/linux.h (TARGET_VERSION): Remove.
4330 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
4331 * config/mips/vxworks.h (TARGET_VERSION): Remove.
4332 * config/mmix/mmix.h (TARGET_VERSION): Remove.
4333 * config/mn10300/linux.h (TARGET_VERSION): Remove.
4334 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
4335 * config/pa/pa.h (TARGET_VERSION): Remove.
4336 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
4337 * config/picochip/picochip.h (TARGET_VERSION): Remove.
4338 * config/rs6000/aix.h (TARGET_VERSION): Remove.
4339 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
4340 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
4341 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
4342 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
4343 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
4344 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
4345 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
4346 * config/rs6000/linux.h (TARGET_VERSION): Remove.
4347 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
4348 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
4349 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
4350 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
4351 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
4352 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
4353 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
4354 * config/s390/linux.h (TARGET_VERSION): Remove.
4355 * config/s390/s390.h (TARGET_VERSION): Remove.
4356 * config/s390/tpf.h (TARGET_VERSION): Remove.
4357 * config/score/score.h (TARGET_VERSION): Remove.
4358 * config/sh/linux.h (TARGET_VERSION): Remove.
4359 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
4360 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
4361 * config/sh/sh.h (TARGET_VERSION): Remove.
4362 * config/sh/sh64.h (TARGET_VERSION): Remove.
4363 * config/sh/superh.h (TARGET_VERSION): Remove.
4364 * config/sh/vxworks.h (TARGET_VERSION): Remove.
4365 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
4366 * config/sparc/linux.h (TARGET_VERSION): Remove.
4367 * config/sparc/linux64.h (TARGET_VERSION): Remove.
4368 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
4369 TARGET_NAME32, TARGET_NAME): Remove.
4370 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
4371 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
4372 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
4373 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
4374 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
4375 * config/spu/spu.h (TARGET_VERSION): Remove.
4376 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
4377 * config/v850/v850.h (TARGET_VERSION): Remove.
4378 * config/vax/linux.h (TARGET_VERSION): Remove.
4379 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
4380 * config/xtensa/elf.h (TARGET_VERSION): Remove.
4381 * config/xtensa/linux.h (TARGET_VERSION): Remove.
4383 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
4386 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
4387 frame-related from frame-unrelated adjustments to the stack pointer.
4389 2011-03-31 Jakub Jelinek <jakub@redhat.com>
4391 * common.opt (fdebug-types-section): Move earlier.
4392 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
4394 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
4396 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
4399 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
4401 * tree.h (CASE_CHAIN): Define.
4402 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
4403 (gimple_redirect_edge_and_branch): Likewise.
4405 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
4408 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
4411 2011-03-30 Jeff Law <law@redhat.com>
4413 * PR bootstrap/48371
4414 * reload1.c (reload): Fix botch in last change.
4416 * reload.h (struct reload): Fix typo introduced in last change.
4418 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4420 * config/arm/arm.opt (mhard-float, msoft-float): Mark
4421 Undocumented. Remove help text.
4422 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
4425 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4427 * doc/options.texi (NegativeAlias): Document.
4428 (Alias): Mention NegativeAlias.
4429 * opt-functions.awk: Handle NegativeAlias.
4430 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
4431 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
4432 * opts.h (CL_NEGATIVE_ALIAS): Define.
4433 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
4434 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
4436 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
4438 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4439 mno-spe and mno-isel instead of mspe=no and -misel=no.
4441 2011-03-29 Mark Wielaard <mjw@redhat.com>
4443 * common.opt (fdebug-types-section): New flag.
4444 * doc/invoke.texi: Document new -fno-debug-types-section flag.
4445 * dwarf2out.c (use_debug_types): New define.
4446 (struct die_struct): Mark die_id with GTY desc use_debug_types.
4447 (print_die): Guard output of type unit signatures using
4449 (build_abbrev_table): Replace assert of dwarf_version >= 4
4450 with assert on use_debug_types.
4451 (size_of_die): Likewise.
4452 (unmark_dies): Likewise.
4453 (value_format): Decide AT_ref_external form on use_debug_types.
4454 (output_die): Replace dwarf_version version check guard with
4455 use_debug_types where appropriate.
4456 (modified_type_die): Likewise.
4457 (gen_reference_type_die): Likewise.
4458 (dwarf2out_start_source_file): Likewise.
4459 (dwarf2out_end_source_file): Likewise.
4460 (prune_unused_types_walk_attribs): Likewise.
4461 (dwarf2out_finish): Likewise.
4463 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
4465 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
4467 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4469 PR rtl-optimization/48332
4470 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
4471 mode of input operand N and modeN to its actual mode.
4473 2011-03-30 Jeff Law <law@redhat.com>
4475 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
4476 define accessor macro.
4477 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
4478 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
4479 (reg_equiv_init): Likewise.
4480 (reg_equivs_size): New variable.
4481 (reg_equiv_init_size): Remove.
4482 (allocate_initial_values): Move prototype to here from....
4483 * integrate.h (allocate_initial_values): Remove prototype.
4484 * integrate.c: Include reload.h.
4485 (allocate_initial_values): Corresponding changes.
4486 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
4487 (fix_reg_equiv_init, no_equiv): Corresponding changes.
4488 (update_equiv_regs): Corresponding changes.
4489 (ira): Corresponding changes.
4490 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
4491 (push_secondary_reload): Corresponding changes.
4492 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
4493 (make_memloc, find_reloads_address): Corresponding changes.
4494 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
4495 (find_reloads_address_1): Corresponding changes.
4496 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
4497 (refers_to_regno_for_reload_p): Corresponding changes.
4498 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
4499 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
4500 * reload1.c: Include ggc.h.
4501 (grow_reg_equivs): New function.
4502 (replace_pseudos_in, reload): Corresponding changes.
4503 (calculate_needs_all_insns, alter_regs): Corresponding changes.
4504 (eliminate_regs_1, elimination_effects): Corresponding changes.
4505 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
4506 (delete_output_reload): Likewise.
4507 * caller-save.c (mark_referenced_regs): Corresponding changes.
4508 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
4509 * frv/predicates.md (frv_load_operand): Corresponding changes.
4510 * microblaze/microblaze.c (double_memory_operand): Corresponding
4512 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
4513 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
4514 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
4515 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
4516 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
4518 * pa/pa.c (emit_move_sequence): Corresponding changes.
4519 * vax/vax.c (nonindexed_address_p): Corresponding changes.
4521 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4524 * config/arm/arm.c (coproc_secondary_reload_class): Handle
4525 structure modes. Don't check neon_vector_mem_operand for
4526 vector or structure modes.
4528 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4529 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4532 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
4533 operand 1 and reshuffle the operands to match.
4534 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
4536 2011-03-30 Christian Schüler <cschueler@gmx.de>
4539 * config/c.opt (F): Added 'Driver' to -F option.
4542 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
4544 * config/darwin.opt: Added '-arch' option.
4546 2011-03-30 Nick Clifton <nickc@redhat.com>
4548 * config/rx/rx.md: Add peepholes and patterns to combine
4549 extending loads and simple arithmetic instructions.
4550 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
4551 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4552 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
4553 modes to use pre-decrement and post-increment addressing.
4554 (rx_is_restricted_memory_address): Add range checking of REG+INT
4556 (rx_print_operand): Add support for %Q. Fix handling of %Q.
4557 (rx_memory_move_cost): Adjust cost of stores.
4558 (rx_adjust_insn_length): New function.
4560 2011-03-30 Jakub Jelinek <jakub@redhat.com>
4563 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4564 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4565 matching arg00/arg01 types.
4567 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
4569 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4570 last_location to UNKNOWN_LOCATION.
4572 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
4575 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4578 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4579 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4582 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4584 (sparc_cpu): Likewise.
4585 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4588 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4592 PR rtl-optimization/48345
4593 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4594 hard regs for given mode from profitable regs when doing secondary
4597 2011-03-29 Jeff Law <law@redhat.com>
4600 * tree-ssa-threadupdate.c (struct redirection_data): Remove
4601 do_not_duplicate field.
4602 (lookup_redirection_data): Corresponding changes.
4603 (create_duplicates): Always create a template block.
4604 (redirect_edges): Remove code which reused the original block
4605 when it was going to become unreachable code.
4606 (thread_block): Don't set do_not_duplicate field.
4608 2011-03-29 Joseph Myers <joseph@codesourcery.com>
4610 * lto-opts.c (register_user_option_p, lto_register_user_option):
4611 Make type argument unsigned.
4612 * lto-streamer.h (lto_register_user_option): Make type argument
4614 * opth-gen.awk: Make CL_* macros unsigned.
4615 * opts-common.c (find_opt): Make lang_mask argument unsigned.
4616 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4617 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4618 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4619 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4620 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4621 (find_opt): Make lang_mask argument unsigned.
4623 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4625 PR rtl-optimization/48331
4626 PR rtl-optimization/48334
4627 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4628 for any used algorithm.
4630 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4632 * ira-conflicts.c (build_object_conflicts): Add unused attribute
4635 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
4637 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4638 (alpha_option_override): Don't set alpha_sr_alias_set.
4639 (emit_frame_store_1): Use gen_frame_mem rather than calling
4641 (alpha_expand_epilogue): Ditto.
4643 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
4645 PR tree-optimization/48290
4646 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4647 vectorization, check that relevant phis in the basic block after
4648 the inner loop are really inner loop's exit phis.
4650 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
4653 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4654 (cached_dw_loc_list_def): New structure.
4655 (cached_dw_loc_list): New typedef.
4656 (cached_dw_loc_list_table): New variable.
4657 (cached_dw_loc_list_table_hash): New function.
4658 (cached_dw_loc_list_table_eq): Likewise.
4659 (add_location_or_const_value_attribute): Take a bool cache_p.
4660 Cache the list when the parameter is true.
4661 (gen_formal_parameter_die): Update caller.
4662 (gen_variable_die): Likewise.
4663 (dwarf2out_finish): Likewise.
4664 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4665 while generating debug info for the decl.
4666 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4667 (dwarf2out_init): Initialize cached_dw_loc_list_table.
4668 (resolve_addr): Cache the result of resolving a chain of
4671 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
4673 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4674 conflict object hard regset nodes have intersecting hard reg sets.
4676 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4677 after regstat_init_n_sets_and_refs.
4679 * ira.c: Add more comments at the top.
4680 (setup_stack_reg_pressure_class, setup_pressure_classes):
4681 Add comments how we compute the register pressure classes.
4682 (setup_allocno_and_important_classes): Add more comments.
4683 (setup_class_translate_array, reorder_important_classes)
4684 (setup_reg_class_relations): Add comments.
4686 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
4689 * ira-color.c: Add 2011 to the Copyright line.
4690 (assign_hard_reg): Add more comments.
4691 (improve_allocation): Ditto.
4693 * ira-costs.c: Add 2011 to the Copyright line.
4694 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4696 (setup_regno_cost_classes_by_mode): Ditto.
4698 Initial patches from ira-improv branch:
4700 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4702 * ira-build.c (ira_create_object): Remove initialization of
4703 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
4704 (ira_create_allocno): Remove initialization of
4705 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4706 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4707 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4708 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4709 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4710 Initialize ALLOCNO_ADD_DATA.
4711 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4712 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4714 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
4715 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4717 * ira.c (ira_reallocate): Remove.
4718 (setup_pressure_classes): Call
4719 ira_init_register_move_cost_if_necessary. Use
4720 ira_register_move_cost instead of ira_get_register_move_cost.
4721 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4722 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4724 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4725 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4726 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4727 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4728 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4729 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4731 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4732 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4733 (struct allocno_color_data): New.
4734 (allocno_color_data_t): New typedef.
4735 (allocno_color_data): New definition.
4736 (ALLOCNO_COLOR_DATA): New macro.
4737 (struct object_color_data): New.
4738 (object_color_data_t): New typedef.
4739 (object_color_data): New definition.
4740 (OBJECT_COLOR_DATA): New macro.
4741 (update_copy_costs, calculate_allocno_spill_cost): Call
4742 ira_init_register_move_cost_if_necessary. Use
4743 ira_register_move_cost instead of ira_get_register_move_cost.
4744 (move_spill_restore, update_curr_costs): Ditto.
4745 (allocno_spill_priority): Make it inline.
4746 (color_pass): Allocate and free allocno_color_dat and object_color_data.
4747 (struct coalesce_data, coalesce_data_t): New.
4748 (allocno_coalesce_data): New definition.
4749 (ALLOCNO_COALESCE_DATA): New macro.
4750 (merge_allocnos, coalesced_allocno_conflict_p): Use
4751 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4752 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4753 (coalesce_allocnos): Ditto.
4754 (setup_coalesced_allocno_costs_and_nums): Ditto.
4755 (collect_spilled_coalesced_allocnos): Ditto.
4756 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4757 (setup_slot_coalesced_allocno_live_ranges): Ditto.
4758 (coalesce_spill_slots): Ditto.
4759 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
4760 free allocno_coalesce_data.
4762 * ira-conflicts.c: Fix formatting.
4763 (process_regs_for_copy): Call
4764 ira_init_register_move_cost_if_necessary. Use
4765 ira_register_move_cost instead of ira_get_register_move_cost.
4766 (build_object_conflicts): Optimize.
4768 * ira-costs.c (record_reg_classes): Optimize. Call
4769 ira_init_register_move_cost_if_necessary. Use
4770 ira_register_move_cost, ira_may_move_in_cost, and
4771 ira_may_move_out_cost instead of ira_get_register_move_cost and
4772 ira_get_may_move_cost.
4773 (record_address_regs): Ditto.
4774 (scan_one_insn): Optimize.
4775 (find_costs_and_classes): Optimize.
4776 (process_bb_node_for_hard_reg_moves): Call
4777 ira_init_register_move_cost_if_necessary. Use
4778 ira_register_move_cost instead of ira_get_register_move_cost.
4780 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4781 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4782 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4783 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4785 (ira_initiate_emit_data, ira_finish_emit_data)
4786 (create_new_allocno): New functions.
4787 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4788 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4789 Use ira_register_move_cost instead of ira_get_register_move_cost.
4791 * ira-int.h: Fix some comments.
4792 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4793 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4794 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4795 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
4797 (struct ira_allocno): Make mode and aclass a bitfield. Move other
4798 bitfield after mode. Make hard_regno a short int. Make
4799 hard_regno short. Remove first_coalesced_allocno and
4800 next_coalesced_allocno. Move mem_optimized_dest_p,
4801 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4802 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
4803 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4804 temp, colorable_p. Add new member add_data.
4805 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4806 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4807 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4808 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4809 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4810 (ALLOCNO_ADD_DATA): New macro.
4811 (ira_emit_data_t): New typedef.
4812 (struct ira_emit_data): New. Move mem_optimized_dest_p,
4813 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4814 from struct ira_allocno.
4815 (ALLOCNO_EMIT_DATA): New macro.
4816 (ira_allocno_emit_data, allocno_emit_reg): New.
4817 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4818 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4819 (OBJECT_ADD_DATA): New macro.
4820 (ira_reallocate): Remove.
4821 (ira_initiate_emit_data, ira_finish_emit_data): New.
4822 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4823 (ira_init_register_move_cost_if_necessary): New.
4824 (ira_object_conflict_iter_next): Merge into
4825 ira_object_conflict_iter_cond.
4826 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4828 * ira-live.c (process_single_reg_class_operands): Call
4829 ira_init_register_move_cost_if_necessary. Use
4830 ira_register_move_cost instead of ira_get_register_move_cost.
4832 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4834 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4836 * ira-costs.c: Fix formatting.
4837 (cost_classes, cost_classes_num): Remove.
4838 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4839 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4840 (cost_classes_del, cost_classes_htab): New.
4841 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4842 (initiate_regno_cost_classes, setup_cost_classes): New.
4843 (setup_regno_cost_classes_by_aclass): New.
4844 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4845 (record_reg_classes): Use regno_cost_classes instead of
4846 cost_classes. Move checking opposite operand up.
4847 (record_address_regs): Use regno_cost_classes
4848 instead of cost_classes.
4849 (scan_one_insn): Ditto. Use always general register.
4850 (print_allocno_costs): Use regno_cost_classes instead of
4852 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
4853 (find_costs_and_classes): Set up cost classes for each registers.
4854 Use also their mode for this. Use regno_cost_classes instead of
4856 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4858 (free_ira_costs, ira_init_costs): Don't use cost_classes.
4859 (ira_costs, ira_set_pseudo_classes): Call
4860 initiate_regno_cost_classes and finish_regno_cost_classes.
4862 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4864 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4866 * target.def (ira_cover_classes): Remove.
4868 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4870 * doc/tm.texi.in: Ditto.
4872 * ira-conflicts.c: Remove mentioning cover classes from the file.
4873 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
4874 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
4876 * targhooks.c (default_ira_cover_classes): Remove.
4878 * targhooks.h (default_ira_cover_classes): Ditto.
4880 * haifa-sched.c: Remove mentioning cover classes from the file.
4881 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4882 ira_pressure_classes and ira_pressure_classes_num instead of
4883 ira_reg_class_cover_size and ira_reg_class_cover. Use
4884 sched_regno_pressure_class instead of sched_regno_cover_class.
4885 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4886 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4888 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
4889 classes from the file.
4890 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4891 (struct object_hard_regs, struct object_hard_regs_node): New.
4892 (struct ira_object): New members profitable_hard_regs,
4893 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4894 (struct ira_allocno): Rename cover_class to aclass. Rename
4895 cover_class_cost and updated_cover_class_cost to class_cost and
4896 updated_class_cost. Remove splay_removed_p and
4897 left_conflict_size. Add new members colorable_p.
4898 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4899 (ALLOCNO_COLORABLE_P): New macro.
4900 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4901 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4902 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4903 (OBJECT_...): Rename parameter C to O.
4904 (OBJECT_PROFITABLE_HARD_REGS): New macro.
4905 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4906 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4907 (struct target_ira_int): New members x_ira_max_memory_move_cost,
4908 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4909 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4910 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4911 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
4912 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
4913 x_ira_reg_class_subunion.
4914 (ira_max_memory_move_cost, ira_max_register_move_cost)
4915 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4916 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4917 (ira_important_class_nums, ira_reg_class_superunion): New macros.
4918 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4919 (ira_reg_class_union): Rename to ira_reg_class_subunion.
4920 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4921 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4922 (ira_tune_allocno_costs_and_cover_classes): Rename to
4923 ira_tune_allocno_costs.
4924 (ira_debug_hard_regs_forest): New.
4925 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4926 (ira_object_conflict_iter_next): Fix comments.
4927 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4928 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4929 cover_class to aclass.
4930 (ira_allocate_and_accumulate_costs): Ditto.
4931 (ira_allocate_and_set_or_copy_costs): Ditto.
4933 * opts.c (decode_options): Remove ira_cover_class check.
4935 * ira-color.c: Remove mentioning cover classes from the file. Use
4936 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4937 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4938 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4939 (splay-tree.h): Remove include.
4940 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4941 before copy_freq_compare_func.
4942 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4943 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4945 (hard_regs_roots, hard_regs_node_vec): Ditto.
4946 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4947 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4948 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4949 (create_new_object_hard_regs_node): Ditto.
4950 (add_new_object_hard_regs_node_to_forest): Ditto.
4951 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4952 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4954 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4955 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4956 (remove_unused_object_hard_regs_nodes): Ditto.
4957 (enumerate_object_hard_regs_nodes): Ditto.
4958 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4959 (object_hard_regs_subnode_t): Ditto.
4960 (struct object_hard_regs_subnode): Ditto.
4961 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4962 (setup_object_hard_regs_subnode_index): Ditto.
4963 (get_object_hard_regs_subnodes_num): Ditto.
4964 (form_object_hard_regs_nodes_forest): Ditto.
4965 (finish_object_hard_regs_nodes_tree): Ditto.
4966 (finish_object_hard_regs_nodes_forest): Ditto.
4967 (allocnos_have_intersected_live_ranges_p): Rename to
4968 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4969 (pseudos_have_intersected_live_ranges_p): Rename to
4970 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4971 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4972 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4973 (update_copy_costs): Remove assert. Skip cost update if the hard
4974 reg does not belong the class.
4975 (assign_hard_reg): Process only profitable hard regs.
4976 (uncolorable_allocnos_num): Make it scalar.
4977 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4978 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4979 and ira_reg_class_max_nregs.
4980 (bucket_allocno_compare_func): Check frequency first.
4981 (sort_bucket): Add compare function as a parameter.
4982 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4983 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4984 (push_allocno_to_stack): Rewrite for checking new allocno
4986 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
4987 (push_only_colorable): Pass new parameter to sort_bucket.
4988 (push_allocno_to_spill): Remove.
4989 (allocno_spill_priority_compare): Make it inline and rewrite.
4990 (splay_tree_allocate, splay_tree_free): Remove.
4991 (allocno_spill_sort_compare): New function.
4992 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
4993 build and use splay tree. Choose first allocno in uncolorable
4994 allocno bucket to spill. Remove setting spill cost.
4995 (all_conflicting_hard_regs): Remove.
4996 (setup_allocno_available_regs_num): Check only profitable hard
4997 regs. Print info about hard regs nodes.
4998 (setup_allocno_left_conflicts_size): Remove.
4999 (put_allocno_into_bucket): Don't call
5000 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
5001 (improve_allocation): New.
5002 (color_allocnos): Call setup_profitable_hard_regs,
5003 form_object_hard_regs_nodes_forest, improve_allocation,
5004 finish_object_hard_regs_nodes_forest. Setup spill cost.
5005 (print_loop_title): Use pressure classes.
5006 (color_allocnso): Ditto.
5007 (do_coloring): Remove allocation and freeing splay_tree_node_pool
5008 and allocnos_for_spilling.
5009 (ira_sort_regnos_for_alter_reg): Don't setup members
5010 {first,next}_coalesced_allocno.
5011 (color): Remove allocating and freeing removed_splay_allocno_vec.
5012 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
5013 prohibited_class_mode_regs.
5015 * ira-lives.c: Remove mentioning cover classes from the file. Fix
5017 (update_allocno_pressure_excess_length): Use pressure classes.
5018 (inc_register_pressure, dec_register_pressure): Check for pressure
5020 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
5021 pressure class. Use ira_reg_class_nregs instead of
5022 ira_reg_class_max_nregs.
5023 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
5024 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
5025 (single_reg_class): Use ira_reg_class_nregs instead of
5026 ira_reg_class_max_nregs.
5027 (process_bb_node_lives): Use pressure classes.
5029 * ira-emit.c: Remove mentioning cover classes from the file. Use
5030 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
5031 (change_loop): Use pressure classes.
5032 (modify_move_list): Call ira_set_allocno_class instead of
5033 ira_set_allocno_cover_class.
5035 * ira-build.c: Remove mentioning cover classes from the file. Use
5036 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
5037 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
5038 ALLOCNO_UPDATED_CLASS_COST instead of
5039 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
5040 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
5041 (ira_create_allocno): Remove initialization of
5042 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
5043 ALLOCNO_COLORABLE_P.
5044 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
5045 Update conflict regs for the objects.
5046 (create_cap_allocno): Remove assert. Don't propagate
5047 ALLOCNO_AVAILABLE_REGS_NUM.
5048 (ira_free_allocno_costs): New function.
5049 (finish_allocno): Change a part of code into call of
5050 ira_free_allocno_costs.
5051 (low_pressure_loop_node_p): Use pressure classes.
5052 (object_range_compare_func): Don't compare classes.
5053 (setup_min_max_conflict_allocno_ids): Ditto.
5055 * loop-invariant.c: Remove mentioning cover classes from the file.
5056 Use ira_pressure_classes and ira_pressure_classes_num instead of
5057 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
5058 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
5059 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5060 Use reg_allocno_class instead of reg_cover_class.
5061 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
5062 STACK_REG_COVER_CLASS.
5063 (get_regno_cover_class): Rename to get_regno_pressure_class.
5064 (move_loop_invariants): Initialize and finalize regstat.
5066 * ira.c: Remove mentioning cover classes from the file. Add
5067 comments about coloring without cover classes. Use ALLOCNO_CLASS
5068 instead of ALLOCNO_COVER_CLASS. Fix formatting.
5069 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
5070 setup_class_subset_and_memory_move_costs.
5071 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
5072 (setup_cover_and_important_classes): Rename to
5073 setup_allocno_and_important_classes.
5074 (setup_class_translate_array): New.
5075 (setup_class_translate): Call it for allocno and pressure classes.
5076 (cover_class_order): Rename to allocno_class_order.
5077 (comp_reg_classes_func): Use ira_allocno_class_translate instead
5078 of ira_class_translate.
5079 (reorder_important_classes): Set up ira_important_class_nums.
5080 (setup_reg_class_relations): Set up ira_reg_class_superunion.
5081 (print_class_cover): Rename to print_classes. Add parameter.
5082 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
5083 Print pressure classes too.
5084 (find_reg_class_closure): Rename to find_reg_classes. Don't call
5085 setup_reg_subclasses.
5086 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
5087 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
5088 (setup_prohibited_class_mode_regs): Use
5089 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
5090 (clarify_prohibited_class_mode_regs): New function.
5091 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
5092 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
5093 (ira_init_once): Initialize them.
5094 (free_register_move_costs): Process them.
5095 (ira_init): Move calls of find_reg_classes and
5096 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
5097 Call clarify_prohibited_class_mode_regs.
5098 (ira_no_alloc_reg): Remove.
5099 (too_high_register_pressure_p): Use pressure classes.
5101 * sched-deps.c: Remove mentioning cover classes from the file.
5102 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
5103 ira_pressure_classes and ira_pressure_classes_num instead of
5104 ira_reg_class_cover_size and ira_reg_class_cover.
5105 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
5106 sched_regno_pressure_class instead of sched_regno_cover_class.
5107 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
5108 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5110 * ira.h: Add 2010 to Copyright.
5111 (ira_no_alloc_reg): Remove external.
5112 (struct target_ira): Rename x_ira_hard_regno_cover_class,
5113 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
5114 x_ira_class_translate to x_ira_hard_regno_allocno_class,
5115 x_ira_allocno_classes_num, x_ira_allocno_classes, and
5116 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
5117 x_ira_pressure_classes, x_ira_pressure_class_translate, and
5118 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
5119 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
5120 x_ira_no_alloc_regs.
5121 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
5122 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
5123 ira_allocno_classes_num and ira_allocno_classes.
5124 (ira_class_translate): Rename to ira_allocno_class_translate.
5125 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
5126 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
5127 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
5128 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
5129 (ira_no_alloc_regs): New.
5131 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
5132 classes from the file. Use ALLOCNO_CLASS instead of
5133 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
5134 ALLOCNO_COVER_CLASS_COST.
5135 (regno_cover_class): Rename to regno_aclass.
5136 (record_reg_classes): Use ira_reg_class_subunion instead of
5137 ira_reg_class_union.
5138 (record_address_regs): Check overflow.
5139 (scan_one_insn): Ditto.
5140 (print_allocno_costs): Print total mem cost fore regional allocation.
5141 (print_pseudo_costs): Use REG_N_REFS.
5142 (find_costs_and_classes): Use classes intersected with them on the
5143 1st pass. Check overflow. Use ira_reg_class_subunion instead of
5144 ira_reg_class_union. Use ira_allocno_class_translate and
5145 regno_aclass instead of ira_class_translate and regno_cover_class.
5146 Modify code for finding regno_aclass. Setup preferred classes for
5148 (setup_allocno_cover_class_and_costs): Rename to
5149 setup_allocno_class_and_costs. Use regno_aclass instead of
5150 regno_cover_class. Use ira_set_allocno_class instead of
5151 ira_set_allocno_cover_class.
5152 (init_costs, finish_costs): Use regno_aclass instead of
5154 (ira_costs): Use setup_allocno_class_and_costs instead of
5155 setup_allocno_cover_class_and_costs.
5156 (ira_tune_allocno_costs_and_cover_classes): Rename to
5157 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
5158 by processing objects. Use ira_reg_class_max_nregs instead of
5159 ira_reg_class_nregs.
5161 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
5163 * sched-int.h: Remove mentioning cover classes from the file.
5164 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
5166 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
5167 classes from the file.
5168 (struct reg_pref): Rename coverclass into allocnoclass.
5169 (reg_cover_class): Rename to reg_allocno_class.
5171 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
5173 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
5175 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
5177 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
5179 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
5181 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
5183 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
5185 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
5187 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
5189 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
5191 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
5192 (i386_ira_cover_classes): Ditto.
5194 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
5196 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
5198 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
5200 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
5202 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
5204 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
5206 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
5207 (mips_ira_cover_classes): Ditto.
5209 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
5211 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
5213 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
5215 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
5217 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
5219 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
5220 (IRA_COVER_CLASSES_VSX): Ditto.
5222 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
5223 (rs6000_ira_cover_classes): Ditto.
5225 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
5227 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
5229 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
5231 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
5233 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
5235 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
5237 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
5239 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
5241 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
5243 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
5245 2011-03-29 Jakub Jelinek <jakub@redhat.com>
5248 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
5249 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
5250 dw_fde_unlikely_section_end_label, cold_in_std_section,
5251 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
5252 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
5254 (output_fde): Use dw_fde_second_{begin,end} if second is
5255 true, otherwise dw_fde_{begin,end}.
5256 (output_call_frame_info): Test dw_fde_second_begin != NULL
5257 instead of dw_fde_switched_sections.
5258 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
5259 fields, initialize new fields. Initialize in_std_section
5260 unconditionally from the first partition.
5261 (dwarf2out_end_epilogue): Don't override dw_fde_end when
5262 dw_fde_second_begin is non-NULL.
5263 (dwarf2out_switch_text_section): Stop initializing removed
5264 dw_fde_struct fields, initialize new fields, initialize
5265 also dw_fde_end here. Set dw_fde_switch_cfi even when
5266 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
5267 (struct var_loc_list_def): Add last_before_switch field.
5268 (arange_table, arange_table_allocated, arange_table_in_use,
5269 ARANGE_TABLE_INCREMENT, add_arange): Removed.
5270 (size_of_aranges): Count !in_std_section and !second_in_std_section
5271 hunks in fdes, instead of looking at arange_table_in_use.
5272 (output_aranges): Add aranges_length argument, don't call
5273 size_of_aranges here. Instead of using aranges_table*
5274 emit ranges for fdes when !in_std_section resp.
5275 !second_in_std_section.
5276 (dw_loc_list): Break ranges crossing section switch.
5277 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
5278 use dw_fde_second_end instead of dw_fde_end as end of last range.
5279 (gen_subprogram_die): Don't call add_arange. Use
5280 dw_fde_{begin,end} for first partition and if switched
5281 section dw_fde_second_{begin,end} for the second.
5282 (var_location_switch_text_section_1,
5283 var_location_switch_text_section): New functions.
5284 (dwarf2out_begin_function): Initialize cold_text_section even
5285 when function_section () isn't text_section.
5286 (prune_unused_types): Don't walk arange_table.
5287 (dwarf2out_finish): Don't needlessly test
5288 flag_reorder_blocks_and_partition when testing cold_text_section_used.
5289 If info_section_emitted, call size_of_aranges and if it indicates
5290 non-empty .debug_aranges, call output_aranges with the computed
5291 size. Stop using removed dw_fde_struct fields, use
5292 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
5296 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
5297 create ENTRY_VALUE if incoming or address of incoming's MEM
5299 * dwarf2out.c (mem_loc_descriptor): Don't emit
5300 DW_OP_GNU_entry_value of DW_OP_fbreg.
5301 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
5302 on ENTRY_VALUE is able to find the canonical parameter VALUE.
5303 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
5304 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
5306 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
5307 is a REG_P or MEM_P with REG_P address, compute hash directly
5308 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
5309 (preserve_only_constants): Don't clear VALUES forwaring
5310 ENTRY_VALUE to some other VALUE.
5312 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
5314 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
5317 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
5319 * cfgexpand.c (expand_gimple_cond): Always set the source location and
5320 block before expanding the statement.
5321 (expand_gimple_stmt_1): Likewise. Set them here...
5322 (expand_gimple_stmt): ...and not here. Tidy.
5323 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
5326 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
5328 * Makefile.in: New rule for cprop.o.
5329 * gcse.c: Move constant/copy propagation to cprop.c.
5330 (compute_local_properties): Only handle expression tables.
5331 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
5332 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
5333 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
5334 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
5335 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
5336 compute_cprop_data, find_used_regs, try_replace_reg,
5337 find_avail_set, cprop_jump, constprop_register, cprop_insn,
5338 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
5339 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
5340 find_bypass_set, reg_killed_on_edge, bypass_block,
5341 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
5342 execute_rtl_cprop, pass_rtl_cprop): Move to...
5343 * cprop.c: ...here. New file, constant/copy propagation for RTL
5344 moved from gcse.c to here with minor cleanups in duplicated code.
5346 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
5348 * config/i386/i386.c (flag_opts): Fix a typo in
5349 -mavx256-split-unaligned-store.
5351 2011-03-28 Anatoly Sokolov <aesok@post.ru>
5353 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5354 LIBCALL_VALUE): Remove macros.
5355 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5356 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5357 (h8300_function_value, h8300_libcall_value,
5358 h8300_function_value_regno_p): New functions.
5360 2011-03-28 Anatoly Sokolov <aesok@post.ru>
5362 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
5364 2011-03-28 Jeff Law <law@redhat.com>
5366 * tree-ssa-threadupdate.c (redirect_edges): Call
5367 create_edge_and_update_destination_phis as needed.
5368 (create_edge_and_update_destination_phis): Accept new BB argument.
5369 All callers updated.
5370 (thread_block): Do not update the profile when threading around
5371 intermediate blocks.
5372 (thread_single_edge): Likewise.
5373 (determine_bb_domination_status): If BB is not a successor of the
5374 loop header, return NONDOMINATING.
5375 (register_jump_thread): Note when we register a jump thread around
5376 an intermediate block.
5377 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
5378 (thread_across_edge): Use it.
5380 2011-03-28 Tristan Gingold <gingold@adacore.com>
5382 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
5383 when for_return is 2.
5385 2011-03-28 Jeff Law <law@redhat.com>
5387 * var-tracking.c (canonicalize_values_mark): Delete unused
5389 (canonicalize_values_star, set_variable_part): Likewise.
5390 (clobber_variable_part, delete_variable_part): Likewise.
5392 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
5394 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
5396 2011-03-28 Martin Jambor <mjambor@suse.cz>
5398 * tree-inline.c (expand_call_inline): Do not check that destination
5400 (optimize_inline_calls): Assert that destination node is analyzed.
5401 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
5402 not call tree_lowering_passes.
5403 * cgraph.h (cgraph_analyze_function): Declare.
5404 * cgraphunit.c (cgraph_analyze_function): Make public.
5406 2011-03-28 Joseph Myers <joseph@codesourcery.com>
5408 * config/sparc/sparc-opts.h: New.
5409 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
5410 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
5411 (sparc_option_override): Store processor_type enumeration rather
5412 than string in cpu_default. Remove name and enumeration from
5413 cpu_table. Directly default -mcpu then default -mtune from -mcpu
5414 without using sparc_select. Use target_flags_explicit instead of
5416 * config/sparc/sparc.h (enum processor_type): Move to
5418 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
5419 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
5420 HeaderInclude entry.
5421 (mcpu=, mtune=): Use Var and Enum.
5422 (sparc_processor_type): New Enum and EnumValue entries.
5424 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5425 Iain Sandoe <iains@gcc.gnu.org>
5428 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
5430 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
5432 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
5433 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
5434 Insert new statements at it in lieu of STMT.
5435 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
5436 * tree-vect-stmts.c (vectorizable_store): Likewise.
5437 (vectorizable_load): Likewise.
5439 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
5441 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
5446 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
5448 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
5449 unaligned 256bit load/store.
5450 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
5451 (*avx_movdqu<avxmodesuffix>): Likewise.
5453 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5456 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
5457 * config/pa/pa.md (iordi3): Use new predicate in expander.
5460 2011-03-27 Anatoly Sokolov <aesok@post.ru>
5462 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
5463 FUNCTION_VALUE_REGNO_P): Remove macros.
5464 * config/mips/mips-protos.h (mips_function_value): Remove.
5465 * config/mips/mips.c (mips_function_value): Rename to...
5466 (mips_function_value_1): ... this. Make static. Handle receiving
5467 the function type in 'fn_decl_or_type' argument.
5468 (mips_function_value, mips_libcall_value,
5469 mips_function_value_regno_p): New function.
5470 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5471 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5473 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
5475 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
5476 and -mavx256-split-unaligned-store.
5477 (ix86_option_override_internal): Split 32-byte AVX unaligned
5478 load/store by default.
5479 (ix86_avx256_split_vector_move_misalign): New.
5480 (ix86_expand_vector_move_misalign): Use it.
5482 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
5483 -mavx256-split-unaligned-store.
5485 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
5486 256bit load/store. Generate unaligned store on misaligned memory
5488 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
5490 (*avx_movdqu<avxmodesuffix>): Likewise.
5492 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
5493 -mavx256-split-unaligned-store.
5495 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
5498 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
5501 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
5503 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
5504 opno arguments with an expand_operand. Use create_input_operand.
5505 (mips_prepare_builtin_target): Delete.
5506 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
5508 (mips_expand_builtin_direct): Use create_output_operand and
5509 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
5510 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
5511 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
5513 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
5515 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
5517 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5519 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
5521 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
5522 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
5523 basic blocks and call commit_edge_insertions directly.
5524 (fixup_abnormal_edges): Move from here to...
5525 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
5526 on the edges and return whether some have actually been inserted.
5527 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
5530 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
5532 PR rtl-optimization/48144
5533 * sel-sched-ir.c (merge_history_vect): Factor out from ...
5534 (merge_expr_data): ... here.
5535 (av_set_intersect): Rename to av_set_code_motion_filter.
5536 Update all callers. Call merge_history_vect when an expression
5537 is found in both sets.
5538 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
5540 2011-03-26 Alan Modra <amodra@gmail.com>
5542 * config/rs6000/predicates.md (word_offset_memref_op): Handle
5543 cmodel medium addresses.
5544 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
5545 64-bit gpr loads and stores.
5546 (rs6000_secondary_reload_ppc64): New function.
5547 * config/rs6000/rs6000-protos.h: Declare it.
5548 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
5550 2011-03-26 Alan Modra <amodra@gmail.com>
5553 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5554 GNU Go in traceback table.
5556 2011-03-25 Richard Henderson <rth@redhat.com>
5558 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5559 if there are exactly 6 operands.
5560 (set_storage_via_setmem): Similarly.
5562 2011-03-25 Kai Tietz <ktietz@redhat.com>
5564 * collect2.c (write_c_file_stat): Handle backslash
5565 as right-hand directory separator.
5566 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5567 checking just for slash.
5568 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5569 instead of checking for trailing slash.
5570 * gcc.c (record_temp_file): Use filename_cmp instead
5572 (do_spec_1): Likewise.
5573 (replace_outfile_spec_function): Likewise.
5574 (is_directory): Use filename_ncmp instead of strncmp.
5575 (print_multilib_info): Likewise.
5576 * gcov.c (find_source): Use filename_cmp instead
5578 (make_gcov_file_name): Fix order of slash/backslash
5580 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5581 (add_standard_paths): Likewise.
5582 * mips-tfile.c (saber_stop): Handle backslash.
5583 * prefix.c (update_path): Use filename_ncmp instead of
5585 * profile.c (output_location): Use filename_cmp instead
5587 * read-md.c (handle_toplevel_file): Handle backslash.
5588 * tlink.c (frob_extension): Likewise.
5589 * tree-cfg.c (same_line_p): Use filename_cmp instead of
5591 * tree-dump.c (dequeue_and_dump): Handle backslash.
5592 * tree.c (get_file_function_name): Likewise.
5593 * gengtype.c (read_input_list): Likewise.
5594 (get_file_realbasename): Likewise.
5595 (get_output_file_with_visibility): Use filename_cmp
5598 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
5600 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5603 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5605 * fold-const.c (expr_location_or): New function.
5606 (fold_truth_not_expr): Call it.
5608 2011-03-25 Jeff Law <law@redhat.com>
5610 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5612 * c-family/c-common.c (def_fn_type): Likewise.
5613 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5614 * emit-rtl.c (gen_rtvec): Likewise.
5615 * lto/lto-lang.c (def_fn_type): Likewise.
5617 2011-03-25 Richard Guenther <rguenther@suse.de>
5619 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5620 also generate copies.
5621 (fini_copy_prop): Handle constant values properly.
5623 2011-03-25 Jakub Jelinek <jakub@redhat.com>
5625 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5626 mode size instead of bitsize with DWARF2_ADDR_SIZE.
5627 (hash_loc_operands, compare_loc_operands): Handle
5628 DW_OP_GNU_entry_value.
5630 2011-03-25 Kai Tietz <ktietz@redhat.com>
5632 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5633 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5634 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5635 comment and use macro TARGET_64BIT_MS_ABI instead.
5636 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5637 and change default behavior for 32-bit MS_ABI.
5638 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5639 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5641 (ix86_cfun_abi): Likewise.
5642 (ix86_maybe_switch_abi): Adjust comment.
5643 (init_cumulative_args): Check for bit-ness in MS_ABI case.
5644 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5645 instead of checking for SYSV_ABI.
5646 (ix86_nsaved_sseregs): Likewise.
5647 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5649 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5650 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5651 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5652 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5653 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5655 2011-03-25 Richard Guenther <rguenther@suse.de>
5657 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5658 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5659 (verify_gimple): Remove.
5660 * tree-cfg.c (verify_gimple_call): Merge verification
5662 (verify_gimple_phi): Merge verification from verify_stmts.
5663 (verify_gimple_label): New function.
5664 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5665 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5666 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5667 (verify_stmts): Rename to verify_gimple_in_cfg.
5668 (verify_gimple_in_cfg): New function.
5669 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5670 * tree-ssa.c (verify_ssa): Likewise.
5671 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5673 2011-03-25 Richard Guenther <rguenther@suse.de>
5675 * passes.c (init_optimization_passes): Add FRE pass after
5678 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
5679 Andrew Stubbs <ams@codesourcery.com>
5681 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5683 (arm_movdi_vfp_cortexa8): New pattern.
5684 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5685 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5686 instructions when tuning for Cortex-A8. Set attribute "arch".
5687 * config/arm/arm.md: Move include arm-tune.md up a bit.
5688 (define_attr "arch"): Add "onlya8" and "nota8" values.
5689 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5691 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5695 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5697 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5698 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5699 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5700 * passes.c (init_optimization_passes): Move
5701 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5703 2011-03-25 Kai Tietz <ktietz@redhat.com>
5705 * c-typeck.c (comptypes_internal): Replace target
5706 hook call of comp_type_attributes by version in tree.c file.
5707 * gimple.c (gimple_types_compatible_p_1): Likewise.
5708 * tree-ssa.c (useless_type_conversion_p): Likewise.
5709 * tree.c (build_type_attribute_qual_variant): Likewise.
5710 (attribute_value_equal): New static helper function.
5711 (comp_type_attributes): New function.
5712 (merge_attributes): Use attribute_value_equal for comparison.
5713 (attribute_list_contained): Likewise.
5714 * tree.h (comp_type_attributes): New prototype.
5716 2011-03-25 Richard Guenther <rguenther@suse.de>
5718 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5719 of complex types at -O0.
5720 (verify_gimple_assign_binary): Likewise.
5721 (verify_gimple_assign_ternary): Likewise.
5723 2011-03-24 Mark Wielaard <mjw@redhat.com>
5725 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5726 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5728 2011-03-24 Mark Wielaard <mjw@redhat.com>
5731 * dwarf2out.c (output_abbrev_section): Only write table when
5732 abbrev_die_table_in_use > 1.
5734 2011-02-24 Richard Henderson <rth@redhat.com>
5736 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5737 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5738 (alpha_expand_unaligned_load_words): Use extql.
5739 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5740 (emit_insxl): Handle all modes for consistency.
5742 2011-02-24 Richard Henderson <rth@redhat.com>
5744 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5745 (alpha_expand_unaligned_load): Likewise.
5746 (alpha_expand_unaligned_store): Likewise.
5747 (alpha_expand_unaligned_load_words): Likewise.
5748 (alpha_expand_unaligned_store_words): Likewise.
5749 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5750 (alpha_split_lock_test_and_set_12): Likewise.
5751 (print_operand, alpha_fold_builtin_extxx): Likewise.
5752 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5753 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5754 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5755 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5756 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5757 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5758 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5759 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5760 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5761 (extwl, extll, extql): Similarly.
5762 (inswh, inslh, insqh): Similarly.
5763 (mskbl, mskwl, mskll, mskql): Similarly.
5764 (mskwh, msklh, mskqh): Similarly.
5766 2011-02-24 Richard Henderson <rth@redhat.com>
5768 * config/alpha/alpha.md (attribute isa): Add er, ner.
5769 (attribute enabled): Handle them.
5770 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5772 2011-02-24 Richard Henderson <rth@redhat.com>
5774 * config/alpha/alpha.md (attribute isa): Add vms.
5775 (attribute enabled): Handle it.
5776 (*movsf): Merge *movsf_{nofix,fix,nofp}.
5777 (*movdf): Merge *movdf_{nofix,fix,nofp}.
5778 (*movtf): Rename from *movtf_internal for consistency.
5779 (*movsi): Merge with *movsi_nt_vms.
5780 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5781 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5782 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5783 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5785 2011-02-24 Richard Henderson <rth@redhat.com>
5787 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5788 (extendqisi2, extendhisi2): Likewise.
5789 (extendqidi2): Simplify BWX/non-BWX expansions.
5790 (extendhidi2): Similarly.
5792 2011-02-24 Richard Henderson <rth@redhat.com>
5794 * config/alpha/alpha.md (attribute isa): New.
5795 (attribute enabled): New.
5796 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5797 (zero_extendqisi2, zero_extendqidi2): Similarly.
5798 (zero_extendhisi2, zero_extendhidi2): Similarly.
5799 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5801 2011-02-24 Richard Henderson <rth@redhat.com>
5803 * config/alpha/predicates.md (input_operand): Revert last change;
5804 update comment to mention 32-bit VMS rather than Windows.
5806 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5808 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5809 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5810 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5811 * passes.c (init_optimization_passes): Move
5812 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5814 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5816 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5818 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5820 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5823 2011-03-24 Jakub Jelinek <jakub@redhat.com>
5826 * simplify-rtx.c (simplify_const_unary_operation): Call
5827 real_convert when changing mode class with FLOAT_EXTEND.
5829 2011-03-24 Nick Clifton <nickc@redhat.com>
5831 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5832 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5833 * config/rx/rx.c (rx_option_override): Set align_jumps,
5834 align_loops and align_labels if not set by the user.
5835 (rx_align_for_label): New function.
5836 (rx_max_skip_for_label): New function.
5837 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5838 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5839 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5840 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5841 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5843 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5845 PR rtl-optimization/48263
5846 * optabs.c (expand_binop_directly): Reinstate convert_modes code
5847 and original commutative_p handling. Use maybe_gen_insn.
5849 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5851 * reload.c (find_reloads_subreg_address): Add address_reloaded
5852 parameter and return true there if the full address has been
5854 (find_reloads_toplev): Pass address_reloaded flag.
5855 (find_reloads_address_1): Don't use address_reloaded parameter.
5857 2011-03-24 Jeff Law <law@redhat.com>
5859 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5860 unused variable "ann".
5861 (remove_unused_locals): Likewise.
5863 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5866 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5869 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5871 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5872 for invalid symbolic addresses.
5873 (s390_secondary_reload): Don't use s390_check_symref_alignment for
5876 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5878 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5879 the argument in calls to fold_truth_not_expr.
5881 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5883 * tree.c (record_node_allocation_statistics): New function.
5884 (make_node_stat, copy_node_stat, build_string): Call it.
5885 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5886 (build1_stat, build_omp_clause): Likewise.
5888 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5890 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5893 2011-03-24 Richard Guenther <rguenther@suse.de>
5895 PR tree-optimization/48271
5896 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5897 blocks that still exist.
5899 2011-03-24 Richard Guenther <rguenther@suse.de>
5901 PR tree-optimization/48270
5902 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5903 not free datarefs before ddrs.
5905 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5907 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5908 from the address built for a reference with variable offset.
5910 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5913 * config/i386/i386.md (*movdf_internal_rex64): Do not split
5914 alternatives that can be handled with movq or movabsq insn.
5915 (*movdf_internal): Disable for !TARGET_64BIT.
5916 (*movdf_internal_nointeger): Ditto.
5917 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5919 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5921 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5922 (FUNCTION_ARG_ADVANCE): Likewise.
5923 * tm.texi.in: Change references to them to hook references.
5924 * tm.texi: Regenerate.
5925 * targhooks.c (default_function_arg): Eliminate check for target macro.
5926 (default_function_incoming_arg): Likewise.
5927 (default_function_arg_advance): Likewise.
5928 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5929 (function_arg_advance): Likewise.
5930 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5932 2011-03-24 Richard Guenther <rguenther@suse.de>
5935 * tree-object-size.c (addr_object_size): Do not double-account
5936 for MEM_REF offsets.
5938 2011-03-24 Diego Novillo <dnovillo@google.com>
5940 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5941 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5942 (lto_input_data_block): Move from lto-opts.c. Make extern.
5944 (lto_input_string): Rename from input_string. Make extern.
5946 * lto-streamer-out.c (lto_output_string_with_length): Rename from
5947 output_string_with_length.
5948 Output 0 to indicate a non-NULL string. Update all callers to
5950 (lto_output_string): Rename from output_string. Make extern.
5952 (lto_output_decl_state_streams): Make extern.
5953 (lto_output_decl_state_refs): Make extern.
5954 * lto-streamer.h (lto_input_string): Declare.
5955 (lto_input_data_block): Declare.
5956 (lto_output_string): Declare.
5957 (lto_output_string_with_length): Declare.
5958 (lto_output_decl_state_streams): Declare.
5959 (lto_output_decl_state_refs): Declare.
5961 2011-03-24 Richard Guenther <rguenther@suse.de>
5963 PR tree-optimization/46562
5964 * tree.c (build_invariant_address): New function.
5965 * tree.h (build_invariant_address): Declare.
5966 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5967 a renamed function moved ...
5968 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5969 Take valueization callback parameter.
5970 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5971 * gimple-fold.h: New file.
5972 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5973 (ccp_fold, fold_const_aggregate_ref,
5974 fold_ctor_reference, fold_nonarray_ctor_reference,
5975 fold_array_ctor_reference, fold_string_cst_ctor_reference,
5976 get_base_constructor): Move ...
5977 * gimple-fold.c: ... here.
5978 (gimple_fold_stmt_to_constant_1): New function
5979 split out from ccp_fold. Take a valueization callback parameter.
5980 Valueize all operands.
5981 (gimple_fold_stmt_to_constant): New wrapper function.
5982 (fold_const_aggregate_ref_1): New function split out from
5983 fold_const_aggregate_ref. Take a valueization callback parameter.
5984 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5985 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5986 invariant POINTER_PLUS_EXPRs to invariant form.
5987 (vn_valueize): New function.
5988 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5989 * tree-vrp.c (vrp_valueize): New function.
5990 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5991 to fold statements to constants.
5992 * tree-ssa-pre.c (eliminate): Properly guard propagation of
5993 function declarations.
5994 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5995 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5997 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5999 * config/h8300/predicates.md (jump_address_operand): Fix register
6002 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
6004 * doc/invoke.texi (max-stores-to-sink): Document.
6005 * params.h (MAX_STORES_TO_SINK): Define.
6006 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
6007 if either vectorization or if-conversion is disabled.
6008 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
6009 tree-vect-data-refs.c vect_equal_offsets.
6010 (dr_equal_offsets_p): New function.
6011 (find_data_references_in_bb): Remove static.
6012 * tree-data-ref.h (find_data_references_in_bb): Declare.
6013 (dr_equal_offsets_p): Likewise.
6014 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
6015 (vect_drs_dependent_in_basic_block): Update calls to
6017 (vect_check_interleaving): Likewise.
6018 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
6019 (cond_if_else_store_replacement): Rename to...
6020 (cond_if_else_store_replacement_1): ... this. Change arguments and
6022 (cond_if_else_store_replacement): New function.
6023 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
6024 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
6026 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
6029 * config/arm/arm.md (casesi): Use the gen_int_mode() function
6030 to subtract lower bound instead of GEN_INT().
6032 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
6037 * doc/extend.texi (Alignment): Move section to match order in TOC.
6038 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
6039 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
6041 2011-03-23 Jeff Law <law@redhat.com>
6043 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
6044 before removing the edge.
6046 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
6047 it may have been freed by redirect_branch_edge or
6048 redirect_edge_succ_nodup.
6050 2011-03-23 Richard Guenther <rguenther@suse.de>
6052 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
6053 (check_va_list_escapes): Likewise.
6054 (check_all_va_list_escapes): Likewise.
6056 2011-03-23 Richard Guenther <rguenther@suse.de>
6058 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
6059 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
6060 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
6061 (alias.o): Likewise.
6062 (ipa-type-escape.o): Remove.
6063 (ipa-struct-reorg.o): Likewise.
6064 (GTFILES): Remove ipa-struct-reorg.c.
6065 * alias.c: Do not include ipa-type-escape.h.
6066 * tree-ssa-alias.c: Likewise.
6067 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
6068 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
6069 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
6070 and ipa-type-escape passes.
6071 * tree-pass.h (pass_ipa_type_escape): Remove.
6072 (pass_ipa_struct_reorg): Likewise.
6073 * ipa-struct-reorg.h: Remove.
6074 * ipa-struct-reorg.c: Likewise.
6075 * ipa-type-escape.h: Likewise.
6076 * ipa-type-escape.c: Likewise.
6077 * doc/invoke.texi (-fipa-struct-reorg): Remove.
6078 (--param struct-reorg-cold-struct-ratio): Likewise.
6079 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
6080 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
6081 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
6083 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6085 * config/s390/2084.md: Enable all insn reservations also for z9_ec
6086 cpu attribute value.
6087 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
6088 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
6089 * config/s390/s390.c (processor_flags_table): New constant array.
6090 (s390_handle_arch_option): Remove.
6091 (s390_handle_option): Remove s390_handle_arch_option invocations
6092 and OPT_mwarn_framesize_ handling.
6093 (s390_option_override): Remove s390_handle_arch_option invocation.
6094 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
6096 * config/s390/s390.md (cpu attribute): Add z9_ec value.
6097 * config/s390/s390.opt (s390_tune, s390_arch)
6098 (march=): Replace s390_arch_option enum and values with
6099 processor_type. Set variable name to s390_arch. Set
6100 initialization value.
6101 (mtune=): Replace s390_arch_option with processor_type. Set
6102 variable name to s390_tune. Set initialization value.
6104 2011-03-23 Julian Brown <julian@codesourcery.com>
6106 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
6107 accesses which are not naturally aligned.
6109 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
6112 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
6114 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
6116 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
6117 parameter from "int" to "enum insn_code".
6118 (expand_operand_type): New enum.
6119 (expand_operand): New structure.
6120 (create_expand_operand): New function.
6121 (create_fixed_operand, create_output_operand): Likewise
6122 (create_input_operand, create_convert_operand_to): Likewise.
6123 (create_convert_operand_from, create_address_operand): Likewise.
6124 (create_integer_operand): Likewise.
6125 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
6126 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
6127 (expand_insn, expand_jump_insn): Likewise.
6128 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
6129 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
6130 (expand_movstr, expand_builtin___clear_cache): Likewise.
6131 (expand_builtin_lock_release): Likewise.
6132 * explow.c (allocate_dynamic_stack_space): Likewise.
6133 (probe_stack_range): Likewise. Allow check_stack to FAIL,
6134 and use the default handling in that case.
6135 * expmed.c (check_predicate_volatile_ok): Delete.
6136 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
6137 (emit_cstore): Likewise.
6138 * expr.c (emit_block_move_via_movmem): Likewise.
6139 (set_storage_via_setmem, expand_assignment): Likewise.
6140 (emit_storent_insn, try_casesi): Likewise.
6141 (emit_single_push_insn): Likewise. Allow the expansion to fail.
6142 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
6143 (expand_vec_shift_expr, expand_binop_directly): Likewise.
6144 (expand_twoval_unop, expand_twoval_binop): Likewise.
6145 (expand_unop_direct, emit_indirect_jump): Likewise.
6146 (emit_conditional_move, vector_compare_rtx): Likewise.
6147 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
6148 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
6149 (expand_sync_lock_test_and_set): Likewise.
6150 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
6151 (emit_unop_insn): Likewise.
6152 (expand_copysign_absneg): Change icode to an insn_code.
6153 (create_convert_operand_from_type): New function.
6154 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
6155 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
6156 (expand_insn, expand_jump_insn): Likewise.
6157 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
6158 than const_int_operand for operand 2.
6160 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6162 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
6165 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6167 * emit-rtl.c (emit_pattern_before_noloc): New function.
6168 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
6169 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
6170 (emit_pattern_after_noloc): New function.
6171 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
6172 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
6174 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6176 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
6177 (__ffsDI2): Likewise.
6179 2011-03-22 Richard Henderson <rth@redhat.com>
6181 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
6182 of !TARGET_ABI_OPEN_VMS.
6183 (alpha_trampoline_init, alpha_start_function): Likewise.
6184 (alpha_expand_epilogue, alpha_file_start): Likewise.
6185 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
6186 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
6187 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
6188 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
6189 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
6191 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6193 * config/s390/s390-opts.h: New.
6194 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
6195 s390_arch_flags, s390_warn_framesize, s390_stack_size,
6196 s390_stack_guard): Remove.
6197 (s390_handle_arch_option): Return void. Take enum
6198 s390_arch_option value instead of string and searching array.
6199 (s390_handle_option): Don't assert that global structures are in
6200 use. Access variables via opts pointer. Use error_at. Don't use
6201 sscanf for -mstack-guard= or -mstack-size=. Update call to
6202 s390_handle_arch_option.
6203 (s390_option_override): Update call to s390_handle_arch_option.
6204 (s390_emit_prologue): Use %d format for s390_stack_size in
6205 diagnostic. Use %wd for HOST_WIDE_INT.
6206 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
6207 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
6208 * config/s390/s390.opt (config/s390/s390-opts.h): New
6209 HeaderInclude entry.
6210 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
6211 s390_arch_flags, s390_warn_framesize): New Variable entries.
6212 (s390_arch_option): New Enum and EnumValue entries.
6213 (march=): Use Enum instead of Var.
6214 (mstack-guard=, mstack-size=): Use UInteger and Var.
6217 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6219 * config/score/score.c (score_handle_option): Don't assert that
6220 global structures are in use. Access target_flags via opts
6221 pointer. Use value of -march= option to determine target_flags
6223 * config/score/score.opt (march=): Use Enum.
6224 (score_arch): New Enum and EnumValue entries.
6226 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6228 * config/mep/mep.c (option_mtiny_specified): Remove.
6229 (mep_option_override): Move register handling for -mivc2 from
6230 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
6231 instead of option_mtiny_specified.
6232 (mep_handle_option): Access target_flags via opts pointer. Don't
6233 assert that global structures are in use. Defer part of -mivc2
6234 handling and move it to mep_option_override.
6235 * config/mep/mep.opt (IVC2): New Mask entry.
6236 (mivc2): Use Var and Defer instead of Mask.
6238 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6240 * config/v850/v850-opts.h: New.
6241 * config/v850/v850.c (small_memory): Replace with
6242 small_memory_physical_max array. Make that array static const.
6243 (v850_handle_memory_option): Take integer value of argument. Take
6244 gcc_options pointer, option text and location. Return void.
6245 Update for changes to small memory structures.
6246 (v850_handle_option): Access target_flags via opts pointer. Don't
6247 assert that global structures are in use. Update calls to
6248 v850_handle_memory_option.
6249 (v850_encode_data_area): Update references to small memory settings.
6250 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
6251 (enum small_memory_type): Move to v850-opts.h.
6252 * config/v850/v850.opt (config/v850/v850-opts.h): New
6253 HeaderInclude entry.
6254 (small_memory_max): New Variable entry.
6255 (msda): Replace by pair of options msda= and msda-. Use UInteger.
6256 (mtda, mzda): Likewise.
6258 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6260 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
6261 pointer. Don't assert that global structures are in use.
6263 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6265 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
6266 via opts pointer. Don't assert that global structures are in use.
6268 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6270 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
6271 (munix=93): Use Var.
6272 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
6273 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
6274 * config/pa/pa-opts.h: New.
6275 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
6276 (pa_handle_option): Don't assert that global structures are in
6277 use. Access target_flags via opts pointer. Don't handle
6278 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
6280 (pa_option_override): Handle deferred OPT_mfixed_range_.
6282 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6284 * config/mn10300/mn10300-opts.h: New.
6285 * config/mn10300/mn10300.c (mn10300_processor,
6286 mn10300_tune_string): Remove.
6287 (mn10300_handle_option): Don't assert that global structures are
6288 in use. Access mn10300_processor via opts pointer. Don't handle
6290 * config/mn10300/mn10300.h (enum processor_type): Move to
6292 (mn10300_processor): Remove.
6293 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
6294 HeaderInclude entry.
6295 (mn10300_processor): New Variable entry.
6298 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6300 * config/microblaze/microblaze.c: Don't include opts.h.
6301 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
6302 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
6303 (mno-clearbss): Use Var and Warn.
6305 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6307 * config/m32r/m32r-opts.h: New.
6308 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
6309 (m32r_handle_option): Don't assert that global structures are in
6310 use. Access target_flags and m32r_cache_flush_func via opts
6311 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
6312 OPT_mno_flush_trap here.
6313 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
6314 include of m32r-opts.h.
6315 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
6316 HeaderInclude entry.
6317 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
6318 (mmodel=): Use Enum and Var.
6319 (m32r_model): New Enum and EnumValue entries.
6320 (mno-flush-trap): Use Var.
6321 (msdata=): Use Enum and Var.
6322 (m32r_sdata): New Enum and EnumValue entries.
6324 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6326 * config/m32c/m32c.c: Don't include opts.h.
6327 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
6328 m32c_handle_option): Remove.
6329 (m32c_option_override): Check global_options_set.x_target_memregs
6330 instead of target_memregs_set.
6331 * config/m32c/m32c.h (target_memregs): Remove.
6332 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
6335 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6337 * config/iq2000/iq2000-opts.h: New.
6338 * config/iq2000/iq2000.c: Don't include opts.h.
6339 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
6340 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
6341 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
6342 HeaderInclude entry.
6343 (iq2000_tune): New Variable entry.
6344 (march=): Add comment. Use Enum.
6345 (iq2000_arch): New Enum and EnumValue entries.
6346 (mcpu=): Use Enum and Var.
6347 (iq2000_tune): New Enum and EnumValue entries.
6349 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6351 * config/ia64/ia64-opts.h: New.
6352 * config/ia64/ia64.c (ia64_tune): Remove.
6353 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
6355 (ia64_option_override): Handle deferred OPT_mfixed_range_.
6356 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
6357 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
6358 HeaderInclude entry.
6359 (ia64_tune): New Variable entry.
6360 (mfixed-range=): Use Defer and Var.
6361 (mtune=): Use Enum and Var.
6362 (ia64_tune): New Enum and EnumValue entries.
6364 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6366 * config/frv/frv-opts.h: New.
6367 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
6369 (frv_cpu_type): Remove.
6370 * config/frv/frv.c: Don't include opts.h.
6371 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
6372 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
6373 (frv_cpu_type): New Variable entry.
6374 (frv_cpu): New Enum and EnumValue entries.
6376 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6378 * config/cris/cris.c (cris_handle_option): Access target_flags via
6379 opts pointer. Don't assert that global structures are in use.
6380 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
6381 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
6383 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6385 * config/bfin/bfin-opts.h: New.
6386 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
6387 bfin_si_revision, bfin_workarounds): Remove.
6388 (bfin_cpus): Make static const.
6389 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
6390 not bfin_lib_id_given.
6391 (bfin_handle_option): Don't set bfin_lib_id_given. Access
6392 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
6393 pointer. Use error_at. Don't assert that global structures are in use.
6394 * config/bfin/bfin.h: Include bfin-opts.h.
6395 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
6396 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
6397 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
6398 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
6401 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6403 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
6404 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
6405 or -msoft-float here.
6406 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
6407 -msoft-float and -mhard-float.
6408 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
6409 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6411 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
6413 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
6414 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
6416 (LIBGCC_SPEC): Don't handle -msoft-float.
6417 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
6419 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6421 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
6422 -mfloat-abi=*, not -msoft-float and -mhard-float.
6423 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
6425 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
6426 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
6427 mhard-float and msoft-float.
6428 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
6429 mfloat-abi=soft in comments, not mhard-float and msoft-float.
6430 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6431 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
6433 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
6434 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
6436 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
6438 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
6441 2011-03-22 Richard Henderson <rth@redhat.com>
6443 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
6444 TARGET_ABI_WINDOWS_NT.
6445 (alpha_output_function_end_prologue): Likewise.
6446 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
6447 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6448 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
6449 (trap, *movsi_nt_vms): Likewise.
6450 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
6451 (*tablejump_osf_nt_internal): Remove.
6452 * config/alpha/predicates.md (input_operand): Only test Pmode.
6454 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6456 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
6457 via opts pointer. Use error_at. Don't assert that global
6458 structures are in use.
6460 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6462 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
6463 (ix86_handle_option): Access ix86_isa_flags and
6464 ix86_isa_flags_explicit via opts pointer. Don't assert that
6465 global structures are in use.
6466 (ix86_function_specific_save, ix86_function_specific_restore):
6467 Update ix86_isa_flags_explicit field name.
6468 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
6469 (ix86_isa_flags_explicit): Rename TargetSave entry to
6470 x_ix86_isa_flags_explicit.
6472 2011-03-22 Richard Henderson <rth@redhat.com>
6474 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
6475 (alpha_option_override, direct_return): Likewise.
6476 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
6477 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
6478 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
6479 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6480 (alpha_expand_epilogue, alpha_end_function): Likewise.
6481 (alpha_init_libfuncs): Likewise.
6482 (struct machine_function): Remove unicosmk members.
6483 (print_operand) ['t']: Remove.
6484 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
6485 unicosmk_output_module_name, unicosmk_output_common,
6486 current_section_align, unicosmk_output_text_section_asm_op,
6487 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
6488 unicosmk_section_type_flags, unicosmk_unique_section,
6489 unicosmk_asm_named_section, unicosmk_insert_attributes,
6490 unicosmk_output_align, unicosmk_defer_case_vector,
6491 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
6492 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
6493 unicosmk_output_ssib, unicosmk_add_call_info_word,
6494 unicosmk_extern_head, unicosmk_output_default_externs,
6495 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
6496 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
6497 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
6498 * config/alpha/alpha-protos.h: Update.
6499 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
6500 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
6501 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
6502 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
6503 (*mulsi_se, mulvsi3): Likewise.
6504 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
6505 (*divmodsi_internal, call, call_value, realign): Likewise.
6506 (moddi3, umoddi3): Likewise; remove duplicate expander.
6507 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
6508 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
6509 (*movdi_nofix): Remove r/U alternative.
6510 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
6511 * config/alpha/constraints.md ("U"): Remove.
6512 * config/alpha/predicates.md (call_operand"): Don't test
6513 TARGET_ABI_UNICOSMK.
6515 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6517 * target.def (handle_option): Take gcc_options and
6518 cl_decoded_option pointers and location_t.
6519 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
6520 * doc/tm.texi: Regenerate.
6521 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
6522 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
6523 * lto-opts.c (lto_reissue_options): Generate option structure for
6524 targetm.handle_option call.
6525 * opts.c (target_handle_option): Update call to
6526 targetm.handle_option. Remove assertions about values now passed
6528 * targhooks.c (default_target_handle_option): New.
6529 * targhooks.h (default_target_handle_option): Declare.
6530 * config/alpha/alpha.c: Include opts.h.
6531 (alpha_handle_option): Update to new hook interface.
6532 * config/arm/arm.c: Include opts.h.
6533 (arm_handle_option): Update to new hook interface.
6534 * config/arm/t-arm (arm.o): Update dependencies.
6535 * config/bfin/bfin.c: Include opts.h.
6536 (bfin_handle_option): Update to new hook interface.
6537 * config/cris/cris.c: Include opts.h.
6538 (cris_handle_option): Update to new hook interface.
6539 * config/frv/frv.c: Include opts.h.
6540 (frv_handle_option): Update to new hook interface.
6541 * config/i386/i386.c: Include opts.h.
6542 (ix86_handle_option): Update to new hook interface.
6543 (ix86_valid_target_attribute_inner_p): Generate option structure
6544 for call to ix86_handle_option.
6545 * config/i386/t-i386 (i386.o): Update dependencies.
6546 * config/ia64/ia64.c: Include opts.h.
6547 (ia64_handle_option): Update to new hook interface.
6548 * config/ia64/t-ia64 (ia64.o): Update dependencies.
6549 * config/iq2000/iq2000.c: Include opts.h.
6550 (iq2000_handle_option): Update to new hook interface.
6551 * config/m32c/m32c.c: Include opts.h.
6552 (m32c_handle_option): Update to new hook interface.
6553 * config/m32r/m32r.c: Include opts.h.
6554 (m32r_handle_option): Update to new hook interface.
6555 * config/m68k/m68k.c: Include opts.h.
6556 (m68k_handle_option): Update to new hook interface.
6557 * config/mep/mep.c: Include opts.h.
6558 (mep_handle_option): Update to new hook interface.
6559 * config/microblaze/microblaze.c: Include opts.h.
6560 (microblaze_handle_option): Update to new hook interface.
6561 * config/mips/mips.c: Include opts.h.
6562 (mips_handle_option): Update to new hook interface.
6563 * config/mn10300/mn10300.c: Include opts.h.
6564 (mn10300_handle_option): Update to new hook interface.
6565 * config/pa/pa.c: Include opts.h.
6566 (pa_handle_option): Update to new hook interface.
6567 * config/pdp11/pdp11.c: Include opts.h.
6568 (pdp11_handle_option): Update to new hook interface.
6569 * config/rs6000/rs6000.c: Include opts.h.
6570 (rs6000_handle_option): Update to new hook interface.
6571 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6572 * config/rx/rx.c: Include opts.h.
6573 (rx_handle_option): Update to new hook interface.
6574 * config/s390/s390.c: Include opts.h.
6575 (s390_handle_option): Update to new hook interface.
6576 * config/score/score.c: Include opts.h.
6577 (score_handle_option): Update to new hook interface.
6578 * config/sh/sh.c: Include opts.h.
6579 (sh_handle_option): Update to new hook interface.
6580 * config/sparc/sparc.c: Include opts.h.
6581 (sparc_handle_option): Update to new hook interface.
6582 * config/v850/v850.c: Include opts.h.
6583 (v850_handle_option): Update to new hook interface.
6585 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6587 * gcc.c (driver_unknown_option_callback): Only permit and save
6588 unknown -Wno- options.
6589 (driver_wrong_lang_callback): Save options directly instead of via
6590 driver_unknown_option_callback.
6592 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6594 * combine.c (simplify_set): Try harder to find the best CC mode when
6595 simplifying a nested COMPARE on the RHS.
6597 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6599 * config/alpha/gnu.h: Remove.
6600 * config/arc: Remove directory.
6601 * config/arm/netbsd.h: Remove.
6602 * config/arm/t-pe: Remove.
6603 * config/crx: Remove directory.
6604 * config/i386/netbsd.h: Remove.
6605 * config/m68hc11: Remove directory.
6606 * config/m68k/uclinux-oldabi.h: Remove.
6607 * config/mcore/mcore-pe.h: Remove.
6608 * config/mcore/t-mcore-pe: Remove.
6609 * config/netbsd-aout.h: Remove.
6610 * config/rs6000/gnu.h: Remove.
6611 * config/sh/sh-symbian.h: Remove.
6612 * config/sh/symbian-base.c: Remove.
6613 * config/sh/symbian-c.c: Remove.
6614 * config/sh/symbian-cxx.c: Remove.
6615 * config/sh/symbian-post.h: Remove.
6616 * config/sh/symbian-pre.h: Remove.
6617 * config/sh/t-symbian: Remove.
6618 * config/svr3.h: Remove.
6619 * config/vax/netbsd.h: Remove.
6620 * config.build: Don't handle i[34567]86-*-pe.
6621 * config.gcc: Remove handling of deprecations for most deprecated
6623 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6624 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6625 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6626 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6627 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6628 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6630 * config.host: Don't handle i[34567]86-*-pe.
6631 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6632 (ASM_SPEC32): Don't handle -mcall-gnu.
6633 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6635 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6636 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6637 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6638 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6639 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6640 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6641 conditional on SYMBIAN.
6642 * configure.ac: Don't handle powerpc*-*-gnu*.
6643 * configure: Regenerate.
6644 * doc/extend.texi (interrupt attribute): Don't mention CRX.
6645 * doc/install-old.texi (m6811, m6812): Don't mention.
6646 * doc/install.texi (arc-*-elf*): Don't document multilib option.
6647 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6648 (m68k-uclinuxoldabi): Don't mention.
6649 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6651 (-mcall-gnu): Remove.
6652 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6653 families): Remove constraint documentation.
6655 2011-03-22 Marius Strobl <marius@FreeBSD.org>
6657 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6658 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6659 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6661 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
6663 * config/avr/avr-protos.h (expand_epilogue): Change prototype
6664 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6665 * config/avr/avr.c (init_cumulative_args)
6666 (avr_function_arg_advance): Use it.
6667 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6669 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6670 (avr_function_ok_for_sibcall): ...this new function.
6671 (avr_lookup_function_attribute1): New static Function.
6672 (avr_naked_function_p, interrupt_function_p)
6673 (signal_function_p, avr_OS_task_function_p)
6674 (avr_OS_main_function_p): Use it.
6675 * config/avr/avr.md ("sibcall", "sibcall_value")
6676 ("sibcall_epilogue"): New expander.
6677 ("*call_insn", "*call_value_insn"): New insn.
6678 ("call_insn", "call_value_insn"): Remove
6679 ("call", "call_value", "epilogue"): Change expander to handle
6682 2011-03-21 Nick Clifton <nickc@redhat.com>
6684 * doc/invoke.texi (Overall Options): Move closing brace to end of
6686 (Optimization Options): Add missing @gol.
6687 (Directory Options): Likewise.
6688 (i386 and x86-64 Options): Likewise.
6689 (RS6000 and PowerPC Options): Likewise.
6690 (i386 and x86-64 Windows Options): Likewise.
6691 (V850 Options): Add text missing from descriptions.
6693 2011-03-22 Richard Henderson <rth@redhat.com>
6695 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6696 (avr_incoming_return_addr_rtx): New.
6697 (emit_push_byte): New.
6698 (expand_prologue): Use it. Remove incorrect dwarf annotation for
6699 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
6700 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
6701 (emit_pop_byte): New.
6702 (expand_epilogue): Use it. Pop frame pointer by bytes.
6703 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6704 (INCOMING_RETURN_ADDR_RTX): New.
6705 (INCOMING_FRAME_SP_OFFSET): New.
6706 (ARG_POINTER_CFA_OFFSET): New.
6707 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6708 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6711 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6713 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6715 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6716 (FUNCTION_ARG_ADVANCE): Likewise.
6717 * tm.texi.in: Change references to them to hook references.
6718 * tm.texi: Regenerate.
6719 * targhooks.c (default_function_arg): Eliminate check for target
6721 (default_function_incoming_arg): Likewise.
6722 (default_function_arg_advance): Likewise.
6723 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6724 (function_arg_advance): Likewise.
6725 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6727 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6729 * tree.c (build_call_1): New function.
6730 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6732 2011-03-22 Richard Guenther <rguenther@suse.de>
6734 PR tree-optimization/48228
6735 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6736 for single-arg PHIs.
6738 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
6740 PR rtl-optimization/48143
6741 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6742 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6743 sse2_cvtps2pd): Likewise.
6745 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6747 * recog.c (canonicalize_change_group): Use validate_unshare_change.
6749 2011-03-22 Richard Guenther <rguenther@suse.de>
6751 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6752 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6753 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6754 and REALIGN_LOAD_EXPR.
6755 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6756 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6757 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6758 DOT_PROD_EXPR case ...
6759 (expand_expr_real_2): ... here.
6760 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6761 and REALIGN_LOAD_EXPR.
6762 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6763 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6764 (vect_create_epilog_for_reduction): Likewise.
6765 (vectorizable_reduction): Likewise.
6766 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6767 * tree-vect-stmts.c (vectorizable_load): Likewise.
6769 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6771 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6773 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6775 * config/s390/s390.c (s390_delegitimize_address): Fix offset
6776 handling for PLTOFF/GOTOFF.
6778 2011-03-22 Nick Clifton <nickc@redhat.com>
6780 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6781 trailing backslash from the end of the macro definition.
6783 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6785 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6788 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
6790 * expr.h (prepare_operand): Move to...
6791 * optabs.h (prepare_operand): ...here and change the insn code
6792 parameter from "int" to "enum insn_code".
6793 (insn_operand_matches): Declare.
6794 * expr.c (init_expr_target): Use insn_operand_matches.
6795 (compress_float_constant): Likewise.
6796 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6797 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6798 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6799 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6801 (gen_cond_trap): Likewise.
6802 (prepare_operand): Likewise. Change icode to an insn_code.
6803 (insn_operand_matches): New function.
6804 * reload.c (find_reloads_address_1): Use insn_operand_matches.
6805 * reload1.c (gen_reload): Likewise.
6806 * targhooks.c (default_secondary_reload): Likewise.
6808 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6810 * config/alpha/alpha.md (unspec): New define_c_enum.
6813 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6816 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6817 between a call and its CALL_ARG_LOCATION note.
6819 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
6821 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6823 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6827 * c-common.c (shorten_compare): If primopN is first sign-extended
6828 to opN and then zero-extended to result type, set primopN to opN.
6830 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6832 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6833 for barrier handlers.
6835 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6837 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6838 UNSPEC constants to be in the unspec enumeration, and redefine
6839 all UNSPECV constants to be in the unspecv enumeration, so that
6840 dumps print which unspec/unspec_volatile this is.
6841 * config/rs6000/vector.md (UNSPEC_*): Ditto.
6842 * config/rs6000/paired.md (UNSPEC_*): Ditto.
6843 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6844 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6845 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6847 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6848 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6849 UNSPECV_LWSYNC, since these are used as unspec_volatile.
6850 * config/rs6000/sync.md (isync, lwsync): Ditto.
6852 2011-03-21 Richard Guenther <rguenther@suse.de>
6854 * params.def (lto-min-partition): Fix typo.
6856 2011-03-21 Richard Guenther <rguenther@suse.de>
6859 * c-decl.c (grokdeclarator): Drop to the main variant only
6860 for array types. Drop flag_gen_aux_info check.
6862 2011-03-21 Richard Guenther <rguenther@suse.de>
6864 PR translation/47911
6865 * params.def (lto-partitions): Fix typo.
6866 (lto-min-partition): Fix wording.
6868 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
6870 * config/rs6000/t-freebsd: Remove duplication from file.
6872 2011-03-21 Richard Guenther <rguenther@suse.de>
6875 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6877 2011-03-21 Richard Guenther <rguenther@suse.de>
6880 * params.def (lto-partitions): Require at least 1 partition.
6882 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6884 * gthr-solaris.h: Remove.
6885 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6886 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6887 (LIB_SPEC): Likewise.
6888 * config/sol2.opt (threads): Remove.
6889 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6890 (sparc*-*-solaris2*): Likewise.
6891 * configure.ac (enable_threads): Enable solaris support.
6892 * configure: Regenerate.
6893 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6894 * doc/install.texi (Configuration, --enable-threads=lib): Remove
6897 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6899 * config.gcc: Obsolete *-*-solaris2.8*.
6900 * doc/install.texi (Specific, *-*-solaris2*): Document it.
6902 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6905 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6906 reference. Solaris 8 perl works.
6908 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6911 * doc/install.texi (Prerequisites): Move jar etc. up.
6912 Explain support library version requirements.
6914 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6917 * doc/install.texi (Prerequisites): Move Perl to build
6918 requirements. Always necessary on Solaris 2 with Sun ld.
6920 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6922 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6924 (Specific, i?86-*-solaris2.[89]): Likewise.
6925 (Specific, i?86-*-solaris2.10): Likewise.
6926 (Specific, mips-sgi-irix6): Likewise.
6927 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6928 Update for binutils 2.21.
6930 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6932 * configure.ac (gcc_cv_lto_plugin): Fix typo.
6933 Allow -fuse-linker-plugin for non-default plugin linker.
6934 * configure: Regenerate.
6936 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
6939 * gengtype.c (files_rules): Added rule for cp/parser.h.
6941 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6944 * config/s390/s390.c (s390_delegitimize_address): Don't call
6945 lowpart_subreg if orig_x has BLKmode.
6947 2011-03-21 Kai Tietz <ktietz@redhat.com>
6950 * doc/plugins.texi: Adjust documentation for plugin register_callback.
6951 * tree.h (attribute_spec): Add new member affects_type_identity.
6952 * attribs.c (empty_attribute_table): Adjust attribute_spec
6954 * config/alpha/alpha.c: Likewise.
6955 * config/arc/arc.c: Likewise.
6956 * config/arm/arm.c: Likewise.
6957 * config/avr/avr.c: Likewise.
6958 * config/bfin/bfin.c: Likewise.
6959 * config/crx/crx.c: Likewise.
6960 * config/darwin.h: Likewise.
6961 * config/h8300/h8300.c: Likewise.
6962 * config/i386/cygming.h: Likewise.
6963 * config/i386/i386.c: Likewise.
6964 * config/ia64/ia64.c: Likewise.
6965 * config/m32c/m32c.c: Likewise.
6966 * config/m32r/m32r.c: Likewise.
6967 * config/m68hc11/m68hc11.c: Likewise.
6968 * config/m68k/m68k.c: Likewise.
6969 * config/mcore/mcore.c: Likewise.
6970 * config/mep/mep.c: Likewise.
6971 * config/microblaze/microblaze.c: Likewise.
6972 * config/mips/mips.c: Likewise.
6973 * config/rs6000/rs6000.c: Likewise.
6974 * config/rx/rx.c: Likewise.
6975 * config/sh/sh.c: Likewise.
6976 * config/sol2.h: Likewise.
6977 * config/sparc/sparc.c: Likewise.
6978 * config/spu/spu.c: Likewise.
6979 * config/stormy16/stormy16.c: Likewise.
6980 * config/v850/v850.c: Likewise.
6982 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
6984 * simplify-rtx.c (simplify_binary_operation_1): Handle
6985 (xor (and A B) C) case when B and C are both constants.
6987 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
6989 * tree-dfa.c (add_referenced_var): Fix typo in comment.
6991 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
6994 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6996 2011-03-20 Jakub Jelinek <jakub@redhat.com>
6998 PR rtl-optimization/48156
6999 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
7000 assume df and df_lr are not NULL.
7002 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7005 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
7006 between a call and its CALL_ARG_LOCATION note.
7008 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
7011 * config/sh/sh.c (find_barrier): Don't emit a constant pool
7012 between a call and its corresponding CALL_ARG_LOCATION note.
7014 2011-03-19 Anatoly Sokolov <aesok@post.ru>
7016 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
7017 instead of loop. Use HARD_REGISTER_NUM_P predicate.
7018 * haifa-sched.c (setup_ref_regs): Ditto.
7019 * caller-save.c (add_used_regs_1): Ditto.
7020 * dse.c (look_for_hardregs): Ditto.
7021 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
7022 * sched-rgn.c (check_live_1): Ditto.
7024 2011-03-18 Joseph Myers <joseph@codesourcery.com>
7026 * c-decl.c (diagnose_mismatched_decls): Give an error for
7027 redefining a typedef with variably modified type.
7029 2011-03-18 Joseph Myers <joseph@codesourcery.com>
7031 * c-decl.c (grokfield): Don't allow typedefs for structures or
7032 unions with no tag by default.
7033 * doc/extend.texi (Unnamed Fields): Update.
7035 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
7037 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
7038 Rewrite using indirect functions.
7039 (lwp_slwpcb): Ditto.
7040 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
7041 (avx_vinsertf128<mode>): Ditto.
7043 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7045 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
7048 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7050 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
7051 splitting between a call and its corresponding CALL_ARG_LOCATION note.
7053 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
7055 PR rtl-optimization/48170
7056 * gcse.c (hoist_code): Remove bogus asserts.
7058 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
7060 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
7061 computation for prologue/epilogue.
7063 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7065 * Makefile.in (check-consistency): Remove.
7067 2011-03-18 Jakub Jelinek <jakub@redhat.com>
7070 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
7071 arange_table_in_use is 0, but either text_section_used or
7072 cold_text_section_used is true. Don't call it if
7073 !info_section_emitted.
7075 2011-03-18 Anatoly Sokolov <aesok@post.ru>
7077 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
7078 FUNCTION_VALUE_REGNO_P): Remove.
7079 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
7081 * config/avr/avr.c (avr_ret_register): Make static inline.
7082 (avr_function_value_regno_p): New function.
7083 (avr_libcall_value): Make static. Add 'func' argument.
7084 (avr_function_value): Make static. Rename 'func' argument to
7085 'fn_decl_or_type', forward it to avr_libcall_value. Call
7086 avr_ret_register function instead of RET_REGISTER macro.
7087 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7089 2011-03-18 Jason Merrill <jason@redhat.com>
7092 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
7094 2011-03-18 Richard Guenther <rguenther@suse.de>
7096 * doc/install.texi (--enable-gold): Remove.
7097 (--with-plugin-ld): Document.
7098 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
7100 2011-03-18 Andrew Pinski <pinskia@gmail.com>
7103 * expr.c (optimize_bitfield_assignment_op): Revamp to work
7104 again after expansion changes.
7106 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
7108 * combine.c (try_combine): Do simplification only call of
7109 subst() on i2 even when i1 is present. Update comments.
7111 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
7113 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
7114 and UNSPEC_PCREL_SYMOFF.
7116 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7118 * config/s390/s390.md: Use define_c_enum for the unspec constant
7121 2011-03-18 Richard Henderson <rth@redhat.com>
7122 Jakub Jelinek <jakub@redhat.com>
7125 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
7126 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
7128 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7131 * combine.c (cant_combine_insn_p): Don't check zero/sign
7132 extended hard registers.
7134 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7137 * combine.c (cant_combine_insn_p): Check zero/sign extended
7140 2011-03-17 Anatoly Sokolov <aesok@post.ru>
7142 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7143 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
7144 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
7145 Change return type to bool.
7146 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7148 2011-03-17 Jakub Jelinek <jakub@redhat.com>
7151 * var-tracking.c (prepare_call_arguments): If CALL target
7152 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
7153 pc instead of looking it up using cselib_lookup and use
7154 Pmode for it if x has VOIDmode.
7155 * dwarf2out.c (gen_subprogram_die): If also both first and
7156 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
7159 * function.c (assign_parms): For data.passed_pointer parms
7160 use MEM of data.entry_parm instead of data.entry_parm itself
7161 as DECL_INCOMING_RTL.
7162 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
7163 also when passed and declared mode is the same, DECL_RTL
7164 is a MEM with pseudo as address and DECL_INCOMING_RTL is
7167 2011-03-16 Jeff Law <law@redhat.com>
7169 PR rtl-optimization/37273
7170 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7171 handle them like argument loads from stack slots. Do not double
7172 count memory for memory constants and argument loads from stack slots.
7174 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7177 * var-tracking.c (prepare_call_arguments): Check SUBREG.
7179 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7182 * config/i386/i386.opt: Add Save to -mavx and -mfma.
7184 2011-03-17 Jakub Jelinek <jakub@redhat.com>
7187 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
7189 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
7190 Clear call_arg_locations and call_arg_loc_last always.
7193 * var-tracking.c (prepare_call_arguments): If argument needs to be
7194 passed by reference, adjust argtype and mode.
7196 2011-03-17 Richard Guenther <rguenther@suse.de>
7199 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
7200 a value make sure to fold the statement.
7202 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
7205 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
7206 return condition with !cfun->calls_alloca.
7208 2011-03-17 Richard Guenther <rguenther@suse.de>
7211 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7212 origin for decls in other ltrans units.
7213 (input_varpool_node): Likewise.
7215 2011-03-17 Richard Guenther <rguenther@suse.de>
7218 * tree-object-size.c (compute_object_offset): Properly return
7219 the offset operand of MEM_REFs as sizetype.
7221 2011-03-17 Jakub Jelinek <jakub@redhat.com>
7223 PR rtl-optimization/48141
7224 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
7225 * dse.c: Include params.h.
7226 (active_local_stores_len): New variable.
7227 (add_wild_read, dse_step1): Clear it when setting active_local_stores
7229 (record_store, check_mem_read_rtx): Decrease it when removing
7231 (scan_insn): Likewise. Increase it when adding to chain, if it
7232 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
7233 set active_local_stores to NULL before the addition.
7234 * Makefile.in (dse.o): Depend on $(PARAMS_H).
7236 PR rtl-optimization/48141
7237 * dse.c (record_store): If no positions are needed in an insn
7238 that cannot be deleted, at least unchain it from active_local_stores.
7240 2011-03-16 Dodji Seketeli <dodji@redhat.com>
7243 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
7244 (lookup_type_die_strip_naming_typedef): ... here.
7245 (get_context_die): Use it.
7246 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
7247 the anonymous struct named by the naming typedef.
7249 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
7252 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
7253 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7255 2011-03-16 Jeff Law <law@redhat.com>
7257 * tree-vrp.c (identify_jump_threads): Slightly simplify type
7258 check for operands of conditional. Allow type to be a pointer.
7260 2011-03-16 Richard Guenther <rguenther@suse.de>
7262 PR tree-optimization/48149
7263 * fold-const.c (fold_binary_loc): Fold
7264 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
7266 2011-03-16 Richard Guenther <rguenther@suse.de>
7268 PR tree-optimization/26134
7269 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
7270 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
7271 (non_rewritable_mem_ref_base): Handle complex type component
7272 accesses, constrain offsets for vector and complex extracts
7275 2011-03-16 Richard Guenther <rguenther@suse.de>
7277 PR tree-optimization/48146
7278 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
7279 operands avoiding the need for renaming.
7281 2011-03-16 Richard Guenther <rguenther@suse.de>
7283 * gimple-fold.c (maybe_fold_reference): Open-code relevant
7284 constant folding. Move MEM_REF canonicalization first.
7285 Rely on fold_const_aggregate_ref for initializer folding.
7286 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
7288 2011-03-16 Jakub Jelinek <jakub@redhat.com>
7291 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7292 arg0/arg1 or their arguments are always fold converted to matching
7295 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
7298 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7301 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
7302 Handle in-tree gold.
7303 (ld_vers): Extract binutils version for gold.
7304 (gcc_cv_ld_hidden): Handle gold here.
7305 (gcc_cv_lto_plugin): Determine level of linker plugin support.
7306 * configure: Regenerate.
7307 * config.in: Regenerate.
7308 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
7309 -fuse-linker-plugin otherwise.
7310 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
7311 (LINK_COMMAND_SPEC): Use it.
7312 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
7314 2011-03-16 Jakub Jelinek <jakub@redhat.com>
7316 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
7317 * calls.c: Remove debug.h include.
7318 (emit_call_1): Don't call virtual_call_token debug hook.
7319 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
7320 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
7321 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
7322 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
7323 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
7324 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
7325 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
7326 dwarf2out_virtual_call): Remove.
7327 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
7328 copy_call_info and virtual_call hooks.
7329 (dwarf2out_init): Don't initialize vcall_insn_table,
7330 debug_dcall_section and debug_vcall_section.
7331 (prune_unused_types): Don't mark nodes from dcall_table.
7332 (dwarf2out_finish): Don't output dcall or vcall tables.
7333 * final.c (final_scan_insn): Don't call direct_call or
7334 virtual_call debug hooks.
7335 * debug.h (struct gcc_debug_hooks): Remove direct_call,
7336 virtual_call_token, copy_call_info and virtual_call hooks.
7337 (debug_nothing_uid): Remove prototype.
7338 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
7339 copy_call_info and virtual_call hooks.
7340 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7341 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
7342 * debug.c (do_nothing_debug_hooks): Likewise.
7343 (debug_nothing_uid): Remove.
7344 * doc/invoke.texi (-fenable-icf-debug): Remove.
7345 * common.opt (-fenable-icf-debug): Likewise.
7347 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
7348 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
7349 call's MEM. Handle functions returning aggregate through a hidden
7350 first pointer. For virtual calls add clobbered pc to call arguments
7352 * dwarf2out.c (gen_subprogram_die): Emit
7353 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
7357 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
7358 * rtl.h (ENTRY_VALUE_EXP): Define.
7359 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
7360 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7361 * print-rtl.c (print_rtx): Likewise.
7362 * gengtype.c (adjust_field_rtx_def): Likewise.
7363 * var-tracking.c (vt_add_function_parameter): Adjust
7364 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
7365 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
7366 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
7367 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
7368 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
7370 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
7371 Call var_location debug hook even on CALL_INSNs.
7372 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
7373 * rtl.def (ENTRY_VALUE): New.
7374 * dwarf2out.c: Include cfglayout.h.
7375 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7376 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
7377 (struct call_arg_loc_node): New type.
7378 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
7379 tail_call_site_count): New variables.
7380 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
7381 DW_TAG_GNU_call_site_parameter.
7382 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
7383 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
7384 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
7385 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
7386 and DW_AT_GNU_all_source_call_sites.
7387 (mem_loc_descriptor): Handle ENTRY_VALUE.
7388 (add_src_coords_attributes): Don't add enything if
7389 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
7390 (dwarf2out_abstract_function): Save and clear call_arg_location,
7391 call_site_count and tail_call_site_count around dwarf2out_decl call.
7392 (gen_call_site_die): New function.
7393 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
7394 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
7395 (dwarf2out_function_decl): Clear call_arg_locations,
7396 call_arg_loc_last, set call_site_count and tail_call_site_count
7397 to -1 and free block_map.
7398 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
7399 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
7400 followed by any real instructions.
7401 (dwarf2out_begin_function): Set call_site_count and
7402 tail_call_site_count to 0.
7403 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
7404 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
7405 attempt to force a DIE for it and worst case remove the attribute.
7406 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
7407 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
7409 * var-tracking.c: Include tm_p.h.
7410 (vt_stack_adjustments): For calls call note_register_arguments.
7411 (argument_reg_set): New variable.
7412 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
7413 ensure the VALUE is resolved.
7414 (call_arguments): New variable.
7415 (prepare_call_arguments): New function.
7416 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
7417 (struct expand_loc_callback_data): Add ignore_cur_loc field.
7418 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
7419 always use the best expression.
7420 (vt_expand_loc): Add ignore_cur_loc argument.
7421 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
7422 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
7423 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
7425 (vt_add_function_parameter): Use cselib_lookup_from_insn.
7426 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
7427 argument. Don't call cselib_preserve_only_values and
7429 (note_register_arguments): New function.
7430 (vt_initialize): Compute argument_reg_set. Call
7431 vt_add_function_parameters before processing basic blocks instead of
7432 afterwards. For calls call prepare_call_arguments before calling
7433 cselib_process_insn.
7434 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
7435 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
7436 (var-tracking.o): Depend on $(TM_P_H).
7437 * cfglayout.h (insn_scope): New prototype.
7438 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
7439 * cfglayout.c (insn_scope): No longer static.
7440 * insn-notes.def (CALL_ARG_LOCATION): New.
7441 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
7442 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
7443 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
7444 nothing for DECL_EXTERNAL BLOCK_VARS.
7446 2011-03-16 Alan Modra <amodra@gmail.com>
7449 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
7450 create invalid offset address for vsx splat insn.
7451 * config/rs6000/predicates.md (splat_input_operand): New.
7452 * config/rs6000/vsx.md (vsx_splat_*): Use it.
7454 2011-03-15 Xinliang David Li <davidxl@google.com>
7457 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
7458 (normalize_preds): New function.
7459 (is_use_properly_guarded): Normalize def predicates.
7461 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7464 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
7465 in the output template.
7467 2011-03-15 Richard Guenther <rguenther@suse.de>
7470 * tree-pretty-print.c (dump_function_declaration): Properly
7471 dump unprototyped and varargs function types.
7473 2011-03-15 Richard Guenther <rguenther@suse.de>
7475 PR tree-optimization/13954
7476 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
7479 2011-03-15 Richard Guenther <rguenther@suse.de>
7481 PR tree-optimization/48037
7482 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
7483 selects into BIT_FIELD_REFs.
7484 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
7487 2011-03-15 Jakub Jelinek <jakub@redhat.com>
7489 PR tree-optimization/48129
7490 * builtins.c (fold_builtin_snprintf): Convert to type of
7491 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
7492 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
7494 2011-03-15 Richard Guenther <rguenther@suse.de>
7496 PR tree-optimization/41490
7497 * tree-ssa-dce.c (propagate_necessity): Handle returns without
7498 value but with VUSE.
7499 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
7501 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
7502 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
7503 * tree-tailcall.c (find_tail_calls): Ignore returns.
7505 2011-03-15 Richard Guenther <rguenther@suse.de>
7508 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
7509 or variable-indexed array accesses when in gimple form.
7511 2011-03-15 Richard Guenther <rguenther@suse.de>
7513 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
7515 2011-03-15 Alan Modra <amodra@gmail.com>
7518 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
7519 presume symbol_refs without a symbol_ref_decl are suitably
7520 aligned, nor other trees we may see here. Handle anchor symbols.
7521 (legitimate_constant_pool_address_p): Comment. Add mode param.
7522 Check cmodel=medium addresses. Adjust all calls.
7523 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
7524 creating cmodel=medium optimized access to locals.
7525 * config/rs6000/constraints.md (R): Pass QImode to
7526 legitimate_constant_pool_address_p.
7527 * config/rs6000/predicates.md (input_operand): Pass mode to
7528 legitimate_constant_pool_address_p.
7529 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
7532 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7535 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
7536 64-bit constants being loaded into registers other than GPRs such
7537 as loading 0 into a VSX register.
7539 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7541 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
7543 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7546 * builtins.c (fold_builtin_snprintf): New function.
7547 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
7548 (fold_builtin_4): Likewise.
7551 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7552 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
7553 and C - X == X also strip nops from +/-/p+ operand.
7554 When optimizing -X == C, fold C to arg0's type.
7557 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7558 emit it as add_AT_int instead of add_AT_unsigned.
7560 2011-03-14 Tom Tromey <tromey@redhat.com>
7562 * unwind-dw2.c: Include sys/sdt.h if it exists.
7563 (_Unwind_DebugHook): Use STAP_PROBE2.
7564 * config.in, configure: Rebuild.
7565 * configure.ac: Check for sys/sdt.h.
7567 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
7569 * config/i386/i386.md (ROUND_FLOOR): New constant.
7570 (ROUND_CEIL): Ditto.
7571 (ROUND_TRUNC): Ditto.
7572 (ROUND_MXCSR): Ditto.
7573 (ROUND_NO_EXC): Ditto.
7574 (rint<mode>2): Use new defines instead of numerical constants.
7575 (floor<mode>2): Ditto.
7576 (ceil<mode>2): Ditto.
7577 (btrunc<mode>2): Ditto.
7578 * config/i386/i386-builtin-types.def: Define ROUND function type
7580 * config/i386/i386.c (enum ix86_builtins): Add
7581 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7582 (struct builtin_description): Add
7583 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7584 (ix86_expand_sse_round): New static function.
7585 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7587 (ix86_builtin_vectorized_function): Handle
7588 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7590 2011-03-14 Tom Tromey <tromey@redhat.com>
7592 * c-parser.c (c_parser_asm_string_literal): Clear
7593 warn_overlength_strings.
7595 2011-03-14 Tom Tromey <tromey@redhat.com>
7597 * c-parser.c (disable_extension_diagnostics): Save
7598 warn_overlength_strings.
7599 (restore_extension_diagnostics): Restore warn_overlength_strings.
7601 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7603 * BASE-VER: Change to 4.7.0.
7605 2011-03-14 Richard Guenther <rguenther@suse.de>
7608 * tree.c (build_vector_from_val): Adjust assert to requirements
7611 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7614 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7616 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
7618 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7619 terms of target_flags_explicit. Adjust copyright year.
7621 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7622 * config/rs6000/t-freebsd: New file. Add override for
7625 2011-03-13 Chris Demetriou <cgd@google.com>
7627 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7628 (-fno-diagnostics-show-option): this, to reflect current default.
7629 (-Werror=): Update text about -fno-diagnostics-show-option.
7631 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
7634 * config/rs6000/predicates.md (easy_vector_constant_add_self,
7635 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7636 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7637 mode is not V2DImode or V2DFmode.
7638 (vspltis_constant): Do not handle V2DImode and V2DFmode.
7639 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7640 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7642 (movdi_internal64): Likewise.
7644 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
7646 PR tree-optimization/47127
7647 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7649 (set_cloog_options): Same.
7650 (scop_to_clast): Same.
7651 (print_clast_stmt): Do not call cloog_state_malloc and
7653 (print_generated_program): Same.
7655 * graphite-clast-to-gimple.h (cloog_state): Declared.
7656 (scop_to_clast): Adjust declaration.
7657 * graphite.c (cloog_state): Defined here.
7658 (graphite_initialize): Call cloog_state_malloc.
7659 (graphite_finalize): Call cloog_state_free.
7661 2011-03-11 Jason Merrill <jason@redhat.com>
7663 * attribs.c (lookup_attribute_spec): Take const_tree.
7666 2011-03-11 Joseph Myers <joseph@codesourcery.com>
7668 * config/sparc/sparc.c (sparc_option_override): Use
7669 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7671 2011-03-11 Richard Guenther <rguenther@suse.de>
7673 PR tree-optimization/48067
7674 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7675 multiplication result will be only used once on the target
7678 2011-03-11 Richard Guenther <rguenther@suse.de>
7680 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7682 2011-03-11 Richard Guenther <rguenther@suse.de>
7685 * tree.c (find_decls_types_r): Do not walk types only reachable
7686 from IDENTIFIER_NODEs.
7688 2011-03-11 Jakub Jelinek <jakub@redhat.com>
7691 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7692 all vnode->force_output nodes as needed.
7694 2011-03-11 Jason Merrill <jason@redhat.com>
7697 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7698 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7700 2011-03-11 Martin Jambor <mjambor@suse.cz>
7702 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7705 2011-03-11 Jakub Jelinek <jakub@redhat.com>
7707 PR tree-optimization/48063
7708 * ipa-inline.c (cgraph_decide_inlining): Don't try to
7709 inline functions called once if !tree_can_inline_p (node->callers).
7711 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
7713 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7715 * config/score/score3.c: Delete.
7716 * config/score/score3.h: Delete.
7717 * config/score/mul-div.S: Delete.
7718 * config/score/sfp-machine.h: Add new file.
7719 * config/score/constraints.md: Add new file.
7720 * config/score/t-score-softfp: Add new file.
7721 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7722 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7723 (score7_extra_constraint): Delete.
7724 (score7_option_override): Remove unused code.
7725 * config/score/score.c: Remove score3 and score5 define and code.
7726 * config/score/score.h: Remove score3 and score5 define and code.
7727 * config/score/score.md: Remove score3 template and unusual insn.
7728 * config/score/score.opt: Remove score3 and score5 options.
7730 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7732 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7733 when _HPUX_SOURCE is defined.
7734 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7736 2011-03-10 Jason Merrill <jason@redhat.com>
7739 * stor-layout.c (layout_type): Don't set structural equality
7740 on arrays of incomplete type.
7741 * tree.c (type_hash_eq): Handle comparing them properly.
7743 2011-03-10 Jakub Jelinek <jakub@redhat.com>
7746 * config/s390/s390.c (s390_delegitimize_address): Make sure the
7747 result mode matches original rtl mode.
7749 2011-03-10 Nick Clifton <nickc@redhat.com>
7751 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7752 (andsi3, andsi3_flags): Fix timings for three operand alternative.
7754 2011-03-09 Jakub Jelinek <jakub@redhat.com>
7756 PR rtl-optimization/47866
7757 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7758 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7759 if target wasn't scalar.
7760 * function.c (assign_stack_temp_for_type): Assert that neither
7761 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7762 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7764 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7766 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7768 * config/s390/s390-protos.h (s390_label_align): New prototype.
7769 * config/s390/s390.c (s390_label_align): New function.
7770 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7772 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7775 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7776 V2DI/V2DF constants. Only all 0's or all 1's are easy.
7777 (output_vec_const_move): Ditto.
7779 2011-03-08 Anatoly Sokolov <aesok@post.ru>
7781 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7782 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7783 * config/mips/mips.c (mips_preferred_reload_class): Make static.
7784 Change 'rclass' argument and result type to reg_class_t.
7785 (TARGET_PREFERRED_RELOAD_CLASS): Define.
7787 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
7789 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7790 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7791 (TARGET_MEMORY_MOVE_COST): Define.
7792 (avr_register_move_cost, avr_memory_move_cost): New Functions.
7794 2011-03-08 Jakub Jelinek <jakub@redhat.com>
7797 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7800 PR tree-optimization/48022
7801 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7804 2011-03-07 Jakub Jelinek <jakub@redhat.com>
7807 * var-tracking.c (find_use_val): Return NULL for
7808 cui->sets && cui->store_p BLKmode MEMs.
7810 2011-03-07 Anatoly Sokolov <aesok@post.ru>
7812 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7814 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7815 xstormy16_print_operand_address): Remove.
7816 * config/stormy16/stormy16.c (xstormy16_print_operand,
7817 xstormy16_print_operand_address): Make static.
7818 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7820 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
7823 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7824 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7827 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
7830 * cfgloopmanip.c (fix_bb_placements): Return immediately
7831 if FROM is BASE_LOOP's header.
7833 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
7835 * gimplify.c (gimplify_function_tree): Fix building calls
7836 to __builtin_return_address.
7838 2011-03-07 Alan Modra <amodra@gmail.com>
7840 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7841 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7842 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7843 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7845 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7846 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7847 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7848 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7849 * config/rs6000/rs6000.c
7850 (rs6000_elf_end_indicate_exec_stack): Rename to..
7851 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
7852 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
7853 (rs6000_file_start): ..here.
7854 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7855 file scope variables.
7856 (call_ABI_of_interest): New function.
7857 (init_cumulative_args): Set above vars when function return value
7858 is a float, vector, or small struct.
7859 (rs6000_function_arg_advance_1): Likewise for function args.
7860 (rs6000_va_start): Set rs6000_passes_float if variable arg function
7861 references float args.
7863 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
7865 * doc/cfg.texi: Remove "See" before @ref.
7866 * doc/invoke.texi: Likewise.
7868 2011-03-05 Jason Merrill <jason@redhat.com>
7870 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7872 2011-03-05 Anthony Green <green@moxielogic.com>
7874 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7876 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
7878 PR rtl-optimization/47899
7879 * cfgloopmanip.c (fix_bb_placements): Fix first argument
7880 to flow_loop_nested_p when moving the loop upward.
7882 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
7885 * arm.md (movhi_insn_arch4): Accept any immediate constant.
7887 2011-03-05 Jakub Jelinek <jakub@redhat.com>
7889 PR tree-optimization/47967
7890 * ipa-cp.c (build_const_val): Return NULL instead of creating
7891 VIEW_CONVERT_EXPR for mismatching sizes.
7892 (ipcp_create_replace_map): Return NULL if build_const_val failed.
7893 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7894 give up on versioning.
7896 2011-03-05 Alan Modra <amodra@gmail.com>
7899 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7900 full cmodel medium/large lo_sum + high addresses.
7902 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7904 * config/s390/s390.c (s390_decompose_address): Reject non-literal
7905 pool references in UNSPEC_LTREL_OFFSET.
7907 2011-03-04 Jan Hubicka <jh@suse.cz>
7910 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7911 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7912 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7914 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7915 cgraph_add_thunk): Add node pointers.
7916 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7917 associated to right node.
7918 (input_node): Update use of cgraph_same_body_alias
7919 and cgraph_add_thunk.
7921 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
7923 * config/i386/i386.opt (mprefer-avx128): New flag.
7924 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7925 modes when the flag -mprefer-avx128 is on.
7927 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
7929 * dwarf2out.c (compare_loc_operands): Fix address handling.
7931 2011-03-04 Alan Modra <amodra@gmail.com>
7933 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7935 2011-03-04 Richard Guenther <rguenther@suse.de>
7938 * expmed.c (extract_bit_field_1): Prefer vector modes that
7939 vec_extract patterns can handle.
7941 2011-03-04 Richard Guenther <rguenther@suse.de>
7944 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7946 2011-03-04 Richard Henderson <rth@redhat.com>
7948 * explow.c (emit_stack_save): Remove 'after' parameter.
7949 (emit_stack_restore): Likewise.
7950 * expr.h: Update to match.
7951 * builtins.c, calls.c, stmt.c: Likewise.
7952 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7953 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7954 * function.c (expand_function_end): Insert the emit_stack_save
7955 sequence before parm_birth_insn instead of after.
7957 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
7959 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7960 (ssse3_pmaddubsw128): Ditto.
7961 (ssse3_pmaddubsw): Ditto.
7963 2011-03-03 Steve Ellcey <sje@cup.hp.com>
7965 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7967 2011-03-03 Jakub Jelinek <jakub@redhat.com>
7970 * gimplify.c (omp_add_variable): Only call omp_notice_variable
7971 on TYPE_SIZE_UNIT if it is a DECL.
7974 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7975 first operand is not is_gimple_mem_ref_addr, try to fold it.
7976 If the operand still isn't is_gimple_mem_ref_addr, clear
7979 2011-03-03 Richard Guenther <rguenther@suse.de>
7982 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7984 (refs_may_alias_p_1): For release branches return true if
7985 we are confused by our input.
7987 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7989 * config/s390/s390.c (s390_function_value): Rename to ...
7990 (s390_function_and_libcall_value): ... this.
7991 (s390_function_value): New function.
7992 (s390_libcall_value): New function.
7993 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7994 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7995 target macro definitions.
7996 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7998 2011-03-02 Joseph Myers <joseph@codesourcery.com>
8000 * config/i386/freebsd64.h (CC1_SPEC): Define.
8001 * config/i386/linux64.h (CC1_SPEC): Define.
8002 * config/i386/x86-64.h (CC1_SPEC): Don't define.
8004 2011-03-02 Anatoly Sokolov <aesok@post.ru>
8006 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8008 * config/stormy16/stormy16.c: Include reload.h.
8009 (xstormy16_memory_move_cost): New function.
8010 (TARGET_MEMORY_MOVE_COST): Define.
8012 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
8014 PR rtl-optimization/47925
8015 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
8016 with side effects. Remove the more-specific check for volatile asms.
8018 2011-03-02 Alan Modra <amodra@gmail.com>
8021 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
8022 toc relative addresses for valid offsets.
8024 2011-03-01 Richard Guenther <rguenther@suse.de>
8026 PR tree-optimization/47890
8027 * tree-vect-loop.c (get_initial_def_for_induction): Set
8028 related stmt properly.
8030 2011-03-01 Richard Guenther <rguenther@suse.de>
8033 * lto-streamer.c (lto_record_common_node): Also register
8036 2011-03-01 Richard Guenther <rguenther@suse.de>
8039 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8040 Do not stream DECL_ABSTRACT_ORIGIN.
8041 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
8042 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
8043 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8044 Do not stream DECL_ABSTRACT_ORIGIN.
8045 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
8046 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
8048 2011-02-28 Anatoly Sokolov <aesok@post.ru>
8050 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
8051 FUNCTION_VALUE_REGNO_P): Remove.
8052 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
8053 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
8054 Add 'outgoing' argument.
8055 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
8057 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8058 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8060 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
8063 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
8064 (lookup_filename): Likewise.
8065 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
8067 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
8068 Jakub Jelinek <jakub@redhat.com>
8071 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
8072 (assign_stack_local_1): Change last argument type to int.
8073 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
8074 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
8075 don't record padding space into frame_space_list nor use those areas.
8076 (assign_stack_local): Adjust caller.
8077 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
8078 of assign_stack_local, pass 0 as last argument.
8079 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
8082 2011-02-28 Jakub Jelinek <jakub@redhat.com>
8085 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
8086 Use target address_mode and pointer_mode hooks instead of hardcoded
8087 Pmode and ptr_mode. Handle some simple cases of extending if
8088 POINTERS_EXTEND_UNSIGNED < 0.
8089 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
8090 Call convert_debug_memory_address.
8091 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
8092 convert_debug_memory_address.
8095 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
8096 * configure: Regenerated.
8097 * config.in: Regenerated.
8098 * varasm.c (default_function_section): Return NULL
8099 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
8101 2011-02-28 Martin Jambor <mjambor@suse.cz>
8103 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
8104 the description to match the printed values.
8106 2011-02-28 Richard Guenther <rguenther@suse.de>
8108 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
8109 of the copied scope tree.
8111 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8113 * doc/extend.texi (Function Attributes): Avoid deeply (and
8114 wrongly) nested tables.
8116 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8119 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
8120 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
8121 r isn't op0 nor op1.
8123 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
8125 * config/avr/avr.md: Remove magic comment for emacs.
8127 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
8130 * config/avr/avr.c (avr_option_override): Use error on bad options.
8131 (avr_help): New function.
8132 (TARGET_HELP): Define.
8134 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
8137 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
8138 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
8140 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
8142 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
8143 (ARM Options): Ditto.
8144 (i386 and x86-64 Options): Ditto.
8145 (RX Options): Ditto.
8146 (SPARC Options): Ditto.
8148 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
8150 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
8151 FreeBSD 6 and later. Generally use cpu generic.
8153 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
8155 * doc/cpp.texi: Update copyright years.
8157 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
8160 * config/lm32/lm32.md (ashrsi3): Added needed variable.
8162 2011-02-25 Jon Beniston <jon@beniston.com>
8165 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
8166 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
8167 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
8168 (lm32_block_move_inline): Add type cast to remove warning.
8169 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
8170 (gen_int_relational): Move declarations to start of function.
8172 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
8174 PR tree-optimization/45470
8175 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
8176 can throw internally only.
8177 * tree-vect-stmts.c (vectorizable_call): Likewise.
8179 2011-02-24 Anatoly Sokolov <aesok@post.ru>
8181 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
8182 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8183 * config/stormy16/stormy16-protos.h
8184 (xstormy16_preferred_reload_class): Remove.
8185 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
8186 static. Change 'rclass' argument and return type to reg_class_t.
8187 (TARGET_PREFERRED_RELOAD_CLASS,
8188 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8190 2011-02-24 Richard Guenther <rguenther@suse.de>
8192 * lto-streamer-in.c (input_bb): Do not find referenced vars
8193 in debug statements.
8195 2011-02-23 Jason Merrill <jason@redhat.com>
8197 * common.opt (fabi-version): Document v5 and v6.
8199 2011-02-23 Richard Guenther <rguenther@suse.de>
8201 PR tree-optimization/47849
8202 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
8204 2011-02-23 Jie Zhang <jie@codesourcery.com>
8206 * opts-common.c (decode_cmdline_option): Print empty string
8207 argument as "" in decoded->orig_option_with_args_text.
8208 * gcc.c (execute): Print empty string argument as ""
8209 in the verbose output.
8210 (do_spec_1): Keep empty string argument.
8212 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
8214 * config.gcc: Declare score-* and crx-* obsolete.
8216 2011-02-23 Jie Zhang <jie@codesourcery.com>
8218 PR rtl-optimization/47763
8219 * web.c (web_main): Ignore naked clobber when replacing register.
8221 2011-02-22 Anatoly Sokolov <aesok@post.ru>
8223 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8226 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
8229 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
8231 2011-02-22 Mike Stump <mikestump@comcast.net>
8233 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
8235 * configure: Regenerate.
8237 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
8239 PR rtl-optimization/46002
8240 * ira-color.c (update_copy_costs): Change class intersection
8241 test to reg_class_contents[] test of 'hard_regno'.
8243 2011-02-21 Joseph Myers <joseph@codesourcery.com>
8245 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
8247 * config/hpux11.opt (mt): Likewise.
8248 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
8249 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
8250 * config/vax/elf.opt (mno-asm-pic): Likewise.
8251 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
8253 2011-02-21 Mike Stump <mikestump@comcast.net>
8256 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
8257 tree so we can get save the type.
8258 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
8259 for CFString instead of trying to use past the end of the builtins.
8260 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
8261 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
8262 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
8263 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
8264 Rename to darwin_builtin_cfstring.
8265 (darwin_init_cfstring_builtins): Return the built type.
8267 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
8270 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
8271 (_mm256_insert_epi64): Use _mm_insert_epi64.
8273 2011-02-21 Anatoly Sokolov <aesok@post.ru>
8275 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8276 * config/stormy16/stormy16-protos.h
8277 (xstormy16_mode_dependent_address_p): Remove.
8278 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
8279 Make static. Change return type to bool. Change argument type to
8280 const_rtx. Remove dead code.
8281 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8283 2011-02-21 Richard Guenther <rguenther@suse.de>
8286 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8287 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
8288 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
8290 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8291 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
8293 2011-02-20 Richard Guenther <rguenther@suse.de>
8296 * tree.c (free_lang_data_in_decl): Clean builtins from
8297 the TU decl BLOCK_VARS.
8299 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
8303 * haifa-sched.c (fix_tick_ready): Skip tick computation
8306 2011-02-19 Richard Guenther <rguenther@suse.de>
8309 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
8310 Remove lazy BLOCK_VARS streaming.
8311 (lto_input_ts_block_tree_pointers): Likewise.
8312 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
8314 2011-02-19 Joseph Myers <joseph@codesourcery.com>
8316 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
8318 2011-02-19 Joseph Myers <joseph@codesourcery.com>
8320 * config/i386/biarch32.h, config/i386/mach.h,
8321 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
8323 2011-02-19 Jakub Jelinek <jakub@redhat.com>
8326 * config/i386/i386.md (peephole2 for shift and plus): Use
8327 operands[1] original mode in the first insn.
8329 2011-02-18 Mike Stump <mikestump@comcast.net>
8331 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8333 2011-02-18 Jan Hubicka <jh@suse.cz>
8336 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
8337 to zero when the function is not inlinable at all.
8339 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8341 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
8342 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8343 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
8344 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
8345 * config/pa/t-pa64: Likewise.
8346 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8348 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8351 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
8353 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8356 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
8358 2011-02-18 Anatoly Sokolov <aesok@post.ru>
8360 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8361 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
8362 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
8363 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8364 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
8365 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
8366 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
8367 m32r_load_postinc_p, m32r_store_preinc_predec_p,
8368 m32r_legitimate_address_p): New functions.
8369 * config/m32r/constraints.md (constraint "S"): Don't use
8370 STORE_PREINC_PREDEC_P.
8371 (constraint "U"): Don't use LOAD_POSTINC_P.
8373 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
8375 PR rtl-optimization/46178
8376 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
8377 compute ira_hard_regno_cover_class[].
8379 2011-02-18 Richard Guenther <rguenther@suse.de>
8382 * lto-streamer.h (lto_global_var_decls): Declare.
8383 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
8384 statics for global var processing.
8386 2011-02-18 Richard Guenther <rguenther@suse.de>
8388 PR tree-optimization/47737
8389 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
8390 edge dominance check.
8392 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8395 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
8396 avoid invalid rtx sharing.
8398 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
8400 * doc/cpp.texi (Obsolete Features): Add background on the
8401 origin of assertions.
8403 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
8405 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
8407 * config/darwin.c (output_objc_section_asm_op): Added support for
8409 (is_objc_metadata): New.
8410 (darwin_objc2_section): New.
8411 (darwin_objc1_section): New.
8412 (machopic_select_section): Added support for ABI v1 and v2.
8413 (darwin_emit_objc_zeroed): New.
8414 (darwin_output_aligned_bss): Detect objc metadata and treat it
8416 (darwin_asm_output_aligned_decl_common): Same.
8417 (darwin_asm_output_aligned_decl_local): Same.
8418 * config/darwin-sections.def: Updated for ABI v1 and v2.
8419 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
8420 compiling Objective-C code for the NeXT runtime, default to using
8421 ABI version 0 for 32-bit, and version 2 for 64-bit.
8423 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8425 * common.opt (optimize_fast): New Variable.
8426 * opts.c (default_options_optimization): Use opts->x_optimize_fast
8427 instead of local variable ofast.
8429 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
8431 * doc/invoke.texi (fobjc-abi-version): Documented.
8432 (fobjc-nilcheck): Documented.
8433 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
8436 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8439 * common.opt (export-dynamic): New Driver option.
8440 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
8442 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8444 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
8446 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
8447 Jan Hubicka <jh@suse.cz>
8451 * cfgexpand.c (account_used_vars_for_block): Remove.
8452 (estimated_stack_frame_size): Use referenced vars.
8453 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
8454 that were referenced in the original function. Test src_fn
8455 rather than cfun. Drop redundant get_var_ann.
8456 (setup_one_parameter): Drop redundant get_var_ann.
8457 (declare_return_variable): Likewise.
8458 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
8459 (copy_arguments_for_versioning): Drop redundant get_var_ann.
8460 * ipa-inline.c (compute_inline_parameters): Do not compute
8461 disregard_inline_limits here.
8462 (compute_inlinable_for_current, pass_inlinable): New.
8463 (pass_inline_parameters): Require PROP_referenced_vars.
8464 * cgraphunit.c (cgraph_process_new_functions): Don't run
8465 compute_inline_parameters explicitly unless function is in SSA form.
8466 (cgraph_analyze_function): Set .disregard_inline_limits.
8467 * tree-sra.c (convert_callers): Compute inliner parameters
8468 only for functions already in SSA form.
8470 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8472 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
8473 -mlittle-endian-data.
8475 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8477 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
8478 -mno-fpu, not -fpu and -no-fpu.
8479 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
8480 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
8482 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
8485 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
8486 input reload with PLUS RTX.
8488 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8490 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
8491 of InverseVar(MDMX).
8493 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8495 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
8498 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8500 * config/mn10300/mn10300.opt (mno-crt0): New.
8502 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8504 * config/m68k/uclinux.opt (static-libc): New Driver option.
8506 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8508 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
8510 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8512 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
8513 %{muser-extend-enabled}.
8515 2011-02-16 Richard Guenther <rguenther@suse.de>
8517 PR tree-optimization/47738
8518 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
8519 the TODO from tree_predictive_commoning.
8521 2011-02-15 Jeff Law <law@redhat.com>
8524 2011-01-25 Jeff Law <law@redhat.com>
8526 PR rtl-optimization/37273
8527 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8528 handle them like argument loads from stack slots. Do not double
8529 count memory for memory constants and argument loads from stack slots.
8531 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
8534 * combine.c (cant_combine_insn_p): Revert the last change.
8536 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
8539 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
8540 mode for vector constants. Remove code that checks for TImode.
8542 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8546 * cgraph.h (compute_inline_parameters): Return void.
8547 * ipa-inline.c (compute_inline_parameters): Adjust.
8549 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8553 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8555 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8556 * ipa-inline.c (compute_inline_parameters): Adjust.
8558 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8562 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8563 Adjust all users. Pass FN to...
8564 * tree-flow-inline.h (first_referenced_var): ... this. Add
8566 * ipa-struct-reorg.c: Adjust.
8567 * tree-dfa.c: Adjust.
8568 * tree-into-ssa.c: Adjust.
8569 * tree-sra.c: Adjust.
8570 * tree-ssa-alias.c: Adjust.
8571 * tree-ssa-live.c: Adjust.
8572 * tree-ssa.c: Adjust.
8573 * tree-ssanames.c: Adjust.
8574 * tree-tailcall.c: Adjust.
8576 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8580 * tree-flow.h (referenced_var_lookup): Add fn parameter.
8582 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8583 * tree-flow-inline.h: Adjust.
8584 * gimple-pretty-print.c: Adjust.
8585 * tree-into-ssa.c: Adjust.
8586 * tree-ssa.c: Adjust.
8587 * cfgexpand.c: Adjust.
8589 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8591 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8592 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8593 (EXTRA_CONSTRAINT): Delete.
8594 * config/iq2000/constraints.md: New file.
8595 * config/iq2000/iq2000.md: Include it.
8596 (define_insn ""): Delete.
8597 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8598 unsupported constraint letters from patterns.
8599 (call_value, call_value_internal1): Likewise.
8600 (call_value_multiple_internal1): Likewise.
8602 2011-02-15 Nick Clifton <nickc@redhat.com>
8604 * config/mn10300/mn10300.c: Include tm-constrs.h.
8605 (struct liw_data): New data structure describing an LIW candidate
8607 (extract_bundle): Use struct liw_data. Allow small integer
8608 operands for some instructions.
8609 (check_liw_constraints): Use struct liw_data. Remove swapped
8610 parameter. Add comments describing the checks. Fix bug when
8611 assigning the source of liw1 to the source of liw2.
8612 (liw_candidate): Delete. Code moved into extract_bundle.
8613 (mn10300_bundle_liw): Use struct liw_data. Check constraints
8615 * config/mn10300/predicates.md (liw_operand): New predicate.
8616 Allows registers and small integer constants.
8617 * config/mn10300/constraints.md (O): New constraint. Accetps
8618 integers in the range -8 to +7 inclusive.
8619 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8620 for moving a small integer into a register. Give this alternative
8622 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8623 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8624 using the J,K,L and M constraints,
8625 (liw): Remove SI mode on second operands to allow for HI and QI
8627 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
8630 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
8633 * combine.c (cant_combine_insn_p): Check zero/sign extended
8636 2011-02-15 Richard Guenther <rguenther@suse.de>
8638 PR tree-optimization/47743
8639 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8640 for a non-type-compatible VN lookup bail out.
8642 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8644 * config/fr30/constraints.md: New file.
8645 * config/fr30/fr30.md: Include it.
8646 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8647 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8648 (EXTRA_CONSTRAINT): Delete.
8650 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8652 * config/frv/constraints.md: New file.
8653 * config/frv/predicates.md: Include it.
8654 * config/frv/frv.c (reg_class_from_letter): Delete.
8655 (frv_option_override): Don't initialize it.
8656 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8657 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8658 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8659 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8660 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8661 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8662 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8663 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8664 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8665 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8666 (REG_CLASS_FROM_CONSTRAINT): Delete.
8668 2011-02-15 Jakub Jelinek <jakub@redhat.com>
8671 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8672 if frame size is 0 in a leaf function.
8674 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8677 * config/alpha/host-osf.c: New file.
8678 * config/alpha/x-osf: New file.
8679 * config.host (alpha*-dec-osf*): Use it.
8681 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8683 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8684 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8685 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8686 (rx_mode_dependent_address_p): ...this. Make static. Change argument
8688 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8690 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8692 * config/stormy16/constraints.md: New file.
8693 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8694 Use satisfies_constraint_Q and satisfies_constraint_R.
8695 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8697 (xstormy16_legitiamte_address_p): Declare.
8698 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8699 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8700 (EXTRA_CONSTRAINT): Delete.
8701 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8703 (xstormy16_extra_constraint_p): Delete.
8705 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
8707 PR tree-optimization/46494
8708 * loop-unroll.c (split_edge_and_insert): Adjust comment.
8709 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8710 (pass_rtl_loop_done): Add TODO_verify_flow.
8711 * fwprop.c (pass_rtl_fwprop): Likewise.
8712 * modulo-sched.c (pass_sms): Likewise.
8713 * tree-ssa-dom.c (pass_dominator): Likewise.
8714 * tree-ssa-loop-ch.c (pass_ch): Likewise.
8715 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8716 (pass_tree_loop_done): Likewise.
8717 * tree-ssa-pre.c (execute_pre): Likewise.
8718 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8719 * tree-ssa-sink.c (pass_sink_code): Likewise.
8720 * tree-vrp.c (pass_vrp): Likewise.
8722 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8724 * config/v850/constraints.md: New file.
8725 * config/v850/v850.md: Include it.
8726 * config/v850/predicates.md (reg_or_0_operand): Use
8727 satisfies_constraint_G.
8728 (special_symbolref_operand): Use satisfies_constraint_K.
8729 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8730 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8731 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8732 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8733 (EXTRA_CONSTRAINT): Delete.
8734 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8735 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8736 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8738 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8741 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8744 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8746 * config/mcore/constraints.md: New file.
8747 * config/mcore/mcore.md: Include it.
8748 * config/mcore/mcore.c (reg_class_from_letter): Delete.
8749 * config/mcore/mcore.h (reg_class_from_letter): Delete.
8750 (REG_CLASS_FROM_LETTER): Delete.
8751 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8752 insn_const_int_ok_for_constraint.
8753 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8754 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8755 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8756 (EXTRA_CONSTRAINT): Delete.
8758 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8761 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8762 (IS_SIGHANDLER): Define.
8763 (sparc64_is_sighandler): New function, split off from
8764 sparc64_fallback_frame_state.
8765 (sparc_is_sighandler): New function, split off from
8766 sparc_fallback_frame_state.
8767 (sparc64_fallback_frame_state): Merge with ...
8768 (sparc_fallback_frame_state): ... this into ...
8769 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8770 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
8771 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
8772 stack instead of hardcoded offsets.
8774 2011-02-14 Andriy Gapon <avg@freebsd.org>
8777 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8779 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8781 * configure: Regenerate.
8783 2011-02-12 Joseph Myers <joseph@codesourcery.com>
8786 * gcc.c (asm_options): Correct spec matching --target-help.
8788 2011-02-12 Martin Jambor <mjambor@suse.cz>
8790 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8791 to gimple call error.
8793 2011-02-12 Mike Stump <mikestump@comcast.net>
8795 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8796 comments in backslash regions.
8798 2011-02-12 Mike Stump <mikestump@comcast.net>
8799 Jakub Jelinek <jakub@redhat.com>
8800 Iain Sandoe <iains@gcc.gnu.org>
8803 * dwarf2out.c (output_cfa_loc): When required, apply the
8804 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8805 (output_loc_sequence): Likewise.
8806 (output_loc_operands_raw): Likewise.
8807 (output_loc_sequence_raw): Likewise.
8808 (output_cfa_loc): Likewise.
8809 (output_loc_list): Suppress register number adjustment when
8810 calling output_loc_sequence()
8811 (output_die): Likewise.
8813 2011-02-12 Anatoly Sokolov <aesok@post.ru>
8815 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8817 * config/xtensa/xtensa.c (xtensa_register_move_cost,
8818 xtensa_memory_move_cost): New functions.
8819 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8821 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
8824 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8825 in the current directory.
8826 * configure: Rebuilt.
8828 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8830 * config/darwin.c (darwin_override_options): Add a hunk missed
8831 from the commit of r168571. Trim comment line lengths and
8832 correct indents of the preceding block.
8834 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8836 * gcc.c (driver_handle_option): Concatenate the argument to -F with
8839 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8841 * common.opt (nostartfiles): New Driver option.
8843 2011-02-11 Xinliang David Li <davidxl@google.com>
8845 PR tree-optimization/47707
8846 * tree-chrec.c (convert_affine_scev): Keep type precision.
8848 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
8850 PR tree-optimization/47420
8851 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8853 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
8855 PR rtl-optimization/47614
8856 * rtl.h (check_for_inc_dec): Declare.
8857 * dse.c (check_for_inc_dec): Externalize...
8858 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8859 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8861 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8864 * gcc.c (main): Do not compile inputs if there were errors in
8866 * opts-common.c (read_cmdline_option): Check for wrong language
8867 after other error checks.
8869 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
8871 * cgraph.c: Fix comment typos.
8872 * cgraph.h: Likewise.
8873 * cgraphunit.c: Likewise.
8874 * ipa-cp.c: Likewise.
8875 * ipa-inline.c: Likewise.
8876 * ipa-prop.c: Likewise.
8877 * ipa-pure-const.c: Likewise.
8878 * ipa-ref.c: Likewise.
8879 * ipa-reference.c: Likewise.
8881 2011-02-11 Jakub Jelinek <jakub@redhat.com>
8884 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8886 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8889 * doc/sourcebuild.texi (Require Support): Document
8890 dg-require-ascii-locale.
8892 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
8894 * doc/lto.texi (Write summary): Fix missing parentheses.
8896 2011-02-10 DJ Delorie <dj@redhat.com>
8898 * config/m32c/m32c.c (m32c_option_override): Disable
8899 -fcombine-stack-adjustments until flag value tracking and compare
8900 optimization can be rewritten.
8902 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
8904 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8906 (PROCESSOR_DEFAULT64): Likewise.
8908 2011-02-10 Richard Henderson <rth@redhat.com>
8910 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8911 change from 2011-02-03.
8912 * config/rx/rx.c (flags_from_code): Likewise.
8913 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8914 is valid, n/pz otherwise.
8915 (rx_select_cc_mode): Return CCmode if Y is not zero.
8917 2011-02-10 Richard Guenther <rguenther@suse.de>
8919 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8921 2011-02-10 Richard Guenther <rguenther@suse.de>
8923 PR tree-optimization/47677
8924 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8926 2011-02-10 Jakub Jelinek <jakub@redhat.com>
8929 * combine.c (make_compound_operation): Only change shifts into
8930 multiplication for SCALAR_INT_MODE_P.
8932 2011-02-10 Jie Zhang <jie@codesourcery.com>
8936 2011-02-05 Jie Zhang <jie@codesourcery.com>
8938 * web.c (entry_register): Don't clobber the number of the
8939 first uninitialized reference in used[].
8941 2011-02-09 Richard Guenther <rguenther@suse.de>
8943 PR tree-optimization/47664
8944 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8947 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
8951 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8953 (PROCESSOR_DEFAULT64): Same.
8954 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8956 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8958 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8960 2011-02-09 Martin Jambor <mjambor@suse.cz>
8963 * tree-sra.c (struct access): New flags grp_scalar_read and
8964 grp_scalar_write. Changed description of assignment read and write
8966 (dump_access): Dump new flags, reorder all of them.
8967 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8968 to detect multiple scalar reads.
8969 (analyze_access_subtree): Use the new scalar read write flags instead
8970 of the old flags. Adjusted comments.
8972 2011-02-08 DJ Delorie <dj@redhat.com>
8975 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8978 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8980 * config/m68k/uclinux.opt: New.
8981 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8983 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8985 * config/cris/elf.opt (sim): New Driver option.
8987 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8989 * config/xtensa/elf.opt: New.
8990 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8992 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8994 * config/vax/elf.opt: New.
8995 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8997 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8999 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
9001 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9003 * config/gnu-user.opt: New.
9004 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
9005 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
9006 *-*-uclinux*): Use gnu-user.opt.
9008 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
9010 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
9011 * config/i386/gnu.h (CPP_SPEC): Likewise.
9013 2011-02-08 Ian Lance Taylor <iant@google.com>
9015 * common.opt (fcx-limited-range): Add SetByCombined flag.
9016 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
9017 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
9018 (fassociative-math, freciprocal-math): Likewise.
9019 (funsafe-math-optimizations): Likewise.
9020 * opth-gen.awk: Handle SetByCombined.
9021 * optc-gen.awk: Likewise.
9022 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
9023 (set_unsafe_math_optimizations_flags): Likewise.
9024 * doc/options.texi (Option properties): Document SetByCombined.
9026 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9028 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
9029 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
9030 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
9031 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
9032 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
9034 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
9036 PR tree-optimization/46834
9037 PR tree-optimization/46994
9038 PR tree-optimization/46995
9039 * graphite-sese-to-poly.c (used_outside_reduction): New.
9040 (detect_commutative_reduction): Call used_outside_reduction.
9041 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
9042 translate_scalar_reduction_to_array only when at least one
9043 loop-phi/close-phi tuple has been detected.
9045 2011-02-08 Richard Guenther <rguenther@suse.de>
9048 * tree-vect-generic.c (expand_vector_operations_1): Update
9050 (expand_vector_operations): ... not here. Cleanup EH info
9051 and the CFG if required.
9053 2011-02-08 Richard Guenther <rguenther@suse.de>
9055 PR tree-optimization/47641
9056 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
9057 require type compatibility.
9059 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9061 * gimple-low.c (lower_function_body): Don't remove the location of
9062 the return statement here.
9063 (lower_gimple_return): Do it here instead but only if the return
9064 statement is actually used twice.
9066 2011-02-08 Richard Guenther <rguenther@suse.de>
9068 PR tree-optimization/47632
9069 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
9070 unused up_to_stmt parameter, return whether cfg-cleanup is
9071 necessary, remove EH info properly.
9072 (forward_propagate_into_gimple_cond): Adjust caller.
9073 (forward_propagate_into_cond): Likewise.
9074 (forward_propagate_comparison): Likewise.
9075 (tree_ssa_forward_propagate_single_use_vars): Make
9076 forward_propagate_comparison case similar to the two others.
9078 2011-02-08 Nick Clifton <nickc@redhat.com>
9080 * config/mn10300/mn10300.opt (mliw): New command line option.
9081 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
9082 (liw_bundling): New automaton.
9083 (liw): New attribute.
9084 (liw_op): New attribute.
9085 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
9086 (movsi_internal): Add LIW attributes.
9090 (addsi3): Separate register and immediate alternatives.
9095 (lshrsi3): Likewise.
9096 (ashrsi3): Likewise.
9098 * config/mn10300/mn10300.c (liw_op_names): New
9099 (mn10300_print_operand): Handle 'W' operand descriptor.
9100 (extract_bundle): New function.
9101 (check_liw_constraints): New function.
9102 (liw_candidate): New function.
9103 (mn10300_bundle_liw): New function.
9104 (mn10300_reorg): New function.
9105 (TARGET_MACHINE_DEPENDENT_REORG): Define.
9106 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
9107 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
9108 __LIW__ or __NO_LIW__.
9109 * doc/invoke.texi: Describe the -mliw command line option.
9111 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9113 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
9114 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9115 pthread_mutex_unlock): Remove.
9116 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
9117 * config/pa/t-pa64: Likewise.
9118 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
9119 shared libc if not linking against libpthread.
9120 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9122 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
9125 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
9126 on 10.6 and later to ensure that we always use the unwinder from
9127 the system. Only add -no_compact_unwind when tarteting darwin
9130 2011-02-07 Steve Ellcey <sje@cup.hp.com>
9133 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
9134 (vec_interleave_lowv2sf): Ditto.
9135 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
9136 (vec_extract_oddv2sf): Ditto.
9138 2011-02-07 Mike Stump <mikestump@comcast.net>
9141 Add __ieee_divdc3 entry point.
9142 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
9144 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
9145 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
9146 * config/darwin.c (darwin_rename_builtins): Add.
9147 * config/darwin-protos.h (darwin_rename_builtins): Add.
9149 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
9152 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
9155 2011-02-07 Mike Stump <mikestump@comcast.net>
9157 * config/darwin.opt (mmacosx-version-min): Update default OS version.
9159 2011-02-07 Denis Chertykov <chertykov@gmail.com>
9162 * config/avr/libgcc.S (exit): Move .endfunc
9164 2011-02-07 Richard Guenther <rguenther@suse.de>
9166 PR tree-optimization/47615
9167 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
9168 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
9169 (run_scc_vn): Initialize it.
9170 (visit_reference_op_load): Use it.
9171 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
9173 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9175 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
9176 DImode trapping arithmetic libfuncs.
9178 2011-02-07 Richard Guenther <rguenther@suse.de>
9180 PR tree-optimization/47621
9181 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
9183 (execute_update_addresses_taken): ... here. Make it more
9184 conservative in what we accept.
9186 2011-02-06 Joseph Myers <joseph@codesourcery.com>
9188 * config/sparc/freebsd.h (ASM_SPEC): Define.
9189 * config/sparc/vxworks.h (ASM_SPEC): Define.
9191 2011-02-06 Joseph Myers <joseph@codesourcery.com>
9193 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9195 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
9197 * doc/invoke.texi: Remove reference to compiler internals from
9200 * reg-notes.def: Remove REG_VALUE_PROFILE.
9201 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
9203 2011-02-05 Jakub Jelinek <jakub@redhat.com>
9206 * varasm.c (default_section_type_flags): If decl is NULL,
9207 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
9209 2011-02-05 Jie Zhang <jie@codesourcery.com>
9212 * web.c (entry_register): Don't clobber the number of the
9213 first uninitialized reference in used[].
9215 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
9217 PR tree-optimization/46194
9218 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
9219 (build_classic_dist_vector_1): Do not represent classic distance
9220 vectors when the access functions are variating in different loops.
9222 2011-02-04 Joseph Myers <joseph@codesourcery.com>
9224 * config/mips/iris6.opt: New.
9225 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
9227 2011-02-04 Richard Henderson <rth@redhat.com>
9228 Steve Ellcey <sje@cup.hp.com>
9231 * config/ia64/predicates.md (mux1_brcst_element): New.
9232 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
9233 * config/ia64/ia64.c (ia64_unpack_assemble): New.
9234 (ia64_unpack_sign): New.
9235 (ia64_expand_unpack): Rewrite using new routines.
9236 (ia64_expand_widen_sum): Ditto.
9237 (ia64_expand_dot_prod_v8qi): Ditto.
9238 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
9239 routines, add endian check.
9240 (pmpy2_even): Rename from pmpy2_r, add endian check.
9241 (pmpy2_odd): Rename from pmpy2_l, add endian check.
9242 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
9243 (vec_widen_smult_hi_v4hi): Ditto.
9244 (vec_widen_umult_lo_v4hi): Ditto.
9245 (vec_widen_umult_hi_v4hi): Ditto.
9246 (mulv2si3): Change endian checks.
9247 (sdot_prodv4hi): Rewrite with new calls.
9248 (udot_prodv4hi): New.
9249 (vec_pack_ssat_v4hi): Add endian check.
9250 (vec_pack_usat_v4hi): Ditto.
9251 (vec_pack_ssat_v2si): Ditto.
9252 (max1_even): Rename from max1_r, add endian check.
9253 (max1_odd): Rename from max1_l, add endian check.
9254 (*mux1_rev): Format change.
9256 (*mux1_shuf): Ditto.
9258 (*mux1_brcst_v8qi): Use new predicate.
9259 (vec_extract_evenv8qi): Remove endian check.
9260 (vec_extract_oddv8qi): Ditto.
9261 (vec_interleave_lowv4hi): Format change.
9262 (vec_interleave_highv4hi): Ditto.
9263 (mix2_even): Rename from mix2_r, add endian check.
9264 (mix2_odd): Rename from mux2_l, add endian check.
9265 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
9266 (vec_extract_evenodd_helper): Format change.
9267 (vec_extract_evenv4hi): Remove endian check.
9268 (vec_extract_oddv4hi): Remove endian check.
9269 (vec_interleave_lowv2si): Format change.
9270 (vec_interleave_highv2si): Format change.
9271 (vec_initv2si): Remove endian check.
9272 (vecinit_v2si): Add endian check.
9273 (reduc_splus_v2sf): Add endian check.
9274 (reduc_smax_v2sf): Ditto.
9275 (reduc_smin_v2sf): Ditto.
9276 (vec_initv2sf): Remove endian check.
9277 (fpack): Add endian check.
9278 (fswap): Add endian check.
9279 (vec_interleave_highv2sf): Add endian check.
9280 (vec_interleave_lowv2sf): Add endian check.
9281 (fmix_lr): Add endian check.
9282 (vec_setv2sf): Format change.
9283 (*vec_extractv2sf_0_be): Use shift to extract operand.
9284 (*vec_extractv2sf_1_be): New.
9285 (vec_pack_trunc_v4hi): Add endian check.
9286 (vec_pack_trunc_v2si): Format change.
9288 2011-02-04 Jakub Jelinek <jakub@redhat.com>
9291 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
9292 do bb, locus and block comparison and disallow loads if it is not set.
9293 (stmt_is_replaceable_p): New function.
9294 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
9296 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
9297 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
9299 * tree-flow.h (stmt_is_replaceable_p): New prototype.
9301 2011-02-04 Joseph Myers <joseph@codesourcery.com>
9303 * config/rs6000/xilinx.opt: New.
9304 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
9306 2011-02-04 Joseph Myers <joseph@codesourcery.com>
9308 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
9310 2011-02-03 Anatoly Sokolov <aesok@post.ru>
9312 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
9313 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9314 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
9315 secondary_reload_info, xtensa_secondary_reload): Remove.
9316 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
9317 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9318 (xtensa_preferred_reload_class): Make static. Change return and
9319 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
9320 Use CONST_DOUBLE_P predicate.
9321 (xtensa_preferred_output_reload_class): New function.
9322 (xtensa_secondary_reload): Make static.
9324 2011-02-03 Joseph Myers <joseph@codesourcery.com>
9326 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
9327 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
9328 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
9330 2011-02-03 Jakub Jelinek <jakub@redhat.com>
9333 * output.h (SECTION_RELRO): Define.
9334 (SECTION_MACH_DEP): Adjust.
9335 (get_variable_section): New prototype.
9336 * varpool.c (varpool_finalize_named_section_flags): New function.
9337 (varpool_assemble_pending_decls): Call it.
9338 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
9339 * cgraphunit.c (cgraph_output_in_order): Call
9340 varpool_finalize_named_section_flags.
9341 * varasm.c (get_section): Allow section flags conflicts between
9342 relro and read-only sections if the section hasn't been declared yet.
9343 Set SECTION_OVERRIDE after diagnosing section type conflict.
9344 (get_variable_section): No longer static.
9345 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
9346 readonly sections that need relocations.
9347 (decl_readonly_section_1): New function.
9348 (decl_readonly_section): Use it.
9351 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
9352 Steve Ellcey <sje@cup.hp.com>
9355 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
9356 if section attribute used.
9358 2011-02-03 Jakub Jelinek <jakub@redhat.com>
9360 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
9361 * config/darwin.c (SECTION_NO_ANCHOR): Define.
9362 (darwin_init_sections): Remove assertion.
9364 2011-02-03 Nick Clifton <nickc@redhat.com>
9366 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
9368 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
9369 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
9370 instead of "n" and "pz".
9371 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
9374 2011-02-03 Jakub Jelinek <jakub@redhat.com>
9377 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
9378 fma, expand FMA_EXPR as fma{,f,l} call.
9381 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
9382 copy them into a unsigned char variable and pass address of it to
9383 lto_output_data_stream.
9386 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
9387 around backend_init_target and lang_dependent_init_target calls.
9388 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
9389 (verify_cgraph_node): Don't call set_cfun here. Use
9390 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
9391 Set error_found for incorrectly represented calls to thunks.
9393 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
9396 PR rtl-optimization/43494
9397 * rtl.h (for_each_inc_dec_fn): New type.
9398 (for_each_inc_dec): Declare.
9399 * rtlanal.c (struct for_each_inc_dec_ops): New type.
9400 (for_each_inc_dec_find_inc_dec): New fn.
9401 (for_each_inc_dec_find_mem): New fn.
9402 (for_each_inc_dec): New fn.
9403 * dse.c (struct insn_size): Remove.
9404 (replace_inc_dec, replace_inc_dec_mem): Remove.
9405 (emit_inc_dec_insn_before): New fn.
9406 (check_for_inc_dec): Use it, along with for_each_inc_dec.
9407 (canon_address): Pass mem modes to cselib_lookup.
9408 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
9409 (cselib_lookup_from_insn): Likewise.
9410 (cselib_subst_to_values): Likewise.
9411 * cselib.c (find_slot_memmode): New var.
9412 (cselib_find_slot): New fn. Use it instead of
9413 htab_find_slot_with_hash everywhere.
9414 (entry_and_rtx_equal_p): Use find_slot_memmode.
9415 (autoinc_split): New fn.
9416 (rtx_equal_for_cselib_p): Rename and implement in terms of...
9417 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
9418 Deal with autoinc. Special-case recursion into MEMs.
9419 (cselib_hash_rtx): Likewise.
9420 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
9421 address and MEM modes.
9422 (cselib_subst_to_values): Add memmode, pass it on.
9424 (cselib_lookup): Add memmode argument, pass it on.
9425 (cselib_lookup_from_insn): Add memmode.
9426 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
9427 (struct cselib_record_autoinc_data): New.
9428 (cselib_record_autoinc_cb): New fn.
9429 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
9430 mode to cselib_lookup. Reset autoinced REGs here instead of...
9431 (cselib_process_insn): ... here.
9432 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
9434 (add_uses): Likewise, also to cselib_subst_to_values.
9435 (add_stores): Likewise.
9436 * sched-deps.c (add_insn_mem_dependence): Pass mode to
9437 cselib_subst_to_values.
9438 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
9439 * gcse.c (do_local_cprop): Adjusted.
9440 * postreload.c (reload_cse_simplify_set): Adjusted.
9441 (reload_cse_simplify_operands): Adjusted.
9442 * sel-sched-dump (debug_mem_addr_value): Pass mode.
9444 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
9446 PR tree-optimization/45122
9447 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
9448 unsafe assumptions when there's more than one loop exit.
9450 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9453 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
9454 Document using vector double with the load/store builtins, and
9455 that the load/store builtins always use Altivec instructions.
9457 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
9458 to use altivec memory instructions, even on VSX.
9459 (vector_altivec_store_<mode>): Ditto.
9461 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
9464 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9465 V2DF, V2DI support to load/store overloaded builtins.
9467 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
9468 altivec load/store builtins for V2DF/V2DI types.
9470 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9471 set avoid indexed addresses on power6 if -maltivec.
9472 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
9473 vector_altivec_load/vector_altivec_store builtins.
9474 (altivec_expand_st_builtin): Ditto.
9475 (altivec_expand_builtin): Add VSX memory builtins.
9476 (rs6000_init_builtins): Add V2DI types to internal types.
9477 (altivec_init_builtins): Add support for V2DF/V2DI altivec
9478 load/store builtins.
9479 (rs6000_address_for_altivec): Insure memory address is appropriate
9482 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
9483 vec_vsx_ld and vec_vsx_st.
9484 (vsx_store_<mode>): Ditto.
9486 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
9487 variables to hold long long types for VSX vector memory builtins.
9488 (RS6000_BTI_unsigned_long_long): Ditto.
9489 (long_long_integer_type_internal_node): Ditti.
9490 (long_long_unsigned_type_internal_node): Ditti.
9492 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
9493 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
9494 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
9496 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
9498 (vec_vsx_st): Ditto.
9500 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9502 * config/pa/pa-hpux10.opt: New.
9503 * config/hpux11.opt (pthread): New Driver option.
9504 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
9505 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
9507 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9509 * config/ia64/vms.opt: New.
9510 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
9512 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9515 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
9516 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
9517 generator functions.
9518 (vsx_floatuns<VSi><mode>2): Ditto.
9519 (vsx_fix_trunc<mode><VSi>2): Ditto.
9520 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
9522 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9524 * config/i386/djgpp.opt (posix): New Driver option.
9526 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
9528 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
9529 Move to the unsupported targets list.
9531 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
9533 PR rtl-optimization/47525
9534 * df-scan.c: Update copyright years.
9535 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
9536 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
9538 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9540 * config/i386/sysv4.h (TARGET_VERSION): Remove.
9541 (SUBTARGET_RETURN_IN_MEMORY): Remove.
9542 (ASM_OUTPUT_ASCII): Remove.
9543 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
9545 2011-02-02 Jeff Law <law@redhat.com>
9548 * reload.c (find_reloads_address): Handle reg+d address where both
9549 components are invalid by reloading the entire address.
9551 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
9552 Richard Guenther <rguenther@suse.de>
9554 PR tree-optimization/40979
9556 * passes.c (init_optimization_passes): After LIM call copy_prop
9557 and DCE to clean up.
9558 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9560 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
9562 PR tree-optimization/47576
9563 PR tree-optimization/47555
9564 * doc/invoke.texi (scev-max-expr-complexity): Documented.
9565 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9566 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9567 * tree-scalar-evolution.c (follow_ssa_edge): Use
9568 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9570 2011-02-02 Richard Guenther <rguenther@suse.de>
9572 PR tree-optimization/47566
9573 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9575 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
9579 * tree-inline.c (declare_return_variable): Remove unused caller
9584 * tree-flow-inline.h (clear_is_used, is_used_p): New.
9585 * cfgexpand.c (account_used_vars_for_block): Use them.
9586 * tree-nrv.c (tree_nrv): Likewise.
9587 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9588 (dump_scope_block): Likewise.
9589 (remove_unused_locals): Likewise.
9593 * tree-inline.c (declare_return_variable): Add result decl to
9594 local decls only once.
9595 * gimple-low.c (record_vars_into): Mark newly-created variables
9598 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
9604 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9606 (no_real_insns_p, schedule_block, set_priorities): Drop special
9607 treatment of boundary debug insns.
9608 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9609 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9610 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9611 (BOUNDARY_DEBUG_INSN_P): Likewise.
9612 (SCHEDULE_DEBUG_INSN_P): Likewise.
9613 * sched-rgn.c (init_ready_list): Drop special treatment of
9614 boundary debug insns.
9615 * final.c (rest_of_clean_state): Clear notes' BB.
9617 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9619 * config/openbsd.opt (assert=): New Driver option.
9621 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9623 * config/i386/nto.opt: New.
9624 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9626 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9628 * config/i386/netware.opt: New.
9629 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9631 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9633 * config/interix.opt (posix): New Driver option.
9635 2011-02-01 DJ Delorie <dj@redhat.com>
9637 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9639 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9642 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
9644 PR tree-optimization/47561
9645 * toplev.c (process_options): Print the Graphite flags. Add
9646 flag_loop_flatten to the list of options requiring Graphite.
9648 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9650 * config/i386/cygming.opt (posix): New Driver option.
9652 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9654 * config/arm/vxworks.opt: New.
9655 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9657 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9659 * config/alpha/elf.opt: New.
9660 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9661 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9663 2011-02-01 Richard Guenther <rguenther@suse.de>
9665 PR tree-optimization/47559
9666 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9667 store-motion on references that can throw.
9669 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
9671 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9672 * tree-pass.h (TDF_CSELIB): New macro.
9673 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9674 cselib_lookup): Check for it rather than for TDF_DETAILS.
9676 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
9679 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9682 * opts.c (finish_options): Don't add x_aux_base_name if it is
9685 2011-02-01 Richard Guenther <rguenther@suse.de>
9687 PR tree-optimization/47555
9689 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
9691 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9693 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
9696 * config/lm32/t-lm32: Add multilib for all CPU options.
9698 2011-02-01 Richard Guenther <rguenther@suse.de>
9700 PR tree-optimization/47541
9701 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9702 sure to have a field at offset zero.
9704 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9706 * config/arc/arc.opt (EB, EL): New Driver options.
9708 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9710 * config/alpha/osf5.opt: New.
9711 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9713 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9715 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9717 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
9719 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9721 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9722 is an alias of -floop-interchange and that it requires the
9723 Graphite infrastructure.
9724 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9725 flag_loop_interchange based on the value of flag_tree_loop_linear.
9727 2011-01-31 Jakub Jelinek <jakub@redhat.com>
9728 Richard Guenther <rguenther@suse.de>
9730 PR tree-optimization/47538
9731 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9732 type instead of r1type, except for comparisons. For right
9733 shifts and comparisons punt if there are mismatches in
9734 sizetype vs. non-sizetype types.
9736 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9738 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9741 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9743 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9745 * configure: Regenerate.
9747 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9749 * configure.ac (gcc_cv_ld_static_option): Define.
9750 (gcc_cv_ld_dynamic_option): Define.
9751 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9753 (HAVE_LD_STATIC_DYNAMIC): Update message.
9754 (LD_STATIC_OPTION): Define.
9755 (LD_DYNAMIC_OPTION): Define.
9756 * configure: Regenerate.
9757 * config.in: Regenerate.
9758 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9759 HAVE_LD_STATIC_DYNAMIC]: Use them.
9761 2011-01-31 Nick Clifton <nickc@redhat.com>
9763 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9764 registers inside interrupt handlers if the handler is not a leaf
9767 2011-01-31 Nick Clifton <nickc@redhat.com>
9769 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9770 reg_renumber returning an INVALID_REGNUM.
9772 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9775 * doc/install.texi: Document host options discarded when cross
9776 configuring target libraries.
9778 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9781 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9784 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9786 (no_real_insns_p, schedule_block, set_priorities): Drop special
9787 treatment of boundary debug insns.
9788 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9789 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9790 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9791 (BOUNDARY_DEBUG_INSN_P): Likewise.
9792 (SCHEDULE_DEBUG_INSN_P): Likewise.
9793 * sched-rgn.c (init_ready_list): Drop special treatment of
9794 boundary debug insns.
9795 * final.c (rest_of_clean-state): Clear notes' BB.
9797 2011-01-31 Alan Modra <amodra@gmail.com>
9799 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9800 toc relative expressions as we do in print_operand_address.
9802 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
9804 * doc/extend.texi: Follow spelling conventions.
9805 * doc/invoke.texi: Fix a typo.
9807 2011-01-30 Joseph Myers <joseph@codesourcery.com>
9809 * config/hpux11.opt: New.
9810 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9811 ia64*-*-hpux*): Use hpux11.opt.
9813 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
9815 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9818 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9820 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9823 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9825 * doc/install.texi (Binaries): Remove outdated reference for
9826 Motorola 68HC11/68HC12 downloads.
9828 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9830 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9833 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
9836 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9839 2011-01-28 Ahmad Sharif <asharif@google.com>
9841 * value-prof.c (check_counter): Corrected error message.
9843 2011-01-29 Jie Zhang <jie@codesourcery.com>
9845 * config/arm/arm.c (arm_legitimize_reload_address): New.
9846 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9847 arm_legitimize_reload_address.
9848 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9850 2011-01-28 Ian Lance Taylor <iant@google.com>
9852 * godump.c (go_define): Ignore macros whose definitions include
9853 two adjacent operands.
9855 2011-01-28 Jakub Jelinek <jakub@redhat.com>
9858 * varasm.c (force_const_mem): Store copy of x in desc->constant
9859 instead of x itself.
9860 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9861 itself into REG_EQUAL note.
9863 2011-01-28 Joseph Myers <joseph@codesourcery.com>
9865 * config/freebsd.opt (posix, rdynamic): New Driver options.
9867 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9869 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9871 * configure: Regenerate.
9873 2011-01-27 Joseph Myers <joseph@codesourcery.com>
9875 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9876 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9878 2011-01-27 Anatoly Sokolov <aesok@post.ru>
9880 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9881 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9882 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9883 (s390_preferred_reload_class): Make static. Change return and
9884 'rclass' argument type to reg_class_t.
9886 2011-01-27 Jan Hubicka <jh@suse.cz>
9889 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9890 (process_function_and_variable_attributes): Check defined weakrefs.
9892 2011-01-27 Martin Jambor <mjambor@suse.cz>
9894 PR tree-optimization/47228
9895 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9896 build_ref_for_offset.
9898 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9900 * config/spu/spu-elf.h (ASM_SPEC): Remove.
9902 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
9904 PR rtl-optimization/46856
9905 * postreload.c (reload_combine_recognize_const_pattern): Do not
9906 separate cc0 setter and user on cc0 targets.
9908 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
9911 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9912 passed a VOID_TYPE expression, immediately emit an error and
9913 return error_mark_node.
9915 2011-01-26 Jeff Law <law@redhat.com>
9917 PR rtl-optimization/47464
9918 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9919 rather than may_trap_p as needed.
9921 2011-01-26 DJ Delorie <dj@redhat.com>
9923 PR rtl-optimization/46878
9924 * combine.c (insn_a_feeds_b): Check for the implicit cc0
9925 setter/user dependency as well.
9927 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
9929 PR rtl-optimization/44469
9930 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9931 after removing trivially dead basic blocks.
9933 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9935 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9936 * config/frv/frv.h (LINK_SPEC): Likewise.
9937 * config/i386/netware.h (LINK_SPEC): Likewise.
9938 * config/m68k/linux.h (ASM_SPEC): Likewise.
9939 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9940 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9941 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9942 * config/sparc/linux.h (ASM_SPEC): Likewise.
9943 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9944 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9946 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9948 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9949 * config/frv/frv.h (ASM_SPEC): Likewise.
9950 * config/m68k/linux.h (ASM_SPEC): Likewise.
9951 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9952 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9953 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9954 * config/sparc/linux.h (ASM_SPEC): Likewise.
9955 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9956 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9958 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9960 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9961 * config/frv/frv.h (LINK_SPEC): Likewise.
9962 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9964 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9966 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9967 * config/frv/frv.h (ASM_SPEC): Likewise.
9968 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9969 * config/m68k/linux.h (ASM_SPEC): Likewise.
9970 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9971 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9972 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9973 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9974 * config/sparc/linux.h (ASM_SPEC): Likewise.
9975 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9976 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9977 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9979 2011-01-26 Steve Ellcey <sje@cup.hp.com>
9982 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9984 (vec_extract_evenodd_help): Ditto.
9985 (vec_extract_evenv4hi): Ditto.
9986 (vec_extract_oddv4hi): Ditto.
9987 (vec_interleave_lowv2si): Ditto.
9988 (vec_interleave_highv2si): Ditto.
9989 (vec_extract_evenv2si): Ditto.
9990 (vec_extract_oddv2si: Ditto.
9991 (vec_pack_trunc_v2si): Ditto.
9993 2011-01-22 Jan Hubicka <jh@suse.cz>
9996 * cgraph.h (cgraph_local_info): New field can_change_signature.
9997 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9998 signature can change.
9999 (ipcp_estimate_growth): Call sequence simplify only if calle signature
10001 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
10002 (cgraph_function_versioning): We can not change signature of functions
10003 that don't allow that.
10004 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
10005 (lto_input_node): Likewise.
10006 * ipa-inline.c (compute_inline_parameters): Compute
10007 local.can_change_signature.
10008 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
10009 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
10010 functions that can not change signature.
10011 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
10012 init_cumulative_args): Do not use local calling conventions
10013 for functions that can not change signature.
10015 2011-01-22 Jan Hubicka <jh@suse.cz>
10017 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
10019 2011-01-26 Richard Guenther <rguenther@suse.de>
10021 PR tree-optimization/47190
10022 * cgraphunit.c (process_common_attributes): New function.
10023 (process_function_and_variable_attributes): Use it.
10025 2011-01-26 Richard Guenther <rguenther@suse.de>
10028 * cgraphbuild.c (record_eh_tables): Record reference to personality
10031 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
10034 * sel-sched.c (moveup_expr): Don't let debug insns prevent
10035 non-debug insns from moving up.
10037 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
10040 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
10041 t-dlldir{,-x} fragment for build and add it to tmake_file.
10042 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
10043 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
10044 * config/i386/t-dlldir: New file.
10045 (SHLIB_DLLDIR): Define.
10046 * config/i386/t-dlldir-x: New file.
10047 (SHLIB_DLLDIR): Define.
10048 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
10049 (SHLIB_INSTALL): Use it.
10051 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
10054 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
10055 lower bound of the allowed Thumb-2 coprocessor load/store
10056 index range to -256. Add explaining comment.
10058 2011-01-25 Ian Lance Taylor <iant@google.com>
10060 * godump.c (go_define): Improve lexing of macro expansion to only
10061 accept expressions which match Go spec.
10063 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
10066 * tree.c (handle_dll_attribute): Handle it.
10067 * doc/extend.texi (@item dllexport): Mention it.
10068 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
10070 2011-01-25 Ian Lance Taylor <iant@google.com>
10072 PR tree-optimization/26854
10073 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
10074 (decl_jump_unsafe): Move higher in file, with no other change.
10075 (bind): Set has_jump_unsafe_decl if appropriate.
10076 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
10077 (check_earlier_gotos): Likewise.
10078 (c_check_switch_jump_warnings): Likewise.
10080 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
10082 * doc/invoke.texi (Warning Options): Add missing hyphen.
10083 (-fprofile-dir): Minor grammatical fixes.
10084 (-fbranch-probabilities): Likewise.
10086 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
10090 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10092 (no_real_insns_p, schedule_block, set_priorities): Drop special
10093 treatment of boundary debug insns.
10094 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10095 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
10096 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10097 (BOUNDARY_DEBUG_INSN_P): Likewise.
10098 (SCHEDULE_DEBUG_INSN_P): Likewise.
10099 * sched-rgn.c (init_ready_list): Drop special treatment of
10100 boundary debug insns.
10101 * final.c (rest_of_clean-state): Clear notes' BB.
10103 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10105 * Makefile.in (LAMBDA_H): Removed.
10106 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
10107 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
10108 lambda-trans.o, and tree-loop-linear.o.
10109 (lto-symtab.o): Remove dependence on LAMBDA_H.
10110 (tree-loop-linear.o): Remove rule.
10111 (lambda-mat.o): Same.
10112 (lambda-trans.o): Same.
10113 (lambda-code.o): Same.
10114 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
10115 (tree-vect-slp.o): Same.
10116 * hwint.h (gcd): Moved here.
10117 (least_common_multiple): Same.
10118 * lambda-code.c: Removed.
10119 * lambda-mat.c: Removed.
10120 * lambda-trans.c: Removed.
10121 * lambda.h: Removed.
10122 * tree-loop-linear.c: Removed.
10123 * lto-symtab.c: Do not include lambda.h.
10124 * omega.c (gcd): Removed.
10125 * passes.c (init_optimization_passes): Remove pass_linear_transform.
10126 * tree-data-ref.c (print_lambda_vector): Moved here.
10127 (lambda_vector_copy): Same.
10128 (lambda_matrix_copy): Same.
10129 (lambda_matrix_id): Same.
10130 (lambda_vector_first_nz): Same.
10131 (lambda_matrix_row_add): Same.
10132 (lambda_matrix_row_exchange): Same.
10133 (lambda_vector_mult_const): Same.
10134 (lambda_vector_negate): Same.
10135 (lambda_matrix_row_negate): Same.
10136 (lambda_vector_equal): Same.
10137 (lambda_matrix_right_hermite): Same.
10138 * tree-data-ref.h: Do not include lambda.h.
10139 (lambda_vector): Moved here.
10140 (lambda_matrix): Same.
10141 (dependence_level): Same.
10142 (lambda_transform_legal_p): Removed declaration.
10143 (lambda_collect_parameters): Same.
10144 (lambda_compute_access_matrices): Same.
10145 (lambda_vector_gcd): Same.
10146 (lambda_vector_new): Same.
10147 (lambda_vector_clear): Same.
10148 (lambda_vector_lexico_pos): Same.
10149 (lambda_vector_zerop): Same.
10150 (lambda_matrix_new): Same.
10151 * tree-flow.h (least_common_multiple): Removed declaration.
10152 * tree-parloops.c (lambda_trans_matrix): Moved here.
10153 (LTM_MATRIX): Same.
10154 (LTM_ROWSIZE): Same.
10155 (LTM_COLSIZE): Same.
10156 (LTM_DENOMINATOR): Same.
10157 (lambda_trans_matrix_new): Same.
10158 (lambda_matrix_vector_mult): Same.
10159 (lambda_transform_legal_p): Same.
10160 * tree-pass.h (pass_linear_transform): Removed declaration.
10161 * tree-ssa-loop.c (tree_linear_transform): Removed.
10162 (gate_tree_linear_transform): Removed.
10163 (pass_linear_transform): Removed.
10164 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
10165 flag_loop_interchange.
10167 2011-01-25 Jakub Jelinek <jakub@redhat.com>
10169 PR tree-optimization/47265
10170 PR tree-optimization/47443
10171 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
10172 if name still has some uses.
10174 2011-01-25 Martin Jambor <mjambor@suse.cz>
10176 PR tree-optimization/47382
10177 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
10178 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
10180 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
10182 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
10183 sjlj_except_unwind_info.
10185 2011-01-25 Richard Guenther <rguenther@suse.de>
10187 PR tree-optimization/47426
10188 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
10189 visible functions results escape.
10191 2011-01-25 Jakub Jelinek <jakub@redhat.com>
10194 * config/arm/arm.c (any_sibcall_uses_r3): New function.
10195 (arm_get_frame_offsets): Use it.
10197 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10198 Jakub Jelinek <jakub@redhat.com>
10200 PR tree-optimization/47271
10201 * tree-if-conv.c (bb_postdominates_preds): New.
10202 (if_convertible_bb_p): Call bb_postdominates_preds.
10203 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
10204 (predicate_scalar_phi): Call bb_postdominates_preds.
10206 2011-01-25 Nick Clifton <nickc@redhat.com>
10208 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
10209 * config/rx/rx.c (rx_function_value): Likewise.
10210 (rx_promote_function_mode): Likewise.
10211 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
10212 in order to make it legitimate.
10213 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
10214 make sure that the first operand is the same as the result register.
10215 (addsi3_unspec): Delete.
10216 (subdi3): Do not accept immediate operands.
10217 (subdi3_internal): Likewise.
10219 2011-01-25 Jeff Law <law@redhat.com>
10221 PR rtl-optimization/37273
10222 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10223 handle them like argument loads from stack slots. Do not double
10224 count memory for memory constants and argument loads from stack slots.
10226 2011-01-25 Jakub Jelinek <jakub@redhat.com>
10228 PR tree-optimization/47427
10229 PR tree-optimization/47428
10230 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
10231 coalesce if the new root var would be TREE_READONLY.
10233 2011-01-25 Richard Guenther <rguenther@suse.de>
10235 PR middle-end/47414
10236 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
10237 correct type for TBAA.
10239 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10241 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
10242 (close_phi_written_to_memory): Call for_each_index with
10243 dr_indices_valid_in_loop.
10245 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10247 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
10248 when it is initialized.
10250 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10252 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
10253 call to graphite_find_data_references_in_stmt.
10254 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
10255 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
10256 call to graphite_find_data_references_in_stmt.
10257 (analyze_drs_in_stmts): Same.
10258 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
10259 in which the scalar analysis of indices is performed.
10260 (create_data_ref): Same. Update call to dr_analyze_indices.
10261 (find_data_references_in_stmt): Update call to create_data_ref.
10262 (graphite_find_data_references_in_stmt): Same.
10263 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
10265 (create_data_ref): Same.
10266 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
10267 call to create_data_ref.
10269 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10271 * graphite-sese-to-poly.c (build_poly_scop): Move
10272 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
10274 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10276 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
10277 VAR_DECL, PARM_DECL, and RESULT_DECL.
10279 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10281 * graphite-dependences.c (reduction_dr_1): Allow several reductions
10282 in a reduction PBB.
10283 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
10284 that have already been marked as PBB_IS_REDUCTION.
10286 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10288 * graphite-scop-detection.c (same_close_phi_node): New.
10289 (remove_duplicate_close_phi): New.
10290 (make_close_phi_nodes_unique): New.
10291 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
10293 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10295 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
10296 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
10297 of both data references to be the same.
10299 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10301 * graphite-dependences.c (build_lexicographical_constraint): Remove
10302 the gdim parameter.
10303 (build_lexicographical_constraint): Adjust call to
10304 ppl_powerset_is_empty.
10305 (dependence_polyhedron): Same.
10306 (graphite_legal_transform_dr): Same.
10307 (graphite_carried_dependence_level_k): Same.
10308 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
10310 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
10312 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10314 * graphite-sese-to-poly.c
10315 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
10316 (close_phi_written_to_memory): New.
10317 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
10320 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10322 * doc/install.texi: Update the expected version number of PPL to 0.11.
10323 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
10324 #if PPL_VERSION_MINOR < 11.
10326 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10328 * graphite-dependences.c: Include graphite-cloog-util.h.
10329 (new_poly_ddr): Inlined into dependence_polyhedron.
10330 (free_poly_ddr): Moved close by new_poly_ddr.
10331 (dependence_polyhedron_1): Renamed dependence_polyhedron.
10332 Early return NULL when ppl_powerset_is_empty returns true.
10333 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
10334 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
10335 (graphite_legal_transform_dr): Call new_poly_ddr.
10336 (graphite_carried_dependence_level_k): Same.
10337 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
10338 (dot_transformed_deps_stmt_1): Removed.
10339 (dot_deps_stmt_1): Call dot_deps_stmt_2.
10340 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
10341 (dot_deps_1): Call dot_deps_2.
10342 * Makefile.in (graphite-dependences.o): Add missing dependence on
10343 graphite-cloog-util.h.
10345 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10347 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
10348 (build_lexicographical_constraint): Same.
10349 (dependence_polyhedron_1): Same.
10350 (graphite_legal_transform_dr): Same.
10351 (graphite_carried_dependence_level_k): Same.
10352 * graphite-ppl.c (ppl_powerset_is_empty): New.
10353 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
10354 * tree-data-ref.c (dump_data_reference): Print the basic block index.
10356 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10358 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
10359 the "a followed by b" relation and document it.
10361 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10363 * graphite-dependences.c (build_lexicographical_constraint): Stop the
10364 iteration when the bag of constraints is empty.
10366 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10368 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
10370 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10372 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
10373 nest and two loop depths as parameters.
10374 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
10375 lst_perfect_nestify.
10377 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10379 * graphite-dependences.c (print_pddr): Call
10380 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
10382 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10384 * graphite-ppl.c (debug_gmp_value): New.
10385 * graphite-ppl.h (debug_gmp_value): Declared.
10387 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
10389 * doc/install.texi: Document availability of cloog-0.16.
10391 2011-01-25 Vladimir Kargov <kargov@gmail.com>
10393 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
10394 invalid postdominance info.
10396 2011-01-24 Jan Hubicka <jh@suse.cz>
10399 * doc/extend.texi (weak pragma): Drop claim that it must
10400 appear before definition.
10401 * varasm.c (merge_weak, declare_weak): Only sanity check
10402 that DECL is not output at a time it is declared weak.
10404 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
10406 * machmode.def: Fixed comments.
10408 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
10410 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
10412 2011-01-24 Paul Koning <ni1d@arrl.net>
10414 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
10417 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
10420 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
10421 (block_info): Add scanned and prev.
10422 (move_or_delete_vzeroupper_2): Return if the basic block
10423 has been scanned and the upper 128bit state is unchanged
10424 from the last scan.
10425 (move_or_delete_vzeroupper_1): Return true if the exit
10427 (move_or_delete_vzeroupper): Visit basic blocks using the
10428 work-list based algorithm based on vt_find_locations in
10431 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
10433 2011-01-24 Nick Clifton <nickc@redhat.com>
10435 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
10436 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
10437 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
10438 then define __v850e1__.
10439 * doc/invoke.texi: Document -mv850es.
10441 2011-01-24 Richard Henderson <rth@redhat.com>
10443 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
10444 compound unordered comparisons.
10445 * config/rx/rx.c (rx_split_fp_compare): Remove.
10446 * config/rx/rx-protos.h: Update.
10447 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
10448 (cbranchsf4): Don't call rx_split_fp_compare.
10449 (*cbranchsf4): Use rx_split_cbranch.
10450 (*cmpsf): Don't accept "i" constraint.
10451 (*conditional_branch): Only valid after reload.
10452 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
10454 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
10457 * config/rs6000/altivec.md (vector constant splitters): Add
10458 support for creating vector single precision constants if -mvsx is
10459 used and we would create the constant using Altivec primitives.
10461 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
10462 Richard Sandiford <rdsandiford@googlemail.com>
10464 PR rtl-optimization/47166
10465 * reload1.c (emit_reload_insns): Disable the spill_reg_store
10466 mechanism for PRE_MODIFY and POST_MODIFY.
10467 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
10470 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
10472 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
10474 2011-01-22 Jan Hubicka <jh@suse.cz>
10477 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
10479 2011-01-22 Jan Hubicka <jh@suse.cz>
10481 PR tree-optimization/43884
10483 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
10484 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
10486 2011-01-22 Anatoly Sokolov <aesok@post.ru>
10488 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10489 * config/s390/s390.c (s390_register_move_cost,
10490 s390_memory_move_cost): New.
10491 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10493 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10495 PR middle-end/47401
10496 * except.c (sjlj_assign_call_site_values): Move setting the
10497 crtl->uses_eh_lsda flag to ...
10498 (sjlj_mark_call_sites): ... here.
10499 (sjlj_emit_function_enter): Support NULL dispatch label.
10500 (sjlj_build_landing_pads): In a function with no landing pads
10501 that still has must-not-throw regions, generate code to register
10502 a personality function with empty LSDA.
10504 2011-01-21 Richard Henderson <rth@redhat.com>
10506 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
10508 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
10510 * compare-elim.c: New file.
10511 * Makefile.in (OBJS-common): Add it.
10512 (compare-elim.o): New.
10513 * common.opt (fcompare-elim): New.
10514 * opts.c (default_options_table): Add OPT_fcompare_elim.
10515 * tree-pass.h (pass_compare_elim_after_reload): New.
10516 * passes.c (init_optimization_passes): Add it.
10517 * recog.h: Protect against re-inclusion.
10518 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
10519 * doc/invoke.texi (-fcompare-elim): Document it.
10520 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
10521 * doc/tm.texi: Rebuild.
10523 2011-01-22 Nick Clifton <nickc@redhat.com>
10525 * config/rx/rx.md (cstoresf4): Pass comparison operator to
10526 rx_split_fp_compare.
10528 2011-01-22 Nick Clifton <nickc@redhat.com>
10530 * config/rx/rx.md (UNSPEC_CONST): New.
10531 (deallocate_and_return): Wrap the amount popped off the stack in
10532 an UNSPEC_CONST in order to stop it being rejected by
10533 -mmax-constant-size.
10534 (pop_and_return): Add a "(return)" rtx.
10535 (call): Drop the immediate operand.
10536 (call_internal): Likewise.
10537 (call_value): Likewise.
10538 (call_value_internal): Likewise.
10539 (sibcall_internal): Likewise.
10540 (sibcall_value_internal): Likewise.
10541 (sibcall): Likewise. Generate an explicit call using
10543 (sibcall_value): Likewise.
10544 (mov<>): FAIL if a constant operand is not legitimate.
10545 (addsi3_unpsec): New pattern.
10547 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
10548 (ok_for_max_constant): New function.
10549 (gen_safe_add): New function.
10550 (rx_expand_prologue): Use gen_safe_add.
10551 (rx_expand_epilogue): Likewise.
10552 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
10555 2011-01-21 Jeff Law <law@redhat.com>
10557 PR tree-optimization/47053
10558 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10559 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10560 statements are deleted.
10561 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
10562 is nonempty, then purge dead edges and cleanup the CFG.
10564 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10567 Temporarily revert:
10568 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10570 * tree-dfa.c (create_var_ann): Mark variable as used.
10572 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10574 PR middle-end/45566
10575 * except.c (convert_to_eh_region_ranges): Emit queued no-region
10576 notes from other section in hot/cold partitioning even if
10577 last_action is -3. Increment call_site_base.
10579 PR rtl-optimization/47366
10580 * fwprop.c (forward_propagate_into): Return bool. If
10581 any changes are made, -fnon-call-exceptions is used and
10582 REG_EH_REGION note is present, call purge_dead_edges
10583 and return true if it purged anything.
10584 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10585 any EH edges were purged.
10587 2011-01-21 Jeff Law <law@redhat.com>
10589 PR rtl-optimization/41619
10590 * caller-save.c (setup_save_areas): Break out code to determine
10591 which hard regs are live across calls by examining the reload chains
10592 so that it is always used.
10593 Eliminate code which checked REG_N_CALLS_CROSSED.
10595 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10597 PR tree-optimization/47355
10598 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10599 NOP has non-debug uses beyond PHIs in new_bb.
10601 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10604 * cfgexpand.c (account_used_vars_for_block): Only account vars
10605 that are annotated as used.
10606 (estimated_stack_frame_size): Don't set TREE_USED.
10607 * tree-dfa.c (create_var_ann): Mark variable as used.
10609 2011-01-21 Richard Guenther <rguenther@suse.de>
10611 PR middle-end/47395
10612 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10614 2011-01-21 Richard Guenther <rguenther@suse.de>
10616 PR tree-optimization/47365
10617 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10618 (vn_reference_lookup_pieces): Adjust.
10619 (vn_reference_lookup): Likewise.
10620 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10621 (vn_reference_lookup_3): Only look through kills if in
10622 VN_WALKREWRITE mode.
10623 (vn_reference_lookup_pieces): Adjust.
10624 (vn_reference_lookup): Likewise.
10625 (visit_reference_op_load): Likewise.
10626 (visit_reference_op_store): Likewise.
10627 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10628 (compute_avail): Likewise.
10629 (eliminate): Likewise.
10631 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10633 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10634 DECL_IGNORED_P non-reg vars if they are used.
10636 PR tree-optimization/47391
10637 * varpool.c (const_value_known_p): Return false if
10640 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
10643 * config/i386/i386.c (ix86_local_alignment): Handle
10644 case for va_list_type_node is nil.
10645 (ix86_canonical_va_list_type): Likewise.
10647 2011-01-21 Alan Modra <amodra@gmail.com>
10649 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10650 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10652 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10654 * config/arm/arm.md (define_attr type): Rename f_load
10655 and f_store to f_fpa_load and f_fpa_store. Update.
10656 (write_conflict): Deal with rename fallout.
10657 (*push_fp_multi): Likewise.
10658 * config/arm/fpa.md (f_load): Use f_fpa_load.
10659 (f_store): Use f_fpa_store.
10660 (*movsf_fpa): Likewise.
10661 (*movdf_fpa): Likewise.
10662 (*movxf_fpa): Likewise.
10663 (*thumb2_movsf_fpa): Likewise.
10664 (*thumb2_movdf_fpa): Likewise.
10665 (*thumb2_movxf_fpa): Likewise.
10666 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10667 f_loadd and f_stored.
10668 (*thumb2_movdi_vfp): Likewise.
10669 (*thumb2_movsf_vfp): Fix attribute to f_loads.
10670 (*thumb2_movsi_vfp): Likewise.
10671 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10672 Use f_loads instead of f_load.
10673 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10675 2011-01-20 Anatoly Sokolov <aesok@post.ru>
10677 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10678 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10679 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10680 (xtensa_mode_dependent_address_p): New function.
10681 (constantpool_address_p): Make static. Change return type to bool.
10682 Change argument type to const_rtx. Use CONST_INT_P predicate.
10684 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
10687 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10689 2011-01-20 Jakub Jelinek <jakub@redhat.com>
10692 * cfgexpand.c (expand_debug_expr): Instead of generating
10693 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10696 2011-01-20 Richard Guenther <rguenther@suse.de>
10698 PR middle-end/47370
10699 * tree-inline.c (remap_gimple_op_r): Recurse manually for
10700 the pointer operand of MEM_REFs.
10702 2011-01-20 Jakub Jelinek <jakub@redhat.com>
10704 PR tree-optimization/46130
10705 * ipa-split.c (consider_split): If return_bb contains non-virtual
10706 PHIs other than for retval or if split_function would not adjust it,
10709 2011-01-20 Richard Guenther <rguenther@suse.de>
10711 PR tree-optimization/47167
10712 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10713 Revert previous change, only avoid enumeral type changes.
10715 2011-01-19 Mike Stump <mikestump@comcast.net>
10717 * doc/tm.texi.in (BRANCH_COST): Englishify.
10718 * doc/tm.texi (BRANCH_COST): Likewise.
10720 2011-01-19 Dodji Seketeli <dodji@redhat.com>
10723 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10724 (gen_scheduled_generic_parms_dies): New functions.
10725 (gen_struct_or_union_type_die): Schedule template parameters DIEs
10726 generation for the end of CU compilation.
10727 (dwarf2out_finish): Generate template parameters DIEs here.
10729 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10732 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10733 debug bind stmt on merge edges.
10735 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10739 * function.c (instantiate_expr): Instantiate incoming rtl of
10740 implicit arguments, and recurse on VALUE_EXPRs.
10741 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10742 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10744 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10746 * c-parser.c (c_parser_for_statement): Initialize
10747 collection_expression.
10749 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10751 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10753 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10755 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10756 (LINK_SHLIB_SPEC): Don't use %(link_path).
10757 (SUBTARGET_EXTRA_SPECS): Remove link_path.
10759 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10761 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10762 (NO_SHARED_LIB_SUPPORT): Remove.
10763 (LINK_SHLIB_SPEC): Remove one conditional definition.
10765 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10767 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10769 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10770 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10771 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10772 %{call_shared} and conditionals on these options not being passed.
10773 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10776 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10778 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10781 * ipa-split.c: Spelling fixes.
10783 2011-01-19 Richard Henderson <rth@redhat.com>
10785 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10786 (*mulsi3): Likewise.
10788 * longlong.h [__mn10300__] (count_leading_zeros): New.
10789 [__mn10300__] (umul_ppmm, smul_ppmm): New.
10790 [__mn10300__] (add_ssaaaa, subddmmss): New.
10791 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10792 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10794 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10796 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10798 2011-01-19 Richard Henderson <rth@redhat.com>
10800 * config/mn10300/mn10300.md (addsi3_flags): New.
10801 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10802 (subsi3_flags, subc_internal, subdi3): New.
10803 (subdi3_internal, *subdi3_degenerate): New.
10804 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10806 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10807 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10808 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
10809 * config/mn10300/mn10300-protos.h: Update.
10810 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10811 (return_ret): Likewise. Rename from return_internal_regs.
10812 (return_internal): Remove.
10814 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10815 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10816 (mn10300_legitimate_constant_p): Likewise.
10817 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10818 (mn10300_frame_size): New.
10819 (mn10300_expand_prologue): Use it.
10820 (mn10300_expand_epilogue): Likewise.
10821 (mn10300_initial_offset): Likewise.
10822 * config/mn10300/mn10300-protos.h: Update.
10823 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10824 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10825 (prologue, epilogue, return_internal): Tidy output code.
10826 (mn10300_store_multiple_operation, return): Likewise.
10827 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10828 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10829 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10830 (load_pic, am33_load_pic): New.
10831 (mn10300_load_pic0, mn10300_load_pic1): New.
10833 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10834 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10835 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10836 (cc_flags_for_mode, cc_flags_for_code): New.
10837 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10838 overflow flag is not valid. Validate that the flags we need
10839 for the comparison are valid.
10840 (mn10300_output_cmp): Remove.
10841 (mn10300_output_add): New.
10842 (mn10300_select_cc_mode): Use cc_flags_for_code.
10843 (mn10300_split_cbranch): New.
10844 (mn10300_match_ccmode): New.
10845 (mn10300_split_and_operand_count): New.
10846 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10848 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10849 (addsi3): ... here. Use mn10300_output_add.
10850 (*addsi3_flags): New.
10851 (*am33_subsi3, *mn10300_subsi3): Merge...
10852 (subsi3): ... here. Use attribute isa.
10853 (*subsi3_flags): New.
10854 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
10856 (*am33_andsi3, *mn10300_andsi3): Merge...
10857 (andsi3): ... here.
10858 (*andsi3_flags): New.
10859 (andsi3 splitters): New.
10860 (*am33_iorsi3, *mn10300_iorsi3): Merge...
10861 (iorsi3): ... here.
10862 (*iorsi3_flags): New.
10863 (*am33_xorsi3, *mn10300_xorsi3): Merge...
10864 (xorsi3): ... here.
10865 (*xorsi3_flags): New.
10866 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10867 (one_cmplsi2): ... here.
10868 (*one_cmplsi2_flags): New.
10869 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
10870 instead of "dax" in constraints. Use mn10300_split_cbranch.
10871 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
10872 use matching constraints to eliminate a self-comparison.
10873 (*integer_conditional_branch): Rename from integer_conditional_branch.
10874 Use int_mode_flags to match CC_REG.
10875 (*cbranchsi4_btst, *btstsi): New.
10876 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
10877 mn10300_split_cbranch.
10878 (*am33_cmpsf): Rename from am33_cmpsf.
10879 (*float_conditional_branch): Rename from float_conditional_branch.
10880 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10881 (zero_extendqisi2): ... here.
10882 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10883 (zero_extendhisi2): ... here.
10884 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10885 (extendqisi2): ... here.
10886 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10887 (extendhisi2): ... here.
10888 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10889 (ashlsi3): ... here.
10890 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10891 (lshrsi3): ... here.
10892 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10893 (ashrsi3): ... here.
10894 (consecutive add peephole): Remove.
10895 * config/mn10300/predicates.md (label_ref_operand): New.
10896 (int_mode_flags): New.
10897 (CCZN_comparison_operator): New.
10899 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10900 (throughput_42_latency_43): New reservation.
10901 (mulsidi3, umulsidi3): New expanders.
10902 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
10903 the MDR register to allocation; separately allocate the low and
10904 high parts of the DImode result.
10905 (umulsidi3_internal): Similarly.
10906 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10907 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
10908 (udivsi3, umodsi3): Remove.
10909 (udivmodsi4, divmodsi4): New expanders.
10910 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
10911 (*divmodsi4): Simiarly.
10912 (ext_internal): New.
10914 * config/mn10300/constraints.md ("z"): New constraint.
10915 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10916 (FIXED_REGISTERS): Don't fix MDR.
10917 (CALL_USED_REGSITERS): Reformat nicely.
10918 (REG_ALLOC_ORDER): Add MDR.
10919 (enum regclass): Add MDR_REGS.
10920 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10921 (IRA_COVER_CLASSES): Add MDR_REGS.
10922 (REGNO_REG_CLASS): Handle MDR_REG.
10923 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10924 (mn10300_register_move_cost): Likewise.
10925 * config/mn10300/mn10300.md (MDR_REG): New.
10926 (*movsi_internal): Handle moves to/from MDR_REGS.
10928 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10930 (mn10300_secondary_reload): Tidy combination reload classes.
10931 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10932 addresses for AM33. Allow symbolic offsets for reg+imm.
10933 (mn10300_regno_in_class_p): New.
10934 (mn10300_legitimize_reload_address): New.
10935 * config/mn10300/mn10300.h (enum reg_class): Remove
10936 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10937 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
10938 SP_OR_GENERAL_REGS.
10939 (REG_CLASS_NAMES): Update to match.
10940 (REG_CLASS_CONTENTS): Likewise.
10941 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10942 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10943 (REGNO_IN_RANGE_P): Remove.
10944 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10945 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10946 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10947 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10948 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10949 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10950 (REGNO_GENERAL_P): New.
10951 (HAVE_POST_MODIFY_DISP): New.
10952 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10953 (LEGITIMIZE_RELOAD_ADDRESS): New.
10954 * config/mn10300/mn10300-protos.h: Update.
10956 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10957 DATA_REGS for AM33 stack-pointer destination.
10958 (mn10300_preferred_output_reload_class): Likewise.
10959 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10960 into a form appropriate for ...
10961 (TARGET_SECONDARY_RELOAD): New.
10962 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10963 * config/mn10300/mn10300-protos.h: Update.
10964 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10965 reload_insi; use the "A" constraint for the scratch; handle AM33
10966 moves of sp to non-address registers.
10968 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10969 (*movqi_internal): ... here.
10970 (*am33_movhi, *mn10300_movhi): Merge into...
10971 (*movhi_internal): ... here.
10972 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
10973 as the source/destination of moves from/to SP.
10974 (movsf): Only allow for AM33-2.
10975 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10976 any integer constant constraint. Only allow for AM33-2. Tidy
10977 all of the alternative outputs.
10978 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10979 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
10981 (udivsi3, umodsi3): New patterns for MN103 only.
10983 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
10985 * doc/tm.texi.in: Spell out that a lack of register class unions
10987 * doc/tm.texi: Regenerate.
10989 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10991 PR rtl-optimization/47337
10992 * dce.c (check_argument_store): New function.
10993 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
10995 PR tree-optimization/47290
10996 * tree-eh.c (infinite_empty_loop_p): New function.
10997 (cleanup_empty_eh): Use it.
10999 2011-01-18 Steve Ellcey <sje@cup.hp.com>
11002 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
11003 (a64_expand_widen_sum): Ditto.
11004 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
11005 (vec_extract_evenodd_help): Ditto.
11006 (vec_extract_evenv4hi): Ditto.
11007 (vec_extract_oddv4hi): Ditto.
11008 (vec_extract_evenv2si): Ditto.
11009 (vec_extract_oddv2si): Ditto.
11010 (vec_extract_evenv2sf): Ditto.
11011 (vec_extract_oddv2sf): Ditto.
11012 (vec_pack_trunc_v4hi: Ditto.
11013 (vec_pack_trunc_v2si): Ditto.
11014 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
11015 (vec_interleave_highv8qi): Ditto.
11017 (vec_extract_oddv8qi): Ditto.
11018 (vec_interleave_lowv4hi): Ditto.
11019 (vec_interleave_highv4hi): Ditto.
11020 (vec_interleave_lowv2si): Ditto.
11021 (vec_interleave_highv2si): Ditto.
11023 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11025 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
11026 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
11027 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
11028 (pa_c_mode_for_suffix): New.
11029 (TARGET_EXPAND_BUILTIN): Define.
11030 (TARGET_C_MODE_FOR_SUFFIX): Define.
11031 (pa_builtins): Define.
11032 (pa_init_builtins): Register __float128 type and init new support
11034 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
11035 * config/pa/quadlib.c (_U_Qfcopysign): New.
11037 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
11039 PR middle-end/46894
11040 * explow.c (allocate_dynamic_stack_space): Do not assume more than
11041 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
11044 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11046 PR tree-optimization/47179
11047 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
11048 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
11050 2011-01-18 Richard Guenther <rguenther@suse.de>
11052 PR rtl-optimization/47216
11053 * emit-rtl.c: Include tree-flow.h.
11054 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
11055 of replicating it with different semantics.
11056 * Makefile.in (emit-rtl.o): Adjust.
11058 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11060 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
11061 (cortex_a9_dp): Handle neon types correctly.
11063 2011-01-18 Jakub Jelinek <jakub@redhat.com>
11065 PR rtl-optimization/47299
11066 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
11067 subtarget. Use normal multiplication if both operands are constants.
11068 * expmed.c (expand_widening_mult): Don't try to optimize constant
11069 multiplication if op0 has VOIDmode. Convert op1 constant to mode
11072 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11074 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
11075 spacing after 'e.g.', typos, comma, hyphenation.
11077 2011-01-17 Richard Henderson <rth@redhat.com>
11079 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
11080 (rx_restricted_mem_operand): New.
11081 (rx_shift_operand): Use register_operand.
11082 (rx_source_operand, rx_compare_operand): Likewise.
11083 * config/rx/rx.md (addsi3_flags): New expander.
11084 (adddi3): Rewrite as expander.
11085 (adc_internal, *adc_flags, adddi3_internal): New patterns.
11086 (subsi3_flags): New expander.
11087 (subdi3): Rewrite as expander.
11088 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
11090 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
11091 (rx_init_builtins): Remove sat builtin.
11092 (rx_expand_builtin): Likewise.
11093 * config/rx/rx.md (ssaddsi3): New.
11094 (*sat): Rename from sat. Represent the CC_REG input.
11096 * config/rx/predicates.md (rshift_operator): New.
11097 * config/rx/rx.c (rx_expand_insv): Remove.
11098 * config/rx/rx-protos.h: Update.
11099 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
11100 operand to the canonical position.
11101 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
11102 (*bitclr, *bitclr_in_memory): Similarly.
11103 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
11104 (insv): Retain the zero_extract in the expansion.
11106 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
11107 (bswaphi2, bitinvert, revw): Likewise.
11109 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
11110 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
11111 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
11112 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
11113 (bitset, bitset_in_memory): Likewise.
11114 (bitinvert, bitinvert_in_memory): Likewise.
11115 (bitclr, bitclr_in_memory): Likewise.
11116 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
11117 (rx_strend, rx_cmpstrn): Likewise.
11118 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
11119 (bitop peep2 patterns): Remove.
11121 * config/rx/rx.c (rx_match_ccmode): New.
11122 * config/rx/rx-protos.h: Update.
11123 * config/rx/rx.md (abssi2): Clobber, don't set flags.
11124 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
11125 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
11126 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
11127 (fix_truncsfsi2, floatsisf2): Likewise.
11128 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
11129 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
11130 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
11131 (*subsi3_flags, *xorsi3_flags): New.
11133 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
11135 * config/rx/rx.c (rx_print_operand): Remove workaround for
11136 unsplit comparison operations.
11138 * config/rx/rx.md (movsicc): Split after reload.
11139 (*movsicc): Merge *movsieq and *movsine via match_operator.
11140 (*stcc): New pattern.
11142 * config/rx/rx.c (rx_float_compare_mode): Remove.
11143 * config/rx/rx.h (rx_float_compare_mode): Remove.
11144 * config/rx/rx.md (cstoresi4): Split after reload.
11145 (*sccc): New pattern.
11147 * config/rx/predicates.md (label_ref_operand): New.
11148 (rx_z_comparison_operator): New.
11149 (rx_zs_comparison_operator): New.
11150 (rx_fp_comparison_operator): New.
11151 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
11152 Validate that the flags are set properly for the comparison.
11153 (rx_gen_cond_branch_template): Remove.
11154 (rx_cc_modes_compatible): Remove.
11155 (mode_from_flags): New.
11156 (flags_from_code): Rename from flags_needed_for_conditional.
11157 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
11158 (rx_select_cc_mode): Likewise.
11159 (rx_split_fp_compare): New.
11160 (rx_split_cbranch): New.
11161 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
11162 (*cbranchsi4): Use match_operator and rx_split_cbranch.
11163 (*cbranchsf4): Similarly.
11164 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
11165 match_operator and rx_split_cbranch.
11166 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
11167 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
11168 (*cmpsi): Rename from cmpsi.
11169 (*tstsi): Rename from tstsi.
11170 (*cmpsf): Rename from cmpsf; use CC_Fmode.
11171 (*conditional_branch): Rename from conditional_branch.
11172 (*reveresed_conditional_branch): Remove.
11173 (b<code>): Remove expander.
11174 * config/rx/rx-protos.h: Update.
11176 * config/rx/rx.c (rx_compare_redundant): Remove.
11177 * config/rx/rx.md (cmpsi): Don't use it.
11178 * config/rx/rx-protos.h: Update.
11180 * config/rx/rx-modes.def (CC_F): New mode.
11181 * config/rx/rx.c (rx_select_cc_mode): New.
11182 * config/rx/rx.h (SELECT_CC_MODE): Use it.
11183 * config/rx/rx-protos.h: Update.
11185 2011-01-17 Richard Henderson <rth@redhat.com>
11187 * except.c (dump_eh_tree): Fix stray ; after for statement.
11189 2011-01-17 Richard Guenther <rguenther@suse.de>
11191 PR tree-optimization/47313
11192 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
11193 handling before copying the body. Properly deal with
11194 by-reference result in SSA form.
11196 2011-01-17 Ian Lance Taylor <iant@google.com>
11199 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
11200 (struct_value_alias_set): Don't define.
11201 (sparc_option_override): Don't set sparc_sr_alias_set and
11202 struct_value_alias_set.
11203 (save_or_restore_regs): Use gen_frame_mem rather than calling
11205 (sparc_struct_value_rtx): Likewise.
11207 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
11210 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
11211 (_mm_maskstore_pd): Likewise.
11212 (_mm_maskload_ps): Likewise.
11213 (_mm_maskstore_ps): Likewise.
11214 (_mm256_maskload_pd): Change mask to __m256i.
11215 (_mm256_maskstore_pd): Likewise.
11216 (_mm256_maskload_ps): Likewise.
11217 (_mm256_maskstore_ps): Likewise.
11219 * config/i386/i386-builtin-types.def: Updated.
11220 (ix86_expand_special_args_builtin): Likewise.
11222 * config/i386/i386.c (bdesc_special_args): Update
11223 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
11224 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
11225 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
11226 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
11228 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
11229 Use <avxpermvecmode> on mask register.
11230 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
11232 2011-01-17 Olivier Hainque <hainque@adacore.com>
11233 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11234 Eric Botcazou <ebotcazou@adacore.com>
11237 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
11238 if <= USHRT_MAX in 32-bit mode.
11240 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11242 * doc/install.texi (Configuration, Specific): Wrap long
11243 lines in examples. Allow line wrapping in long options
11244 and URLs where beneficial for PDF output.
11246 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
11248 * config/mips/mips.c (mips_classify_symbol): Don't return
11249 SYMBOL_PC_RELATIVE for nonlocal labels.
11251 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
11253 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
11255 2011-01-15 Jan Hubicka <jh@suse.cz>
11257 PR tree-optimization/47276
11258 * ipa.c (function_and_variable_visibility): Do not try to mark alias
11259 declarations as needed.
11261 2011-01-15 Martin Jambor <mjambor@suse.cz>
11263 * common.opt (fdevirtualize): New flag.
11264 * doc/invoke.texi (Option Summary): Document it.
11265 * opts.c (default_options_table): Add devirtualize flag.
11266 * ipa-prop.c (detect_type_change): Return immediately if
11267 devirtualize flag is not set.
11268 (detect_type_change_ssa): Likewise.
11269 (compute_known_type_jump_func): Likewise.
11270 (ipa_analyze_virtual_call_uses): Likewise.
11272 2011-01-14 Martin Jambor <mjambor@suse.cz>
11274 PR tree-optimization/45934
11275 PR tree-optimization/46302
11276 * ipa-prop.c (type_change_info): New type.
11277 (stmt_may_be_vtbl_ptr_store): New function.
11278 (check_stmt_for_type_change): Likewise.
11279 (detect_type_change): Likewise.
11280 (detect_type_change_ssa): Likewise.
11281 (compute_complex_assign_jump_func): Check for dynamic type change.
11282 (compute_complex_ancestor_jump_func): Likewise.
11283 (compute_known_type_jump_func): Likewise.
11284 (compute_scalar_jump_functions): Likewise.
11285 (ipa_analyze_virtual_call_uses): Likewise.
11286 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
11288 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11290 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
11291 * config/i386/i386.opt (msse5): New Alias.
11293 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11295 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11296 * config/sparc/linux64.h (CC1_SPEC): Likewise.
11297 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11298 * config/sparc/sparc.h (CC1_SPEC): Likewise.
11300 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11302 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
11304 * config/sparc/linux64.h (CC1_SPEC): Likewise.
11305 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11306 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
11307 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
11309 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
11311 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11313 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
11315 2011-01-14 Mike Stump <mikestump@comcast.net>
11317 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
11318 * config/fr30/fr30.md: Likweise
11319 (movsi_push): Likewise.
11320 (movsi_pop): Likewise.
11321 (enter_func): Likewise.
11322 * config/moxie/moxie.md (movsi_push): Likewise.
11323 (movsi_pop): Likewise.
11325 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11327 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
11328 %{no_archive} %{exact_version}.
11329 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
11330 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
11331 %{no_archive} %{exact_version}.
11332 * config/mips/openbsd.h (LINK_SPEC): Likewise.
11333 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
11334 * config/mips/vxworks.h: Likewise.
11336 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11338 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
11340 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11342 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
11343 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
11345 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11347 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
11350 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11352 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
11354 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
11355 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
11357 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
11358 Don't handle -shlib.
11360 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11362 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
11363 (CC1_SPEC): Don't handle -profile.
11365 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11367 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
11368 * config/mips/mips.h (CC1_SPEC): Likewise.
11370 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11372 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
11373 * config/mips/mips.h (CC1_SPEC): Likewise.
11375 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11377 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
11378 * config/m32r/linux.h (LINK_SPEC): Likewise.
11379 * config/mips/linux.h (LINK_SPEC): Likewise.
11380 * config/mips/linux64.h (LINK_SPEC): Likewise.
11381 * config/sparc/linux.h (LINK_SPEC): Likewise.
11382 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11383 LINK_SPEC): Likewise.
11384 * config/xtensa/linux.h (LINK_SPEC): Likewise.
11386 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11388 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
11390 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
11392 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11394 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
11395 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11397 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11399 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
11401 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11403 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
11404 supports -Bstatic/-Bdynamic.
11405 * configure: Regenerate.
11407 2011-01-14 Jan Hubicka <jh@suse.cz>
11408 Jack Howarth <howarth@bromo.med.uc.edu>
11411 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
11412 when checking debug_info_level. Test write_symbols instead of
11413 debug_hooks->var_location when setting flag_var_tracking_uninit.
11415 2011-01-14 Richard Guenther <rguenther@suse.de>
11417 PR tree-optimization/47179
11418 * target.def (ref_may_alias_errno): New target hook.
11419 * targhooks.h (default_ref_may_alias_errno): Declare.
11420 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
11421 (default_ref_may_alias_errno): New function.
11422 * target.h (struct ao_ref_s): Declare.
11423 * tree-ssa-alias.c: Include target.h.
11424 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
11425 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
11426 (targhooks.o): Likewise.
11427 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
11428 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
11430 2011-01-14 Richard Guenther <rguenther@suse.de>
11432 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
11434 2011-01-14 Richard Guenther <rguenther@suse.de>
11436 PR tree-optimization/47280
11437 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
11438 return CFG changes.
11439 (tree_ssa_forward_propagate_single_use_vars): Deal with
11440 CFG changes from associate_plusminus.
11442 2011-01-14 Richard Guenther <rguenther@suse.de>
11444 PR middle-end/47281
11446 2011-01-11 Richard Guenther <rguenther@suse.de>
11448 PR tree-optimization/46076
11449 * tree-ssa.c (useless_type_conversion_p): Conversions from
11450 unprototyped to empty argument list function types are useless.
11452 2011-01-14 Richard Guenther <rguenther@suse.de>
11454 PR tree-optimization/47286
11455 * tree-ssa-structalias.c (new_var_info): Register variables are global.
11457 2011-01-14 Martin Jambor <mjambor@suse.cz>
11459 PR middle-end/46823
11460 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
11462 2011-01-13 Anatoly Sokolov <aesok@post.ru>
11464 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
11465 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11466 * config/xtensa/xtensa.c (xtensa_libcall_value,
11467 xtensa_function_value_regno_p): New functions.
11468 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11470 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
11473 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
11475 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
11476 New function prototype.
11477 * config/i386/winnt.c (i386_pe_assemble_visibility):
11478 Warn only if attribute was specified by user.
11480 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
11483 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
11485 (floatunsdidf2_fcfidu): Ditto.
11487 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11489 * config/s390/s390.c (print_operand_address): Replace 'error' with
11490 'output_operand_lossage'.
11491 (print_operand): Likewise.
11493 2011-01-13 Jeff Law <law@redhat.com>
11495 PR rtl-optimization/39077
11496 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
11497 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
11498 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
11499 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
11500 * gcse.c (prune_insertions_deletions): New function.
11501 (compute_pre_data): Use it.
11503 2011-01-13 Dodji Seketeli <dodji@redhat.com>
11506 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
11508 (prune_unused_types_mark): Use it.
11510 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
11512 PR rtl-optimization/45352
11513 * sel-sched.c: Update copyright years.
11514 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
11515 in the advancing loop when we have issued issue_rate insns.
11517 2011-01-12 Richard Henderson <rth@redhat.com>
11519 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
11520 (TARGET_MD_ASM_CLOBBERS): New.
11522 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
11523 (TARGET_DELEGITIMIZE_ADDRESS): New.
11525 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
11526 (clzsi2, *bsch): New patterns.
11528 * config/mn10300/mn10300.md (INT): New mode iterator.
11529 (*mov<INT>_clr): New pattern, and peep2 to generate it.
11531 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
11532 flag_split_wide_types.
11534 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
11535 (mn10300_trampoline_init): Rewrite without a template, an immediate
11536 load and a direct branch.
11537 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
11539 2011-01-12 Anatoly Sokolov <aesok@post.ru>
11541 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11542 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
11543 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
11544 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11546 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
11549 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
11552 2011-01-12 Jan Hubicka <jh@suse.cz>
11555 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11556 (PLUGIN_COND_CLOSE): New macro.
11557 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11559 2011-01-12 Richard Guenther <rguenther@suse.de>
11562 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11563 register variables in a MEM_REF.
11565 2011-01-12 Joseph Myers <joseph@codesourcery.com>
11567 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11568 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11569 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11570 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11571 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11572 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11573 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11574 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11575 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11576 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11577 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11578 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11579 * config/gnu-user.h: New. Copied from linux.h.
11580 (LINUX_TARGET_STARTFILE_SPEC): Rename to
11581 GNU_USER_TARGET_STARTFILE_SPEC.
11582 (LINUX_TARGET_ENDFILE_SPEC): Rename to
11583 GNU_USER_TARGET_ENDFILE_SPEC.
11584 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11585 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11586 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11587 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11588 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11589 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11590 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11591 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11592 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11593 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11594 * config/arm/linux-eabi.h (CC1_SPEC): Use
11595 GNU_USER_TARGET_CC1_SPEC.
11596 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11597 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11598 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11599 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11600 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11601 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11602 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11603 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11605 2011-01-12 Richard Guenther <rguenther@suse.de>
11608 * doc/invoke.texi (ffast-math): Document it is turned on
11611 2011-01-12 Jan Hubicka <jh@suse.cz>
11613 PR tree-optimization/47233
11614 * opts.c (common_handle_option): Disable ipa-reference with profile
11617 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11619 * c-parser.c (c_parser_objc_at_property_declaration): Improved
11622 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11624 * c-parser.c (c_lex_one_token): Updated and reindented some
11625 comments. No changes in code.
11627 2011-01-11 Ian Lance Taylor <iant@google.com>
11629 * godump.c (go_output_var): Don't output the variable if there is
11630 already a type with the same name.
11632 2011-01-11 Ian Lance Taylor <iant@google.com>
11634 * godump.c (go_format_type): Don't generate float80.
11636 2011-01-11 Richard Henderson <rth@redhat.com>
11638 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11639 declaration. Rewrite for both speed and size.
11640 (mn10300_address_cost_1): Remove.
11641 (mn10300_register_move_cost): New.
11642 (mn10300_memory_move_cost): New.
11643 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
11644 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
11645 extensions, shifts, BSWAP, CLZ.
11646 (mn10300_wide_const_load_uses_clr): Remove.
11647 (TARGET_REGISTER_MOVE_COST): New.
11648 (TARGET_MEMORY_MOVE_COST): New.
11649 * config/mn10300/mn10300-protos.h: Update.
11650 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11652 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11653 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11654 * config/mn10300/mn10300-protos.h: Update.
11655 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11656 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11657 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11658 (*test_int_bitfield, *test_byte_bitfield): Remove.
11659 (*bit_test, *subreg_bit_test): Remove.
11660 * config/mn10300/predicates.md (const_8bit_operand): Remove.
11662 * config/mn10300/constraints.md ("c"): Rename from "A".
11663 ("A", "D"): New constraint letters.
11664 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11665 (fmssf4, fnmasf4, fnmssf4): Likewise.
11667 * config/mn10300/mn10300.md (isa): New attribute.
11668 (enabled): New attribute.
11670 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11671 (abssf2, negsf2): Define only for hardware fp.
11672 (sqrtsf2): Reformat.
11673 (addsf3, subsf3, mulsf3): Merge expander and insn.
11675 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11676 (DEBUGGER_AUTO_OFFSET): Remove.
11677 (DEBUGGER_ARG_OFFSET): Remove.
11679 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11680 Emit register stores with the same offsets as the hardware.
11681 (mn10300_store_multiple_operation): Don't check that the register
11682 save offsets are monotonic.
11683 * config/mn10300/mn10300-protos.h: Update.
11685 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11687 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11688 in terms of the value on the stack, not the MDR register.
11690 2011-01-11 Jan Hubicka <jh@suse.cz>
11694 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11695 (symbol_alias_set_destroy, symbol_alias_set_contains,
11696 propagate_aliases_backward): Declare.
11697 * lto-streamer-out.c (struct sets): New sturcture.
11698 (trivally_defined_alias): New function.
11699 (output_alias_pair_p): Rewrite.
11700 (output_unreferenced_globals): Fix output of alias pairs.
11701 (produce_symtab): Likewise.
11702 * ipa.c (function_and_variable_visibility): Set weak alias destination
11704 * varasm.c (symbol_alias_set_t): Remove.
11705 (symbol_alias_set_destroy): Export.
11706 (propagate_aliases_forward, propagate_aliases_backward): New functions
11708 (compute_visible_aliases): ... this one; remove.
11709 (trivially_visible_alias): New
11710 (trivially_defined_alias): New.
11711 (remove_unreachable_alias_pairs): Rewrite.
11712 (finish_aliases_1): Reorganize code checking if alias is defined.
11713 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11716 2011-01-11 Richard Guenther <rguenther@suse.de>
11718 PR tree-optimization/46076
11719 * tree-ssa.c (useless_type_conversion_p): Conversions from
11720 unprototyped to empty argument list function types are useless.
11722 2011-01-11 Richard Guenther <rguenther@suse.de>
11724 PR middle-end/45235
11725 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11726 volatile MEMs as MEM_READONLY_P.
11728 2011-01-11 Richard Guenther <rguenther@suse.de>
11730 PR tree-optimization/47239
11731 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11733 2011-01-11 Jeff Law <law@redhat.com>
11735 PR tree-optimization/47086
11736 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11737 IVs from statements that might throw.
11739 2011-01-10 Jan Hubicka <jh@suse.cz>
11742 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11744 2011-01-10 Jan Hubicka <jh@suse.cz>
11747 * profile.c (read_profile_edge_counts): Ignore profile inconistency
11748 when correcting profile.
11750 2011-01-10 Jan Hubicka <jh@suse.cz>
11753 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11754 DECL_FINI_PRIORITY.
11755 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11756 Restore DECL_FINI_PRIORITY.
11758 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11760 * doc/gimple.texi: Fix quoting of multi-word return values in
11761 @deftypefn statements. Ensure presence of return value. Wrap
11762 overlong @deftypefn lines.
11763 (is_gimple_operand, is_gimple_min_invariant_address): Remove
11764 descriptions of removed functions.
11765 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11766 of multi-word return value in @deftypefn statement.
11768 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11770 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11771 (Conditional Expressions, Logical Operators)
11772 (Statement and operand traversals): Do not indent smallexample
11773 code. Fix duplicate function argument in example.
11775 2011-01-10 Jeff Law <law@redhat.com>
11777 PR tree-optimization/47141
11778 * ipa-split.c (split_function): Handle case where we are
11779 returning a value and the return block has a virtual operand phi.
11781 2011-01-10 Jan Hubicka <jh@suse.cz>
11783 PR tree-optimization/47234
11784 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11785 (pass_feedback_split_functions): Declare.
11786 * passes.c (init_optimization_passes): Add ipa-split as subpass of
11788 * ipa-split.c (gate_split_functions): Update comments; disable
11789 split-functions for profile_arc_flag and branch_probabilities.
11790 (gate_feedback_split_functions): New function.
11791 (execute_feedback_split_functions): New function.
11792 (pass_feedback_split_functions): New global var.
11794 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
11797 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11798 calling gimple_call_set_cannot_inline.
11800 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
11802 * config/darwin-sections.def: Remove unused section.
11804 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
11807 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11809 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
11812 * c-parser.c (c_parser_declaration_or_fndef): Improved
11815 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
11817 * config/i386/winnt.c (i386_pe_start_function): Make sure
11818 to switch back to function's section.
11820 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
11824 * plugin.c: Move include of dlfcn.h from here...
11825 * system.h: ... to here.
11827 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11829 * doc/cpp.texi (C++ Named Operators): Fix markup for header
11831 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11832 two extra empty pages in PDF output.
11834 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
11837 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11838 for error recovery purposes behave as if it was not specified so
11839 that the default type is usd.
11841 2011-01-07 Jan Hubicka <jh@suse.cz>
11843 PR tree-optmization/46469
11844 * ipa.c (function_and_variable_visibility): Clear needed flags on
11845 nodes with external decls; handle weakrefs merging correctly.
11847 2011-01-07 Joseph Myers <joseph@codesourcery.com>
11849 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11852 2011-01-07 Jan Hubicka <jh@suse.cz>
11854 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11855 and no longer claim that gold is required for linker plugin.
11856 * configure: Regenerate.
11857 * gcc.c (PLUGIN_COND): New macro.
11858 (LINK_COMMAND_SPEC): Use it.
11859 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11860 * config.in (HAVE_LTO_PLUGIN): New.
11861 * configure.ac (--with-lto-plugin): New parameter; autodetect
11864 2011-01-07 Jan Hubicka <jh@suse.cz>
11866 PR tree-optimization/46367
11867 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11868 when we can update original.
11869 (cgraph_mark_inline_edge): Sanity check.
11870 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11872 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11874 * config/spu/spu.h (ASM_COMMENT_START): Define.
11876 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
11879 * gcc.c (%>S): New.
11880 (SWITCH_KEEP_FOR_GCC): Likewise.
11881 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11882 (do_spec_1): Handle "%>".
11884 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11886 2011-01-07 Jakub Jelinek <jakub@redhat.com>
11889 * config/i386/i386.c (ix86_delegitimize_address): If
11890 simplify_gen_subreg fails, return orig_x.
11893 * value-prof.c (gimple_stringop_fixed_value): Handle
11894 lhs of the call properly.
11896 2011-01-07 Jan Hubicka <jh@suse.cz>
11899 * lto-opt.c (lto_reissue_options): Set flag_shlib.
11901 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11903 * target.def (function_switched_text_sections): New hook.
11904 * doc/tm.texi: Regenerated.
11905 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11906 * final.c (default_function_switched_text_sections): New.
11907 (final_scan_insn): Call function_switched_text_sections when a
11908 mid-function section change occurs.
11909 * output.h (default_function_switched_text_sections): Declare.
11910 * config/darwin-protos.h (darwin_function_switched_text_sections):
11912 * config/darwin.c (darwin_function_switched_text_sections): New.
11913 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11915 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11917 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
11918 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
11919 the secondary code fragment when outputting for DWARF == 2.
11921 2011-01-07 Anatoly Sokolov <aesok@post.ru>
11923 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11924 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11926 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11927 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11929 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
11932 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11933 when it is not empty.
11935 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
11938 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11939 (case ${target}): Add btver1.
11940 * config/i386/driver-i386.c (host_detect_local_cpu): Let
11941 -march=native recognize btver1 processors.
11942 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11943 btver1 def_and_undef
11944 * config/i386/i386.c (struct processor_costs btver1_cost): New
11946 (m_BTVER1): New definition.
11947 (m_AMD_MULTIPLE): Includes m_BTVER1.
11948 (initial_ix86_tune_features): Add btver1 tune.
11949 (processor_target_table): Add btver1 entry.
11950 (static const char *const cpu_names): Add btver1 entry.
11951 (software_prefetching_beneficial_p): Add btver1.
11952 (ix86_option_override_internal): Add btver1 instruction sets.
11953 (ix86_issue_rate): Add btver1.
11954 (ix86_adjust_cost): Add btver1.
11955 * config/i386/i386.h (TARGET_BTVER1): New definition.
11956 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11957 (enum processor_type): Add PROCESSOR_BTVER1.
11958 * config/i386/i386.md (define_attr "cpu"): Add btver1.
11960 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11963 * config/i386/i386.c (legitimize_tls_address)
11964 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11965 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11966 (tls_initial_exec_64_sun): New pattern.
11968 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
11970 * doc/invoke.texi (Overall Options): Improve wording and markup
11971 of the description of -wrapper.
11973 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11975 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11976 rdynamic, threads): New Driver options.
11978 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11981 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11982 if coming from .tdata.
11983 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11985 2011-01-06 Jan Hubicka <jh@suse.cz>
11988 * collect2.c (main): Do not enable LTOmode when plugin is active.
11990 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11993 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11994 --version output if supported.
11995 * configure: Regenerate.
11997 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11999 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
12002 2011-01-06 Jakub Jelinek <jakub@redhat.com>
12005 * c-convert.c (convert): When converting a complex expression
12006 other than COMPLEX_EXPR to a different complex type, ensure
12007 c_save_expr is called instead of save_expr, unless in_late_binary_op.
12008 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
12009 when converting COMPLEX_TYPE.
12011 2011-01-06 Ira Rosen <irar@il.ibm.com>
12013 PR tree-optimization/47139
12014 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
12015 only the last reduction value is used outside the loop. Update
12018 2011-01-05 Joseph Myers <joseph@codesourcery.com>
12020 * config/rtems.opt: New.
12021 * config.gcc (*-*-rtems*): Use rtems.opt.
12023 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
12025 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
12026 processors do not support 3DNow instructions.
12028 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12030 * config/spu/spu.c (spu_option_override): Set parameter
12031 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
12033 2011-01-05 Jan Hubicka <jh@suse.cz>
12035 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
12036 at the command line.
12038 2011-01-05 Martin Jambor <mjambor@suse.cz>
12041 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
12042 deltas on streamed outgoing edges.
12043 (output_node_opt_summary): Output info for outgoing edges only when
12044 the node is in new parameter set.
12045 (output_cgraph_opt_summary): New parameter set, passed to the two
12046 aforementioned functions. Update its forward declaration and its
12049 2011-01-05 Tom Tromey <tromey@redhat.com>
12051 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
12052 operator to c_finish_omp_atomic.
12053 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
12054 (build_unary_op): Update.
12055 (build_modify_expr): Update.
12056 (build_asm_expr): Update.
12058 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12060 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
12061 newly inserted insns.
12062 (pad_bb): Likewise.
12063 (spu_emit_branch_hint): Likewise.
12064 (insert_hbrp_for_ilb_runout): Likewise.
12065 (spu_machine_dependent_reorg): Call df_finish_pass after
12066 schedule_insns returns.
12068 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12070 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
12072 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
12074 PR tree-optimization/47005
12075 * tree-sra.c (struct access): Add 'non_addressable' bit.
12076 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
12077 (decide_one_param_reduction): Return 0 if the parameter is passed by
12078 reference and one of the accesses in the group is non_addressable.
12080 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
12082 PR tree-optimization/47056
12083 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
12084 (mark_load): Likewise. Handle FUNCTION_DECL specially.
12085 (mark_store): Likewise. Pass STMT to ipa_record_reference.
12087 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
12089 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
12090 initializer. Skip view conversions from aggregate types.
12092 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
12095 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
12097 2011-01-04 Philipp Thomas <pth@suse.de>
12099 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
12102 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12104 * function.c (thread_prologue_and_epilogue_insns): Do not crash
12105 on empty epilogue sequences.
12107 2011-01-04 Joseph Myers <joseph@codesourcery.com>
12109 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
12110 non-static): New Driver options.
12112 2011-01-04 Jie Zhang <jie@codesourcery.com>
12115 * gcc.c (default_compilers[]): Set combinable field to 0
12116 for all assembly languages.
12118 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
12120 * config/mips/loongson3a.md: New file.
12121 * config/mips/mips.md: Include loongson3a.md.
12122 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
12125 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
12127 PR middle-end/47017
12128 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
12129 instead of convert_memory_address_addr_space on the base expression.
12131 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12133 * config/spu/spu.c (spu_option_override): Update error text
12134 for bad -march= / -mtune= values.
12136 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12138 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
12139 if branch-hint optimization will be performed.
12141 2011-01-03 Jakub Jelinek <jakub@redhat.com>
12143 PR tree-optimization/47148
12144 * ipa-split.c (split_function): Convert arguments to
12145 DECL_ARG_TYPE if possible.
12147 PR tree-optimization/47155
12148 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
12149 when computing uns.
12151 PR rtl-optimization/47157
12152 * combine.c (try_combine): If undobuf.other_insn becomes
12153 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
12154 and set *new_direct_jump_p too.
12156 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
12158 PR tree-optimization/47021
12159 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
12161 2011-01-03 Jakub Jelinek <jakub@redhat.com>
12163 * gcc.c (process_command): Update copyright notice dates.
12164 * gcov.c (print_version): Likewise.
12165 * gcov-dump.c (print_version): Likewise.
12166 * mips-tfile.c (main): Likewise.
12167 * mips-tdump.c (main): Likewise.
12169 2011-01-03 Martin Jambor <mjambor@suse.cz>
12171 PR tree-optimization/46801
12172 * tree-sra.c (type_internals_preclude_sra_p): Check whether
12173 aggregate fields start at byte boundary instead of the bit-field flag.
12175 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
12178 * gcc.c (main): Revert revision 168407.
12180 2011-01-03 Martin Jambor <mjambor@suse.cz>
12182 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
12184 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12186 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
12187 vector optab to expand vector/scalar shift, update gimple to vector.
12189 2011-01-03 Martin Jambor <mjambor@suse.cz>
12191 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
12194 2011-01-03 Martin Jambor <mjambor@suse.cz>
12196 PR tree-optimization/46984
12197 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
12199 (cgraph_create_indirect_edge): Fixed line length.
12200 (cgraph_indirect_call_info): Declare.
12201 (cgraph_make_edge_direct) Update declaration.
12202 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
12203 (cgraph_create_indirect_edge): Use it.
12204 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
12206 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
12207 the new thunk_delta representation.
12208 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
12210 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
12211 (ipa_read_indirect_edge_info): Likewise.
12212 * lto-cgraph.c (output_edge_opt_summary): New function.
12213 (output_node_opt_summary): Call it on all outgoing edges.
12214 (input_edge_opt_summary): New function.
12215 (input_node_opt_summary): Call it on all outgoing edges.
12217 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
12220 * gcc.c (main): Don't check have_o when settting combine_inputs.
12222 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
12224 * regrename.c: Add general comment describing the pass.
12225 (struct du_head): Remove 'length' field.
12226 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
12227 (regrename_optimize): Do not sort chains. Rework comments, add others.
12228 Force renaming to the preferred class (if any) in the first pass and do
12229 not consider registers that belong to it in the second pass.
12230 (create_new_chain): Do not set 'length' field.
12231 (scan_rtx_reg): Likewise.
12233 2011-01-02 Jakub Jelinek <jakub@redhat.com>
12235 PR tree-optimization/47140
12236 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
12237 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
12238 to bit_value_binop.
12240 PR rtl-optimization/47028
12241 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
12242 parm_birth_insn instead of at the beginning of first bb.
12244 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
12246 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
12247 Remove the word "see" before "@pxref".
12248 * doc/rtl.texi: Remove the word "see" before "@pxref".
12250 2011-01-01 Jan Hubicka <jh@suse.cz>
12252 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
12255 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
12258 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
12261 Copyright (C) 2011 Free Software Foundation, Inc.
12263 Copying and distribution of this file, with or without modification,
12264 are permitted in any medium without royalty provided the copyright
12265 notice and this notice are preserved.