[PATCH] Add -ffixed-18 on AArch64

Andrew Turner andrew at fubar.geek.nz
Thu Jan 22 06:06:01 PST 2015


The attached patch allows clang to have llvm reserve the x18
platform register on AArch64. FreeBSD will use this in the kernel for
per-cpu data but has no need to reserve this register in userland so
will need this flag to reserve it.

This uses llvm r226664 to allow this register to be reserved.

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang_fixed_x18.diff
Type: text/x-patch
Size: 1717 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150122/dc663db2/attachment.bin>


More information about the cfe-commits mailing list