Use GCC's internal built-in alloca implementation, when available.
Submitted by: DES
This commit is contained in:
parent
50a7fdaed8
commit
4bf015d562
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116326
@ -142,6 +142,11 @@
|
||||
#define __section(x) __attribute__((__section__(x)))
|
||||
#endif
|
||||
#endif
|
||||
#ifdef __GNUC__
|
||||
#define alloca(sz) __builtin_alloca(sz)
|
||||
#else
|
||||
#error FreeBSD alloca support needed for this compiler
|
||||
#endif
|
||||
|
||||
/* XXX: should use `#if __STDC_VERSION__ < 199901'. */
|
||||
#if !(__GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3)
|
||||
|
Loading…
Reference in New Issue
Block a user