1 2011-04-27 Richard Guenther <rguenther@suse.de>
3 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4 TARGET_MEM_REF handling.
6 2011-04-27 Nick Clifton <nickc@redhat.com>
8 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
9 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
10 (REG_CLASS_NAMES): Likewise.
11 (REG_CLASS_CONTENTS): Likewise.
12 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
13 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
14 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
15 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
16 (EVEN_REGS): New macro. Alias for QUAD_REGS.
17 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
18 duplicate register classes.
19 (frv_class_likely_spilled_p): Likewise.
20 (frv_register_move_cost): Likewise.
22 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
23 end of the regno_reg_class array.
25 2011-04-27 Jakub Jelinek <jakub@redhat.com>
28 * c-typeck.c (build_binary_op): Don't wrap arguments if
31 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
34 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
35 targetm.calls.must_pass_in_stack for void type.
37 2011-04-26 Jan Hubicka <jh@suse.cz>
39 * cgraphbuild.c (build_cgraph_edges): Update call
40 of cgraph_create_edge and cgraph_create_indirect_edge.
41 * cgraph.c (cgraph_create_edge_including_clones,
42 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
43 cgraph_update_edges_for_call_stmt_node): Do not take nest
44 argument; do not initialize call_stmt_size/time.
45 (dump_cgraph_node): Do not dump nest.
46 (cgraph_clone_edge): Do not take loop_nest argument;
47 do not propagate it; do not clone call_stmt_size/time.
48 (cgraph_clone_node): Likewise.
49 (cgraph_create_virtual_clone): Update.
50 * cgraph.h (struct cgraph_edge): Remove
51 call_stmt_size/call_stmt_time/loop_nest.
52 (cgraph_create_edge, cgraph_create_indirect_edge,
53 cgraph_create_edge_including_clones, cgraph_clone_node): Update
55 * tree-emutls.c (gen_emutls_addr): Update.
56 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
57 loop_nest; handle indirect calls, too.
58 (clone_inlined_nodes): Do not care about updating inline summaries.
59 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
60 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
61 stream call_stmt_size/call_stmt_time/loop_nest.
62 * ipa-inline.c (edge_badness): Update.
63 (ipa_inline): dump summaries after inlining.
64 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
66 (inline_edge_summary): New function.
67 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
68 (inline_edge_removal_hook): Handle edge summaries.
69 (inline_edge_duplication_hook): New hook.
70 (inline_summary_alloc): Alloc hooks.
71 (initialize_growth_caches): Do not register removal hooks.
72 (free_growth_caches); Do not free removal hook.
73 (dump_inline_edge_summary): New function.
74 (dump_inline_summary): Use it.
75 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
76 (inline_update_callee_summaries): New function.
77 (inline_merge_summary): Use it.
78 (do_estimate_edge_time, do_estimate_edge_growth): Update.
79 (read_inline_edge_summary): New function.
80 (inline_read_section): Use it.
81 (write_inline_edge_summary): New function.
82 (inline_write_summary): Use it.
83 (inline_free_summary): Free edge new holders.
84 * tree-inline.c (copy_bb): Update.
86 2011-04-26 Jason Merrill <jason@redhat.com>
88 * tree-eh.c (lower_try_finally_switch): Create the label along with
91 2011-04-26 David S. Miller <davem@davemloft.net>
92 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
94 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
95 * configure: Regenerate.
97 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
100 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
102 (VEC_reduc): New code iterator and splitters for vector reduction.
103 (VEC_reduc_name): Ditto.
104 (VEC_reduc_rtx): Ditto.
105 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
106 (reduc_<VEC_reduc_name>_v4sf): Ditto.
108 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
109 support for extracting SF on VSX.
111 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
113 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
114 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
115 double add, minimum, maximum vector reduction.
116 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
117 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
118 optimize double vector reduction.
119 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
121 2011-04-26 Joseph Myers <joseph@codesourcery.com>
123 * config/fr30/fr30.h (inhibit_libc): Don't define.
124 * config/m32r/m32r-protos.h: Correct comment.
125 * config/v850/v850.h (GHS_default_section_names,
126 GHS_current_section_names): Use tree, not union tree_node *.
128 2011-04-26 Xinliang David Li <davidxl@google.com>
130 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass
132 * c-family/c-opts.c (c_common_handle_option): Set
133 warn_maybe_uninitialized.
134 * opts.c (common_handle_option): Ditto.
135 * common.opt: New option.
136 * tree-ssa.c (warn_uninit): Add one more parameter.
137 (warn_uninitialized_var): Pass warning code.
138 * tree-flow.h: Interface change.
141 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
143 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test
145 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
146 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
148 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
150 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
151 * config/mips/mips.opt (mmips-tfile): Remove.
153 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
154 mips-tdump reference to ...
155 (Specific, alpha*-dec-osf5.1): ... here.
156 Adapt for Tru64 UNIX.
157 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
158 reference by Tru64 UNIX.
160 2011-04-26 Jakub Jelinek <jakub@redhat.com>
163 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
164 is error_mark_node, set value to NULL.
166 PR tree-optimization/48734
167 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
168 if return value from maybe_fold_*_comparsions isn't something
169 the code is prepared to handle.
171 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
173 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
175 (ext_QIreg_nomode_operands): Remove.
176 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
180 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
182 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
184 2011-04-26 Richard Guenther <rguenther@suse.de>
186 * c-typeck.c (build_unary_op): Do not expand array-refs via
187 pointer arithmetic. Only adjust qualifiers for function types.
189 2011-04-26 Richard Guenther <rguenther@suse.de>
192 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
193 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
194 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
195 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
197 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
199 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
200 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
201 * doc/extend.texi: Document __underlying_type.
203 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
205 * config/rs6000/titan.md (automata_option "progress"): Remove.
207 2011-04-25 Jeff Law <law@redhat.com>
209 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
211 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
213 * system.h (ENUM_BITFIELD): Remove.
215 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
216 Eric Botcazou <ebotcazou@adacore.com>
218 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
219 for STORE_FLAG_VALUE==-1 case.
221 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
224 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
225 LEGITIMATE_PIC_OPERAND_P.
227 2011-04-24 Jan Hubicka <jh@suse.cz>
229 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
231 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
232 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
233 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
234 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
235 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
236 Sanity check predicate length.
237 (remap_predicate): Likewise; sanity check jump functions.
238 (inline_read_section, inline_write_summary): Sanity check
241 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
244 * doc/extend.texi (Type Traits): Document __is_standard_layout,
245 __is_literal_type, and __is_trivial; update throughout about
246 possibly cv-qualified void types.
248 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
250 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
251 testsuite and make it version agnostic.
253 2011-04-22 Jan Hubicka <jh@suse.cz>
255 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
257 2011-04-23 Jakub Jelinek <jakub@redhat.com>
260 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
261 to VOID_TYPE even around MODIFY_EXPR.
263 2011-04-22 Mike Stump <mikestump@comcast.net>
265 * gensupport.c (read_md_rtx): Fix typo in comment.
266 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
269 2011-04-22 Jan Hubicka <jh@suse.cz>
271 * gengtype.c (open_base_files): Add ipa-inline.h include.
272 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
273 ipa-prop.c; update all uses.
274 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
275 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
276 merge summary of inlined function into former caller.
277 * ipa-inline.c (max_benefit): Remove.
278 (edge_badness): Compensate for removal of benefits.
279 (update_caller_keys): Use
280 reset_node_growth_cache/reset_edge_growth_cache.
281 (update_callee_keys): Likewise.
282 (update_all_callee_keys): Likewise.
283 (inline_small_functions): Do not collect max_benefit; do not reset
284 estimated_growth; call free_growth_caches and initialize_growth_caches.
285 * ipa-inline.h (struct condition, type clause_t, struct predicate,
286 struct size_time_entry): New structures.
287 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
288 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
289 and estimated_growth.
290 (edge_growth_cache_entry): New structure.
291 (node_growth_cache, edge_growth_cache): New global vars.
292 (estimate_growth): Turn into inline.
293 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
294 initialize_growth_caches, free_growth_caches): Declare.
295 (estimate_edge_growth): Rewrite.
296 (estimate_edge_time): Implement as inline cache lookup.
297 (reset_node_growth_cache, reset_edge_growth_cache): New inline
299 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
300 (NUM_CONDITIONS): New constant.
301 (predicate_conditions): New enum.
302 (IS_NOT_CONSTANT): New constant.
303 (edge_removal_hook_holder): New var.
304 (node_growth_cache, edge_growth_cache): New global vars.
305 (true_predicate, single_cond_predicate, false_predicate,
306 not_inlined_predicate, add_condition, add_clause, and_predicates,
307 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
308 dump_clause, dump_predicate, account_size_time,
309 evaulate_conditions_for_edge): New functions.
310 (inline_summary_alloc): Move to heap.
311 (inline_node_removal_hook): Clear condition and entry vectors.
312 (inline_edge_removal_hook): New function.
313 (initialize_growth_caches, free_growth_caches): New function.
314 (dump_inline_summary): Update.
315 (edge_execution_predicate): New function.
316 (will_be_nonconstant_predicate): New function.
317 (estimate_function_body_sizes): Compute BB and constantness predicates.
318 (compute_inline_parameters): Do not clear estimated_growth.
319 (estimate_edge_size_and_time): New function.
320 (estimate_calls_size_and_time): New function.
321 (estimate_callee_size_and_time): New function.
322 (remap_predicate): New function.
323 (inline_merge_summary): New function.
324 (do_estimate_edge_time): New function based on...
325 (estimate_edge_time): ... this one.
326 (do_estimate_edge_growth): New function.
327 (do_estimate_growth): New function based on....
328 (estimate_growth): ... this one.
329 (inline_analyze_function): Analyze after deciding on jump functions.
330 (inline_read_section): New function.
331 (inline_read_summary): Use it.
332 (inline_write_summary): Write all the new data.
333 * ipa-prop.c (ipa_get_param_decl_index): Export.
334 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
335 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
337 (ipa_get_lattice): Move here from ipa-cp.c
338 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
339 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
340 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
341 cgraph_edge_inlinable_p): Remove.
342 * cgraphunit.c: Include ipainline.h
343 (cgraph_process_new_functions): Update call of
344 compute_inline_parameters.
346 2011-04-22 Richard Guenther <rguenther@suse.de>
348 * tree.c (build_int_cst): Properly create canonicalized integer
350 (build_int_cst_type): Remove scary comments.
352 2011-04-22 Xinliang David Li <davidxl@google.com>
354 * toplev.c (process_options): Enable -Werror=coverage-mismatch
355 by default when -Wno-error is not specified.
356 * opts-global.c (decode_options): Remove call to
357 control_warning_options.
359 2011-04-22 Jakub Jelinek <jakub@redhat.com>
361 PR tree-optimization/48717
362 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
363 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
365 2011-04-22 Joseph Myers <joseph@codesourcery.com>
367 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
368 definition where used.
370 2011-04-22 Jakub Jelinek <jakub@redhat.com>
373 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
374 TREE_STATIC variables declared inside of some OpenMP construct.
376 2011-04-22 Martin Jambor <mjambor@suse.cz>
379 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
381 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
384 * c-typeck.c (pop_init_level): Do not warn about initializing
387 2011-04-22 Alan Modra <amodra@gmail.com>
389 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
390 when returning call_cookie.
391 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
392 pointers, to functions with no more vector args than the current
393 function, and some non-local calls for ABI_V4.
394 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
395 sibcall_nonlocal_aix64): Combine to ..
396 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
397 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
398 (sibcall_value_nonlocal_aix<mode>): ..likewise.
399 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
400 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
402 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
403 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
404 sibcall_value_symbolic_64): Delete.
406 2011-04-21 Xinliang David Li <davidxl@google.com>
408 * cgraph.h: Remove pid.
409 * cgraph.c: Remove pid.
410 * value-prof.c (init_node_map): New function.
411 (del_node_map): New function.
412 (find_func_by_funcdef_no): New function.
413 (gimple_ic_transform): Call new function.
414 * cgraphunit.c (cgraph_finalize_function): Remove pid.
415 * function.c (get_last_funcdef_no): New function.
416 * function.h (get_last_funcdef_no): New function.
417 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
419 (tree-profiling): Call node map init and delete function.
421 2011-04-21 Ian Lance Taylor <iant@google.com>
423 * godump.c (go_format_type): Use exported Go name for anonymous
426 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
428 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
429 Call builtin_function_type_list instead of builtin_function_type.
430 (UNARY, BINARY, TRINARY, QUAD): Likewise.
432 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
434 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
435 build_function_type_list instead of build_function_type.
436 Delete variable `endlink'.
438 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
440 * config/s390/s390.c (s390_init_builtins): Call
441 build_function_type_list instead of build_function_type.
443 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
445 * config/ia64/ia64.c (ia64_init_builtins): Call
446 build_function_type_list instead of builtin_function_type.
448 2011-04-21 Easwaran Raman <eraman@google.com>
450 * cfgexpand.c (stack_var): Remove OFFSET...
451 (add_stack_var): ...and its reference here...
452 (expand_stack_vars): ...and here.
453 (stack_var_cmp): Sort by descending order of size.
454 (partition_stack_vars): Change heuristic.
455 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
456 (dump_stack_var_partition): Add newline after each partition.
458 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
459 Jeff Law <law@redhat.com>
461 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
462 * gengtype.c (matching_file_name_substitute): Likewise.
464 2011-04-21 Richard Guenther <rguenther@suse.de>
467 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
469 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
471 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
473 2011-04-21 Richard Guenther <rguenther@suse.de>
475 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
478 2011-04-21 Richard Guenther <rguenther@suse.de>
480 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
481 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
482 Use DECL_P, not SSA_VAR_P.
483 (ptr_derefs_may_alias_p): Likewise.
484 (ptr_deref_may_alias_ref_p_1): Likewise.
485 (decl_refs_may_alias_p): Likewise.
486 (refs_may_alias_p_1): Likewise.
487 (ref_maybe_used_by_call_p_1): Likewise.
488 (call_may_clobber_ref_p_1): Likewise.
489 (indirect_ref_may_alias_decl_p): Assume indirect refrences
490 are either MEM_REF or TARGET_MEM_REF.
491 (indirect_refs_may_alias_p): Likewise.
492 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
493 for MEM_EXPR of indirect calls.
495 2011-04-21 Tristan Gingold <gingold@adacore.com>
497 * vmsdbgout.c (write_srccorr): Compute file length from the string.
498 (dst_file_info_struct): Remove flen field.
499 (lookup_filename): Remove code that set flen field.
501 2011-04-21 Tristan Gingold <gingold@adacore.com>
503 * config/ia64/ia64.c (ia64_start_function): Add a guard.
505 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
508 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
509 vec_extract and vec_concat for non-SSE4_1 targets.
511 2011-04-21 Richard Guenther <rguenther@suse.de>
513 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
516 2011-04-21 Joseph Myers <joseph@codesourcery.com>
518 * config/i386/cygming.h (union tree_node, TREE): Don't define or
520 (FILE): Don't undefine.
522 2011-04-21 Joseph Myers <joseph@codesourcery.com>
524 * config/alpha/alpha.c (struct machine_function): Use rtx, not
526 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
528 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
529 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
530 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
532 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
533 definitions where used.
534 * config/microblaze/microblaze.h (struct microblaze_args): Use
535 rtx, not struct rtx_def *.
536 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
538 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
539 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
540 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
541 not struct rtx_def *.
542 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
544 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
546 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
548 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
550 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
551 operand_equal_p to compare DR_BASE_ADDRESSes.
552 (vect_check_interleaving): Likewise.
554 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
557 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
558 for all Neon struct constants.
560 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
562 * target.def (legitimate_constant_p): New hook.
563 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
564 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
565 * doc/tm.texi: Regenerate.
566 * hooks.h (hook_bool_mode_rtx_true): Declare.
567 * hooks.c (hook_bool_mode_rtx_true): Define.
568 * system.h (LEGITIMATE_CONSTANT_P): Poison.
569 * calls.c (precompute_register_parameters): Replace uses of
570 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
571 (emit_library_call_value_1): Likewise.
572 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
573 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
574 * ira-costs.c (scan_one_insn): Likewise.
575 * recog.c (general_operand, immediate_operand): Likewise.
576 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
577 * reload1.c (init_eliminable_invariants): Likewise.
579 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
581 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
582 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
584 (TARGET_LEGITIMATE_CONSTANT_P): Define.
585 * config/alpha/predicates.md (input_operand): Update call to
586 alpha_legitimate_constant_p.
588 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
589 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
590 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
591 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
592 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
593 (arm_legitimate_constant_p): New functions.
594 (arm_cannot_force_const_mem): Make static.
596 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
598 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
599 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
600 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
601 instead of bfin_legitimate_constant_p.
602 (bfin_legitimate_constant_p): Make static. Add a mode argument.
603 (TARGET_LEGITIMATE_CONSTANT_P): Define.
605 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
607 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
609 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
610 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
611 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
612 (frv_legitimate_constant_p): Make static. Add a mode argument.
614 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
615 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
616 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
618 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
619 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
620 * config/i386/i386.c (legitimate_constant_p): Rename to...
621 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
623 (ix86_cannot_force_const_mem): Update accordingly.
624 (ix86_legitimate_address_p): Likewise.
625 (TARGET_LEGITIMATE_CONSTANT_P): Define.
626 * config/i386/i386.md: Update commentary.
628 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
629 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
630 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
631 (ia64_legitimate_constant_p): Make static. Add a mode argument.
633 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
635 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
636 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
637 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
638 (lm32_legitimate_constant_p): Make static. Add a mode argument.
640 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
641 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
642 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
644 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
645 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
646 (m32r_legitimate_constant_p): New function.
648 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
649 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
650 LEGITIMATE_CONSTANT_P.
651 (LEGITIMATE_CONSTANT_P): Delete.
652 * config/m68k/m68k.c (m68k_expand_prologue): Call
653 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
654 (m68k_legitimate_constant_p): New function.
655 * config/m68k/m68k.md: Update comments.
657 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
658 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
659 (mcore_legitimate_constant_p): New function.
661 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
662 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
663 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
665 (mep_legitimate_address): Update accordingly.
666 (TARGET_LEGITIMATE_CONSTANT_P): Define.
668 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
670 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
671 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
672 static. Check OP's mode for VOIDmode.
673 (microblaze_legitimate_constant_p): New function.
674 (TARGET_LEGITIMATE_CONSTANT_P): Define.
676 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
677 * config/mips/mips.c (mips_legitimate_constant_p): New function.
678 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
679 (TARGET_LEGITIMATE_CONSTANT_P): Define.
680 * config/mips/predicates.md: Update comments.
682 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
683 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
684 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
685 (mmix_legitimate_constant_p): Make static, return a bool, and take
687 (mmix_print_operand_address): Update accordingly.
689 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
691 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
692 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
693 static. Add a mode argument.
694 (TARGET_LEGITIMATE_CONSTANT_P): Define.
696 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
698 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
699 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
700 (pa_legitimate_constant_p): New function.
702 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
704 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
705 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
706 (pdp11_legitimate_constant_p): New function.
708 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
709 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
710 (rs6000_legitimate_constant_p): New function.
712 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
713 (rx_legitimate_constant_p): ...this.
714 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
715 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
716 (rx_legitimate_constant_p): ...this.
717 (TARGET_LEGITIMATE_CONSTANT_P): Define.
718 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
720 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
721 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
722 * config/s390/s390.c (legitimate_constant_p): Rename to...
723 (s390_legitimate_constant_p): ...this. Make static, return a bool,
724 and add a mode argument.
725 (TARGET_LEGITIMATE_CONSTANT_P): Define.
727 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
729 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
730 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
731 (sh_legitimate_constant_p): New function.
733 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
734 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
735 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
736 (legitimate_constant_p): Rename to...
737 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
739 (constant_address_p): Update accordingly.
741 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
742 argument and return a bool.
743 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
744 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
745 (spu_legitimate_constant_p): Add a mode argument and return a bool.
746 (spu_rtx_costs): Update accordingly.
747 * config/spu/predicates.md (vec_imm_operand): Likewise.
749 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
751 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
752 * config/v850/v850.c (v850_legitimate_constant_p): New function.
753 (TARGET_LEGITIMATE_CONSTANT_P): Define.
755 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
756 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
757 * config/vax/vax.c (legitimate_constant_p): Likewise.
759 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
760 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
761 (xtensa_legitimate_constant_p): New function.
763 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
765 * target.def (cannot_force_const_mem): Add a mode argument.
766 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
767 * doc/tm.texi: Regenerate.
768 * hooks.h (hook_bool_mode_rtx_false): Declare.
769 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
770 (hook_bool_mode_const_rtx_true): Likewise.
771 (hook_bool_mode_rtx_false): New function.
772 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
773 to be non-VOID. Update call to cannot_force_const_mem.
774 (find_reloads): Update accordingly.
775 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
776 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
778 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
779 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
780 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
781 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
782 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
783 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
784 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
785 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
786 (m68k_cannot_force_const_mem): ...this new function.
787 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
789 (mips_const_insns, mips_legitimize_const_move): Update calls.
790 (mips_secondary_reload_class): Likewise.
791 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
792 (pa_cannot_force_const_mem): ...this new function.
793 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
794 (rs6000_cannot_force_const_mem): ...this new function.
795 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
797 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
798 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
800 (xtensa_cannot_force_const_mem): ...this new function.
802 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
804 * config/mips/mips.c (mips16_build_function_stub): Call
805 build_function_type_list instead of build_function_type.
806 (mips16_build_call_stub): Likewise.
808 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
810 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
811 instead of build_function_type.
813 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
815 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
816 instead of build_function_type.
818 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
821 * config/i386/i386.md (insv): Change operand 0 constraint to
822 "register_operand". Change operand 1 and 2 constraint to
823 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
824 * config/i386/sse.md (sse4_1_pinsrb): Export.
825 (sse2_pinsrw): Ditto.
826 (sse4_1_pinsrd): Ditto.
827 (sse4_1_pinsrq): Ditto.
828 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
829 * config/i386/i386.c (ix86_expand_pinsr): New.
831 2011-04-20 Easwaran Raman <eraman@google.com>
833 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
834 containing union type only with -fstrict-aliasing.
836 2011-04-20 Jim Meyering <meyering@redhat.com>
838 Remove useless if-before-free tests.
839 * calls.c (expand_call, save_area): Likewise.
840 * cfgcleanup.c (try_forward_edges): Likewise.
841 * collect2.c (collect_execute): Likewise.
842 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
843 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
844 * coverage.c (coverage_checksum_string): Likewise.
845 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
846 * cselib.c (cselib_init): Likewise.
847 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
848 (df_set_clean_cfg): Likewise.
849 * function.c (free_after_compilation): Likewise.
850 * gcc.c (do_spec_1, main): Likewise.
851 * gcov.c (create_file_names): Likewise.
852 * gensupport.c (identify_predicable_attribute): Likewise.
853 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
854 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
855 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
856 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
857 * ipa-pure-const.c (local_pure_const): Likewise.
858 * ipa-reference.c (propagate): Likewise.
859 * ira-costs.c (free_ira_costs): Likewise.
860 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
861 * matrix-reorg.c (mat_free): Likewise.
862 * prefix.c (get_key_value): Likewise.
863 * profile.c (compute_value_histograms): Likewise.
864 * reload1.c (free_reg_equiv): Likewise.
865 * sched-deps.c (free_deps): Likewise.
866 * sel-sched-ir.c (fence_clear): Likewise.
867 * sese.c (set_rename, if_region_set_false_region): Likewise.
868 * tree-data-ref.c (free_rdg): Likewise.
869 * tree-eh.c (lower_try_finally): Likewise.
870 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
871 * tree-ssa-live.c (delete_var_map): Likewise.
872 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
873 * tree-ssa-pre.c (phi_trans_add): Likewise.
875 2011-04-20 Jakub Jelinek <jakub@redhat.com>
877 PR tree-optimization/48611
878 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
879 beyond ERT_MUST_NOT_THROW region.
881 2011-04-20 Catherine Moore <clm@codesourcery.com>
883 * config/mips/mips.opt (mfix-24k): New.
884 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
885 * config/mips/mips.md (length): Increase by 4 for stores if
887 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
888 all noreorder if fixing 24K errata.
889 * doc/invoke.texi: Document mfix-24k.
891 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
893 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
894 quad-word modes, reduce to 9-bit index range when above 1016 limit.
896 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
898 * config/arm/arm.c (arm_gen_constant): Move movw support ....
899 (const_ok_for_op): ... to here.
901 2011-04-20 Kai Tietz <ktietz@redhat.com>
903 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
904 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
906 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
908 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
910 2011-04-20 Richard Guenther <rguenther@suse.de>
912 PR tree-optimization/47892
913 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
916 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
918 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
920 2011-04-20 Tristan Gingold <gingold@adacore.com>
922 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
924 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
928 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
929 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
930 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
931 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
932 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
934 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
937 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
938 (avr_asm_named_section, avr_asm_output_aligned_common,
939 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
940 New functions to update...
941 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
942 (avr_asm_init_sections): Overwrite section callbacks for
943 data_section, bss_section.
944 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
946 (avr_file_end): ...here.
948 2011-04-20 Richard Guenther <rguenther@suse.de>
951 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
952 objects and types here. Adjust for their offset before comparing.
954 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
956 * tree-vect-stmts.c (vectorizable_store): Only chain one related
959 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
961 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
962 (GIMPLE_H): Include $(INTERNAL_FN_H).
963 (OBJS-common): Add internal-fn.o.
964 (internal-fn.o): New rule.
965 * internal-fn.def: New file.
966 * internal-fn.h: Likewise.
967 * internal-fn.c: Likewise.
968 * gimple.h: Include internal-fn.h.
969 (GF_CALL_INTERNAL): New gf_mask.
970 (gimple_statement_call): Put fntype into a union with a new
972 (gimple_build_call_internal): Declare.
973 (gimple_build_call_internal_vec): Likewise.
974 (gimple_call_same_target_p): Likewise.
975 (gimple_call_internal_p): New function.
976 (gimple_call_internal_fn): Likewise.
977 (gimple_call_fntype): Return null for internal calls.
978 (gimple_call_set_fntype): Assert that the function is not internal.
979 (gimple_call_set_fn): Likewise.
980 (gimple_call_set_fndecl): Likewise.
981 (gimple_call_set_internal_fn): New function.
982 (gimple_call_addr_fndecl): Handle null functions.
983 (gimple_call_return_type): Likewise null types.
984 * gimple.c (gimple_build_call_internal_1): New function.
985 (gimple_build_call_internal): Likewise.
986 (gimple_build_call_internal_vec): Likewise.
987 (gimple_call_same_target_p): Likewise.
988 (gimple_call_flags): Handle calls to internal functions.
989 (gimple_call_fnspec): New function.
990 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
991 (gimple_has_side_effects): Handle null functions.
992 (gimple_rhs_has_side_effects): Likewise.
993 (gimple_call_copy_skip_args): Handle calls to internal functions.
994 * cfgexpand.c (expand_call_stmt): Likewise.
995 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
996 * gimple-fold.c (gimple_fold_call): Handle null functions.
997 (gimple_fold_stmt_to_constant_1): Don't fold
998 calls to internal functions.
999 * gimple-low.c (gimple_check_call_args): Handle calls to internal
1001 * gimple-pretty-print.c (dump_gimple_call): Likewise.
1002 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
1003 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
1004 (do_warn_unused_result): Likewise.
1005 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
1006 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
1007 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
1008 the target of a call.
1009 (initialize_hash_element): Update accordingly.
1010 (hashable_expr_equal_p): Use gimple_call_same_target_p.
1011 (iterative_hash_hashable_expr): Handle calls to internal functions.
1012 (print_expr_hash_elt): Likewise.
1013 * tree-ssa-pre.c (can_value_number_call): Likewise.
1014 (eliminate): Handle null functions.
1015 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
1016 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
1017 (find_func_aliases): Likewise.
1018 * value-prof.c (gimple_ic_transform): Likewise.
1019 (gimple_indirect_call_to_profile): Likewise.
1020 * lto-streamer-in.c (input_gimple_stmt): Likewise.
1021 * lto-streamer-out.c (output_gimple_stmt): Likewise.
1023 2011-04-19 Jan Hubicka <jh@suse.cz>
1025 * ipa-inline-transform.c (save_inline_function_body): Add comments.
1026 * ipa-inline.c (inline_small_functions): Compute summaries first,
1027 populate heap later.
1029 2011-04-19 Jan Hubicka <jh@suse.cz>
1031 * cgraph.h (save_inline_function_body): Remove.
1032 * ipa-inline-transform.c: New file, broke out of...
1033 * ipa-inline.c: ... this one; Update toplevel comment.
1034 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
1036 (update_noncloned_frequencies): Move to ipa-inline-transform.c
1037 (cgraph_mark_inline_edge): Rename to inline_call; move to
1038 ipa-inline-transform.c.
1039 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
1040 move to ipa-inline-transform.c
1041 (recursive_inlining, inline_small_functions, flatten_function,
1042 ipa_inline, inline_always_inline_functions,
1043 early_inline_small_functions): Update.
1044 (inline_transform): Move to ipa-inline-transform.c.
1045 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
1047 * Makefile.in (ipa-inline-transform.o): New file.
1048 * cgraphunit.c (save_inline_function_body): Move to
1049 ipa-inline-transform.c
1051 2011-04-19 DJ Delorie <dj@redhat.com>
1053 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
1054 registers if we already know there aren't any.
1055 (m32c_emit_epilogue): Don't emit a barrier here.
1056 (m32c_emit_eh_epilogue): Likewise.
1057 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
1058 operands at expand time.
1059 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
1061 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
1062 duplicates. Provide aliases instead.
1063 * config/m32c/prologue.md (eh_return): Emit a barrier here.
1064 (eh_epilogue): Add a "(return)" here as a hint to other parts of
1067 2011-04-19 Anatoly Sokolov <aesok@post.ru>
1069 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
1070 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
1071 (general_or_i64_p, sparc_register_move_cost): New function.
1073 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1075 * doc/install.texi (Configuration, --enable-threads): Remove mach.
1076 Add lynx, mipssde. Sort table.
1078 2011-04-19 Xinliang David Li <davidxl@google.com>
1080 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
1083 2011-04-19 Jakub Jelinek <jakub@redhat.com>
1086 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
1087 is a SUBREG with non-MODE_INT mode inside of it.
1089 2011-04-19 Martin Jambor <mjambor@suse.cz>
1091 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
1092 also according to actual contants.
1093 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
1094 (gimple_fold_call): Use it.
1095 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
1097 2011-04-19 Martin Jambor <mjambor@suse.cz>
1099 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
1100 non-pointer assignments.
1102 2011-04-19 Martin Jambor <mjambor@suse.cz>
1104 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
1105 account anc_offset and otr_type from the indirect edge info.
1106 * ipa-prop.c (get_ancestor_addr_info): New function.
1107 (compute_complex_ancestor_jump_func): Assignment analysis moved to
1108 get_ancestor_addr_info, call it.
1109 (ipa_note_param_call): Do not initialize information about polymorphic
1110 calls, return the indirect call graph edge. Remove the last
1111 parameter, adjust all callers.
1112 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
1113 parameters. Initialize polymorphic information in the indirect edge.
1115 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
1118 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
1119 the types if they have different enumeration identifiers.
1121 2011-04-19 Jan Hubicka <jh@suse.cz>
1123 * cgraph.h (cgraph_optimize_for_size_p): Declare.
1124 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
1125 * predict.c (cgraph_optimize_for_size_p): Break out from ...
1126 (optimize_function_for_size_p) ... here.
1128 2011-04-19 Richard Guenther <rguenther@suse.de>
1131 * tree.c (free_lang_data): Do not reset the decl-assembler-name
1134 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
1136 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
1137 if DECL_NO_INLINE_WARNING_P is set on the function.
1139 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
1142 * reload1.c (inc_for_reload): Return void. All callers changed.
1143 (emit_input_reload_insns): Don't try to delete previous output
1144 reloads to a register, or record spill_reg_store for autoincs.
1146 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
1148 * gengtype.h: Updated copyright year.
1149 (struct input_file_st): Add inpisplugin field.
1150 (type_fileloc): New function.
1152 (write_typed_struct_alloc_def): Add gcc_assert.
1153 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
1154 (write_typed_alloc_defns): Don't output for plugin files.
1155 (input_file_by_name): Clear inpisplugin field.
1156 (main): Set inpisplugin field for plugin files.
1158 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
1160 * gengtype-state.c (string_eq): New.
1161 (read_state): Use string_eq instead of strcmp when creating the
1164 2011-04-19 Wei Guozhi <carrot@google.com>
1167 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
1168 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
1170 * config/arm/constraints.md (Uu): New constraint.
1171 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
1173 2011-04-19 Tristan Gingold <gingold@adacore.com>
1175 * config.gcc (-*-*-*vms): Added.
1176 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
1178 * config/vms/vms-ld.c: New file.
1179 * config/vms/vms-ar.c: New file.
1180 * config/vms/t-vmsnative: New file.
1182 2011-04-18 Xinliang David Li <davidxl@google.com>
1184 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
1186 2011-04-18 Jakub Jelinek <jakub@redhat.com>
1189 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
1190 if TREE_TYPE (v) is non-NULL.
1192 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
1193 gimple_get_virt_mehtod_for_binfo.
1194 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
1195 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
1197 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1199 2011-04-18 Michael Matz <matz@suse.de>
1200 Steve Ellcey <sje@cup.hp.com>
1202 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
1203 use its mode as source mode if it isn't VOIDmode.
1205 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
1207 * doc/passes.texi: Fill crossref nodes.
1209 2011-04-18 Jim Meyering <meyering@redhat.com>
1211 Fix doubled-word typos in comments and strings
1212 * config/alpha/vms-unwind.h: s/for for/for/
1213 * config/arm/unwind-arm.h: Likewise.
1214 * config/microblaze/microblaze.c: Likewise.
1215 * config/sh/constraints.md: s/in in/in/
1216 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
1218 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
1220 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
1221 (AVX_FLOAT_MODE_P): Ditto.
1222 (AVX128_VEC_FLOAT_MODE_P): Ditto.
1223 (AVX256_VEC_FLOAT_MODE_P): Ditto.
1224 (AVX_VEC_FLOAT_MODE_P): Ditto.
1225 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
1226 (UNSPEC_MASKSTORE): Ditto.
1227 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
1228 Merge from <sse>_movmsk<ssemodesuffix> and
1229 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
1230 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
1232 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
1233 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
1234 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
1236 2011-04-18 Jan Hubicka <jh@suse.cz>
1238 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
1240 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
1241 (want_inline_function_called_once_p): Break out the logic from
1243 (edge_badness): Ensure that profile is not misupdated.
1244 (lookup_recursive_calls): Prioritize by call frequencies.
1245 (inline_small_functions): Move program size estimates here;
1246 actually process whole queue even when unit growth has been
1247 met. (to properly compute inline_failed reasons and for the
1248 case unit size decrease.) Revisit comments on recursive inlining.
1249 (ipa_inline): Remove unit summary code; first inline hot calls
1250 of functions called once, cold calls next.
1251 (order, nnodes): Remove unused variables.
1252 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
1253 (GTFILES): Remove ipa-inline.c
1254 * sel-sched.c (fill_insns): Silence uninitialized var warning.
1256 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
1258 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
1260 2011-04-18 Jie Zhang <jie@codesourcery.com>
1261 Richard Earnshaw <rearnsha@arm.com>
1263 * arm.c (neon_builtin_type_bits): Remove.
1264 (typedef enum neon_builtin_mode): New.
1265 (T_MAX): Don't define.
1266 (typedef enum neon_builtin_datum): Remove bits, codes[],
1267 num_vars and base_fcode. Add mode, code and fcode.
1268 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
1269 VAR10): Change accordingly.
1270 (neon_builtin_data[]): Change accordingly
1271 (arm_init_neon_builtins): Change accordingly.
1272 (neon_builtin_compare): Remove.
1273 (locate_neon_builtin_icode): Remove.
1274 (arm_expand_neon_builtin): Change accordingly.
1276 * arm.h (enum arm_builtins): Move to ...
1277 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
1279 * arm.c (arm_builtin_decl): Declare.
1280 (TARGET_BUILTIN_DECL): Define.
1281 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
1282 (arm_builtin_decls[]): New.
1283 (arm_init_neon_builtins): Store builtin declarations in
1284 arm_builtin_decls[].
1285 (arm_init_tls_builtins): Likewise.
1286 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
1287 (arm_builtin_decl): New.
1289 2011-04-18 Richard Guenther <rguenther@suse.de>
1291 * tree.c (upper_bound_in_type): Build properly canonicalized
1293 (lower_bound_in_type): Likewise.
1295 2011-04-18 Richard Guenther <rguenther@suse.de>
1297 * gimple.h (gimple_call_addr_fndecl): New function.
1298 (gimple_call_fndecl): Use it.
1299 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
1301 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
1302 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
1304 2011-04-18 Richard Guenther <rguenther@suse.de>
1307 * tree.c (build_string): STRING_CST is now derived from tree_typed.
1309 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
1312 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
1313 DECL_IN_CONSTANT_POOL without RTL.
1315 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
1316 Ira Rosen <ira.rosen@linaro.org>
1319 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
1320 to match neon_vzip/vuzp/vtrn_internal.
1321 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
1322 outputs explicitly dependent on both inputs.
1323 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
1325 2011-04-18 Jakub Jelinek <jakub@redhat.com>
1327 PR tree-optimization/48616
1328 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
1329 whether the shift is by scalar or vector based on whether all SLP
1330 scalar stmts have the same rhs.
1332 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
1334 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
1337 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
1339 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
1342 2011-04-17 Jan Hubicka <jh@suse.cz>
1344 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
1345 * cgrpahunit.c (cgraph_finalize_function): Do not set
1346 finalized_by_frontend.
1347 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1348 finalized_by_frontend.
1350 2011-04-17 Jan Hubicka <jh@suse.cz>
1352 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
1353 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
1354 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
1355 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
1357 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
1359 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
1361 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
1364 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
1365 is non-null before accessing it.
1366 (input_cgraph): Remove trailing spaces.
1368 2011-04-17 Revital Eres <revital.eres@linaro.org>
1370 * params.def (sms-min-sc): New param flag.
1371 * modulo-sched.c (sms_schedule): Use it.
1372 * doc/invoke.texi (sms-min-sc): Document it.
1374 2011-04-17 Jan Hubicka <jh@suse.cz>
1376 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1377 present, also set gimple_call_set_cannot_inline.
1378 * ipa-inline.c: Update toplevel comment.
1380 (cgraph_clone_inlined_nodes): Fix linebreaks.
1381 (cgraph_check_inline_limits): Restructure to ...
1382 (caller_growth_limits): ... this one; be more tolerant
1383 on growth in nested inline chains; add explanatory comment;
1384 fix stack accounting thinko introduced by previous patch.
1385 (cgraph_default_inline_p): Remove.
1386 (report_inline_failed_reason): New function.
1387 (can_inline_edge_p): New function.
1388 (can_early_inline_edge_p): New function.
1389 (leaf_node_p): Move upwards in file.
1390 (want_early_inline_function_p): New function.
1391 (want_inline_small_function_p): New function.
1392 (want_inline_self_recursive_call_p): New function.
1393 (cgraph_edge_badness): Rename to ...
1394 (edge_badness) ... this one; fix linebreaks.
1395 (update_edge_key): Update call of edge_baddness; add
1396 detailed dump about queue updates.
1397 (update_caller_keys): Use can_inline_edge_p and
1398 want_inline_small_function_p.
1399 (cgraph_decide_recursive_inlining): Rename to...
1400 (recursive_inlining): Use can_inline_edge_p and
1401 want_inline_self_recursive_call_p; simplify and remove no longer
1403 (cgraph_set_inline_failed): Remove.
1404 (add_new_edges_to_heap): Use can_inline_edge_p and
1405 want_inline_small_function_p.
1406 (cgraph_decide_inlining_of_small_functions): Rename to ...
1407 (inline_small_functions): ... this one; cleanup; use
1408 can/want predicates; cleanup debug ouput; work edges till fibheap
1409 is exhausted and do not stop once unit growth is reached; remove
1410 later loop processing remaining edges.
1411 (cgraph_flatten): Rename to ...
1412 (flatten_function): ... this one; use can_inline_edge_p
1413 and can_early_inline_edge_p predicates.
1414 (cgraph_decide_inlining): Rename to ...
1415 (ipa_inline): ... this one; remove unreachable nodes before
1416 inlining functions called once; simplify the pass.
1417 (cgraph_perform_always_inlining): Rename to ...
1418 (inline_always_inline_functions): ... this one; use
1419 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1420 (cgraph_decide_inlining_incrementally): Rename to ...
1421 (early_inline_small_functions): ... this one; simplify
1422 using new predicates; cleanup; make dumps prettier.
1423 (cgraph_early_inlining): Rename to ...
1424 (early_inliner): newer inline regular functions into always-inlines;
1425 fix updating of call stmt summaries.
1426 (pass_early_inline): Update for new names.
1427 (inline_transform): Fix formating.
1428 (gate_cgraph_decide_inlining): Rename to ...
1429 (pass_ipa_inline): ... this one.
1430 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1431 * ipa-inline-analysis.c (dump_inline_summary): Update.
1432 (compute_inline_parameters): Do not compute disregard_inline_limits;
1433 look for mismatching arguments.
1434 (estimate_growth): Fix handlig of non-trivial self recursion.
1435 (inline_read_summary): Do not read info->disregard_inline_limits.
1436 (inline_write_summary): Do not write info->disregard_inline_limits.
1437 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1438 and move all checks into can_inline_edge_p predicate; re-enable code
1439 comparing optimization levels.
1440 (expand_call_inline): Do not test inline_forbidden_into_p.
1441 * Makefile.in (ipa-inline.o): Update arguments.
1443 2011-04-17 Revital Eres <revital.eres@linaro.org>
1445 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1447 2011-04-17 Revital Eres <revital.eres@linaro.org>
1449 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1451 2011-04-17 Michael Matz <matz@suse.de>
1453 PR tree-optimization/48622
1455 * ipa-inline-analysis.c (inline_read_summary): Read size/time
1456 in same order as they're written.
1458 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1460 * config/pa/predicates.md: Reorganize and simplify predicates.
1461 Eliminate duplicate code checks.
1462 (arith_operand): Rename to arith14_operand
1463 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1464 * config/pa/pa.md: Use renamed operands.
1465 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1466 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1467 arith11_operand, adddi3_operand, indexed_memory_operand,
1468 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1469 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1470 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1471 move_dest_operand, move_src_operand, prefetch_cc_operand,
1472 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1473 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1474 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1475 div_operand, int5_operand, movb_comparison_operator,
1476 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1477 arith_double_operand, ireg_operand, lhs_lshift_operand,
1478 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1479 integer_store_memory_operand): Likewise.
1480 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1481 (integer_store_memory_operand, read_only_operand,
1482 function_label_operand, borx_reg_operand,
1483 non_hard_reg_operand): Likewise.
1484 (eq_neq_comparison_operator): Delete unused operator.
1485 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1486 function_label_operand.
1487 (emit_move_sequence): Likewise.
1489 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1491 * config/i386/sse.md (sseunpackmode): New mode attribute.
1492 (ssepackmode): Ditto.
1493 (vec_pack_trunc_<mode>): Macroize expander from
1494 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1495 (vec_unpacks_lo_<mode>): Macroize expander from
1496 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1497 (vec_unpacks_hi_<mode>): Macroize expander from
1498 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1499 (vec_unpacku_lo_<mode>): Macroize expander from
1500 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1501 (vec_unpacku_hi_<mode>): Macroize expander from
1502 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1503 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1504 ix86_expand_sse4_unpack.
1505 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1507 2011-04-16 Jan Hubicka <jh@suse.cz>
1509 * cgraphbuild.c: Include ipa-inline.h.
1510 (reset_inline_failed): Use initialize_inline_failed.
1511 * cgraph.c: Include ipa-inline.h.
1512 (cgraph_create_node_1): Do not initialize estimated_growth.
1513 (initialize_inline_failed): More to ipa-inline-analysis.c
1514 (dump_cgraph_node): Do not dump inline flags.
1515 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1516 and disregard_inline_limits flags.
1517 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1518 time, size, estimated_growth.
1519 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1521 * cgraphunit.c (cgraph_decide_is_function_needed): Use
1522 DECL_DISREGARD_INLINE_LIMITS.
1523 (cgraph_analyze_function): Do not initialize
1524 node->local.disregard_inline_limits.
1525 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1526 inlinable, versionable and disregard_inline_limits.
1527 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1528 cgraph_check_inline_limits, cgraph_default_inline_p,
1529 cgraph_edge_badness, update_caller_keys, update_callee_keys,
1530 add_new_edges_to_heap): Update.
1531 (cgraph_decide_inlining_of_small_function): Update; set
1532 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1533 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1534 cgraph_decide_inlining_incrementally): Update.
1535 * ipa-inline.h (inline_summary): Add inlinable, versionable,
1536 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1537 time, size and estimated_growth parameters.
1538 (estimate_edge_growth): Update.
1539 (initialize_inline_failed): Declare.
1540 * ipa-split.c: Include ipa-inline.h
1541 (execute_split_functions): Update.
1542 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1543 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1544 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1545 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1546 estimated_growth to INT_MIN.
1547 (inline_node_duplication_hook): Likewise.
1548 (dump_inline_summary): Dump new fields.
1549 (compute_inline_parameters): Update.
1550 (estimate_edge_time, estimate_time_after_inlining,
1551 estimate_size_after_inlining, estimate_growth, inline_read_summary,
1552 inline_write_summary):
1553 (initialize_inline_failed): Move here from cgraph.c.
1554 * tree-sra.c: Include ipa-inline.h.
1555 (ipa_sra_preliminary_function_checks): Update.
1556 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1559 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1561 * config/i386/sse.md (V16): New mode iterator.
1563 (AVXMODEQI, AVXMODEDI): Remove.
1564 (sse2, sse3): New mode attribute.
1565 (mov<mode>): Use V16 mode iterator.
1566 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1567 (push<mode>1): Use V16 mode iterator.
1568 (movmisalign<mode>): Ditto.
1569 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1570 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1571 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1572 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1573 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1574 avx_movdqu<avxmodesuffix>.
1575 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1576 *avx_movdqu<avxmodesuffix>.
1577 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1578 avx_lddqu<avxmodesuffix>.
1579 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1580 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1581 avx_movnt<AVXMODEDI:mode>.
1582 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1583 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1585 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
1588 * haifa-sched.c (prune_ready_list, schedule_block): Use
1589 sched_pressure_p rather than flag_sched_pressure.
1591 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
1593 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1594 cgraph_get_node instead of cgraph_get_create_node.
1596 2011-04-15 Jakub Jelinek <jakub@redhat.com>
1598 * cfgexpand.c (expand_debug_expr): Use
1599 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1601 2011-04-15 Michael Matz <matz@suse.de>
1603 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1604 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1605 * function.c (gimplify_parameters): Ditto.
1606 * gimplify.c (gimplify_vla_decl): Ditto.
1608 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1609 (gimple_call_set_alloca_for_var): New inline function.
1610 (gimple_call_alloca_for_var_p): Ditto.
1611 * gimple.c (gimple_build_call_from_tree): Remember
1612 CALL_ALLOCA_FOR_VAR_P state.
1613 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1615 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1616 calls if they were for VLA objects.
1618 2011-04-15 Martin Jambor <mjambor@suse.cz>
1620 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1623 2011-04-15 Martin Jambor <mjambor@suse.cz>
1626 * tree-emutls.c (lower_emutls_function_body): Call
1627 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
1630 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1632 * c-decl.c (detect_field_duplicates): Call
1633 objc_detect_field_duplicates instead of objc_get_interface_ivars.
1635 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
1637 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1638 * gimple.c (gimple_asm_clobbers_memory_p): Define.
1639 * ipa-pure-const.c (check_stmt): Call it.
1640 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1642 2011-04-15 Richard Guenther <rguenther@suse.de>
1644 PR tree-optimization/48290
1645 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1646 Properly decide inhibiting propagation based on the valueized
1647 operand. Do loop-closed SSA form preserving here ...
1648 (init_copy_prop): ... not here.
1650 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
1653 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1654 (*ieee_smax<mode>3): Likewise.
1656 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1658 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1659 Replace match_operand with match_dup for the third operand in
1662 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1664 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1665 to track processing of conditionals. Update all callers.
1666 (try_combine, simplify_if_then_else): Update.
1668 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1670 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1673 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
1675 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1676 instead of match_operand for operand 3.
1678 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
1680 * recog.h (insn_operand_data): Add an "allows_mem" field.
1681 * genoutput.c (output_operand_data): Initialize it.
1682 * optabs.c (maybe_legitimize_operand_same_code): New function.
1683 (maybe_legitimize_operand): Use it when matching the original
1686 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1688 * gimplify.c: Fix issues in comments throughout.
1689 (voidify_wrapper_expr): Fix long line.
1690 (build_stack_save_restore): Likewise.
1691 (gimplify_loop_expr): Likewise.
1692 (gimplify_compound_lval): Likewise.
1693 (gimplify_init_ctor_eval): Likewise.
1694 (gimplify_modify_expr_rhs): Likewise.
1695 (omp_notice_threadprivate_variable): Likewise.
1697 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1699 * cfgexpand.c (expand_call_stmt): Convert the function type to the
1700 original one if this is not a builtin function.
1702 2011-04-14 Jakub Jelinek <jakub@redhat.com>
1705 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1706 offset it as needed based on top 2 bits in operands[3], change
1707 MEM mode to SFmode and mask those 2 bits away from operands[3].
1709 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1711 * c-parser.c (c_parser_objc_protocol_definition): Updated for
1712 change from objc_declare_protocols() to objc_declare_protocol().
1714 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
1716 * config/i386/sse.md (sse4_1): New mode attribute.
1717 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1718 avx_blend<ssemodesuffix><avxmodesuffix> and
1719 sse4_1_blend<ssemodesuffix> using VF mode iterator.
1720 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1721 avx_blendv<ssemodesuffix><avxmodesuffix> and
1722 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1723 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1724 avx_dp<ssemodesuffix><avxmodesuffix> and
1725 sse4_1_dp<ssemodesuffix> using VF mode iterator.
1726 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1727 (sse4_1_packusdw): Merge with *avx_packusdw.
1728 (sse4_1_pblendvb): Merge with *avx_pblendvb.
1729 (sse4_1_pblendw): Merge with *avx_pblendw.
1730 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1731 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1732 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1734 (sse4_1_round<ssescalarmodesuffix>): Merge with
1735 *avx_round<ssescalarmodesuffix>.
1736 (aesenc): Merge with *avx_aesenc.
1737 (aesenclast): Merge with *avx_aesenclast.
1738 (aesdec): Merge with *avx_aesdec.
1739 (aesdeclast): Merge with *avx_aesdeclast.
1740 (pclmulqdq): Merge with *pclmulqdq.
1741 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1743 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1745 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
1748 * cfgexpand.c (get_decl_align_unit): Renamed to ...
1749 (align_local_variable): This. Update DECL_ALIGN.
1750 (add_stack_var): Updated.
1751 (expand_one_stack_var): Likewise.
1753 2011-04-14 Richard Guenther <rguenther@suse.de>
1755 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1757 (dse_initialize_block_local_data, dse_leave_block,
1758 record_voperand_set, get_stmt_uid): Likewise.
1759 (dse_possible_dead_store_p): Allow any kind of killing stmt.
1760 (dse_optimize_stmt): Remove voperand set handling code.
1761 Simplify and improve to handle any kind of killing stmt.
1762 (dse_record_phi): Remove.
1763 (dse_enter_block): Simplify.
1764 (tree_ssa_dse): Likewise.
1765 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1767 2011-04-14 Jan Hubicka <jh@suse.cz>
1769 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1770 * cgraph.h (struct inline_summary): Move to ipa-inline.h
1771 (cgraph_local_info): Remove inline_summary.
1772 * ipa-cp.c: Include ipa-inline.h.
1773 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1774 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1776 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1777 (input_overwrite_node): Do not set inline summary.
1778 (input_node): Do not stream inline summary.
1779 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1780 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1781 growth; we do not have inline parameters computed for that anyway.
1782 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1783 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1784 (inline_summary_t): New type and VECtor.
1785 (debug_inline_summary, dump_inline_summaries): Declare.
1786 (inline_summary): Use VOCtor.
1787 (estimate_edge_growth): Kill hack computing call stmt size directly.
1788 * lto-section-in.c (lto_section_name): Add inline section.
1789 * ipa-inline-analysis.c: Include lto-streamer.h
1790 (node_removal_hook_holder, node_duplication_hook_holder): New holders
1791 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1792 (inline_summary_vec): Define.
1793 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1794 dump_inline_summaries): New functions.
1795 (estimate_function_body_sizes): Properly compute size/time of outgoing
1797 (compute_inline_parameters): Alloc inline_summary; do not compute
1798 size/time of incomming calls.
1799 (estimate_edge_time): Avoid missing time summary hack.
1800 (inline_read_summary): Read inline summary info.
1801 (inline_write_summary): Write inline summary info.
1802 (inline_free_summary): Free all hooks and inline summary vector.
1803 * lto-streamer.h: Add LTO_section_inline_summary section.
1804 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1805 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1807 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1809 * tree-vectorizer.h (vect_strided_store_supported): Add a
1810 HOST_WIDE_INT argument.
1811 (vect_strided_load_supported): Likewise.
1812 (vect_permute_store_chain): Return void.
1813 (vect_transform_strided_load): Likewise.
1814 (vect_permute_load_chain): Delete.
1815 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1816 count argument. Check that the count is a power of two.
1817 (vect_strided_load_supported): Likewise.
1818 (vect_permute_store_chain): Return void. Update after above changes.
1819 Assert that the access is supported.
1820 (vect_permute_load_chain): Likewise.
1821 (vect_transform_strided_load): Return void.
1822 * tree-vect-stmts.c (vectorizable_store): Update calls after
1823 above interface changes.
1824 (vectorizable_load): Likewise.
1825 (vect_analyze_stmt): Don't check for strided powers of two here.
1827 2011-04-14 Richard Guenther <rguenther@suse.de>
1829 PR tree-optimization/48590
1830 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1831 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1832 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1833 BUILT_IN_STACK_SAVE.
1834 * tree-ssa-dce.c (propagate_necessity): Handle
1835 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1837 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1839 * c-parser.c (c_parser_objc_class_declaration): Updated call to
1842 2011-04-14 Richard Guenther <rguenther@suse.de>
1844 * tree.h (get_object_alignment_1): Declare.
1845 * builtins.c (get_object_alignment_1): Split out worker from ...
1846 (get_object_alignment): ... here.
1847 * fold-const.c (get_pointer_modulus_and_residue): Use
1848 get_object_alignment_1.
1850 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1852 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1854 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1855 parameter. Generalise code to handle arrays as well as vectors.
1856 (vect_setup_realignment): Update accordingly.
1857 * tree-vect-stmts.c (vectorizable_store): Likewise.
1858 (vectorizable_load): Likewise.
1860 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1862 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1863 within the per-copy loop.
1865 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1867 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1870 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1872 * doc/options.texi (Negative): Explicitly mention that the
1873 Negative chain must be circular.
1875 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
1877 * function.h (block_chainon): Declare.
1878 * function.c (block_chainon): Define.
1880 2011-04-14 Anatoly Sokolov <aesok@post.ru>
1881 Eric Weddington <eric.weddington@atmel.com>
1882 Georg-Johann Lay <avr@gjlay.de>
1884 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1886 (avr_init_builtins, avr_expand_builtin,
1887 avr_expand_delay_cycles, avr_expand_unop_builtin,
1888 avr_expand_binop_builtin ): New functions.
1889 (avr_builtin_id): New enum
1890 (struct avr_builtin_description): New struct
1891 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1892 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1894 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1895 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1896 UNSPECV_DELAY_CYCLES): new enumeration values
1897 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1898 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1899 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1900 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1901 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1902 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1903 "fmulsu"): New insns
1905 * config/avr/avr-c.c: fix line endings
1906 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1907 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1908 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1909 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1910 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1912 * doc/extend.texi (AVR Built-in Functions): New node
1913 (Target Builtins): Add documentation of AVR
1916 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
1919 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1920 alone. Error if non-const data has attribute progmem.
1922 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1924 * tree.h (struct tree_constructor): Include tree_typed instead of
1926 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1927 TS_TYPED instead of TS_COMMON.
1929 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1931 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1932 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1933 (sse2_psadbw): Merge with *avx_psadbw.
1934 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1935 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1936 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1937 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1938 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1939 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1940 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1941 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1942 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1943 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1944 (ssse3_palignrti): Merge with *avx_palignrti.
1946 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1948 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1949 * tree-ssanames.c (fini_ssanames): VEC_free it.
1950 (make_ssa_name_fn): Update for VECness of free_ssanames.
1951 (release_ssa_name, release_dead_ssa_names): Likewise.
1952 * tree.h (struct tree_ssa_name): Include tree_typed instead of
1954 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1955 TS_TYPED instead of TS_COMMON.
1957 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1959 * postreload-gcse.c (gcse_after_reload_main): Add calls to
1960 statistics_counter_event.
1961 * tree-ssa-copyrename.c (stats): Define.
1962 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
1963 statistics_counter_event.
1964 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1965 (bswap_stats, widen_mul_stats): Define.
1966 (insert_reciprocals): Increment rdivs_inserted.
1967 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
1968 rfuncs_inserted. Add calls to statistics_counter_event.
1969 (execute_cse_sincos_1): Increment inserted.
1970 (execute_cse_sincos): Zeroize sincos_stats. Add call to
1971 statistics_counter_event.
1972 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
1973 of bswap_stats. Add calls to statistics_counter_event.
1974 (convert_mult_to_widen): Increment widen_mults_inserted.
1975 (convert_plusminus_to_widen): Increment maccs_inserted.
1976 (convert_mult_to_fma): Increment fmas_inserted.
1977 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
1978 calls to statistics_counter_event.
1980 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
1982 PR rtl-optimization/48455
1983 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1984 `temp_costs->mem_cost'.
1986 2011-04-13 Jan Hubicka <jh@suse.cz>
1988 * ipa-inline.h: New file.
1989 * ipa-inline-analysis.c: New file. Broken out of ...
1990 * ipa-inline.c: ... this file; update toplevel comment;
1991 include ipa-inline.h
1992 (inline_summary): Move to ipa-inline.h
1993 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1994 ipa-inline-analysis.c.
1995 (cgraph_estimate_time_after_inlining): Rename to
1996 estiamte_time_after_inlining; move to ipa-inline-analysis.c
1997 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1998 to estimate_edge_growth.
1999 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
2000 rename to estimate_size_after_inlining.
2001 (cgraph_mark_inline_edge): Update for new naming convention.
2002 (cgraph_check_inline_limits): Likewise.
2003 (cgraph_edge_badness): Likewise.
2004 (cgraph_decide_recursive_inlining): Likewise.
2005 (cgraph_decide_inlining_of_small_functions): Likewise.
2006 (cgraph_decide_inlining_incrementally): Likewise.
2007 (cgraph_estimate_growth): Rename to estimate_growth; move to
2008 ipa-inline-analysis.c.
2009 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
2010 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
2011 (compute_inline_parameters): Likewise.
2012 (compute_inline_parameters_for_current): Likewise.
2013 (pass_inline_parameters): Likewise.
2014 (inline_indirect_intraprocedural_analysis): Likewise.
2015 (analyze_function): Rename to inline_analyze_function; likewise.
2016 (add_new_function): Move to ipa-inline-analysis.c.
2017 (inline_generate_summary): Likewise.
2018 (inline_read_summary): Likewise.
2019 (inline_write_summary): Likewise.
2020 * Makefile.in (ipa-inline-analysis.c): New file.
2022 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2024 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
2025 * configure: Regenerate.
2027 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2029 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
2030 instead of tree_common.
2031 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
2033 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
2034 TS_TYPED rather than TS_COMMON.
2035 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
2037 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
2040 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
2041 r20 around calls of __tablejump_elpm__
2043 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2046 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
2048 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
2050 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
2052 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
2053 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
2054 (cfi_vec): New typedef.
2055 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
2056 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
2057 (cie_cfi_vec): New static variable.
2058 (cie_cfi_head): Delete.
2059 (add_cfi): Accept a cfi_vec * as first argument. All callers and
2060 declaration changed. Use vector rather than list operations.
2061 (new_cfi): Don't initialize the dw_cfi_next field.
2062 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
2063 rather than list operations.
2064 (lookup_cfa): Use vector rather than list operations.
2065 (output_cfis): New argument upto. Accept a cfi_vec rather than
2066 a dw_cfi_ref list head as argument. All callers changed.
2067 Iterate over the vector using upto as a maximum index.
2068 (output_all_cfis): New static function.
2069 (output_fde): Use vector rather than list operations. Use the
2070 new upto argument for output_cfis rather than manipulating a
2072 (dwarf2out_begin_prologue): Change initializations to match
2074 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
2075 from the vector length rather than searching for the end of a list.
2076 Use output_all_cfis.
2077 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
2079 2011-04-13 Nick Clifton <nickc@redhat.com>
2081 * config/rx/rx.md (movmemsi): Do not use this pattern when
2082 volatile pointers are involved.
2084 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
2086 * config/i386/sse.md (pinsrbits): Remove.
2087 (sse2_packsswb): Merge with *avx_packsswb.
2088 (sse2_packssdw): Merge with *avx_packssdw.
2089 (sse2_packuswb): Merge with *avx_packuswb.
2090 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
2091 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
2092 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
2093 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
2094 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
2095 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
2096 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
2097 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
2098 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
2099 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
2100 (sse2_loadld): Merge with *avx_loadld.
2101 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
2102 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
2103 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
2104 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
2105 (vec_concatv2di): Merge with *vec_concatv2di_avx.
2107 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2109 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
2111 * print-tree.c (print_node): Likewise.
2112 * tree-inline.c (copy_tree_r): Likewise.
2113 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
2114 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
2115 instead of TS_COMMON.
2116 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
2117 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
2118 (copy_node_stat): Zero TREE_CHAIN only if necessary.
2119 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
2120 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
2122 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
2124 (TREE_CHAIN): Check for a TS_COMMON structure.
2125 (TREE_TYPE): Check for a TS_TYPED structure.
2127 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
2129 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2130 cgraph_get_create_node instead of cgraph_node.
2132 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2134 * c-parser.c (c_parser_initelt): Updated call to
2135 objc_build_message_expr.
2136 (c_parser_postfix_expression): Likewise.
2138 2011-04-12 Kai Tietz <ktietz@redhat.com>
2140 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
2141 MASK_MS_BITFIELD_LAYOUT bit.
2143 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2145 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
2146 assert it is always true.
2147 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
2150 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2152 * c-parser.c (c_lex_one_token): Rewritten conditional used when
2153 compiling Objective-C to be more efficient.
2155 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
2157 * opts-common.c (decode_cmdline_options_to_array): Remove variable
2160 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2162 * recog.h, genoutput.c, optabs.c: Revert last patch.
2164 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2167 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
2169 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2171 * recog.h (insn_operand_data): Add an "allows_mem" field.
2172 * genoutput.c (output_operand_data): Initialize it.
2173 * optabs.c (maybe_legitimize_operand_same_code): New function.
2174 (maybe_legitimize_operand): Use it when matching the original
2177 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2179 * genpreds.c (process_define_predicate): Move most processing
2180 to gensupport.c. Continue to validate the expression.
2181 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
2182 (process_define_predicate): Move processing to gensupport.c.
2183 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
2184 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
2185 (compute_predicate_codes): Moved from genrecog.c. Add lineno
2187 (valid_predicate_name_p): New function, split out from old
2188 genpreds.c:process_define_predicate.
2189 (process_define_predicate): New function, combining code from
2190 old genpreds.c and genrecog.c functions.
2191 (process_rtx): Call it for DEFINE_PREDICATE and
2192 DEFINE_SPECIAL_PREDICATE.
2194 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2196 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
2197 size of a '%A' memory reference.
2198 (T_DREG, T_QREG): New neon_builtin_type_bits.
2199 (arm_init_neon_builtins): Assert that the load and store operands
2200 are neon_struct_operands.
2201 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
2202 (NEON_ARG_MEMORY): New builtin_arg.
2203 (neon_dereference_pointer): New function.
2204 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
2205 Handle NEON_ARG_MEMORY.
2206 (arm_expand_neon_builtin): Update after above interface changes.
2207 Use NEON_ARG_MEMORY for loads and stores.
2208 * config/arm/predicates.md (neon_struct_operand): New predicate.
2209 * config/arm/iterators.md (V_two_elem): Tweak formatting.
2210 (V_three_elem): Use BLKmode for accesses that have no associated mode.
2211 (V_four_elem): Tweak formatting.
2212 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
2213 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
2214 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
2215 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
2216 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
2217 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
2218 (neon_vst4<mode>): Replace pointer operand with a memory operand.
2219 Use %A in the output template.
2220 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
2221 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
2222 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
2223 the width of the memory access. Remove post-increment.
2224 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
2226 2011-04-12 Nick Clifton <nickc@redhat.com>
2228 * config/v850/v850.c (expand_prologue): Do not use the CALLT
2229 instruction for interrupt handlers if the target is the basic V850
2231 (expand_epilogue): Likewise.
2233 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2235 PR rtl-optimization/48549
2236 * combine.c (propagate_for_debug): Also stop after BB_END of
2237 this_basic_block. Process LAST and just stop processing after it.
2238 (combine_instructions): If last_combined_insn has been deleted,
2239 set last_combined_insn to its PREV_INSN.
2241 2011-04-12 Richard Guenther <rguenther@suse.de>
2243 PR tree-optimization/46076
2244 * gimple.h (struct gimple_statement_call): Add fntype field.
2245 (gimple_call_fntype): Adjust.
2246 (gimple_call_set_fntype): New function.
2247 * gimple.c (gimple_build_call_1): Set the call function type.
2248 * gimplify.c (gimplify_call_expr): Preserve the function
2249 type the frontend used for the call.
2250 (gimplify_modify_expr): Likewise.
2251 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
2253 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
2255 * tree-ssa.c (useless_type_conversion_p): Function pointer
2256 conversions are useless.
2258 2011-04-12 Martin Jambor <mjambor@suse.cz>
2260 * cgraph.h (cgraph_node): Remove function declaration.
2261 (cgraph_create_node): Declare.
2262 (cgraph_get_create_node): Likewise.
2263 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
2264 Updated all callers.
2265 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
2266 the decl does not already exist. Call cgraph_get_create_node instead
2268 (cgraph_get_create_node): New function.
2269 (cgraph_same_body_alias): Update comment.
2270 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
2271 assert it does not return NULL.
2272 (cgraph_update_edges_for_call_stmt): Likewise.
2273 (cgraph_clone_edge): Likewise.
2274 (cgraph_create_virtual_clone): Likewise.
2275 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
2276 instead of cgraph_node.
2277 (cgraph_add_new_function): Call cgraph_create_node or
2278 cgraph_get_create_node instead of cgraph_node.
2279 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
2280 instead of cgraph_node.
2281 (record_eh_tables): Likewise.
2282 (mark_address): Likewise.
2283 (mark_load): Likewise.
2284 (build_cgraph_edges): Call cgraph_get_create_node instead
2286 (rebuild_cgraph_edges): Likewise.
2287 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
2288 instead of cgraph_node.
2289 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
2291 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
2292 cgraph_create_node instead of cgraph_node.
2293 * c-decl.c (finish_function): Call cgraph_get_create_node instead
2295 * lto-cgraph.c (input_node): Likewise.
2296 * lto-streamer-in.c (input_function): Likewise.
2297 * varasm.c (mark_decl_referenced): Likewise.
2298 (assemble_alias): Likewise.
2300 2011-04-12 Martin Jambor <mjambor@suse.cz>
2302 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
2303 instead of cgraph_node and assert it does not return NULL.
2304 * lto-streamer-in.c (lto_read_body): Likewise.
2305 * omp-low.c (new_omp_context): Likewise.
2306 (create_task_copyfn): Likewise.
2307 * tree-emutls.c (lower_emutls_function_body): Likewise.
2308 * matrix-reorg.c (transform_allocation_sites): Likewise.
2310 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2313 * c-typeck.c (build_asm_expr): Error out on attempts to use
2314 void type outputs or inputs for constraints that allow reg or
2317 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
2318 Richard Earnshaw <rearnsha@arm.com>
2321 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
2322 to use sign-magnitude offsets. Reject unsupported unaligned
2323 cases. Add detailed description in comments.
2324 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
2325 condition from TARGET_32BIT to TARGET_ARM.
2327 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
2329 * tree.h (struct typed_tree): New.
2330 (struct tree_common): Include it instead of tree_base.
2331 (TREE_TYPE): Update for new location of type field.
2332 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
2333 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
2334 (union tree_node): Add typed field.
2335 * treestruct.def (TS_TYPED): New.
2336 * lto-streamer.c (check_handled_ts_structures): Handle it.
2337 * tree.c (MARK_TS_TYPED): New macro.
2338 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
2340 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
2342 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
2343 (force_nonfallthru): Do not alter the loop nest if no basic block
2346 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
2348 * config/i386/sse.md (VI): New mode iterator.
2350 (AVX256MODEI): Ditto.
2351 (AVXMODEF4P): Ditto.
2352 (avxvecpsmode): Ditto.
2353 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
2354 (sse2_andnot<mode>3): New expander.
2355 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
2356 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
2357 (<any_logic:code><mode>3): Use VI mode iterator.
2358 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
2359 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
2360 (*andnottf3): Handle AVX three-operand constraints.
2361 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
2363 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2364 Robert Millan <rmh@gnu.org>
2366 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
2367 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
2368 GNU_USER_DYNAMIC_LINKER64): Define.
2369 (REG_NAME): Don't undefine.
2370 (MD_UNWIND_SUPPORT): Undefine.
2371 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
2372 (REG_NAME): Don't undefine.
2373 (MD_UNWIND_SUPPORT): Undefine.
2374 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
2376 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2378 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2379 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2381 2011-04-11 Xinliang David Li <davidxl@google.com>
2383 * value-profile.c (check_ic_target): New function.
2384 (gimple_ic_transform): Sanity check indirect call target.
2385 * gimple-low.c (gimple_check_call_args): Interface change.
2386 (gimple_check_call_matching_types): New function.
2387 * tree-inline.c (tree_can_inline_p): Call new function.
2389 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
2391 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2392 tree-pretty-print.h & realmpfr.h.
2394 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
2397 * ira.c (setup_pressure_classes): Fix typo in loop condition.
2398 (setup_allocno_and_important_classes): Ditto.
2400 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2402 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2403 GNU_USER_DYNAMIC_LINKER.
2404 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2405 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2406 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2407 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2408 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2409 GNU_USER_TARGET_OS_CPP_BUILTINS.
2410 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2411 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2412 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2413 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2414 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2415 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2416 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2417 GNU_USER_TARGET_OS_CPP_BUILTINS.
2418 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2419 GNU_USER_DYNAMIC_LINKER.
2420 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2421 GNU_USER_TARGET_OS_CPP_BUILTINS.
2422 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2423 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2424 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2425 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2426 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2427 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2428 GNU_USER_DYNAMIC_LINKER64): Remove.
2429 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2430 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2431 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2432 GNU_USER_DYNAMIC_LINKER.
2433 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2434 GNU_USER_TARGET_OS_CPP_BUILTINS.
2435 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2436 GNU_USER_TARGET_OS_CPP_BUILTINS.
2437 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2438 to GNU_USER_TARGET_OS_CPP_BUILTINS.
2439 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2440 GNU_USER_TARGET_OS_CPP_BUILTINS.
2441 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2442 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2443 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2444 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2445 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2446 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2447 GNU_USER_DYNAMIC_LINKER.
2448 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2449 GNU_USER_TARGET_OS_CPP_BUILTINS.
2450 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2451 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2452 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2453 GNU_USER_DYNAMIC_LINKER.
2454 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2455 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2456 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2457 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2458 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2459 GNU_USER_DYNAMIC_LINKER.
2460 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2461 GNU_USER_DYNAMIC_LINKERN32.
2462 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2463 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
2464 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
2465 GNU_USER_DYNAMIC_LINKER32.
2466 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2467 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2468 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2469 GNU_USER_DYNAMIC_LINKER.
2470 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2471 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2472 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2473 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2474 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2475 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2476 GNU_USER_DYNAMIC_LINKER32.
2477 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2478 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2479 GNU_USER_DYNAMIC_LINKER.
2480 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2481 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2482 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2483 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
2484 GNU_USER_DYNAMIC_LINKER64.
2485 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2486 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2487 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2488 GNU_USER_DYNAMIC_LINKER.
2489 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2490 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2491 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2492 GNU_USER_DYNAMIC_LINKER.
2493 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2494 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2495 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2496 GNU_USER_DYNAMIC_LINKER32.
2497 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2498 GNU_USER_DYNAMIC_LINKER64.
2499 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2500 GNU_USER_DYNAMIC_LINKER64.
2501 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2502 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2503 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2504 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2505 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2507 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2509 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
2510 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2511 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2512 GNU_USER_DYNAMIC_LINKER.
2513 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2514 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
2515 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2516 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2517 GNU_USER_DYNAMIC_LINKER64.
2518 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2519 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2520 GNU_USER_LINK_EMULATION.
2521 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2522 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2523 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2524 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2525 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2526 CPP_SPEC, CC1_SPEC): Remove.
2527 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2528 (GNU_USER_DYNAMIC_LINKER): Define.
2529 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2530 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2531 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2532 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2533 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2534 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2535 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2536 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2537 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2538 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2539 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2540 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2541 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2542 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2543 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2544 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2545 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2546 GNU_USER_DYNAMIC_LINKER.
2547 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2548 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2549 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2550 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2551 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2552 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2553 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2554 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2555 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2556 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2558 2011-04-11 Kai Tietz <ktietz@redhat.com>
2562 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2563 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2565 (ix86_is_msabi_thiscall): Removed.
2566 (ix86_is_type_thiscall): Likewise.
2567 (ix86_get_callcvt): New function.
2568 (ix86_comp_type_attributes): Simplify check.
2569 (ix86_function_regparm): Use ix86_get_callcvt for calling
2570 convention attribute checks.
2571 (ix86_return_pops_args): Likewise.
2572 (ix86_static_chain): Likewise.
2573 (x86_this_parameter): Likewise.
2574 (x86_output_mi_thunk): Likewise.
2575 (ix86_function_type_abi): Optimize check for types without attributes.
2576 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2577 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2578 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2580 (IX86_BASE_CALLCVT): Helper macro.
2581 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2582 Use ix86_get_callcvt for calling convention attribute checks and avoid
2583 symbol-decoration for stdcall in TARGET_RTD case.
2584 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2586 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2589 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
2591 * config/i386/sse.md (VI_128): New mode iterator.
2592 (VI12_128): Rename from SSEMODE12.
2593 (VI14_128): Rename from SSEMODE14.
2594 (VI124_128): New mode iterator.
2595 (VI24_128): Rename from SSEMODE248.
2596 (VI248_128): Rename from SSEMODE248.
2597 (SSEMODE124C8): Remove.
2598 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2599 (*sse2_<plusminus_insn><mode>3): Merge with
2600 *avx_<plusminus_insn><mode>3.
2601 (*mulv8hi3): Merge with *avx_mulv8hi3.
2602 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2603 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2604 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2605 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2606 (ashr<mode>3): Merge with *avx_ashr<mode>3.
2607 (lshr<mode>3): Merge with *avx_lshr<mode>3.
2608 (ashl<mode>3): Merge with *avx_ashl<mode>3.
2609 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2610 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2611 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2612 (*<smaxmin:code>v8hi3): Ditto.
2613 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2614 (*<smaxmin:code>v16qi3): Ditto.
2615 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2616 (*sse2_eq<mode>3): Ditto.
2617 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2618 (*sse2_gt<mode>3): Ditto.
2619 (vcondv2di): Split out of vcond<mode>.
2620 (vconduv2di): Split out of vcondu<mode>.
2622 2011-04-11 Richard Guenther <rguenther@suse.de>
2624 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2625 before calling tree_low_cst.
2627 2011-04-11 Richard Guenther <rguenther@suse.de>
2629 * stor-layout.c (layout_type): Compute all array index size operations
2630 in the original type.
2631 (initialize_sizetypes): Add comment.
2632 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2634 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2636 * common.opt (Tbss=, Tdata=, Ttext=): New options.
2638 2011-04-11 Martin Jambor <mjambor@suse.cz>
2640 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2641 of cgraph_node, handle NULL return value.
2642 (cgraph_global_info): Likewise.
2643 (cgraph_rtl_info): Likewise.
2644 * tree-inline.c (estimate_num_insns): Likewise.
2645 * gimplify.c (unshare_body): Likewise.
2646 (unvisit_body): Likewise.
2647 (gimplify_body): Likewise.
2648 * predict.c (optimize_function_for_size_p): Likewise.
2649 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2650 (call_may_clobber_ref_p_1): Likewise.
2651 * varasm.c (function_section_1): Likewise.
2652 (assemble_start_function): Likewise.
2654 2011-04-11 Martin Jambor <mjambor@suse.cz>
2656 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2658 * final.c (rest_of_clean_state): Likewise.
2659 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2660 * passes.c (pass_init_dump_file): Likewise.
2661 (execute_all_ipa_transforms): Likewise.
2662 (function_called_by_processed_nodes_p): Likewise.
2663 * predict.c (maybe_hot_frequency_p): Likewise.
2664 (probably_never_executed_bb_p): Likewise.
2665 (compute_function_frequency): Likewise.
2666 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2667 (unnest_nesting_tree_1): Likewise.
2668 (lower_nested_functions): Likewise.
2669 * tree-optimize.c (execute_fixup_cfg): Likewise.
2670 (tree_rest_of_compilation): Likewise.
2671 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2672 * tree-sra.c (ipa_early_sra): Likewise.
2673 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2674 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2675 * ipa.c (record_cdtor_fn): Likewise.
2676 * ipa-inline.c (cgraph_early_inlining): Likewise.
2677 (compute_inline_parameters_for_current): Likewise.
2678 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2679 * ipa-pure-const.c (local_pure_const): Likewise.
2680 * ipa-split.c (split_function): Likewise.
2681 (execute_split_functions): Likewise.
2682 * cgraphbuild.c (build_cgraph_edges): Likewise.
2683 (rebuild_cgraph_edges): Likewise.
2684 (cgraph_rebuild_references): Likewise.
2685 (remove_cgraph_callee_edges): Likewise.
2686 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2687 (verify_cgraph_node): Likewise.
2688 (cgraph_analyze_functions): Likewise.
2689 (cgraph_preserve_function_body_p): Likewise.
2690 (save_inline_function_body): Likewise.
2691 (save_inline_function_body): Likewise.
2692 * tree-inline.c (copy_bb): Likewise.
2693 (optimize_inline_calls): Likewise.
2695 2011-04-11 Martin Jambor <mjambor@suse.cz>
2697 PR tree-optimization/48195
2698 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2699 ipa_check_create_edge_args.
2700 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2701 ipa_check_create_edge_args.
2702 * ipa-inline.c (inline_generate_summary): Do not call
2703 ipa_check_create_node_params and ipa_check_create_edge_args.
2704 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2705 ipa_check_create_edge_args.
2707 2011-04-09 Anatoly Sokolov <aesok@post.ru>
2709 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2711 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2712 * function.c (record_hard_reg_sets): Likewise.
2713 * ira.c (compute_regs_asm_clobbered): Likewise.
2714 * sched-deps.c (sched_analyze_1): Likewise.
2715 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2717 2011-04-09 Xinliang David Li <davidxl@google.com>
2719 PR tree-optimization/PR48484
2720 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2721 has_valid_pred lazily
2723 2011-04-09 Duncan Sands <baldrick@free.fr>
2725 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2727 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
2729 * combine.c (combine_validate_cost): Adjust comments. Set registered
2730 cost of I0 to zero at the end, if any.
2732 2011-04-08 Xinliang David Li <davidxl@google.com>
2734 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2735 to insane profile data.
2737 2011-04-08 Xinliang David Li <davidxl@google.com>
2739 * ipa-cp.c (ipcp_update_profiling): Correct
2740 negative scale factor due to insane profile data.
2742 2011-04-08 Xinliang David Li <davidxl@google.com>
2744 * final.c (dump_basic_block_info): New function.
2745 (final): Dump basic block.
2746 (final_scan_insn): Remove old dump.
2748 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
2751 * config.gcc (i386-*-freebsd): Disable unwind table generation for
2754 2011-04-08 Michael Matz <matz@suse.de>
2757 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2759 (rebuild_jump_labels): Call rebuild_jump_labels_1.
2760 * rtl.h (rebuild_jump_labels_chain): Declare.
2761 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2762 insns inserted on edges.
2764 2011-04-08 Joseph Myers <joseph@codesourcery.com>
2766 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2767 * config/arm/arm-arches.def: New.
2768 * config/arm/arm-opts.h: New.
2769 * config/arm/genopt.sh: New.
2770 * config/arm/arm-tables.opt: New (generated).
2771 * config/arm/arm.c (arm_handle_option, arm_target_help,
2772 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2773 (all_architectures): Get most table contents from arm-arches.def.
2774 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2775 arm_selected_tune here.
2776 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2777 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2778 (march=, mcpu=, mtune=): Use Enum and Var.
2779 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2780 (arm.o): Update dependencies.
2782 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
2784 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2786 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2787 (write_typed_alloc_defns): Likewise.
2788 (main): Calls write_typed_alloc_defns with output_header.
2790 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
2793 * ira-color.c (setup_profitable_hard_regs): Add comments.
2794 Don't take prohibited hard regs into account.
2795 (setup_conflict_profitable_regs): Rename to
2796 get_conflict_profitable_regs.
2797 (check_hard_reg_p): Check prohibited hard regs.
2799 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2801 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2802 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2803 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2805 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2808 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2809 move from floating point to shift amount register.
2810 (emit_move_sequence): Remove secondary reload support for floating
2811 point to shift amount amount register copies.
2812 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2813 amount register copies.
2814 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2815 register, return false if mode isn't a scalar integer mode.
2816 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2818 2011-04-08 Richard Guenther <rguenther@suse.de>
2820 * gimple.c (gimple_call_flags): Remove kludge.
2822 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2824 * sel-sched.c (sel_region_init): Move call to
2825 sel_setup_region_sched_flags after setup_current_loop_nest.
2827 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
2829 PR rtl-optimization/48272
2830 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2831 init_insn_reg_pressure_info. Adjust a caller.
2832 * sched-int.h (init_insn_reg_pressure_info): Declare.
2833 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2834 when sched-pressure is enabled.
2836 2011-04-08 Richard Guenther <rguenther@suse.de>
2838 * gimple.c (gimple_set_modified): Do not queue calls to
2839 MODIFIED_NORETURN_CALLS here ...
2840 * tree-ssa-operands.c (update_stmt_operands): ... but here.
2842 2011-04-08 Richard Guenther <rguenther@suse.de>
2845 * toplev.c (lang_dependent_init): Do not open asm_out_file
2846 in WPA mode, nor perform debug machinery initialization.
2847 (finalize): Do not unlink asm_out_file in WPA mode.
2849 2011-04-08 Richard Guenther <rguenther@suse.de>
2851 * gimple.h (gimple_call_fntype): New function.
2852 (gimple_call_return_type): Use it.
2853 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2854 * gimple-low.c (gimple_check_call_args): Likewise.
2855 * gimple.c (gimple_call_flags): Likewise.
2856 (gimple_call_arg_flags): Likewise.
2857 (gimple_call_return_flags): Likewise.
2858 * tree-cfg.c (verify_gimple_call): Likewise.
2859 (do_warn_unused_result): Likewise.
2860 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2861 * value-prof.c (gimple_ic_transform): Fix fndecl check.
2863 2011-04-08 Dmitry Melnik <dm@ispras.ru>
2865 PR rtl-optimization/48235
2866 * sel-sched.c (code_motion_process_successors): Recompute the last
2867 insn in basic block if control flow changed.
2868 (code_motion_path_driver): Ditto. Recompute the first insn as well.
2869 Update condition for ilist_remove.
2871 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2873 PR rtl-optimization/48302
2874 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2875 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
2876 it to record added preheader blocks.
2877 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
2878 on to sel_add_loop_preheaders.
2879 (sel_region_init): Move call to setup_current_loop_nest after
2882 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2885 * cfgloop.h (loop_has_exit_edges): New helper.
2886 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2888 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2889 that have no exit edges.
2891 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2893 PR rtl-optimization/48442
2894 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
2895 all callers. Adjust assert.
2897 2011-04-08 Jakub Jelinek <jakub@redhat.com>
2899 PR tree-optimization/48377
2900 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2901 is_packed to true even for types with smaller TYPE_ALIGN than
2904 2011-04-08 Richard Guenther <rguenther@suse.de>
2907 * doc/tm.texi: Re-generate.
2909 2011-04-08 Wei Guozhi <carrot@google.com>
2912 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2913 * config/arm/arm.c (arm_attr_length_push_multi): New function.
2914 * config/arm/arm.md (*push_multi): Change the length computation to
2917 2011-04-08 Anatoly Sokolov <aesok@post.ru>
2919 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2920 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2921 * doc/tm.texi: Regenerate.
2922 * system.h (ASM_OUTPUT_BSS): Poison.
2923 * varasm.c (asm_output_bss): Remove function.
2924 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2926 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2927 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2928 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2929 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2931 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2933 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2935 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2937 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2939 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2942 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2944 * config/m68k/m68k.c (m68k_handle_option): Don't handle
2945 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2946 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2948 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2949 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2950 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2951 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2952 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2953 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2954 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2955 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2956 options. Don't map other m68k options manually. Don't handle
2957 old-style options as canonical.
2958 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2959 * doc/install.texi (m68k-*-*): Document binutils version requirement.
2961 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
2963 * basic-block.h (force_nonfallthru): Move to...
2964 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2965 (force_nonfallthru): ...here.
2966 * cfghooks.c (force_nonfallthru): New function.
2967 * cfgrtl.c (force_nonfallthru): Rename into...
2968 (rtl_force_nonfallthru): ...this.
2969 (commit_one_edge_insertion): Do not set AUX field.
2970 (commit_edge_insertions): Do not discover new basic blocks.
2971 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2972 (cfg_layout_rtl_cfg_hooks): Likewise.
2973 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2974 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
2975 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2977 2011-04-07 Anatoly Sokolov <aesok@post.ru>
2979 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2982 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
2984 * config/i386/sse.md: Update copyright year.
2985 (avxcvtvecmode): Remove.
2986 (sse_movhlps): Merge with *avx_movhlps.
2987 (sse_movlhps): Merge with *avx_movlhps.
2988 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2989 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2990 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2991 (sse_loadhps): Merge with *avx_loadhps.
2992 (sse_storelps): Merge with *avx_storelps.
2993 (sse_loadlps): Merge with *avx_loadlps.
2994 (sse_movss): Merge with *avx_movss.
2995 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2996 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2997 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2998 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2999 (vec_set<mode>_0): Ditto.
3000 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
3001 (sse4_1_insertps): Merge with *avx_insertps.
3002 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
3003 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
3004 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
3005 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
3006 (sse2_storehpd): Merge with *avx_storehpd.
3007 (sse2_loadhpd): Merge with *avx_loadhpd.
3008 (sse2_loadlpd): Merge with *avx_loadlpd.
3009 (sse2_movsd): Merge with *avx_movsd.
3010 (*vec_concatv2df): Merge with *vec_concatv2df.
3012 2011-04-07 Jakub Jelinek <jakub@redhat.com>
3015 * combine.c (combine_instructions): Add last_combined_insn,
3016 update it if insn is after it, pass it to all try_combine calls.
3017 (try_combine): Add last_combined_insn parameter, pass it instead of
3018 i3 to propagate_for_debug.
3020 2011-04-07 Nick Clifton <nickc@redhat.com>
3022 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
3023 to handle MDR <-> data register transfers.
3024 (movhi_internal): Likewise.
3026 2011-04-07 Alan Modra <amodra@gmail.com>
3028 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
3029 previous stack info.
3031 2011-04-07 Tom de Vries <tom@codesourcery.com>
3034 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
3035 flow_find_cross_jump. Swap variables to implement backward replacement.
3036 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
3038 2011-04-07 Tom de Vries <tom@codesourcery.com>
3041 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3042 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
3044 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
3045 src1 or src2. Redirect edges to the last basic block. Update
3046 frequency and count on multiple basic blocks in case of fallthru.
3048 2011-04-07 Tom de Vries <tom@codesourcery.com>
3051 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
3053 (old_insns_match_p): Change return type. Replace return false/true
3054 with return dir_none/dir_both. Use can_replace_by.
3055 (flow_find_cross_jump): Add dir_p parameter. Init replacement
3056 direction from dir_p. Register replacement direction in dir, last_dir
3057 and afterlast_dir. Handle new return type of old_insns_match_p using
3058 merge_dir. Return replacement direction in dir_p.
3059 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
3060 return type of old_insns_match_p.
3061 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
3062 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
3063 flow_find_cross_jump.
3064 * basic-block.h (enum replace_direction): New type.
3065 (flow_find_cross_jump): Add parameter to declaration.
3067 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
3069 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
3070 (AVXMODEDCVTPS2DQ): Ditto.
3071 (VEC_FLOAT_MODE): Ditto.
3072 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
3073 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
3074 (<any_logic:code><mode>3): Use VF mode iterator.
3075 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
3076 Use VF mode iterator.
3077 (copysign<mode>3): Use VF mode iterator.
3078 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
3079 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
3080 (*<any_logic:code><MODEF:mode>3): Merge with
3081 *avx_<any_logic:code><MODEF:mode>3.
3082 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
3083 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
3084 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
3085 (avx_cvtdq2ps<avxmodesuffix>): Remove.
3086 (sse2_cvtdq2ps): Use %v modifier.
3087 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
3088 (avx_cvtps2dq<avxmodesuffix>): Remove.
3089 (sse2_cvtps2dq): Use %v modifier.
3090 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
3091 (avx_cvttps2dq<avxmodesuffix>): Remove.
3092 (sse2_cvttps2dq): Use %v modifier.
3093 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
3094 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
3095 (sse2_cvtsd2siq): Fix insn template.
3096 (sse2_cvtsd2siq_2): Ditto.
3097 (sse2_cvttsd2siq): Ditto.
3098 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
3099 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
3101 2011-04-06 Joseph Myers <joseph@codesourcery.com>
3103 * gcov-io.c: Use GCC Runtime Library Exception.
3105 2011-04-06 Jakub Jelinek <jakub@redhat.com>
3108 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
3109 as base_reg whatever register reg has been eliminated to, instead
3110 of hardcoding STACK_POINTER_REGNUM.
3112 2011-04-06 Joseph Myers <joseph@codesourcery.com>
3114 * doc/tm.texi.in: Document C target hooks as separate from general
3116 * doc/tm.texi: Regenerate.
3117 * genhooks.c (struct hook_desc): Add docname field.
3118 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
3120 (hook_array): Include c-target.def.
3121 (emit_documentation): Use docname field in output.
3122 (emit_init_macros): Take docname argument. Only emit definitions
3123 for hooks matching docname.
3124 (main): Expect additional arguments in all cases. Pass argument
3125 to emit_init_macros.
3126 * target.def: Move initial macro definitions and comments to
3127 target-hooks-macros.h.
3128 (gcc_targetcm): Move to c-family/c-target.def.
3129 * target.h (targetcm): Move declaration to c-family/c-target.h.
3130 * targhooks.c (default_handle_c_option): Move to
3132 * targhooks.h (default_handle_c_option): Move declaration to
3133 c-family/c-common.h.
3134 * target-hooks-macros.h: New file.
3135 * config.gcc (target_has_targetcm): Define and use to add to
3136 c_target_objs and cxx_target_objs.
3137 * config/default-c.c: New file.
3138 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
3139 of target.h and target-def.h.
3140 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
3141 (darwin_objc_construct_string, darwin_cfstring_ref_p,
3142 darwin_check_cfstring_format_arg): Make static.
3143 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3144 TARGET_STRING_OBJECT_REF_TYPE_P,
3145 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
3146 * config/darwin-protos.h (darwin_objc_construct_string,
3147 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
3149 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3150 TARGET_STRING_OBJECT_REF_TYPE_P,
3151 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
3152 * config/t-darwin (darwin-c.o): Update dependencies.
3153 * system.h (TARGET_HAS_TARGETCM): Poison.
3154 * Makefile.in (TARGET_H): Update.
3155 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
3156 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
3157 (default-c.o): New target.
3158 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
3159 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
3160 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
3162 (build/genhooks.o): Update dependencies.
3164 2011-04-06 Richard Guenther <rguenther@suse.de>
3166 * ipa-inline.c (enum inlining_mode): Remove.
3167 (cgraph_flatten): Use some other token.
3168 (cgraph_edge_early_inlinable_p): New function, split out from ...
3169 (cgraph_perform_always_inlining): New function, split out from ...
3170 (cgraph_decide_inlining_incrementally): ... here.
3171 (cgraph_mark_inline_edge): Adjust.
3172 (cgraph_early_inlining): Re-structure.
3173 (pass_early_inline): Require SSA form.
3175 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
3176 Julian Brown <julian@codesourcery.com>
3177 Mark Shinwell <shinwell@codesourcery.com>
3179 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
3180 LO_REGS only for Thumb-1.
3181 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
3182 be used in short instructions when optimising for size on Thumb-2.
3184 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
3186 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
3187 associated with user returns to be preserved.
3189 2011-04-06 Tristan Gingold <gingold@adacore.com>
3191 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
3192 symbol_queue_size, DBXOUT_DECR_NESTING,
3193 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
3194 if XCOFF_DEBUGGING_INFO.
3196 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
3198 * config/i386/i386.md (attribute isa): New.
3199 (attribute enabled): New.
3200 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
3201 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
3202 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
3203 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
3204 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
3205 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3206 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
3207 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
3209 * config/i386/sse.md (VF): New mode iterator.
3213 (SSEMODEF4): Remove.
3214 (attribute sse): Handle V8SF and V4DF modes.
3215 (<absneg:code><mode>2): Use VF mode iterator.
3216 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
3218 (<plusminus_insn><mode>3): Use VF mode iterator.
3219 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3220 Use VF mode iterator.
3221 (<sse>_vm<plusminus_insn><mode>3): Merge with
3222 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
3223 (mul<mode>3): Use VF mode iterator.
3224 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
3225 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
3227 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
3228 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
3229 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
3230 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
3232 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
3233 Use VF1 mode iterator.
3234 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
3235 (sqrt<VF2:mode>2): New expander.
3236 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
3237 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
3238 and sqrtv2df2. Use VF mode iterator.
3239 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
3241 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
3242 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
3243 Use VF1 mode iterator.
3244 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
3245 (<smaxmin:code><mode>3): Use VF mode iterator.
3246 (*<smaxmin:code><mode>3_finite): Merge with
3247 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
3248 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3249 (<sse>_vm<smaxmin:code><mode>2): Merge with
3250 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
3251 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
3253 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
3255 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
3256 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
3257 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
3258 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
3259 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
3261 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
3262 Use VF_128 mode iterator.
3263 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
3265 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
3266 VF_128 mode iterator.
3267 (vcond<mode>): Use VF mode iterator.
3268 * config/i386/predicates.md (sse_comparison_operator): Merge with
3269 avx_comparison_float_operator. Do not declare as special_predicate.
3270 * config/i386/i386.c (struct builtin_description): Update for renamed
3272 (ix86_expand_args_builtin): Ditto.
3273 (ix86_expand_sse_compare_mask): Ditto.
3275 2011-04-06 Richard Guenther <rguenther@suse.de>
3277 * tree-inline.c (estimate_num_insns): For calls simply account
3278 for all passed arguments and a used return value.
3280 2011-04-06 Richard Guenther <rguenther@suse.de>
3282 PR tree-optimization/47663
3283 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
3284 call_stmt_time fields.
3285 (cgraph_edge_inlinable_p): Declare.
3286 (cgraph_edge_recursive_p): New inline function.
3287 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
3288 (cgraph_clone_edge): Copy it.
3289 * ipa-inline.c (cgraph_estimate_edge_time): New function.
3290 Account for call stmt time.
3291 (cgraph_estimate_time_after_inlining): Take edge argument.
3292 (cgraph_estimate_edge_growth): Account call stmt size.
3293 (cgraph_estimate_size_after_inlining): Take edge argument.
3294 (cgraph_mark_inline_edge): Adjust.
3295 (cgraph_check_inline_limits): Likewise.
3296 (cgraph_recursive_inlining_p): Remove.
3297 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
3298 (cgraph_decide_recursive_inlining): Take edge argument and
3300 (cgraph_decide_inlining_of_small_functions): Do not avoid
3301 diags for recursive inlining here.
3302 (cgraph_flatten): Adjust.
3303 (cgraph_decide_inlining_incrementally): Likewise.
3304 (estimate_function_body_sizes): Remove call cost handling.
3305 (compute_inline_parameters): Initialize caller edge call costs.
3306 (cgraph_estimate_edge_growth): New function.
3307 (cgraph_estimate_growth): Use it.
3308 (cgraph_edge_badness): Likewise.
3309 (cgraph_check_inline_limits): Take an edge argument.
3310 (cgraph_decide_inlining_of_small_functions): Adjust.
3311 (cgraph_decide_inlining): Likewise.
3312 * tree-inline.c (estimate_num_insns): Only account for call
3313 return value if it is used.
3314 (expand_call_inline): Avoid diagnostics on recursive inline
3316 * lto-cgraph.c (lto_output_edge): Output edge call costs.
3317 (input_edge): Input edge call costs.
3319 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3321 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
3323 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
3325 * doc/invoke.texi (Spec Files): Fix typo.
3327 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
3329 * profile.c (branch_prob): Move declaration of local variable. Remove
3330 obsolete ??? comment. Expand the location explicitly instead of using
3331 the LOCATION_FILE and LOCATION_LINE macros.
3333 2011-04-06 Wei Guozhi <carrot@google.com>
3336 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
3337 (arm_cond_branch): Likewise.
3338 (arm_cond_branch_reversed): Likewise.
3339 (arm_jump): Likewise.
3340 (push_multi): Likewise.
3341 * config/arm/constraints.md (Py): New constraint.
3343 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3346 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
3348 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
3349 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
3350 #ifdef DBX_DEBUGGING_INFO.
3352 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
3355 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
3356 if old and new states differ.
3358 2011-04-05 Joseph Myers <joseph@codesourcery.com>
3360 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
3361 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
3362 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3363 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
3364 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
3366 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
3367 ColdFire options to -mcpu= options.
3369 2011-04-05 Jeff Law <law@redhat.com>
3371 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
3372 check if BB is a successor of LOOP->header and return
3373 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
3375 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
3377 * cprop.c (struct reg_use): Remove.
3378 (reg_use_table): Make an array of RTX.
3379 (find_used_regs, constprop_register, local_cprop_pass,
3380 bypass_block): Simplify users of reg_use_table.
3381 (cprop_insn): Likewise. Iterate if copy propagation succeeded
3382 on one of the uses found by find_used_regs.
3384 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3387 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3390 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3392 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3394 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3396 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
3399 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3401 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3403 * combine.c: Include obstack.h.
3404 (struct insn_link): Define.
3405 (uid_log_links): Adjust type.
3406 (FOR_EACH_LOG_LINK): New macro.
3407 (insn_link_obstack): Declare.
3408 (alloc_insn_link): Define.
3409 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
3410 type of link variables.
3411 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3412 (try_combine, record_promoted_values, distribute_notes): Likewise.
3413 (distribute_links): Likewise. Tweak prototype.
3414 (clear_log_links): Delete.
3415 (adjust_for_new_dest): Call alloc_insn_link.
3416 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3418 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3420 * gcse.c (modify_mem_list): Convert to an array of VECs.
3421 (canon_modify_mem_list, compute_transp): Tweak formatting.
3422 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
3423 (load_killed_in_block_p): Likewise.
3424 (record_last_mem_set_info): Likewise.
3425 (clear_modify_mem_tables): Likewise.
3427 2011-04-05 Tom de Vries <tom@codesourcery.com>
3430 * function.c (emit_use_return_register_into_block): Only define if
3433 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
3435 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3437 2011-04-05 Joseph Myers <joseph@codesourcery.com>
3439 * config/rx/rx-opts.h: New.
3440 * config/rx/rx.c (rx_cpu_type): Remove.
3441 (rx_handle_option): Don't assert that global structures are in
3442 use. Access variables via opts pointer. Defer most handling of
3443 OPT_mint_register_. Use error_at.
3444 (rx_option_override): Handle deferred OPT_mint_register_ here.
3445 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3446 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3447 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3448 (rx_cpu_types): New Enum and EnumValue entries.
3449 (mint-register=): Use Defer and use Var accordingly.
3451 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3453 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3454 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3455 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3457 (debug_free_queue, debug_nesting, symbol_queue_index):
3459 * dbxout.c: ...to here. Make static.
3461 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3463 * gcse.c (modify_pair): Define. Define a VEC of it.
3464 (canon_modify_mem_list): Convert to an array of VECs.
3465 (free_insn_expr_list_list): Delete.
3466 (clear_modify_mem_tables): Call VEC_free instead.
3467 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3468 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3469 (canon_list_insert, compute_transp): Likewise.
3471 2011-04-05 Tom de Vries <tom@codesourcery.com>
3474 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3477 2011-04-05 Tom de Vries <tom@codesourcery.com>
3480 * function.c (emit_use_return_register_into_block): New function.
3481 (thread_prologue_and_epilogue_insns): Use
3482 emit_use_return_register_into_block.
3484 2011-04-05 Tom de Vries <tom@codesourcery.com>
3487 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3490 2011-04-05 Tom de Vries <tom@codesourcery.com>
3492 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3494 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
3496 * config/arm/arm.md (define_constants for unspec): Replace with
3498 (define_constants for unspecv): Replace with define_c_enum.
3499 * config/arm/neon.md (define_constants for unspec): Replace with
3502 2011-04-04 Richard Henderson <rth@redhat.com>
3505 * dwarf2out.c (output_line_info): Always emit line info from
3506 at least one section.
3507 (dwarf2out_init): Create text_section_line_info here ...
3508 (set_cur_line_info_table): ... not here.
3510 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
3513 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3516 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3518 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
3520 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3521 (expr_equiv_p): Remove.
3522 (insert_set_in_table): Look at <dest, src> pair instead of expr.
3523 (hash_scan_set): Update call to insert_set_in_table.
3524 (dump_hash_table): Dump <dest, src> pair.
3525 (lookup_set): Simplify. Lookup <dest, src> pair.
3526 (compute_transp): Remove, fold heavily simplified code into...
3527 (compute_local_properties): ...here. Expect COMP and TRANSP
3529 (find_avail_set): Take set directly from struct expr.
3530 (find_bypass-set): Likewise.
3531 (bypass_block): Likewise.
3532 (cprop_insn): Likewise. Remove redundant INSN_P test.
3534 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3535 checks on form of COND from find_implicit_sets to here.
3536 (find_implicit_sets): Cleanup control flow. Split critical edges
3537 if it exposes implicit sets. Allocate/resize implicit_sets as
3539 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3540 changed something. Run df_analyze after find_implicit_sets if any
3541 edges were split. Do not allocate implicit_sets here.
3543 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3544 (gcse_obstack): Renamed to cprop_obstack.
3545 (GNEW, GNEWVEC, GNEWVAR): Remove.
3547 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3548 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3549 (gcse_alloc): Likewise, and rename to cprop_alloc.
3550 (alloc_gcse_men, free_gcse_mem): Remove.
3551 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3552 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3553 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3555 * cprop.c (oprs_not_set_p): Remove.
3556 (mark_set, mark_clobber): Remove.
3557 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3558 (reg_not_set_p): New function.
3559 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3560 (cprop_insn): Likewise.
3561 (cprop_jump): Use FOR_EACH_EDGE.
3563 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
3566 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3567 (rank_for_schedule): Use scheduled_insns vector instead of
3568 last_scheduled_insn.
3569 (ok_for_early_queue_removal): Likewise.
3570 (queue_to_ready): Search forward in nonscheduled_insns_begin if
3572 (choose_ready): Likewise.
3573 (commit_schedule): Use VEC_iterate.
3574 (schedule_block): Initialize nonscheduled_insns_begin. If we have
3575 a dbg_cnt, use it and ensure the first insn is in the ready list.
3576 (haifa_sched_init): Allocate scheduled_insns.
3577 (sched_extend_ready_list): Don't allocate it; reserve space.
3578 (haifa_sched_finish): Free it.
3580 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3582 * optc-gen.awk: Always remove type from Variable entry before
3583 recording in var_seen.
3585 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
3587 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3588 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3589 call to tidy_fallthru_edges.
3591 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3593 * doc/options.texi (ToLower): Document.
3594 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3595 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3596 * opts.h (cl_option): Add cl_tolower field.
3597 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3598 arguments with lowercase strings.
3599 * config/rx/rx.opt (mcpu=): Add ToLower.
3600 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3603 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3605 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3607 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3609 * config/vax/vax.c: Include reload.h.
3611 2011-04-04 Anatoly Sokolov <aesok@post.ru>
3613 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3614 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3615 (sparc_preferred_reload_class): New function.
3617 2011-04-04 Jakub Jelinek <jakub@redhat.com>
3620 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3621 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3623 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
3625 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3626 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3628 2011-04-03 Anatoly Sokolov <aesok@post.ru>
3630 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3631 (ASM_OUTPUT_ALIGNED_BSS): Define.
3633 2011-04-03 Michael Matz <matz@suse.de>
3635 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3636 and next_slot members.
3637 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3638 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3639 (lto_streamer_cache_append): Declare.
3640 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3641 unsigned index, remove offset parameter, ensure that we append
3642 or update existing entries.
3643 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3644 parameter, update next_slot for append.
3645 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3647 (lto_streamer_cache_insert_at): Likewise.
3648 (lto_streamer_cache_append): New function.
3649 (lto_streamer_cache_lookup): Use unsigned index.
3650 (lto_streamer_cache_get): Likewise.
3651 (lto_record_common_node): Don't test tree_node_can_be_shared.
3652 (preload_common_node): Adjust call to lto_streamer_cache_insert.
3653 (lto_streamer_cache_delete): Don't free offsets member.
3654 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3655 (lto_output_string_with_length): Use lto_output_data_stream.
3656 (lto_output_tree_header): Remove ix parameter, don't write it.
3657 (lto_output_builtin_tree): Likewise.
3658 (lto_write_tree): Adjust callers to above, don't track and write
3659 offset, write unsigned index.
3660 (output_unreferenced_globals): Don't emit all global vars.
3661 (write_global_references): Use unsigned indices.
3662 (lto_output_decl_state_refs): Likewise.
3663 (write_symbol): Likewise.
3664 * lto-streamer-in.c (lto_input_chain): Move earlier.
3665 (input_function): Use unsigned index.
3666 (input_alias_pairs): Don't read and then ignore all global vars.
3667 (lto_materialize_tree): Remove ix_p parameter, don't read index,
3668 don't pass it back, use lto_streamer_cache_append.
3669 (lto_register_var_decl_in_symtab): Use unsigned index.
3670 (lto_register_function_decl_in_symtab): Likewise.
3671 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3673 (lto_get_builtin_tree): Don't read index, use
3674 lto_streamer_cache_append.
3675 (lto_read_tree): Adjust call to lto_materialize_tree.
3677 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3678 don't use function calls in arguments to MIN.
3680 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3683 * gimple.c (gimple_type_leader_entry): Mark deletable.
3685 2011-04-03 Alan Modra <amodra@gmail.com>
3687 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3689 2011-04-03 Michael Matz <matz@suse.de>
3691 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3693 * tree.h (tree_decl_non_common.vindex): Adjust comment.
3695 2011-04-03 Michael Matz <matz@suse.de>
3697 * cgraphbuild.c (record_reference): Canonicalize constructor values.
3698 * gimple-fold.c (canonicalize_constructor_val): Accept being called
3699 without function context.
3700 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3701 current_function_decl and cfun.
3703 2011-04-03 Michael Matz <matz@suse.de>
3705 * tree.c (decl_init_priority_insert): Don't create entry for
3707 (decl_fini_priority_insert): Ditto.
3708 (fields_compatible_p, find_compatible_field): Remove.
3709 * tree.h (fields_compatible_p, find_compatible_field): Remove.
3710 * gimple.c (gimple_compare_field_offset): Adjust block comment.
3712 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
3714 * combine.c (try_combine): Remove useless local variable.
3716 2011-04-03 Richard Guenther <rguenther@suse.de>
3717 Ira Rosen <ira.rosen@linaro.org>
3719 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3720 non-variable offsets and compare the remaining bases of the two
3721 accesses instead of looking for exact same data-ref.
3723 2011-04-02 Kai Tietz <ktietz@redhat.com>
3726 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3728 * i386.c (ix86_is_msabi_thiscall): New helper function.
3729 (ix86_is_type_thiscall): New helper function.
3730 (ix86_comp_type_attributes): Handle thiscall for method-functions
3732 (init_cumulative_args): Likewise.
3733 (find_drap_reg): Likewise.
3734 (ix86_static_chain): Likewise.
3735 (x86_this_parameter): Likewise.
3736 (x86_output_mi_thunk): Likewise.
3738 2011-04-01 Olivier Hainque <hainque@adacore.com>
3739 Nicolas Setton <setton@adacore.com>
3740 Eric Botcazou <ebotcazou@adacore.com>
3742 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3743 (add_gnat_descriptive_type_attribute): New function.
3744 (gen_array_type_die): Call it.
3745 (gen_enumeration_type_die): Likewise.
3746 (gen_struct_or_union_type_die): Likewise.
3747 (modified_type_die): Likewise.
3748 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3749 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3750 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3752 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3755 * dwarf2out.c (resolve_addr): Don't call force_decl_die
3756 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3759 2011-03-17 Richard Guenther <rguenther@suse.de>
3762 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3763 origin for decls in other ltrans units.
3764 (input_varpool_node): Likewise.
3766 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3769 * expr.c (expand_assignment): Handle all possibilities
3770 if TO_RTX is CONCAT.
3771 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3772 (store_split_bit_field): If SUBREG_REG (op0) or
3773 op0 itself has smaller mode than word, return it
3774 for offset 0 and const0_rtx for out-of-bounds stores.
3775 If word is const0_rtx, skip it.
3777 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
3779 * config/h8300/h8300.c (print_operand_address): Rename to...
3780 (h8300_print_operand_address): ...this. Make static. Adjust comments.
3781 Call h8300_print_operand and h8300_print_operand_address instead of
3782 print_operand and print_operand_address. Declare.
3783 (print_operand): Renake to...
3784 (h8300_print_operand): ...this. Make static. Adjust comments.
3785 Call h8300_print_operand instead of print_operand. Declare.
3786 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3787 (h8300_register_move_cost): Likewise.
3788 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3789 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3790 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3791 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3792 * config/h8300/h8300-protos.h (print_operand): Delete.
3793 (print_operand_address): Delete.
3795 2011-04-01 Richard Henderson <rth@redhat.com>
3798 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3799 in strict mode before dwarf4. Re-order tests to early out
3800 before switching sections.
3802 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
3804 * config/h8300/constraints.md: New file.
3805 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
3806 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3807 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3808 * config/h8300/predicates.md (bit_operand): Likewise.
3809 (incdec_operand): Use satisfies_constraint_M and
3810 satisfies_constraint_O. Don't use C code block.
3811 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3812 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3813 (compute_mov_length): Use satisfies_constraint_G.
3814 (fix_bit_operand): Use satisfies_constraint_U.
3815 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3816 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3817 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3818 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3819 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3820 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3821 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3822 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3823 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3824 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3825 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3826 (EXTRA_MEMORY_CONSTRAINT): Delete.
3828 2011-04-01 Andrew Pinski <pinskia@gmail.com>
3829 Michael Meissner <meissner@linux.vnet.ibm.com>
3832 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3833 operands, as per the specifications.
3835 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3836 (vec_extract_evenv4sf): Ditto.
3837 (vec_extract_evenv8hi): Ditto.
3838 (vec_extract_evenv16qi): Ditto.
3839 (vec_extract_oddv4si): Ditto.
3841 2011-03-31 Mark Wielaard <mjw@redhat.com>
3843 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3844 high_pc attribute if the CU has no associated code. Only output
3845 DW_AT_entry_pc for CU if not generating strict dwarf and
3848 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
3850 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3851 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3853 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3854 * final.c (final_start_function): Call the new function rather
3855 than using a NULL argument for dwarf2out_frame_debug.
3857 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3858 that contains the prologue.
3860 * haifa-sched.c (queue_insn): New arg REASON. All callers
3861 changed. Print it in debugging output.
3863 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3865 * sched-ebb.c (begin_schedule_ready): Remove second argument.
3866 Split most of the code into...
3867 (begin_move_insn): ... here. New function.
3868 (ebb_sched_info): Add a pointer to it.
3869 * haifa-sched.c (scheduled_insns): New static variable.
3870 (sched_extend_ready_list): Allocate it.
3871 (schedule_block): Use it to record the order of scheduled insns.
3872 Perform RTL changes to move insns only after all scheduling
3873 decisions have been made.
3874 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3875 begin_move_insn field.
3876 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3877 * sched-int.h (struct haifa_sched_info): Remove second argument
3878 from begin_schedule_ready hook. Add new member begin_move_insn.
3879 * sched-rgn.c (begin_schedule_ready): Remove second argument.
3880 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3882 * haifa-sched.c (prune_ready_list): New function, broken out of
3884 (schedule_block): Use it.
3886 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3888 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3890 2011-04-01 Kai Tietz <ktietz@redhat.com>
3892 * config.gcc (*-*-mingw*): Allow as option the
3893 posix threading model.
3894 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
3895 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3897 (CPP_SPEC): Add pthread/no-pthread handling.
3898 (LIB_SPEC): Likewise.
3899 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3900 (LIB_SPEC): Likewise.
3901 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3902 flag to pass -pthread option for shared libgcc build.
3903 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3904 for shared libgcc build.
3905 * config/i386/t-mingw-pthread: New file.
3906 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3907 New define to enable use of library pthread by default.
3908 * config/i386/mingw.opt (pthread): New driver option.
3909 (no-pthread): New driver option.
3910 * config/i386/cygming.opt: Make sure trailing empty line is retained.
3911 * config/i386/mingw-w64.opt: Likewise.
3913 2011-04-01 Gary Funck <gary@intrepid.com>
3915 * c-decl.c (grokdeclarator): Fix formatting.
3917 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3919 * expr.c (emit_block_move_via_movmem): Use n_generator_args
3920 instead of n_operands.
3921 (set_storage_via_setmem): Likewise.
3922 * optabs.c (maybe_gen_insn): Likewise.
3923 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3924 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3925 (mips_expand_builtin_direct): Likewise.
3926 * config/spu/spu.c (expand_builtin_args): Likewise.
3928 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3930 * recog.h (insn_data_d): Add n_generator_args.
3931 * genoutput.c (data): Likewise.
3932 (output_insn_data): Print it.
3933 (max_opno, num_dups): Delete.
3934 (scan_operands): Just fill in "d->operand[...]".
3935 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3937 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3939 * gensupport.h (pattern_stats): New structure.
3940 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3941 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3942 (max_operand_1, max_operand_vec): Delete.
3943 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3945 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
3947 * emit-rtl.c (emit_pattern_after_setloc): New function.
3948 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3949 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3950 (emit_pattern_after): New function.
3951 (emit_insn_after, emit_jump_insn_after): Call it.
3952 (emit_call_insn_after, emit_debug_insn_after): Likewise.
3953 (emit_pattern_before_setloc): New function.
3954 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3955 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3957 (emit_pattern_before): New function.
3958 (emit_insn_before, emit_jump_insn_before): Call it.
3959 (emit_call_insn_before, emit_debug_insn_before): Likewise.
3961 2011-03-31 Richard Henderson <rth@redhat.com>
3963 * dwarf2out.c (dw_separate_line_info_ref): Remove.
3964 (dw_separate_line_info_entry): Remove.
3965 (enum dw_line_info_opcode): New.
3966 (dw_line_info_entry): Use it.
3967 (dw_line_info_table, dw_line_info_table_p): New.
3968 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3969 (line_info_table, line_info_label_num): Remove.
3970 (line_info_table_in_use): Remove.
3971 (separate_line_info_table): Remove.
3972 (separate_line_info_table_allocated): Remove.
3973 (separate_line_info_table_in_use): Remove.
3974 (LINE_INFO_TABLE_INCREMENT): Remove.
3975 (line_info_label_num): New.
3976 (cur_line_info_table): New.
3977 (text_section_line_info, cold_text_section_line_info): New.
3978 (separate_line_info): New.
3979 (SEPARATE_LINE_CODE_LABEL): Remove.
3980 (print_dwarf_line_table): Remove.
3981 (debug_dwarf): Don't dump it.
3982 (output_one_line_info_table): New.
3983 (output_line_info): Use it.
3984 (new_line_info_table): New.
3985 (set_cur_line_info_table): New.
3986 (dwarf2out_switch_text_section): Use it.
3987 (dwarf2out_begin_function): Likewise.
3988 (push_dw_line_info_entry): New.
3989 (dwarf2out_source_line): Rewrite for new line info tables.
3990 (dwarf2out_init): Remove dead initailizations.
3992 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3994 * opts.h (cl_option): Add comments to fields. Add bit-fields for
3996 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3997 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3998 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3999 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
4000 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
4001 * opt-functions.awk (flag_init, switch_bit_fields): New.
4002 (switch_flags): Don't handle flags moved to bit-fields. Don't
4003 generate CL_MISSING_OK or CL_SAVE.
4004 * optc-gen.awk: Update to generate bit-field output as well as
4006 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
4007 bit-field instead of CL_REJECT_DRIVER flag.
4008 * opts-common.c (generate_canonical_option,
4009 decode_cmdline_option): Use bit-fields instead of CL_* flags.
4010 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
4011 instead of CL_REJECT_NEGATIVE flag.
4012 * toplev.c (print_switch_values): Use cl_report bit-field instead
4015 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
4017 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
4018 a zero minimum index only if it is redundant.
4020 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
4022 PR rtl-optimization/48381
4023 * ira-color.c (assign_hard_reg): Use hard reg set intersection
4024 instead of ira_class_hard_reg_index for calculating conflicting
4027 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
4029 * cprop.c: Clean up hash table building.
4030 (reg_avail_info): Remove.
4031 (oprs_available_p): Remove.
4032 (record_last_reg_set_info): Remove.
4033 (record_last_set_info): Remove.
4034 (reg_available_p): New function.
4035 (gcse_constant_p): Do not treat unfolded conditions as constants.
4036 (make_set_regs_unavailable): New function.
4037 (hash_scan_set): Simplify with new reg_available_p.
4038 (compute_hash_table_work): Traverse insns stream only once.
4039 Do not compute reg_avail_info. Traverse insns in reverse order.
4040 Record implicit sets after recording explicit sets from the block.
4042 2011-03-31 Michael Matz <matz@suse.de>
4044 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
4046 2011-03-31 Anatoly Sokolov <aesok@post.ru>
4048 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
4049 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
4050 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4051 (h8300_mode_dependent_address_p): New function.
4052 (h8300_get_index): Make static.
4054 2011-03-31 Jeff Law <law@redhat.com>
4056 * reload1.c (elimination_effects): Fix typo in recent change.
4058 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
4059 typo potentially leading to null pointer dereference.
4061 * caller-save.c (new_saved_hard_reg): Eliminate return value.
4062 (setup_save_areas): Corresponding changes to avoid useless
4065 * jump.c (reversed_comparison_code_parts): Avoid successive return
4066 statements when REVERSE_CONDITION is defined.
4068 * expr.c (expand_assignment): Avoid useless assignments.
4069 (expand_expr_real_1): Likewise.
4070 (expand_expr_real_2): Avoid useless statements.
4072 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
4074 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
4076 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
4079 * stmt.c (expand_expr_stmt): Avoid useless assignment.
4081 2011-03-31 Joseph Myers <joseph@codesourcery.com>
4084 * doc/tm.texi.in (TARGET_VERSION): Remove.
4085 * doc/tm.texi: Regenerate.
4086 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
4087 * collect2.c (main): Don't use TARGET_VERSION.
4088 * mips-tdump.c (main): Don't use TARGET_VERSION.
4089 * mips-tfile.c (main): Don't use TARGET_VERSION.
4090 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
4091 * config/rs6000/vxworksae.h: Remove.
4092 * config/alpha/alpha.h (TARGET_VERSION): Remove.
4093 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
4094 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
4095 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
4096 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
4097 * config/arm/arm.h (TARGET_VERSION): Remove.
4098 * config/arm/coff.h (TARGET_VERSION): Remove.
4099 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
4100 * config/arm/elf.h (TARGET_VERSION): Remove.
4101 * config/arm/freebsd.h (TARGET_VERSION): Remove.
4102 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
4103 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
4104 * config/arm/pe.h (TARGET_VERSION): Remove.
4105 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
4106 * config/arm/semi.h (TARGET_VERSION): Remove.
4107 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
4108 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
4109 * config/arm/vxworks.h (TARGET_VERSION): Remove.
4110 * config/avr/avr.h (TARGET_VERSION): Remove.
4111 * config/bfin/bfin.h (TARGET_VERSION): Remove.
4112 * config/fr30/fr30.h (TARGET_VERSION): Remove.
4113 * config/frv/frv.h (TARGET_VERSION): Remove.
4114 * config/h8300/h8300.h (TARGET_VERSION): Remove.
4115 * config/i386/cygwin.h (TARGET_VERSION): Remove.
4116 * config/i386/darwin.h (TARGET_VERSION): Remove.
4117 * config/i386/darwin64.h (TARGET_VERSION): Remove.
4118 * config/i386/djgpp.h (TARGET_VERSION): Remove.
4119 * config/i386/freebsd.h (TARGET_VERSION): Remove.
4120 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
4121 * config/i386/gnu.h (TARGET_VERSION): Remove.
4122 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
4123 * config/i386/i386elf.h (TARGET_VERSION): Remove.
4124 * config/i386/linux.h (TARGET_VERSION): Remove.
4125 * config/i386/linux64.h (TARGET_VERSION): Remove.
4126 * config/i386/lynx.h (TARGET_VERSION): Remove.
4127 * config/i386/mingw32.h (TARGET_VERSION): Remove.
4128 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
4129 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
4130 * config/i386/netware.h (TARGET_VERSION): Remove.
4131 * config/i386/nto.h (TARGET_VERSION): Remove.
4132 * config/i386/openbsd.h (TARGET_VERSION): Remove.
4133 * config/i386/vxworks.h (TARGET_VERSION): Remove.
4134 * config/ia64/elf.h (TARGET_VERSION): Remove.
4135 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
4136 * config/ia64/hpux.h (TARGET_VERSION): Remove.
4137 * config/ia64/linux.h (TARGET_VERSION): Remove.
4138 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
4139 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
4140 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4141 * config/lm32/lm32.h (TARGET_VERSION): Remove.
4142 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
4143 * config/m32c/m32c.h (TARGET_VERSION): Remove.
4144 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
4145 * config/m32r/m32r.h (TARGET_VERSION): Remove.
4146 * config/m68k/linux.h (TARGET_VERSION): Remove.
4147 * config/m68k/m68k.h (TARGET_VERSION): Remove.
4148 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
4149 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
4150 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
4151 * config/mep/mep.h (TARGET_VERSION): Remove.
4152 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
4153 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4154 * config/mips/iris6.h (MACHINE_TYPE): Remove.
4155 * config/mips/linux.h (TARGET_VERSION): Remove.
4156 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
4157 * config/mips/vxworks.h (TARGET_VERSION): Remove.
4158 * config/mmix/mmix.h (TARGET_VERSION): Remove.
4159 * config/mn10300/linux.h (TARGET_VERSION): Remove.
4160 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
4161 * config/pa/pa.h (TARGET_VERSION): Remove.
4162 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
4163 * config/picochip/picochip.h (TARGET_VERSION): Remove.
4164 * config/rs6000/aix.h (TARGET_VERSION): Remove.
4165 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
4166 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
4167 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
4168 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
4169 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
4170 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
4171 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
4172 * config/rs6000/linux.h (TARGET_VERSION): Remove.
4173 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
4174 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
4175 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
4176 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
4177 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
4178 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
4179 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
4180 * config/s390/linux.h (TARGET_VERSION): Remove.
4181 * config/s390/s390.h (TARGET_VERSION): Remove.
4182 * config/s390/tpf.h (TARGET_VERSION): Remove.
4183 * config/score/score.h (TARGET_VERSION): Remove.
4184 * config/sh/linux.h (TARGET_VERSION): Remove.
4185 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
4186 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
4187 * config/sh/sh.h (TARGET_VERSION): Remove.
4188 * config/sh/sh64.h (TARGET_VERSION): Remove.
4189 * config/sh/superh.h (TARGET_VERSION): Remove.
4190 * config/sh/vxworks.h (TARGET_VERSION): Remove.
4191 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
4192 * config/sparc/linux.h (TARGET_VERSION): Remove.
4193 * config/sparc/linux64.h (TARGET_VERSION): Remove.
4194 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
4195 TARGET_NAME32, TARGET_NAME): Remove.
4196 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
4197 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
4198 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
4199 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
4200 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
4201 * config/spu/spu.h (TARGET_VERSION): Remove.
4202 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
4203 * config/v850/v850.h (TARGET_VERSION): Remove.
4204 * config/vax/linux.h (TARGET_VERSION): Remove.
4205 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
4206 * config/xtensa/elf.h (TARGET_VERSION): Remove.
4207 * config/xtensa/linux.h (TARGET_VERSION): Remove.
4209 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
4212 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
4213 frame-related from frame-unrelated adjustments to the stack pointer.
4215 2011-03-31 Jakub Jelinek <jakub@redhat.com>
4217 * common.opt (fdebug-types-section): Move earlier.
4218 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
4220 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
4222 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
4225 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
4227 * tree.h (CASE_CHAIN): Define.
4228 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
4229 (gimple_redirect_edge_and_branch): Likewise.
4231 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
4234 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
4237 2011-03-30 Jeff Law <law@redhat.com>
4239 * PR bootstrap/48371
4240 * reload1.c (reload): Fix botch in last change.
4242 * reload.h (struct reload): Fix typo introduced in last change.
4244 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4246 * config/arm/arm.opt (mhard-float, msoft-float): Mark
4247 Undocumented. Remove help text.
4248 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
4251 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4253 * doc/options.texi (NegativeAlias): Document.
4254 (Alias): Mention NegativeAlias.
4255 * opt-functions.awk: Handle NegativeAlias.
4256 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
4257 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
4258 * opts.h (CL_NEGATIVE_ALIAS): Define.
4259 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
4260 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
4262 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
4264 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4265 mno-spe and mno-isel instead of mspe=no and -misel=no.
4267 2011-03-29 Mark Wielaard <mjw@redhat.com>
4269 * common.opt (fdebug-types-section): New flag.
4270 * doc/invoke.texi: Document new -fno-debug-types-section flag.
4271 * dwarf2out.c (use_debug_types): New define.
4272 (struct die_struct): Mark die_id with GTY desc use_debug_types.
4273 (print_die): Guard output of type unit signatures using
4275 (build_abbrev_table): Replace assert of dwarf_version >= 4
4276 with assert on use_debug_types.
4277 (size_of_die): Likewise.
4278 (unmark_dies): Likewise.
4279 (value_format): Decide AT_ref_external form on use_debug_types.
4280 (output_die): Replace dwarf_version version check guard with
4281 use_debug_types where appropriate.
4282 (modified_type_die): Likewise.
4283 (gen_reference_type_die): Likewise.
4284 (dwarf2out_start_source_file): Likewise.
4285 (dwarf2out_end_source_file): Likewise.
4286 (prune_unused_types_walk_attribs): Likewise.
4287 (dwarf2out_finish): Likewise.
4289 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
4291 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
4293 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4295 PR rtl-optimization/48332
4296 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
4297 mode of input operand N and modeN to its actual mode.
4299 2011-03-30 Jeff Law <law@redhat.com>
4301 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
4302 define accessor macro.
4303 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
4304 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
4305 (reg_equiv_init): Likewise.
4306 (reg_equivs_size): New variable.
4307 (reg_equiv_init_size): Remove.
4308 (allocate_initial_values): Move prototype to here from....
4309 * integrate.h (allocate_initial_values): Remove prototype.
4310 * integrate.c: Include reload.h.
4311 (allocate_initial_values): Corresponding changes.
4312 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
4313 (fix_reg_equiv_init, no_equiv): Corresponding changes.
4314 (update_equiv_regs): Corresponding changes.
4315 (ira): Corresponding changes.
4316 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
4317 (push_secondary_reload): Corresponding changes.
4318 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
4319 (make_memloc, find_reloads_address): Corresponding changes.
4320 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
4321 (find_reloads_address_1): Corresponding changes.
4322 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
4323 (refers_to_regno_for_reload_p): Corresponding changes.
4324 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
4325 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
4326 * reload1.c: Include ggc.h.
4327 (grow_reg_equivs): New function.
4328 (replace_pseudos_in, reload): Corresponding changes.
4329 (calculate_needs_all_insns, alter_regs): Corresponding changes.
4330 (eliminate_regs_1, elimination_effects): Corresponding changes.
4331 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
4332 (delete_output_reload): Likewise.
4333 * caller-save.c (mark_referenced_regs): Corresponding changes.
4334 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
4335 * frv/predicates.md (frv_load_operand): Corresponding changes.
4336 * microblaze/microblaze.c (double_memory_operand): Corresponding
4338 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
4339 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
4340 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
4341 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
4342 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
4344 * pa/pa.c (emit_move_sequence): Corresponding changes.
4345 * vax/vax.c (nonindexed_address_p): Corresponding changes.
4347 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4350 * config/arm/arm.c (coproc_secondary_reload_class): Handle
4351 structure modes. Don't check neon_vector_mem_operand for
4352 vector or structure modes.
4354 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4355 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4358 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
4359 operand 1 and reshuffle the operands to match.
4360 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
4362 2011-03-30 Christian Schüler <cschueler@gmx.de>
4365 * config/c.opt (F): Added 'Driver' to -F option.
4368 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
4370 * config/darwin.opt: Added '-arch' option.
4372 2011-03-30 Nick Clifton <nickc@redhat.com>
4374 * config/rx/rx.md: Add peepholes and patterns to combine
4375 extending loads and simple arithmetic instructions.
4376 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
4377 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4378 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
4379 modes to use pre-decrement and post-increment addressing.
4380 (rx_is_restricted_memory_address): Add range checking of REG+INT
4382 (rx_print_operand): Add support for %Q. Fix handling of %Q.
4383 (rx_memory_move_cost): Adjust cost of stores.
4384 (rx_adjust_insn_length): New function.
4386 2011-03-30 Jakub Jelinek <jakub@redhat.com>
4389 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4390 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4391 matching arg00/arg01 types.
4393 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
4395 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4396 last_location to UNKNOWN_LOCATION.
4398 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
4401 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4404 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4405 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4408 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4410 (sparc_cpu): Likewise.
4411 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4414 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4418 PR rtl-optimization/48345
4419 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4420 hard regs for given mode from profitable regs when doing secondary
4423 2011-03-29 Jeff Law <law@redhat.com>
4426 * tree-ssa-threadupdate.c (struct redirection_data): Remove
4427 do_not_duplicate field.
4428 (lookup_redirection_data): Corresponding changes.
4429 (create_duplicates): Always create a template block.
4430 (redirect_edges): Remove code which reused the original block
4431 when it was going to become unreachable code.
4432 (thread_block): Don't set do_not_duplicate field.
4434 2011-03-29 Joseph Myers <joseph@codesourcery.com>
4436 * lto-opts.c (register_user_option_p, lto_register_user_option):
4437 Make type argument unsigned.
4438 * lto-streamer.h (lto_register_user_option): Make type argument
4440 * opth-gen.awk: Make CL_* macros unsigned.
4441 * opts-common.c (find_opt): Make lang_mask argument unsigned.
4442 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4443 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4444 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4445 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4446 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4447 (find_opt): Make lang_mask argument unsigned.
4449 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4451 PR rtl-optimization/48331
4452 PR rtl-optimization/48334
4453 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4454 for any used algorithm.
4456 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4458 * ira-conflicts.c (build_object_conflicts): Add unused attribute
4461 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
4463 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4464 (alpha_option_override): Don't set alpha_sr_alias_set.
4465 (emit_frame_store_1): Use gen_frame_mem rather than calling
4467 (alpha_expand_epilogue): Ditto.
4469 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
4471 PR tree-optimization/48290
4472 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4473 vectorization, check that relevant phis in the basic block after
4474 the inner loop are really inner loop's exit phis.
4476 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
4479 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4480 (cached_dw_loc_list_def): New structure.
4481 (cached_dw_loc_list): New typedef.
4482 (cached_dw_loc_list_table): New variable.
4483 (cached_dw_loc_list_table_hash): New function.
4484 (cached_dw_loc_list_table_eq): Likewise.
4485 (add_location_or_const_value_attribute): Take a bool cache_p.
4486 Cache the list when the parameter is true.
4487 (gen_formal_parameter_die): Update caller.
4488 (gen_variable_die): Likewise.
4489 (dwarf2out_finish): Likewise.
4490 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4491 while generating debug info for the decl.
4492 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4493 (dwarf2out_init): Initialize cached_dw_loc_list_table.
4494 (resolve_addr): Cache the result of resolving a chain of
4497 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
4499 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4500 conflict object hard regset nodes have intersecting hard reg sets.
4502 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4503 after regstat_init_n_sets_and_refs.
4505 * ira.c: Add more comments at the top.
4506 (setup_stack_reg_pressure_class, setup_pressure_classes):
4507 Add comments how we compute the register pressure classes.
4508 (setup_allocno_and_important_classes): Add more comments.
4509 (setup_class_translate_array, reorder_important_classes)
4510 (setup_reg_class_relations): Add comments.
4512 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
4515 * ira-color.c: Add 2011 to the Copyright line.
4516 (assign_hard_reg): Add more comments.
4517 (improve_allocation): Ditto.
4519 * ira-costs.c: Add 2011 to the Copyright line.
4520 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4522 (setup_regno_cost_classes_by_mode): Ditto.
4524 Initial patches from ira-improv branch:
4526 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4528 * ira-build.c (ira_create_object): Remove initialization of
4529 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
4530 (ira_create_allocno): Remove initialization of
4531 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4532 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4533 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4534 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4535 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4536 Initialize ALLOCNO_ADD_DATA.
4537 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4538 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4540 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
4541 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4543 * ira.c (ira_reallocate): Remove.
4544 (setup_pressure_classes): Call
4545 ira_init_register_move_cost_if_necessary. Use
4546 ira_register_move_cost instead of ira_get_register_move_cost.
4547 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4548 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4550 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4551 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4552 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4553 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4554 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4555 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4557 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4558 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4559 (struct allocno_color_data): New.
4560 (allocno_color_data_t): New typedef.
4561 (allocno_color_data): New definition.
4562 (ALLOCNO_COLOR_DATA): New macro.
4563 (struct object_color_data): New.
4564 (object_color_data_t): New typedef.
4565 (object_color_data): New definition.
4566 (OBJECT_COLOR_DATA): New macro.
4567 (update_copy_costs, calculate_allocno_spill_cost): Call
4568 ira_init_register_move_cost_if_necessary. Use
4569 ira_register_move_cost instead of ira_get_register_move_cost.
4570 (move_spill_restore, update_curr_costs): Ditto.
4571 (allocno_spill_priority): Make it inline.
4572 (color_pass): Allocate and free allocno_color_dat and object_color_data.
4573 (struct coalesce_data, coalesce_data_t): New.
4574 (allocno_coalesce_data): New definition.
4575 (ALLOCNO_COALESCE_DATA): New macro.
4576 (merge_allocnos, coalesced_allocno_conflict_p): Use
4577 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4578 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4579 (coalesce_allocnos): Ditto.
4580 (setup_coalesced_allocno_costs_and_nums): Ditto.
4581 (collect_spilled_coalesced_allocnos): Ditto.
4582 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4583 (setup_slot_coalesced_allocno_live_ranges): Ditto.
4584 (coalesce_spill_slots): Ditto.
4585 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
4586 free allocno_coalesce_data.
4588 * ira-conflicts.c: Fix formatting.
4589 (process_regs_for_copy): Call
4590 ira_init_register_move_cost_if_necessary. Use
4591 ira_register_move_cost instead of ira_get_register_move_cost.
4592 (build_object_conflicts): Optimize.
4594 * ira-costs.c (record_reg_classes): Optimize. Call
4595 ira_init_register_move_cost_if_necessary. Use
4596 ira_register_move_cost, ira_may_move_in_cost, and
4597 ira_may_move_out_cost instead of ira_get_register_move_cost and
4598 ira_get_may_move_cost.
4599 (record_address_regs): Ditto.
4600 (scan_one_insn): Optimize.
4601 (find_costs_and_classes): Optimize.
4602 (process_bb_node_for_hard_reg_moves): Call
4603 ira_init_register_move_cost_if_necessary. Use
4604 ira_register_move_cost instead of ira_get_register_move_cost.
4606 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4607 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4608 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4609 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4611 (ira_initiate_emit_data, ira_finish_emit_data)
4612 (create_new_allocno): New functions.
4613 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4614 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4615 Use ira_register_move_cost instead of ira_get_register_move_cost.
4617 * ira-int.h: Fix some comments.
4618 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4619 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4620 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4621 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
4623 (struct ira_allocno): Make mode and aclass a bitfield. Move other
4624 bitfield after mode. Make hard_regno a short int. Make
4625 hard_regno short. Remove first_coalesced_allocno and
4626 next_coalesced_allocno. Move mem_optimized_dest_p,
4627 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4628 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
4629 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4630 temp, colorable_p. Add new member add_data.
4631 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4632 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4633 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4634 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4635 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4636 (ALLOCNO_ADD_DATA): New macro.
4637 (ira_emit_data_t): New typedef.
4638 (struct ira_emit_data): New. Move mem_optimized_dest_p,
4639 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4640 from struct ira_allocno.
4641 (ALLOCNO_EMIT_DATA): New macro.
4642 (ira_allocno_emit_data, allocno_emit_reg): New.
4643 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4644 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4645 (OBJECT_ADD_DATA): New macro.
4646 (ira_reallocate): Remove.
4647 (ira_initiate_emit_data, ira_finish_emit_data): New.
4648 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4649 (ira_init_register_move_cost_if_necessary): New.
4650 (ira_object_conflict_iter_next): Merge into
4651 ira_object_conflict_iter_cond.
4652 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4654 * ira-live.c (process_single_reg_class_operands): Call
4655 ira_init_register_move_cost_if_necessary. Use
4656 ira_register_move_cost instead of ira_get_register_move_cost.
4658 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4660 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4662 * ira-costs.c: Fix formatting.
4663 (cost_classes, cost_classes_num): Remove.
4664 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4665 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4666 (cost_classes_del, cost_classes_htab): New.
4667 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4668 (initiate_regno_cost_classes, setup_cost_classes): New.
4669 (setup_regno_cost_classes_by_aclass): New.
4670 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4671 (record_reg_classes): Use regno_cost_classes instead of
4672 cost_classes. Move checking opposite operand up.
4673 (record_address_regs): Use regno_cost_classes
4674 instead of cost_classes.
4675 (scan_one_insn): Ditto. Use always general register.
4676 (print_allocno_costs): Use regno_cost_classes instead of
4678 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
4679 (find_costs_and_classes): Set up cost classes for each registers.
4680 Use also their mode for this. Use regno_cost_classes instead of
4682 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4684 (free_ira_costs, ira_init_costs): Don't use cost_classes.
4685 (ira_costs, ira_set_pseudo_classes): Call
4686 initiate_regno_cost_classes and finish_regno_cost_classes.
4688 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4690 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4692 * target.def (ira_cover_classes): Remove.
4694 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4696 * doc/tm.texi.in: Ditto.
4698 * ira-conflicts.c: Remove mentioning cover classes from the file.
4699 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
4700 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
4702 * targhooks.c (default_ira_cover_classes): Remove.
4704 * targhooks.h (default_ira_cover_classes): Ditto.
4706 * haifa-sched.c: Remove mentioning cover classes from the file.
4707 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4708 ira_pressure_classes and ira_pressure_classes_num instead of
4709 ira_reg_class_cover_size and ira_reg_class_cover. Use
4710 sched_regno_pressure_class instead of sched_regno_cover_class.
4711 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4712 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4714 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
4715 classes from the file.
4716 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4717 (struct object_hard_regs, struct object_hard_regs_node): New.
4718 (struct ira_object): New members profitable_hard_regs,
4719 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4720 (struct ira_allocno): Rename cover_class to aclass. Rename
4721 cover_class_cost and updated_cover_class_cost to class_cost and
4722 updated_class_cost. Remove splay_removed_p and
4723 left_conflict_size. Add new members colorable_p.
4724 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4725 (ALLOCNO_COLORABLE_P): New macro.
4726 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4727 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4728 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4729 (OBJECT_...): Rename parameter C to O.
4730 (OBJECT_PROFITABLE_HARD_REGS): New macro.
4731 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4732 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4733 (struct target_ira_int): New members x_ira_max_memory_move_cost,
4734 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4735 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4736 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4737 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
4738 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
4739 x_ira_reg_class_subunion.
4740 (ira_max_memory_move_cost, ira_max_register_move_cost)
4741 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4742 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4743 (ira_important_class_nums, ira_reg_class_superunion): New macros.
4744 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4745 (ira_reg_class_union): Rename to ira_reg_class_subunion.
4746 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4747 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4748 (ira_tune_allocno_costs_and_cover_classes): Rename to
4749 ira_tune_allocno_costs.
4750 (ira_debug_hard_regs_forest): New.
4751 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4752 (ira_object_conflict_iter_next): Fix comments.
4753 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4754 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4755 cover_class to aclass.
4756 (ira_allocate_and_accumulate_costs): Ditto.
4757 (ira_allocate_and_set_or_copy_costs): Ditto.
4759 * opts.c (decode_options): Remove ira_cover_class check.
4761 * ira-color.c: Remove mentioning cover classes from the file. Use
4762 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4763 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4764 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4765 (splay-tree.h): Remove include.
4766 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4767 before copy_freq_compare_func.
4768 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4769 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4771 (hard_regs_roots, hard_regs_node_vec): Ditto.
4772 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4773 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4774 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4775 (create_new_object_hard_regs_node): Ditto.
4776 (add_new_object_hard_regs_node_to_forest): Ditto.
4777 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4778 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4780 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4781 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4782 (remove_unused_object_hard_regs_nodes): Ditto.
4783 (enumerate_object_hard_regs_nodes): Ditto.
4784 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4785 (object_hard_regs_subnode_t): Ditto.
4786 (struct object_hard_regs_subnode): Ditto.
4787 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4788 (setup_object_hard_regs_subnode_index): Ditto.
4789 (get_object_hard_regs_subnodes_num): Ditto.
4790 (form_object_hard_regs_nodes_forest): Ditto.
4791 (finish_object_hard_regs_nodes_tree): Ditto.
4792 (finish_object_hard_regs_nodes_forest): Ditto.
4793 (allocnos_have_intersected_live_ranges_p): Rename to
4794 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4795 (pseudos_have_intersected_live_ranges_p): Rename to
4796 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4797 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4798 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4799 (update_copy_costs): Remove assert. Skip cost update if the hard
4800 reg does not belong the class.
4801 (assign_hard_reg): Process only profitable hard regs.
4802 (uncolorable_allocnos_num): Make it scalar.
4803 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4804 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4805 and ira_reg_class_max_nregs.
4806 (bucket_allocno_compare_func): Check frequency first.
4807 (sort_bucket): Add compare function as a parameter.
4808 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4809 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4810 (push_allocno_to_stack): Rewrite for checking new allocno
4812 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
4813 (push_only_colorable): Pass new parameter to sort_bucket.
4814 (push_allocno_to_spill): Remove.
4815 (allocno_spill_priority_compare): Make it inline and rewrite.
4816 (splay_tree_allocate, splay_tree_free): Remove.
4817 (allocno_spill_sort_compare): New function.
4818 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
4819 build and use splay tree. Choose first allocno in uncolorable
4820 allocno bucket to spill. Remove setting spill cost.
4821 (all_conflicting_hard_regs): Remove.
4822 (setup_allocno_available_regs_num): Check only profitable hard
4823 regs. Print info about hard regs nodes.
4824 (setup_allocno_left_conflicts_size): Remove.
4825 (put_allocno_into_bucket): Don't call
4826 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
4827 (improve_allocation): New.
4828 (color_allocnos): Call setup_profitable_hard_regs,
4829 form_object_hard_regs_nodes_forest, improve_allocation,
4830 finish_object_hard_regs_nodes_forest. Setup spill cost.
4831 (print_loop_title): Use pressure classes.
4832 (color_allocnso): Ditto.
4833 (do_coloring): Remove allocation and freeing splay_tree_node_pool
4834 and allocnos_for_spilling.
4835 (ira_sort_regnos_for_alter_reg): Don't setup members
4836 {first,next}_coalesced_allocno.
4837 (color): Remove allocating and freeing removed_splay_allocno_vec.
4838 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4839 prohibited_class_mode_regs.
4841 * ira-lives.c: Remove mentioning cover classes from the file. Fix
4843 (update_allocno_pressure_excess_length): Use pressure classes.
4844 (inc_register_pressure, dec_register_pressure): Check for pressure
4846 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4847 pressure class. Use ira_reg_class_nregs instead of
4848 ira_reg_class_max_nregs.
4849 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4850 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4851 (single_reg_class): Use ira_reg_class_nregs instead of
4852 ira_reg_class_max_nregs.
4853 (process_bb_node_lives): Use pressure classes.
4855 * ira-emit.c: Remove mentioning cover classes from the file. Use
4856 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
4857 (change_loop): Use pressure classes.
4858 (modify_move_list): Call ira_set_allocno_class instead of
4859 ira_set_allocno_cover_class.
4861 * ira-build.c: Remove mentioning cover classes from the file. Use
4862 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4863 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
4864 ALLOCNO_UPDATED_CLASS_COST instead of
4865 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4866 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4867 (ira_create_allocno): Remove initialization of
4868 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
4869 ALLOCNO_COLORABLE_P.
4870 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4871 Update conflict regs for the objects.
4872 (create_cap_allocno): Remove assert. Don't propagate
4873 ALLOCNO_AVAILABLE_REGS_NUM.
4874 (ira_free_allocno_costs): New function.
4875 (finish_allocno): Change a part of code into call of
4876 ira_free_allocno_costs.
4877 (low_pressure_loop_node_p): Use pressure classes.
4878 (object_range_compare_func): Don't compare classes.
4879 (setup_min_max_conflict_allocno_ids): Ditto.
4881 * loop-invariant.c: Remove mentioning cover classes from the file.
4882 Use ira_pressure_classes and ira_pressure_classes_num instead of
4883 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
4884 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4885 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4886 Use reg_allocno_class instead of reg_cover_class.
4887 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4888 STACK_REG_COVER_CLASS.
4889 (get_regno_cover_class): Rename to get_regno_pressure_class.
4890 (move_loop_invariants): Initialize and finalize regstat.
4892 * ira.c: Remove mentioning cover classes from the file. Add
4893 comments about coloring without cover classes. Use ALLOCNO_CLASS
4894 instead of ALLOCNO_COVER_CLASS. Fix formatting.
4895 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4896 setup_class_subset_and_memory_move_costs.
4897 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4898 (setup_cover_and_important_classes): Rename to
4899 setup_allocno_and_important_classes.
4900 (setup_class_translate_array): New.
4901 (setup_class_translate): Call it for allocno and pressure classes.
4902 (cover_class_order): Rename to allocno_class_order.
4903 (comp_reg_classes_func): Use ira_allocno_class_translate instead
4904 of ira_class_translate.
4905 (reorder_important_classes): Set up ira_important_class_nums.
4906 (setup_reg_class_relations): Set up ira_reg_class_superunion.
4907 (print_class_cover): Rename to print_classes. Add parameter.
4908 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4909 Print pressure classes too.
4910 (find_reg_class_closure): Rename to find_reg_classes. Don't call
4911 setup_reg_subclasses.
4912 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4913 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4914 (setup_prohibited_class_mode_regs): Use
4915 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4916 (clarify_prohibited_class_mode_regs): New function.
4917 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4918 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4919 (ira_init_once): Initialize them.
4920 (free_register_move_costs): Process them.
4921 (ira_init): Move calls of find_reg_classes and
4922 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4923 Call clarify_prohibited_class_mode_regs.
4924 (ira_no_alloc_reg): Remove.
4925 (too_high_register_pressure_p): Use pressure classes.
4927 * sched-deps.c: Remove mentioning cover classes from the file.
4928 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4929 ira_pressure_classes and ira_pressure_classes_num instead of
4930 ira_reg_class_cover_size and ira_reg_class_cover.
4931 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4932 sched_regno_pressure_class instead of sched_regno_cover_class.
4933 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
4934 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4936 * ira.h: Add 2010 to Copyright.
4937 (ira_no_alloc_reg): Remove external.
4938 (struct target_ira): Rename x_ira_hard_regno_cover_class,
4939 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4940 x_ira_class_translate to x_ira_hard_regno_allocno_class,
4941 x_ira_allocno_classes_num, x_ira_allocno_classes, and
4942 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
4943 x_ira_pressure_classes, x_ira_pressure_class_translate, and
4944 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
4945 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
4946 x_ira_no_alloc_regs.
4947 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4948 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4949 ira_allocno_classes_num and ira_allocno_classes.
4950 (ira_class_translate): Rename to ira_allocno_class_translate.
4951 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4952 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4953 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4954 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4955 (ira_no_alloc_regs): New.
4957 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
4958 classes from the file. Use ALLOCNO_CLASS instead of
4959 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
4960 ALLOCNO_COVER_CLASS_COST.
4961 (regno_cover_class): Rename to regno_aclass.
4962 (record_reg_classes): Use ira_reg_class_subunion instead of
4963 ira_reg_class_union.
4964 (record_address_regs): Check overflow.
4965 (scan_one_insn): Ditto.
4966 (print_allocno_costs): Print total mem cost fore regional allocation.
4967 (print_pseudo_costs): Use REG_N_REFS.
4968 (find_costs_and_classes): Use classes intersected with them on the
4969 1st pass. Check overflow. Use ira_reg_class_subunion instead of
4970 ira_reg_class_union. Use ira_allocno_class_translate and
4971 regno_aclass instead of ira_class_translate and regno_cover_class.
4972 Modify code for finding regno_aclass. Setup preferred classes for
4974 (setup_allocno_cover_class_and_costs): Rename to
4975 setup_allocno_class_and_costs. Use regno_aclass instead of
4976 regno_cover_class. Use ira_set_allocno_class instead of
4977 ira_set_allocno_cover_class.
4978 (init_costs, finish_costs): Use regno_aclass instead of
4980 (ira_costs): Use setup_allocno_class_and_costs instead of
4981 setup_allocno_cover_class_and_costs.
4982 (ira_tune_allocno_costs_and_cover_classes): Rename to
4983 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
4984 by processing objects. Use ira_reg_class_max_nregs instead of
4985 ira_reg_class_nregs.
4987 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4989 * sched-int.h: Remove mentioning cover classes from the file.
4990 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4992 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
4993 classes from the file.
4994 (struct reg_pref): Rename coverclass into allocnoclass.
4995 (reg_cover_class): Rename to reg_allocno_class.
4997 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4999 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
5001 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
5003 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
5005 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
5007 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
5009 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
5011 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
5013 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
5015 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
5017 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
5018 (i386_ira_cover_classes): Ditto.
5020 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
5022 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
5024 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
5026 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
5028 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
5030 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
5032 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
5033 (mips_ira_cover_classes): Ditto.
5035 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
5037 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
5039 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
5041 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
5043 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
5045 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
5046 (IRA_COVER_CLASSES_VSX): Ditto.
5048 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
5049 (rs6000_ira_cover_classes): Ditto.
5051 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
5053 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
5055 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
5057 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
5059 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
5061 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
5063 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
5065 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
5067 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
5069 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
5071 2011-03-29 Jakub Jelinek <jakub@redhat.com>
5074 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
5075 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
5076 dw_fde_unlikely_section_end_label, cold_in_std_section,
5077 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
5078 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
5080 (output_fde): Use dw_fde_second_{begin,end} if second is
5081 true, otherwise dw_fde_{begin,end}.
5082 (output_call_frame_info): Test dw_fde_second_begin != NULL
5083 instead of dw_fde_switched_sections.
5084 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
5085 fields, initialize new fields. Initialize in_std_section
5086 unconditionally from the first partition.
5087 (dwarf2out_end_epilogue): Don't override dw_fde_end when
5088 dw_fde_second_begin is non-NULL.
5089 (dwarf2out_switch_text_section): Stop initializing removed
5090 dw_fde_struct fields, initialize new fields, initialize
5091 also dw_fde_end here. Set dw_fde_switch_cfi even when
5092 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
5093 (struct var_loc_list_def): Add last_before_switch field.
5094 (arange_table, arange_table_allocated, arange_table_in_use,
5095 ARANGE_TABLE_INCREMENT, add_arange): Removed.
5096 (size_of_aranges): Count !in_std_section and !second_in_std_section
5097 hunks in fdes, instead of looking at arange_table_in_use.
5098 (output_aranges): Add aranges_length argument, don't call
5099 size_of_aranges here. Instead of using aranges_table*
5100 emit ranges for fdes when !in_std_section resp.
5101 !second_in_std_section.
5102 (dw_loc_list): Break ranges crossing section switch.
5103 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
5104 use dw_fde_second_end instead of dw_fde_end as end of last range.
5105 (gen_subprogram_die): Don't call add_arange. Use
5106 dw_fde_{begin,end} for first partition and if switched
5107 section dw_fde_second_{begin,end} for the second.
5108 (var_location_switch_text_section_1,
5109 var_location_switch_text_section): New functions.
5110 (dwarf2out_begin_function): Initialize cold_text_section even
5111 when function_section () isn't text_section.
5112 (prune_unused_types): Don't walk arange_table.
5113 (dwarf2out_finish): Don't needlessly test
5114 flag_reorder_blocks_and_partition when testing cold_text_section_used.
5115 If info_section_emitted, call size_of_aranges and if it indicates
5116 non-empty .debug_aranges, call output_aranges with the computed
5117 size. Stop using removed dw_fde_struct fields, use
5118 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
5122 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
5123 create ENTRY_VALUE if incoming or address of incoming's MEM
5125 * dwarf2out.c (mem_loc_descriptor): Don't emit
5126 DW_OP_GNU_entry_value of DW_OP_fbreg.
5127 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
5128 on ENTRY_VALUE is able to find the canonical parameter VALUE.
5129 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
5130 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
5132 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
5133 is a REG_P or MEM_P with REG_P address, compute hash directly
5134 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
5135 (preserve_only_constants): Don't clear VALUES forwaring
5136 ENTRY_VALUE to some other VALUE.
5138 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
5140 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
5143 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
5145 * cfgexpand.c (expand_gimple_cond): Always set the source location and
5146 block before expanding the statement.
5147 (expand_gimple_stmt_1): Likewise. Set them here...
5148 (expand_gimple_stmt): ...and not here. Tidy.
5149 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
5152 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
5154 * Makefile.in: New rule for cprop.o.
5155 * gcse.c: Move constant/copy propagation to cprop.c.
5156 (compute_local_properties): Only handle expression tables.
5157 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
5158 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
5159 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
5160 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
5161 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
5162 compute_cprop_data, find_used_regs, try_replace_reg,
5163 find_avail_set, cprop_jump, constprop_register, cprop_insn,
5164 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
5165 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
5166 find_bypass_set, reg_killed_on_edge, bypass_block,
5167 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
5168 execute_rtl_cprop, pass_rtl_cprop): Move to...
5169 * cprop.c: ...here. New file, constant/copy propagation for RTL
5170 moved from gcse.c to here with minor cleanups in duplicated code.
5172 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
5174 * config/i386/i386.c (flag_opts): Fix a typo in
5175 -mavx256-split-unaligned-store.
5177 2011-03-28 Anatoly Sokolov <aesok@post.ru>
5179 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5180 LIBCALL_VALUE): Remove macros.
5181 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5182 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5183 (h8300_function_value, h8300_libcall_value,
5184 h8300_function_value_regno_p): New functions.
5186 2011-03-28 Anatoly Sokolov <aesok@post.ru>
5188 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
5190 2011-03-28 Jeff Law <law@redhat.com>
5192 * tree-ssa-threadupdate.c (redirect_edges): Call
5193 create_edge_and_update_destination_phis as needed.
5194 (create_edge_and_update_destination_phis): Accept new BB argument.
5195 All callers updated.
5196 (thread_block): Do not update the profile when threading around
5197 intermediate blocks.
5198 (thread_single_edge): Likewise.
5199 (determine_bb_domination_status): If BB is not a successor of the
5200 loop header, return NONDOMINATING.
5201 (register_jump_thread): Note when we register a jump thread around
5202 an intermediate block.
5203 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
5204 (thread_across_edge): Use it.
5206 2011-03-28 Tristan Gingold <gingold@adacore.com>
5208 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
5209 when for_return is 2.
5211 2011-03-28 Jeff Law <law@redhat.com>
5213 * var-tracking.c (canonicalize_values_mark): Delete unused
5215 (canonicalize_values_star, set_variable_part): Likewise.
5216 (clobber_variable_part, delete_variable_part): Likewise.
5218 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
5220 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
5222 2011-03-28 Martin Jambor <mjambor@suse.cz>
5224 * tree-inline.c (expand_call_inline): Do not check that destination
5226 (optimize_inline_calls): Assert that destination node is analyzed.
5227 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
5228 not call tree_lowering_passes.
5229 * cgraph.h (cgraph_analyze_function): Declare.
5230 * cgraphunit.c (cgraph_analyze_function): Make public.
5232 2011-03-28 Joseph Myers <joseph@codesourcery.com>
5234 * config/sparc/sparc-opts.h: New.
5235 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
5236 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
5237 (sparc_option_override): Store processor_type enumeration rather
5238 than string in cpu_default. Remove name and enumeration from
5239 cpu_table. Directly default -mcpu then default -mtune from -mcpu
5240 without using sparc_select. Use target_flags_explicit instead of
5242 * config/sparc/sparc.h (enum processor_type): Move to
5244 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
5245 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
5246 HeaderInclude entry.
5247 (mcpu=, mtune=): Use Var and Enum.
5248 (sparc_processor_type): New Enum and EnumValue entries.
5250 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5251 Iain Sandoe <iains@gcc.gnu.org>
5254 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
5256 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
5258 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
5259 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
5260 Insert new statements at it in lieu of STMT.
5261 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
5262 * tree-vect-stmts.c (vectorizable_store): Likewise.
5263 (vectorizable_load): Likewise.
5265 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
5267 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
5272 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
5274 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
5275 unaligned 256bit load/store.
5276 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
5277 (*avx_movdqu<avxmodesuffix>): Likewise.
5279 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5282 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
5283 * config/pa/pa.md (iordi3): Use new predicate in expander.
5286 2011-03-27 Anatoly Sokolov <aesok@post.ru>
5288 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
5289 FUNCTION_VALUE_REGNO_P): Remove macros.
5290 * config/mips/mips-protos.h (mips_function_value): Remove.
5291 * config/mips/mips.c (mips_function_value): Rename to...
5292 (mips_function_value_1): ... this. Make static. Handle receiving
5293 the function type in 'fn_decl_or_type' argument.
5294 (mips_function_value, mips_libcall_value,
5295 mips_function_value_regno_p): New function.
5296 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5297 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5299 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
5301 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
5302 and -mavx256-split-unaligned-store.
5303 (ix86_option_override_internal): Split 32-byte AVX unaligned
5304 load/store by default.
5305 (ix86_avx256_split_vector_move_misalign): New.
5306 (ix86_expand_vector_move_misalign): Use it.
5308 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
5309 -mavx256-split-unaligned-store.
5311 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
5312 256bit load/store. Generate unaligned store on misaligned memory
5314 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
5316 (*avx_movdqu<avxmodesuffix>): Likewise.
5318 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
5319 -mavx256-split-unaligned-store.
5321 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
5324 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
5327 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
5329 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
5330 opno arguments with an expand_operand. Use create_input_operand.
5331 (mips_prepare_builtin_target): Delete.
5332 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
5334 (mips_expand_builtin_direct): Use create_output_operand and
5335 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
5336 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
5337 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
5339 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
5341 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
5343 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5345 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
5347 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
5348 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
5349 basic blocks and call commit_edge_insertions directly.
5350 (fixup_abnormal_edges): Move from here to...
5351 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
5352 on the edges and return whether some have actually been inserted.
5353 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
5356 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
5358 PR rtl-optimization/48144
5359 * sel-sched-ir.c (merge_history_vect): Factor out from ...
5360 (merge_expr_data): ... here.
5361 (av_set_intersect): Rename to av_set_code_motion_filter.
5362 Update all callers. Call merge_history_vect when an expression
5363 is found in both sets.
5364 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
5366 2011-03-26 Alan Modra <amodra@gmail.com>
5368 * config/rs6000/predicates.md (word_offset_memref_op): Handle
5369 cmodel medium addresses.
5370 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
5371 64-bit gpr loads and stores.
5372 (rs6000_secondary_reload_ppc64): New function.
5373 * config/rs6000/rs6000-protos.h: Declare it.
5374 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
5376 2011-03-26 Alan Modra <amodra@gmail.com>
5379 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5380 GNU Go in traceback table.
5382 2011-03-25 Richard Henderson <rth@redhat.com>
5384 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5385 if there are exactly 6 operands.
5386 (set_storage_via_setmem): Similarly.
5388 2011-03-25 Kai Tietz <ktietz@redhat.com>
5390 * collect2.c (write_c_file_stat): Handle backslash
5391 as right-hand directory separator.
5392 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5393 checking just for slash.
5394 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5395 instead of checking for trailing slash.
5396 * gcc.c (record_temp_file): Use filename_cmp instead
5398 (do_spec_1): Likewise.
5399 (replace_outfile_spec_function): Likewise.
5400 (is_directory): Use filename_ncmp instead of strncmp.
5401 (print_multilib_info): Likewise.
5402 * gcov.c (find_source): Use filename_cmp instead
5404 (make_gcov_file_name): Fix order of slash/backslash
5406 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5407 (add_standard_paths): Likewise.
5408 * mips-tfile.c (saber_stop): Handle backslash.
5409 * prefix.c (update_path): Use filename_ncmp instead of
5411 * profile.c (output_location): Use filename_cmp instead
5413 * read-md.c (handle_toplevel_file): Handle backslash.
5414 * tlink.c (frob_extension): Likewise.
5415 * tree-cfg.c (same_line_p): Use filename_cmp instead of
5417 * tree-dump.c (dequeue_and_dump): Handle backslash.
5418 * tree.c (get_file_function_name): Likewise.
5419 * gengtype.c (read_input_list): Likewise.
5420 (get_file_realbasename): Likewise.
5421 (get_output_file_with_visibility): Use filename_cmp
5424 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
5426 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5429 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5431 * fold-const.c (expr_location_or): New function.
5432 (fold_truth_not_expr): Call it.
5434 2011-03-25 Jeff Law <law@redhat.com>
5436 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5438 * c-family/c-common.c (def_fn_type): Likewise.
5439 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5440 * emit-rtl.c (gen_rtvec): Likewise.
5441 * lto/lto-lang.c (def_fn_type): Likewise.
5443 2011-03-25 Richard Guenther <rguenther@suse.de>
5445 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5446 also generate copies.
5447 (fini_copy_prop): Handle constant values properly.
5449 2011-03-25 Jakub Jelinek <jakub@redhat.com>
5451 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5452 mode size instead of bitsize with DWARF2_ADDR_SIZE.
5453 (hash_loc_operands, compare_loc_operands): Handle
5454 DW_OP_GNU_entry_value.
5456 2011-03-25 Kai Tietz <ktietz@redhat.com>
5458 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5459 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5460 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5461 comment and use macro TARGET_64BIT_MS_ABI instead.
5462 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5463 and change default behavior for 32-bit MS_ABI.
5464 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5465 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5467 (ix86_cfun_abi): Likewise.
5468 (ix86_maybe_switch_abi): Adjust comment.
5469 (init_cumulative_args): Check for bit-ness in MS_ABI case.
5470 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5471 instead of checking for SYSV_ABI.
5472 (ix86_nsaved_sseregs): Likewise.
5473 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5475 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5476 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5477 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5478 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5479 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5481 2011-03-25 Richard Guenther <rguenther@suse.de>
5483 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5484 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5485 (verify_gimple): Remove.
5486 * tree-cfg.c (verify_gimple_call): Merge verification
5488 (verify_gimple_phi): Merge verification from verify_stmts.
5489 (verify_gimple_label): New function.
5490 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5491 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5492 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5493 (verify_stmts): Rename to verify_gimple_in_cfg.
5494 (verify_gimple_in_cfg): New function.
5495 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5496 * tree-ssa.c (verify_ssa): Likewise.
5497 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5499 2011-03-25 Richard Guenther <rguenther@suse.de>
5501 * passes.c (init_optimization_passes): Add FRE pass after
5504 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
5505 Andrew Stubbs <ams@codesourcery.com>
5507 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5509 (arm_movdi_vfp_cortexa8): New pattern.
5510 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5511 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5512 instructions when tuning for Cortex-A8. Set attribute "arch".
5513 * config/arm/arm.md: Move include arm-tune.md up a bit.
5514 (define_attr "arch"): Add "onlya8" and "nota8" values.
5515 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5517 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5521 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5523 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5524 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5525 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5526 * passes.c (init_optimization_passes): Move
5527 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5529 2011-03-25 Kai Tietz <ktietz@redhat.com>
5531 * c-typeck.c (comptypes_internal): Replace target
5532 hook call of comp_type_attributes by version in tree.c file.
5533 * gimple.c (gimple_types_compatible_p_1): Likewise.
5534 * tree-ssa.c (useless_type_conversion_p): Likewise.
5535 * tree.c (build_type_attribute_qual_variant): Likewise.
5536 (attribute_value_equal): New static helper function.
5537 (comp_type_attributes): New function.
5538 (merge_attributes): Use attribute_value_equal for comparison.
5539 (attribute_list_contained): Likewise.
5540 * tree.h (comp_type_attributes): New prototype.
5542 2011-03-25 Richard Guenther <rguenther@suse.de>
5544 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5545 of complex types at -O0.
5546 (verify_gimple_assign_binary): Likewise.
5547 (verify_gimple_assign_ternary): Likewise.
5549 2011-03-24 Mark Wielaard <mjw@redhat.com>
5551 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5552 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5554 2011-03-24 Mark Wielaard <mjw@redhat.com>
5557 * dwarf2out.c (output_abbrev_section): Only write table when
5558 abbrev_die_table_in_use > 1.
5560 2011-02-24 Richard Henderson <rth@redhat.com>
5562 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5563 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5564 (alpha_expand_unaligned_load_words): Use extql.
5565 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5566 (emit_insxl): Handle all modes for consistency.
5568 2011-02-24 Richard Henderson <rth@redhat.com>
5570 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5571 (alpha_expand_unaligned_load): Likewise.
5572 (alpha_expand_unaligned_store): Likewise.
5573 (alpha_expand_unaligned_load_words): Likewise.
5574 (alpha_expand_unaligned_store_words): Likewise.
5575 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5576 (alpha_split_lock_test_and_set_12): Likewise.
5577 (print_operand, alpha_fold_builtin_extxx): Likewise.
5578 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5579 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5580 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5581 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5582 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5583 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5584 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5585 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5586 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5587 (extwl, extll, extql): Similarly.
5588 (inswh, inslh, insqh): Similarly.
5589 (mskbl, mskwl, mskll, mskql): Similarly.
5590 (mskwh, msklh, mskqh): Similarly.
5592 2011-02-24 Richard Henderson <rth@redhat.com>
5594 * config/alpha/alpha.md (attribute isa): Add er, ner.
5595 (attribute enabled): Handle them.
5596 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5598 2011-02-24 Richard Henderson <rth@redhat.com>
5600 * config/alpha/alpha.md (attribute isa): Add vms.
5601 (attribute enabled): Handle it.
5602 (*movsf): Merge *movsf_{nofix,fix,nofp}.
5603 (*movdf): Merge *movdf_{nofix,fix,nofp}.
5604 (*movtf): Rename from *movtf_internal for consistency.
5605 (*movsi): Merge with *movsi_nt_vms.
5606 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5607 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5608 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5609 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5611 2011-02-24 Richard Henderson <rth@redhat.com>
5613 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5614 (extendqisi2, extendhisi2): Likewise.
5615 (extendqidi2): Simplify BWX/non-BWX expansions.
5616 (extendhidi2): Similarly.
5618 2011-02-24 Richard Henderson <rth@redhat.com>
5620 * config/alpha/alpha.md (attribute isa): New.
5621 (attribute enabled): New.
5622 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5623 (zero_extendqisi2, zero_extendqidi2): Similarly.
5624 (zero_extendhisi2, zero_extendhidi2): Similarly.
5625 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5627 2011-02-24 Richard Henderson <rth@redhat.com>
5629 * config/alpha/predicates.md (input_operand): Revert last change;
5630 update comment to mention 32-bit VMS rather than Windows.
5632 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5634 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5635 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5636 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5637 * passes.c (init_optimization_passes): Move
5638 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5640 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5642 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5644 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5646 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5649 2011-03-24 Jakub Jelinek <jakub@redhat.com>
5652 * simplify-rtx.c (simplify_const_unary_operation): Call
5653 real_convert when changing mode class with FLOAT_EXTEND.
5655 2011-03-24 Nick Clifton <nickc@redhat.com>
5657 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5658 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5659 * config/rx/rx.c (rx_option_override): Set align_jumps,
5660 align_loops and align_labels if not set by the user.
5661 (rx_align_for_label): New function.
5662 (rx_max_skip_for_label): New function.
5663 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5664 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5665 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5666 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5667 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5669 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5671 PR rtl-optimization/48263
5672 * optabs.c (expand_binop_directly): Reinstate convert_modes code
5673 and original commutative_p handling. Use maybe_gen_insn.
5675 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5677 * reload.c (find_reloads_subreg_address): Add address_reloaded
5678 parameter and return true there if the full address has been
5680 (find_reloads_toplev): Pass address_reloaded flag.
5681 (find_reloads_address_1): Don't use address_reloaded parameter.
5683 2011-03-24 Jeff Law <law@redhat.com>
5685 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5686 unused variable "ann".
5687 (remove_unused_locals): Likewise.
5689 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5692 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5695 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5697 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5698 for invalid symbolic addresses.
5699 (s390_secondary_reload): Don't use s390_check_symref_alignment for
5702 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5704 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5705 the argument in calls to fold_truth_not_expr.
5707 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5709 * tree.c (record_node_allocation_statistics): New function.
5710 (make_node_stat, copy_node_stat, build_string): Call it.
5711 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5712 (build1_stat, build_omp_clause): Likewise.
5714 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5716 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5719 2011-03-24 Richard Guenther <rguenther@suse.de>
5721 PR tree-optimization/48271
5722 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5723 blocks that still exist.
5725 2011-03-24 Richard Guenther <rguenther@suse.de>
5727 PR tree-optimization/48270
5728 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5729 not free datarefs before ddrs.
5731 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5733 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5734 from the address built for a reference with variable offset.
5736 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5739 * config/i386/i386.md (*movdf_internal_rex64): Do not split
5740 alternatives that can be handled with movq or movabsq insn.
5741 (*movdf_internal): Disable for !TARGET_64BIT.
5742 (*movdf_internal_nointeger): Ditto.
5743 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5745 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5747 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5748 (FUNCTION_ARG_ADVANCE): Likewise.
5749 * tm.texi.in: Change references to them to hook references.
5750 * tm.texi: Regenerate.
5751 * targhooks.c (default_function_arg): Eliminate check for target macro.
5752 (default_function_incoming_arg): Likewise.
5753 (default_function_arg_advance): Likewise.
5754 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5755 (function_arg_advance): Likewise.
5756 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5758 2011-03-24 Richard Guenther <rguenther@suse.de>
5761 * tree-object-size.c (addr_object_size): Do not double-account
5762 for MEM_REF offsets.
5764 2011-03-24 Diego Novillo <dnovillo@google.com>
5766 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5767 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5768 (lto_input_data_block): Move from lto-opts.c. Make extern.
5770 (lto_input_string): Rename from input_string. Make extern.
5772 * lto-streamer-out.c (lto_output_string_with_length): Rename from
5773 output_string_with_length.
5774 Output 0 to indicate a non-NULL string. Update all callers to
5776 (lto_output_string): Rename from output_string. Make extern.
5778 (lto_output_decl_state_streams): Make extern.
5779 (lto_output_decl_state_refs): Make extern.
5780 * lto-streamer.h (lto_input_string): Declare.
5781 (lto_input_data_block): Declare.
5782 (lto_output_string): Declare.
5783 (lto_output_string_with_length): Declare.
5784 (lto_output_decl_state_streams): Declare.
5785 (lto_output_decl_state_refs): Declare.
5787 2011-03-24 Richard Guenther <rguenther@suse.de>
5789 PR tree-optimization/46562
5790 * tree.c (build_invariant_address): New function.
5791 * tree.h (build_invariant_address): Declare.
5792 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5793 a renamed function moved ...
5794 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5795 Take valueization callback parameter.
5796 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5797 * gimple-fold.h: New file.
5798 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5799 (ccp_fold, fold_const_aggregate_ref,
5800 fold_ctor_reference, fold_nonarray_ctor_reference,
5801 fold_array_ctor_reference, fold_string_cst_ctor_reference,
5802 get_base_constructor): Move ...
5803 * gimple-fold.c: ... here.
5804 (gimple_fold_stmt_to_constant_1): New function
5805 split out from ccp_fold. Take a valueization callback parameter.
5806 Valueize all operands.
5807 (gimple_fold_stmt_to_constant): New wrapper function.
5808 (fold_const_aggregate_ref_1): New function split out from
5809 fold_const_aggregate_ref. Take a valueization callback parameter.
5810 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5811 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5812 invariant POINTER_PLUS_EXPRs to invariant form.
5813 (vn_valueize): New function.
5814 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5815 * tree-vrp.c (vrp_valueize): New function.
5816 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5817 to fold statements to constants.
5818 * tree-ssa-pre.c (eliminate): Properly guard propagation of
5819 function declarations.
5820 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5821 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5823 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5825 * config/h8300/predicates.md (jump_address_operand): Fix register
5828 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
5830 * doc/invoke.texi (max-stores-to-sink): Document.
5831 * params.h (MAX_STORES_TO_SINK): Define.
5832 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5833 if either vectorization or if-conversion is disabled.
5834 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5835 tree-vect-data-refs.c vect_equal_offsets.
5836 (dr_equal_offsets_p): New function.
5837 (find_data_references_in_bb): Remove static.
5838 * tree-data-ref.h (find_data_references_in_bb): Declare.
5839 (dr_equal_offsets_p): Likewise.
5840 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5841 (vect_drs_dependent_in_basic_block): Update calls to
5843 (vect_check_interleaving): Likewise.
5844 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5845 (cond_if_else_store_replacement): Rename to...
5846 (cond_if_else_store_replacement_1): ... this. Change arguments and
5848 (cond_if_else_store_replacement): New function.
5849 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5850 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5852 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
5855 * config/arm/arm.md (casesi): Use the gen_int_mode() function
5856 to subtract lower bound instead of GEN_INT().
5858 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
5863 * doc/extend.texi (Alignment): Move section to match order in TOC.
5864 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5865 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5867 2011-03-23 Jeff Law <law@redhat.com>
5869 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5870 before removing the edge.
5872 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5873 it may have been freed by redirect_branch_edge or
5874 redirect_edge_succ_nodup.
5876 2011-03-23 Richard Guenther <rguenther@suse.de>
5878 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5879 (check_va_list_escapes): Likewise.
5880 (check_all_va_list_escapes): Likewise.
5882 2011-03-23 Richard Guenther <rguenther@suse.de>
5884 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5885 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5886 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5887 (alias.o): Likewise.
5888 (ipa-type-escape.o): Remove.
5889 (ipa-struct-reorg.o): Likewise.
5890 (GTFILES): Remove ipa-struct-reorg.c.
5891 * alias.c: Do not include ipa-type-escape.h.
5892 * tree-ssa-alias.c: Likewise.
5893 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5894 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5895 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5896 and ipa-type-escape passes.
5897 * tree-pass.h (pass_ipa_type_escape): Remove.
5898 (pass_ipa_struct_reorg): Likewise.
5899 * ipa-struct-reorg.h: Remove.
5900 * ipa-struct-reorg.c: Likewise.
5901 * ipa-type-escape.h: Likewise.
5902 * ipa-type-escape.c: Likewise.
5903 * doc/invoke.texi (-fipa-struct-reorg): Remove.
5904 (--param struct-reorg-cold-struct-ratio): Likewise.
5905 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5906 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5907 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5909 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5911 * config/s390/2084.md: Enable all insn reservations also for z9_ec
5912 cpu attribute value.
5913 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5914 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5915 * config/s390/s390.c (processor_flags_table): New constant array.
5916 (s390_handle_arch_option): Remove.
5917 (s390_handle_option): Remove s390_handle_arch_option invocations
5918 and OPT_mwarn_framesize_ handling.
5919 (s390_option_override): Remove s390_handle_arch_option invocation.
5920 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5922 * config/s390/s390.md (cpu attribute): Add z9_ec value.
5923 * config/s390/s390.opt (s390_tune, s390_arch)
5924 (march=): Replace s390_arch_option enum and values with
5925 processor_type. Set variable name to s390_arch. Set
5926 initialization value.
5927 (mtune=): Replace s390_arch_option with processor_type. Set
5928 variable name to s390_tune. Set initialization value.
5930 2011-03-23 Julian Brown <julian@codesourcery.com>
5932 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5933 accesses which are not naturally aligned.
5935 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5938 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5940 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5942 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5943 parameter from "int" to "enum insn_code".
5944 (expand_operand_type): New enum.
5945 (expand_operand): New structure.
5946 (create_expand_operand): New function.
5947 (create_fixed_operand, create_output_operand): Likewise
5948 (create_input_operand, create_convert_operand_to): Likewise.
5949 (create_convert_operand_from, create_address_operand): Likewise.
5950 (create_integer_operand): Likewise.
5951 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5952 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5953 (expand_insn, expand_jump_insn): Likewise.
5954 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5955 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5956 (expand_movstr, expand_builtin___clear_cache): Likewise.
5957 (expand_builtin_lock_release): Likewise.
5958 * explow.c (allocate_dynamic_stack_space): Likewise.
5959 (probe_stack_range): Likewise. Allow check_stack to FAIL,
5960 and use the default handling in that case.
5961 * expmed.c (check_predicate_volatile_ok): Delete.
5962 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5963 (emit_cstore): Likewise.
5964 * expr.c (emit_block_move_via_movmem): Likewise.
5965 (set_storage_via_setmem, expand_assignment): Likewise.
5966 (emit_storent_insn, try_casesi): Likewise.
5967 (emit_single_push_insn): Likewise. Allow the expansion to fail.
5968 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5969 (expand_vec_shift_expr, expand_binop_directly): Likewise.
5970 (expand_twoval_unop, expand_twoval_binop): Likewise.
5971 (expand_unop_direct, emit_indirect_jump): Likewise.
5972 (emit_conditional_move, vector_compare_rtx): Likewise.
5973 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5974 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5975 (expand_sync_lock_test_and_set): Likewise.
5976 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
5977 (emit_unop_insn): Likewise.
5978 (expand_copysign_absneg): Change icode to an insn_code.
5979 (create_convert_operand_from_type): New function.
5980 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5981 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5982 (expand_insn, expand_jump_insn): Likewise.
5983 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5984 than const_int_operand for operand 2.
5986 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5988 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5991 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5993 * emit-rtl.c (emit_pattern_before_noloc): New function.
5994 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5995 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5996 (emit_pattern_after_noloc): New function.
5997 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5998 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
6000 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6002 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
6003 (__ffsDI2): Likewise.
6005 2011-03-22 Richard Henderson <rth@redhat.com>
6007 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
6008 of !TARGET_ABI_OPEN_VMS.
6009 (alpha_trampoline_init, alpha_start_function): Likewise.
6010 (alpha_expand_epilogue, alpha_file_start): Likewise.
6011 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
6012 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
6013 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
6014 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
6015 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
6017 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6019 * config/s390/s390-opts.h: New.
6020 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
6021 s390_arch_flags, s390_warn_framesize, s390_stack_size,
6022 s390_stack_guard): Remove.
6023 (s390_handle_arch_option): Return void. Take enum
6024 s390_arch_option value instead of string and searching array.
6025 (s390_handle_option): Don't assert that global structures are in
6026 use. Access variables via opts pointer. Use error_at. Don't use
6027 sscanf for -mstack-guard= or -mstack-size=. Update call to
6028 s390_handle_arch_option.
6029 (s390_option_override): Update call to s390_handle_arch_option.
6030 (s390_emit_prologue): Use %d format for s390_stack_size in
6031 diagnostic. Use %wd for HOST_WIDE_INT.
6032 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
6033 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
6034 * config/s390/s390.opt (config/s390/s390-opts.h): New
6035 HeaderInclude entry.
6036 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
6037 s390_arch_flags, s390_warn_framesize): New Variable entries.
6038 (s390_arch_option): New Enum and EnumValue entries.
6039 (march=): Use Enum instead of Var.
6040 (mstack-guard=, mstack-size=): Use UInteger and Var.
6043 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6045 * config/score/score.c (score_handle_option): Don't assert that
6046 global structures are in use. Access target_flags via opts
6047 pointer. Use value of -march= option to determine target_flags
6049 * config/score/score.opt (march=): Use Enum.
6050 (score_arch): New Enum and EnumValue entries.
6052 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6054 * config/mep/mep.c (option_mtiny_specified): Remove.
6055 (mep_option_override): Move register handling for -mivc2 from
6056 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
6057 instead of option_mtiny_specified.
6058 (mep_handle_option): Access target_flags via opts pointer. Don't
6059 assert that global structures are in use. Defer part of -mivc2
6060 handling and move it to mep_option_override.
6061 * config/mep/mep.opt (IVC2): New Mask entry.
6062 (mivc2): Use Var and Defer instead of Mask.
6064 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6066 * config/v850/v850-opts.h: New.
6067 * config/v850/v850.c (small_memory): Replace with
6068 small_memory_physical_max array. Make that array static const.
6069 (v850_handle_memory_option): Take integer value of argument. Take
6070 gcc_options pointer, option text and location. Return void.
6071 Update for changes to small memory structures.
6072 (v850_handle_option): Access target_flags via opts pointer. Don't
6073 assert that global structures are in use. Update calls to
6074 v850_handle_memory_option.
6075 (v850_encode_data_area): Update references to small memory settings.
6076 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
6077 (enum small_memory_type): Move to v850-opts.h.
6078 * config/v850/v850.opt (config/v850/v850-opts.h): New
6079 HeaderInclude entry.
6080 (small_memory_max): New Variable entry.
6081 (msda): Replace by pair of options msda= and msda-. Use UInteger.
6082 (mtda, mzda): Likewise.
6084 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6086 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
6087 pointer. Don't assert that global structures are in use.
6089 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6091 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
6092 via opts pointer. Don't assert that global structures are in use.
6094 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6096 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
6097 (munix=93): Use Var.
6098 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
6099 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
6100 * config/pa/pa-opts.h: New.
6101 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
6102 (pa_handle_option): Don't assert that global structures are in
6103 use. Access target_flags via opts pointer. Don't handle
6104 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
6106 (pa_option_override): Handle deferred OPT_mfixed_range_.
6108 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6110 * config/mn10300/mn10300-opts.h: New.
6111 * config/mn10300/mn10300.c (mn10300_processor,
6112 mn10300_tune_string): Remove.
6113 (mn10300_handle_option): Don't assert that global structures are
6114 in use. Access mn10300_processor via opts pointer. Don't handle
6116 * config/mn10300/mn10300.h (enum processor_type): Move to
6118 (mn10300_processor): Remove.
6119 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
6120 HeaderInclude entry.
6121 (mn10300_processor): New Variable entry.
6124 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6126 * config/microblaze/microblaze.c: Don't include opts.h.
6127 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
6128 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
6129 (mno-clearbss): Use Var and Warn.
6131 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6133 * config/m32r/m32r-opts.h: New.
6134 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
6135 (m32r_handle_option): Don't assert that global structures are in
6136 use. Access target_flags and m32r_cache_flush_func via opts
6137 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
6138 OPT_mno_flush_trap here.
6139 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
6140 include of m32r-opts.h.
6141 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
6142 HeaderInclude entry.
6143 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
6144 (mmodel=): Use Enum and Var.
6145 (m32r_model): New Enum and EnumValue entries.
6146 (mno-flush-trap): Use Var.
6147 (msdata=): Use Enum and Var.
6148 (m32r_sdata): New Enum and EnumValue entries.
6150 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6152 * config/m32c/m32c.c: Don't include opts.h.
6153 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
6154 m32c_handle_option): Remove.
6155 (m32c_option_override): Check global_options_set.x_target_memregs
6156 instead of target_memregs_set.
6157 * config/m32c/m32c.h (target_memregs): Remove.
6158 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
6161 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6163 * config/iq2000/iq2000-opts.h: New.
6164 * config/iq2000/iq2000.c: Don't include opts.h.
6165 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
6166 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
6167 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
6168 HeaderInclude entry.
6169 (iq2000_tune): New Variable entry.
6170 (march=): Add comment. Use Enum.
6171 (iq2000_arch): New Enum and EnumValue entries.
6172 (mcpu=): Use Enum and Var.
6173 (iq2000_tune): New Enum and EnumValue entries.
6175 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6177 * config/ia64/ia64-opts.h: New.
6178 * config/ia64/ia64.c (ia64_tune): Remove.
6179 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
6181 (ia64_option_override): Handle deferred OPT_mfixed_range_.
6182 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
6183 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
6184 HeaderInclude entry.
6185 (ia64_tune): New Variable entry.
6186 (mfixed-range=): Use Defer and Var.
6187 (mtune=): Use Enum and Var.
6188 (ia64_tune): New Enum and EnumValue entries.
6190 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6192 * config/frv/frv-opts.h: New.
6193 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
6195 (frv_cpu_type): Remove.
6196 * config/frv/frv.c: Don't include opts.h.
6197 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
6198 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
6199 (frv_cpu_type): New Variable entry.
6200 (frv_cpu): New Enum and EnumValue entries.
6202 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6204 * config/cris/cris.c (cris_handle_option): Access target_flags via
6205 opts pointer. Don't assert that global structures are in use.
6206 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
6207 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
6209 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6211 * config/bfin/bfin-opts.h: New.
6212 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
6213 bfin_si_revision, bfin_workarounds): Remove.
6214 (bfin_cpus): Make static const.
6215 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
6216 not bfin_lib_id_given.
6217 (bfin_handle_option): Don't set bfin_lib_id_given. Access
6218 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
6219 pointer. Use error_at. Don't assert that global structures are in use.
6220 * config/bfin/bfin.h: Include bfin-opts.h.
6221 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
6222 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
6223 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
6224 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
6227 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6229 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
6230 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
6231 or -msoft-float here.
6232 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
6233 -msoft-float and -mhard-float.
6234 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
6235 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6237 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
6239 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
6240 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
6242 (LIBGCC_SPEC): Don't handle -msoft-float.
6243 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
6245 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6247 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
6248 -mfloat-abi=*, not -msoft-float and -mhard-float.
6249 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
6251 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
6252 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
6253 mhard-float and msoft-float.
6254 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
6255 mfloat-abi=soft in comments, not mhard-float and msoft-float.
6256 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6257 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
6259 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
6260 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
6262 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
6264 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
6267 2011-03-22 Richard Henderson <rth@redhat.com>
6269 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
6270 TARGET_ABI_WINDOWS_NT.
6271 (alpha_output_function_end_prologue): Likewise.
6272 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
6273 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6274 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
6275 (trap, *movsi_nt_vms): Likewise.
6276 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
6277 (*tablejump_osf_nt_internal): Remove.
6278 * config/alpha/predicates.md (input_operand): Only test Pmode.
6280 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6282 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
6283 via opts pointer. Use error_at. Don't assert that global
6284 structures are in use.
6286 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6288 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
6289 (ix86_handle_option): Access ix86_isa_flags and
6290 ix86_isa_flags_explicit via opts pointer. Don't assert that
6291 global structures are in use.
6292 (ix86_function_specific_save, ix86_function_specific_restore):
6293 Update ix86_isa_flags_explicit field name.
6294 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
6295 (ix86_isa_flags_explicit): Rename TargetSave entry to
6296 x_ix86_isa_flags_explicit.
6298 2011-03-22 Richard Henderson <rth@redhat.com>
6300 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
6301 (alpha_option_override, direct_return): Likewise.
6302 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
6303 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
6304 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
6305 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6306 (alpha_expand_epilogue, alpha_end_function): Likewise.
6307 (alpha_init_libfuncs): Likewise.
6308 (struct machine_function): Remove unicosmk members.
6309 (print_operand) ['t']: Remove.
6310 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
6311 unicosmk_output_module_name, unicosmk_output_common,
6312 current_section_align, unicosmk_output_text_section_asm_op,
6313 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
6314 unicosmk_section_type_flags, unicosmk_unique_section,
6315 unicosmk_asm_named_section, unicosmk_insert_attributes,
6316 unicosmk_output_align, unicosmk_defer_case_vector,
6317 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
6318 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
6319 unicosmk_output_ssib, unicosmk_add_call_info_word,
6320 unicosmk_extern_head, unicosmk_output_default_externs,
6321 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
6322 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
6323 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
6324 * config/alpha/alpha-protos.h: Update.
6325 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
6326 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
6327 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
6328 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
6329 (*mulsi_se, mulvsi3): Likewise.
6330 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
6331 (*divmodsi_internal, call, call_value, realign): Likewise.
6332 (moddi3, umoddi3): Likewise; remove duplicate expander.
6333 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
6334 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
6335 (*movdi_nofix): Remove r/U alternative.
6336 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
6337 * config/alpha/constraints.md ("U"): Remove.
6338 * config/alpha/predicates.md (call_operand"): Don't test
6339 TARGET_ABI_UNICOSMK.
6341 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6343 * target.def (handle_option): Take gcc_options and
6344 cl_decoded_option pointers and location_t.
6345 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
6346 * doc/tm.texi: Regenerate.
6347 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
6348 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
6349 * lto-opts.c (lto_reissue_options): Generate option structure for
6350 targetm.handle_option call.
6351 * opts.c (target_handle_option): Update call to
6352 targetm.handle_option. Remove assertions about values now passed
6354 * targhooks.c (default_target_handle_option): New.
6355 * targhooks.h (default_target_handle_option): Declare.
6356 * config/alpha/alpha.c: Include opts.h.
6357 (alpha_handle_option): Update to new hook interface.
6358 * config/arm/arm.c: Include opts.h.
6359 (arm_handle_option): Update to new hook interface.
6360 * config/arm/t-arm (arm.o): Update dependencies.
6361 * config/bfin/bfin.c: Include opts.h.
6362 (bfin_handle_option): Update to new hook interface.
6363 * config/cris/cris.c: Include opts.h.
6364 (cris_handle_option): Update to new hook interface.
6365 * config/frv/frv.c: Include opts.h.
6366 (frv_handle_option): Update to new hook interface.
6367 * config/i386/i386.c: Include opts.h.
6368 (ix86_handle_option): Update to new hook interface.
6369 (ix86_valid_target_attribute_inner_p): Generate option structure
6370 for call to ix86_handle_option.
6371 * config/i386/t-i386 (i386.o): Update dependencies.
6372 * config/ia64/ia64.c: Include opts.h.
6373 (ia64_handle_option): Update to new hook interface.
6374 * config/ia64/t-ia64 (ia64.o): Update dependencies.
6375 * config/iq2000/iq2000.c: Include opts.h.
6376 (iq2000_handle_option): Update to new hook interface.
6377 * config/m32c/m32c.c: Include opts.h.
6378 (m32c_handle_option): Update to new hook interface.
6379 * config/m32r/m32r.c: Include opts.h.
6380 (m32r_handle_option): Update to new hook interface.
6381 * config/m68k/m68k.c: Include opts.h.
6382 (m68k_handle_option): Update to new hook interface.
6383 * config/mep/mep.c: Include opts.h.
6384 (mep_handle_option): Update to new hook interface.
6385 * config/microblaze/microblaze.c: Include opts.h.
6386 (microblaze_handle_option): Update to new hook interface.
6387 * config/mips/mips.c: Include opts.h.
6388 (mips_handle_option): Update to new hook interface.
6389 * config/mn10300/mn10300.c: Include opts.h.
6390 (mn10300_handle_option): Update to new hook interface.
6391 * config/pa/pa.c: Include opts.h.
6392 (pa_handle_option): Update to new hook interface.
6393 * config/pdp11/pdp11.c: Include opts.h.
6394 (pdp11_handle_option): Update to new hook interface.
6395 * config/rs6000/rs6000.c: Include opts.h.
6396 (rs6000_handle_option): Update to new hook interface.
6397 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6398 * config/rx/rx.c: Include opts.h.
6399 (rx_handle_option): Update to new hook interface.
6400 * config/s390/s390.c: Include opts.h.
6401 (s390_handle_option): Update to new hook interface.
6402 * config/score/score.c: Include opts.h.
6403 (score_handle_option): Update to new hook interface.
6404 * config/sh/sh.c: Include opts.h.
6405 (sh_handle_option): Update to new hook interface.
6406 * config/sparc/sparc.c: Include opts.h.
6407 (sparc_handle_option): Update to new hook interface.
6408 * config/v850/v850.c: Include opts.h.
6409 (v850_handle_option): Update to new hook interface.
6411 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6413 * gcc.c (driver_unknown_option_callback): Only permit and save
6414 unknown -Wno- options.
6415 (driver_wrong_lang_callback): Save options directly instead of via
6416 driver_unknown_option_callback.
6418 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6420 * combine.c (simplify_set): Try harder to find the best CC mode when
6421 simplifying a nested COMPARE on the RHS.
6423 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6425 * config/alpha/gnu.h: Remove.
6426 * config/arc: Remove directory.
6427 * config/arm/netbsd.h: Remove.
6428 * config/arm/t-pe: Remove.
6429 * config/crx: Remove directory.
6430 * config/i386/netbsd.h: Remove.
6431 * config/m68hc11: Remove directory.
6432 * config/m68k/uclinux-oldabi.h: Remove.
6433 * config/mcore/mcore-pe.h: Remove.
6434 * config/mcore/t-mcore-pe: Remove.
6435 * config/netbsd-aout.h: Remove.
6436 * config/rs6000/gnu.h: Remove.
6437 * config/sh/sh-symbian.h: Remove.
6438 * config/sh/symbian-base.c: Remove.
6439 * config/sh/symbian-c.c: Remove.
6440 * config/sh/symbian-cxx.c: Remove.
6441 * config/sh/symbian-post.h: Remove.
6442 * config/sh/symbian-pre.h: Remove.
6443 * config/sh/t-symbian: Remove.
6444 * config/svr3.h: Remove.
6445 * config/vax/netbsd.h: Remove.
6446 * config.build: Don't handle i[34567]86-*-pe.
6447 * config.gcc: Remove handling of deprecations for most deprecated
6449 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6450 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6451 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6452 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6453 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6454 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6456 * config.host: Don't handle i[34567]86-*-pe.
6457 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6458 (ASM_SPEC32): Don't handle -mcall-gnu.
6459 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6461 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6462 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6463 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6464 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6465 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6466 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6467 conditional on SYMBIAN.
6468 * configure.ac: Don't handle powerpc*-*-gnu*.
6469 * configure: Regenerate.
6470 * doc/extend.texi (interrupt attribute): Don't mention CRX.
6471 * doc/install-old.texi (m6811, m6812): Don't mention.
6472 * doc/install.texi (arc-*-elf*): Don't document multilib option.
6473 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6474 (m68k-uclinuxoldabi): Don't mention.
6475 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6477 (-mcall-gnu): Remove.
6478 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6479 families): Remove constraint documentation.
6481 2011-03-22 Marius Strobl <marius@FreeBSD.org>
6483 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6484 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6485 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6487 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
6489 * config/avr/avr-protos.h (expand_epilogue): Change prototype
6490 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6491 * config/avr/avr.c (init_cumulative_args)
6492 (avr_function_arg_advance): Use it.
6493 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6495 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6496 (avr_function_ok_for_sibcall): ...this new function.
6497 (avr_lookup_function_attribute1): New static Function.
6498 (avr_naked_function_p, interrupt_function_p)
6499 (signal_function_p, avr_OS_task_function_p)
6500 (avr_OS_main_function_p): Use it.
6501 * config/avr/avr.md ("sibcall", "sibcall_value")
6502 ("sibcall_epilogue"): New expander.
6503 ("*call_insn", "*call_value_insn"): New insn.
6504 ("call_insn", "call_value_insn"): Remove
6505 ("call", "call_value", "epilogue"): Change expander to handle
6508 2011-03-21 Nick Clifton <nickc@redhat.com>
6510 * doc/invoke.texi (Overall Options): Move closing brace to end of
6512 (Optimization Options): Add missing @gol.
6513 (Directory Options): Likewise.
6514 (i386 and x86-64 Options): Likewise.
6515 (RS6000 and PowerPC Options): Likewise.
6516 (i386 and x86-64 Windows Options): Likewise.
6517 (V850 Options): Add text missing from descriptions.
6519 2011-03-22 Richard Henderson <rth@redhat.com>
6521 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6522 (avr_incoming_return_addr_rtx): New.
6523 (emit_push_byte): New.
6524 (expand_prologue): Use it. Remove incorrect dwarf annotation for
6525 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
6526 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
6527 (emit_pop_byte): New.
6528 (expand_epilogue): Use it. Pop frame pointer by bytes.
6529 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6530 (INCOMING_RETURN_ADDR_RTX): New.
6531 (INCOMING_FRAME_SP_OFFSET): New.
6532 (ARG_POINTER_CFA_OFFSET): New.
6533 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6534 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6537 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6539 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6541 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6542 (FUNCTION_ARG_ADVANCE): Likewise.
6543 * tm.texi.in: Change references to them to hook references.
6544 * tm.texi: Regenerate.
6545 * targhooks.c (default_function_arg): Eliminate check for target
6547 (default_function_incoming_arg): Likewise.
6548 (default_function_arg_advance): Likewise.
6549 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6550 (function_arg_advance): Likewise.
6551 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6553 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6555 * tree.c (build_call_1): New function.
6556 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6558 2011-03-22 Richard Guenther <rguenther@suse.de>
6560 PR tree-optimization/48228
6561 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6562 for single-arg PHIs.
6564 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
6566 PR rtl-optimization/48143
6567 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6568 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6569 sse2_cvtps2pd): Likewise.
6571 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6573 * recog.c (canonicalize_change_group): Use validate_unshare_change.
6575 2011-03-22 Richard Guenther <rguenther@suse.de>
6577 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6578 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6579 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6580 and REALIGN_LOAD_EXPR.
6581 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6582 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6583 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6584 DOT_PROD_EXPR case ...
6585 (expand_expr_real_2): ... here.
6586 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6587 and REALIGN_LOAD_EXPR.
6588 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6589 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6590 (vect_create_epilog_for_reduction): Likewise.
6591 (vectorizable_reduction): Likewise.
6592 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6593 * tree-vect-stmts.c (vectorizable_load): Likewise.
6595 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6597 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6599 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6601 * config/s390/s390.c (s390_delegitimize_address): Fix offset
6602 handling for PLTOFF/GOTOFF.
6604 2011-03-22 Nick Clifton <nickc@redhat.com>
6606 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6607 trailing backslash from the end of the macro definition.
6609 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6611 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6614 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
6616 * expr.h (prepare_operand): Move to...
6617 * optabs.h (prepare_operand): ...here and change the insn code
6618 parameter from "int" to "enum insn_code".
6619 (insn_operand_matches): Declare.
6620 * expr.c (init_expr_target): Use insn_operand_matches.
6621 (compress_float_constant): Likewise.
6622 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6623 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6624 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6625 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6627 (gen_cond_trap): Likewise.
6628 (prepare_operand): Likewise. Change icode to an insn_code.
6629 (insn_operand_matches): New function.
6630 * reload.c (find_reloads_address_1): Use insn_operand_matches.
6631 * reload1.c (gen_reload): Likewise.
6632 * targhooks.c (default_secondary_reload): Likewise.
6634 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6636 * config/alpha/alpha.md (unspec): New define_c_enum.
6639 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6642 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6643 between a call and its CALL_ARG_LOCATION note.
6645 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
6647 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6649 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6653 * c-common.c (shorten_compare): If primopN is first sign-extended
6654 to opN and then zero-extended to result type, set primopN to opN.
6656 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6658 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6659 for barrier handlers.
6661 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6663 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6664 UNSPEC constants to be in the unspec enumeration, and redefine
6665 all UNSPECV constants to be in the unspecv enumeration, so that
6666 dumps print which unspec/unspec_volatile this is.
6667 * config/rs6000/vector.md (UNSPEC_*): Ditto.
6668 * config/rs6000/paired.md (UNSPEC_*): Ditto.
6669 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6670 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6671 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6673 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6674 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6675 UNSPECV_LWSYNC, since these are used as unspec_volatile.
6676 * config/rs6000/sync.md (isync, lwsync): Ditto.
6678 2011-03-21 Richard Guenther <rguenther@suse.de>
6680 * params.def (lto-min-partition): Fix typo.
6682 2011-03-21 Richard Guenther <rguenther@suse.de>
6685 * c-decl.c (grokdeclarator): Drop to the main variant only
6686 for array types. Drop flag_gen_aux_info check.
6688 2011-03-21 Richard Guenther <rguenther@suse.de>
6690 PR translation/47911
6691 * params.def (lto-partitions): Fix typo.
6692 (lto-min-partition): Fix wording.
6694 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
6696 * config/rs6000/t-freebsd: Remove duplication from file.
6698 2011-03-21 Richard Guenther <rguenther@suse.de>
6701 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6703 2011-03-21 Richard Guenther <rguenther@suse.de>
6706 * params.def (lto-partitions): Require at least 1 partition.
6708 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6710 * gthr-solaris.h: Remove.
6711 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6712 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6713 (LIB_SPEC): Likewise.
6714 * config/sol2.opt (threads): Remove.
6715 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6716 (sparc*-*-solaris2*): Likewise.
6717 * configure.ac (enable_threads): Enable solaris support.
6718 * configure: Regenerate.
6719 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6720 * doc/install.texi (Configuration, --enable-threads=lib): Remove
6723 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6725 * config.gcc: Obsolete *-*-solaris2.8*.
6726 * doc/install.texi (Specific, *-*-solaris2*): Document it.
6728 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6731 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6732 reference. Solaris 8 perl works.
6734 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6737 * doc/install.texi (Prerequisites): Move jar etc. up.
6738 Explain support library version requirements.
6740 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6743 * doc/install.texi (Prerequisites): Move Perl to build
6744 requirements. Always necessary on Solaris 2 with Sun ld.
6746 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6748 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6750 (Specific, i?86-*-solaris2.[89]): Likewise.
6751 (Specific, i?86-*-solaris2.10): Likewise.
6752 (Specific, mips-sgi-irix6): Likewise.
6753 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6754 Update for binutils 2.21.
6756 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6758 * configure.ac (gcc_cv_lto_plugin): Fix typo.
6759 Allow -fuse-linker-plugin for non-default plugin linker.
6760 * configure: Regenerate.
6762 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
6765 * gengtype.c (files_rules): Added rule for cp/parser.h.
6767 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6770 * config/s390/s390.c (s390_delegitimize_address): Don't call
6771 lowpart_subreg if orig_x has BLKmode.
6773 2011-03-21 Kai Tietz <ktietz@redhat.com>
6776 * doc/plugins.texi: Adjust documentation for plugin register_callback.
6777 * tree.h (attribute_spec): Add new member affects_type_identity.
6778 * attribs.c (empty_attribute_table): Adjust attribute_spec
6780 * config/alpha/alpha.c: Likewise.
6781 * config/arc/arc.c: Likewise.
6782 * config/arm/arm.c: Likewise.
6783 * config/avr/avr.c: Likewise.
6784 * config/bfin/bfin.c: Likewise.
6785 * config/crx/crx.c: Likewise.
6786 * config/darwin.h: Likewise.
6787 * config/h8300/h8300.c: Likewise.
6788 * config/i386/cygming.h: Likewise.
6789 * config/i386/i386.c: Likewise.
6790 * config/ia64/ia64.c: Likewise.
6791 * config/m32c/m32c.c: Likewise.
6792 * config/m32r/m32r.c: Likewise.
6793 * config/m68hc11/m68hc11.c: Likewise.
6794 * config/m68k/m68k.c: Likewise.
6795 * config/mcore/mcore.c: Likewise.
6796 * config/mep/mep.c: Likewise.
6797 * config/microblaze/microblaze.c: Likewise.
6798 * config/mips/mips.c: Likewise.
6799 * config/rs6000/rs6000.c: Likewise.
6800 * config/rx/rx.c: Likewise.
6801 * config/sh/sh.c: Likewise.
6802 * config/sol2.h: Likewise.
6803 * config/sparc/sparc.c: Likewise.
6804 * config/spu/spu.c: Likewise.
6805 * config/stormy16/stormy16.c: Likewise.
6806 * config/v850/v850.c: Likewise.
6808 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
6810 * simplify-rtx.c (simplify_binary_operation_1): Handle
6811 (xor (and A B) C) case when B and C are both constants.
6813 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
6815 * tree-dfa.c (add_referenced_var): Fix typo in comment.
6817 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
6820 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6822 2011-03-20 Jakub Jelinek <jakub@redhat.com>
6824 PR rtl-optimization/48156
6825 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6826 assume df and df_lr are not NULL.
6828 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6831 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6832 between a call and its CALL_ARG_LOCATION note.
6834 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
6837 * config/sh/sh.c (find_barrier): Don't emit a constant pool
6838 between a call and its corresponding CALL_ARG_LOCATION note.
6840 2011-03-19 Anatoly Sokolov <aesok@post.ru>
6842 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6843 instead of loop. Use HARD_REGISTER_NUM_P predicate.
6844 * haifa-sched.c (setup_ref_regs): Ditto.
6845 * caller-save.c (add_used_regs_1): Ditto.
6846 * dse.c (look_for_hardregs): Ditto.
6847 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6848 * sched-rgn.c (check_live_1): Ditto.
6850 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6852 * c-decl.c (diagnose_mismatched_decls): Give an error for
6853 redefining a typedef with variably modified type.
6855 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6857 * c-decl.c (grokfield): Don't allow typedefs for structures or
6858 unions with no tag by default.
6859 * doc/extend.texi (Unnamed Fields): Update.
6861 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
6863 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6864 Rewrite using indirect functions.
6865 (lwp_slwpcb): Ditto.
6866 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6867 (avx_vinsertf128<mode>): Ditto.
6869 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6871 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6874 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6876 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6877 splitting between a call and its corresponding CALL_ARG_LOCATION note.
6879 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
6881 PR rtl-optimization/48170
6882 * gcse.c (hoist_code): Remove bogus asserts.
6884 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
6886 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6887 computation for prologue/epilogue.
6889 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6891 * Makefile.in (check-consistency): Remove.
6893 2011-03-18 Jakub Jelinek <jakub@redhat.com>
6896 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6897 arange_table_in_use is 0, but either text_section_used or
6898 cold_text_section_used is true. Don't call it if
6899 !info_section_emitted.
6901 2011-03-18 Anatoly Sokolov <aesok@post.ru>
6903 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6904 FUNCTION_VALUE_REGNO_P): Remove.
6905 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6907 * config/avr/avr.c (avr_ret_register): Make static inline.
6908 (avr_function_value_regno_p): New function.
6909 (avr_libcall_value): Make static. Add 'func' argument.
6910 (avr_function_value): Make static. Rename 'func' argument to
6911 'fn_decl_or_type', forward it to avr_libcall_value. Call
6912 avr_ret_register function instead of RET_REGISTER macro.
6913 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6915 2011-03-18 Jason Merrill <jason@redhat.com>
6918 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6920 2011-03-18 Richard Guenther <rguenther@suse.de>
6922 * doc/install.texi (--enable-gold): Remove.
6923 (--with-plugin-ld): Document.
6924 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6926 2011-03-18 Andrew Pinski <pinskia@gmail.com>
6929 * expr.c (optimize_bitfield_assignment_op): Revamp to work
6930 again after expansion changes.
6932 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
6934 * combine.c (try_combine): Do simplification only call of
6935 subst() on i2 even when i1 is present. Update comments.
6937 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
6939 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6940 and UNSPEC_PCREL_SYMOFF.
6942 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6944 * config/s390/s390.md: Use define_c_enum for the unspec constant
6947 2011-03-18 Richard Henderson <rth@redhat.com>
6948 Jakub Jelinek <jakub@redhat.com>
6951 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6952 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6954 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6957 * combine.c (cant_combine_insn_p): Don't check zero/sign
6958 extended hard registers.
6960 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6963 * combine.c (cant_combine_insn_p): Check zero/sign extended
6966 2011-03-17 Anatoly Sokolov <aesok@post.ru>
6968 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6969 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6970 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6971 Change return type to bool.
6972 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6974 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6977 * var-tracking.c (prepare_call_arguments): If CALL target
6978 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6979 pc instead of looking it up using cselib_lookup and use
6980 Pmode for it if x has VOIDmode.
6981 * dwarf2out.c (gen_subprogram_die): If also both first and
6982 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6985 * function.c (assign_parms): For data.passed_pointer parms
6986 use MEM of data.entry_parm instead of data.entry_parm itself
6987 as DECL_INCOMING_RTL.
6988 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6989 also when passed and declared mode is the same, DECL_RTL
6990 is a MEM with pseudo as address and DECL_INCOMING_RTL is
6993 2011-03-16 Jeff Law <law@redhat.com>
6995 PR rtl-optimization/37273
6996 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6997 handle them like argument loads from stack slots. Do not double
6998 count memory for memory constants and argument loads from stack slots.
7000 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7003 * var-tracking.c (prepare_call_arguments): Check SUBREG.
7005 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7008 * config/i386/i386.opt: Add Save to -mavx and -mfma.
7010 2011-03-17 Jakub Jelinek <jakub@redhat.com>
7013 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
7015 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
7016 Clear call_arg_locations and call_arg_loc_last always.
7019 * var-tracking.c (prepare_call_arguments): If argument needs to be
7020 passed by reference, adjust argtype and mode.
7022 2011-03-17 Richard Guenther <rguenther@suse.de>
7025 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
7026 a value make sure to fold the statement.
7028 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
7031 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
7032 return condition with !cfun->calls_alloca.
7034 2011-03-17 Richard Guenther <rguenther@suse.de>
7037 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7038 origin for decls in other ltrans units.
7039 (input_varpool_node): Likewise.
7041 2011-03-17 Richard Guenther <rguenther@suse.de>
7044 * tree-object-size.c (compute_object_offset): Properly return
7045 the offset operand of MEM_REFs as sizetype.
7047 2011-03-17 Jakub Jelinek <jakub@redhat.com>
7049 PR rtl-optimization/48141
7050 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
7051 * dse.c: Include params.h.
7052 (active_local_stores_len): New variable.
7053 (add_wild_read, dse_step1): Clear it when setting active_local_stores
7055 (record_store, check_mem_read_rtx): Decrease it when removing
7057 (scan_insn): Likewise. Increase it when adding to chain, if it
7058 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
7059 set active_local_stores to NULL before the addition.
7060 * Makefile.in (dse.o): Depend on $(PARAMS_H).
7062 PR rtl-optimization/48141
7063 * dse.c (record_store): If no positions are needed in an insn
7064 that cannot be deleted, at least unchain it from active_local_stores.
7066 2011-03-16 Dodji Seketeli <dodji@redhat.com>
7069 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
7070 (lookup_type_die_strip_naming_typedef): ... here.
7071 (get_context_die): Use it.
7072 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
7073 the anonymous struct named by the naming typedef.
7075 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
7078 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
7079 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7081 2011-03-16 Jeff Law <law@redhat.com>
7083 * tree-vrp.c (identify_jump_threads): Slightly simplify type
7084 check for operands of conditional. Allow type to be a pointer.
7086 2011-03-16 Richard Guenther <rguenther@suse.de>
7088 PR tree-optimization/48149
7089 * fold-const.c (fold_binary_loc): Fold
7090 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
7092 2011-03-16 Richard Guenther <rguenther@suse.de>
7094 PR tree-optimization/26134
7095 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
7096 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
7097 (non_rewritable_mem_ref_base): Handle complex type component
7098 accesses, constrain offsets for vector and complex extracts
7101 2011-03-16 Richard Guenther <rguenther@suse.de>
7103 PR tree-optimization/48146
7104 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
7105 operands avoiding the need for renaming.
7107 2011-03-16 Richard Guenther <rguenther@suse.de>
7109 * gimple-fold.c (maybe_fold_reference): Open-code relevant
7110 constant folding. Move MEM_REF canonicalization first.
7111 Rely on fold_const_aggregate_ref for initializer folding.
7112 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
7114 2011-03-16 Jakub Jelinek <jakub@redhat.com>
7117 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7118 arg0/arg1 or their arguments are always fold converted to matching
7121 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
7124 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7127 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
7128 Handle in-tree gold.
7129 (ld_vers): Extract binutils version for gold.
7130 (gcc_cv_ld_hidden): Handle gold here.
7131 (gcc_cv_lto_plugin): Determine level of linker plugin support.
7132 * configure: Regenerate.
7133 * config.in: Regenerate.
7134 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
7135 -fuse-linker-plugin otherwise.
7136 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
7137 (LINK_COMMAND_SPEC): Use it.
7138 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
7140 2011-03-16 Jakub Jelinek <jakub@redhat.com>
7142 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
7143 * calls.c: Remove debug.h include.
7144 (emit_call_1): Don't call virtual_call_token debug hook.
7145 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
7146 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
7147 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
7148 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
7149 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
7150 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
7151 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
7152 dwarf2out_virtual_call): Remove.
7153 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
7154 copy_call_info and virtual_call hooks.
7155 (dwarf2out_init): Don't initialize vcall_insn_table,
7156 debug_dcall_section and debug_vcall_section.
7157 (prune_unused_types): Don't mark nodes from dcall_table.
7158 (dwarf2out_finish): Don't output dcall or vcall tables.
7159 * final.c (final_scan_insn): Don't call direct_call or
7160 virtual_call debug hooks.
7161 * debug.h (struct gcc_debug_hooks): Remove direct_call,
7162 virtual_call_token, copy_call_info and virtual_call hooks.
7163 (debug_nothing_uid): Remove prototype.
7164 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
7165 copy_call_info and virtual_call hooks.
7166 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7167 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
7168 * debug.c (do_nothing_debug_hooks): Likewise.
7169 (debug_nothing_uid): Remove.
7170 * doc/invoke.texi (-fenable-icf-debug): Remove.
7171 * common.opt (-fenable-icf-debug): Likewise.
7173 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
7174 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
7175 call's MEM. Handle functions returning aggregate through a hidden
7176 first pointer. For virtual calls add clobbered pc to call arguments
7178 * dwarf2out.c (gen_subprogram_die): Emit
7179 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
7183 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
7184 * rtl.h (ENTRY_VALUE_EXP): Define.
7185 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
7186 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7187 * print-rtl.c (print_rtx): Likewise.
7188 * gengtype.c (adjust_field_rtx_def): Likewise.
7189 * var-tracking.c (vt_add_function_parameter): Adjust
7190 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
7191 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
7192 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
7193 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
7194 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
7196 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
7197 Call var_location debug hook even on CALL_INSNs.
7198 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
7199 * rtl.def (ENTRY_VALUE): New.
7200 * dwarf2out.c: Include cfglayout.h.
7201 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7202 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
7203 (struct call_arg_loc_node): New type.
7204 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
7205 tail_call_site_count): New variables.
7206 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
7207 DW_TAG_GNU_call_site_parameter.
7208 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
7209 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
7210 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
7211 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
7212 and DW_AT_GNU_all_source_call_sites.
7213 (mem_loc_descriptor): Handle ENTRY_VALUE.
7214 (add_src_coords_attributes): Don't add enything if
7215 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
7216 (dwarf2out_abstract_function): Save and clear call_arg_location,
7217 call_site_count and tail_call_site_count around dwarf2out_decl call.
7218 (gen_call_site_die): New function.
7219 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
7220 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
7221 (dwarf2out_function_decl): Clear call_arg_locations,
7222 call_arg_loc_last, set call_site_count and tail_call_site_count
7223 to -1 and free block_map.
7224 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
7225 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
7226 followed by any real instructions.
7227 (dwarf2out_begin_function): Set call_site_count and
7228 tail_call_site_count to 0.
7229 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
7230 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
7231 attempt to force a DIE for it and worst case remove the attribute.
7232 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
7233 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
7235 * var-tracking.c: Include tm_p.h.
7236 (vt_stack_adjustments): For calls call note_register_arguments.
7237 (argument_reg_set): New variable.
7238 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
7239 ensure the VALUE is resolved.
7240 (call_arguments): New variable.
7241 (prepare_call_arguments): New function.
7242 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
7243 (struct expand_loc_callback_data): Add ignore_cur_loc field.
7244 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
7245 always use the best expression.
7246 (vt_expand_loc): Add ignore_cur_loc argument.
7247 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
7248 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
7249 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
7251 (vt_add_function_parameter): Use cselib_lookup_from_insn.
7252 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
7253 argument. Don't call cselib_preserve_only_values and
7255 (note_register_arguments): New function.
7256 (vt_initialize): Compute argument_reg_set. Call
7257 vt_add_function_parameters before processing basic blocks instead of
7258 afterwards. For calls call prepare_call_arguments before calling
7259 cselib_process_insn.
7260 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
7261 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
7262 (var-tracking.o): Depend on $(TM_P_H).
7263 * cfglayout.h (insn_scope): New prototype.
7264 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
7265 * cfglayout.c (insn_scope): No longer static.
7266 * insn-notes.def (CALL_ARG_LOCATION): New.
7267 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
7268 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
7269 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
7270 nothing for DECL_EXTERNAL BLOCK_VARS.
7272 2011-03-16 Alan Modra <amodra@gmail.com>
7275 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
7276 create invalid offset address for vsx splat insn.
7277 * config/rs6000/predicates.md (splat_input_operand): New.
7278 * config/rs6000/vsx.md (vsx_splat_*): Use it.
7280 2011-03-15 Xinliang David Li <davidxl@google.com>
7283 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
7284 (normalize_preds): New function.
7285 (is_use_properly_guarded): Normalize def predicates.
7287 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7290 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
7291 in the output template.
7293 2011-03-15 Richard Guenther <rguenther@suse.de>
7296 * tree-pretty-print.c (dump_function_declaration): Properly
7297 dump unprototyped and varargs function types.
7299 2011-03-15 Richard Guenther <rguenther@suse.de>
7301 PR tree-optimization/13954
7302 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
7305 2011-03-15 Richard Guenther <rguenther@suse.de>
7307 PR tree-optimization/48037
7308 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
7309 selects into BIT_FIELD_REFs.
7310 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
7313 2011-03-15 Jakub Jelinek <jakub@redhat.com>
7315 PR tree-optimization/48129
7316 * builtins.c (fold_builtin_snprintf): Convert to type of
7317 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
7318 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
7320 2011-03-15 Richard Guenther <rguenther@suse.de>
7322 PR tree-optimization/41490
7323 * tree-ssa-dce.c (propagate_necessity): Handle returns without
7324 value but with VUSE.
7325 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
7327 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
7328 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
7329 * tree-tailcall.c (find_tail_calls): Ignore returns.
7331 2011-03-15 Richard Guenther <rguenther@suse.de>
7334 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
7335 or variable-indexed array accesses when in gimple form.
7337 2011-03-15 Richard Guenther <rguenther@suse.de>
7339 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
7341 2011-03-15 Alan Modra <amodra@gmail.com>
7344 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
7345 presume symbol_refs without a symbol_ref_decl are suitably
7346 aligned, nor other trees we may see here. Handle anchor symbols.
7347 (legitimate_constant_pool_address_p): Comment. Add mode param.
7348 Check cmodel=medium addresses. Adjust all calls.
7349 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
7350 creating cmodel=medium optimized access to locals.
7351 * config/rs6000/constraints.md (R): Pass QImode to
7352 legitimate_constant_pool_address_p.
7353 * config/rs6000/predicates.md (input_operand): Pass mode to
7354 legitimate_constant_pool_address_p.
7355 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
7358 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7361 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
7362 64-bit constants being loaded into registers other than GPRs such
7363 as loading 0 into a VSX register.
7365 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7367 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
7369 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7372 * builtins.c (fold_builtin_snprintf): New function.
7373 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
7374 (fold_builtin_4): Likewise.
7377 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7378 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
7379 and C - X == X also strip nops from +/-/p+ operand.
7380 When optimizing -X == C, fold C to arg0's type.
7383 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7384 emit it as add_AT_int instead of add_AT_unsigned.
7386 2011-03-14 Tom Tromey <tromey@redhat.com>
7388 * unwind-dw2.c: Include sys/sdt.h if it exists.
7389 (_Unwind_DebugHook): Use STAP_PROBE2.
7390 * config.in, configure: Rebuild.
7391 * configure.ac: Check for sys/sdt.h.
7393 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
7395 * config/i386/i386.md (ROUND_FLOOR): New constant.
7396 (ROUND_CEIL): Ditto.
7397 (ROUND_TRUNC): Ditto.
7398 (ROUND_MXCSR): Ditto.
7399 (ROUND_NO_EXC): Ditto.
7400 (rint<mode>2): Use new defines instead of numerical constants.
7401 (floor<mode>2): Ditto.
7402 (ceil<mode>2): Ditto.
7403 (btrunc<mode>2): Ditto.
7404 * config/i386/i386-builtin-types.def: Define ROUND function type
7406 * config/i386/i386.c (enum ix86_builtins): Add
7407 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7408 (struct builtin_description): Add
7409 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7410 (ix86_expand_sse_round): New static function.
7411 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7413 (ix86_builtin_vectorized_function): Handle
7414 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7416 2011-03-14 Tom Tromey <tromey@redhat.com>
7418 * c-parser.c (c_parser_asm_string_literal): Clear
7419 warn_overlength_strings.
7421 2011-03-14 Tom Tromey <tromey@redhat.com>
7423 * c-parser.c (disable_extension_diagnostics): Save
7424 warn_overlength_strings.
7425 (restore_extension_diagnostics): Restore warn_overlength_strings.
7427 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7429 * BASE-VER: Change to 4.7.0.
7431 2011-03-14 Richard Guenther <rguenther@suse.de>
7434 * tree.c (build_vector_from_val): Adjust assert to requirements
7437 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7440 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7442 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
7444 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7445 terms of target_flags_explicit. Adjust copyright year.
7447 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7448 * config/rs6000/t-freebsd: New file. Add override for
7451 2011-03-13 Chris Demetriou <cgd@google.com>
7453 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7454 (-fno-diagnostics-show-option): this, to reflect current default.
7455 (-Werror=): Update text about -fno-diagnostics-show-option.
7457 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
7460 * config/rs6000/predicates.md (easy_vector_constant_add_self,
7461 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7462 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7463 mode is not V2DImode or V2DFmode.
7464 (vspltis_constant): Do not handle V2DImode and V2DFmode.
7465 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7466 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7468 (movdi_internal64): Likewise.
7470 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
7472 PR tree-optimization/47127
7473 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7475 (set_cloog_options): Same.
7476 (scop_to_clast): Same.
7477 (print_clast_stmt): Do not call cloog_state_malloc and
7479 (print_generated_program): Same.
7481 * graphite-clast-to-gimple.h (cloog_state): Declared.
7482 (scop_to_clast): Adjust declaration.
7483 * graphite.c (cloog_state): Defined here.
7484 (graphite_initialize): Call cloog_state_malloc.
7485 (graphite_finalize): Call cloog_state_free.
7487 2011-03-11 Jason Merrill <jason@redhat.com>
7489 * attribs.c (lookup_attribute_spec): Take const_tree.
7492 2011-03-11 Joseph Myers <joseph@codesourcery.com>
7494 * config/sparc/sparc.c (sparc_option_override): Use
7495 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7497 2011-03-11 Richard Guenther <rguenther@suse.de>
7499 PR tree-optimization/48067
7500 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7501 multiplication result will be only used once on the target
7504 2011-03-11 Richard Guenther <rguenther@suse.de>
7506 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7508 2011-03-11 Richard Guenther <rguenther@suse.de>
7511 * tree.c (find_decls_types_r): Do not walk types only reachable
7512 from IDENTIFIER_NODEs.
7514 2011-03-11 Jakub Jelinek <jakub@redhat.com>
7517 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7518 all vnode->force_output nodes as needed.
7520 2011-03-11 Jason Merrill <jason@redhat.com>
7523 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7524 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7526 2011-03-11 Martin Jambor <mjambor@suse.cz>
7528 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7531 2011-03-11 Jakub Jelinek <jakub@redhat.com>
7533 PR tree-optimization/48063
7534 * ipa-inline.c (cgraph_decide_inlining): Don't try to
7535 inline functions called once if !tree_can_inline_p (node->callers).
7537 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
7539 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7541 * config/score/score3.c: Delete.
7542 * config/score/score3.h: Delete.
7543 * config/score/mul-div.S: Delete.
7544 * config/score/sfp-machine.h: Add new file.
7545 * config/score/constraints.md: Add new file.
7546 * config/score/t-score-softfp: Add new file.
7547 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7548 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7549 (score7_extra_constraint): Delete.
7550 (score7_option_override): Remove unused code.
7551 * config/score/score.c: Remove score3 and score5 define and code.
7552 * config/score/score.h: Remove score3 and score5 define and code.
7553 * config/score/score.md: Remove score3 template and unusual insn.
7554 * config/score/score.opt: Remove score3 and score5 options.
7556 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7558 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7559 when _HPUX_SOURCE is defined.
7560 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7562 2011-03-10 Jason Merrill <jason@redhat.com>
7565 * stor-layout.c (layout_type): Don't set structural equality
7566 on arrays of incomplete type.
7567 * tree.c (type_hash_eq): Handle comparing them properly.
7569 2011-03-10 Jakub Jelinek <jakub@redhat.com>
7572 * config/s390/s390.c (s390_delegitimize_address): Make sure the
7573 result mode matches original rtl mode.
7575 2011-03-10 Nick Clifton <nickc@redhat.com>
7577 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7578 (andsi3, andsi3_flags): Fix timings for three operand alternative.
7580 2011-03-09 Jakub Jelinek <jakub@redhat.com>
7582 PR rtl-optimization/47866
7583 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7584 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7585 if target wasn't scalar.
7586 * function.c (assign_stack_temp_for_type): Assert that neither
7587 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7588 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7590 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7592 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7594 * config/s390/s390-protos.h (s390_label_align): New prototype.
7595 * config/s390/s390.c (s390_label_align): New function.
7596 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7598 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7601 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7602 V2DI/V2DF constants. Only all 0's or all 1's are easy.
7603 (output_vec_const_move): Ditto.
7605 2011-03-08 Anatoly Sokolov <aesok@post.ru>
7607 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7608 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7609 * config/mips/mips.c (mips_preferred_reload_class): Make static.
7610 Change 'rclass' argument and result type to reg_class_t.
7611 (TARGET_PREFERRED_RELOAD_CLASS): Define.
7613 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
7615 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7616 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7617 (TARGET_MEMORY_MOVE_COST): Define.
7618 (avr_register_move_cost, avr_memory_move_cost): New Functions.
7620 2011-03-08 Jakub Jelinek <jakub@redhat.com>
7623 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7626 PR tree-optimization/48022
7627 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7630 2011-03-07 Jakub Jelinek <jakub@redhat.com>
7633 * var-tracking.c (find_use_val): Return NULL for
7634 cui->sets && cui->store_p BLKmode MEMs.
7636 2011-03-07 Anatoly Sokolov <aesok@post.ru>
7638 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7640 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7641 xstormy16_print_operand_address): Remove.
7642 * config/stormy16/stormy16.c (xstormy16_print_operand,
7643 xstormy16_print_operand_address): Make static.
7644 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7646 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
7649 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7650 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7653 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
7656 * cfgloopmanip.c (fix_bb_placements): Return immediately
7657 if FROM is BASE_LOOP's header.
7659 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
7661 * gimplify.c (gimplify_function_tree): Fix building calls
7662 to __builtin_return_address.
7664 2011-03-07 Alan Modra <amodra@gmail.com>
7666 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7667 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7668 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7669 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7671 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7672 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7673 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7674 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7675 * config/rs6000/rs6000.c
7676 (rs6000_elf_end_indicate_exec_stack): Rename to..
7677 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
7678 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
7679 (rs6000_file_start): ..here.
7680 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7681 file scope variables.
7682 (call_ABI_of_interest): New function.
7683 (init_cumulative_args): Set above vars when function return value
7684 is a float, vector, or small struct.
7685 (rs6000_function_arg_advance_1): Likewise for function args.
7686 (rs6000_va_start): Set rs6000_passes_float if variable arg function
7687 references float args.
7689 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
7691 * doc/cfg.texi: Remove "See" before @ref.
7692 * doc/invoke.texi: Likewise.
7694 2011-03-05 Jason Merrill <jason@redhat.com>
7696 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7698 2011-03-05 Anthony Green <green@moxielogic.com>
7700 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7702 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
7704 PR rtl-optimization/47899
7705 * cfgloopmanip.c (fix_bb_placements): Fix first argument
7706 to flow_loop_nested_p when moving the loop upward.
7708 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
7711 * arm.md (movhi_insn_arch4): Accept any immediate constant.
7713 2011-03-05 Jakub Jelinek <jakub@redhat.com>
7715 PR tree-optimization/47967
7716 * ipa-cp.c (build_const_val): Return NULL instead of creating
7717 VIEW_CONVERT_EXPR for mismatching sizes.
7718 (ipcp_create_replace_map): Return NULL if build_const_val failed.
7719 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7720 give up on versioning.
7722 2011-03-05 Alan Modra <amodra@gmail.com>
7725 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7726 full cmodel medium/large lo_sum + high addresses.
7728 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7730 * config/s390/s390.c (s390_decompose_address): Reject non-literal
7731 pool references in UNSPEC_LTREL_OFFSET.
7733 2011-03-04 Jan Hubicka <jh@suse.cz>
7736 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7737 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7738 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7740 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7741 cgraph_add_thunk): Add node pointers.
7742 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7743 associated to right node.
7744 (input_node): Update use of cgraph_same_body_alias
7745 and cgraph_add_thunk.
7747 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
7749 * config/i386/i386.opt (mprefer-avx128): New flag.
7750 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7751 modes when the flag -mprefer-avx128 is on.
7753 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
7755 * dwarf2out.c (compare_loc_operands): Fix address handling.
7757 2011-03-04 Alan Modra <amodra@gmail.com>
7759 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7761 2011-03-04 Richard Guenther <rguenther@suse.de>
7764 * expmed.c (extract_bit_field_1): Prefer vector modes that
7765 vec_extract patterns can handle.
7767 2011-03-04 Richard Guenther <rguenther@suse.de>
7770 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7772 2011-03-04 Richard Henderson <rth@redhat.com>
7774 * explow.c (emit_stack_save): Remove 'after' parameter.
7775 (emit_stack_restore): Likewise.
7776 * expr.h: Update to match.
7777 * builtins.c, calls.c, stmt.c: Likewise.
7778 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7779 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7780 * function.c (expand_function_end): Insert the emit_stack_save
7781 sequence before parm_birth_insn instead of after.
7783 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
7785 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7786 (ssse3_pmaddubsw128): Ditto.
7787 (ssse3_pmaddubsw): Ditto.
7789 2011-03-03 Steve Ellcey <sje@cup.hp.com>
7791 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7793 2011-03-03 Jakub Jelinek <jakub@redhat.com>
7796 * gimplify.c (omp_add_variable): Only call omp_notice_variable
7797 on TYPE_SIZE_UNIT if it is a DECL.
7800 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7801 first operand is not is_gimple_mem_ref_addr, try to fold it.
7802 If the operand still isn't is_gimple_mem_ref_addr, clear
7805 2011-03-03 Richard Guenther <rguenther@suse.de>
7808 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7810 (refs_may_alias_p_1): For release branches return true if
7811 we are confused by our input.
7813 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7815 * config/s390/s390.c (s390_function_value): Rename to ...
7816 (s390_function_and_libcall_value): ... this.
7817 (s390_function_value): New function.
7818 (s390_libcall_value): New function.
7819 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7820 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7821 target macro definitions.
7822 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7824 2011-03-02 Joseph Myers <joseph@codesourcery.com>
7826 * config/i386/freebsd64.h (CC1_SPEC): Define.
7827 * config/i386/linux64.h (CC1_SPEC): Define.
7828 * config/i386/x86-64.h (CC1_SPEC): Don't define.
7830 2011-03-02 Anatoly Sokolov <aesok@post.ru>
7832 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7834 * config/stormy16/stormy16.c: Include reload.h.
7835 (xstormy16_memory_move_cost): New function.
7836 (TARGET_MEMORY_MOVE_COST): Define.
7838 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
7840 PR rtl-optimization/47925
7841 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7842 with side effects. Remove the more-specific check for volatile asms.
7844 2011-03-02 Alan Modra <amodra@gmail.com>
7847 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7848 toc relative addresses for valid offsets.
7850 2011-03-01 Richard Guenther <rguenther@suse.de>
7852 PR tree-optimization/47890
7853 * tree-vect-loop.c (get_initial_def_for_induction): Set
7854 related stmt properly.
7856 2011-03-01 Richard Guenther <rguenther@suse.de>
7859 * lto-streamer.c (lto_record_common_node): Also register
7862 2011-03-01 Richard Guenther <rguenther@suse.de>
7865 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7866 Do not stream DECL_ABSTRACT_ORIGIN.
7867 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7868 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7869 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7870 Do not stream DECL_ABSTRACT_ORIGIN.
7871 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7872 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7874 2011-02-28 Anatoly Sokolov <aesok@post.ru>
7876 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7877 FUNCTION_VALUE_REGNO_P): Remove.
7878 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7879 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7880 Add 'outgoing' argument.
7881 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7883 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7884 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7886 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
7889 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7890 (lookup_filename): Likewise.
7891 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7893 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
7894 Jakub Jelinek <jakub@redhat.com>
7897 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7898 (assign_stack_local_1): Change last argument type to int.
7899 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7900 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
7901 don't record padding space into frame_space_list nor use those areas.
7902 (assign_stack_local): Adjust caller.
7903 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7904 of assign_stack_local, pass 0 as last argument.
7905 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7908 2011-02-28 Jakub Jelinek <jakub@redhat.com>
7911 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7912 Use target address_mode and pointer_mode hooks instead of hardcoded
7913 Pmode and ptr_mode. Handle some simple cases of extending if
7914 POINTERS_EXTEND_UNSIGNED < 0.
7915 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7916 Call convert_debug_memory_address.
7917 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7918 convert_debug_memory_address.
7921 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7922 * configure: Regenerated.
7923 * config.in: Regenerated.
7924 * varasm.c (default_function_section): Return NULL
7925 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7927 2011-02-28 Martin Jambor <mjambor@suse.cz>
7929 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7930 the description to match the printed values.
7932 2011-02-28 Richard Guenther <rguenther@suse.de>
7934 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7935 of the copied scope tree.
7937 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7939 * doc/extend.texi (Function Attributes): Avoid deeply (and
7940 wrongly) nested tables.
7942 2011-02-27 Jakub Jelinek <jakub@redhat.com>
7945 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7946 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7947 r isn't op0 nor op1.
7949 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7951 * config/avr/avr.md: Remove magic comment for emacs.
7953 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7956 * config/avr/avr.c (avr_option_override): Use error on bad options.
7957 (avr_help): New function.
7958 (TARGET_HELP): Define.
7960 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
7963 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7964 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7966 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
7968 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7969 (ARM Options): Ditto.
7970 (i386 and x86-64 Options): Ditto.
7971 (RX Options): Ditto.
7972 (SPARC Options): Ditto.
7974 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
7976 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7977 FreeBSD 6 and later. Generally use cpu generic.
7979 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
7981 * doc/cpp.texi: Update copyright years.
7983 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
7986 * config/lm32/lm32.md (ashrsi3): Added needed variable.
7988 2011-02-25 Jon Beniston <jon@beniston.com>
7991 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7992 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7993 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7994 (lm32_block_move_inline): Add type cast to remove warning.
7995 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7996 (gen_int_relational): Move declarations to start of function.
7998 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
8000 PR tree-optimization/45470
8001 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
8002 can throw internally only.
8003 * tree-vect-stmts.c (vectorizable_call): Likewise.
8005 2011-02-24 Anatoly Sokolov <aesok@post.ru>
8007 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
8008 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8009 * config/stormy16/stormy16-protos.h
8010 (xstormy16_preferred_reload_class): Remove.
8011 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
8012 static. Change 'rclass' argument and return type to reg_class_t.
8013 (TARGET_PREFERRED_RELOAD_CLASS,
8014 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8016 2011-02-24 Richard Guenther <rguenther@suse.de>
8018 * lto-streamer-in.c (input_bb): Do not find referenced vars
8019 in debug statements.
8021 2011-02-23 Jason Merrill <jason@redhat.com>
8023 * common.opt (fabi-version): Document v5 and v6.
8025 2011-02-23 Richard Guenther <rguenther@suse.de>
8027 PR tree-optimization/47849
8028 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
8030 2011-02-23 Jie Zhang <jie@codesourcery.com>
8032 * opts-common.c (decode_cmdline_option): Print empty string
8033 argument as "" in decoded->orig_option_with_args_text.
8034 * gcc.c (execute): Print empty string argument as ""
8035 in the verbose output.
8036 (do_spec_1): Keep empty string argument.
8038 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
8040 * config.gcc: Declare score-* and crx-* obsolete.
8042 2011-02-23 Jie Zhang <jie@codesourcery.com>
8044 PR rtl-optimization/47763
8045 * web.c (web_main): Ignore naked clobber when replacing register.
8047 2011-02-22 Anatoly Sokolov <aesok@post.ru>
8049 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8052 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
8055 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
8057 2011-02-22 Mike Stump <mikestump@comcast.net>
8059 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
8061 * configure: Regenerate.
8063 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
8065 PR rtl-optimization/46002
8066 * ira-color.c (update_copy_costs): Change class intersection
8067 test to reg_class_contents[] test of 'hard_regno'.
8069 2011-02-21 Joseph Myers <joseph@codesourcery.com>
8071 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
8073 * config/hpux11.opt (mt): Likewise.
8074 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
8075 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
8076 * config/vax/elf.opt (mno-asm-pic): Likewise.
8077 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
8079 2011-02-21 Mike Stump <mikestump@comcast.net>
8082 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
8083 tree so we can get save the type.
8084 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
8085 for CFString instead of trying to use past the end of the builtins.
8086 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
8087 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
8088 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
8089 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
8090 Rename to darwin_builtin_cfstring.
8091 (darwin_init_cfstring_builtins): Return the built type.
8093 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
8096 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
8097 (_mm256_insert_epi64): Use _mm_insert_epi64.
8099 2011-02-21 Anatoly Sokolov <aesok@post.ru>
8101 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8102 * config/stormy16/stormy16-protos.h
8103 (xstormy16_mode_dependent_address_p): Remove.
8104 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
8105 Make static. Change return type to bool. Change argument type to
8106 const_rtx. Remove dead code.
8107 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8109 2011-02-21 Richard Guenther <rguenther@suse.de>
8112 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8113 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
8114 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
8116 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8117 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
8119 2011-02-20 Richard Guenther <rguenther@suse.de>
8122 * tree.c (free_lang_data_in_decl): Clean builtins from
8123 the TU decl BLOCK_VARS.
8125 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
8129 * haifa-sched.c (fix_tick_ready): Skip tick computation
8132 2011-02-19 Richard Guenther <rguenther@suse.de>
8135 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
8136 Remove lazy BLOCK_VARS streaming.
8137 (lto_input_ts_block_tree_pointers): Likewise.
8138 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
8140 2011-02-19 Joseph Myers <joseph@codesourcery.com>
8142 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
8144 2011-02-19 Joseph Myers <joseph@codesourcery.com>
8146 * config/i386/biarch32.h, config/i386/mach.h,
8147 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
8149 2011-02-19 Jakub Jelinek <jakub@redhat.com>
8152 * config/i386/i386.md (peephole2 for shift and plus): Use
8153 operands[1] original mode in the first insn.
8155 2011-02-18 Mike Stump <mikestump@comcast.net>
8157 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8159 2011-02-18 Jan Hubicka <jh@suse.cz>
8162 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
8163 to zero when the function is not inlinable at all.
8165 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8167 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
8168 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8169 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
8170 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
8171 * config/pa/t-pa64: Likewise.
8172 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8174 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8177 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
8179 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8182 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
8184 2011-02-18 Anatoly Sokolov <aesok@post.ru>
8186 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8187 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
8188 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
8189 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8190 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
8191 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
8192 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
8193 m32r_load_postinc_p, m32r_store_preinc_predec_p,
8194 m32r_legitimate_address_p): New functions.
8195 * config/m32r/constraints.md (constraint "S"): Don't use
8196 STORE_PREINC_PREDEC_P.
8197 (constraint "U"): Don't use LOAD_POSTINC_P.
8199 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
8201 PR rtl-optimization/46178
8202 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
8203 compute ira_hard_regno_cover_class[].
8205 2011-02-18 Richard Guenther <rguenther@suse.de>
8208 * lto-streamer.h (lto_global_var_decls): Declare.
8209 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
8210 statics for global var processing.
8212 2011-02-18 Richard Guenther <rguenther@suse.de>
8214 PR tree-optimization/47737
8215 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
8216 edge dominance check.
8218 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8221 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
8222 avoid invalid rtx sharing.
8224 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
8226 * doc/cpp.texi (Obsolete Features): Add background on the
8227 origin of assertions.
8229 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
8231 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
8233 * config/darwin.c (output_objc_section_asm_op): Added support for
8235 (is_objc_metadata): New.
8236 (darwin_objc2_section): New.
8237 (darwin_objc1_section): New.
8238 (machopic_select_section): Added support for ABI v1 and v2.
8239 (darwin_emit_objc_zeroed): New.
8240 (darwin_output_aligned_bss): Detect objc metadata and treat it
8242 (darwin_asm_output_aligned_decl_common): Same.
8243 (darwin_asm_output_aligned_decl_local): Same.
8244 * config/darwin-sections.def: Updated for ABI v1 and v2.
8245 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
8246 compiling Objective-C code for the NeXT runtime, default to using
8247 ABI version 0 for 32-bit, and version 2 for 64-bit.
8249 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8251 * common.opt (optimize_fast): New Variable.
8252 * opts.c (default_options_optimization): Use opts->x_optimize_fast
8253 instead of local variable ofast.
8255 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
8257 * doc/invoke.texi (fobjc-abi-version): Documented.
8258 (fobjc-nilcheck): Documented.
8259 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
8262 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8265 * common.opt (export-dynamic): New Driver option.
8266 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
8268 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8270 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
8272 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
8273 Jan Hubicka <jh@suse.cz>
8277 * cfgexpand.c (account_used_vars_for_block): Remove.
8278 (estimated_stack_frame_size): Use referenced vars.
8279 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
8280 that were referenced in the original function. Test src_fn
8281 rather than cfun. Drop redundant get_var_ann.
8282 (setup_one_parameter): Drop redundant get_var_ann.
8283 (declare_return_variable): Likewise.
8284 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
8285 (copy_arguments_for_versioning): Drop redundant get_var_ann.
8286 * ipa-inline.c (compute_inline_parameters): Do not compute
8287 disregard_inline_limits here.
8288 (compute_inlinable_for_current, pass_inlinable): New.
8289 (pass_inline_parameters): Require PROP_referenced_vars.
8290 * cgraphunit.c (cgraph_process_new_functions): Don't run
8291 compute_inline_parameters explicitly unless function is in SSA form.
8292 (cgraph_analyze_function): Set .disregard_inline_limits.
8293 * tree-sra.c (convert_callers): Compute inliner parameters
8294 only for functions already in SSA form.
8296 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8298 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
8299 -mlittle-endian-data.
8301 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8303 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
8304 -mno-fpu, not -fpu and -no-fpu.
8305 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
8306 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
8308 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
8311 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
8312 input reload with PLUS RTX.
8314 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8316 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
8317 of InverseVar(MDMX).
8319 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8321 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
8324 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8326 * config/mn10300/mn10300.opt (mno-crt0): New.
8328 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8330 * config/m68k/uclinux.opt (static-libc): New Driver option.
8332 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8334 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
8336 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8338 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
8339 %{muser-extend-enabled}.
8341 2011-02-16 Richard Guenther <rguenther@suse.de>
8343 PR tree-optimization/47738
8344 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
8345 the TODO from tree_predictive_commoning.
8347 2011-02-15 Jeff Law <law@redhat.com>
8350 2011-01-25 Jeff Law <law@redhat.com>
8352 PR rtl-optimization/37273
8353 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8354 handle them like argument loads from stack slots. Do not double
8355 count memory for memory constants and argument loads from stack slots.
8357 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
8360 * combine.c (cant_combine_insn_p): Revert the last change.
8362 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
8365 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
8366 mode for vector constants. Remove code that checks for TImode.
8368 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8372 * cgraph.h (compute_inline_parameters): Return void.
8373 * ipa-inline.c (compute_inline_parameters): Adjust.
8375 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8379 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8381 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8382 * ipa-inline.c (compute_inline_parameters): Adjust.
8384 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8388 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8389 Adjust all users. Pass FN to...
8390 * tree-flow-inline.h (first_referenced_var): ... this. Add
8392 * ipa-struct-reorg.c: Adjust.
8393 * tree-dfa.c: Adjust.
8394 * tree-into-ssa.c: Adjust.
8395 * tree-sra.c: Adjust.
8396 * tree-ssa-alias.c: Adjust.
8397 * tree-ssa-live.c: Adjust.
8398 * tree-ssa.c: Adjust.
8399 * tree-ssanames.c: Adjust.
8400 * tree-tailcall.c: Adjust.
8402 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8406 * tree-flow.h (referenced_var_lookup): Add fn parameter.
8408 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8409 * tree-flow-inline.h: Adjust.
8410 * gimple-pretty-print.c: Adjust.
8411 * tree-into-ssa.c: Adjust.
8412 * tree-ssa.c: Adjust.
8413 * cfgexpand.c: Adjust.
8415 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8417 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8418 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8419 (EXTRA_CONSTRAINT): Delete.
8420 * config/iq2000/constraints.md: New file.
8421 * config/iq2000/iq2000.md: Include it.
8422 (define_insn ""): Delete.
8423 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8424 unsupported constraint letters from patterns.
8425 (call_value, call_value_internal1): Likewise.
8426 (call_value_multiple_internal1): Likewise.
8428 2011-02-15 Nick Clifton <nickc@redhat.com>
8430 * config/mn10300/mn10300.c: Include tm-constrs.h.
8431 (struct liw_data): New data structure describing an LIW candidate
8433 (extract_bundle): Use struct liw_data. Allow small integer
8434 operands for some instructions.
8435 (check_liw_constraints): Use struct liw_data. Remove swapped
8436 parameter. Add comments describing the checks. Fix bug when
8437 assigning the source of liw1 to the source of liw2.
8438 (liw_candidate): Delete. Code moved into extract_bundle.
8439 (mn10300_bundle_liw): Use struct liw_data. Check constraints
8441 * config/mn10300/predicates.md (liw_operand): New predicate.
8442 Allows registers and small integer constants.
8443 * config/mn10300/constraints.md (O): New constraint. Accetps
8444 integers in the range -8 to +7 inclusive.
8445 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8446 for moving a small integer into a register. Give this alternative
8448 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8449 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8450 using the J,K,L and M constraints,
8451 (liw): Remove SI mode on second operands to allow for HI and QI
8453 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
8456 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
8459 * combine.c (cant_combine_insn_p): Check zero/sign extended
8462 2011-02-15 Richard Guenther <rguenther@suse.de>
8464 PR tree-optimization/47743
8465 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8466 for a non-type-compatible VN lookup bail out.
8468 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8470 * config/fr30/constraints.md: New file.
8471 * config/fr30/fr30.md: Include it.
8472 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8473 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8474 (EXTRA_CONSTRAINT): Delete.
8476 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8478 * config/frv/constraints.md: New file.
8479 * config/frv/predicates.md: Include it.
8480 * config/frv/frv.c (reg_class_from_letter): Delete.
8481 (frv_option_override): Don't initialize it.
8482 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8483 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8484 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8485 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8486 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8487 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8488 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8489 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8490 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8491 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8492 (REG_CLASS_FROM_CONSTRAINT): Delete.
8494 2011-02-15 Jakub Jelinek <jakub@redhat.com>
8497 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8498 if frame size is 0 in a leaf function.
8500 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8503 * config/alpha/host-osf.c: New file.
8504 * config/alpha/x-osf: New file.
8505 * config.host (alpha*-dec-osf*): Use it.
8507 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8509 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8510 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8511 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8512 (rx_mode_dependent_address_p): ...this. Make static. Change argument
8514 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8516 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8518 * config/stormy16/constraints.md: New file.
8519 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8520 Use satisfies_constraint_Q and satisfies_constraint_R.
8521 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8523 (xstormy16_legitiamte_address_p): Declare.
8524 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8525 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8526 (EXTRA_CONSTRAINT): Delete.
8527 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8529 (xstormy16_extra_constraint_p): Delete.
8531 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
8533 PR tree-optimization/46494
8534 * loop-unroll.c (split_edge_and_insert): Adjust comment.
8535 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8536 (pass_rtl_loop_done): Add TODO_verify_flow.
8537 * fwprop.c (pass_rtl_fwprop): Likewise.
8538 * modulo-sched.c (pass_sms): Likewise.
8539 * tree-ssa-dom.c (pass_dominator): Likewise.
8540 * tree-ssa-loop-ch.c (pass_ch): Likewise.
8541 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8542 (pass_tree_loop_done): Likewise.
8543 * tree-ssa-pre.c (execute_pre): Likewise.
8544 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8545 * tree-ssa-sink.c (pass_sink_code): Likewise.
8546 * tree-vrp.c (pass_vrp): Likewise.
8548 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8550 * config/v850/constraints.md: New file.
8551 * config/v850/v850.md: Include it.
8552 * config/v850/predicates.md (reg_or_0_operand): Use
8553 satisfies_constraint_G.
8554 (special_symbolref_operand): Use satisfies_constraint_K.
8555 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8556 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8557 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8558 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8559 (EXTRA_CONSTRAINT): Delete.
8560 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8561 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8562 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8564 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8567 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8570 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8572 * config/mcore/constraints.md: New file.
8573 * config/mcore/mcore.md: Include it.
8574 * config/mcore/mcore.c (reg_class_from_letter): Delete.
8575 * config/mcore/mcore.h (reg_class_from_letter): Delete.
8576 (REG_CLASS_FROM_LETTER): Delete.
8577 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8578 insn_const_int_ok_for_constraint.
8579 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8580 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8581 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8582 (EXTRA_CONSTRAINT): Delete.
8584 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8587 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8588 (IS_SIGHANDLER): Define.
8589 (sparc64_is_sighandler): New function, split off from
8590 sparc64_fallback_frame_state.
8591 (sparc_is_sighandler): New function, split off from
8592 sparc_fallback_frame_state.
8593 (sparc64_fallback_frame_state): Merge with ...
8594 (sparc_fallback_frame_state): ... this into ...
8595 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8596 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
8597 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
8598 stack instead of hardcoded offsets.
8600 2011-02-14 Andriy Gapon <avg@freebsd.org>
8603 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8605 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8607 * configure: Regenerate.
8609 2011-02-12 Joseph Myers <joseph@codesourcery.com>
8612 * gcc.c (asm_options): Correct spec matching --target-help.
8614 2011-02-12 Martin Jambor <mjambor@suse.cz>
8616 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8617 to gimple call error.
8619 2011-02-12 Mike Stump <mikestump@comcast.net>
8621 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8622 comments in backslash regions.
8624 2011-02-12 Mike Stump <mikestump@comcast.net>
8625 Jakub Jelinek <jakub@redhat.com>
8626 Iain Sandoe <iains@gcc.gnu.org>
8629 * dwarf2out.c (output_cfa_loc): When required, apply the
8630 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8631 (output_loc_sequence): Likewise.
8632 (output_loc_operands_raw): Likewise.
8633 (output_loc_sequence_raw): Likewise.
8634 (output_cfa_loc): Likewise.
8635 (output_loc_list): Suppress register number adjustment when
8636 calling output_loc_sequence()
8637 (output_die): Likewise.
8639 2011-02-12 Anatoly Sokolov <aesok@post.ru>
8641 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8643 * config/xtensa/xtensa.c (xtensa_register_move_cost,
8644 xtensa_memory_move_cost): New functions.
8645 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8647 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
8650 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8651 in the current directory.
8652 * configure: Rebuilt.
8654 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8656 * config/darwin.c (darwin_override_options): Add a hunk missed
8657 from the commit of r168571. Trim comment line lengths and
8658 correct indents of the preceding block.
8660 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8662 * gcc.c (driver_handle_option): Concatenate the argument to -F with
8665 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8667 * common.opt (nostartfiles): New Driver option.
8669 2011-02-11 Xinliang David Li <davidxl@google.com>
8671 PR tree-optimization/47707
8672 * tree-chrec.c (convert_affine_scev): Keep type precision.
8674 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
8676 PR tree-optimization/47420
8677 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8679 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
8681 PR rtl-optimization/47614
8682 * rtl.h (check_for_inc_dec): Declare.
8683 * dse.c (check_for_inc_dec): Externalize...
8684 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8685 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8687 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8690 * gcc.c (main): Do not compile inputs if there were errors in
8692 * opts-common.c (read_cmdline_option): Check for wrong language
8693 after other error checks.
8695 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
8697 * cgraph.c: Fix comment typos.
8698 * cgraph.h: Likewise.
8699 * cgraphunit.c: Likewise.
8700 * ipa-cp.c: Likewise.
8701 * ipa-inline.c: Likewise.
8702 * ipa-prop.c: Likewise.
8703 * ipa-pure-const.c: Likewise.
8704 * ipa-ref.c: Likewise.
8705 * ipa-reference.c: Likewise.
8707 2011-02-11 Jakub Jelinek <jakub@redhat.com>
8710 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8712 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8715 * doc/sourcebuild.texi (Require Support): Document
8716 dg-require-ascii-locale.
8718 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
8720 * doc/lto.texi (Write summary): Fix missing parentheses.
8722 2011-02-10 DJ Delorie <dj@redhat.com>
8724 * config/m32c/m32c.c (m32c_option_override): Disable
8725 -fcombine-stack-adjustments until flag value tracking and compare
8726 optimization can be rewritten.
8728 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
8730 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8732 (PROCESSOR_DEFAULT64): Likewise.
8734 2011-02-10 Richard Henderson <rth@redhat.com>
8736 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8737 change from 2011-02-03.
8738 * config/rx/rx.c (flags_from_code): Likewise.
8739 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8740 is valid, n/pz otherwise.
8741 (rx_select_cc_mode): Return CCmode if Y is not zero.
8743 2011-02-10 Richard Guenther <rguenther@suse.de>
8745 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8747 2011-02-10 Richard Guenther <rguenther@suse.de>
8749 PR tree-optimization/47677
8750 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8752 2011-02-10 Jakub Jelinek <jakub@redhat.com>
8755 * combine.c (make_compound_operation): Only change shifts into
8756 multiplication for SCALAR_INT_MODE_P.
8758 2011-02-10 Jie Zhang <jie@codesourcery.com>
8762 2011-02-05 Jie Zhang <jie@codesourcery.com>
8764 * web.c (entry_register): Don't clobber the number of the
8765 first uninitialized reference in used[].
8767 2011-02-09 Richard Guenther <rguenther@suse.de>
8769 PR tree-optimization/47664
8770 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8773 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
8777 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8779 (PROCESSOR_DEFAULT64): Same.
8780 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8782 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8784 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8786 2011-02-09 Martin Jambor <mjambor@suse.cz>
8789 * tree-sra.c (struct access): New flags grp_scalar_read and
8790 grp_scalar_write. Changed description of assignment read and write
8792 (dump_access): Dump new flags, reorder all of them.
8793 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8794 to detect multiple scalar reads.
8795 (analyze_access_subtree): Use the new scalar read write flags instead
8796 of the old flags. Adjusted comments.
8798 2011-02-08 DJ Delorie <dj@redhat.com>
8801 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8804 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8806 * config/m68k/uclinux.opt: New.
8807 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8809 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8811 * config/cris/elf.opt (sim): New Driver option.
8813 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8815 * config/xtensa/elf.opt: New.
8816 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8818 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8820 * config/vax/elf.opt: New.
8821 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8823 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8825 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8827 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8829 * config/gnu-user.opt: New.
8830 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8831 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8832 *-*-uclinux*): Use gnu-user.opt.
8834 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
8836 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8837 * config/i386/gnu.h (CPP_SPEC): Likewise.
8839 2011-02-08 Ian Lance Taylor <iant@google.com>
8841 * common.opt (fcx-limited-range): Add SetByCombined flag.
8842 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8843 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8844 (fassociative-math, freciprocal-math): Likewise.
8845 (funsafe-math-optimizations): Likewise.
8846 * opth-gen.awk: Handle SetByCombined.
8847 * optc-gen.awk: Likewise.
8848 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8849 (set_unsafe_math_optimizations_flags): Likewise.
8850 * doc/options.texi (Option properties): Document SetByCombined.
8852 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8854 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8855 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8856 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8857 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8858 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8860 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
8862 PR tree-optimization/46834
8863 PR tree-optimization/46994
8864 PR tree-optimization/46995
8865 * graphite-sese-to-poly.c (used_outside_reduction): New.
8866 (detect_commutative_reduction): Call used_outside_reduction.
8867 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8868 translate_scalar_reduction_to_array only when at least one
8869 loop-phi/close-phi tuple has been detected.
8871 2011-02-08 Richard Guenther <rguenther@suse.de>
8874 * tree-vect-generic.c (expand_vector_operations_1): Update
8876 (expand_vector_operations): ... not here. Cleanup EH info
8877 and the CFG if required.
8879 2011-02-08 Richard Guenther <rguenther@suse.de>
8881 PR tree-optimization/47641
8882 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8883 require type compatibility.
8885 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8887 * gimple-low.c (lower_function_body): Don't remove the location of
8888 the return statement here.
8889 (lower_gimple_return): Do it here instead but only if the return
8890 statement is actually used twice.
8892 2011-02-08 Richard Guenther <rguenther@suse.de>
8894 PR tree-optimization/47632
8895 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8896 unused up_to_stmt parameter, return whether cfg-cleanup is
8897 necessary, remove EH info properly.
8898 (forward_propagate_into_gimple_cond): Adjust caller.
8899 (forward_propagate_into_cond): Likewise.
8900 (forward_propagate_comparison): Likewise.
8901 (tree_ssa_forward_propagate_single_use_vars): Make
8902 forward_propagate_comparison case similar to the two others.
8904 2011-02-08 Nick Clifton <nickc@redhat.com>
8906 * config/mn10300/mn10300.opt (mliw): New command line option.
8907 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8908 (liw_bundling): New automaton.
8909 (liw): New attribute.
8910 (liw_op): New attribute.
8911 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8912 (movsi_internal): Add LIW attributes.
8916 (addsi3): Separate register and immediate alternatives.
8921 (lshrsi3): Likewise.
8922 (ashrsi3): Likewise.
8924 * config/mn10300/mn10300.c (liw_op_names): New
8925 (mn10300_print_operand): Handle 'W' operand descriptor.
8926 (extract_bundle): New function.
8927 (check_liw_constraints): New function.
8928 (liw_candidate): New function.
8929 (mn10300_bundle_liw): New function.
8930 (mn10300_reorg): New function.
8931 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8932 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8933 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8934 __LIW__ or __NO_LIW__.
8935 * doc/invoke.texi: Describe the -mliw command line option.
8937 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8939 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8940 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8941 pthread_mutex_unlock): Remove.
8942 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8943 * config/pa/t-pa64: Likewise.
8944 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8945 shared libc if not linking against libpthread.
8946 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8948 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
8951 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8952 on 10.6 and later to ensure that we always use the unwinder from
8953 the system. Only add -no_compact_unwind when tarteting darwin
8956 2011-02-07 Steve Ellcey <sje@cup.hp.com>
8959 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8960 (vec_interleave_lowv2sf): Ditto.
8961 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8962 (vec_extract_oddv2sf): Ditto.
8964 2011-02-07 Mike Stump <mikestump@comcast.net>
8967 Add __ieee_divdc3 entry point.
8968 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8970 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8971 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8972 * config/darwin.c (darwin_rename_builtins): Add.
8973 * config/darwin-protos.h (darwin_rename_builtins): Add.
8975 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
8978 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8981 2011-02-07 Mike Stump <mikestump@comcast.net>
8983 * config/darwin.opt (mmacosx-version-min): Update default OS version.
8985 2011-02-07 Denis Chertykov <chertykov@gmail.com>
8988 * config/avr/libgcc.S (exit): Move .endfunc
8990 2011-02-07 Richard Guenther <rguenther@suse.de>
8992 PR tree-optimization/47615
8993 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8994 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8995 (run_scc_vn): Initialize it.
8996 (visit_reference_op_load): Use it.
8997 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8999 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9001 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
9002 DImode trapping arithmetic libfuncs.
9004 2011-02-07 Richard Guenther <rguenther@suse.de>
9006 PR tree-optimization/47621
9007 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
9009 (execute_update_addresses_taken): ... here. Make it more
9010 conservative in what we accept.
9012 2011-02-06 Joseph Myers <joseph@codesourcery.com>
9014 * config/sparc/freebsd.h (ASM_SPEC): Define.
9015 * config/sparc/vxworks.h (ASM_SPEC): Define.
9017 2011-02-06 Joseph Myers <joseph@codesourcery.com>
9019 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9021 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
9023 * doc/invoke.texi: Remove reference to compiler internals from
9026 * reg-notes.def: Remove REG_VALUE_PROFILE.
9027 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
9029 2011-02-05 Jakub Jelinek <jakub@redhat.com>
9032 * varasm.c (default_section_type_flags): If decl is NULL,
9033 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
9035 2011-02-05 Jie Zhang <jie@codesourcery.com>
9038 * web.c (entry_register): Don't clobber the number of the
9039 first uninitialized reference in used[].
9041 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
9043 PR tree-optimization/46194
9044 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
9045 (build_classic_dist_vector_1): Do not represent classic distance
9046 vectors when the access functions are variating in different loops.
9048 2011-02-04 Joseph Myers <joseph@codesourcery.com>
9050 * config/mips/iris6.opt: New.
9051 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
9053 2011-02-04 Richard Henderson <rth@redhat.com>
9054 Steve Ellcey <sje@cup.hp.com>
9057 * config/ia64/predicates.md (mux1_brcst_element): New.
9058 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
9059 * config/ia64/ia64.c (ia64_unpack_assemble): New.
9060 (ia64_unpack_sign): New.
9061 (ia64_expand_unpack): Rewrite using new routines.
9062 (ia64_expand_widen_sum): Ditto.
9063 (ia64_expand_dot_prod_v8qi): Ditto.
9064 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
9065 routines, add endian check.
9066 (pmpy2_even): Rename from pmpy2_r, add endian check.
9067 (pmpy2_odd): Rename from pmpy2_l, add endian check.
9068 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
9069 (vec_widen_smult_hi_v4hi): Ditto.
9070 (vec_widen_umult_lo_v4hi): Ditto.
9071 (vec_widen_umult_hi_v4hi): Ditto.
9072 (mulv2si3): Change endian checks.
9073 (sdot_prodv4hi): Rewrite with new calls.
9074 (udot_prodv4hi): New.
9075 (vec_pack_ssat_v4hi): Add endian check.
9076 (vec_pack_usat_v4hi): Ditto.
9077 (vec_pack_ssat_v2si): Ditto.
9078 (max1_even): Rename from max1_r, add endian check.
9079 (max1_odd): Rename from max1_l, add endian check.
9080 (*mux1_rev): Format change.
9082 (*mux1_shuf): Ditto.
9084 (*mux1_brcst_v8qi): Use new predicate.
9085 (vec_extract_evenv8qi): Remove endian check.
9086 (vec_extract_oddv8qi): Ditto.
9087 (vec_interleave_lowv4hi): Format change.
9088 (vec_interleave_highv4hi): Ditto.
9089 (mix2_even): Rename from mix2_r, add endian check.
9090 (mix2_odd): Rename from mux2_l, add endian check.
9091 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
9092 (vec_extract_evenodd_helper): Format change.
9093 (vec_extract_evenv4hi): Remove endian check.
9094 (vec_extract_oddv4hi): Remove endian check.
9095 (vec_interleave_lowv2si): Format change.
9096 (vec_interleave_highv2si): Format change.
9097 (vec_initv2si): Remove endian check.
9098 (vecinit_v2si): Add endian check.
9099 (reduc_splus_v2sf): Add endian check.
9100 (reduc_smax_v2sf): Ditto.
9101 (reduc_smin_v2sf): Ditto.
9102 (vec_initv2sf): Remove endian check.
9103 (fpack): Add endian check.
9104 (fswap): Add endian check.
9105 (vec_interleave_highv2sf): Add endian check.
9106 (vec_interleave_lowv2sf): Add endian check.
9107 (fmix_lr): Add endian check.
9108 (vec_setv2sf): Format change.
9109 (*vec_extractv2sf_0_be): Use shift to extract operand.
9110 (*vec_extractv2sf_1_be): New.
9111 (vec_pack_trunc_v4hi): Add endian check.
9112 (vec_pack_trunc_v2si): Format change.
9114 2011-02-04 Jakub Jelinek <jakub@redhat.com>
9117 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
9118 do bb, locus and block comparison and disallow loads if it is not set.
9119 (stmt_is_replaceable_p): New function.
9120 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
9122 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
9123 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
9125 * tree-flow.h (stmt_is_replaceable_p): New prototype.
9127 2011-02-04 Joseph Myers <joseph@codesourcery.com>
9129 * config/rs6000/xilinx.opt: New.
9130 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
9132 2011-02-04 Joseph Myers <joseph@codesourcery.com>
9134 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
9136 2011-02-03 Anatoly Sokolov <aesok@post.ru>
9138 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
9139 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9140 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
9141 secondary_reload_info, xtensa_secondary_reload): Remove.
9142 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
9143 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9144 (xtensa_preferred_reload_class): Make static. Change return and
9145 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
9146 Use CONST_DOUBLE_P predicate.
9147 (xtensa_preferred_output_reload_class): New function.
9148 (xtensa_secondary_reload): Make static.
9150 2011-02-03 Joseph Myers <joseph@codesourcery.com>
9152 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
9153 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
9154 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
9156 2011-02-03 Jakub Jelinek <jakub@redhat.com>
9159 * output.h (SECTION_RELRO): Define.
9160 (SECTION_MACH_DEP): Adjust.
9161 (get_variable_section): New prototype.
9162 * varpool.c (varpool_finalize_named_section_flags): New function.
9163 (varpool_assemble_pending_decls): Call it.
9164 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
9165 * cgraphunit.c (cgraph_output_in_order): Call
9166 varpool_finalize_named_section_flags.
9167 * varasm.c (get_section): Allow section flags conflicts between
9168 relro and read-only sections if the section hasn't been declared yet.
9169 Set SECTION_OVERRIDE after diagnosing section type conflict.
9170 (get_variable_section): No longer static.
9171 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
9172 readonly sections that need relocations.
9173 (decl_readonly_section_1): New function.
9174 (decl_readonly_section): Use it.
9177 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
9178 Steve Ellcey <sje@cup.hp.com>
9181 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
9182 if section attribute used.
9184 2011-02-03 Jakub Jelinek <jakub@redhat.com>
9186 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
9187 * config/darwin.c (SECTION_NO_ANCHOR): Define.
9188 (darwin_init_sections): Remove assertion.
9190 2011-02-03 Nick Clifton <nickc@redhat.com>
9192 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
9194 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
9195 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
9196 instead of "n" and "pz".
9197 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
9200 2011-02-03 Jakub Jelinek <jakub@redhat.com>
9203 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
9204 fma, expand FMA_EXPR as fma{,f,l} call.
9207 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
9208 copy them into a unsigned char variable and pass address of it to
9209 lto_output_data_stream.
9212 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
9213 around backend_init_target and lang_dependent_init_target calls.
9214 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
9215 (verify_cgraph_node): Don't call set_cfun here. Use
9216 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
9217 Set error_found for incorrectly represented calls to thunks.
9219 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
9222 PR rtl-optimization/43494
9223 * rtl.h (for_each_inc_dec_fn): New type.
9224 (for_each_inc_dec): Declare.
9225 * rtlanal.c (struct for_each_inc_dec_ops): New type.
9226 (for_each_inc_dec_find_inc_dec): New fn.
9227 (for_each_inc_dec_find_mem): New fn.
9228 (for_each_inc_dec): New fn.
9229 * dse.c (struct insn_size): Remove.
9230 (replace_inc_dec, replace_inc_dec_mem): Remove.
9231 (emit_inc_dec_insn_before): New fn.
9232 (check_for_inc_dec): Use it, along with for_each_inc_dec.
9233 (canon_address): Pass mem modes to cselib_lookup.
9234 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
9235 (cselib_lookup_from_insn): Likewise.
9236 (cselib_subst_to_values): Likewise.
9237 * cselib.c (find_slot_memmode): New var.
9238 (cselib_find_slot): New fn. Use it instead of
9239 htab_find_slot_with_hash everywhere.
9240 (entry_and_rtx_equal_p): Use find_slot_memmode.
9241 (autoinc_split): New fn.
9242 (rtx_equal_for_cselib_p): Rename and implement in terms of...
9243 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
9244 Deal with autoinc. Special-case recursion into MEMs.
9245 (cselib_hash_rtx): Likewise.
9246 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
9247 address and MEM modes.
9248 (cselib_subst_to_values): Add memmode, pass it on.
9250 (cselib_lookup): Add memmode argument, pass it on.
9251 (cselib_lookup_from_insn): Add memmode.
9252 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
9253 (struct cselib_record_autoinc_data): New.
9254 (cselib_record_autoinc_cb): New fn.
9255 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
9256 mode to cselib_lookup. Reset autoinced REGs here instead of...
9257 (cselib_process_insn): ... here.
9258 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
9260 (add_uses): Likewise, also to cselib_subst_to_values.
9261 (add_stores): Likewise.
9262 * sched-deps.c (add_insn_mem_dependence): Pass mode to
9263 cselib_subst_to_values.
9264 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
9265 * gcse.c (do_local_cprop): Adjusted.
9266 * postreload.c (reload_cse_simplify_set): Adjusted.
9267 (reload_cse_simplify_operands): Adjusted.
9268 * sel-sched-dump (debug_mem_addr_value): Pass mode.
9270 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
9272 PR tree-optimization/45122
9273 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
9274 unsafe assumptions when there's more than one loop exit.
9276 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9279 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
9280 Document using vector double with the load/store builtins, and
9281 that the load/store builtins always use Altivec instructions.
9283 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
9284 to use altivec memory instructions, even on VSX.
9285 (vector_altivec_store_<mode>): Ditto.
9287 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
9290 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9291 V2DF, V2DI support to load/store overloaded builtins.
9293 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
9294 altivec load/store builtins for V2DF/V2DI types.
9296 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9297 set avoid indexed addresses on power6 if -maltivec.
9298 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
9299 vector_altivec_load/vector_altivec_store builtins.
9300 (altivec_expand_st_builtin): Ditto.
9301 (altivec_expand_builtin): Add VSX memory builtins.
9302 (rs6000_init_builtins): Add V2DI types to internal types.
9303 (altivec_init_builtins): Add support for V2DF/V2DI altivec
9304 load/store builtins.
9305 (rs6000_address_for_altivec): Insure memory address is appropriate
9308 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
9309 vec_vsx_ld and vec_vsx_st.
9310 (vsx_store_<mode>): Ditto.
9312 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
9313 variables to hold long long types for VSX vector memory builtins.
9314 (RS6000_BTI_unsigned_long_long): Ditto.
9315 (long_long_integer_type_internal_node): Ditti.
9316 (long_long_unsigned_type_internal_node): Ditti.
9318 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
9319 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
9320 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
9322 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
9324 (vec_vsx_st): Ditto.
9326 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9328 * config/pa/pa-hpux10.opt: New.
9329 * config/hpux11.opt (pthread): New Driver option.
9330 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
9331 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
9333 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9335 * config/ia64/vms.opt: New.
9336 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
9338 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9341 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
9342 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
9343 generator functions.
9344 (vsx_floatuns<VSi><mode>2): Ditto.
9345 (vsx_fix_trunc<mode><VSi>2): Ditto.
9346 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
9348 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9350 * config/i386/djgpp.opt (posix): New Driver option.
9352 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
9354 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
9355 Move to the unsupported targets list.
9357 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
9359 PR rtl-optimization/47525
9360 * df-scan.c: Update copyright years.
9361 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
9362 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
9364 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9366 * config/i386/sysv4.h (TARGET_VERSION): Remove.
9367 (SUBTARGET_RETURN_IN_MEMORY): Remove.
9368 (ASM_OUTPUT_ASCII): Remove.
9369 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
9371 2011-02-02 Jeff Law <law@redhat.com>
9374 * reload.c (find_reloads_address): Handle reg+d address where both
9375 components are invalid by reloading the entire address.
9377 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
9378 Richard Guenther <rguenther@suse.de>
9380 PR tree-optimization/40979
9382 * passes.c (init_optimization_passes): After LIM call copy_prop
9383 and DCE to clean up.
9384 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9386 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
9388 PR tree-optimization/47576
9389 PR tree-optimization/47555
9390 * doc/invoke.texi (scev-max-expr-complexity): Documented.
9391 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9392 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9393 * tree-scalar-evolution.c (follow_ssa_edge): Use
9394 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9396 2011-02-02 Richard Guenther <rguenther@suse.de>
9398 PR tree-optimization/47566
9399 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9401 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
9405 * tree-inline.c (declare_return_variable): Remove unused caller
9410 * tree-flow-inline.h (clear_is_used, is_used_p): New.
9411 * cfgexpand.c (account_used_vars_for_block): Use them.
9412 * tree-nrv.c (tree_nrv): Likewise.
9413 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9414 (dump_scope_block): Likewise.
9415 (remove_unused_locals): Likewise.
9419 * tree-inline.c (declare_return_variable): Add result decl to
9420 local decls only once.
9421 * gimple-low.c (record_vars_into): Mark newly-created variables
9424 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
9430 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9432 (no_real_insns_p, schedule_block, set_priorities): Drop special
9433 treatment of boundary debug insns.
9434 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9435 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9436 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9437 (BOUNDARY_DEBUG_INSN_P): Likewise.
9438 (SCHEDULE_DEBUG_INSN_P): Likewise.
9439 * sched-rgn.c (init_ready_list): Drop special treatment of
9440 boundary debug insns.
9441 * final.c (rest_of_clean_state): Clear notes' BB.
9443 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9445 * config/openbsd.opt (assert=): New Driver option.
9447 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9449 * config/i386/nto.opt: New.
9450 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9452 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9454 * config/i386/netware.opt: New.
9455 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9457 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9459 * config/interix.opt (posix): New Driver option.
9461 2011-02-01 DJ Delorie <dj@redhat.com>
9463 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9465 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9468 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
9470 PR tree-optimization/47561
9471 * toplev.c (process_options): Print the Graphite flags. Add
9472 flag_loop_flatten to the list of options requiring Graphite.
9474 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9476 * config/i386/cygming.opt (posix): New Driver option.
9478 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9480 * config/arm/vxworks.opt: New.
9481 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9483 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9485 * config/alpha/elf.opt: New.
9486 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9487 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9489 2011-02-01 Richard Guenther <rguenther@suse.de>
9491 PR tree-optimization/47559
9492 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9493 store-motion on references that can throw.
9495 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
9497 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9498 * tree-pass.h (TDF_CSELIB): New macro.
9499 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9500 cselib_lookup): Check for it rather than for TDF_DETAILS.
9502 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
9505 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9508 * opts.c (finish_options): Don't add x_aux_base_name if it is
9511 2011-02-01 Richard Guenther <rguenther@suse.de>
9513 PR tree-optimization/47555
9515 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
9517 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9519 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
9522 * config/lm32/t-lm32: Add multilib for all CPU options.
9524 2011-02-01 Richard Guenther <rguenther@suse.de>
9526 PR tree-optimization/47541
9527 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9528 sure to have a field at offset zero.
9530 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9532 * config/arc/arc.opt (EB, EL): New Driver options.
9534 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9536 * config/alpha/osf5.opt: New.
9537 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9539 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9541 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9543 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
9545 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9547 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9548 is an alias of -floop-interchange and that it requires the
9549 Graphite infrastructure.
9550 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9551 flag_loop_interchange based on the value of flag_tree_loop_linear.
9553 2011-01-31 Jakub Jelinek <jakub@redhat.com>
9554 Richard Guenther <rguenther@suse.de>
9556 PR tree-optimization/47538
9557 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9558 type instead of r1type, except for comparisons. For right
9559 shifts and comparisons punt if there are mismatches in
9560 sizetype vs. non-sizetype types.
9562 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9564 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9567 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9569 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9571 * configure: Regenerate.
9573 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9575 * configure.ac (gcc_cv_ld_static_option): Define.
9576 (gcc_cv_ld_dynamic_option): Define.
9577 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9579 (HAVE_LD_STATIC_DYNAMIC): Update message.
9580 (LD_STATIC_OPTION): Define.
9581 (LD_DYNAMIC_OPTION): Define.
9582 * configure: Regenerate.
9583 * config.in: Regenerate.
9584 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9585 HAVE_LD_STATIC_DYNAMIC]: Use them.
9587 2011-01-31 Nick Clifton <nickc@redhat.com>
9589 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9590 registers inside interrupt handlers if the handler is not a leaf
9593 2011-01-31 Nick Clifton <nickc@redhat.com>
9595 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9596 reg_renumber returning an INVALID_REGNUM.
9598 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9601 * doc/install.texi: Document host options discarded when cross
9602 configuring target libraries.
9604 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9607 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9610 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9612 (no_real_insns_p, schedule_block, set_priorities): Drop special
9613 treatment of boundary debug insns.
9614 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9615 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9616 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9617 (BOUNDARY_DEBUG_INSN_P): Likewise.
9618 (SCHEDULE_DEBUG_INSN_P): Likewise.
9619 * sched-rgn.c (init_ready_list): Drop special treatment of
9620 boundary debug insns.
9621 * final.c (rest_of_clean-state): Clear notes' BB.
9623 2011-01-31 Alan Modra <amodra@gmail.com>
9625 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9626 toc relative expressions as we do in print_operand_address.
9628 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
9630 * doc/extend.texi: Follow spelling conventions.
9631 * doc/invoke.texi: Fix a typo.
9633 2011-01-30 Joseph Myers <joseph@codesourcery.com>
9635 * config/hpux11.opt: New.
9636 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9637 ia64*-*-hpux*): Use hpux11.opt.
9639 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
9641 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9644 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9646 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9649 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9651 * doc/install.texi (Binaries): Remove outdated reference for
9652 Motorola 68HC11/68HC12 downloads.
9654 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9656 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9659 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
9662 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9665 2011-01-28 Ahmad Sharif <asharif@google.com>
9667 * value-prof.c (check_counter): Corrected error message.
9669 2011-01-29 Jie Zhang <jie@codesourcery.com>
9671 * config/arm/arm.c (arm_legitimize_reload_address): New.
9672 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9673 arm_legitimize_reload_address.
9674 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9676 2011-01-28 Ian Lance Taylor <iant@google.com>
9678 * godump.c (go_define): Ignore macros whose definitions include
9679 two adjacent operands.
9681 2011-01-28 Jakub Jelinek <jakub@redhat.com>
9684 * varasm.c (force_const_mem): Store copy of x in desc->constant
9685 instead of x itself.
9686 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9687 itself into REG_EQUAL note.
9689 2011-01-28 Joseph Myers <joseph@codesourcery.com>
9691 * config/freebsd.opt (posix, rdynamic): New Driver options.
9693 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9695 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9697 * configure: Regenerate.
9699 2011-01-27 Joseph Myers <joseph@codesourcery.com>
9701 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9702 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9704 2011-01-27 Anatoly Sokolov <aesok@post.ru>
9706 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9707 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9708 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9709 (s390_preferred_reload_class): Make static. Change return and
9710 'rclass' argument type to reg_class_t.
9712 2011-01-27 Jan Hubicka <jh@suse.cz>
9715 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9716 (process_function_and_variable_attributes): Check defined weakrefs.
9718 2011-01-27 Martin Jambor <mjambor@suse.cz>
9720 PR tree-optimization/47228
9721 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9722 build_ref_for_offset.
9724 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9726 * config/spu/spu-elf.h (ASM_SPEC): Remove.
9728 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
9730 PR rtl-optimization/46856
9731 * postreload.c (reload_combine_recognize_const_pattern): Do not
9732 separate cc0 setter and user on cc0 targets.
9734 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
9737 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9738 passed a VOID_TYPE expression, immediately emit an error and
9739 return error_mark_node.
9741 2011-01-26 Jeff Law <law@redhat.com>
9743 PR rtl-optimization/47464
9744 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9745 rather than may_trap_p as needed.
9747 2011-01-26 DJ Delorie <dj@redhat.com>
9749 PR rtl-optimization/46878
9750 * combine.c (insn_a_feeds_b): Check for the implicit cc0
9751 setter/user dependency as well.
9753 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
9755 PR rtl-optimization/44469
9756 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9757 after removing trivially dead basic blocks.
9759 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9761 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9762 * config/frv/frv.h (LINK_SPEC): Likewise.
9763 * config/i386/netware.h (LINK_SPEC): Likewise.
9764 * config/m68k/linux.h (ASM_SPEC): Likewise.
9765 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9766 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9767 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9768 * config/sparc/linux.h (ASM_SPEC): Likewise.
9769 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9770 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9772 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9774 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9775 * config/frv/frv.h (ASM_SPEC): Likewise.
9776 * config/m68k/linux.h (ASM_SPEC): Likewise.
9777 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9778 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9779 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9780 * config/sparc/linux.h (ASM_SPEC): Likewise.
9781 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9782 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9784 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9786 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9787 * config/frv/frv.h (LINK_SPEC): Likewise.
9788 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9790 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9792 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9793 * config/frv/frv.h (ASM_SPEC): Likewise.
9794 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9795 * config/m68k/linux.h (ASM_SPEC): Likewise.
9796 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9797 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9798 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9799 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9800 * config/sparc/linux.h (ASM_SPEC): Likewise.
9801 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9802 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9803 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9805 2011-01-26 Steve Ellcey <sje@cup.hp.com>
9808 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9810 (vec_extract_evenodd_help): Ditto.
9811 (vec_extract_evenv4hi): Ditto.
9812 (vec_extract_oddv4hi): Ditto.
9813 (vec_interleave_lowv2si): Ditto.
9814 (vec_interleave_highv2si): Ditto.
9815 (vec_extract_evenv2si): Ditto.
9816 (vec_extract_oddv2si: Ditto.
9817 (vec_pack_trunc_v2si): Ditto.
9819 2011-01-22 Jan Hubicka <jh@suse.cz>
9822 * cgraph.h (cgraph_local_info): New field can_change_signature.
9823 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9824 signature can change.
9825 (ipcp_estimate_growth): Call sequence simplify only if calle signature
9827 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9828 (cgraph_function_versioning): We can not change signature of functions
9829 that don't allow that.
9830 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9831 (lto_input_node): Likewise.
9832 * ipa-inline.c (compute_inline_parameters): Compute
9833 local.can_change_signature.
9834 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9835 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9836 functions that can not change signature.
9837 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9838 init_cumulative_args): Do not use local calling conventions
9839 for functions that can not change signature.
9841 2011-01-22 Jan Hubicka <jh@suse.cz>
9843 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9845 2011-01-26 Richard Guenther <rguenther@suse.de>
9847 PR tree-optimization/47190
9848 * cgraphunit.c (process_common_attributes): New function.
9849 (process_function_and_variable_attributes): Use it.
9851 2011-01-26 Richard Guenther <rguenther@suse.de>
9854 * cgraphbuild.c (record_eh_tables): Record reference to personality
9857 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
9860 * sel-sched.c (moveup_expr): Don't let debug insns prevent
9861 non-debug insns from moving up.
9863 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9866 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9867 t-dlldir{,-x} fragment for build and add it to tmake_file.
9868 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9869 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9870 * config/i386/t-dlldir: New file.
9871 (SHLIB_DLLDIR): Define.
9872 * config/i386/t-dlldir-x: New file.
9873 (SHLIB_DLLDIR): Define.
9874 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9875 (SHLIB_INSTALL): Use it.
9877 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
9880 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9881 lower bound of the allowed Thumb-2 coprocessor load/store
9882 index range to -256. Add explaining comment.
9884 2011-01-25 Ian Lance Taylor <iant@google.com>
9886 * godump.c (go_define): Improve lexing of macro expansion to only
9887 accept expressions which match Go spec.
9889 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9892 * tree.c (handle_dll_attribute): Handle it.
9893 * doc/extend.texi (@item dllexport): Mention it.
9894 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9896 2011-01-25 Ian Lance Taylor <iant@google.com>
9898 PR tree-optimization/26854
9899 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9900 (decl_jump_unsafe): Move higher in file, with no other change.
9901 (bind): Set has_jump_unsafe_decl if appropriate.
9902 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9903 (check_earlier_gotos): Likewise.
9904 (c_check_switch_jump_warnings): Likewise.
9906 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
9908 * doc/invoke.texi (Warning Options): Add missing hyphen.
9909 (-fprofile-dir): Minor grammatical fixes.
9910 (-fbranch-probabilities): Likewise.
9912 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9916 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9918 (no_real_insns_p, schedule_block, set_priorities): Drop special
9919 treatment of boundary debug insns.
9920 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9921 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9922 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9923 (BOUNDARY_DEBUG_INSN_P): Likewise.
9924 (SCHEDULE_DEBUG_INSN_P): Likewise.
9925 * sched-rgn.c (init_ready_list): Drop special treatment of
9926 boundary debug insns.
9927 * final.c (rest_of_clean-state): Clear notes' BB.
9929 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9931 * Makefile.in (LAMBDA_H): Removed.
9932 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9933 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9934 lambda-trans.o, and tree-loop-linear.o.
9935 (lto-symtab.o): Remove dependence on LAMBDA_H.
9936 (tree-loop-linear.o): Remove rule.
9937 (lambda-mat.o): Same.
9938 (lambda-trans.o): Same.
9939 (lambda-code.o): Same.
9940 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9941 (tree-vect-slp.o): Same.
9942 * hwint.h (gcd): Moved here.
9943 (least_common_multiple): Same.
9944 * lambda-code.c: Removed.
9945 * lambda-mat.c: Removed.
9946 * lambda-trans.c: Removed.
9947 * lambda.h: Removed.
9948 * tree-loop-linear.c: Removed.
9949 * lto-symtab.c: Do not include lambda.h.
9950 * omega.c (gcd): Removed.
9951 * passes.c (init_optimization_passes): Remove pass_linear_transform.
9952 * tree-data-ref.c (print_lambda_vector): Moved here.
9953 (lambda_vector_copy): Same.
9954 (lambda_matrix_copy): Same.
9955 (lambda_matrix_id): Same.
9956 (lambda_vector_first_nz): Same.
9957 (lambda_matrix_row_add): Same.
9958 (lambda_matrix_row_exchange): Same.
9959 (lambda_vector_mult_const): Same.
9960 (lambda_vector_negate): Same.
9961 (lambda_matrix_row_negate): Same.
9962 (lambda_vector_equal): Same.
9963 (lambda_matrix_right_hermite): Same.
9964 * tree-data-ref.h: Do not include lambda.h.
9965 (lambda_vector): Moved here.
9966 (lambda_matrix): Same.
9967 (dependence_level): Same.
9968 (lambda_transform_legal_p): Removed declaration.
9969 (lambda_collect_parameters): Same.
9970 (lambda_compute_access_matrices): Same.
9971 (lambda_vector_gcd): Same.
9972 (lambda_vector_new): Same.
9973 (lambda_vector_clear): Same.
9974 (lambda_vector_lexico_pos): Same.
9975 (lambda_vector_zerop): Same.
9976 (lambda_matrix_new): Same.
9977 * tree-flow.h (least_common_multiple): Removed declaration.
9978 * tree-parloops.c (lambda_trans_matrix): Moved here.
9980 (LTM_ROWSIZE): Same.
9981 (LTM_COLSIZE): Same.
9982 (LTM_DENOMINATOR): Same.
9983 (lambda_trans_matrix_new): Same.
9984 (lambda_matrix_vector_mult): Same.
9985 (lambda_transform_legal_p): Same.
9986 * tree-pass.h (pass_linear_transform): Removed declaration.
9987 * tree-ssa-loop.c (tree_linear_transform): Removed.
9988 (gate_tree_linear_transform): Removed.
9989 (pass_linear_transform): Removed.
9990 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9991 flag_loop_interchange.
9993 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9995 PR tree-optimization/47265
9996 PR tree-optimization/47443
9997 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9998 if name still has some uses.
10000 2011-01-25 Martin Jambor <mjambor@suse.cz>
10002 PR tree-optimization/47382
10003 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
10004 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
10006 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
10008 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
10009 sjlj_except_unwind_info.
10011 2011-01-25 Richard Guenther <rguenther@suse.de>
10013 PR tree-optimization/47426
10014 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
10015 visible functions results escape.
10017 2011-01-25 Jakub Jelinek <jakub@redhat.com>
10020 * config/arm/arm.c (any_sibcall_uses_r3): New function.
10021 (arm_get_frame_offsets): Use it.
10023 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10024 Jakub Jelinek <jakub@redhat.com>
10026 PR tree-optimization/47271
10027 * tree-if-conv.c (bb_postdominates_preds): New.
10028 (if_convertible_bb_p): Call bb_postdominates_preds.
10029 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
10030 (predicate_scalar_phi): Call bb_postdominates_preds.
10032 2011-01-25 Nick Clifton <nickc@redhat.com>
10034 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
10035 * config/rx/rx.c (rx_function_value): Likewise.
10036 (rx_promote_function_mode): Likewise.
10037 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
10038 in order to make it legitimate.
10039 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
10040 make sure that the first operand is the same as the result register.
10041 (addsi3_unspec): Delete.
10042 (subdi3): Do not accept immediate operands.
10043 (subdi3_internal): Likewise.
10045 2011-01-25 Jeff Law <law@redhat.com>
10047 PR rtl-optimization/37273
10048 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10049 handle them like argument loads from stack slots. Do not double
10050 count memory for memory constants and argument loads from stack slots.
10052 2011-01-25 Jakub Jelinek <jakub@redhat.com>
10054 PR tree-optimization/47427
10055 PR tree-optimization/47428
10056 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
10057 coalesce if the new root var would be TREE_READONLY.
10059 2011-01-25 Richard Guenther <rguenther@suse.de>
10061 PR middle-end/47414
10062 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
10063 correct type for TBAA.
10065 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10067 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
10068 (close_phi_written_to_memory): Call for_each_index with
10069 dr_indices_valid_in_loop.
10071 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10073 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
10074 when it is initialized.
10076 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10078 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
10079 call to graphite_find_data_references_in_stmt.
10080 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
10081 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
10082 call to graphite_find_data_references_in_stmt.
10083 (analyze_drs_in_stmts): Same.
10084 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
10085 in which the scalar analysis of indices is performed.
10086 (create_data_ref): Same. Update call to dr_analyze_indices.
10087 (find_data_references_in_stmt): Update call to create_data_ref.
10088 (graphite_find_data_references_in_stmt): Same.
10089 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
10091 (create_data_ref): Same.
10092 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
10093 call to create_data_ref.
10095 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10097 * graphite-sese-to-poly.c (build_poly_scop): Move
10098 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
10100 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10102 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
10103 VAR_DECL, PARM_DECL, and RESULT_DECL.
10105 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10107 * graphite-dependences.c (reduction_dr_1): Allow several reductions
10108 in a reduction PBB.
10109 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
10110 that have already been marked as PBB_IS_REDUCTION.
10112 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10114 * graphite-scop-detection.c (same_close_phi_node): New.
10115 (remove_duplicate_close_phi): New.
10116 (make_close_phi_nodes_unique): New.
10117 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
10119 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10121 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
10122 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
10123 of both data references to be the same.
10125 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10127 * graphite-dependences.c (build_lexicographical_constraint): Remove
10128 the gdim parameter.
10129 (build_lexicographical_constraint): Adjust call to
10130 ppl_powerset_is_empty.
10131 (dependence_polyhedron): Same.
10132 (graphite_legal_transform_dr): Same.
10133 (graphite_carried_dependence_level_k): Same.
10134 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
10136 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
10138 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10140 * graphite-sese-to-poly.c
10141 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
10142 (close_phi_written_to_memory): New.
10143 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
10146 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10148 * doc/install.texi: Update the expected version number of PPL to 0.11.
10149 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
10150 #if PPL_VERSION_MINOR < 11.
10152 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10154 * graphite-dependences.c: Include graphite-cloog-util.h.
10155 (new_poly_ddr): Inlined into dependence_polyhedron.
10156 (free_poly_ddr): Moved close by new_poly_ddr.
10157 (dependence_polyhedron_1): Renamed dependence_polyhedron.
10158 Early return NULL when ppl_powerset_is_empty returns true.
10159 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
10160 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
10161 (graphite_legal_transform_dr): Call new_poly_ddr.
10162 (graphite_carried_dependence_level_k): Same.
10163 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
10164 (dot_transformed_deps_stmt_1): Removed.
10165 (dot_deps_stmt_1): Call dot_deps_stmt_2.
10166 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
10167 (dot_deps_1): Call dot_deps_2.
10168 * Makefile.in (graphite-dependences.o): Add missing dependence on
10169 graphite-cloog-util.h.
10171 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10173 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
10174 (build_lexicographical_constraint): Same.
10175 (dependence_polyhedron_1): Same.
10176 (graphite_legal_transform_dr): Same.
10177 (graphite_carried_dependence_level_k): Same.
10178 * graphite-ppl.c (ppl_powerset_is_empty): New.
10179 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
10180 * tree-data-ref.c (dump_data_reference): Print the basic block index.
10182 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10184 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
10185 the "a followed by b" relation and document it.
10187 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10189 * graphite-dependences.c (build_lexicographical_constraint): Stop the
10190 iteration when the bag of constraints is empty.
10192 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10194 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
10196 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10198 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
10199 nest and two loop depths as parameters.
10200 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
10201 lst_perfect_nestify.
10203 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10205 * graphite-dependences.c (print_pddr): Call
10206 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
10208 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10210 * graphite-ppl.c (debug_gmp_value): New.
10211 * graphite-ppl.h (debug_gmp_value): Declared.
10213 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
10215 * doc/install.texi: Document availability of cloog-0.16.
10217 2011-01-25 Vladimir Kargov <kargov@gmail.com>
10219 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
10220 invalid postdominance info.
10222 2011-01-24 Jan Hubicka <jh@suse.cz>
10225 * doc/extend.texi (weak pragma): Drop claim that it must
10226 appear before definition.
10227 * varasm.c (merge_weak, declare_weak): Only sanity check
10228 that DECL is not output at a time it is declared weak.
10230 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
10232 * machmode.def: Fixed comments.
10234 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
10236 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
10238 2011-01-24 Paul Koning <ni1d@arrl.net>
10240 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
10243 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
10246 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
10247 (block_info): Add scanned and prev.
10248 (move_or_delete_vzeroupper_2): Return if the basic block
10249 has been scanned and the upper 128bit state is unchanged
10250 from the last scan.
10251 (move_or_delete_vzeroupper_1): Return true if the exit
10253 (move_or_delete_vzeroupper): Visit basic blocks using the
10254 work-list based algorithm based on vt_find_locations in
10257 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
10259 2011-01-24 Nick Clifton <nickc@redhat.com>
10261 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
10262 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
10263 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
10264 then define __v850e1__.
10265 * doc/invoke.texi: Document -mv850es.
10267 2011-01-24 Richard Henderson <rth@redhat.com>
10269 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
10270 compound unordered comparisons.
10271 * config/rx/rx.c (rx_split_fp_compare): Remove.
10272 * config/rx/rx-protos.h: Update.
10273 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
10274 (cbranchsf4): Don't call rx_split_fp_compare.
10275 (*cbranchsf4): Use rx_split_cbranch.
10276 (*cmpsf): Don't accept "i" constraint.
10277 (*conditional_branch): Only valid after reload.
10278 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
10280 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
10283 * config/rs6000/altivec.md (vector constant splitters): Add
10284 support for creating vector single precision constants if -mvsx is
10285 used and we would create the constant using Altivec primitives.
10287 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
10288 Richard Sandiford <rdsandiford@googlemail.com>
10290 PR rtl-optimization/47166
10291 * reload1.c (emit_reload_insns): Disable the spill_reg_store
10292 mechanism for PRE_MODIFY and POST_MODIFY.
10293 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
10296 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
10298 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
10300 2011-01-22 Jan Hubicka <jh@suse.cz>
10303 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
10305 2011-01-22 Jan Hubicka <jh@suse.cz>
10307 PR tree-optimization/43884
10309 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
10310 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
10312 2011-01-22 Anatoly Sokolov <aesok@post.ru>
10314 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10315 * config/s390/s390.c (s390_register_move_cost,
10316 s390_memory_move_cost): New.
10317 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10319 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10321 PR middle-end/47401
10322 * except.c (sjlj_assign_call_site_values): Move setting the
10323 crtl->uses_eh_lsda flag to ...
10324 (sjlj_mark_call_sites): ... here.
10325 (sjlj_emit_function_enter): Support NULL dispatch label.
10326 (sjlj_build_landing_pads): In a function with no landing pads
10327 that still has must-not-throw regions, generate code to register
10328 a personality function with empty LSDA.
10330 2011-01-21 Richard Henderson <rth@redhat.com>
10332 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
10334 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
10336 * compare-elim.c: New file.
10337 * Makefile.in (OBJS-common): Add it.
10338 (compare-elim.o): New.
10339 * common.opt (fcompare-elim): New.
10340 * opts.c (default_options_table): Add OPT_fcompare_elim.
10341 * tree-pass.h (pass_compare_elim_after_reload): New.
10342 * passes.c (init_optimization_passes): Add it.
10343 * recog.h: Protect against re-inclusion.
10344 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
10345 * doc/invoke.texi (-fcompare-elim): Document it.
10346 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
10347 * doc/tm.texi: Rebuild.
10349 2011-01-22 Nick Clifton <nickc@redhat.com>
10351 * config/rx/rx.md (cstoresf4): Pass comparison operator to
10352 rx_split_fp_compare.
10354 2011-01-22 Nick Clifton <nickc@redhat.com>
10356 * config/rx/rx.md (UNSPEC_CONST): New.
10357 (deallocate_and_return): Wrap the amount popped off the stack in
10358 an UNSPEC_CONST in order to stop it being rejected by
10359 -mmax-constant-size.
10360 (pop_and_return): Add a "(return)" rtx.
10361 (call): Drop the immediate operand.
10362 (call_internal): Likewise.
10363 (call_value): Likewise.
10364 (call_value_internal): Likewise.
10365 (sibcall_internal): Likewise.
10366 (sibcall_value_internal): Likewise.
10367 (sibcall): Likewise. Generate an explicit call using
10369 (sibcall_value): Likewise.
10370 (mov<>): FAIL if a constant operand is not legitimate.
10371 (addsi3_unpsec): New pattern.
10373 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
10374 (ok_for_max_constant): New function.
10375 (gen_safe_add): New function.
10376 (rx_expand_prologue): Use gen_safe_add.
10377 (rx_expand_epilogue): Likewise.
10378 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
10381 2011-01-21 Jeff Law <law@redhat.com>
10383 PR tree-optimization/47053
10384 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10385 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10386 statements are deleted.
10387 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
10388 is nonempty, then purge dead edges and cleanup the CFG.
10390 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10393 Temporarily revert:
10394 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10396 * tree-dfa.c (create_var_ann): Mark variable as used.
10398 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10400 PR middle-end/45566
10401 * except.c (convert_to_eh_region_ranges): Emit queued no-region
10402 notes from other section in hot/cold partitioning even if
10403 last_action is -3. Increment call_site_base.
10405 PR rtl-optimization/47366
10406 * fwprop.c (forward_propagate_into): Return bool. If
10407 any changes are made, -fnon-call-exceptions is used and
10408 REG_EH_REGION note is present, call purge_dead_edges
10409 and return true if it purged anything.
10410 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10411 any EH edges were purged.
10413 2011-01-21 Jeff Law <law@redhat.com>
10415 PR rtl-optimization/41619
10416 * caller-save.c (setup_save_areas): Break out code to determine
10417 which hard regs are live across calls by examining the reload chains
10418 so that it is always used.
10419 Eliminate code which checked REG_N_CALLS_CROSSED.
10421 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10423 PR tree-optimization/47355
10424 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10425 NOP has non-debug uses beyond PHIs in new_bb.
10427 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10430 * cfgexpand.c (account_used_vars_for_block): Only account vars
10431 that are annotated as used.
10432 (estimated_stack_frame_size): Don't set TREE_USED.
10433 * tree-dfa.c (create_var_ann): Mark variable as used.
10435 2011-01-21 Richard Guenther <rguenther@suse.de>
10437 PR middle-end/47395
10438 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10440 2011-01-21 Richard Guenther <rguenther@suse.de>
10442 PR tree-optimization/47365
10443 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10444 (vn_reference_lookup_pieces): Adjust.
10445 (vn_reference_lookup): Likewise.
10446 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10447 (vn_reference_lookup_3): Only look through kills if in
10448 VN_WALKREWRITE mode.
10449 (vn_reference_lookup_pieces): Adjust.
10450 (vn_reference_lookup): Likewise.
10451 (visit_reference_op_load): Likewise.
10452 (visit_reference_op_store): Likewise.
10453 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10454 (compute_avail): Likewise.
10455 (eliminate): Likewise.
10457 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10459 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10460 DECL_IGNORED_P non-reg vars if they are used.
10462 PR tree-optimization/47391
10463 * varpool.c (const_value_known_p): Return false if
10466 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
10469 * config/i386/i386.c (ix86_local_alignment): Handle
10470 case for va_list_type_node is nil.
10471 (ix86_canonical_va_list_type): Likewise.
10473 2011-01-21 Alan Modra <amodra@gmail.com>
10475 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10476 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10478 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10480 * config/arm/arm.md (define_attr type): Rename f_load
10481 and f_store to f_fpa_load and f_fpa_store. Update.
10482 (write_conflict): Deal with rename fallout.
10483 (*push_fp_multi): Likewise.
10484 * config/arm/fpa.md (f_load): Use f_fpa_load.
10485 (f_store): Use f_fpa_store.
10486 (*movsf_fpa): Likewise.
10487 (*movdf_fpa): Likewise.
10488 (*movxf_fpa): Likewise.
10489 (*thumb2_movsf_fpa): Likewise.
10490 (*thumb2_movdf_fpa): Likewise.
10491 (*thumb2_movxf_fpa): Likewise.
10492 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10493 f_loadd and f_stored.
10494 (*thumb2_movdi_vfp): Likewise.
10495 (*thumb2_movsf_vfp): Fix attribute to f_loads.
10496 (*thumb2_movsi_vfp): Likewise.
10497 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10498 Use f_loads instead of f_load.
10499 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10501 2011-01-20 Anatoly Sokolov <aesok@post.ru>
10503 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10504 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10505 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10506 (xtensa_mode_dependent_address_p): New function.
10507 (constantpool_address_p): Make static. Change return type to bool.
10508 Change argument type to const_rtx. Use CONST_INT_P predicate.
10510 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
10513 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10515 2011-01-20 Jakub Jelinek <jakub@redhat.com>
10518 * cfgexpand.c (expand_debug_expr): Instead of generating
10519 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10522 2011-01-20 Richard Guenther <rguenther@suse.de>
10524 PR middle-end/47370
10525 * tree-inline.c (remap_gimple_op_r): Recurse manually for
10526 the pointer operand of MEM_REFs.
10528 2011-01-20 Jakub Jelinek <jakub@redhat.com>
10530 PR tree-optimization/46130
10531 * ipa-split.c (consider_split): If return_bb contains non-virtual
10532 PHIs other than for retval or if split_function would not adjust it,
10535 2011-01-20 Richard Guenther <rguenther@suse.de>
10537 PR tree-optimization/47167
10538 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10539 Revert previous change, only avoid enumeral type changes.
10541 2011-01-19 Mike Stump <mikestump@comcast.net>
10543 * doc/tm.texi.in (BRANCH_COST): Englishify.
10544 * doc/tm.texi (BRANCH_COST): Likewise.
10546 2011-01-19 Dodji Seketeli <dodji@redhat.com>
10549 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10550 (gen_scheduled_generic_parms_dies): New functions.
10551 (gen_struct_or_union_type_die): Schedule template parameters DIEs
10552 generation for the end of CU compilation.
10553 (dwarf2out_finish): Generate template parameters DIEs here.
10555 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10558 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10559 debug bind stmt on merge edges.
10561 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10565 * function.c (instantiate_expr): Instantiate incoming rtl of
10566 implicit arguments, and recurse on VALUE_EXPRs.
10567 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10568 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10570 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10572 * c-parser.c (c_parser_for_statement): Initialize
10573 collection_expression.
10575 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10577 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10579 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10581 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10582 (LINK_SHLIB_SPEC): Don't use %(link_path).
10583 (SUBTARGET_EXTRA_SPECS): Remove link_path.
10585 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10587 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10588 (NO_SHARED_LIB_SUPPORT): Remove.
10589 (LINK_SHLIB_SPEC): Remove one conditional definition.
10591 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10593 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10595 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10596 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10597 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10598 %{call_shared} and conditionals on these options not being passed.
10599 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10602 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10604 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10607 * ipa-split.c: Spelling fixes.
10609 2011-01-19 Richard Henderson <rth@redhat.com>
10611 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10612 (*mulsi3): Likewise.
10614 * longlong.h [__mn10300__] (count_leading_zeros): New.
10615 [__mn10300__] (umul_ppmm, smul_ppmm): New.
10616 [__mn10300__] (add_ssaaaa, subddmmss): New.
10617 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10618 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10620 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10622 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10624 2011-01-19 Richard Henderson <rth@redhat.com>
10626 * config/mn10300/mn10300.md (addsi3_flags): New.
10627 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10628 (subsi3_flags, subc_internal, subdi3): New.
10629 (subdi3_internal, *subdi3_degenerate): New.
10630 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10632 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10633 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10634 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
10635 * config/mn10300/mn10300-protos.h: Update.
10636 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10637 (return_ret): Likewise. Rename from return_internal_regs.
10638 (return_internal): Remove.
10640 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10641 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10642 (mn10300_legitimate_constant_p): Likewise.
10643 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10644 (mn10300_frame_size): New.
10645 (mn10300_expand_prologue): Use it.
10646 (mn10300_expand_epilogue): Likewise.
10647 (mn10300_initial_offset): Likewise.
10648 * config/mn10300/mn10300-protos.h: Update.
10649 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10650 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10651 (prologue, epilogue, return_internal): Tidy output code.
10652 (mn10300_store_multiple_operation, return): Likewise.
10653 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10654 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10655 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10656 (load_pic, am33_load_pic): New.
10657 (mn10300_load_pic0, mn10300_load_pic1): New.
10659 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10660 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10661 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10662 (cc_flags_for_mode, cc_flags_for_code): New.
10663 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10664 overflow flag is not valid. Validate that the flags we need
10665 for the comparison are valid.
10666 (mn10300_output_cmp): Remove.
10667 (mn10300_output_add): New.
10668 (mn10300_select_cc_mode): Use cc_flags_for_code.
10669 (mn10300_split_cbranch): New.
10670 (mn10300_match_ccmode): New.
10671 (mn10300_split_and_operand_count): New.
10672 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10674 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10675 (addsi3): ... here. Use mn10300_output_add.
10676 (*addsi3_flags): New.
10677 (*am33_subsi3, *mn10300_subsi3): Merge...
10678 (subsi3): ... here. Use attribute isa.
10679 (*subsi3_flags): New.
10680 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
10682 (*am33_andsi3, *mn10300_andsi3): Merge...
10683 (andsi3): ... here.
10684 (*andsi3_flags): New.
10685 (andsi3 splitters): New.
10686 (*am33_iorsi3, *mn10300_iorsi3): Merge...
10687 (iorsi3): ... here.
10688 (*iorsi3_flags): New.
10689 (*am33_xorsi3, *mn10300_xorsi3): Merge...
10690 (xorsi3): ... here.
10691 (*xorsi3_flags): New.
10692 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10693 (one_cmplsi2): ... here.
10694 (*one_cmplsi2_flags): New.
10695 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
10696 instead of "dax" in constraints. Use mn10300_split_cbranch.
10697 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
10698 use matching constraints to eliminate a self-comparison.
10699 (*integer_conditional_branch): Rename from integer_conditional_branch.
10700 Use int_mode_flags to match CC_REG.
10701 (*cbranchsi4_btst, *btstsi): New.
10702 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
10703 mn10300_split_cbranch.
10704 (*am33_cmpsf): Rename from am33_cmpsf.
10705 (*float_conditional_branch): Rename from float_conditional_branch.
10706 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10707 (zero_extendqisi2): ... here.
10708 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10709 (zero_extendhisi2): ... here.
10710 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10711 (extendqisi2): ... here.
10712 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10713 (extendhisi2): ... here.
10714 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10715 (ashlsi3): ... here.
10716 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10717 (lshrsi3): ... here.
10718 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10719 (ashrsi3): ... here.
10720 (consecutive add peephole): Remove.
10721 * config/mn10300/predicates.md (label_ref_operand): New.
10722 (int_mode_flags): New.
10723 (CCZN_comparison_operator): New.
10725 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10726 (throughput_42_latency_43): New reservation.
10727 (mulsidi3, umulsidi3): New expanders.
10728 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
10729 the MDR register to allocation; separately allocate the low and
10730 high parts of the DImode result.
10731 (umulsidi3_internal): Similarly.
10732 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10733 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
10734 (udivsi3, umodsi3): Remove.
10735 (udivmodsi4, divmodsi4): New expanders.
10736 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
10737 (*divmodsi4): Simiarly.
10738 (ext_internal): New.
10740 * config/mn10300/constraints.md ("z"): New constraint.
10741 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10742 (FIXED_REGISTERS): Don't fix MDR.
10743 (CALL_USED_REGSITERS): Reformat nicely.
10744 (REG_ALLOC_ORDER): Add MDR.
10745 (enum regclass): Add MDR_REGS.
10746 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10747 (IRA_COVER_CLASSES): Add MDR_REGS.
10748 (REGNO_REG_CLASS): Handle MDR_REG.
10749 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10750 (mn10300_register_move_cost): Likewise.
10751 * config/mn10300/mn10300.md (MDR_REG): New.
10752 (*movsi_internal): Handle moves to/from MDR_REGS.
10754 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10756 (mn10300_secondary_reload): Tidy combination reload classes.
10757 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10758 addresses for AM33. Allow symbolic offsets for reg+imm.
10759 (mn10300_regno_in_class_p): New.
10760 (mn10300_legitimize_reload_address): New.
10761 * config/mn10300/mn10300.h (enum reg_class): Remove
10762 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10763 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
10764 SP_OR_GENERAL_REGS.
10765 (REG_CLASS_NAMES): Update to match.
10766 (REG_CLASS_CONTENTS): Likewise.
10767 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10768 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10769 (REGNO_IN_RANGE_P): Remove.
10770 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10771 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10772 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10773 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10774 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10775 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10776 (REGNO_GENERAL_P): New.
10777 (HAVE_POST_MODIFY_DISP): New.
10778 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10779 (LEGITIMIZE_RELOAD_ADDRESS): New.
10780 * config/mn10300/mn10300-protos.h: Update.
10782 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10783 DATA_REGS for AM33 stack-pointer destination.
10784 (mn10300_preferred_output_reload_class): Likewise.
10785 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10786 into a form appropriate for ...
10787 (TARGET_SECONDARY_RELOAD): New.
10788 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10789 * config/mn10300/mn10300-protos.h: Update.
10790 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10791 reload_insi; use the "A" constraint for the scratch; handle AM33
10792 moves of sp to non-address registers.
10794 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10795 (*movqi_internal): ... here.
10796 (*am33_movhi, *mn10300_movhi): Merge into...
10797 (*movhi_internal): ... here.
10798 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
10799 as the source/destination of moves from/to SP.
10800 (movsf): Only allow for AM33-2.
10801 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10802 any integer constant constraint. Only allow for AM33-2. Tidy
10803 all of the alternative outputs.
10804 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10805 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
10807 (udivsi3, umodsi3): New patterns for MN103 only.
10809 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
10811 * doc/tm.texi.in: Spell out that a lack of register class unions
10813 * doc/tm.texi: Regenerate.
10815 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10817 PR rtl-optimization/47337
10818 * dce.c (check_argument_store): New function.
10819 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
10821 PR tree-optimization/47290
10822 * tree-eh.c (infinite_empty_loop_p): New function.
10823 (cleanup_empty_eh): Use it.
10825 2011-01-18 Steve Ellcey <sje@cup.hp.com>
10828 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10829 (a64_expand_widen_sum): Ditto.
10830 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10831 (vec_extract_evenodd_help): Ditto.
10832 (vec_extract_evenv4hi): Ditto.
10833 (vec_extract_oddv4hi): Ditto.
10834 (vec_extract_evenv2si): Ditto.
10835 (vec_extract_oddv2si): Ditto.
10836 (vec_extract_evenv2sf): Ditto.
10837 (vec_extract_oddv2sf): Ditto.
10838 (vec_pack_trunc_v4hi: Ditto.
10839 (vec_pack_trunc_v2si): Ditto.
10840 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10841 (vec_interleave_highv8qi): Ditto.
10843 (vec_extract_oddv8qi): Ditto.
10844 (vec_interleave_lowv4hi): Ditto.
10845 (vec_interleave_highv4hi): Ditto.
10846 (vec_interleave_lowv2si): Ditto.
10847 (vec_interleave_highv2si): Ditto.
10849 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10851 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10852 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10853 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
10854 (pa_c_mode_for_suffix): New.
10855 (TARGET_EXPAND_BUILTIN): Define.
10856 (TARGET_C_MODE_FOR_SUFFIX): Define.
10857 (pa_builtins): Define.
10858 (pa_init_builtins): Register __float128 type and init new support
10860 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10861 * config/pa/quadlib.c (_U_Qfcopysign): New.
10863 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
10865 PR middle-end/46894
10866 * explow.c (allocate_dynamic_stack_space): Do not assume more than
10867 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10870 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10872 PR tree-optimization/47179
10873 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10874 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10876 2011-01-18 Richard Guenther <rguenther@suse.de>
10878 PR rtl-optimization/47216
10879 * emit-rtl.c: Include tree-flow.h.
10880 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10881 of replicating it with different semantics.
10882 * Makefile.in (emit-rtl.o): Adjust.
10884 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10886 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10887 (cortex_a9_dp): Handle neon types correctly.
10889 2011-01-18 Jakub Jelinek <jakub@redhat.com>
10891 PR rtl-optimization/47299
10892 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10893 subtarget. Use normal multiplication if both operands are constants.
10894 * expmed.c (expand_widening_mult): Don't try to optimize constant
10895 multiplication if op0 has VOIDmode. Convert op1 constant to mode
10898 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10900 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
10901 spacing after 'e.g.', typos, comma, hyphenation.
10903 2011-01-17 Richard Henderson <rth@redhat.com>
10905 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10906 (rx_restricted_mem_operand): New.
10907 (rx_shift_operand): Use register_operand.
10908 (rx_source_operand, rx_compare_operand): Likewise.
10909 * config/rx/rx.md (addsi3_flags): New expander.
10910 (adddi3): Rewrite as expander.
10911 (adc_internal, *adc_flags, adddi3_internal): New patterns.
10912 (subsi3_flags): New expander.
10913 (subdi3): Rewrite as expander.
10914 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10916 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10917 (rx_init_builtins): Remove sat builtin.
10918 (rx_expand_builtin): Likewise.
10919 * config/rx/rx.md (ssaddsi3): New.
10920 (*sat): Rename from sat. Represent the CC_REG input.
10922 * config/rx/predicates.md (rshift_operator): New.
10923 * config/rx/rx.c (rx_expand_insv): Remove.
10924 * config/rx/rx-protos.h: Update.
10925 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
10926 operand to the canonical position.
10927 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10928 (*bitclr, *bitclr_in_memory): Similarly.
10929 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10930 (insv): Retain the zero_extract in the expansion.
10932 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10933 (bswaphi2, bitinvert, revw): Likewise.
10935 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10936 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10937 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10938 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10939 (bitset, bitset_in_memory): Likewise.
10940 (bitinvert, bitinvert_in_memory): Likewise.
10941 (bitclr, bitclr_in_memory): Likewise.
10942 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10943 (rx_strend, rx_cmpstrn): Likewise.
10944 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
10945 (bitop peep2 patterns): Remove.
10947 * config/rx/rx.c (rx_match_ccmode): New.
10948 * config/rx/rx-protos.h: Update.
10949 * config/rx/rx.md (abssi2): Clobber, don't set flags.
10950 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10951 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10952 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10953 (fix_truncsfsi2, floatsisf2): Likewise.
10954 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10955 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10956 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10957 (*subsi3_flags, *xorsi3_flags): New.
10959 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10961 * config/rx/rx.c (rx_print_operand): Remove workaround for
10962 unsplit comparison operations.
10964 * config/rx/rx.md (movsicc): Split after reload.
10965 (*movsicc): Merge *movsieq and *movsine via match_operator.
10966 (*stcc): New pattern.
10968 * config/rx/rx.c (rx_float_compare_mode): Remove.
10969 * config/rx/rx.h (rx_float_compare_mode): Remove.
10970 * config/rx/rx.md (cstoresi4): Split after reload.
10971 (*sccc): New pattern.
10973 * config/rx/predicates.md (label_ref_operand): New.
10974 (rx_z_comparison_operator): New.
10975 (rx_zs_comparison_operator): New.
10976 (rx_fp_comparison_operator): New.
10977 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10978 Validate that the flags are set properly for the comparison.
10979 (rx_gen_cond_branch_template): Remove.
10980 (rx_cc_modes_compatible): Remove.
10981 (mode_from_flags): New.
10982 (flags_from_code): Rename from flags_needed_for_conditional.
10983 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10984 (rx_select_cc_mode): Likewise.
10985 (rx_split_fp_compare): New.
10986 (rx_split_cbranch): New.
10987 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10988 (*cbranchsi4): Use match_operator and rx_split_cbranch.
10989 (*cbranchsf4): Similarly.
10990 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
10991 match_operator and rx_split_cbranch.
10992 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10993 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
10994 (*cmpsi): Rename from cmpsi.
10995 (*tstsi): Rename from tstsi.
10996 (*cmpsf): Rename from cmpsf; use CC_Fmode.
10997 (*conditional_branch): Rename from conditional_branch.
10998 (*reveresed_conditional_branch): Remove.
10999 (b<code>): Remove expander.
11000 * config/rx/rx-protos.h: Update.
11002 * config/rx/rx.c (rx_compare_redundant): Remove.
11003 * config/rx/rx.md (cmpsi): Don't use it.
11004 * config/rx/rx-protos.h: Update.
11006 * config/rx/rx-modes.def (CC_F): New mode.
11007 * config/rx/rx.c (rx_select_cc_mode): New.
11008 * config/rx/rx.h (SELECT_CC_MODE): Use it.
11009 * config/rx/rx-protos.h: Update.
11011 2011-01-17 Richard Henderson <rth@redhat.com>
11013 * except.c (dump_eh_tree): Fix stray ; after for statement.
11015 2011-01-17 Richard Guenther <rguenther@suse.de>
11017 PR tree-optimization/47313
11018 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
11019 handling before copying the body. Properly deal with
11020 by-reference result in SSA form.
11022 2011-01-17 Ian Lance Taylor <iant@google.com>
11025 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
11026 (struct_value_alias_set): Don't define.
11027 (sparc_option_override): Don't set sparc_sr_alias_set and
11028 struct_value_alias_set.
11029 (save_or_restore_regs): Use gen_frame_mem rather than calling
11031 (sparc_struct_value_rtx): Likewise.
11033 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
11036 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
11037 (_mm_maskstore_pd): Likewise.
11038 (_mm_maskload_ps): Likewise.
11039 (_mm_maskstore_ps): Likewise.
11040 (_mm256_maskload_pd): Change mask to __m256i.
11041 (_mm256_maskstore_pd): Likewise.
11042 (_mm256_maskload_ps): Likewise.
11043 (_mm256_maskstore_ps): Likewise.
11045 * config/i386/i386-builtin-types.def: Updated.
11046 (ix86_expand_special_args_builtin): Likewise.
11048 * config/i386/i386.c (bdesc_special_args): Update
11049 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
11050 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
11051 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
11052 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
11054 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
11055 Use <avxpermvecmode> on mask register.
11056 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
11058 2011-01-17 Olivier Hainque <hainque@adacore.com>
11059 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11060 Eric Botcazou <ebotcazou@adacore.com>
11063 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
11064 if <= USHRT_MAX in 32-bit mode.
11066 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11068 * doc/install.texi (Configuration, Specific): Wrap long
11069 lines in examples. Allow line wrapping in long options
11070 and URLs where beneficial for PDF output.
11072 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
11074 * config/mips/mips.c (mips_classify_symbol): Don't return
11075 SYMBOL_PC_RELATIVE for nonlocal labels.
11077 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
11079 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
11081 2011-01-15 Jan Hubicka <jh@suse.cz>
11083 PR tree-optimization/47276
11084 * ipa.c (function_and_variable_visibility): Do not try to mark alias
11085 declarations as needed.
11087 2011-01-15 Martin Jambor <mjambor@suse.cz>
11089 * common.opt (fdevirtualize): New flag.
11090 * doc/invoke.texi (Option Summary): Document it.
11091 * opts.c (default_options_table): Add devirtualize flag.
11092 * ipa-prop.c (detect_type_change): Return immediately if
11093 devirtualize flag is not set.
11094 (detect_type_change_ssa): Likewise.
11095 (compute_known_type_jump_func): Likewise.
11096 (ipa_analyze_virtual_call_uses): Likewise.
11098 2011-01-14 Martin Jambor <mjambor@suse.cz>
11100 PR tree-optimization/45934
11101 PR tree-optimization/46302
11102 * ipa-prop.c (type_change_info): New type.
11103 (stmt_may_be_vtbl_ptr_store): New function.
11104 (check_stmt_for_type_change): Likewise.
11105 (detect_type_change): Likewise.
11106 (detect_type_change_ssa): Likewise.
11107 (compute_complex_assign_jump_func): Check for dynamic type change.
11108 (compute_complex_ancestor_jump_func): Likewise.
11109 (compute_known_type_jump_func): Likewise.
11110 (compute_scalar_jump_functions): Likewise.
11111 (ipa_analyze_virtual_call_uses): Likewise.
11112 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
11114 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11116 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
11117 * config/i386/i386.opt (msse5): New Alias.
11119 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11121 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11122 * config/sparc/linux64.h (CC1_SPEC): Likewise.
11123 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11124 * config/sparc/sparc.h (CC1_SPEC): Likewise.
11126 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11128 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
11130 * config/sparc/linux64.h (CC1_SPEC): Likewise.
11131 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11132 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
11133 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
11135 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
11137 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11139 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
11141 2011-01-14 Mike Stump <mikestump@comcast.net>
11143 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
11144 * config/fr30/fr30.md: Likweise
11145 (movsi_push): Likewise.
11146 (movsi_pop): Likewise.
11147 (enter_func): Likewise.
11148 * config/moxie/moxie.md (movsi_push): Likewise.
11149 (movsi_pop): Likewise.
11151 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11153 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
11154 %{no_archive} %{exact_version}.
11155 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
11156 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
11157 %{no_archive} %{exact_version}.
11158 * config/mips/openbsd.h (LINK_SPEC): Likewise.
11159 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
11160 * config/mips/vxworks.h: Likewise.
11162 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11164 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
11166 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11168 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
11169 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
11171 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11173 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
11176 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11178 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
11180 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
11181 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
11183 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
11184 Don't handle -shlib.
11186 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11188 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
11189 (CC1_SPEC): Don't handle -profile.
11191 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11193 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
11194 * config/mips/mips.h (CC1_SPEC): Likewise.
11196 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11198 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
11199 * config/mips/mips.h (CC1_SPEC): Likewise.
11201 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11203 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
11204 * config/m32r/linux.h (LINK_SPEC): Likewise.
11205 * config/mips/linux.h (LINK_SPEC): Likewise.
11206 * config/mips/linux64.h (LINK_SPEC): Likewise.
11207 * config/sparc/linux.h (LINK_SPEC): Likewise.
11208 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11209 LINK_SPEC): Likewise.
11210 * config/xtensa/linux.h (LINK_SPEC): Likewise.
11212 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11214 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
11216 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
11218 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11220 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
11221 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11223 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11225 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
11227 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11229 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
11230 supports -Bstatic/-Bdynamic.
11231 * configure: Regenerate.
11233 2011-01-14 Jan Hubicka <jh@suse.cz>
11234 Jack Howarth <howarth@bromo.med.uc.edu>
11237 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
11238 when checking debug_info_level. Test write_symbols instead of
11239 debug_hooks->var_location when setting flag_var_tracking_uninit.
11241 2011-01-14 Richard Guenther <rguenther@suse.de>
11243 PR tree-optimization/47179
11244 * target.def (ref_may_alias_errno): New target hook.
11245 * targhooks.h (default_ref_may_alias_errno): Declare.
11246 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
11247 (default_ref_may_alias_errno): New function.
11248 * target.h (struct ao_ref_s): Declare.
11249 * tree-ssa-alias.c: Include target.h.
11250 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
11251 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
11252 (targhooks.o): Likewise.
11253 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
11254 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
11256 2011-01-14 Richard Guenther <rguenther@suse.de>
11258 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
11260 2011-01-14 Richard Guenther <rguenther@suse.de>
11262 PR tree-optimization/47280
11263 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
11264 return CFG changes.
11265 (tree_ssa_forward_propagate_single_use_vars): Deal with
11266 CFG changes from associate_plusminus.
11268 2011-01-14 Richard Guenther <rguenther@suse.de>
11270 PR middle-end/47281
11272 2011-01-11 Richard Guenther <rguenther@suse.de>
11274 PR tree-optimization/46076
11275 * tree-ssa.c (useless_type_conversion_p): Conversions from
11276 unprototyped to empty argument list function types are useless.
11278 2011-01-14 Richard Guenther <rguenther@suse.de>
11280 PR tree-optimization/47286
11281 * tree-ssa-structalias.c (new_var_info): Register variables are global.
11283 2011-01-14 Martin Jambor <mjambor@suse.cz>
11285 PR middle-end/46823
11286 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
11288 2011-01-13 Anatoly Sokolov <aesok@post.ru>
11290 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
11291 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11292 * config/xtensa/xtensa.c (xtensa_libcall_value,
11293 xtensa_function_value_regno_p): New functions.
11294 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11296 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
11299 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
11301 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
11302 New function prototype.
11303 * config/i386/winnt.c (i386_pe_assemble_visibility):
11304 Warn only if attribute was specified by user.
11306 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
11309 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
11311 (floatunsdidf2_fcfidu): Ditto.
11313 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11315 * config/s390/s390.c (print_operand_address): Replace 'error' with
11316 'output_operand_lossage'.
11317 (print_operand): Likewise.
11319 2011-01-13 Jeff Law <law@redhat.com>
11321 PR rtl-optimization/39077
11322 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
11323 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
11324 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
11325 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
11326 * gcse.c (prune_insertions_deletions): New function.
11327 (compute_pre_data): Use it.
11329 2011-01-13 Dodji Seketeli <dodji@redhat.com>
11332 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
11334 (prune_unused_types_mark): Use it.
11336 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
11338 PR rtl-optimization/45352
11339 * sel-sched.c: Update copyright years.
11340 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
11341 in the advancing loop when we have issued issue_rate insns.
11343 2011-01-12 Richard Henderson <rth@redhat.com>
11345 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
11346 (TARGET_MD_ASM_CLOBBERS): New.
11348 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
11349 (TARGET_DELEGITIMIZE_ADDRESS): New.
11351 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
11352 (clzsi2, *bsch): New patterns.
11354 * config/mn10300/mn10300.md (INT): New mode iterator.
11355 (*mov<INT>_clr): New pattern, and peep2 to generate it.
11357 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
11358 flag_split_wide_types.
11360 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
11361 (mn10300_trampoline_init): Rewrite without a template, an immediate
11362 load and a direct branch.
11363 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
11365 2011-01-12 Anatoly Sokolov <aesok@post.ru>
11367 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11368 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
11369 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
11370 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11372 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
11375 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
11378 2011-01-12 Jan Hubicka <jh@suse.cz>
11381 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11382 (PLUGIN_COND_CLOSE): New macro.
11383 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11385 2011-01-12 Richard Guenther <rguenther@suse.de>
11388 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11389 register variables in a MEM_REF.
11391 2011-01-12 Joseph Myers <joseph@codesourcery.com>
11393 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11394 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11395 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11396 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11397 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11398 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11399 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11400 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11401 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11402 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11403 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11404 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11405 * config/gnu-user.h: New. Copied from linux.h.
11406 (LINUX_TARGET_STARTFILE_SPEC): Rename to
11407 GNU_USER_TARGET_STARTFILE_SPEC.
11408 (LINUX_TARGET_ENDFILE_SPEC): Rename to
11409 GNU_USER_TARGET_ENDFILE_SPEC.
11410 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11411 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11412 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11413 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11414 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11415 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11416 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11417 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11418 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11419 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11420 * config/arm/linux-eabi.h (CC1_SPEC): Use
11421 GNU_USER_TARGET_CC1_SPEC.
11422 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11423 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11424 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11425 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11426 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11427 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11428 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11429 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11431 2011-01-12 Richard Guenther <rguenther@suse.de>
11434 * doc/invoke.texi (ffast-math): Document it is turned on
11437 2011-01-12 Jan Hubicka <jh@suse.cz>
11439 PR tree-optimization/47233
11440 * opts.c (common_handle_option): Disable ipa-reference with profile
11443 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11445 * c-parser.c (c_parser_objc_at_property_declaration): Improved
11448 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11450 * c-parser.c (c_lex_one_token): Updated and reindented some
11451 comments. No changes in code.
11453 2011-01-11 Ian Lance Taylor <iant@google.com>
11455 * godump.c (go_output_var): Don't output the variable if there is
11456 already a type with the same name.
11458 2011-01-11 Ian Lance Taylor <iant@google.com>
11460 * godump.c (go_format_type): Don't generate float80.
11462 2011-01-11 Richard Henderson <rth@redhat.com>
11464 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11465 declaration. Rewrite for both speed and size.
11466 (mn10300_address_cost_1): Remove.
11467 (mn10300_register_move_cost): New.
11468 (mn10300_memory_move_cost): New.
11469 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
11470 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
11471 extensions, shifts, BSWAP, CLZ.
11472 (mn10300_wide_const_load_uses_clr): Remove.
11473 (TARGET_REGISTER_MOVE_COST): New.
11474 (TARGET_MEMORY_MOVE_COST): New.
11475 * config/mn10300/mn10300-protos.h: Update.
11476 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11478 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11479 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11480 * config/mn10300/mn10300-protos.h: Update.
11481 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11482 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11483 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11484 (*test_int_bitfield, *test_byte_bitfield): Remove.
11485 (*bit_test, *subreg_bit_test): Remove.
11486 * config/mn10300/predicates.md (const_8bit_operand): Remove.
11488 * config/mn10300/constraints.md ("c"): Rename from "A".
11489 ("A", "D"): New constraint letters.
11490 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11491 (fmssf4, fnmasf4, fnmssf4): Likewise.
11493 * config/mn10300/mn10300.md (isa): New attribute.
11494 (enabled): New attribute.
11496 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11497 (abssf2, negsf2): Define only for hardware fp.
11498 (sqrtsf2): Reformat.
11499 (addsf3, subsf3, mulsf3): Merge expander and insn.
11501 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11502 (DEBUGGER_AUTO_OFFSET): Remove.
11503 (DEBUGGER_ARG_OFFSET): Remove.
11505 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11506 Emit register stores with the same offsets as the hardware.
11507 (mn10300_store_multiple_operation): Don't check that the register
11508 save offsets are monotonic.
11509 * config/mn10300/mn10300-protos.h: Update.
11511 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11513 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11514 in terms of the value on the stack, not the MDR register.
11516 2011-01-11 Jan Hubicka <jh@suse.cz>
11520 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11521 (symbol_alias_set_destroy, symbol_alias_set_contains,
11522 propagate_aliases_backward): Declare.
11523 * lto-streamer-out.c (struct sets): New sturcture.
11524 (trivally_defined_alias): New function.
11525 (output_alias_pair_p): Rewrite.
11526 (output_unreferenced_globals): Fix output of alias pairs.
11527 (produce_symtab): Likewise.
11528 * ipa.c (function_and_variable_visibility): Set weak alias destination
11530 * varasm.c (symbol_alias_set_t): Remove.
11531 (symbol_alias_set_destroy): Export.
11532 (propagate_aliases_forward, propagate_aliases_backward): New functions
11534 (compute_visible_aliases): ... this one; remove.
11535 (trivially_visible_alias): New
11536 (trivially_defined_alias): New.
11537 (remove_unreachable_alias_pairs): Rewrite.
11538 (finish_aliases_1): Reorganize code checking if alias is defined.
11539 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11542 2011-01-11 Richard Guenther <rguenther@suse.de>
11544 PR tree-optimization/46076
11545 * tree-ssa.c (useless_type_conversion_p): Conversions from
11546 unprototyped to empty argument list function types are useless.
11548 2011-01-11 Richard Guenther <rguenther@suse.de>
11550 PR middle-end/45235
11551 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11552 volatile MEMs as MEM_READONLY_P.
11554 2011-01-11 Richard Guenther <rguenther@suse.de>
11556 PR tree-optimization/47239
11557 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11559 2011-01-11 Jeff Law <law@redhat.com>
11561 PR tree-optimization/47086
11562 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11563 IVs from statements that might throw.
11565 2011-01-10 Jan Hubicka <jh@suse.cz>
11568 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11570 2011-01-10 Jan Hubicka <jh@suse.cz>
11573 * profile.c (read_profile_edge_counts): Ignore profile inconistency
11574 when correcting profile.
11576 2011-01-10 Jan Hubicka <jh@suse.cz>
11579 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11580 DECL_FINI_PRIORITY.
11581 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11582 Restore DECL_FINI_PRIORITY.
11584 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11586 * doc/gimple.texi: Fix quoting of multi-word return values in
11587 @deftypefn statements. Ensure presence of return value. Wrap
11588 overlong @deftypefn lines.
11589 (is_gimple_operand, is_gimple_min_invariant_address): Remove
11590 descriptions of removed functions.
11591 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11592 of multi-word return value in @deftypefn statement.
11594 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11596 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11597 (Conditional Expressions, Logical Operators)
11598 (Statement and operand traversals): Do not indent smallexample
11599 code. Fix duplicate function argument in example.
11601 2011-01-10 Jeff Law <law@redhat.com>
11603 PR tree-optimization/47141
11604 * ipa-split.c (split_function): Handle case where we are
11605 returning a value and the return block has a virtual operand phi.
11607 2011-01-10 Jan Hubicka <jh@suse.cz>
11609 PR tree-optimization/47234
11610 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11611 (pass_feedback_split_functions): Declare.
11612 * passes.c (init_optimization_passes): Add ipa-split as subpass of
11614 * ipa-split.c (gate_split_functions): Update comments; disable
11615 split-functions for profile_arc_flag and branch_probabilities.
11616 (gate_feedback_split_functions): New function.
11617 (execute_feedback_split_functions): New function.
11618 (pass_feedback_split_functions): New global var.
11620 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
11623 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11624 calling gimple_call_set_cannot_inline.
11626 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
11628 * config/darwin-sections.def: Remove unused section.
11630 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
11633 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11635 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
11638 * c-parser.c (c_parser_declaration_or_fndef): Improved
11641 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
11643 * config/i386/winnt.c (i386_pe_start_function): Make sure
11644 to switch back to function's section.
11646 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
11650 * plugin.c: Move include of dlfcn.h from here...
11651 * system.h: ... to here.
11653 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11655 * doc/cpp.texi (C++ Named Operators): Fix markup for header
11657 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11658 two extra empty pages in PDF output.
11660 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
11663 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11664 for error recovery purposes behave as if it was not specified so
11665 that the default type is usd.
11667 2011-01-07 Jan Hubicka <jh@suse.cz>
11669 PR tree-optmization/46469
11670 * ipa.c (function_and_variable_visibility): Clear needed flags on
11671 nodes with external decls; handle weakrefs merging correctly.
11673 2011-01-07 Joseph Myers <joseph@codesourcery.com>
11675 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11678 2011-01-07 Jan Hubicka <jh@suse.cz>
11680 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11681 and no longer claim that gold is required for linker plugin.
11682 * configure: Regenerate.
11683 * gcc.c (PLUGIN_COND): New macro.
11684 (LINK_COMMAND_SPEC): Use it.
11685 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11686 * config.in (HAVE_LTO_PLUGIN): New.
11687 * configure.ac (--with-lto-plugin): New parameter; autodetect
11690 2011-01-07 Jan Hubicka <jh@suse.cz>
11692 PR tree-optimization/46367
11693 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11694 when we can update original.
11695 (cgraph_mark_inline_edge): Sanity check.
11696 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11698 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11700 * config/spu/spu.h (ASM_COMMENT_START): Define.
11702 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
11705 * gcc.c (%>S): New.
11706 (SWITCH_KEEP_FOR_GCC): Likewise.
11707 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11708 (do_spec_1): Handle "%>".
11710 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11712 2011-01-07 Jakub Jelinek <jakub@redhat.com>
11715 * config/i386/i386.c (ix86_delegitimize_address): If
11716 simplify_gen_subreg fails, return orig_x.
11719 * value-prof.c (gimple_stringop_fixed_value): Handle
11720 lhs of the call properly.
11722 2011-01-07 Jan Hubicka <jh@suse.cz>
11725 * lto-opt.c (lto_reissue_options): Set flag_shlib.
11727 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11729 * target.def (function_switched_text_sections): New hook.
11730 * doc/tm.texi: Regenerated.
11731 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11732 * final.c (default_function_switched_text_sections): New.
11733 (final_scan_insn): Call function_switched_text_sections when a
11734 mid-function section change occurs.
11735 * output.h (default_function_switched_text_sections): Declare.
11736 * config/darwin-protos.h (darwin_function_switched_text_sections):
11738 * config/darwin.c (darwin_function_switched_text_sections): New.
11739 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11741 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11743 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
11744 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
11745 the secondary code fragment when outputting for DWARF == 2.
11747 2011-01-07 Anatoly Sokolov <aesok@post.ru>
11749 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11750 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11752 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11753 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11755 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
11758 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11759 when it is not empty.
11761 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
11764 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11765 (case ${target}): Add btver1.
11766 * config/i386/driver-i386.c (host_detect_local_cpu): Let
11767 -march=native recognize btver1 processors.
11768 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11769 btver1 def_and_undef
11770 * config/i386/i386.c (struct processor_costs btver1_cost): New
11772 (m_BTVER1): New definition.
11773 (m_AMD_MULTIPLE): Includes m_BTVER1.
11774 (initial_ix86_tune_features): Add btver1 tune.
11775 (processor_target_table): Add btver1 entry.
11776 (static const char *const cpu_names): Add btver1 entry.
11777 (software_prefetching_beneficial_p): Add btver1.
11778 (ix86_option_override_internal): Add btver1 instruction sets.
11779 (ix86_issue_rate): Add btver1.
11780 (ix86_adjust_cost): Add btver1.
11781 * config/i386/i386.h (TARGET_BTVER1): New definition.
11782 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11783 (enum processor_type): Add PROCESSOR_BTVER1.
11784 * config/i386/i386.md (define_attr "cpu"): Add btver1.
11786 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11789 * config/i386/i386.c (legitimize_tls_address)
11790 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11791 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11792 (tls_initial_exec_64_sun): New pattern.
11794 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
11796 * doc/invoke.texi (Overall Options): Improve wording and markup
11797 of the description of -wrapper.
11799 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11801 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11802 rdynamic, threads): New Driver options.
11804 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11807 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11808 if coming from .tdata.
11809 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11811 2011-01-06 Jan Hubicka <jh@suse.cz>
11814 * collect2.c (main): Do not enable LTOmode when plugin is active.
11816 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11819 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11820 --version output if supported.
11821 * configure: Regenerate.
11823 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11825 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11828 2011-01-06 Jakub Jelinek <jakub@redhat.com>
11831 * c-convert.c (convert): When converting a complex expression
11832 other than COMPLEX_EXPR to a different complex type, ensure
11833 c_save_expr is called instead of save_expr, unless in_late_binary_op.
11834 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11835 when converting COMPLEX_TYPE.
11837 2011-01-06 Ira Rosen <irar@il.ibm.com>
11839 PR tree-optimization/47139
11840 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11841 only the last reduction value is used outside the loop. Update
11844 2011-01-05 Joseph Myers <joseph@codesourcery.com>
11846 * config/rtems.opt: New.
11847 * config.gcc (*-*-rtems*): Use rtems.opt.
11849 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
11851 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11852 processors do not support 3DNow instructions.
11854 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11856 * config/spu/spu.c (spu_option_override): Set parameter
11857 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11859 2011-01-05 Jan Hubicka <jh@suse.cz>
11861 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11862 at the command line.
11864 2011-01-05 Martin Jambor <mjambor@suse.cz>
11867 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11868 deltas on streamed outgoing edges.
11869 (output_node_opt_summary): Output info for outgoing edges only when
11870 the node is in new parameter set.
11871 (output_cgraph_opt_summary): New parameter set, passed to the two
11872 aforementioned functions. Update its forward declaration and its
11875 2011-01-05 Tom Tromey <tromey@redhat.com>
11877 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11878 operator to c_finish_omp_atomic.
11879 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11880 (build_unary_op): Update.
11881 (build_modify_expr): Update.
11882 (build_asm_expr): Update.
11884 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11886 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11887 newly inserted insns.
11888 (pad_bb): Likewise.
11889 (spu_emit_branch_hint): Likewise.
11890 (insert_hbrp_for_ilb_runout): Likewise.
11891 (spu_machine_dependent_reorg): Call df_finish_pass after
11892 schedule_insns returns.
11894 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11896 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11898 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
11900 PR tree-optimization/47005
11901 * tree-sra.c (struct access): Add 'non_addressable' bit.
11902 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11903 (decide_one_param_reduction): Return 0 if the parameter is passed by
11904 reference and one of the accesses in the group is non_addressable.
11906 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11908 PR tree-optimization/47056
11909 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11910 (mark_load): Likewise. Handle FUNCTION_DECL specially.
11911 (mark_store): Likewise. Pass STMT to ipa_record_reference.
11913 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11915 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11916 initializer. Skip view conversions from aggregate types.
11918 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
11921 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11923 2011-01-04 Philipp Thomas <pth@suse.de>
11925 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11928 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11930 * function.c (thread_prologue_and_epilogue_insns): Do not crash
11931 on empty epilogue sequences.
11933 2011-01-04 Joseph Myers <joseph@codesourcery.com>
11935 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11936 non-static): New Driver options.
11938 2011-01-04 Jie Zhang <jie@codesourcery.com>
11941 * gcc.c (default_compilers[]): Set combinable field to 0
11942 for all assembly languages.
11944 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
11946 * config/mips/loongson3a.md: New file.
11947 * config/mips/mips.md: Include loongson3a.md.
11948 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11951 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
11953 PR middle-end/47017
11954 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11955 instead of convert_memory_address_addr_space on the base expression.
11957 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11959 * config/spu/spu.c (spu_option_override): Update error text
11960 for bad -march= / -mtune= values.
11962 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11964 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11965 if branch-hint optimization will be performed.
11967 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11969 PR tree-optimization/47148
11970 * ipa-split.c (split_function): Convert arguments to
11971 DECL_ARG_TYPE if possible.
11973 PR tree-optimization/47155
11974 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11975 when computing uns.
11977 PR rtl-optimization/47157
11978 * combine.c (try_combine): If undobuf.other_insn becomes
11979 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11980 and set *new_direct_jump_p too.
11982 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
11984 PR tree-optimization/47021
11985 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11987 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11989 * gcc.c (process_command): Update copyright notice dates.
11990 * gcov.c (print_version): Likewise.
11991 * gcov-dump.c (print_version): Likewise.
11992 * mips-tfile.c (main): Likewise.
11993 * mips-tdump.c (main): Likewise.
11995 2011-01-03 Martin Jambor <mjambor@suse.cz>
11997 PR tree-optimization/46801
11998 * tree-sra.c (type_internals_preclude_sra_p): Check whether
11999 aggregate fields start at byte boundary instead of the bit-field flag.
12001 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
12004 * gcc.c (main): Revert revision 168407.
12006 2011-01-03 Martin Jambor <mjambor@suse.cz>
12008 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
12010 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12012 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
12013 vector optab to expand vector/scalar shift, update gimple to vector.
12015 2011-01-03 Martin Jambor <mjambor@suse.cz>
12017 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
12020 2011-01-03 Martin Jambor <mjambor@suse.cz>
12022 PR tree-optimization/46984
12023 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
12025 (cgraph_create_indirect_edge): Fixed line length.
12026 (cgraph_indirect_call_info): Declare.
12027 (cgraph_make_edge_direct) Update declaration.
12028 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
12029 (cgraph_create_indirect_edge): Use it.
12030 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
12032 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
12033 the new thunk_delta representation.
12034 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
12036 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
12037 (ipa_read_indirect_edge_info): Likewise.
12038 * lto-cgraph.c (output_edge_opt_summary): New function.
12039 (output_node_opt_summary): Call it on all outgoing edges.
12040 (input_edge_opt_summary): New function.
12041 (input_node_opt_summary): Call it on all outgoing edges.
12043 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
12046 * gcc.c (main): Don't check have_o when settting combine_inputs.
12048 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
12050 * regrename.c: Add general comment describing the pass.
12051 (struct du_head): Remove 'length' field.
12052 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
12053 (regrename_optimize): Do not sort chains. Rework comments, add others.
12054 Force renaming to the preferred class (if any) in the first pass and do
12055 not consider registers that belong to it in the second pass.
12056 (create_new_chain): Do not set 'length' field.
12057 (scan_rtx_reg): Likewise.
12059 2011-01-02 Jakub Jelinek <jakub@redhat.com>
12061 PR tree-optimization/47140
12062 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
12063 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
12064 to bit_value_binop.
12066 PR rtl-optimization/47028
12067 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
12068 parm_birth_insn instead of at the beginning of first bb.
12070 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
12072 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
12073 Remove the word "see" before "@pxref".
12074 * doc/rtl.texi: Remove the word "see" before "@pxref".
12076 2011-01-01 Jan Hubicka <jh@suse.cz>
12078 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
12081 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
12084 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
12087 Copyright (C) 2011 Free Software Foundation, Inc.
12089 Copying and distribution of this file, with or without modification,
12090 are permitted in any medium without royalty provided the copyright
12091 notice and this notice are preserved.