patch for PR 14882 (gcc 3.4.0 won't build with a non-gcc compiler)
Joe Buck
Joe.Buck@synopsys.COM
Wed Apr 7 19:37:00 GMT 2004
Here's a patch to fix PR 14882.
Here's the ChangeLog entry for intl/ChangeLog:
2003-07-07 Joe Buck <jbuck@welsh-buck.org>
* plural.y: don't assume that the inline keyword can be used.
* gettextP.h: likewise.
Here's the patch. Tested by bootstrapping on HP-UX with vendor C compiler.
Crude but effective.
--- intl/plural.y.orig Wed Apr 7 12:24:34 2004
+++ intl/plural.y Wed Apr 7 12:17:25 2004
@@ -54,6 +54,11 @@
%{
/* Prototypes for local functions. */
+
+#ifndef __GNUC__
+#define inline /* nothing: don't inline if the compiler is not GCC */
+#endif
+
static struct expression *new_exp PARAMS ((int nargs, enum operator op,
struct expression * const *args));
static inline struct expression *new_exp_0 PARAMS ((enum operator op));
--- intl/gettextP.h.orig Wed Apr 7 12:24:54 2004
+++ intl/gettextP.h Wed Apr 7 12:18:19 2004
@@ -67,6 +67,11 @@
# include <byteswap.h>
# define SWAP(i) bswap_32 (i)
#else
+
+#ifndef __GNUC__
+#define inline /* nothing: don't inline if the compiler is not GCC */
+#endif
+
static inline nls_uint32
SWAP (i)
nls_uint32 i;
More information about the Gcc-patches
mailing list