From 1a2a0b604457d4920151a4f8d0712430438fe8dc Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Mon, 8 Oct 2018 10:59:36 +0000 Subject: [PATCH] Require constructor priority support in c-c++-common/Wprio-ctor-dtor.c * c-c++-common/Wprio-ctor-dtor.c: Require init_priority support. From-SVN: r264917 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/c-c++-common/Wprio-ctor-dtor.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 021235ee336..dd4852f3ea9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-10-08 Rainer Orth + + * c-c++-common/Wprio-ctor-dtor.c: Require init_priority support. + 2018-10-08 Martin Liska * g++.dg/ext/pr82625.C: Add dg-compile filter. diff --git a/gcc/testsuite/c-c++-common/Wprio-ctor-dtor.c b/gcc/testsuite/c-c++-common/Wprio-ctor-dtor.c index 5b08059f3fa..9da7254cc6b 100644 --- a/gcc/testsuite/c-c++-common/Wprio-ctor-dtor.c +++ b/gcc/testsuite/c-c++-common/Wprio-ctor-dtor.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target init_priority } */ /* { dg-options "-Wno-prio-ctor-dtor" } */ void construct1 () __attribute__ ((constructor (10))); -- 2.30.2