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]

Breakage from http://gcc.gnu.org/ml/gcc-cvs/2001-12/msg00223.html


Hi,

http://gcc.gnu.org/ml/gcc-cvs/2001-12/msg00223.html

This patch seems to causes execute/930208-1.c to fail when compiled
with h8300-hms-gcc -O1 from CVS HEAD.  Here is the simplified version
that still fails.

typedef union {
  long l;
  struct { char b3, b2; } c;
} T;

f (T u)
{
  return u.c.b2 != 2;
}

main ()
{
  T u;
  u.c.b2 = 2;
  if (f (u))
    abort();
  exit (0);
}

Looking at the resulting assembly file, the contents of main()
changes.

Could somebody take a look at this?

Thanks,

Kazu Hirata


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