diff options
author | mortimer <mortimer@cvs.openbsd.org> | 2019-04-25 00:08:57 +0000 |
---|---|---|
committer | mortimer <mortimer@cvs.openbsd.org> | 2019-04-25 00:08:57 +0000 |
commit | 58fe7e6a092745e1dfaf3e133e941c8ba8579cd5 (patch) | |
tree | 3124c9701078ef51401bb65e5748a8b34284225c /gnu/llvm | |
parent | 174590f46ce0219e95a1b6180e81badeba373598 (diff) |
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@
Diffstat (limited to 'gnu/llvm')
-rw-r--r-- | gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |