Reported by Ozkan Sezer <sezeroz@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-05/msg00117.html>.
* m4/visibility.m4 (gl_VISIBILITY): Add a function definition for each
declaration in the test program.
+2021-06-05 Bruno Haible <bruno@clisp.org>
+
+ lib-symbol-visibility: Make configure check work for newer GCC.
+ Reported by Ozkan Sezer <sezeroz@gmail.com> in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2021-05/msg00117.html>.
+ * m4/visibility.m4 (gl_VISIBILITY): Add a function definition for each
+ declaration in the test program.
+
2021-06-05 Bruno Haible <bruno@clisp.org>
vasnprintf: Don't leak memory when memory allocation fails.
-# visibility.m4 serial 7
+# visibility.m4 serial 8
dnl Copyright (C) 2005, 2008, 2010-2021 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
extern __attribute__((__visibility__("default"))) int exportedfunc (void);
void dummyfunc (void);
+ int hiddenvar;
+ int exportedvar;
+ int hiddenfunc (void) { return 51; }
+ int exportedfunc (void) { return 1225736919; }
void dummyfunc (void) {}
]],
[[]])],