This is the mail archive of the gcc-prs@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/8165: builtin string functions SEGV on alpha-pc-linux-gnu at -O2


>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


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