PR sanitizer/71458
* toplev.c (process_options): Do not enable -fcheck-pointer-bounds
w/ -fsanitize=bounds.
* gcc.target/i386/pr71458.c: New test.
From-SVN: r237353
+2016-06-13 Martin Liska <mliska@suse.cz>
+
+ PR sanitizer/71458
+ * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
+ w/ -fsanitize=bounds.
+
2016-06-12 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_init_builtins): Calculate
+2016-06-13 Martin Liska <mliska@suse.cz>
+
+ * gcc.target/i386/pr71458.c: New test.
+
2016-06-12 Uros Bizjak <ubizjak@gmail.com>
PR target/71241
--- /dev/null
+/* { dg-do compile { target { ! x32 } } } */
+/* { dg-options "-fcheck-pointer-bounds -mmpx -fsanitize=bounds" } */
+/* { dg-error "-fcheck-pointer-bounds is not supported with -fsanitize=bounds" "" { target *-*-* } 0 } */
+
+enum {} a[0];
+void fn1(int);
+void fn2() { fn1(a[-1]); }
"Address Sanitizer");
flag_check_pointer_bounds = 0;
}
+
+ if (flag_sanitize & SANITIZE_BOUNDS)
+ {
+ error_at (UNKNOWN_LOCATION,
+ "-fcheck-pointer-bounds is not supported with "
+ "-fsanitize=bounds");
+ flag_check_pointer_bounds = 0;
+ }
+
}
/* One region RA really helps to decrease the code size. */