]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
chkp-strlen-2.c: Define _GNU_SOURCE.
authorUros Bizjak <uros@gcc.gnu.org>
Sat, 23 Jan 2016 09:29:12 +0000 (10:29 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 23 Jan 2016 09:29:12 +0000 (10:29 +0100)
* gcc.target/i386/chkp-strlen-2.c: Define _GNU_SOURCE.
* gcc.target/i386/chkp-strlen-4.c: Move the definition of
_GNU_SOURCE from compile flags to the source.
* gcc.target/i386/chkp-stropt-12.c: Ditto.
* gcc.target/i386/chkp-stropt-16.c: Ditto.
* gcc.target/i386/chkp-stropt-4.c: Ditto.
* gcc.target/i386/chkp-stropt-8.c: Ditto.

From-SVN: r232762

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/chkp-strlen-2.c
gcc/testsuite/gcc.target/i386/chkp-strlen-4.c
gcc/testsuite/gcc.target/i386/chkp-stropt-12.c
gcc/testsuite/gcc.target/i386/chkp-stropt-16.c
gcc/testsuite/gcc.target/i386/chkp-stropt-4.c
gcc/testsuite/gcc.target/i386/chkp-stropt-8.c

index 7cb07394bfcf27e1a95ba358bb4a51c47a8104b9..f6f0fdba59b4ad66db3654610c39cc82d1b37397 100644 (file)
@@ -1,3 +1,13 @@
+2016-01-23  Uros Bizjak  <ubizjak@gmail.com>
+
+       * gcc.target/i386/chkp-strlen-2.c: Define _GNU_SOURCE.
+       * gcc.target/i386/chkp-strlen-4.c: Move the definition of
+       _GNU_SOURCE from compile flags to the source.
+       * gcc.target/i386/chkp-stropt-12.c: Ditto.
+       * gcc.target/i386/chkp-stropt-16.c: Ditto.
+       * gcc.target/i386/chkp-stropt-4.c: Ditto.
+       * gcc.target/i386/chkp-stropt-8.c: Ditto.
+
 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/69432
@@ -43,9 +53,9 @@
 2016-01-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
        PR testsuite/67489
-       * gcc.target/powerpc/p8vector-builtin-8.c: Remove { target int128
-       } from dg-do compile directive, and instead add {
-       dg-require-effective-target int128 }.
+       * gcc.target/powerpc/p8vector-builtin-8.c: Remove { target int128 }
+       from dg-do compile directive, and instead add
+       dg-require-effective-target int128 }.
 
 2016-01-20  Martin Sebor  <msebor@redhat.com>
 
@@ -60,7 +70,7 @@
 2016-01-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR fortran/65996
-       gfortran.dg/pr65996.f90: New test.
+       gfortran.dg/pr65996.f90: New test.
 
 2016-01-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
 
 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
            Sebastian Pop  <s.pop@samsung.com>
 
-        * gcc.dg/graphite/pr68976.c: New test.
+       * gcc.dg/graphite/pr68976.c: New test.
 
 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
 
index 9f584efee0af211e30db8d0372cf9e6e3f457072..470ac4715a904f067c76d4f07b6f998ba7de559d 100644 (file)
@@ -3,6 +3,7 @@
 /* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-strlen" } */
 /* { dg-final { scan-tree-dump-not "strlen" "strlen" } } */
 
+#define _GNU_SOURCE
 #include "string.h"
 
 char *test (char *str1, char *str2)
index 794c8a860da4e89f61e192ff5d87f1647d086400..dbf568b8418d6f11c7f65830f5ebf5cf0d6d3b5f 100644 (file)
@@ -1,8 +1,9 @@
 /* { dg-do compile { target { ! x32 } } } */
 /* { dg-require-effective-target mempcpy } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-strlen -D_GNU_SOURCE" } */
+/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-strlen" } */
 /* { dg-final { scan-tree-dump-times "strlen" 1 "strlen" } } */
 
+#define _GNU_SOURCE
 #include "string.h"
 
 char * test (char *str1, char *str2)
index 898e7768b30cec9bbac46a725db713892f319d32..638810b8be5c38919cd53369a022a6f4f7989484 100644 (file)
@@ -1,8 +1,9 @@
 /* { dg-do compile { target { ! x32 } } } */
 /* { dg-require-effective-target mempcpy } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-fast-string-functions -D_GNU_SOURCE" } */
+/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-fast-string-functions" } */
 /* { dg-final { scan-tree-dump-not "mempcpy_nobnd" "chkpopt" } } */
 
+#define _GNU_SOURCE
 #include "string.h"
 
 void test (void *buf1, void *buf2, size_t len)
index 891adb4f293d95df62f58ca77afed067aa2c1649..b0f43a6880dac3b7b4d6f6bc03f7244dda1d8d41 100644 (file)
@@ -1,8 +1,9 @@
 /* { dg-do compile { target { ! x32 } } } */
 /* { dg-require-effective-target mempcpy } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-nochk-string-functions -fchkp-use-fast-string-functions -D_GNU_SOURCE" } */
+/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-nochk-string-functions -fchkp-use-fast-string-functions" } */
 /* { dg-final { scan-tree-dump "mempcpy_nobnd_nochk" "chkpopt" } } */
 
+#define _GNU_SOURCE
 #include "string.h"
 
 void test (int *buf1, int *buf2, size_t len)
index 3faa58b0aea7fc4b29b9f89aab0305d200ca7ce2..216ed521edb3c44eb3bc077e06a8295a85394b9b 100644 (file)
@@ -1,8 +1,9 @@
 /* { dg-do compile { target { ! x32 } } } */
 /* { dg-require-effective-target mempcpy } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-nochk-string-functions -D_GNU_SOURCE" } */
+/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-nochk-string-functions" } */
 /* { dg-final { scan-tree-dump "mempcpy_nochk" "chkpopt" } } */
 
+#define _GNU_SOURCE
 #include "string.h"
 
 void test (int *buf1, int *buf2, size_t len)
index 01bff6930a31ee7c15b87c978e6397be1c0e9944..afde3c92b9fdbf0645709025c4ae66d7f7a7c07b 100644 (file)
@@ -1,8 +1,9 @@
 /* { dg-do compile { target { ! x32 } } } */
 /* { dg-require-effective-target mempcpy } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-fast-string-functions -D_GNU_SOURCE" } */
+/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-fast-string-functions" } */
 /* { dg-final { scan-tree-dump "mempcpy_nobnd" "chkpopt" } } */
 
+#define _GNU_SOURCE
 #include "string.h"
 
 void test (int *buf1, int *buf2, size_t len)