From 3054a9cdfb92ebe0936ac5f1d2254306889ea674 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 23 Apr 1997 18:01:25 +0000 Subject: [PATCH] (alloca) [__hpux]: Always define as __builtin_alloca. --- bison.simple | 16 ++-------------- src/bison.s1 | 16 ++-------------- src/bison.simple | 16 ++-------------- 3 files changed, 6 insertions(+), 42 deletions(-) diff --git a/bison.simple b/bison.simple index e3bcfb6d..d22dec6c 100644 --- a/bison.simple +++ b/bison.simple @@ -44,21 +44,9 @@ #include #pragma alloca #else /* not MSDOS, or __TURBOC__, or _AIX */ -#ifdef __hpux /* This is right for HPUX 10. */ -#include -#endif -#if 0 /* This was right for HPUX 9. - Unfortunately there is no clean way to distinguish. */ -#ifdef __hpux -#ifdef __cplusplus -extern "C" { -void *alloca (unsigned int); -}; -#else /* not __cplusplus */ -void *alloca (); -#endif /* not __cplusplus */ +#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9 and 10. */ +#define alloca __builtin_alloca #endif /* __hpux */ -#endif /* 0 */ #endif /* not _AIX */ #endif /* not MSDOS, or __TURBOC__ */ #endif /* not sparc. */ diff --git a/src/bison.s1 b/src/bison.s1 index e3bcfb6d..d22dec6c 100644 --- a/src/bison.s1 +++ b/src/bison.s1 @@ -44,21 +44,9 @@ #include #pragma alloca #else /* not MSDOS, or __TURBOC__, or _AIX */ -#ifdef __hpux /* This is right for HPUX 10. */ -#include -#endif -#if 0 /* This was right for HPUX 9. - Unfortunately there is no clean way to distinguish. */ -#ifdef __hpux -#ifdef __cplusplus -extern "C" { -void *alloca (unsigned int); -}; -#else /* not __cplusplus */ -void *alloca (); -#endif /* not __cplusplus */ +#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9 and 10. */ +#define alloca __builtin_alloca #endif /* __hpux */ -#endif /* 0 */ #endif /* not _AIX */ #endif /* not MSDOS, or __TURBOC__ */ #endif /* not sparc. */ diff --git a/src/bison.simple b/src/bison.simple index e3bcfb6d..d22dec6c 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -44,21 +44,9 @@ #include #pragma alloca #else /* not MSDOS, or __TURBOC__, or _AIX */ -#ifdef __hpux /* This is right for HPUX 10. */ -#include -#endif -#if 0 /* This was right for HPUX 9. - Unfortunately there is no clean way to distinguish. */ -#ifdef __hpux -#ifdef __cplusplus -extern "C" { -void *alloca (unsigned int); -}; -#else /* not __cplusplus */ -void *alloca (); -#endif /* not __cplusplus */ +#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9 and 10. */ +#define alloca __builtin_alloca #endif /* __hpux */ -#endif /* 0 */ #endif /* not _AIX */ #endif /* not MSDOS, or __TURBOC__ */ #endif /* not sparc. */ -- 2.45.2