From 37eb01c282b2b764ab6dc6159d3deab121e0686f Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Thu, 13 Feb 2014 09:22:26 +0000 Subject: [PATCH] pr59605.c: Convert to a compile test. gcc/testsuite/ * gcc.dg/pr59605.c: Convert to a compile test. Protect MAX_COPY definition with an ifndef. * gcc.dg/pr59605-2.c: New test. From-SVN: r207748 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/pr59605-2.c | 6 ++++++ gcc/testsuite/gcc.dg/pr59605.c | 4 +++- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/gcc.dg/pr59605-2.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 07e068456b70..803207cfc645 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2014-02-13 Richard Sandiford + + * gcc.dg/pr59605.c: Convert to a compile test. Protect MAX_COPY + definition with an ifndef. + * gcc.dg/pr59605-2.c: New test. + 2014-02-13 Richard Sandiford * gcc.dg/gomp/simd-clones-5.c: Update comment for new warning message. diff --git a/gcc/testsuite/gcc.dg/pr59605-2.c b/gcc/testsuite/gcc.dg/pr59605-2.c new file mode 100644 index 000000000000..d7567accf5de --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr59605-2.c @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-options "-O2" } */ +/* { dg-additional-options "-DMAX_COPY=1025" { target simulator } } */ +/* { dg-additional-options "-minline-stringops-dynamically" { target { i?86-*-* x86_64-*-* } } } */ + +#include "pr59605.c" diff --git a/gcc/testsuite/gcc.dg/pr59605.c b/gcc/testsuite/gcc.dg/pr59605.c index 45568438277a..5f87c99b0176 100644 --- a/gcc/testsuite/gcc.dg/pr59605.c +++ b/gcc/testsuite/gcc.dg/pr59605.c @@ -1,11 +1,13 @@ -/* { dg-do run } */ +/* { dg-do compile } */ /* { dg-options "-O2" } */ /* { dg-additional-options "-minline-stringops-dynamically" { target { i?86-*-* x86_64-*-* } } } */ extern void abort (void); #define MAX_OFFSET (sizeof (long long)) +#ifndef MAX_COPY #define MAX_COPY (1024 + 8192) +#endif #define MAX_EXTRA (sizeof (long long)) #define MAX_LENGTH (MAX_OFFSET + MAX_COPY + MAX_EXTRA) -- 2.47.3