[Top][All Lists]

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

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

From: Bruno Haible
Subject: Re: [bug-gnulib] Re: getdate don't need alloca
Date: Tue, 21 Dec 2004 16:34:54 +0100
User-agent: KMail/1.5

Paul Eggert wrote:
> A couple of other things.  The Bison documentation says that
> YYSTACK_USE_ALLOCA must be defined to 0 if it is defined to anything.

But then the second to fourth line of the following bison output are useless.

#   define YYSTACK_ALLOC alloca
#  endif
# else
#  if defined (alloca) || defined (_ALLOCA_H)
#   define YYSTACK_ALLOC alloca
#  else
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
#   endif
#  endif
# endif

The bison output also supports #define YYSTACK_USE_ALLOCA 1. It'd be
good to fix the bison documentation in this respect.

Without #define YYSTACK_USE_ALLOCA 1 in getdate.y, alloca will not
be used although present, if it's implemented as a function.

> And there's an obsolete comment about AIX and alloca -- we no longer
> use the alloca pragma, so this shouldn't be a problem.

So AIX 3 is not among your porting targets any more? I still have access
to such a machine.


reply via email to

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