summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2019-12-12 21:40:26 +0100
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2019-12-17 11:26:17 -0800
commit599d1cc07a51e9a556afa2a995930f7ffe0e42cd (patch)
tree8f8317e854bc783207cdcd0ec5d0184c151866fb /clang/lib/Driver/ToolChains
parent79b4c897b8ea5d28af1a2455c7409fc0df803079 (diff)
downloadbcm5719-llvm-599d1cc07a51e9a556afa2a995930f7ffe0e42cd.tar.gz
bcm5719-llvm-599d1cc07a51e9a556afa2a995930f7ffe0e42cd.zip
[Clang FE, SystemZ] Recognize -mpacked-stack CL option
Recognize -mpacked-stack from the command line and add a function attribute "mpacked-stack" when passed. This is needed for building the Linux kernel. If this option is passed for any other target than SystemZ, an error is generated. Review: Ulrich Weigand https://reviews.llvm.org/D71441
Diffstat (limited to 'clang/lib/Driver/ToolChains')
-rw-r--r--clang/lib/Driver/ToolChains/Clang.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index 5c28a3ab173..5bf0efcf050 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -5014,6 +5014,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
if (TC.SupportsProfiling())
Args.AddLastArg(CmdArgs, options::OPT_mnop_mcount);
+ Args.AddLastArg(CmdArgs, options::OPT_mpacked_stack);
+
if (Args.getLastArg(options::OPT_fapple_kext) ||
(Args.hasArg(options::OPT_mkernel) && types::isCXX(InputType)))
CmdArgs.push_back("-fapple-kext");
OpenPOWER on IntegriCloud