diff options
author | Cooper Qu <cooper.qu@linux.alibaba.com> | 2020-07-13 16:15:08 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2020-07-31 00:25:52 +0800 |
commit | c931e8d5a96463427040b0d11f9c4352ac22b2b0 (patch) | |
tree | 7c12893a5d0b6583368da7a8dca22d352ccdfca9 /gcc/builtins.h | |
parent | febd7c43bce0a305aa24ed214ea6a5cba69753dd (diff) | |
download | gcc-c931e8d5a96463427040b0d11f9c4352ac22b2b0.zip gcc-c931e8d5a96463427040b0d11f9c4352ac22b2b0.tar.gz gcc-c931e8d5a96463427040b0d11f9c4352ac22b2b0.tar.bz2 |
RISC-V: Add support for TLS stack protector canary access
gcc/
* config/riscv/riscv-opts.h (stack_protector_guard): New enum.
* config/riscv/riscv.c (riscv_option_override): Handle
the new options.
* config/riscv/riscv.md (stack_protect_set): New pattern to handle
flexible stack protector guard settings.
(stack_protect_set_<mode>): Ditto.
(stack_protect_test): Ditto.
(stack_protect_test_<mode>): Ditto.
* config/riscv/riscv.opt (mstack-protector-guard=,
mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
options.
* doc/invoke.texi (Option Summary) [RISC-V Options]:
Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
-mstack-protector-guard-offset=.
(RISC-V Options): Ditto.
Signed-off-by: cooper <cooper.qu@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Diffstat (limited to 'gcc/builtins.h')
0 files changed, 0 insertions, 0 deletions