bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] Re: getdate don't need alloca


From: Paul Eggert
Subject: Re: [bug-gnulib] Re: getdate don't need alloca
Date: Fri, 17 Dec 2004 16:18:37 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Simon Josefsson <address@hidden> writes:

> So could getdate depend on alloca-opt instead of alloca?

Sorry, I don't understand how alloca-opt works.  Doesn't it invoke
AC_FUNC_ALLOCA?  And doesn't that mean that the user must put
$(ALLOCA) into ..._LIBADD?  And won't that break on hosts that don't
have alloca?

Also, with alloca-opt, isn't a program supposed to inspect HAVE_ALLOCA
before attempting to invoke alloca?  The Bison-generated code doesn't
do that; instead, it inspects YYSTACK_USE_ALLOCA, defined (alloca),
defined (_ALLOCA_H), and defined(__GNUC__) to decide whether to use
alloca.  Since it includes <alloca.h>, _ALLOCA_H will be defined, so
it will use alloca, even though alloca doesn't exist.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]