optimization/10171: contant inline function result evaluated wrong
mchen@vmware.com
mchen@vmware.com
Thu Mar 20 18:46:00 GMT 2003
>Number: 10171
>Category: optimization
>Synopsis: contant inline function result evaluated wrong
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 20 18:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Mike Chen
>Release: 2.96 - 3.2
>Organization:
>Environment:
x86 Linux
>Description:
Compile the code using "gcc -O2" and the program doesn't give any output. It works with "gcc -O1" and works with gcc 2.95.
>How-To-Repeat:
compile using "gcc -O2" and run it
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug.c"
dHlwZWRlZiBjaGFyIEJvb2w7CgpzdGF0aWMgaW5saW5lIEJvb2wgdGFnKHZvaWQpCnsKICAgcmV0
dXJuICgwID09IDEpOwp9CgojZGVmaW5lIFRFU1QgICAgKHRhZygpID8gNCA6IDEpCgp2b2lkIG1h
aW4oKQp7CiAgIGludCBpOwogICBmb3IgKGkgPSAwOyBpIDwgVEVTVDsgaSsrKSB7CiAgICAgIHBy
aW50ZigiSGVsbG8xXG4iKTsKICAgfQp9Cg==
More information about the Gcc-prs
mailing list