optimization/7260: GCC 3.1 -O3 optimization generates ICE on legal code (hpux 11)

tim@kaspersky.com tim@kaspersky.com
Wed Jul 10 07:06:00 GMT 2002


>Number:         7260
>Category:       optimization
>Synopsis:       GCC 3.1 -O3 optimization generates ICE on legal code (hpux 11)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 10 06:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Tim Yunaev
>Release:        GCC 3.1
>Organization:
>Environment:
HP-UX hpuxdev B.11.11 U 9000/785 2005081778 unlimited-user license
Reading specs from /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.1/specs
Configured with: ./configure --enable-shared --with-gnu-as --enable-threads=posix
Thread model: posix
gcc version 3.1
>Description:
bash-2.05$ gcc -O3 d_f_each.c
d_f_each.c:54: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Just type gcc -O3 d_f_each.c

>Fix:

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

LyogQ29tcGlsZSBpdCB3aXRoICBnY2MgLVdhbGwgLU8zIGRfZl9lYWNoLmMgKi8KCnVuc2lnbmVk
IGludCBxd2UgKHZvaWQgKiBub2RlLCB1bnNpZ25lZCBpbnQqIGFkZHIsIHVuc2lnbmVkIGludCBm
bGFncywgdm9pZCogcHJvYyk7CgovLyAtLS0Kc3RhdGljIHVuc2lnbmVkIGludCBxd2Vhc2QgKHZv
aWQgKiBkYXRhKSAKewoJdm9pZCogc2libHMgPSBkYXRhOwoKCXVuc2lnbmVkIGludCByZXN1bHQg
PSBxd2UoMCwgMCwgMCwgMCApOwoJaWYgKCByZXN1bHQgKQoJCXJldHVybiByZXN1bHQ7CgllbHNl
CgkJc2libHMgPSAwOwoJcmV0dXJuIDA7Cn0KCgovLyAtLS0KdW5zaWduZWQgaW50IHF3ZSAodm9p
ZCAqIG5vZGUsIHVuc2lnbmVkIGludCogYWRkciwgdW5zaWduZWQgaW50IGZsYWdzLCB2b2lkICog
cHJvYykKewoJdW5zaWduZWQgaW50IHJlc3VsdDsKCXZvaWQgKiBkYXRhOwoKCWlmICggIXByb2Mg
KSB7CgkJcmV0dXJuIDA7Cgl9CgoJaWYgKCBhZGRyICkKCQlkYXRhID0gcXdlYSggbm9kZSwgYWRk
ciApOwoJZWxzZQoJCWRhdGEgPSBub2RlOwoJCglpZiAoICFkYXRhICkgewoJCXJldHVybiAwOwoJ
fQoKCWlmICggZmxhZ3MgJiAxICkgCgl7CgkJcmVzdWx0ID0gcXdlYXNkIChkYXRhKTsKCX0KCWVs
c2UgCgl7CgkJaWYgKCBmbGFncyAmIDIgKSAKCQl7CgkJfQoJCXJlc3VsdCA9IHF3ZWFzZCAoZGF0
YSk7CgoJCWlmICggcmVzdWx0ICkKCQkJcmV0dXJuIHJlc3VsdDsKCX0KCQoJcmV0dXJuIHJlc3Vs
dDsKfQo=



More information about the Gcc-bugs mailing list