-fno-stack-protector now explicitly sets -stack-protector 0 for the
invocation of cc1. In turn, -stack-protector 0 will set nossp IR fn attr
on all functions defined in the translation unit.
Fixes pr/47479.
Paths
| Differential D90348
[Driver] specify -stack-protector 0 for -fno-stack-protector AbandonedPublic Authored by nickdesaulniers on Oct 28 2020, 3:37 PM.
Details
Summary -fno-stack-protector now explicitly sets -stack-protector 0 for the Fixes pr/47479.
Diff Detail
Unit TestsFailed
Event Timelinenickdesaulniers added a parent revision: D90194: [Driver] split LangOptions::SSPOff into SSPOFF and SSPUnspecified.Oct 28 2020, 3:37 PM Comment Actions Might be nice to add an integration test where -fno-stack-protector results in nossp function attributes (so -fno-stack-protector -> -stack-protector 0 -> nossp fn attrs). Comment Actions
Oh, this is covered somewhat by clang/test/CodeGen/stack-protector.c which was updated in parent commit D90194.
Revision Contents
Diff 301459 clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/stack-protector.c
|