No Author [Fri, 29 Oct 2004 21:45:23 +0000 (29 21:45 +0000)]
This commit was manufactured by cvs2svn to create tag
'apple-gcc-4016'.
From-SVN: r89855
Frank Ch. Eigler [Sat, 20 Mar 2004 12:33:41 +0000 (20 12:33 +0000)]
mf-hooks[123].c, [...]: Added libgcc license header.
2004-03-20 Frank Ch. Eigler <fche@redhat.com>
* mf-hooks[123].c, mf-runtime.c, mf-heuristics.c:
Added libgcc license header.
* mf-hooks3.c (__mf_0fn_pthread_create): Correct arg constness.
(pthread_create): Simplify stack allocation syntax.
From-SVN: r79740
Diego Novillo [Sat, 20 Mar 2004 03:59:45 +0000 (19 22:59 -0500)]
re PR rtl-optimization/14643 ([tree-ssa] aliasing bug)
PR optimization/14643
* tree-ssa-alias.c (group_aliases_into): Don't add a variable
to its own may-alias set.
(create_alias_map_for): New.
(setup_pointers_and_addressables): Call it.
Fix allocation of AI->ADDRESSABLE_VARS and AI->POINTERS.
If there are no addressable variables and more than one
dereferenced pointers, add type tags to the ADDRESSABLE_VARS
array.
(get_tmt_for): Add comment about using alias set equality when
checking for existing tags.
testsuite/ChangeLog.tree-ssa:
* gcc.dg/tree-ssa/
20040319-1.c: New test.
From-SVN: r79728
Kazu Hirata [Sat, 20 Mar 2004 02:42:09 +0000 (20 02:42 +0000)]
* fold-const.c (fold_relational_const): Remove dead code.
From-SVN: r79725
GCC Administrator [Sat, 20 Mar 2004 00:16:17 +0000 (20 00:16 +0000)]
Daily bump.
From-SVN: r79720
Jeff Law [Fri, 19 Mar 2004 22:46:30 +0000 (19 15:46 -0700)]
tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Fix typo.
* tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Fix typo.
Eliminate unnecessary test of VAL.
* gcc.c-torture/execute/
20040319-1.c: New test.
From-SVN: r79706
Dale Johannesen [Fri, 19 Mar 2004 18:26:09 +0000 (19 18:26 +0000)]
tree-ssa-dse.c (dse_optimize_stmt): Redirect uses feeding into a deleted store correctly.
2003-03-19 Dale Johannesen <dalej@apple.com>
* tree-ssa-dse.c (dse_optimize_stmt): Redirect uses feeding into
a deleted store correctly.
From-SVN: r79694
Jeff Law [Fri, 19 Mar 2004 17:51:45 +0000 (19 10:51 -0700)]
tree-dfa.c (find_hidden_use_vars): Also look inside the PENDING_SIZES list for hidden uses.
* tree-dfa.c (find_hidden_use_vars): Also look inside the
PENDING_SIZES list for hidden uses.
* tree-optimize.c (tree_rest_of_compilation): Expand used variables
before setting up parameters.
* tree-ssa-copyrename.c (rename_ssa_copies): Do nothing for copies
where the LHS has a hidden use.
From-SVN: r79692
Diego Novillo [Fri, 19 Mar 2004 02:07:25 +0000 (19 02:07 +0000)]
Makefile.in (TREE_FLOW_H): Reformat.
* Makefile.in (TREE_FLOW_H): Reformat.
(OBJS-common): Add tree-into-ssa.o and tree-outof-ssa.o.
(tree-ssa.o): Remove dependency on domwalk.h and tree-ssa-live.h
(tree-into-ssa.o): New.
(tree-outof-ssa.o): New.
(GTFILES): Remove tree-ssa.c.
(gt-tree-ssa.h): Remove.
* tree-into-ssa.c: New file.
Move all the functions used to rename into SSA from tree-ssa.c.
Update/add comments.
Remove unused variables and structures.
Don't use GGC for memory allocation.
* tree-outof-ssa.c: New file.
Move all the functions used to rename out of SSA from
tree-ssa.c.
Update/add comments.
* tree-ssa-alias.c (compute_points_to_and_addr_escape): Add
bibliographic reference.
From-SVN: r79666
GCC Administrator [Fri, 19 Mar 2004 00:16:16 +0000 (19 00:16 +0000)]
Daily bump.
From-SVN: r79654
Mark Mitchell [Thu, 18 Mar 2004 22:52:39 +0000 (18 22:52 +0000)]
c-decl.c (grokdeclarator): Do not complain about redeclaring visible "static" identifiers "extern" in a...
2004-03-18 Mark Mitchell <mark@codesourcery.com>
* c-decl.c (grokdeclarator): Do not complain about redeclaring
visible "static" identifiers "extern" in a local scope.
* dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
post-increments/decrements.
2004-03-18 Mark Mitchell <mark@codesourcery.com>
* gcc.dg/local1.c: New test.
* gcc.dg/debug/dwarf2/c99-typedef1.c: New test.
Bring over from mainline.
From-SVN: r79649
No Author [Thu, 18 Mar 2004 22:52:39 +0000 (18 22:52 +0000)]
This commit was manufactured by cvs2svn to create branch
'tree-ssa-
20020619-branch'.
From-SVN: r79648
Jeff Law [Thu, 18 Mar 2004 22:43:56 +0000 (18 15:43 -0700)]
Makefile.in (tree-tailcall.o): Depend on langhooks.h.
* Makefile.in (tree-tailcall.o): Depend on langhooks.h.
* tree-tailcall.c: Include langhooks.h.
(find_tail_calls): Use types_compatible_p langhook instead of
equality test of TYPE_MAIN_VARIANT.
* tree-nested.c (get_chain_decl): Mark the chain decl with
TREE_NO_WARNING.
From-SVN: r79644
Devang Patel [Thu, 18 Mar 2004 21:49:12 +0000 (18 13:49 -0800)]
tree-ssa-live.c (new_tree_live_info): Set num_blocks to last_basic_block instead of n_basic_blocks.
* tree-ssa-live.c (new_tree_live_info): Set num_blocks to
last_basic_block instead of n_basic_blocks.
(calculate_live_on_entry): Use last_basic_block instead of
n_basic_blocks.
(calculate_live_on_exit): Same.
From-SVN: r79641
Richard Henderson [Thu, 18 Mar 2004 00:44:33 +0000 (17 16:44 -0800)]
cp-lang.c (cxx_types_compatible_p): Use same_type_ignoring_top_level_qualifiers_p.
* cp-lang.c (cxx_types_compatible_p): Use
same_type_ignoring_top_level_qualifiers_p.
From-SVN: r79615
GCC Administrator [Thu, 18 Mar 2004 00:16:17 +0000 (18 00:16 +0000)]
Daily bump.
From-SVN: r79613
Jeff Law [Wed, 17 Mar 2004 21:20:38 +0000 (17 14:20 -0700)]
* tree-tailcall.c (find_tail_calls): Tighten test for tail recursion.
From-SVN: r79606
Jeff Law [Wed, 17 Mar 2004 21:14:32 +0000 (17 14:14 -0700)]
20040317-1.c: New test.
* gcc.c-torture/compile/
20040317-1.c: New test.
* gcc.c-torture/compile/
20040317-2.c: New test.
* gcc.c-torture/compile/
20040317-3.c: New test.
From-SVN: r79605
Richard Henderson [Wed, 17 Mar 2004 20:39:29 +0000 (17 12:39 -0800)]
Move c++ change to the proper file.
From-SVN: r79601
Diego Novillo [Wed, 17 Mar 2004 19:44:35 +0000 (17 19:44 +0000)]
re PR rtl-optimization/14511 ([tree-ssa] "pure virtual method called" error when calling a method on a static_casted object)
PR optimization/14511
* tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
ignore read-only variables.
(may_alias_p): Fix pointer-to-var calculation when 'var' is an
array.
From-SVN: r79599
Jan Hubicka [Wed, 17 Mar 2004 11:52:44 +0000 (17 12:52 +0100)]
* tree-ssa.c (rewrite_into_ssa, compute_global_livein): Fix.
From-SVN: r79586
Paolo Bonzini [Wed, 17 Mar 2004 07:58:23 +0000 (17 07:58 +0000)]
builtins.c (expand_builtin_constant_p, [...]): Remove.
2004-03-17 Paolo Bonzini <bonzini@gnu.org>
* builtins.c (expand_builtin_constant_p,
purge_builtin_constant_p): Remove.
(expand_builtin): Expand __builtin_constant_p to zero.
* function.c (struct function): Remove calls_constant_p.
(current_function_calls_constant_p): Remove.
* passes.c (rest_of_handle_gcse): Do not run
purge_builtin_constant_p.
* rtl.def (CONSTANT_P_RTX): Die die die.
* cse.c (fold_rtx): Do not handle CONSTANT_P_RTX.
* expr.c (emit_move_insn): Likewise.
* gcse.c (want_to_gcse_p, gcse_constant_p): Likewise.
* genrecog.c (validate_pattern): Likewise.
* recog.c (immediate_operand): Likewise.
* rtl.h (CONSTANT_P): Likewise.
* simplify-rtx.c (simplify_rtx): Likewise.
* config/alpha/alpha.c (input_operand): Likewise.
* config/arm/arm.c (THUMB_LEGITIMATE_CONSTANT_P): Likewise.
* config/c4x/c4x.c (const_operand): Likewise.
* config/cris/cris.c (cris_gotless_symbol,
cris_got_symbol): Likewise.
* config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
* config/ia64/ia64.c (gr_reg_or_5bit_operand,
gr_reg_or_6bit_operand, gr_reg_or_8bit_operand,
gr_reg_or_8bit_adjusted_operand,
gr_reg_or_8bit_and_adjusted_operand,
gr_reg_or_14bit_operand, gr_reg_or_22bit_operand,
shift_count_operand, shift_32bit_count_operand): Likewise.
* config/m32r/m32r.c (move_src_operand): Likewise.
* config/mips/mips.c (mips_const_insns): Likewise.
* config/mmix/mmix.c (mmix_constant_address_p): Likewise.
* config/pa/pa.c (move_src_operand): Likewise.
* config/rs6000/rs6000.c (input_operand): Likewise.
* config/sparc/sparc.c (input_operand): Likewise.
* config/v850/v850.c (movsi_source_operand): Likewise.
* config/xtensa/xtensa.c (move_operand,
xtensa_emit_move_sequence): Likewise.
* config/ia64/ia64.h (PREDICATE_CODES): Do not mention CONSTANT_P_RTX.
* config/pa/pa.h (PREDICATE_CODES): Likewise.
From-SVN: r79576
GCC Administrator [Wed, 17 Mar 2004 00:16:17 +0000 (17 00:16 +0000)]
Daily bump.
From-SVN: r79562
Diego Novillo [Tue, 16 Mar 2004 22:31:58 +0000 (16 22:31 +0000)]
tree-dump.c (struct dump_option_value_info): Add TDF_UID.
* tree-dump.c (struct dump_option_value_info): Add TDF_UID.
* tree.h (TDF_UID): Define.
* doc/invoke.texi: Document -ftree-dump-...-uid.
* tree-pretty-print.c (debug_generic_expr): Add TDF_UID.
(debug_generic_stmt): Likewise.
(dump_decl_name): New function.
(dump_generic_node): Call it.
(print_declaration): Add new argument 'flags'. Update all users.
(print_struct_decl): Likewise.
* tree-alias-ander.c, tree-cfg.c, tree-dfa.c, tree-mudflap.c,
tree-nrv.c, tree-sra.c, tree-ssa-alias.c, tree-ssa-ccp.c,
tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-dse.c,
tree-ssa-forwprop.c, tree-ssa-operands.c, tree-ssa-pre.c,
tree-ssa.c, tree-tail-call.c: Call print_generic_* with
'dump_flags'.
From-SVN: r79554
Dale Johannesen [Tue, 16 Mar 2004 22:16:41 +0000 (16 22:16 +0000)]
Makefile.in (tree-ssa-phiopt.o): add langhooks.h dependency.
2004-03-16 Dale Johannesen <dalej@apple.com>
* Makefile.in (tree-ssa-phiopt.o): add langhooks.h dependency.
(tree-nrv.o): Ditto.
(tree-ssa-copy.o): Ditto.
(tree-ssa-dom.o): Ditto.
(tree-ssa-ccp.o): Ditto.
* c-common.c: Add #include hashtab.h.
(c_type_hash): New.
(c_common_get_alias_set): Handle multiple type nodes referring
to "the same" type, currently for C90 only.
* c-decl.c (current_file_decl): Move to toplev.c.
* c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Define to
c_types_compatible_p.
(c_types_compatible_p): New.
* c-tree.h (c_types_compatible_p): New declaration.
* c-typeck.c (tagged_types_tu_compatible_p): Allow for
compiler-generated TYPE_DECLs without a DECL_ORIGINAL_TYPE.
* gimplify.c (canonicalize_addr_expr): Use types_compatible_p langhook.
(cpt_same_type): Ditto.
* langhooks-def.h (lhd_types_compatible_p): New declaration.
LANG_HOOKS_TYPES_COMPATIBLE_P: New.
* langhooks.c (lhd_types_compatible_p): New.
* langhooks.h (struct lang_hooks): Add types_compatible_p.
* stmt.c (tail_recursion_args): Use types_compatible_p langhook.
* toplev.c (current_file_decl): New, moved from c-decl.c.
* tree-nrv.c: Include langhooks.h.
(tree_nrv): Use types_compatible_p langhook.
* tree-ssa-ccp.c: Include langhooks.h.
(maybe_fold_offset_to_array_ref): Use types_compatible_p langhook.
(maybe_fold_offset_to_component_ref): Ditto (2 places).
(fold_stmt_r): Make sure rhs of COMPONENT_REF is in lhs type.
* tree-ssa-copy.c: Include langhooks.h.
(cprop_into_stmt): Use types_compatible_p langhook.
* tree-ssa-dom.c: Include langhooks.h.
(avail_expr_p): Use types_compatible_p langhook.
* tree-ssa-phiopt.c: Include langhooks.h.
(conditional_replacement): Use types_compatible_p langhook.
* tree-ssa.c (tree_ssa_useless_type_conversion_1): Use
types_compatible_p langhook.
* tree.h (current_file_decl): New declaration.
* cp/cp-lang.c (cxx_types_compatible_p): New.
LANG_HOOKS_TYPES_COMPATIBLE_P: New.
From-SVN: r79551
Dale Johannesen [Tue, 16 Mar 2004 19:05:56 +0000 (16 19:05 +0000)]
re PR rtl-optimization/14498 ([tree-ssa] ICE on legal (varargs))
2004-03-16 Dale Johannesen <dale@apple.com>
PR optimization/14498
* gimplify.c (copy_if_shared_r): Mark VA_ARGS_EXPRs as volatile.
(mark_decls_volatile_r): Moved higher in file (unchanged).
From-SVN: r79541
Daniel Berlin [Tue, 16 Mar 2004 15:59:29 +0000 (16 15:59 +0000)]
re PR rtl-optimization/14562 ([tree-ssa] Incorrect loop code caused by PRE)
2004-03-16 Daniel Berlin <dberlin@dberlin.org>
PR optimization/14562
* tree-ssa-pre.c (generate_expr_as_of_bb): Don't use names_match_p.
(generate_vops_as_of_bb): Ditto.
From-SVN: r79533
GCC Administrator [Tue, 16 Mar 2004 00:16:15 +0000 (16 00:16 +0000)]
Daily bump.
From-SVN: r79519
GCC Administrator [Mon, 15 Mar 2004 00:16:16 +0000 (15 00:16 +0000)]
Daily bump.
From-SVN: r79489
GCC Administrator [Sun, 14 Mar 2004 00:16:21 +0000 (14 00:16 +0000)]
Daily bump.
From-SVN: r79466
Diego Novillo [Sat, 13 Mar 2004 15:21:58 +0000 (13 15:21 +0000)]
re PR rtl-optimization/14553 ([tree-ssa] segfault involving pointers)
PR optimization/14553
* gcc.dg/tree-ssa/
20040313-1.c: New test.
From-SVN: r79449
Diego Novillo [Sat, 13 Mar 2004 15:00:55 +0000 (13 15:00 +0000)]
re PR rtl-optimization/14553 ([tree-ssa] segfault involving pointers)
PR optimization/14553
* tree-ssa.c (replace_immediate_uses): Call propagate_value to
update operands.
From-SVN: r79447
GCC Administrator [Sat, 13 Mar 2004 00:16:17 +0000 (13 00:16 +0000)]
Daily bump.
From-SVN: r79418
Diego Novillo [Fri, 12 Mar 2004 17:49:52 +0000 (12 17:49 +0000)]
tree-alias-common.c (create_alias_vars): Add #if HAVE_BANSHEE around test for PTA_ANDERSEN.
* tree-alias-common.c (create_alias_vars): Add #if
HAVE_BANSHEE around test for PTA_ANDERSEN.
From-SVN: r79399
Diego Novillo [Fri, 12 Mar 2004 04:19:06 +0000 (11 23:19 -0500)]
[multiple changes]
2004-03-11 Diego Novillo <dnovillo@redhat.com>
* tree-dfa.c (struct walk_state): Remove fields 'is_store' and
'is_indirect_ref'. Update all users.
* tree-flow.h (struct var_ann_d): Remove fields 'is_stored',
'is_dereferenced_store' and 'is_dereferenced_load'. Update
all users.
* tree-simple.c (get_base_address): Handle BIT_FIELD_REF.
* tree-ssa-alias.c (struct alias_info): Add fields
'written_vars', 'dereferenced_ptrs_store' and
'dereferenced_ptrs_load'.
(init_alias_info): Initialize them.
(delete_alias_info): Free them.
(find_ptr_dereference): New.
(ptr_is_dereferenced_by): Call it.
Add new argument 'is_store'. Set to true if the
expression is an indirect store operation.
(compute_points_to_and_addr_escape): If the statement
makes a store, load or write operation, update the
corresponding bitmap.
(compute_flow_insensitive_aliasing): Test the
'written_vars' bitmap to determine if alias sets should
be computed.
(setup_pointers_and_addressables): Always assume that
volatile pointers and hidden pointers have been used in a
memory store operation.
* tree-ssa-operands.c (add_stmt_operand): Do add an
operand for may-aliased variables before computing
aliases.
2004-03-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* tree-optimize.c (init_tree_optimization_passes): Move
pass_tail_recursion and pass_ch after pass_may_alias.
* tree-ssa-loop.c (mark_defs_for_rewrite): Mark type tags
for rewriting.
* tree-ssa.c (mark_def_sites): Process the operand of a
VDEF before the result.
From-SVN: r79367
Richard Henderson [Fri, 12 Mar 2004 02:01:20 +0000 (11 18:01 -0800)]
re PR c/14204 ([tree-ssa] Bogus uninitialized warning for stack pointer register var)
PR 14204
* tree-ssa.c (warn_uninit): Don't warn for hard register variables.
* gcc.dg/uninit-H.c: New.
From-SVN: r79365
GCC Administrator [Fri, 12 Mar 2004 00:16:18 +0000 (12 00:16 +0000)]
Daily bump.
From-SVN: r79358
Kazu Hirata [Thu, 11 Mar 2004 19:21:19 +0000 (11 19:21 +0000)]
20040305-1.c: Change a constant to fit in a 16-bit int.
* gcc.dg/tree-ssa/
20040305-1.c: Change a constant to fit in a
16-bit int.
From-SVN: r79340
Richard Henderson [Thu, 11 Mar 2004 05:07:18 +0000 (10 21:07 -0800)]
tree-simple.c (get_base_var, [...]): Remove.
* tree-simple.c (get_base_var, get_base_decl): Remove.
* tree-simple.h: Likewise.
* tree-dfa.c (discover_nonconstant_array_refs_r): Use get_base_address.
* tree-ssa-alias.c (ptr_is_dereferenced_by): Likewise.
(add_pointed_to_var, is_escape_site): Likewise.
* tree-ssa-ccp.c (get_default_value): Expect only SSA_NAME and DECLs.
* tree-ssa-operands.c (add_stmt_operand): Likewise.
(note_addressable): Use get_base_address.
* tree-ssa-dce.c (need_to_preserve_store): Expect only SSA_NAME.
* tree-ssa.c (set_is_used): Inline get_base_decl.
From-SVN: r79301
Richard Henderson [Thu, 11 Mar 2004 01:12:00 +0000 (10 17:12 -0800)]
tree-nested.c (convert_nonlocal_reference): Clear TREE_INVARIANT on modified ADDR_EXPRs.
* tree-nested.c (convert_nonlocal_reference): Clear TREE_INVARIANT
on modified ADDR_EXPRs.
From-SVN: r79291
GCC Administrator [Thu, 11 Mar 2004 00:16:54 +0000 (11 00:16 +0000)]
Daily bump.
From-SVN: r79283
Jason Merrill [Wed, 10 Mar 2004 21:32:50 +0000 (10 16:32 -0500)]
re PR c++/14452 ([tree-ssa] ICE in stabilize_call, at cp/tree.c:2466)
PR c++/14452
* tree.c (stabilize_init): Return whether or not it worked.
* init.c (build_new_1): If not, use a sentry.
From-SVN: r79275
Andrew Pinski [Wed, 10 Mar 2004 18:37:50 +0000 (10 18:37 +0000)]
re PR c/14475 ([tree-ssa] [regression] ICE on bit enum field when enum is not defined)
2004-03-10 Andrew Pinski <apinski@apple.com>
PR c/14475
* gcc.dg/pr14475.c: New test.
2004-03-10 Andrew Pinski <apinski@apple.com
PR c/14475
* c-decl.c (check_bitfield_type_and_width): Check for null
lang_type_specific when check the precision of an enum.
From-SVN: r79272
Andrew Pinski [Wed, 10 Mar 2004 18:04:23 +0000 (10 18:04 +0000)]
Makefile.in (tree-ssa-forwprop.o): Fix the dependences.
2004-03-09 Andrew Pinski <apinski@apple.com>
* Makefile.in (tree-ssa-forwprop.o): Fix the dependences.
From-SVN: r79267
GCC Administrator [Wed, 10 Mar 2004 00:16:16 +0000 (10 00:16 +0000)]
Daily bump.
From-SVN: r79214
Andrew Pinski [Tue, 9 Mar 2004 22:23:29 +0000 (9 22:23 +0000)]
c-typeck.c (tagged_types_tu_compatible_p): Fix typo.
2004-03-09 Andrew Pinski <apinski@apple.com>
* c-typeck.c (tagged_types_tu_compatible_p):
Fix typo.
From-SVN: r79202
Jeff Law [Tue, 9 Mar 2004 18:27:56 +0000 (9 11:27 -0700)]
tree-flow-inline.h (may_propagate_copy): Do not allow propagation of a constant for a virtual operand.
* tree-flow-inline.h (may_propagate_copy): Do not allow propagation of
a constant for a virtual operand.
* gcc.c-torture/compile/
20040309-1.c: New test.
From-SVN: r79195
Loren J. Rittle [Tue, 9 Mar 2004 01:21:36 +0000 (9 01:21 +0000)]
mf-hooks2.c: Support FreeBSD.
* mf-hooks2.c: Support FreeBSD.
(WRAP_gets): Avoid gets().
* testsuite/libmudflap.c/pass-stratcliff.c: Do not
test unimplemented mem/str calls on FreeBSD.
* testsuite/libmudflap.c/pass21-frag.c: Do not include
<alloca.h> on FreeBSD.
From-SVN: r79146
GCC Administrator [Tue, 9 Mar 2004 00:16:17 +0000 (9 00:16 +0000)]
Daily bump.
From-SVN: r79138
Diego Novillo [Mon, 8 Mar 2004 18:06:21 +0000 (8 13:06 -0500)]
Mainline merge as of 2004-03-07.
From-SVN: r79121
No Author [Mon, 8 Mar 2004 18:06:21 +0000 (8 18:06 +0000)]
This commit was manufactured by cvs2svn to create branch
'tree-ssa-
20020619-branch'.
From-SVN: r79120
Jeff Law [Mon, 8 Mar 2004 02:07:31 +0000 (7 19:07 -0700)]
tree-ssa-dom.c: (get_eq_expr_value): Fix typo when comparing a boolean against a constant.
* tree-ssa-dom.c: (get_eq_expr_value): Fix typo when comparing a
boolean against a constant.
* tree-ssa-forwprop.c (record_single_argument_cond_exprs): Do not
record the same SSA_NAME more than once. Only record the SSA_NAME
tested, not the COND_EXPR.
(substitute_single_use_vars): Substitute booleans which are
set from a TRUTH_NOT_EXPR even if they have more than one use site.
From-SVN: r79090
GCC Administrator [Mon, 8 Mar 2004 00:16:14 +0000 (8 00:16 +0000)]
Daily bump.
From-SVN: r79082
Daniel Berlin [Mon, 8 Mar 2004 00:09:27 +0000 (8 00:09 +0000)]
Makefile.am (AM_CFLAGS): Add -I$(top_srcddir)/../include, so we can get ansidecl.h and friends.
2004-03-07 Daniel Berlin <dberlin@dberlin.org>
* engine/Makefile.am (AM_CFLAGS): Add -I$(top_srcddir)/../include, so we
can get ansidecl.h and friends.
* engine/array.c (array_extend): Fix unsigned/signed comparison.
* engine/banshee.h (struct gen_e): Just make void * when empty, instead
of empty struct.
* engine/compiler.h: Don't ever define HAVE_VARIADIC_MACROS, -pedantic
whines about them even when we know we can use them.
* engine/dot.c: constify our char *'s everywhere.
(declare_node): Cast &result to char * before casting to hash_data *.
* engine/dot.h: constify our char *'s everywhere.
* engine/flow-var.c: Ditto.
* engine/flow-var.h: Ditto.
* engine/flowrow-sort.c: Include ansidecl.h.
(get_contour): Mark unused parameter.
(update_upper_bound): Make comment /* instead of //.
(field_eq): Staticify.
* engine/hash.c (string_hash): Staticify.
(string_eq): Ditto.
(entry_cmp): Ditto.
* engine/hash.h: Move comments around.
(hash_table_apply): Add prototype.
* engine/hashset.c (INIT_TABLE_SIZE): Remove extra semicolon.
(EMPTY_KEY): Ditto.
* engine/jcollection.c (jcoll_create_chain): // -> /* comment.
(jcoll_accum): Staticify.
* engine/list.c (sort_linked_list): Staticify.
(compare): Use comparator_fn as last argument, not void *.
* engine/list.h: Declare the functions even for opaque lists.
(list_clear macro): don't return value.
* engine/setif-sort.c: Replaced with new version from banshee cvs.
* engine/setif-var.c: constify our char *'s.
* engine/setif-var.h: Ditto.
* engine/setst-var.c: Ditto.
* engine/setst-var.h: Ditto.
* engine/stamp.c (stamp_string): Use long, not int.
Cast through char *.
* engine/stamp.h (stamp): Long, not int.
* engine/term-sort.c (term_print_stats): Mark argument unused.
include ansidecl.h.
* engine/term-var.c: constify the char *'s.
* engine/term-var.h: Ditto.
* engine/ufind.h (union find update macro): Don't return uf_update's value
(which is void anyway).
* engine/util.c (ptr_hash): Return long, not int.
* engine/util.h (ptr_hash): Ditto.
From-SVN: r79078
GCC Administrator [Sun, 7 Mar 2004 00:16:21 +0000 (7 00:16 +0000)]
Daily bump.
From-SVN: r79036
GCC Administrator [Sat, 6 Mar 2004 00:16:24 +0000 (6 00:16 +0000)]
Daily bump.
From-SVN: r79002
Diego Novillo [Fri, 5 Mar 2004 23:49:04 +0000 (5 18:49 -0500)]
Mainline merge as of 2004-03-05.
From-SVN: r78997
No Author [Fri, 5 Mar 2004 23:49:04 +0000 (5 23:49 +0000)]
This commit was manufactured by cvs2svn to create branch
'tree-ssa-
20020619-branch'.
From-SVN: r78996
Jeff Law [Fri, 5 Mar 2004 21:07:20 +0000 (5 14:07 -0700)]
* gcc.dg/tree-ssa/
20040305-1.c: New test.
From-SVN: r78988
Jeff Law [Fri, 5 Mar 2004 20:54:47 +0000 (5 13:54 -0700)]
tree-ssa-dce.c (remove_dead_stmt): Clear PENDING_STMT after redirect_edge_and_branch call.
* tree-ssa-dce.c (remove_dead_stmt): Clear PENDING_STMT after
redirect_edge_and_branch call.
* tree-ssa-forwprop.c (record_single_argument_cond_exprs): Also
record COND_EXPRs with single use vars defined by SSA_NAME + CONST
expressions.
(substitute_single_use_vars): Corresponding changes to rewrite
COND_EXPRs using single use vars defined by SSA_NAME + CONST
expressions.
From-SVN: r78983
Ulrich Weigand [Fri, 5 Mar 2004 17:53:58 +0000 (5 17:53 +0000)]
s390.c (s390_expand_movstr): Do not use expand_exit_loop_top_cond, manually copy loop header.
* config/s390/s390.c (s390_expand_movstr): Do not use
expand_exit_loop_top_cond, manually copy loop header.
(s390_expand_clrstr): Likewise.
(s390_expand_cmpmem): Likewise.
From-SVN: r78978
Diego Novillo [Fri, 5 Mar 2004 00:18:01 +0000 (5 00:18 +0000)]
tree-ssa-alias.c (compute_flow_sensitive_aliasing): If a name tag has been marked call-clobbered, also mark the corresponding type tag.
* tree-ssa-alias.c (compute_flow_sensitive_aliasing): If
a name tag has been marked call-clobbered, also mark the
corresponding type tag.
From-SVN: r78950
GCC Administrator [Fri, 5 Mar 2004 00:16:14 +0000 (5 00:16 +0000)]
Daily bump.
From-SVN: r78948
Zdenek Dvorak [Fri, 5 Mar 2004 00:13:21 +0000 (5 01:13 +0100)]
tree-ssa-loop-live.c (coalesce_tpa_members): Update the root variable of the partition.
* tree-ssa-loop-live.c (coalesce_tpa_members): Update the root
variable of the partition.
From-SVN: r78944
Jeff Law [Thu, 4 Mar 2004 23:27:02 +0000 (4 16:27 -0700)]
tree-ssa-dce.c (remove_dead_stmt): Redirect an existing edge rather than deleting the old ones and creating a new...
* tree-ssa-dce.c (remove_dead_stmt): Redirect an existing edge
rather than deleting the old ones and creating a new one when
removing a dead conditional.
* testsuite/gcc.c-torture/compile/
20040304-1.c: New test.
From-SVN: r78941
Jeff Law [Thu, 4 Mar 2004 18:35:49 +0000 (4 11:35 -0700)]
fold-const.c (fold): When rebuilding the expression after a call to fold_relational_hi_lo...
* fold-const.c (fold): When rebuilding the expression after a
call to fold_relational_hi_lo, make sure to convert the type of
the second argument to the type of the first.
From-SVN: r78923
Andrew Pinski [Thu, 4 Mar 2004 16:30:33 +0000 (4 08:30 -0800)]
Remove the follow entries as they are mentioned twice:
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.14646.2.146
diff -u -p -r1.14646.2.146 ChangeLog
--- ChangeLog 4 Mar 2004 16:21:30 -0000 1.14646.2.146
+++ ChangeLog 4 Mar 2004 16:28:13 -0000
@@ -459,23 +459,6 @@
* Makefile.in (install-libgcc, install-multilib): Pass
mkinstalldirs var to libgcc.mk.
-
-2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
-
- * config/darwin.h (machopic_finish): Output stub even if the
- symbol is already defined.
-
-2004-02-27 Dale Johannesen <dalej@apple.com>
-
- * config/darwin.c (machopic_output_possible_stub_label): Remove.
- config/darwin-protos.h: Ditto.
- config/darwin.h: Remove call to it.
-
-2004-02-27 Dale Johannesen <dalej@apple.com>
-
- * combine.c (distribute_notes): Do not place a REG_DEAD note
- when value is both set and used.
-
2004-03-01 Mark Mitchell <mark@codesourcery.com>
PR bootstrap/14356
From-SVN: r78918
Andrew Pinski [Thu, 4 Mar 2004 16:21:45 +0000 (4 08:21 -0800)]
move the following from ChangeLog.tree-ssa to ChangeLog
as it is on the mainline too:
2004-03-04 Josef Zlomek <zlomekj@suse.cz>
PR/14362
* var-tracking.c (track_expr_p): Do not track variables which
should be ignored for debugging purposes.
From-SVN: r78915
Diego Novillo [Thu, 4 Mar 2004 15:40:55 +0000 (4 10:40 -0500)]
Mainline merge as of 2004-03-03.
From-SVN: r78914
No Author [Thu, 4 Mar 2004 15:40:55 +0000 (4 15:40 +0000)]
This commit was manufactured by cvs2svn to create branch
'tree-ssa-
20020619-branch'.
From-SVN: r78913
Josef Zlomek [Thu, 4 Mar 2004 14:17:36 +0000 (4 14:17 +0000)]
Fix typo.
From-SVN: r78910
Josef Zlomek [Thu, 4 Mar 2004 10:47:35 +0000 (4 11:47 +0100)]
var-tracking.c (track_expr_p): Do not track variables which should be ignored for debugging purposes.
PR/14362
* var-tracking.c (track_expr_p): Do not track variables which
should be ignored for debugging purposes.
From-SVN: r78904
Jeff Law [Thu, 4 Mar 2004 05:10:48 +0000 (3 22:10 -0700)]
20040303-1.c: New test.
* gcc.c-torture/
20040303-1.c: New test.
* gcc.c-torture/
20040303-2.c: New test.
From-SVN: r78887
Jeff Law [Thu, 4 Mar 2004 05:08:32 +0000 (3 22:08 -0700)]
tree-ssa-phiopt.c (conditional_replacement): Clear EDGE_TRUE_VALUE and EDGE_FALSE_VALUE on the remaining edge after...
* tree-ssa-phiopt.c (conditional_replacement): Clear EDGE_TRUE_VALUE
and EDGE_FALSE_VALUE on the remaining edge after eliminating a PHI.
From-SVN: r78884
GCC Administrator [Thu, 4 Mar 2004 00:16:20 +0000 (4 00:16 +0000)]
Daily bump.
From-SVN: r78873
David Edelsohn [Wed, 3 Mar 2004 15:39:12 +0000 (3 15:39 +0000)]
backport: atomicity.h: Use __gnu_cxx namespace.
Merge from mainline:
* config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
static, and inline keywords.
From-SVN: r78835
Andrew MacLeod [Wed, 3 Mar 2004 13:11:54 +0000 (3 13:11 +0000)]
tree-ssa-copyrename.c (gate_copyrename): Really check it in.
2004-03-03 Andrew MacLeod <amacleod@redhat.com>
* tree-ssa-copyrename.c (gate_copyrename): Really check it in.
* tree-ssa.c (create_temp): Use DECL_ARTIFICIAL from original decl.
From-SVN: r78828
Zdenek Dvorak [Wed, 3 Mar 2004 04:23:40 +0000 (3 05:23 +0100)]
* testsuite/gcc.dg/tree-ssa/tailrecursion-5.c: New test.
From-SVN: r78816
Zdenek Dvorak [Wed, 3 Mar 2004 04:23:19 +0000 (3 05:23 +0100)]
tree-tailcall.c (struct tailcall): Remove return_block and return_bsi fields, add m and a fields.
* tree-tailcall.c (struct tailcall): Remove return_block and return_bsi
fields, add m and a fields.
(m_acc, a_acc): New.
(find_tail_calls): Find tail calls on whose results simple operations
are performed.
(independent_on_stmt_p, process_assignment,
propagate_through_phis, adjust_accumulator_values,
adjust_return_value): New.
(eliminate_tail_call): Update the accumulators if needed.
(optimize_tail_call): Do not create phis.
(tree_optimize_tail_calls): Create phis and accumulators as needed.
Adjust return values.
From-SVN: r78814
Diego Novillo [Wed, 3 Mar 2004 01:05:58 +0000 (3 01:05 +0000)]
20030815-1.c: Expect 1 type cast.
* testsuite/gcc.dg/tree-ssa/
20030815-1.c: Expect 1 type cast.
* testsuite/gcc.dg/tree-ssa/ssa-dce-1.c: Check after aliasing.
* testsuite/gcc.dg/tree-ssa/ssa-dce-2.c: Likewise.
* testsuite/gcc.dg/tree-ssa/ssa-dom-cse-1.c: Likewise.
From-SVN: r78810
Diego Novillo [Wed, 3 Mar 2004 00:59:48 +0000 (3 00:59 +0000)]
tree-ssa-operands.c (get_expr_operands): Mark CALL_EXPRs with has_volatile_ops if aliases haven't been computed yet.
* tree-ssa-operands.c (get_expr_operands): Mark CALL_EXPRs
with has_volatile_ops if aliases haven't been computed yet.
(add_stmt_operand): Use 'true' instead of '1'.
From-SVN: r78809
GCC Administrator [Wed, 3 Mar 2004 00:17:31 +0000 (3 00:17 +0000)]
Daily bump.
From-SVN: r78796
Diego Novillo [Tue, 2 Mar 2004 19:48:50 +0000 (2 19:48 +0000)]
re PR rtl-optimization/14266 ([tree-ssa] ICE on legal, depends on .GLOBAL_VAR.)
PR optimization/14266
* tree-ssa-alias.c (create_global_var): Mark GLOBAL_VAR for
renaming.
testsuite/ChangeLog.tree-ssa
* gcc.dg/tree-ssa/
20040302-1.c: New test.
From-SVN: r78774
Richard Henderson [Tue, 2 Mar 2004 18:44:48 +0000 (2 10:44 -0800)]
Merge to tree-ssa-
20020619-merge-
20040227.
From-SVN: r78772
No Author [Tue, 2 Mar 2004 18:44:48 +0000 (2 18:44 +0000)]
This commit was manufactured by cvs2svn to create branch
'tree-ssa-
20020619-branch'.
From-SVN: r78771
Nicolas Roche [Tue, 2 Mar 2004 05:53:21 +0000 (2 06:53 +0100)]
Makefile.in (install-libgcc, [...]): Pass mkinstalldirs var to libgcc.mk.
2004-03-02 Roche Nicolas <roche@act-europe.fr>
* Makefile.in (install-libgcc, install-multilib): Pass
mkinstalldirs var to libgcc.mk.
From-SVN: r78748
Frank Ch. Eigler [Tue, 2 Mar 2004 01:07:40 +0000 (2 01:07 +0000)]
passes.texi: Add information about mudflap.
2004-03-01 Frank Ch. Eigler <fche@redhat.com>
* doc/passes.texi: Add information about mudflap.
From-SVN: r78735
GCC Administrator [Tue, 2 Mar 2004 00:16:21 +0000 (2 00:16 +0000)]
Daily bump.
From-SVN: r78731
Andrew Pinski [Mon, 1 Mar 2004 19:18:46 +0000 (1 19:18 +0000)]
re PR middle-end/13066 ([tree-ssa] ICE in in invert_truthvalue, at fold-const.c:2554)
2004-03-01 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/13066
* fold-const (fold): Call fold_convert when building
a TRUTH_*_EXPR tree.
From-SVN: r78714
Andrew MacLeod [Mon, 1 Mar 2004 18:06:56 +0000 (1 18:06 +0000)]
common.opt: Add tree-copyrename option.
2004-03-01 Andrew MacLeod <amacleod@redhat.com>
* common.opt : Add tree-copyrename option. Remove duplicate tree-sra.
* flags.h (flag_tree_copyrename): Declare.
* opts.c (decode_options): Turn copyrename on by default at -O.
(common_handle_option): Handle -ftree-copyrename.
* toplev.c (flag_tree_copyrename): Declare.
* tree-ssa-copyrename.c (gate_copyrename): New. Check flag.
(pass_rename_ssa_copies): Initialize with gated routine.
(lang_independent_options f_): Add tree-copyrename.
* doc/invoke.texi: Add -fdump-tree-copyrename and -ftree-copyrename.
* doc/passes.texi: Add blurb for copy renaming.
From-SVN: r78711
Jeff Law [Mon, 1 Mar 2004 17:50:25 +0000 (1 10:50 -0700)]
init.c (build_vec_delete_1): Convert 2nd argument to NE_EXPR to the proper type.
* init.c (build_vec_delete_1): Convert 2nd argument to NE_EXPR to
the proper type.
From-SVN: r78710
Jeff Law [Mon, 1 Mar 2004 14:41:04 +0000 (1 07:41 -0700)]
tree-ssa-dom.c (true_false_expr_hash): Update comments slightly.
* tree-ssa-dom.c (true_false_expr_hash): Update comments slightly.
(true_false_expr_eq): Update comments slightly. Avoid using
operand_equal_p, instead check the code and operands directly.
* gcc.dg/tree-ssa/
20030211-1.c: Update.
From-SVN: r78702
Andrew MacLeod [Mon, 1 Mar 2004 14:37:55 +0000 (1 14:37 +0000)]
Makefile.in (tree-ssa-copyrename.o): New object.
2004-03-01 Andrew MacLeod <amacleod@redhat.com>
* Makefile.in (tree-ssa-copyrename.o): New object.
* timevar.def (TV_TREE_COPY_RENAME): New time variable.
* tree-optimize.c (init_tree_optimization_passes): Add copy rename
pass.
* tree-pass.h (pass_rename_ssa_copies): New pass structure.
* tree-sra.c (lookup_scalar): Copy DECL_ARITIFICIAL flag from base.
* tree-ssa-copyrename.c : New file.
(copy_rename_partition_coalesce): Coalesce partitions for renaming.
(rename_ssa_copies): Find renamable copies.
(pass_rename_ssa_copies): Initialize.
* tree-ssa-live.c (register_ssa_partition): Move to tree-ssa-live.h.
* tree-ssa-live.h (register_ssa_partition): Moved from tree-ssa-live.c.
From-SVN: r78701
David Edelsohn [Mon, 1 Mar 2004 04:37:44 +0000 (1 04:37 +0000)]
doloop.c (doloop_optimize): Increment n_iterations if loop->top present.
* doloop.c (doloop_optimize): Increment n_iterations if loop->top
present.
From-SVN: r78694
GCC Administrator [Mon, 1 Mar 2004 00:16:15 +0000 (1 00:16 +0000)]
Daily bump.
From-SVN: r78687
Diego Novillo [Sun, 29 Feb 2004 17:26:48 +0000 (29 17:26 +0000)]
* gimple-low.c (pass_remove_useless_vars): Add TODO_dump_func.
From-SVN: r78655
Andreas Jaeger [Sun, 29 Feb 2004 17:20:34 +0000 (29 18:20 +0100)]
configure.in: Set ac_libbanshee_warn_cflags for GCC.
* configure.in: Set ac_libbanshee_warn_cflags for GCC.
* configure: Regenerated.
* libcompat/Makefile.am (AM_CFLAGS): Add
ac_libbanshee_warn_cflags.
* engine/Makefile.am (AM_CFLAGS): Likewise.
* points-to/Makefile.am (AM_CFLAGS): Likewise.
* libcompat/Makefile.in: Regenerated.
* engine/Makefile.in: Regenerated.
* points-to/Makefile.in: Regenerated.
* Makefile.in: Regenerated.
From-SVN: r78654
Andreas Jaeger [Sun, 29 Feb 2004 14:39:58 +0000 (29 15:39 +0100)]
* libcompat/radix-tree.c: Include <stdlib.h> for calloc.
From-SVN: r78651
GCC Administrator [Sun, 29 Feb 2004 00:16:46 +0000 (29 00:16 +0000)]
Daily bump.
From-SVN: r78643
Andrew Pinski [Sat, 28 Feb 2004 23:34:57 +0000 (28 23:34 +0000)]
darwin.h (machopic_finish): Output stub even if the symbol is already defined.
2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
* config/darwin.h (machopic_finish): Output stub even if the
symbol is already defined.
From-SVN: r78638