On Wed, 16 Apr 2003, Alexandre Julliard wrote:
Log message: Fixed alloca handling the way mingw does it (reported by Vincent BĂ©ron).
#ifndef USE_MSVCRT_PREFIX -static inline void* alloca(MSVCRT(size_t) i) { return _alloca(i); } +# ifdef __GNUC__ +# define _alloca(x) __builtin_alloca((x)) +# define alloca(x) __builtin_alloca((x)) +# endif #endif /* USE_MSVCRT_PREFIX */
If we know it's GNUC, isn't it better to use the alias feature, so we don't run into problems with the macros, like we use to?
"Dimitrie O. Paun" dimi@intelliware.ca writes:
If we know it's GNUC, isn't it better to use the alias feature, so we don't run into problems with the macros, like we use to?
__builtin_alloca is not a normal function, it's a compiler builtin, so it's not possible to make an alias to it.