[testsuite] Skip testcase for avr

Message ID 87bn6esfav.fsf@atmel.com
State New
Headers show

Commit Message

Senthil Kumar Selvaraj March 16, 2016, 1:50 p.m.
Hi,

 This trivial patch skips gcc.c-torture/compile/20151204.c for the avr
 target - the test allocates ~64K on the stack, which is too big
 for the avr target. Right now, the test errors out with "total
 size of local objects too large".

 If this is ok, could someone commit please? I don't have commit access.

Regards
Senthil

gcc/testsuite/ChangeLog
2016-03-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

  * gcc.c-torture/compile/20151204.c: Skip for avr.

Comments

Rainer Orth March 16, 2016, 1:59 p.m. | #1
Hi Senthil,

> diff --git a/gcc/testsuite/gcc.c-torture/compile/20151204.c b/gcc/testsuite/gcc.c-torture/compile/20151204.c
> index 036316c..0a60871 100644
> --- a/gcc/testsuite/gcc.c-torture/compile/20151204.c
> +++ b/gcc/testsuite/gcc.c-torture/compile/20151204.c
> @@ -1,3 +1,5 @@
> +/* { dg-skip-if "Array too big" { "avr-*-*" } { "*" } { "" } } */

just one nit: please omit the default args to dg-skip-if, they are
unnecessary.

Thanks.
        Rainer

Patch

diff --git a/gcc/testsuite/gcc.c-torture/compile/20151204.c b/gcc/testsuite/gcc.c-torture/compile/20151204.c
index 036316c..0a60871 100644
--- a/gcc/testsuite/gcc.c-torture/compile/20151204.c
+++ b/gcc/testsuite/gcc.c-torture/compile/20151204.c
@@ -1,3 +1,5 @@ 
+/* { dg-skip-if "Array too big" { "avr-*-*" } { "*" } { "" } } */
+
 typedef __SIZE_TYPE__ size_t;
 
 int strcmp (const char*, const char*);