[Bug tree-optimization/43783] [4.5/4.6 regression] -O -ftree-pre options compile libbid wrong
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Apr 19 11:20:00 GMT 2010
------- Comment #6 from rguenth at gcc dot gnu dot org 2010-04-19 11:20 -------
Testcase:
typedef __attribute__((aligned(16)))
struct {
unsigned long w[3];
} UINT192;
UINT192 __bid_Kx192[32];
extern void abort (void);
int main()
{
int i = 0;
unsigned long x = 0;
for (i = 0; i < 32; ++i)
__bid_Kx192[i].w[1] = i == 1;
for (i = 0; i < 32; ++i)
x += __bid_Kx192[1].w[1];
if (x != 32)
abort ();
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43783
More information about the Gcc-bugs
mailing list