2018-11-13 Martin Liska <mliska@suse.cz>
PR sanitizer/87930
* config/i386/i386.c (ix86_option_override_internal): Error
about usage -mabi=ms and -fsanitize={,kernel-}address.
2018-11-13 Martin Liska <mliska@suse.cz>
PR sanitizer/87930
* gcc.target/i386/pr87930.c: New test.
From-SVN: r266073
+2018-11-13 Martin Liska <mliska@suse.cz>
+
+ PR sanitizer/87930
+ * config/i386/i386.c (ix86_option_override_internal): Error
+ about usage -mabi=ms and -fsanitize={,kernel-}address.
+
2018-11-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
* config/aarch64/aarch64.c
error ("-mabi=ms not supported with X32 ABI");
gcc_assert (opts->x_ix86_abi == SYSV_ABI || opts->x_ix86_abi == MS_ABI);
+ if ((opts->x_flag_sanitize & SANITIZE_USER_ADDRESS) && opts->x_ix86_abi == MS_ABI)
+ error ("%<-mabi=ms%> not supported with %<-fsanitize=address%>");
+ if ((opts->x_flag_sanitize & SANITIZE_KERNEL_ADDRESS) && opts->x_ix86_abi == MS_ABI)
+ error ("%<-mabi=ms%> not supported with %<-fsanitize=kernel-address%>");
+
/* For targets using ms ABI enable ms-extensions, if not
explicit turned off. For non-ms ABI we turn off this
option. */
+2018-11-13 Martin Liska <mliska@suse.cz>
+
+ PR sanitizer/87930
+ * gcc.target/i386/pr87930.c: New test.
+
2018-11-13 Richard Biener <rguenther@suse.de>
PR tree-optimization/87962
--- /dev/null
+/* { dg-do compile { target lp64 } } */
+/* { dg-options "-fsanitize=address -mabi=ms" } */
+
+int i;
+
+/* { dg-error ".-mabi=ms. not supported with .-fsanitize=address." "" { target *-*-* } 0 } */