Re: Code Generation Issue
Re: Code Generation Issue
- Subject: Re: Code Generation Issue
- From: Sean McBride <email@hidden>
- Date: Mon, 21 Nov 2011 11:43:47 -0500
- Organization: Rogue Research Inc.
On Tue, 15 Nov 2011 17:39:49 +0100, Andreas Grosam said:
>I'm experiencing a strange runtime bug in my code that occurs only if
>compiled with Apple LLVM compiler 3.0 and optimization flag O2 or higher
>on Mac OS X. Code compiled with LLVM GCC 4.2 does not have this issue.
>As far as I can see, the logic is correct.
>
>I usually hesitate to blame the compiler, but I can't see were I
>possibly made an error in the source here.
Since no one else has answered.... Before filing a bug, you could check the llvm/clang bugbase for something similar:
<http://llvm.org/bugs/>
Also, have you tried the following: guardmalloc, valgrind, clang static analyzer? They are all great at finding subtle bugs. Similarly, you might want to enable the flags suggested here:
<http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html>
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden