Bug 13265

Summary: Different output with -O0, -O1 and -O2
Product: gcc Reporter: Mukund <muks>
Component: cAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gcc-bugs
Priority: P2    
Version: 3.3.2   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed:
Attachments: Test program

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