This is the mail archive of the gcc@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]

[ast-optimizer-branch] gcc.dg/struct-alias-1.c failure


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.


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