[Bug c/61564] New: #pragma GCC optimize ("-fno-lto") causes the compiler to crash
t.poechtrager at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Jun 19 16:39:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61564
Bug ID: 61564
Summary: #pragma GCC optimize ("-fno-lto") causes the compiler
to crash
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: t.poechtrager at gmail dot com
Target: Linux x86_64, i686-w64-mingw32 and others
$ cat test.cpp
#pragma GCC push_options
#pragma GCC optimize ("-fno-lto")
int main(void){return 0;}
#pragma GCC pop_options
### GCC 4.9.0 ###
$ LC_ALL=C gcc test.cpp -flto
test.cpp:4:24: internal compiler error: Segmentation fault
#pragma GCC pop_options
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccpuDCNO.out file, please attach this to
your bugreport.
### GCC 4.6.4 ###
$ LC_ALL=C gcc-4.6 test.cpp -flto # no crash
More information about the Gcc-bugs
mailing list