http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48124
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.03.14 21:52:28
CC| |aldyh at gcc dot gnu.org,
| |jakub at gcc dot gnu.org
Component|c |middle-end
Target Milestone|--- |4.3.6
Summary|likely wrong code bug |[4.3/4.4/4.5/4.6/4.7
| |Regression] likely wrong
| |code bug
Ever Confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-14
21:52:28 UTC ---
While on this exact testcase problems started with
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159321
after slightly modifying the testcase:
/* { dg-do run } */
/* { dg-options "-Os -fno-toplevel-reorder" } */
extern void abort (void);
struct S
{
signed a : 26;
signed b : 16;
signed c : 10;
volatile signed d : 14;
};
static struct S e = { 0, 0, 0, 1 };
static int f = 1;
void __attribute__((noinline))
foo (void)
{
e.d = 0;
f = 2;
}
int
main ()
{
if (e.a || e.b || e.c || e.d != 1 || f != 1)
abort ();
foo ();
if (e.a || e.b || e.c || e.d || f != 2)
abort ();
return 0;
}
it keeps failing at -Os -fno-toplevel-reorder already in 4.2 and with just -Os
in 4.3.