[Bug c/36026] New: optimized code returns different results

l dot jirkovsky at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 23 11:27:00 GMT 2008


Hi,
I've code from verse (http://verse.blender.org/) which returns different
results when run with optimizations.

Steps to reproduce:
run gcc test_simple.c
then run compiled program and see what it prints.
compile it with gcc -O2 (or higher). Resulting executable returns different
result.

Tested gcc versions:
3.4.6 - everything works there
4.3.0 - bug is reproducible
4.1.2 - the same as 4.3.0

I've tried to turn on optimization flags which are enabled by -O2 by parts (At
first first half and then second half of flags) but in this case the problem is
not present.


-- 
           Summary: optimized code returns different results
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: l dot jirkovsky at gmail dot com


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



More information about the Gcc-bugs mailing list