* c-c++-common/asan/pr63316.c: Use dg-skip-if instead of dg-options.
* c-c++-common/asan/misalign-1.c: Likewise.
* c-c++-common/asan/misalign-2.c: Likewise.
* g++.dg/asan/pr69276.C: Add dg-skip-if, remove dg-additional-options.
* gcc.dg/asan/pr66314.c: Remove -Os from dg-options, add dg-skip-if.
* gcc.dg/asan/use-after-scope-3.c: Use dg-skip-if instead of dg-options.
* gcc.dg/asan/use-after-scope-9.c: Add dg-skip-if, remove -O2 and
add -ffat-lto-objects from/to dg-additional-options.
* gcc.dg/asan/use-after-scope-10.c: Add dg-skip-if, remove -O2 from
dg-additional-options.
From-SVN: r245121
2017-02-02 Jakub Jelinek <jakub@redhat.com>
+ * c-c++-common/asan/pr63316.c: Use dg-skip-if instead of dg-options.
+ * c-c++-common/asan/misalign-1.c: Likewise.
+ * c-c++-common/asan/misalign-2.c: Likewise.
+ * g++.dg/asan/pr69276.C: Add dg-skip-if, remove dg-additional-options.
+ * gcc.dg/asan/pr66314.c: Remove -Os from dg-options, add dg-skip-if.
+ * gcc.dg/asan/use-after-scope-3.c: Use dg-skip-if instead of dg-options.
+ * gcc.dg/asan/use-after-scope-9.c: Add dg-skip-if, remove -O2 and
+ add -ffat-lto-objects from/to dg-additional-options.
+ * gcc.dg/asan/use-after-scope-10.c: Add dg-skip-if, remove -O2 from
+ dg-additional-options.
+
PR target/79197
* gcc.target/powerpc/pr79197.c: New test.
* gcc.c-torture/compile/pr79197.c: New test.
/* { dg-do run { target { ilp32 || lp64 } } } */
-/* { dg-options "-O2" } */
+/* { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
/* { dg-additional-options "-fno-omit-frame-pointer" { target *-*-darwin* } } */
/* { dg-shouldfail "asan" } */
/* { dg-do run { target { ilp32 || lp64 } } } */
-/* { dg-options "-O2" } */
+/* { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
/* { dg-additional-options "-fno-omit-frame-pointer" { target *-*-darwin* } } */
/* { dg-shouldfail "asan" } */
/* PR sanitizer/63316 */
/* { dg-do run } */
-/* { dg-options "-fsanitize=address -O2" } */
+/* { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
#ifdef __cplusplus
extern "C" {
/* { dg-do run } */
/* { dg-shouldfail "asan" } */
-/* { dg-additional-options "-O0 -fno-lto" } */
+/* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */
#include <stdlib.h>
/* { dg-do compile } */
-/* { dg-options "-std=gnu89 -Os -fprofile-arcs -fno-sanitize=all -fsanitize=kernel-address" } */
+/* { dg-options "-std=gnu89 -fprofile-arcs -fno-sanitize=all -fsanitize=kernel-address" } */
+/* { dg-skip-if "" { *-*-* } { "*" } { "-Os" } } */
char *a;
int d;
// { dg-do run }
// { dg-shouldfail "asan" }
-// { dg-additional-options "-O2 -fdump-tree-asan1" }
+// { dg-skip-if "" { *-*-* } { "*" } { "-O2" } }
+// { dg-additional-options "-fdump-tree-asan1" }
int
main (int argc, char **argv)
// { dg-do run }
// { dg-shouldfail "asan" }
-// { dg-additional-options "-O0" }
+// { dg-skip-if "" { *-*-* } { "*" } { "-O0" } }
int
main (void)
// { dg-do run }
// { dg-shouldfail "asan" }
-// { dg-additional-options "-O2 -fdump-tree-asan1" }
+// { dg-skip-if "" { *-*-* } { "*" } { "-O2" } }
+// { dg-additional-options "-fdump-tree-asan1 -ffat-lto-objects" }
int
main (int argc, char **argv)