This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[tree-ssa] aliasing bug [patch]


Fixes a latent bug we've had since February.  It just now
triggered on PPC (no wonder PPC has been so flakey).  Jeff, I
guess you meant pushing a wide int here, eh? :)

Will commit after testing this week's merge on ppc and amd64.


Diego.

	* tree-dfa.c (add_referenced_var): Fix type of element
	pushed into aliased_objects_alias_set.

Index: tree-dfa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-dfa.c,v
retrieving revision 1.1.4.114
diff -d -u -p -r1.1.4.114 tree-dfa.c
--- tree-dfa.c  24 May 2003 13:08:50 -0000      1.1.4.114
+++ tree-dfa.c  29 May 2003 21:03:36 -0000
@@ -2248,7 +2248,7 @@ add_referenced_var (var, walk_state)
        {
          *slot = (void *) var;
          VARRAY_PUSH_TREE (aliased_objects, var);
-         VARRAY_PUSH_INT (aliased_objects_alias_set, get_alias_set (var));
+         VARRAY_PUSH_WIDE_INT (aliased_objects_alias_set, get_alias_set (var));
          num_aliased_objects++;

          /* If the variable is not read-only (or if var isn't a variable),


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]