This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/71240] [7 Regression] ICE on valid code at -O2 and above on x86_64-linux-gnu: verify_gimple failed
- 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: Mon, 23 May 2016 18:47:02 +0000
- Subject: [Bug tree-optimization/71240] [7 Regression] ICE on valid code at -O2 and above on x86_64-linux-gnu: verify_gimple failed
- Auto-submitted: auto-generated
- References: <bug-71240-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71240
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Cleaned up testcase:
struct L { unsigned int l[2]; };
union U { double a; struct L l; } u;
void
foo (double a, struct L *p)
{
u.a = a;
struct L l = u.l, m;
m.l[0] = 0;
m.l[1] = (((l.l[0] & 0xff000000) >> 24)
| ((l.l[0] & 0x00ff0000) >> 8)
| ((l.l[0] & 0x0000ff00) << 8)
| ((l.l[0] & 0x000000ff) << 24));
*p = m;
}
void
bar (double a, struct L *p)
{
foo (a, p);
}