[cfe-dev] selective/fine grained optimizations control

Halfdan Ingvarsson halfdan at sidefx.com
Wed Aug 28 11:08:17 PDT 2013


On 13-08-28 12:45 PM, Eli Friedman wrote:
>
> clang intentionally doesn't expose fine-grained control over 
> optimization passes.
>
> It's probably a better idea to figure out which file is getting 
> incorrectly compiled, and change the optimization level for that 
> file,instead of messing with the optimization levels for the whole 
> project.  Also, this sort of issue is almost always caused by code 
> that has undefined behavior, not by a bug in the compiler.

I beg to differ:http://llvm.org/pr14223 <http://llvm.org/pr14223>

We still have to compile the affected project with -O1 to ensure that 
the destructors properly fire.

  - ½

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130828/6db672c7/attachment.html>


More information about the cfe-dev mailing list