[Bug rtl-optimization/25862] New: GCC 3.4.4 - Wrong code generated with -O2 and -O3 optimization levels

andreg at discreet dot com gcc-bugzilla@gcc.gnu.org
Thu Jan 19 18:53:00 GMT 2006


The following test case produces wrong result when compiled with -O2 or -O3.

expected result (-O1, or using intel compiler):

ReadX: x = -5.9436e+29          [  OK  ]
WriteX:                         [  OK  ]

observed results (-O2 or -O3)

ReadX: x =          0           [ FAIL ]
WriteX:                         [ FAIL ]


-- 
           Summary: GCC 3.4.4 - Wrong code generated with -O2 and -O3
                    optimization levels
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andreg at discreet dot com
GCC target triplet: x86_64 linux


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



More information about the Gcc-bugs mailing list