0e1a375bd4
an upstream commit. PR pkg/53402, PR pkg/53403, PR pkg/53404, PR pkg/53231
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
$NetBSD: patch-gcc_cp_cfns.gperf,v 1.1 2018/06/27 10:07:08 maya Exp $
|
|
|
|
Backport upstream commit to fix build with newer GCC
|
|
|
|
2016-02-19 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
Bernd Edlinger <bernd.edlinger@hotmail.de>
|
|
|
|
* Make-lang.in: Invoke gperf with -L C++.
|
|
* cfns.gperf: Remove prototypes for hash and libc_name_p
|
|
inlines.
|
|
* cfns.h: Regenerated.
|
|
* except.c (nothrow_libfn_p): Adjust.
|
|
|
|
--- gcc/cp/cfns.gperf.orig 2013-01-10 20:38:27.000000000 +0000
|
|
+++ gcc/cp/cfns.gperf
|
|
@@ -1,3 +1,5 @@
|
|
+%language=C++
|
|
+%define class-name libc_name
|
|
%{
|
|
/* Copyright (C) 2000-2013 Free Software Foundation, Inc.
|
|
|
|
@@ -16,14 +18,6 @@ for more details.
|
|
You should have received a copy of the GNU General Public License
|
|
along with GCC; see the file COPYING3. If not see
|
|
<http://www.gnu.org/licenses/>. */
|
|
-#ifdef __GNUC__
|
|
-__inline
|
|
-#endif
|
|
-static unsigned int hash (const char *, unsigned int);
|
|
-#ifdef __GNUC__
|
|
-__inline
|
|
-#endif
|
|
-const char * libc_name_p (const char *, unsigned int);
|
|
%}
|
|
%%
|
|
# The standard C library functions, for feeding to gperf; the result is used
|