Commit da17300a by Uros Bizjak

chkp-strlen-2.c: Define _GNU_SOURCE.

	* 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
parent 87e877d7
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>
......
......@@ -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)
......
/* { 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)
......
/* { 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)
......
/* { 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)
......
/* { 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)
......
/* { 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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment