]> granicus.if.org Git - clang/commit
Allows Clang to use LLVM's fixes-x18 option
authorRenato Golin <renato.golin@linaro.org>
Sun, 25 Jan 2015 23:17:48 +0000 (23:17 +0000)
committerRenato Golin <renato.golin@linaro.org>
Sun, 25 Jan 2015 23:17:48 +0000 (23:17 +0000)
commitb3c49e956e7b36535739c5613c83e6ee3ea75d94
tree11ed352cdb1685c42a045cc85928430584a52896
parent41fb44149434c91f156332bc339159dfe21378a6
Allows Clang to use LLVM's fixes-x18 option

This 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.

Patch by Andrew Turner.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227062 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
lib/Driver/Tools.cpp
test/Driver/aarch64-fixed-x18.c [new file with mode: 0644]