On 07/03/2012 02:56 AM, Joachim Schmitz wrote: > Or rather: we need that prototype before the pragma
OK, in that case we might as well not refactor. I pushed the following instead: --- ChangeLog | 7 +++++++ lib/alloca.in.h | 7 +++++++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/ChangeLog b/ChangeLog index e7f7883..9dda6c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-07-03 Paul Eggert <egg...@cs.ucla.edu> + + alloca: add support for HP NonStop TNS/E native + * lib/alloca.in.h (alloca): Support the new host. + From a suggestion by Joachim Schmitz in + <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>. + 2012-07-02 Pádraig Brady <p...@draigbrady.com> fsusage: remove code not needed on non GNU/Linux systems. diff --git a/lib/alloca.in.h b/lib/alloca.in.h index 99be048..b9f8bbe 100644 --- a/lib/alloca.in.h +++ b/lib/alloca.in.h @@ -44,6 +44,13 @@ # define alloca _alloca # elif defined __DECC && defined __VMS # define alloca __ALLOCA +# elif defined __TANDEM && defined _TNS_E_TARGET +# ifdef __cplusplus +extern "C" +# endif +void *_alloca (unsigned short); +# pragma intrinsic (_alloca) +# define alloca _alloca # else # include <stddef.h> # ifdef __cplusplus -- 1.7.6.5