This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14266] [tree-ssa] ICE on legal, depends on .GLOBAL_VAR.
- From: "dnovillo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2004 19:38:48 -0000
- Subject: [Bug optimization/14266] [tree-ssa] ICE on legal, depends on .GLOBAL_VAR.
- References: <20040223232720.14266.dalej@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dnovillo at gcc dot gnu dot org 2004-03-02 19:38 -------
We were not marking .GLOBAL_VAR for renaming after creating it. Fixed with:
Index: tree-ssa-alias.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-alias.c,v
retrieving revision 1.1.2.7
diff -d -u -p -r1.1.2.7 tree-ssa-alias.c
--- tree-ssa-alias.c 27 Feb 2004 18:38:58 -0000 1.1.2.7
+++ tree-ssa-alias.c 2 Mar 2004 19:35:24 -0000
@@ -1713,6 +1713,7 @@ create_global_var (void)
TREE_ADDRESSABLE (global_var) = 0;
add_referenced_tmp_var (global_var);
+ bitmap_set_bit (vars_to_rename, var_ann (global_var)->uid);
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14266