Bug 13265 - Different output with -O0, -O1 and -O2
Summary: Different output with -O0, -O1 and -O2
Status: RESOLVED DUPLICATE of bug 323
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 3.3.2
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-01 22:43 UTC by Mukund
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Test program (1.16 KB, text/plain)
2003-12-01 22:44 UTC, Mukund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mukund 2003-12-01 22:43:17 UTC
Hello

I am not sure if this is a bug, but please verify it as it produces different
output with -O0, -O1 and -O2 flags. Attached is a simple C program, which when
compiled without modification produces different results with different
optimization levels.

1. gcc -O0 -o rse0 rse.c
2. gcc -O1 -o rse1 rse.c
3. gcc -O2 -o rse2 rse.c

If this is not a bug, but a programmer stupidity error, I apologize in advance.
Comment 1 Mukund 2003-12-01 22:44:18 UTC
Created attachment 5259 [details]
Test program
Comment 2 Andrew Pinski 2003-12-01 22:47:00 UTC
This is a dup of bug 323 which is a nonbug, also see: <http://gcc.gnu.org/bugs.html#nonbugs>.

*** This bug has been marked as a duplicate of 323 ***