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) \