[PATCH, PR64056, i386] Fix chkp tests requiring mempcpy

Richard Biener richard.guenther@gmail.com
Tue Nov 25 10:31:00 GMT 2014


On Tue, Nov 25, 2014 at 10:11 AM, Ilya Enkovich <enkovich.gnu@gmail.com> wrote:
> Hi,
>
> This patch adds check for mempcpy availability for tests requiring it.  Checked with RUNTESTFLAGS="--target_board='unix{-m32,}' i386.exp=chkp-*".  OK for trunk?

Ok.

Thanks,
Richard.

> Thanks,
> Ilya
> --
> 2014-11-25  Ilya Enkovich  <ilya.enkovich@intel.com>
>
>         PR target/64056
>         * gcc.target/i386/chkp-strlen-4.c: Add mempcpy target check.
>         * gcc.target/i386/chkp-stropt-4.c: Likewise.
>         * gcc.target/i386/chkp-stropt-8.c: Likewise.
>         * gcc.target/i386/chkp-stropt-12.c: Likewise.
>         * gcc.target/i386/chkp-stropt-16.c: Likewise.
>
>
> diff --git a/gcc/testsuite/gcc.target/i386/chkp-strlen-4.c b/gcc/testsuite/gcc.target/i386/chkp-strlen-4.c
> index a9ebe2b..2da762a 100644
> --- a/gcc/testsuite/gcc.target/i386/chkp-strlen-4.c
> +++ b/gcc/testsuite/gcc.target/i386/chkp-strlen-4.c
> @@ -1,5 +1,6 @@
>  /* { dg-do compile } */
>  /* { dg-require-effective-target mpx } */
> +/* { dg-require-effective-target mempcpy } */
>  /* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-strlen -D_GNU_SOURCE" } */
>  /* { dg-final { scan-tree-dump-times "strlen" 1 "strlen" } } */
>  /* { dg-final { cleanup-tree-dump "strlen" } } */
> diff --git a/gcc/testsuite/gcc.target/i386/chkp-stropt-12.c b/gcc/testsuite/gcc.target/i386/chkp-stropt-12.c
> index 94e936d..01a5159 100644
> --- a/gcc/testsuite/gcc.target/i386/chkp-stropt-12.c
> +++ b/gcc/testsuite/gcc.target/i386/chkp-stropt-12.c
> @@ -1,5 +1,6 @@
>  /* { dg-do compile } */
>  /* { dg-require-effective-target mpx } */
> +/* { dg-require-effective-target mempcpy } */
>  /* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-fast-string-functions -D_GNU_SOURCE" } */
>  /* { dg-final { scan-tree-dump-not "mempcpy_nobnd" "chkpopt" } } */
>  /* { dg-final { cleanup-tree-dump "chkpopt" } } */
> diff --git a/gcc/testsuite/gcc.target/i386/chkp-stropt-16.c b/gcc/testsuite/gcc.target/i386/chkp-stropt-16.c
> index 4b26d58..f925ef9 100644
> --- a/gcc/testsuite/gcc.target/i386/chkp-stropt-16.c
> +++ b/gcc/testsuite/gcc.target/i386/chkp-stropt-16.c
> @@ -1,5 +1,6 @@
>  /* { dg-do compile } */
>  /* { dg-require-effective-target mpx } */
> +/* { 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-final { scan-tree-dump "mempcpy_nobnd_nochk" "chkpopt" } } */
>  /* { dg-final { cleanup-tree-dump "chkpopt" } } */
> diff --git a/gcc/testsuite/gcc.target/i386/chkp-stropt-4.c b/gcc/testsuite/gcc.target/i386/chkp-stropt-4.c
> index 4ee2390..3ae6bf5 100644
> --- a/gcc/testsuite/gcc.target/i386/chkp-stropt-4.c
> +++ b/gcc/testsuite/gcc.target/i386/chkp-stropt-4.c
> @@ -1,5 +1,6 @@
>  /* { dg-do compile } */
>  /* { dg-require-effective-target mpx } */
> +/* { dg-require-effective-target mempcpy } */
>  /* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-nochk-string-functions -D_GNU_SOURCE" } */
>  /* { dg-final { scan-tree-dump "mempcpy_nochk" "chkpopt" } } */
>  /* { dg-final { cleanup-tree-dump "chkpopt" } } */
> diff --git a/gcc/testsuite/gcc.target/i386/chkp-stropt-8.c b/gcc/testsuite/gcc.target/i386/chkp-stropt-8.c
> index 8c3b15d..6d6d55e 100644
> --- a/gcc/testsuite/gcc.target/i386/chkp-stropt-8.c
> +++ b/gcc/testsuite/gcc.target/i386/chkp-stropt-8.c
> @@ -1,5 +1,6 @@
>  /* { dg-do compile } */
>  /* { dg-require-effective-target mpx } */
> +/* { dg-require-effective-target mempcpy } */
>  /* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-fast-string-functions -D_GNU_SOURCE" } */
>  /* { dg-final { scan-tree-dump "mempcpy_nobnd" "chkpopt" } } */
>  /* { dg-final { cleanup-tree-dump "chkpopt" } } */



More information about the Gcc-patches mailing list