[cfe-dev] disabling loop idiom recognizer in clang

Chris Lattner clattner at apple.com
Thu Apr 28 15:15:03 PDT 2011


On Apr 28, 2011, at 3:09 PM, Damjan Marion wrote:

> 
> Hi,
> 
> is there a way to disable loop idiom recognizer in clang?
> 
> I have a problem with compiling early stage code for ARM architecture which should not be linked to external libraries but clang replaces loop with memset call in the code.

Yep, build with -fno-builtin or -ffreestanding.

-Chris



More information about the cfe-dev mailing list