From: uros Date: Mon, 13 Jun 2016 14:27:01 +0000 (+0000) Subject: * ggc-tests.c (test_finalization): Only test need_finalization_p X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=60c6a5a6098d3d7568da5fd629f93b17814b6ed9;p=thirdparty%2Fgcc.git * ggc-tests.c (test_finalization): Only test need_finalization_p for GCC_VERSION >= 4003. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237381 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0e1baea5ca22..2d8b42bb365d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-06-13 Uros Bizjak + + * ggc-tests.c (test_finalization): Only test need_finalization_p + for GCC_VERSION >= 4003. + 2016-06-13 Andreas Krebbel * config/s390/vecintrin.h: Fix file description in comment. diff --git a/gcc/ggc-tests.c b/gcc/ggc-tests.c index 48eac03103b3..7f9723149810 100644 --- a/gcc/ggc-tests.c +++ b/gcc/ggc-tests.c @@ -190,8 +190,10 @@ int test_struct_with_dtor::dtor_call_count; static void test_finalization () { +#if GCC_VERSION >= 4003 ASSERT_FALSE (need_finalization_p ()); ASSERT_TRUE (need_finalization_p ()); +#endif /* Create some garbage. */ const int count = 10;