This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[ast-optimizer-branch] gcc.dg/struct-alias-1.c failure
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 11 Jun 2002 15:41:29 -0400
- Subject: [ast-optimizer-branch] gcc.dg/struct-alias-1.c failure
- Organization: Red Hat Canada
Jason,
We are now failing struct-alias-1.c because we don't do constant
propagation on trees. The simplifier is turning:
s.x = 0;
if (s.x != 0)
link_error ();
into
s.x = 0;
T.2 = s.x;
if (T.2 != 0)
link_error ();
which confuses the RTL constant propagator. It doesn't realize
that T.2 is always 0 and leaves the call to link_error() in the
code.
I wouldn't worry for the time being. We will eventually fix it
when we enable constant propagation on trees.
Diego.