This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/48070] New: Application fails assertion when compiled with optimizations
- From: "Shadow7789 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 11 Mar 2011 08:28:05 +0000
- Subject: [Bug c/48070] New: Application fails assertion when compiled with optimizations
- Auto-submitted: auto-generated
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.