diff options
author | Ilya Enkovich <ilya.enkovich@intel.com> | 2015-03-12 09:23:06 +0000 |
---|---|---|
committer | Ilya Enkovich <ienkovich@gcc.gnu.org> | 2015-03-12 09:23:06 +0000 |
commit | 1b89b8f062f42c782ca528be2a8239019141947f (patch) | |
tree | ced77f7e2063c39a4653f20b8429318a159f6480 /gcc/toplev.c | |
parent | 90d33d8fc9acffe8c9a17674e93632c9b420a203 (diff) | |
download | gcc-1b89b8f062f42c782ca528be2a8239019141947f.zip gcc-1b89b8f062f42c782ca528be2a8239019141947f.tar.gz gcc-1b89b8f062f42c782ca528be2a8239019141947f.tar.bz2 |
re PR target/65044 (ICE: SIGSEGV in contains_struct_check with -fsanitize=address -fcheck-pointer-bounds)
gcc/
PR target/65044
* toplev.c (process_options): Restrict Pointer Bounds Checker
usage with Address Sanitizer.
gcc/testsuite/
PR target/65044
* gcc.target/i386/pr65044.c: New.
From-SVN: r221379
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 99cf180..b06eed3 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1375,7 +1375,17 @@ process_options (void) if (flag_check_pointer_bounds) { if (targetm.chkp_bound_mode () == VOIDmode) - error ("-fcheck-pointer-bounds is not supported for this target"); + { + error ("-fcheck-pointer-bounds is not supported for this target"); + flag_check_pointer_bounds = 0; + } + + if (flag_sanitize & SANITIZE_ADDRESS) + { + error ("-fcheck-pointer-bounds is not supported with " + "Address Sanitizer"); + flag_check_pointer_bounds = 0; + } } /* One region RA really helps to decrease the code size. */ |