[llvm-commits] [Patch] Make Thumb triples force Thumb mode

Chad Rosier mcrosier at apple.com
Tue Jul 24 16:44:29 PDT 2012


On Jul 24, 2012, at 2:45 PM, Renato Golin wrote:

> As discussed in the main list, triples like "thumbv7m-none-eabi" still
> produce ARM code. This is a flaw in the Driver that is fixed by this
> patch.
> 
> To test, compile any C code like:
> 
> $ clang -ccc-host-triple thumbv7-none-eabi -S foo.c
> 
> It'll produce ARM code. With this patch, it should produce Thumb code.
> In Darwin, all v7 defaults to Thumb, so test this on Linux.
> 
> Where should I add a test to match the code generated to Thumb in Clang's suite?

As an example, see: test/Driver/arch.c

 Chad

> 
> -- 
> cheers,
> --renato
> 
> http://systemcall.org/
> <clang-driver.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list