public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7253: Internal compiler error with -O2, ok with -O1
@ 2002-07-09 20:06 hans.plesser
  0 siblings, 0 replies; only message in thread
From: hans.plesser @ 2002-07-09 20:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7253
>Category:       c++
>Synopsis:       Internal compiler error with -O2, ok with -O1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 09 20:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hans E. Plesser
>Release:        gcc 3.1
>Organization:
>Environment:
Reading specs from /usr/local/gcc-3.1/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: /home/admin/source/gcc-3.1/configure --prefix=/usr/local/gcc-3.1
Thread model: single
gcc version 3.1
 /usr/local/gcc-3.1/lib/gcc-lib/i686-pc-linux-gnu/3.1/cpp0 -lang-c++ -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -v -iprefix /usr/local/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.1/ -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ poisson_randomdev.cpp poisson_randomdev.ii
GNU CPP version 3.1 (cpplib) (i386 Linux/ELF)
ignoring nonexistent directory "/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../include/g++-v3"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../include/g++-v3/i686-pc-linux-gnu"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../include/g++-v3/backward"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/include"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/include"
ignoring nonexistent directory "/usr/local/gcc-3.1/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/gcc-3.1/include/g++-v3
 /usr/local/gcc-3.1/include/g++-v3/i686-pc-linux-gnu
 /usr/local/gcc-3.1/include/g++-v3/backward
 /usr/local/include
 /usr/local/gcc-3.1/include
 /usr/local/gcc-3.1/lib/gcc-lib/i686-pc-linux-gnu/3.1/include
 /usr/include
End of search list.
 /usr/local/gcc-3.1/lib/gcc-lib/i686-pc-linux-gnu/3.1/cc1plus -fpreprocessed poisson_randomdev.ii -quiet -dumpbase poisson_randomdev.cpp -O2 -version -o poisson_randomdev.s
GNU CPP version 3.1 (cpplib) (i386 Linux/ELF)
GNU C++ version 3.1 (i686-pc-linux-gnu)
        compiled by GNU C version 2.95.3 20010315 (SuSE).
>Description:
An internal compiler error occurs when compiling the included code with optimization -O2 or higher, while all is fine with -O1 or without a -O option.
>How-To-Repeat:
g++  -O2 -c test.ii
>Fix:
Compile with lower optimization :-(
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.ii"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.ii"

IyAxICJwb2lzc29uX3JhbmRvbWRldi5jcHAiCiMgMSAiPGJ1aWx0LWluPiIKIyAxICI8Y29tbWFu
ZCBsaW5lPiIKIyAxICJwb2lzc29uX3JhbmRvbWRldi5jcHAiCiMgMSAicG9pc3Nvbl9yYW5kb21k
ZXYuaCIgMQoKCgojIDEgInJhbmRvbWRldi5oIiAxCiMgMTAgInJhbmRvbWRldi5oIgpjbGFzcyBS
YW5kb21EZXYgewoKcHVibGljOgoKCiAgdmlydHVhbCB+UmFuZG9tRGV2KCkge307CgoKICB2aXJ0
dWFsIGRvdWJsZSBvcGVyYXRvcigpKHZvaWQpID0wOwoKCgogIHZpcnR1YWwgdW5zaWduZWQgbG9u
ZyB1bGRldih2b2lkKSB7IH07Cgp9OwojIDUgInBvaXNzb25fcmFuZG9tZGV2LmgiIDIKCgpjbGFz
cyBQb2lzc29uUmFuZG9tRGV2IDogcHVibGljIFJhbmRvbURldgp7CgpwdWJsaWM6CgogIFBvaXNz
b25SYW5kb21EZXYoKSB7fTsKICB1bnNpZ25lZCBsb25nIHVsZGV2KHZvaWQpOwogIGRvdWJsZSBv
cGVyYXRvcigpKHZvaWQpIHsgc3RhdGljX2Nhc3Q8ZG91YmxlPih1bGRldigpKTsgfTsKCn07CiMg
MiAicG9pc3Nvbl9yYW5kb21kZXYuY3BwIiAyCgp1bnNpZ25lZCBsb25nIFBvaXNzb25SYW5kb21E
ZXY6OnVsZGV2KHZvaWQpCnsKICByZXR1cm4gMVVMOwp9Cg==


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-10  3:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-09 20:06 c++/7253: Internal compiler error with -O2, ok with -O1 hans.plesser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).