diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 18 | ||||
-rw-r--r-- | gc.c | 18 |
3 files changed, 25 insertions, 16 deletions
@@ -1,3 +1,8 @@ +Sat Oct 26 04:36:01 2002 Akinori MUSHA <knu@iDaemons.org> + + * eval.c, gc.c: use a common set of alloca() #ifdef's. This fixes + the build with Intel C Compiler for Linux. + Tue Oct 22 18:15:49 2002 Guy Decoux <ts@moulon.inra.fr> * eval.c (rb_eval): local_vars[-1] should protect body, not a @@ -35,17 +35,19 @@ # endif # endif /* atarist */ #else -# if defined(HAVE_ALLOCA_H) +# ifdef HAVE_ALLOCA_H # include <alloca.h> -# elif !defined(alloca) -char *alloca(); -# endif +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +void *alloca (); +# endif +# endif /* AIX */ +# endif /* HAVE_ALLOCA_H */ #endif /* __GNUC__ */ -#ifdef _AIX -#pragma alloca -#endif - #ifdef HAVE_STDARG_PROTOTYPES #include <stdarg.h> #define va_init_list(a,b) va_start(a,b) @@ -36,17 +36,19 @@ void rb_io_fptr_finalize _((struct OpenFile*)); # endif # endif /* atarist */ #else -# if defined(HAVE_ALLOCA_H) +# ifdef HAVE_ALLOCA_H # include <alloca.h> -# elif !defined(alloca) -void *alloca(); -# endif +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +void *alloca (); +# endif +# endif /* AIX */ +# endif /* HAVE_ALLOCA_H */ #endif /* __GNUC__ */ -#ifdef _AIX -#pragma alloca -#endif - static void run_final(); #ifndef GC_MALLOC_LIMIT |