This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
optimization/8165: builtin string functions SEGV on alpha-pc-linux-gnu at -O2
- From: glen at imodulo dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 8 Oct 2002 00:55:07 -0000
- Subject: optimization/8165: builtin string functions SEGV on alpha-pc-linux-gnu at -O2
- Reply-to: glen at imodulo dot com
>Number: 8165
>Category: optimization
>Synopsis: builtin string functions SEGV on alpha-pc-linux-gnu at -O2
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 07 17:56:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Glen Nakamura
>Release: gcc version 3.3 20021006 (experimental)
>Organization:
>Environment:
alpha-pc-linux-gnu
>Description:
The testcase results in SEGV when compiled at -O2.
>How-To-Repeat:
gcc -O2 testcase.c
./a.out
>Fix:
I'll send a proposed patch in a bit...
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="testcase.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="testcase.c"
ZXh0ZXJuIHZvaWQgYWJvcnQgKHZvaWQpOwoKY2hhciBidWZbNjRdOwoKaW50Cm1haW4gKHZvaWQp
CnsKICBpbnQgaTsKCiAgX19idWlsdGluX3N0cmNweSAoYnVmLCAibXlzdHJpbmciKTsKICBpZiAo
X19idWlsdGluX3N0cmNtcCAoYnVmLCAibXlzdHJpbmciKSAhPSAwKQogICAgYWJvcnQgKCk7Cgog
IGZvciAoaSA9IDA7IGkgPCAxNjsgKytpKQogICAgewogICAgICBfX2J1aWx0aW5fc3RyY3B5IChi
dWYgKyBpLCAibXlzdHJpbmciKTsKICAgICAgaWYgKF9fYnVpbHRpbl9zdHJjbXAgKGJ1ZiArIGks
ICJteXN0cmluZyIpICE9IDApCglhYm9ydCAoKTsKICAgIH0KCiAgcmV0dXJuIDA7Cn0K