Ilya Enkovich - [PATCH, CHKP, PR target/65044] Restrict pointer bounds checker with Sani (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Hi,

This patch restricts usage of Pointer Bounds Checker with Sanitizer. OK for trunk?

Thanks, Ilya

gcc/

2015-02-16 Ilya Enkovich ilya.enkovich@intel.com

PR target/65044
* toplev.c (process_options): Restrict Pointer Bounds Checker
usage with sanitizers.

gcc/testsuite/

2015-02-16 Ilya Enkovich ilya.enkovich@intel.com

PR target/65044
* gcc.target/i386/pr65044.c: New.

diff --git a/gcc/testsuite/gcc.target/i386/pr65044.c b/gcc/testsuite/gcc.target/i386/pr65044.c new file mode 100644 index 0000000..79ecb04 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr65044.c @@ -0,0 +1,12 @@ +/* { dg-error "-fcheck-pointer-bounds is not supported with sanitizers" } / +/ { dg-do compile } / +/ { dg-require-effective-target mpx } / +/ { dg-options "-fcheck-pointer-bounds -mmpx -fsanitize=address" } */ + +extern int x[]; + +void +foo () +{


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]