[LLVMdev] Patch: Compiling LLVM in Sparc
Venkatraman Govindaraju
venkatra at cs.wisc.edu
Mon Aug 24 21:34:14 PDT 2009
Hello,
The current version in SVN fails to compile in sparc machines since
gcc defines "sparc" as a macro in sparc machines that expands to 1
(see below) but Triple.h defines "sparc" as a enum constant.
$ cpp -dM /dev/null | grep sparc
#define sparc 1
#define __sparc__ 1
#define __sparc 1
The attached patch fixes this problem by renaming sparc to sparc_.
Thanks,
Venkatraman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-compile-in-sparc.patch
Type: application/octet-stream
Size: 4049 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090824/ec581f9b/attachment.obj>
More information about the llvm-dev
mailing list