diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2018-04-26 01:21:32 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2018-04-26 01:21:32 +0000 |
commit | e92306590ef0c4e51a0fc0053469a28ed60b1c1c (patch) | |
tree | 3cb454fc989809387d794448cfc811acbac5b736 /gcc/config/mips/mips.h | |
parent | 752361c980da04bd5a386d09af4388dac993c9b7 (diff) | |
download | gcc-e92306590ef0c4e51a0fc0053469a28ed60b1c1c.zip gcc-e92306590ef0c4e51a0fc0053469a28ed60b1c1c.tar.gz gcc-e92306590ef0c4e51a0fc0053469a28ed60b1c1c.tar.bz2 |
mips.c (mips_asan_shadow_offset): New function.
* config/mips/mips.c (mips_asan_shadow_offset): New function.
(TARGET_ASAN_SHADOW_OFFSET): Define.
* config/mips/mips.h (FRAME_GROWS_DOWNWARD): Augment to also be
true for -fsanitize=address.
Co-Authored-By: Jean Lee <xiaoyur347@gmail.com>
From-SVN: r259666
Diffstat (limited to 'gcc/config/mips/mips.h')
-rw-r--r-- | gcc/config/mips/mips.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 84ae675..f290560 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -2289,7 +2289,8 @@ enum reg_class #define STACK_GROWS_DOWNWARD 1 -#define FRAME_GROWS_DOWNWARD flag_stack_protect +#define FRAME_GROWS_DOWNWARD (flag_stack_protect != 0 \ + || (flag_sanitize & SANITIZE_ADDRESS) != 0) /* Size of the area allocated in the frame to save the GP. */ |