alloca: port to compilers that can optimize like GCC 4.6.0
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Jun 2011 22:03:03 +0000 (15:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Jun 2011 22:14:59 +0000 (15:14 -0700)
commitc3dbfe95b16dfd35bba520c1d90275e9622e1a46
treed04f04fe4685cb1af2f7a9eface0518441fe4033
parent3c4ad6125cf33faf3cc090b4232d35f3866b9799
alloca: port to compilers that can optimize like GCC 4.6.0

* lib/alloca.c (find_stack_direction): New signature, taken from
Autoconf git.  This works with GCC 4.6.0.  This code should never
be used with GCC 4.6.0 itself, as GCC has alloca, but it might
be used with other compilers that optimize as well as GCC 4.6.0 does.
(alloca): Adjust to new signature.
* m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
New macro, which patches Autoconf in a similar way.
ChangeLog
lib/alloca.c
m4/alloca.m4