pr63316.c: Use dg-skip-if instead of dg-options.
authorJakub Jelinek <jakub@redhat.com>
Thu, 2 Feb 2017 10:18:49 +0000 (11:18 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 2 Feb 2017 10:18:49 +0000 (11:18 +0100)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asan/misalign-1.c
gcc/testsuite/c-c++-common/asan/misalign-2.c
gcc/testsuite/c-c++-common/asan/pr63316.c
gcc/testsuite/g++.dg/asan/pr69276.C
gcc/testsuite/gcc.dg/asan/pr66314.c
gcc/testsuite/gcc.dg/asan/use-after-scope-10.c
gcc/testsuite/gcc.dg/asan/use-after-scope-3.c
gcc/testsuite/gcc.dg/asan/use-after-scope-9.c

index cc5da33a72f0dc318e8eea455eecad3f6c571ade..fe055b2caf731ca83b2aa398640254bb197d8580 100644 (file)
@@ -1,5 +1,16 @@
 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.
index f1cca1665cc3ef8ff065c1e06e39bed8ce124efe..c38acd564aae93f220be1cd1c1cf97b294a1e7fc 100644 (file)
@@ -1,5 +1,5 @@
 /* { 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" } */
 
index 9f400b4c1f26fb641682c570556ab9584bc99e04..099a3b8e2c8bbc26b4209e6100ab7268915155dc 100644 (file)
@@ -1,5 +1,5 @@
 /* { 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" } */
 
index d07093ac7f2440241dafce58f14006bfa1c9230c..d243edc8e974bf62025ac11dffc5b6bff7bcf240 100644 (file)
@@ -1,6 +1,6 @@
 /* PR sanitizer/63316 */
 /* { dg-do run } */
-/* { dg-options "-fsanitize=address -O2" } */
+/* { dg-skip-if "" { *-*-* }  { "*" } { "-O2" } } */
 
 #ifdef __cplusplus
 extern "C" {
index ff43650d29ec96d20681e92f04fac18ff1e8de23..1347fae78a68e6a6122d2be649d897e605454f97 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-shouldfail "asan" } */
-/* { dg-additional-options "-O0 -fno-lto" } */
+/* { dg-skip-if "" { *-*-* }  { "*" } { "-O0" } } */
 
 #include <stdlib.h>
 
index 3f6b12c0de69d98d205a67d818ff895c2d252a43..956e5d34faea7bf9666c0ecfef750a0f32cc1a92 100644 (file)
@@ -1,5 +1,6 @@
 /* { 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;
index 24de8cec1ff68dfb8a8f20a59619995c2977355e..60f45768019fc5ce47a5ffd28ae8ee7260a301a3 100644 (file)
@@ -1,6 +1,7 @@
 // { 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)
index 8b11bea99408027a005f9bb56e6a4b69396bda32..ddf3c04eb456bbb8ba87628a565c59422b39f43f 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-do run }
 // { dg-shouldfail "asan" }
-// { dg-additional-options "-O0" }
+// { dg-skip-if "" { *-*-* }  { "*" } { "-O0" } }
 
 int
 main (void)
index 5d069dd18ea3a4a1c1ac511c9569225a3241e9e9..edc1ab21f884100fb5cf0e00edcfb1dd790b8bcc 100644 (file)
@@ -1,6 +1,7 @@
 // { 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)