diff mbox

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

Message ID 336349f0-b973-77c0-c5f5-710240312270@mentor.com
State New
Headers show

Commit Message

Tom de Vries March 24, 2017, 6:34 a.m. UTC
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
diff mbox

Patch

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