pr63316.c: Use dg-skip-if instead of dg-options.

* 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
This commit is contained in:
Jakub Jelinek 2017-02-02 11:18:49 +01:00 committed by Jakub Jelinek
parent 9f11a4a76f
commit bef7e56112
9 changed files with 22 additions and 8 deletions

View 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.

View 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" } */

View 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" } */

View File

@ -1,6 +1,6 @@
/* PR sanitizer/63316 */
/* { dg-do run } */
/* { dg-options "-fsanitize=address -O2" } */
/* { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
#ifdef __cplusplus
extern "C" {

View File

@ -1,6 +1,6 @@
/* { dg-do run } */
/* { dg-shouldfail "asan" } */
/* { dg-additional-options "-O0 -fno-lto" } */
/* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */
#include <stdlib.h>

View 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;

View 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)

View File

@ -1,6 +1,6 @@
// { dg-do run }
// { dg-shouldfail "asan" }
// { dg-additional-options "-O0" }
// { dg-skip-if "" { *-*-* } { "*" } { "-O0" } }
int
main (void)

View 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)