This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/48161] [4.6 regression] hppa*-*-* will not bootstrap on 4.6 branch with release checking
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Mar 2011 15:01:09 +0000
- Subject: [Bug bootstrap/48161] [4.6 regression] hppa*-*-* will not bootstrap on 4.6 branch with release checking
- Auto-submitted: auto-generated
- References: <bug-48161-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48161
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-17 15:00:56 UTC ---
Reduced testcase for -O2:
typedef struct T *R;
typedef union P { int i; } S;
struct T { union { S f[1]; } u; };
struct G { int l; int t; int r; };
typedef struct G H;
typedef struct { H v[1]; } V;
H *
f1 (V *x, unsigned y)
{
return &x->v[y];
}
typedef struct { V b; } W;
W *h;
int
foo (R x, R y)
{
if ((f1 (&h->b, y->u.f[0].i)->t ? f1 (&h->b, y->u.f[0].i)->t : 0)
- f1 (h ? &h->b : 0, x->u.f[0].i)->r
- (f1 (h ? &h->b : 0, x->u.f[0].i)->t > 0 ? 5 : 0))
return 1;
}