(alloca) [__hpux]: Always define as __builtin_alloca.

This commit is contained in:
Richard M. Stallman
1997-04-23 18:01:25 +00:00
parent 009b94d421
commit 3054a9cdfb
3 changed files with 6 additions and 42 deletions

View File

@@ -44,21 +44,9 @@
#include <malloc.h>
#pragma alloca
#else /* not MSDOS, or __TURBOC__, or _AIX */
#ifdef __hpux /* This is right for HPUX 10. */
#include <alloca.h>
#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. */

View File

@@ -44,21 +44,9 @@
#include <malloc.h>
#pragma alloca
#else /* not MSDOS, or __TURBOC__, or _AIX */
#ifdef __hpux /* This is right for HPUX 10. */
#include <alloca.h>
#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. */

View File

@@ -44,21 +44,9 @@
#include <malloc.h>
#pragma alloca
#else /* not MSDOS, or __TURBOC__, or _AIX */
#ifdef __hpux /* This is right for HPUX 10. */
#include <alloca.h>
#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. */