This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/48070] Target application fails when compiled with optimizations
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 11 Mar 2011 09:44:18 +0000
- Subject: [Bug c/48070] Target application fails when compiled with optimizations
- Auto-submitted: auto-generated
- References: <bug-48070-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48070
--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> 2011-03-11 09:44:15 UTC ---
(In reply to comment #2)
> This is likely an unintelligent question, but does that output from valgrind
> seem to indicate a code error or a compiler error?
It can be either (in all cases, compiler error is very unlikely), but it gives
a clue where you should have a look.
Simple patch:
struct Ray reflected;
+ reflected.shadowRay = 0;
vector_copy( &hit->worldHit, &reflected.origin );
fixes the problem for me.