[LLVMdev] Consumer ARM platform suitable for LLVM development?

Dale Johannesen dalej at apple.com
Thu Mar 12 10:08:37 PDT 2009


On Mar 12, 2009, at 8:30 AMPDT, Misha Brukman wrote:
>
> ../../../../src/llvm-gcc4.2-2.5.source/gcc/config/arm/arm.md:4788:  
> error: ‘MACHO_DYNAMIC_NO_PIC_P’ undeclared here (not in a function)
>
> This tells me there are some Darwin-specific bits in arm.md which  
> shouldn't be there (MachO is Mac OS X-specific).  I'm using the  
> attached script llvm-arm-crosstool.sh to configure/build/install  
> LLVM and LLVM-GCC from the 2.5 release.  If anyone wants to try it  
> out and see if it works for them, I'd love to hear their experiences.
>
> If any ARM/GCC experts know how to fix arm.md to not refer to Darwin- 
> specific macros, that would be great, too.

Probably the right general idea is to #define MACHO_DYNAMIC_NO_PIC_P  
to be 0 for non-Darwin targets.  Not sure where to put this so it will  
work for both targets (the Darwin definition comes from config/ 
darwin.h).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090312/ccdae5d1/attachment.html>


More information about the llvm-dev mailing list