This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
target/5379: internal error: Segmentation fault (prefetch related?)
- From: ritzert at t-online dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 14 Jan 2002 18:59:52 -0000
- Subject: target/5379: internal error: Segmentation fault (prefetch related?)
- Reply-to: ritzert at t-online dot de
>Number: 5379
>Category: target
>Synopsis: internal error: Segmentation fault (prefetch related?)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Mon Jan 14 11:06:30 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: ritzert@t-online.de
>Release: gcc version 3.1 20020114 (experimental)
>Organization:
>Environment:
Linux 2.4.16, Athlon
>Description:
# gcc -c x.c -fprefetch-loop-arrays -march=athlon -O2
x.c: In function `_KDE_IceGetPoValidAuthIndices':
x.c:33: 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:
Compile the attached file with
gcc -c x.c -fprefetch-loop-arrays -march=athlon -O2
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-csrc; name="x.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="x.c"
ZXh0ZXJuIGludCBhY2Nlc3MoIGNoYXIqICk7CmV4dGVybiBpbnQgYSgpOwpjaGFyKiBmb29jcCgp
OwoKdm9pZApfS0RFX0ljZUdldFBvVmFsaWRBdXRoSW5kaWNlcyAocHJvdG9jb2xfbmFtZSwgbnVt
X2luZGljZXNfcmV0LCBpbmRpY2VzX3JldCkKY29uc3QgY2hhciAqcHJvdG9jb2xfbmFtZTsKaW50
ICpudW1faW5kaWNlc19yZXQ7CmludCAqaW5kaWNlc19yZXQ7CnsKICAgIGludCBhdXRoX2ZpbGU7
CiAgICBjaGFyICpmaWxlbmFtZTsKICAgIGludCBpbmRleF9yZXQsIGk7CgogICAgaWYgKCEoZmls
ZW5hbWUgPSBmb29jcCAoKSkpCiAgICAgICAgcmV0dXJuOwoKICAgIGlmIChhY2Nlc3MgKGZpbGVu
YW1lKSkKICAgICAgICByZXR1cm47CgogICAgaWYgKGF1dGhfZmlsZSA9IGFjY2VzcyAoZmlsZW5h
bWUpKQogICAgICAgIHJldHVybjsKCiAgICBmb3IgKDs7KQogICAgewogICAgICAgIGlmIChzdHJj
bXAgKHByb3RvY29sX25hbWUsIHByb3RvY29sX25hbWUpID09IDAgKQogICAgICAgIHsKICAgICAg
ICAgICAgZm9yIChpID0gMDsgaSA8ICpudW1faW5kaWNlc19yZXQ7IGkrKykKICAgICAgICAgICAg
ICAgIGlmIChpbmRleF9yZXQgPT0gaW5kaWNlc19yZXRbaV0pCiAgICAgICAgICAgICAgICAgICAg
YnJlYWs7CiAgICAgICAgfQogICAgfQp9Cgo=