From 4c71819dda4507e9b06bc8fa61945136cb63550a Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Mon, 27 Nov 2017 17:29:06 +0000 Subject: [PATCH] hash-set.h (DEFINE_DEBUG_HASH_SET): Remove static qualifier from explicit instantiation of debug_helper. * hash-set.h (DEFINE_DEBUG_HASH_SET): Remove static qualifier from explicit instantiation of debug_helper. * vec.h (DEFINE_DEBUG_VEC): Ditto. From-SVN: r255175 --- gcc/ChangeLog | 6 ++++++ gcc/hash-set.h | 2 +- gcc/vec.h | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b376ab8d5c6..0e6e5d091c3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-11-27 Gerald Pfeifer + + * hash-set.h (DEFINE_DEBUG_HASH_SET): Remove static qualifier + from explicit instantiation of debug_helper. + * vec.h (DEFINE_DEBUG_VEC): Ditto. + 2017-11-27 Richard Biener * gimple-fold.c (gimple_fold_builtin_memory_op): Remove dead code, diff --git a/gcc/hash-set.h b/gcc/hash-set.h index 75ca1475e0d..8b83f6ae99b 100644 --- a/gcc/hash-set.h +++ b/gcc/hash-set.h @@ -150,7 +150,7 @@ debug_helper (hash_set &ref) } #define DEFINE_DEBUG_HASH_SET(T) \ - template static void debug_helper (hash_set &); \ + template void debug_helper (hash_set &); \ DEBUG_FUNCTION void \ debug (hash_set &ref) \ { \ diff --git a/gcc/vec.h b/gcc/vec.h index b145eef2bc7..f55a41f53dd 100644 --- a/gcc/vec.h +++ b/gcc/vec.h @@ -453,8 +453,8 @@ debug_helper (vec &ref) functions for a type T. */ #define DEFINE_DEBUG_VEC(T) \ - template static void debug_helper (vec &); \ - template static void debug_helper (vec &); \ + template void debug_helper (vec &); \ + template void debug_helper (vec &); \ /* Define the vec debug functions. */ \ DEBUG_FUNCTION void \ debug (vec &ref) \ -- 2.30.2