From 58fe7e6a092745e1dfaf3e133e941c8ba8579cd5 Mon Sep 17 00:00:00 2001 From: mortimer Date: Thu, 25 Apr 2019 00:08:57 +0000 Subject: Also touch --param ssp-buffer-size when using retguard in lieu of the stack protector. Fixes 'unused arguments' warning when this argument is given. Noticed by robert@, ok robert@ --- gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp b/gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp index 199b3dadfd7..8f69d78d79c 100644 --- a/gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp +++ b/gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp @@ -4122,7 +4122,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, // Consume the stack protector arguments to prevent warning Args.getLastArg(options::OPT_fstack_protector_all, options::OPT_fstack_protector_strong, - options::OPT_fstack_protector); + options::OPT_fstack_protector, + options::OPT__param); // ssp-buffer-size } else { // If we're not using retguard, then do the usual stack protector RenderSSPOptions(getToolChain(), Args, CmdArgs, KernelOrKext); -- cgit v1.2.3