Add sparcv9 support to lib/Basic/Targets.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Mon Apr 15 21:59:45 PDT 2013
Hi,
Please review this patch which adds SPARC v9 support to Targets.cpp.
Triple::sparcv9 is the 64-bit counterpart to Triple::sparc. The architectures are very similar, so they share most of the TargetInfo implementation. I included operating systems with known sparcv9 ports in AllocateTarget().
This also fixes two issues with the existing 32-bit sparc data layout string: It was accidentally marked as little endian, and there was no stack alignment. A 64-bit aligned stack is required by the SPARC v8 System V ABI.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-support-for-sparcv9-targets.patch
Type: application/octet-stream
Size: 6940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130415/24e26506/attachment.obj>
-------------- next part --------------
Thanks,
/jakob
More information about the cfe-commits
mailing list