This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/60310] New: internal compiler error due to excessive alignment
- From: "mikulas at artax dot karlin.mff.cuni.cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 22 Feb 2014 00:52:30 +0000
- Subject: [Bug middle-end/60310] New: internal compiler error due to excessive alignment
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60310
Bug ID: 60310
Summary: internal compiler error due to excessive alignment
Product: gcc
Version: 4.8.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: mikulas at artax dot karlin.mff.cuni.cz
Host: arm-linux-gnueabihf
Target: arm-linux-gnueabihf
Build: arm-linux-gnueabihf
When compiling this piece of code with or without optimizations, gcc crashes
with
an internal error:
int f(void)
{
struct { __attribute__((aligned(1 << 28)))double a; } x;
return 0;
}
alignof.c: In function 'f':
alignof.c:3:9: internal compiler error: in round_up_loc, at fold-const.c:16748
struct { __attribute__((aligned(1 << 28)))double a; } x;
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccQIqkJl.out file, please attach this to
your bugreport.
I reproduced the bug on gcc-4.6.4, gcc-4.7.2, gcc-4.7.3, gcc-4.8.2.