This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/2555: ICE on HP-UX with -O
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/2555: ICE on HP-UX with -O
- From: kforbes at ghs dot com
- Date: 15 Apr 2001 02:43:10 -0000
- Reply-To: kforbes at ghs dot com
>Number: 2555
>Category: c
>Synopsis: ICE on HP-UX with -O
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Sat Apr 14 19:46:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: kforbes@ghs.com
>Release: gcc version 2.95.3 20010315 (release) and gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
HP-UX B.11.00 A 9000/785 (2.95.3/2.95.2)
HP-UX B.10.20 U 9000/800 (2.95.2)
>Description:
This ICE only occurs with -O, so the work-around is to turn off optimizations.
This ICE appears to be HP-UX specific (I've tried linux and solaris).
I can also reproduce a (the?) problem on Solaris, but only with gcc 2.8.1
The problem may be in the front end since it doesn't reproduce with g++.
I've tried to strip this file down as much as possible, so its now legal,
but not useful (i.e. now uses uninitialized values, etc). When I try
to strip it down further, the compiler dies on signal 11, rather
than dumping the nice ICE message.
>How-To-Repeat:
gcc -O -c indcvt.c
indcvt.c: In function `__cvtgen':
indcvt.c:70: Internal compiler error in `gen_lowpart', at emit-rtl.c:1069
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>Fix:
workaround: -O0 (disable optimizer)
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="indcvt.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="indcvt.c"
dHlwZWRlZiBzdHJ1Y3QgewogICAgdW5zaWduZWQgaW50IGV4dF9zaWduOiAxOwogICAgdW5zaWdu
ZWQgaW50IGV4dF9leHA6ICAxNTsKICAgIHVuc2lnbmVkIGludCBleHRfcGFkOiAgMTY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