[LLVMdev] A pragma to turn the optimizations off
Moshe Kravchik
mkravchik at hotmail.com
Fri Jul 27 02:24:38 PDT 2012
Thank you. The reason I want to turn them off is that the generated code looks wrong to me and I suspect it is due to optimization.
> Date: Thu, 26 Jul 2012 01:57:52 -0700
> Subject: Re: [LLVMdev] A pragma to turn the optimizations off
> From: bigcheesegs at gmail.com
> To: mkravchik at hotmail.com
> CC: llvmdev at cs.uiuc.edu
>
> On Thu, Jul 26, 2012 at 12:48 AM, Moshe Kravchik <mkravchik at hotmail.com> wrote:
> >
> > Hi,
> >
> > I'm looking for a pragma to insert in my source that will turn the
> > optimization off for that file. Could not find one, it is possible?
> >
> > Thanks a lot,
> > Moshe
>
> No, clang does not have a pragma for this. You should use your build
> system to pass -O0 to clang for this file.
>
> Also, why do you need to disable optimization?
>
> - Michael Spencer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120727/56bf8d55/attachment.html>
More information about the llvm-dev
mailing list