This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

optimization/10352: ICE when compiled with 3.2.2 -O2 on bsdi2 or redhat9


>Number:         10352
>Category:       optimization
>Synopsis:       ICE when compiled with 3.2.2 -O2 on bsdi2 or redhat9
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 08 18:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Epler <jepler at unpythonic dot net>
>Release:        gcc 3.2.2
>Organization:
>Environment:
bsdi2.1 / gcc 3.2.2
Reading specs from /usr/local/lib/gcc-lib/i386-pc-bsdi2.1/3.2.2/specs
Configured with: ./configure --prefix=/var/tmp/3.2.2 --program-suffix=32 --enable-languages=c,c++ --enable-obsolete --with-ld=/var/tmp/3.2.2/ld32 : (reconfigured) ./configure --prefix=/var/tmp/3.2.2 --program-suffix=32 --enable-languages=c,c++ --enable-obsolete --with-ld=/var/tmp/3.2.2/ld32 --with-as=/var/tmp/3.2.2/as32 : (reconfigured) ./configure --prefix=/var/tmp/3.2.2 --program-suffix=32 --enable-languages=c,c++ --enable-obsolete --with-ld=/var/tmp/3.2.2/ld32 --with-as=/var/tmp/3.2.2/as32 : (reconfigured) ./configure --prefix=/var/tmp/3.2.2 --program-suffix=32 --enable-languages=c,c++ --enable-obsolete --with-ld=/var/tmp/3.2.2/ld32 --with-as=/var/tmp/3.2.2/as32 : (reconfigured) ./configure --prefix=/var/tmp/3.2.2 --program-suffix=32 --enable-languages=c,c++ --enable-obsolete --with-ld=/var/tmp/3.2.2/ld32 --with-as=/var/tmp/3.2.2/as32 : (reconfigured) ./configure --prefix=/usr/local --program-suffix=-3.2.2 --enable-languages=c,c++ --enable-obsolete --with-ld=/usr/local/bin/ld-3.2.2 --with-as=/usr/local/bin/as-3.2.2 --with-ar=/usr/local/bin/ar-3.2.2 --with-ranlib=/usr/local/bin/ranlib-3.2.2 : (reconfigured) ./configure --prefix=/usr/local --program-suffix=-3.2.2 --enable-languages=c,c++ --enable-obsolete --with-ld=/usr/local/bin/ld-3.2.2 --with-as=/usr/local/bin/as-3.2.2 --with-ar=/usr/local/bin/ar-3.2.2 --with-ranlib=/usr/local/bin/ranlib-3.2.2 --with-nm=/usr/local/bin/nm-3.2.2 --with-objdump=/usr/local/bin/objdump-3.2.2 : (reconfigured) ./configure --prefix=/usr/local --program-suffix=-3.2.2 --enable-languages=c,c++ --enable-obsolete --with-ld=/usr/local/bin/ld-3.2.2 --with-as=/usr/local/bin/as-3.2.2 --with-ar=/usr/local/bin/ar-3.2.2 --with-ranlib=/usr/local/bin/ranlib-3.2.2 --with-nm=/usr/local/bin/nm-3.2.2 --with-objdump=/usr/local/bin/objdump-3.2.2
Thread model: single
gcc version 3.2.2

redhat 9 / gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
>Description:
The attached function causes a compiler error when compiled on either system with -O2.  The ICE is observed when the g++ or gcc frontend is invoked (the latter as 'gcc-3.2.2 -O2 p2l.i).

[on bsdi2]
p2l.ii: In function `int f()':
p2l.ii:38: Internal compiler error in find_reloads_toplev, at reload.c:4437
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

[on redhat 9]
p2l.ii: In function `int f()':
p2l.ii:38: Internal compiler error in find_reloads_toplev, at reload.c:4439
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
>How-To-Repeat:
g++-3.2.2 -O2 p2l.ii
gcc-3.2.2 -O2 p2l.i
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="p2l.ii"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="p2l.ii"

ZXh0ZXJuIGRvdWJsZSBmYWJzKGRvdWJsZSB4KTsKCnR5cGVkZWYgc3RydWN0IHsgZmxvYXQgeCwg
eTsgfSBTOwp0eXBlZGVmIHN0cnVjdCBfVCBUOwoKZXh0ZXJuIHZvaWQgZlQoIFQgKnAgKTsKZXh0
ZXJuIFQgKmgoKTsKZXh0ZXJuIFMgZyggKTsKCnN0YXRpYwppbnQgZih2b2lkKQp7CiAgICBUICp0
PTA7CiAgICBpbnQgYz0wOwogICAgUyBzOwoKICAgIGNvbnN0IFMgZXhwX3MgPSB7MC4sMC59OwoK
ICAgIGlmKCEodCA9IGgoKSkpCiAgICB7CiAgICAgICAgYysrOwogICAgfQoKICAgIGlmKCFjKQog
ICAgewogICAgICAgIHMgPSBnKCk7CiAgICAgICAgaWYoIChmYWJzKCAocy54KSAtIChleHBfcy54
KSApID4gMSApCiAgICAgICAgICAgIHx8IChmYWJzKCAocy55KSAtIChleHBfcy55KSApID4gMSAp
ICkKICAgICAgICB7CiAgICAgICAgICAgIGMrKzsKICAgICAgICB9CiAgICB9CgogICAgaWYodCkK
ICAgICAgICBmVCh0KTsKCiAgICByZXR1cm4gYzsKfQo=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]