This is the mail archive of the gcc-bugs@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]

[Bug c/13265] New: Different output with -O0, -O1 and -O2


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.

-- 
           Summary: Different output with -O0, -O1 and -O2
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: muks at mukund dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13265


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