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

[Bug target/23150] 20050713-1.c fails on arm-none-eabi with -O2 or -Os.


------- Additional Comments From kazu at gcc dot gnu dot org  2005-09-26 16:13 -------
Slightly reduced to:

extern void abort (void) __attribute__((noreturn));

struct S
{
  int a, b, c;
};

void
foo2 (struct S x, struct S y)
{
  if (x.b != 4)
    abort ();
}

void
bar2 (struct S x, struct S y)
{
  foo2 (y, x);
}

int
main (void)
{
  struct S a = { 3, 4, 5 }, b = { 6, 7, 8 };

  bar2 (b, a);
  return 0;
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23150


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