From ea4ea7d7c6690089a67ad48a3f9f867f54fbf826 Mon Sep 17 00:00:00 2001 From: ro Date: Sat, 17 Jun 2017 15:32:28 +0000 Subject: Get rid of dg-skip-if etc. default args libstdc++-v3: * testsuite: Remove dg-skip-if, dg-xfail-if, dg-xfail-run-if default args. libgomp: * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if default args. * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove dg-xfail-run-if default args. gcc/testsuite: Remove dg-skip-if, dg-xfail-if, dg-xfail-run-if default args. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249339 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/gcc.c-torture/compile/20000804-1.c | 6 +++--- gcc/testsuite/gcc.c-torture/compile/20001226-1.c | 6 +++--- gcc/testsuite/gcc.c-torture/compile/20060208-1.c | 2 +- gcc/testsuite/gcc.c-torture/compile/20080721-1.c | 2 +- gcc/testsuite/gcc.c-torture/compile/920520-1.c | 2 +- gcc/testsuite/gcc.c-torture/compile/980506-1.c | 2 +- gcc/testsuite/gcc.c-torture/compile/limits-externdecl.c | 2 +- gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c | 4 ++-- gcc/testsuite/gcc.c-torture/compile/limits-stringlit.c | 2 +- gcc/testsuite/gcc.c-torture/compile/pr35318.c | 2 +- gcc/testsuite/gcc.c-torture/compile/pr41181.c | 2 +- gcc/testsuite/gcc.c-torture/compile/pr46534.c | 2 +- 12 files changed, 17 insertions(+), 17 deletions(-) (limited to 'gcc/testsuite/gcc.c-torture/compile') diff --git a/gcc/testsuite/gcc.c-torture/compile/20000804-1.c b/gcc/testsuite/gcc.c-torture/compile/20000804-1.c index 38e42be2040..5c6b7311c25 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20000804-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20000804-1.c @@ -1,10 +1,10 @@ /* This does not work on h8300 due to the use of an asm statement to force a 'long long' (64-bits) to go in a register. */ /* { dg-do assemble } */ -/* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && { ia32 && { ! nonpic } } } { "*" } { "" } } */ -/* { dg-skip-if "No 64-bit registers" { m32c-*-* } { "*" } { "" } } */ +/* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && { ia32 && { ! nonpic } } } } */ +/* { dg-skip-if "No 64-bit registers" { m32c-*-* } } */ /* { dg-skip-if "Not enough 64-bit registers" { pdp11-*-* } { "-O0" } { "" } } */ -/* { dg-xfail-if "" { h8300-*-* } { "*" } { "" } } */ +/* { dg-xfail-if "" { h8300-*-* } } */ /* Copyright (C) 2000, 2003 Free Software Foundation */ __complex__ long long f () diff --git a/gcc/testsuite/gcc.c-torture/compile/20001226-1.c b/gcc/testsuite/gcc.c-torture/compile/20001226-1.c index 687b43a6bcb..be0bdcf7631 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20001226-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20001226-1.c @@ -1,8 +1,8 @@ /* { dg-do assemble } */ -/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */ -/* { dg-skip-if "too much code for pdp11" { "pdp11-*-*" } { "*" } { "" } } */ +/* { dg-skip-if "too much code for avr" { "avr-*-*" } } */ +/* { dg-skip-if "too much code for pdp11" { "pdp11-*-*" } } */ /* { dg-xfail-if "PR36698" { spu-*-* } { "-O0" } { "" } } */ -/* { dg-skip-if "" { m32c-*-* } { "*" } { "" } } */ +/* { dg-skip-if "" { m32c-*-* } } */ /* { dg-timeout-factor 4.0 } */ /* This testcase exposed two branch shortening bugs on powerpc. */ diff --git a/gcc/testsuite/gcc.c-torture/compile/20060208-1.c b/gcc/testsuite/gcc.c-torture/compile/20060208-1.c index 18724fb3ebe..3881474f722 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20060208-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20060208-1.c @@ -1,5 +1,5 @@ /* PR middle-end/26092 */ -/* { dg-skip-if "can't take address of malloc" { nvptx-*-* } { "*" } { "" } } */ +/* { dg-skip-if "can't take address of malloc" { nvptx-*-* } } */ typedef __SIZE_TYPE__ size_t; extern void *malloc (size_t); diff --git a/gcc/testsuite/gcc.c-torture/compile/20080721-1.c b/gcc/testsuite/gcc.c-torture/compile/20080721-1.c index 6ee9ed95b93..6c928f55ca1 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20080721-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20080721-1.c @@ -1,4 +1,4 @@ -/* { dg-skip-if "can't read function data" { nvptx-*-* } { "*" } { "" } } */ +/* { dg-skip-if "can't read function data" { nvptx-*-* } } */ void foo(void); void bar(void); diff --git a/gcc/testsuite/gcc.c-torture/compile/920520-1.c b/gcc/testsuite/gcc.c-torture/compile/920520-1.c index 7dce4118519..037102ee55c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920520-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920520-1.c @@ -1,4 +1,4 @@ /* { dg-do compile } */ -/* { dg-skip-if "" { pdp11-*-* } { "*" } { "" } } */ +/* { dg-skip-if "" { pdp11-*-* } } */ f(){asm("%0"::"r"(1.5F));}g(){asm("%0"::"r"(1.5));} diff --git a/gcc/testsuite/gcc.c-torture/compile/980506-1.c b/gcc/testsuite/gcc.c-torture/compile/980506-1.c index 0f46e17e5cb..3653372a489 100644 --- a/gcc/testsuite/gcc.c-torture/compile/980506-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/980506-1.c @@ -1,7 +1,7 @@ /* The arrays are too large for the xstormy16 - won't fit in 16 bits. */ /* { dg-do assemble } */ /* { dg-require-effective-target size32plus } */ -/* { dg-skip-if "Array too big" { "avr-*-*" } { "*" } { "" } } */ +/* { dg-skip-if "Array too big" { "avr-*-*" } } */ /* { dg-xfail-if "The array too big" { h8300-*-* } { "-mno-h" "-mn" } { "" } } */ unsigned char TIFFFax2DMode[20][256]; diff --git a/gcc/testsuite/gcc.c-torture/compile/limits-externdecl.c b/gcc/testsuite/gcc.c-torture/compile/limits-externdecl.c index f131eea3cf1..c2338491b4f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/limits-externdecl.c +++ b/gcc/testsuite/gcc.c-torture/compile/limits-externdecl.c @@ -1,4 +1,4 @@ -/* { dg-skip-if "ptxas runs out of memory" { nvptx-*-* } { "*" } { "" } } */ +/* { dg-skip-if "ptxas runs out of memory" { nvptx-*-* } } */ /* { dg-require-effective-target int32plus } */ /* Inspired by the test case for PR middle-end/52640. */ diff --git a/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c b/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c index 228c5d9ef29..0bd8f6af995 100644 --- a/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c +++ b/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c @@ -1,5 +1,5 @@ -/* { dg-skip-if "too complex for avr" { avr-*-* } { "*" } { "" } } */ -/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "*" } { "" } } */ +/* { dg-skip-if "too complex for avr" { avr-*-* } } */ +/* { dg-skip-if "ptxas times out" { nvptx-*-* } } */ /* { dg-timeout-factor 4.0 } */ #define LIM1(x) x##0, x##1, x##2, x##3, x##4, x##5, x##6, x##7, x##8, x##9, #define LIM2(x) LIM1(x##0) LIM1(x##1) LIM1(x##2) LIM1(x##3) LIM1(x##4) \ diff --git a/gcc/testsuite/gcc.c-torture/compile/limits-stringlit.c b/gcc/testsuite/gcc.c-torture/compile/limits-stringlit.c index 56188d86a69..0828fc35aef 100644 --- a/gcc/testsuite/gcc.c-torture/compile/limits-stringlit.c +++ b/gcc/testsuite/gcc.c-torture/compile/limits-stringlit.c @@ -1,4 +1,4 @@ -/* { dg-skip-if "Array too big" { avr-*-* m32c-*-* pdp11-*-* msp430-*-* } { "*" } { "" } } */ +/* { dg-skip-if "Array too big" { avr-*-* m32c-*-* pdp11-*-* msp430-*-* } } */ #define STR2 "012345678901234567890123456789012345678901234567890123456789\ 0123456789012345678901234567890123456789" diff --git a/gcc/testsuite/gcc.c-torture/compile/pr35318.c b/gcc/testsuite/gcc.c-torture/compile/pr35318.c index 6837d2d83a2..97a1c8761fb 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr35318.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr35318.c @@ -1,4 +1,4 @@ -/* { dg-skip-if "" { pdp11-*-* } { "*" } { "" } } */ +/* { dg-skip-if "" { pdp11-*-* } } */ /* PR target/35318 */ void diff --git a/gcc/testsuite/gcc.c-torture/compile/pr41181.c b/gcc/testsuite/gcc.c-torture/compile/pr41181.c index e1e48063a94..f866249b605 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr41181.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr41181.c @@ -1,5 +1,5 @@ /* { dg-require-effective-target ptr32plus } */ -/* { dg-skip-if "The array is too big" { "avr-*-*" "pdp11-*-*" } { "*" } { "" } } */ +/* { dg-skip-if "The array is too big" { "avr-*-*" "pdp11-*-*" } } */ char paths[1024]; static void x264_slicetype_path(char (*best_paths)[250], int n, int length) { diff --git a/gcc/testsuite/gcc.c-torture/compile/pr46534.c b/gcc/testsuite/gcc.c-torture/compile/pr46534.c index 8300ca7f2cf..885aa6d61b3 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr46534.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr46534.c @@ -1,4 +1,4 @@ -/* { dg-skip-if "too big" { avr-*-* nvptx-*-* pdp11-*-* } { "*" } { "" } } */ +/* { dg-skip-if "too big" { avr-*-* nvptx-*-* pdp11-*-* } } */ /* PR middle-end/46534 */ extern int printf (const char *, ...); -- cgit v1.2.1 From e9ae1020ca4c28ade8ea72153c6bf2a73d12762a Mon Sep 17 00:00:00 2001 From: vries Date: Wed, 21 Jun 2017 09:10:16 +0000 Subject: Add dg-add-options feature stack_size 2017-06-21 Tom de Vries * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add stack_size feature. (Effective-Target Keywords, Other attributes): Suggest using dg-add-options stack_size feature to get stack limit in stack_size effective target documentation. * lib/target-supports.exp (add_options_for_stack_size): New proc. * gcc.c-torture/execute/920501-7.c: Use dg-add-options stack_size. * gcc.c-torture/compile/20080806-1.c: Same. * gcc.c-torture/compile/920723-1.c: Same. * gcc.c-torture/compile/930621-1.c: Same. * gcc.c-torture/compile/991214-2.c: Same. * gcc.c-torture/compile/bcopy.c: Same. * gcc.c-torture/compile/memtst.c: Same. * gcc.c-torture/compile/msp.c: Same. * gcc.c-torture/compile/stuct.c: Same. * gcc.c-torture/execute/20011008-3.c: Same. * gcc.c-torture/execute/20030209-1.c: Same. * gcc.c-torture/execute/20031012-1.c: Same. * gcc.c-torture/execute/20040805-1.c: Same. * gcc.c-torture/execute/920410-1.c: Same. * gcc.c-torture/execute/921113-1.c: Same. * gcc.c-torture/execute/921202-1.c: Same. * gcc.c-torture/execute/921208-2.c: Same. * gcc.c-torture/execute/930106-1.c: Same. * gcc.c-torture/execute/930406-1.c: Same. * gcc.c-torture/execute/950221-1.c: Same. * gcc.c-torture/execute/960521-1.c: Same. * gcc.c-torture/execute/980605-1.c: Same. * gcc.c-torture/execute/comp-goto-1.c: Same. * gcc.c-torture/execute/comp-goto-2.c: Same. * gcc.c-torture/execute/memcpy-1.c: Same. * gcc.c-torture/execute/multi-ix.c: Same. * gcc.c-torture/execute/nestfunc-4.c: Same. * gcc.c-torture/execute/pr20621-1.c: Same. * gcc.c-torture/execute/pr23135.c: Same. * gcc.c-torture/execute/pr28982b.c: Same. * gcc.dg/loop-3.c: Same. * gcc.dg/struct-ret-3.c: Same. * gcc.dg/torture/stackalign/comp-goto-1.c: Same. * gcc.dg/torture/stackalign/non-local-goto-4.c: Same. * gcc.dg/tree-prof/comp-goto-1.c: Same. * gcc.dg/tree-prof/pr44777.c: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249440 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/gcc.c-torture/compile/20080806-1.c | 2 +- gcc/testsuite/gcc.c-torture/compile/920723-1.c | 2 +- gcc/testsuite/gcc.c-torture/compile/930621-1.c | 2 +- gcc/testsuite/gcc.c-torture/compile/991214-2.c | 2 +- gcc/testsuite/gcc.c-torture/compile/bcopy.c | 2 +- gcc/testsuite/gcc.c-torture/compile/memtst.c | 2 +- gcc/testsuite/gcc.c-torture/compile/msp.c | 2 +- gcc/testsuite/gcc.c-torture/compile/stuct.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'gcc/testsuite/gcc.c-torture/compile') diff --git a/gcc/testsuite/gcc.c-torture/compile/20080806-1.c b/gcc/testsuite/gcc.c-torture/compile/20080806-1.c index d0ee9cc2e6c..45f29d1cf11 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20080806-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20080806-1.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-DSTACK_SIZE=[dg-effective-target-value stack_size]" { target { stack_size } } } */ +/* { dg-add-options stack_size } */ /* This used to ICE on s390x due to a reload bug. */ diff --git a/gcc/testsuite/gcc.c-torture/compile/920723-1.c b/gcc/testsuite/gcc.c-torture/compile/920723-1.c index c6351c37261..cd8710be7e8 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920723-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920723-1.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-DSTACK_SIZE=[dg-effective-target-value stack_size]" { target { stack_size } } } */ +/* { dg-add-options stack_size } */ #if defined(STACK_SIZE) && STACK_SIZE < 65536 # define GITT_SIZE 75 diff --git a/gcc/testsuite/gcc.c-torture/compile/930621-1.c b/gcc/testsuite/gcc.c-torture/compile/930621-1.c index 13e997a49cc..ce0f25b173f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930621-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930621-1.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-DSTACK_SIZE=[dg-effective-target-value stack_size]" { target { stack_size } } } */ +/* { dg-add-options stack_size } */ #if defined(STACK_SIZE) && (STACK_SIZE < 65536) # define BYTEMEM_SIZE 10000L diff --git a/gcc/testsuite/gcc.c-torture/compile/991214-2.c b/gcc/testsuite/gcc.c-torture/compile/991214-2.c index 32dad4ff864..79df35713fc 100644 --- a/gcc/testsuite/gcc.c-torture/compile/991214-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/991214-2.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-DSTACK_SIZE=[dg-effective-target-value stack_size]" { target { stack_size } } } */ +/* { dg-add-options stack_size } */ #if defined(STACK_SIZE) && (STACK_SIZE < 65536) # define HISTO_SIZE 9 diff --git a/gcc/testsuite/gcc.c-torture/compile/bcopy.c b/gcc/testsuite/gcc.c-torture/compile/bcopy.c index cb7c05dda01..8108f296600 100644 --- a/gcc/testsuite/gcc.c-torture/compile/bcopy.c +++ b/gcc/testsuite/gcc.c-torture/compile/bcopy.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-DSTACK_SIZE=[dg-effective-target-value stack_size]" { target { stack_size } } } */ +/* { dg-add-options stack_size } */ void bcopy1 (s, d, c) diff --git a/gcc/testsuite/gcc.c-torture/compile/memtst.c b/gcc/testsuite/gcc.c-torture/compile/memtst.c index e165a2297e8..44cdaf8e83a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/memtst.c +++ b/gcc/testsuite/gcc.c-torture/compile/memtst.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-DSTACK_SIZE=[dg-effective-target-value stack_size]" { target { stack_size } } } */ +/* { dg-add-options stack_size } */ #ifdef STACK_SIZE #define SIZE STACK_SIZE / 8 diff --git a/gcc/testsuite/gcc.c-torture/compile/msp.c b/gcc/testsuite/gcc.c-torture/compile/msp.c index 594cecb6721..263a873e264 100644 --- a/gcc/testsuite/gcc.c-torture/compile/msp.c +++ b/gcc/testsuite/gcc.c-torture/compile/msp.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-DSTACK_SIZE=[dg-effective-target-value stack_size]" { target { stack_size } } } */ +/* { dg-add-options stack_size } */ #ifdef STACK_SIZE # define A_SIZE (STACK_SIZE/sizeof(int)) diff --git a/gcc/testsuite/gcc.c-torture/compile/stuct.c b/gcc/testsuite/gcc.c-torture/compile/stuct.c index 59acd571ba6..b70957e9891 100644 --- a/gcc/testsuite/gcc.c-torture/compile/stuct.c +++ b/gcc/testsuite/gcc.c-torture/compile/stuct.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-DSTACK_SIZE=[dg-effective-target-value stack_size]" { target { stack_size } } } */ +/* { dg-add-options stack_size } */ #ifdef STACK_SIZE #define SIZE STACK_SIZE / 8 -- cgit v1.2.1 From a5daa5971c24089f3775a0b048375753fb07b4d4 Mon Sep 17 00:00:00 2001 From: law Date: Thu, 22 Jun 2017 17:18:05 +0000 Subject: * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle frame sizes that do not satisfy aarch64_uimm12_shift. * gcc.c-torture/compile/stack-check-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249566 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/gcc.c-torture/compile/stack-check-1.c | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/stack-check-1.c (limited to 'gcc/testsuite/gcc.c-torture/compile') diff --git a/gcc/testsuite/gcc.c-torture/compile/stack-check-1.c b/gcc/testsuite/gcc.c-torture/compile/stack-check-1.c new file mode 100644 index 00000000000..4058eb58709 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/stack-check-1.c @@ -0,0 +1,2 @@ +/* { dg-additional-options "-fstack-check" } */ +#include "20031023-1.c" -- cgit v1.2.1 From 7321cd714138b995edd266f07062f36624ebe6ed Mon Sep 17 00:00:00 2001 From: law Date: Fri, 23 Jun 2017 14:57:52 +0000 Subject: * gcc.c-torture/compile/stack-check-1.c: Require "untyped_assembly". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249592 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/gcc.c-torture/compile/stack-check-1.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/testsuite/gcc.c-torture/compile') diff --git a/gcc/testsuite/gcc.c-torture/compile/stack-check-1.c b/gcc/testsuite/gcc.c-torture/compile/stack-check-1.c index 4058eb58709..5c99688b35a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/stack-check-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/stack-check-1.c @@ -1,2 +1,3 @@ +/* { dg-require-effective-target untyped_assembly } */ /* { dg-additional-options "-fstack-check" } */ #include "20031023-1.c" -- cgit v1.2.1