new_alias_set tweek

Richard Henderson rth@cygnus.com
Mon Jan 11 22:56:00 GMT 1999


If !flag_strict_aliasing and ENABLE_CHECKING, we abort in alias.c
if we find a non-zero alias set.  The simplest solution seems to
be to not create any.


r~


        * tree.c (new_alias_set): Return zero if !flag_strict_aliasing.

Index: tree.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/tree.c,v
retrieving revision 1.55
diff -c -p -d -r1.55 tree.c
*** tree.c	1999/01/09 20:05:18	1.55
--- tree.c	1999/01/12 06:53:52
*************** int
*** 5124,5128 ****
  new_alias_set ()
  {
    static int last_alias_set;
!   return ++last_alias_set;
  }
--- 5124,5131 ----
  new_alias_set ()
  {
    static int last_alias_set;
!   if (flag_strict_aliasing)
!     return ++last_alias_set;
!   else
!     return 0;
  }



More information about the Gcc-patches mailing list