This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [testsuite] Add missing dg-require-effective-target alloca to gcc testsuite


On 23/03/17 18:25, Mike Stump wrote:
On Mar 23, 2017, at 8:46 AM, Tom de Vries <Tom_deVries@mentor.com> wrote:

I've run the gcc testsuite for target nvptx-none and ran into "test for excess errors" FAILs due to:
...
sorry, unimplemented: target cannot support alloca.

We'd encourage ports to support alloca.  :-)

OK for trunk for stage1?

Ok.  Ok for release branches and trunk as well, if you want.  I'd recommend trunk, if your port is meant to work and test out nicely in gcc 7.


Committed to trunk.

Likewise, committed these 3 patches for effective target keywords nonlocal_goto, indirect_jump and global_constructor.

Thanks,
- Tom
Require effective target nonlocal_goto in pr79244.c

2017-03-23  Tom de Vries  <tom@codesourcery.com>

	PR testsuite/80092
	* gcc.dg/torture/pr79244.c: Add dg-require-effective-target
	nonlocal_goto.

---
 gcc/testsuite/gcc.dg/torture/pr79244.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.dg/torture/pr79244.c b/gcc/testsuite/gcc.dg/torture/pr79244.c
index 05143cd..3f983c0 100644
--- a/gcc/testsuite/gcc.dg/torture/pr79244.c
+++ b/gcc/testsuite/gcc.dg/torture/pr79244.c
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target nonlocal_goto } */
 
 long buf[5];
 int bar (void);
Require effective target indirect_jump in Wimplicit-fallthrough-34.c

2017-03-23  Tom de Vries  <tom@codesourcery.com>

	PR testsuite/80092
	* c-c++-common/Wimplicit-fallthrough-34.c: Add
	dg-require-effective-target indirect_jumps.

---
 gcc/testsuite/c-c++-common/Wimplicit-fallthrough-34.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-34.c b/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-34.c
index 9168c52..e0b5350 100644
--- a/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-34.c
+++ b/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-34.c
@@ -1,5 +1,6 @@
 /* PR c/77946 */
 /* { dg-do compile } */
+/* { dg-require-effective-target indirect_jumps } */
 /* { dg-options "-Wimplicit-fallthrough" } */
 
 void
Require effective target global_constructor for two testcases

2017-03-23  Tom de Vries  <tom@codesourcery.com>

	PR testsuite/80092
	* gcc.dg/no_profile_instrument_function-attr-1.c: Add
	dg-require-effective-target global_constructor.
	* gcc.dg/tls/emutls-2.c: Same.

---
 gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c | 1 +
 gcc/testsuite/gcc.dg/tls/emutls-2.c                          | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c b/gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c
index f7afb34..0f04fb1 100644
--- a/gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c
+++ b/gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target global_constructor } */
 /* { dg-options "-O2 -fprofile-generate -fprofile-update=single -fdump-tree-optimized" } */
 
 __attribute__ ((no_profile_instrument_function))
diff --git a/gcc/testsuite/gcc.dg/tls/emutls-2.c b/gcc/testsuite/gcc.dg/tls/emutls-2.c
index 1e26d5f..3b94dc7 100644
--- a/gcc/testsuite/gcc.dg/tls/emutls-2.c
+++ b/gcc/testsuite/gcc.dg/tls/emutls-2.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target tls } */
+/* { dg-require-effective-target global_constructor } */
 /* { dg-options "-O2" } */
 
 /* With emulated TLS, the constructor generated during IPA

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]