[Bug lto/42534] New: ICE with -flto when using __attribute__((__aligned__(X)))
anton at samba dot org
gcc-bugzilla@gcc.gnu.org
Tue Dec 29 11:49:00 GMT 2009
I'm hitting an ICE on gcc svn from 20091229 when building the Linux kernel with
-flto. A cutdown test case:
struct zot
{
void *p;
int *padding;
} __attribute__((__aligned__(128)));
void foo(struct zot *buf)
{
int i;
for (i = 0; i < 4; i++)
buf->padding[i] = 0;
}
# gcc -m64 -O2 -flto -c -o test.o test.c
# gcc -m64 -O2 -flto -r -o test2.o test.o -nostdlib
In file included from :0:0:
test.c: In function 'foo':
test.c:7:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: /root/gcc-installed/bin/gcc returned 1 exit status
collect2: lto-wrapper returned 1 exit status
--
Summary: ICE with -flto when using
__attribute__((__aligned__(X)))
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anton at samba dot org
GCC target triplet: powerpc64-linux-gnu-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42534
More information about the Gcc-bugs
mailing list