diff options
| author | Dan Nicolaescu | 2010-06-01 19:32:43 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-06-01 19:32:43 -0700 |
| commit | 8923d6176b785c2d800d27960d55a7dec3fed71b (patch) | |
| tree | ce5f502a781c7e2d1d86d5055ddc748ae2099828 | |
| parent | 3aeb940248b61c5506e855bc7c4d57e115d4160d (diff) | |
| download | emacs-8923d6176b785c2d800d27960d55a7dec3fed71b.tar.gz emacs-8923d6176b785c2d800d27960d55a7dec3fed71b.zip | |
Fix alloca definition when using gcc on non-gnu systems.
* configure.in: Use the code sequence indicated by "info autoconf"
for alloca (bug#6170).
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | configure.in | 22 | ||||
| -rw-r--r-- | src/config.in | 22 |
3 files changed, 32 insertions, 18 deletions
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | Fix alloca definition when using gcc on non-gnu systems. | ||
| 4 | * configure.in: Use the code sequence indicated by "info autoconf" | ||
| 5 | for alloca (bug#6170). | ||
| 6 | |||
| 1 | 2010-05-30 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2010-05-30 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * .bzrignore: Ignore new files from trunk, which appear if you use | 9 | * .bzrignore: Ignore new files from trunk, which appear if you use |
diff --git a/configure.in b/configure.in index 9694a91739f..2e31641f25f 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -3604,15 +3604,19 @@ extern char *getenv (); | |||
| 3604 | #ifdef HAVE_STDLIB_H | 3604 | #ifdef HAVE_STDLIB_H |
| 3605 | #include <stdlib.h> | 3605 | #include <stdlib.h> |
| 3606 | #endif | 3606 | #endif |
| 3607 | #ifndef __GNUC__ | 3607 | #ifdef HAVE_ALLOCA_H |
| 3608 | # ifdef HAVE_ALLOCA_H | 3608 | # include <alloca.h> |
| 3609 | # include <alloca.h> | 3609 | #elif defined __GNUC__ |
| 3610 | # else /* AIX files deal with #pragma. */ | 3610 | # define alloca __builtin_alloca |
| 3611 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | 3611 | #elif defined _AIX |
| 3612 | char *alloca (); | 3612 | # define alloca __alloca |
| 3613 | # endif | 3613 | #else |
| 3614 | # endif /* HAVE_ALLOCA_H */ | 3614 | # include <stddef.h> |
| 3615 | #endif /* __GNUC__ */ | 3615 | # ifdef __cplusplus |
| 3616 | extern "C" | ||
| 3617 | # endif | ||
| 3618 | void *alloca (size_t); | ||
| 3619 | #endif | ||
| 3616 | #ifndef HAVE_SIZE_T | 3620 | #ifndef HAVE_SIZE_T |
| 3617 | typedef unsigned size_t; | 3621 | typedef unsigned size_t; |
| 3618 | #endif | 3622 | #endif |
diff --git a/src/config.in b/src/config.in index 9d845027db4..16d788fd7a2 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -1164,15 +1164,19 @@ extern char *getenv (); | |||
| 1164 | #ifdef HAVE_STDLIB_H | 1164 | #ifdef HAVE_STDLIB_H |
| 1165 | #include <stdlib.h> | 1165 | #include <stdlib.h> |
| 1166 | #endif | 1166 | #endif |
| 1167 | #ifndef __GNUC__ | 1167 | #ifdef HAVE_ALLOCA_H |
| 1168 | # ifdef HAVE_ALLOCA_H | 1168 | # include <alloca.h> |
| 1169 | # include <alloca.h> | 1169 | #elif defined __GNUC__ |
| 1170 | # else /* AIX files deal with #pragma. */ | 1170 | # define alloca __builtin_alloca |
| 1171 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | 1171 | #elif defined _AIX |
| 1172 | char *alloca (); | 1172 | # define alloca __alloca |
| 1173 | # endif | 1173 | #else |
| 1174 | # endif /* HAVE_ALLOCA_H */ | 1174 | # include <stddef.h> |
| 1175 | #endif /* __GNUC__ */ | 1175 | # ifdef __cplusplus |
| 1176 | extern "C" | ||
| 1177 | # endif | ||
| 1178 | void *alloca (size_t); | ||
| 1179 | #endif | ||
| 1176 | #ifndef HAVE_SIZE_T | 1180 | #ifndef HAVE_SIZE_T |
| 1177 | typedef unsigned size_t; | 1181 | typedef unsigned size_t; |
| 1178 | #endif | 1182 | #endif |