[CodeGenOptions] make StackProtectorGuardOffset signed
authorNick Desaulniers <ndesaulniers@google.com>
Tue, 27 Apr 2021 16:58:42 +0000 (09:58 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Tue, 27 Apr 2021 17:12:58 +0000 (10:12 -0700)
commitea8416bf4df4e2823d85d50d8ddd69dd8ed54720
tree16426ea6185190d920d230172a62f56d1a72a289
parent4cf942adab0c0b35d933839b7a8cda37e6d646e8
[CodeGenOptions] make StackProtectorGuardOffset signed

GCC supports negative values for -mstack-protector-guard-offset=, this
should be a signed value. Pre-req to D100919.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D101325
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Clang.cpp
llvm/include/llvm/CodeGen/CommandFlags.h
llvm/include/llvm/Target/TargetOptions.h
llvm/lib/CodeGen/CommandFlags.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/stack-protector-3.ll