From: Tom de Vries Date: Thu, 20 Jun 2019 10:37:18 +0000 (+0000) Subject: [testsuite] Add missing dg-require-effective-target global_constructor X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1194e1971ac9ab84b633ee14c5a77f0e475990ab;p=gcc.git [testsuite] Add missing dg-require-effective-target global_constructor Add missing dg-require-effective-target global_constructor. Tested on nvptx. 2019-06-20 Tom de Vries * gcc.dg/pr90866-2.c: Require global_constructor. From-SVN: r272505 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index afab8242d1e..50a0feacbfd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-06-20 Tom de Vries + + * gcc.dg/pr90866-2.c: Require global_constructor. + 2019-06-20 Tom de Vries * gcc.c-torture/compile/pr89280.c: Require nonlocal_goto. diff --git a/gcc/testsuite/gcc.dg/pr90866-2.c b/gcc/testsuite/gcc.dg/pr90866-2.c index 25cb4dc421f..64147996579 100644 --- a/gcc/testsuite/gcc.dg/pr90866-2.c +++ b/gcc/testsuite/gcc.dg/pr90866-2.c @@ -1,6 +1,8 @@ /* PR tree-optimization/90866 - ICE in fold_binary_loc, at fold-const.c:9827 { dg-do compile } - { dg-options "-O2 -fsanitize=thread" } */ + { dg-require-effective-target global_constructor } + { dg-options "-O2 -fsanitize=thread" } + */ typedef enum { a } b; typedef struct {