public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* optimization/10171: contant inline function result evaluated wrong
@ 2003-03-20 18:46 mchen
  0 siblings, 0 replies; only message in thread
From: mchen @ 2003-03-20 18:46 UTC (permalink / raw)
  To: gcc-gnats; +Cc: mendel, agesen


>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==


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-20 18:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-20 18:46 optimization/10171: contant inline function result evaluated wrong mchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).