[all-commits] [llvm/llvm-project] 033138: [IR] make stack-protector-guard-* flags into modul...
Nick Desaulniers via All-commits
all-commits at lists.llvm.org
Fri May 21 16:02:20 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 033138ea452f5f493fb5095e5963419905ad12e1
https://github.com/llvm/llvm-project/commit/033138ea452f5f493fb5095e5963419905ad12e1
Author: Nick Desaulniers <ndesaulniers at google.com>
Date: 2021-05-21 (Fri, 21 May 2021)
Changed paths:
M clang/include/clang/Driver/Options.td
M clang/lib/CodeGen/BackendUtil.cpp
M clang/lib/CodeGen/CodeGenModule.cpp
A clang/test/CodeGen/stack-protector-guard.c
M llvm/include/llvm/CodeGen/CommandFlags.h
M llvm/include/llvm/IR/Module.h
M llvm/include/llvm/Target/TargetOptions.h
M llvm/lib/CodeGen/CommandFlags.cpp
M llvm/lib/CodeGen/StackProtector.cpp
M llvm/lib/IR/Module.cpp
M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/test/CodeGen/AArch64/stack-guard-sysreg.ll
M llvm/test/CodeGen/X86/stack-protector-3.ll
A llvm/test/Linker/stack-protector-guard-module-attrs.ll
Log Message:
-----------
[IR] make stack-protector-guard-* flags into module attrs
D88631 added initial support for:
- -mstack-protector-guard=
- -mstack-protector-guard-reg=
- -mstack-protector-guard-offset=
flags, and D100919 extended these to AArch64. Unfortunately, these flags
aren't retained for LTO. Make them module attributes rather than
TargetOptions.
Link: https://github.com/ClangBuiltLinux/linux/issues/1378
Reviewed By: tejohnson
Differential Revision: https://reviews.llvm.org/D102742
More information about the All-commits
mailing list