aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--configure.in22
-rw-r--r--src/config.in22
3 files changed, 32 insertions, 18 deletions
diff --git a/ChangeLog b/ChangeLog
index 75813c9e7aa..a6b47ed9415 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
12010-11-13 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
12010-11-08 Stefan Monnier <monnier@iro.umontreal.ca> 72010-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * .dir-locals.el (log-edit-mode): Set log-edit-rewrite-fixes. 9 * .dir-locals.el (log-edit-mode): Set log-edit-rewrite-fixes.
diff --git a/configure.in b/configure.in
index ca68db1b83d..b9e183cad3e 100644
--- a/configure.in
+++ b/configure.in
@@ -2927,15 +2927,19 @@ extern char *getenv ();
2927#ifdef HAVE_STDLIB_H 2927#ifdef HAVE_STDLIB_H
2928#include <stdlib.h> 2928#include <stdlib.h>
2929#endif 2929#endif
2930#ifndef __GNUC__ 2930#ifdef HAVE_ALLOCA_H
2931# ifdef HAVE_ALLOCA_H 2931# include <alloca.h>
2932# include <alloca.h> 2932#elif defined __GNUC__
2933# else /* AIX files deal with #pragma. */ 2933# define alloca __builtin_alloca
2934# ifndef alloca /* predefined by HP cc +Olibcalls */ 2934#elif defined _AIX
2935char *alloca (); 2935# define alloca __alloca
2936# endif 2936#else
2937# endif /* HAVE_ALLOCA_H */ 2937# include <stddef.h>
2938#endif /* __GNUC__ */ 2938# ifdef __cplusplus
2939extern "C"
2940# endif
2941void *alloca (size_t);
2942#endif
2939#ifndef HAVE_SIZE_T 2943#ifndef HAVE_SIZE_T
2940typedef unsigned size_t; 2944typedef unsigned size_t;
2941#endif 2945#endif
diff --git a/src/config.in b/src/config.in
index 4667c0feb28..90098719511 100644
--- a/src/config.in
+++ b/src/config.in
@@ -1178,15 +1178,19 @@ extern char *getenv ();
1178#ifdef HAVE_STDLIB_H 1178#ifdef HAVE_STDLIB_H
1179#include <stdlib.h> 1179#include <stdlib.h>
1180#endif 1180#endif
1181#ifndef __GNUC__ 1181#ifdef HAVE_ALLOCA_H
1182# ifdef HAVE_ALLOCA_H 1182# include <alloca.h>
1183# include <alloca.h> 1183#elif defined __GNUC__
1184# else /* AIX files deal with #pragma. */ 1184# define alloca __builtin_alloca
1185# ifndef alloca /* predefined by HP cc +Olibcalls */ 1185#elif defined _AIX
1186char *alloca (); 1186# define alloca __alloca
1187# endif 1187#else
1188# endif /* HAVE_ALLOCA_H */ 1188# include <stddef.h>
1189#endif /* __GNUC__ */ 1189# ifdef __cplusplus
1190extern "C"
1191# endif
1192void *alloca (size_t);
1193#endif
1190#ifndef HAVE_SIZE_T 1194#ifndef HAVE_SIZE_T
1191typedef unsigned size_t; 1195typedef unsigned size_t;
1192#endif 1196#endif