From: Jeff Law Date: Thu, 13 Aug 2015 22:19:56 +0000 (-0600) Subject: pr66314.c: Moved from here to .. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cfbbe6decffa0a18e7528f2b39b3ea4804a8a6a3;p=gcc.git pr66314.c: Moved from here to .. * gcc.dg/pr66314.c: Moved from here to .. * gcc.dg/asan/pr66314.c: Here. Use -fno-sanitize=all to clear all sanitizers before -fsanitize=kernel-address. From-SVN: r226877 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4561032457b..2929fe4369e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-08-13 Jeff Law + + * gcc.dg/pr66314.c: Moved from here to .. + * gcc.dg/asan/pr66314.c: Here. Use -fno-sanitize=all + to clear all sanitizers before -fsanitize=kernel-address. + 2015-08-13 Kyrylo Tkachov * gcc.target/aarch64/cinc_common_1.c: New test. diff --git a/gcc/testsuite/gcc.dg/asan/pr66314.c b/gcc/testsuite/gcc.dg/asan/pr66314.c new file mode 100644 index 00000000000..3f6b12c0de6 --- /dev/null +++ b/gcc/testsuite/gcc.dg/asan/pr66314.c @@ -0,0 +1,33 @@ +/* { dg-do compile } */ +/* { dg-options "-std=gnu89 -Os -fprofile-arcs -fno-sanitize=all -fsanitize=kernel-address" } */ + +char *a; +int d; + +static int +fn1 (int b, int c) +{ + while (a) + if (*a) + return -126; + if (b) + return -12; + if (c == -12) + return c; +} + +void +fn2 (int b, int c) +{ + for (;;) + { + d = fn1 (b, c); + switch (d) + { + case -126: + continue; + default: + return; + } + } +} diff --git a/gcc/testsuite/gcc.dg/pr66314.c b/gcc/testsuite/gcc.dg/pr66314.c deleted file mode 100644 index f74ab5b73bb..00000000000 --- a/gcc/testsuite/gcc.dg/pr66314.c +++ /dev/null @@ -1,33 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-std=gnu89 -Os -fprofile-arcs -fsanitize=kernel-address" } */ - -char *a; -int d; - -static int -fn1 (int b, int c) -{ - while (a) - if (*a) - return -126; - if (b) - return -12; - if (c == -12) - return c; -} - -void -fn2 (int b, int c) -{ - for (;;) - { - d = fn1 (b, c); - switch (d) - { - case -126: - continue; - default: - return; - } - } -}