This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16180] New: gcc crashes when optimization is turned on
- From: "gcc-bugzilla at mail1 dot entner dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jun 2004 18:37:12 -0000
- Subject: [Bug c/16180] New: gcc crashes when optimization is turned on
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi GCC Team!
I used a freshly downloaded GCC 3.4.0 and compiled it without special configure
parameters on my SuSE 9.0 with 2.4.21 kernel.
Compiler command and error message:
entner@in5:~/gcc-bughunt> /home/entner2/software/gcc-3.4.0/bin/gcc -c -x c -O2
-Wall -finline-functions savetemps.ii
/home/entner/gcc3.4.0-test-vproject/grs/intp.ac: In function `grsReadGridAtt':
/home/entner/gcc3.4.0-test-vproject/grs/intp.ac:197: warning: unused variable
`dummyobj'
/home/entner/gcc3.4.0-test-vproject/grs/intp.ac:198: warning: unused variable
`attrname'
/home/entner/gcc3.4.0-test-vproject/grs/intp.ac:199: warning: unused variable
`valtype'
/home/entner/gcc3.4.0-test-vproject/grs/intp.ac:200: warning: unused variable
`numdim'
/home/entner/gcc3.4.0-test-vproject/grs/intp.ac:200: warning: unused variable
`dimension'
/home/entner/gcc3.4.0-test-vproject/grs/intp.ac:201: warning: unused variable
`numhandles'
/home/entner/gcc3.4.0-test-vproject/grs/intp.ac:202: warning: unused variable
`refdhandle'
/home/entner/gcc3.4.0-test-vproject/grs/intp.ac:203: warning: unused variable
`index'
/home/entner/gcc3.4.0-test-vproject/grs/intp.ac:203: warning: unused variable
`numvalues'
/home/entner/gcc3.4.0-test-vproject/grs/intp.ac:204: warning: unused variable
`values'
/home/entner/gcc3.4.0-test-vproject/grs/intp.ac:246: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
With -O1 it works fine. The Segfault also occurs on my systems GCC (gcc version
3.3.1 (SuSE Linux)). Without -finline-functions the systems compiler works, gcc
3.4.0 does not.
On a Fedora Core 2 with gcc 3.3.3 20040412 it works even with -O3. On SuSE 8.2
with gcc version 3.3 20030226 (prerelease) (SuSE Linux) it works with -O2 but
not with -O3.
I am sorry if my writing is a bit confusing.
I hope you have all information you need. As there is no upload file dialog in
Bugzilla, I guess I can include the precompiled file afterwards. If not you can
download it from here:
http://kochecke.at/savetemps.ii.bz2
Thanks,
Robert
--
Summary: gcc crashes when optimization is turned on
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc-bugzilla at mail1 dot entner dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16180