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/48070] New: Application fails assertion when compiled with optimizations


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

           Summary: Application fails assertion when compiled with
                    optimizations
           Product: gcc
           Version: 4.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Shadow7789@gmail.com


Created attachment 23625
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23625
Source code which triggers the bug

I have run into a problem where my application will fail assertions when
compiled with optimizations that it would pass when compiled without them.  The
code compiles without any warnings or errors.

I am running Ubuntu 10.10 (AMD64) on an Intel Core 2 Duo P8600.  I am compiling
the code with "-Wall -Werror -std=c99".

The code I have attached is the full source to my raytracer, and I have coded
in a scene which renders quickly (<5 seconds) and triggers the bug when
compiled with optimizations.  The executable produced takes no arguments and
produces a output bitmap image.


Note, the makefile included in the attached source is set to build without
optimizations, so the code produced initially should run successfully to
completion.


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