From: Ulrich Drepper Date: Mon, 25 Aug 1997 20:45:52 +0000 (+0000) Subject: Don't define alloca to __alloca since if gcc is used __alloca is not X-Git-Tag: cvs/glibc-2_0_5~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f089c0d61a563808ce49f0d31855da7eb80976f;p=thirdparty%2Fglibc.git Don't define alloca to __alloca since if gcc is used __alloca is not defined to __builtin_alloca and so might not be available. --- diff --git a/stdlib/alloca.h b/stdlib/alloca.h index 07e794c2921..0416d3b9b19 100644 --- a/stdlib/alloca.h +++ b/stdlib/alloca.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1996 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -18,6 +18,7 @@ #ifndef _ALLOCA_H #define _ALLOCA_H 1 + #include #define __need_size_t @@ -34,11 +35,10 @@ extern __ptr_t __alloca __P ((size_t __size)); extern __ptr_t alloca __P ((size_t __size)); #ifdef __GNUC__ -#define __alloca(size) __builtin_alloca(size) +# define __alloca(size) __builtin_alloca (size) +# define alloca(size) __alloca (size) #endif /* GCC. */ -#define alloca(size) __alloca(size) - __END_DECLS #endif /* alloca.h */