This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/23150] 20050713-1.c fails on arm-none-eabi with -O2 or -Os.
- From: "kazu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Sep 2005 16:13:32 -0000
- Subject: [Bug target/23150] 20050713-1.c fails on arm-none-eabi with -O2 or -Os.
- References: <20050730203606.23150.kazu@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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