[LLVMdev] strict aliasing and LLVM

Dale Johannesen dalej at apple.com
Fri Oct 29 10:45:00 PDT 2010


>  * clang -fstrict-aliasing -O0 does *not* generate the TBAA info in the 
> resulting .bc file. This is probably intended to speed up -O0 builds 
> even if -fstrict-aliasing is set, but is annoying for debugging what's 
> going on under the hood.

I would expect -O0 to turn off strict-aliasing, so this seems like correct behavior, applying the usual "last flag wins" rule for conflicts.  -O0 -fstrict-aliasing should do what you want.






More information about the llvm-dev mailing list