mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 02:03:03 +00:00
(alloca) [__hpux]: Always define as __builtin_alloca.
This commit is contained in:
16
bison.simple
16
bison.simple
@@ -44,21 +44,9 @@
|
|||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#pragma alloca
|
#pragma alloca
|
||||||
#else /* not MSDOS, or __TURBOC__, or _AIX */
|
#else /* not MSDOS, or __TURBOC__, or _AIX */
|
||||||
#ifdef __hpux /* This is right for HPUX 10. */
|
#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9 and 10. */
|
||||||
#include <alloca.h>
|
#define alloca __builtin_alloca
|
||||||
#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 */
|
|
||||||
#endif /* __hpux */
|
#endif /* __hpux */
|
||||||
#endif /* 0 */
|
|
||||||
#endif /* not _AIX */
|
#endif /* not _AIX */
|
||||||
#endif /* not MSDOS, or __TURBOC__ */
|
#endif /* not MSDOS, or __TURBOC__ */
|
||||||
#endif /* not sparc. */
|
#endif /* not sparc. */
|
||||||
|
|||||||
16
src/bison.s1
16
src/bison.s1
@@ -44,21 +44,9 @@
|
|||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#pragma alloca
|
#pragma alloca
|
||||||
#else /* not MSDOS, or __TURBOC__, or _AIX */
|
#else /* not MSDOS, or __TURBOC__, or _AIX */
|
||||||
#ifdef __hpux /* This is right for HPUX 10. */
|
#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9 and 10. */
|
||||||
#include <alloca.h>
|
#define alloca __builtin_alloca
|
||||||
#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 */
|
|
||||||
#endif /* __hpux */
|
#endif /* __hpux */
|
||||||
#endif /* 0 */
|
|
||||||
#endif /* not _AIX */
|
#endif /* not _AIX */
|
||||||
#endif /* not MSDOS, or __TURBOC__ */
|
#endif /* not MSDOS, or __TURBOC__ */
|
||||||
#endif /* not sparc. */
|
#endif /* not sparc. */
|
||||||
|
|||||||
@@ -44,21 +44,9 @@
|
|||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#pragma alloca
|
#pragma alloca
|
||||||
#else /* not MSDOS, or __TURBOC__, or _AIX */
|
#else /* not MSDOS, or __TURBOC__, or _AIX */
|
||||||
#ifdef __hpux /* This is right for HPUX 10. */
|
#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9 and 10. */
|
||||||
#include <alloca.h>
|
#define alloca __builtin_alloca
|
||||||
#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 */
|
|
||||||
#endif /* __hpux */
|
#endif /* __hpux */
|
||||||
#endif /* 0 */
|
|
||||||
#endif /* not _AIX */
|
#endif /* not _AIX */
|
||||||
#endif /* not MSDOS, or __TURBOC__ */
|
#endif /* not MSDOS, or __TURBOC__ */
|
||||||
#endif /* not sparc. */
|
#endif /* not sparc. */
|
||||||
|
|||||||
Reference in New Issue
Block a user