bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] feature request: argp()


From: Simon Josefsson
Subject: Re: [Bug-gnulib] feature request: argp()
Date: Sat, 07 Jun 2003 07:35:11 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> Simon Josefsson <address@hidden> writes:
>
>> the problem is that argp does
>> 
>> #ifndef alloca
>> # ifdef __GNUC__
>> #  define alloca __builtin_alloca
>> #  define HAVE_ALLOCA 1
>> # else
>> #  if defined HAVE_ALLOCA_H || defined _LIBC
>> #   include <alloca.h>
>> #  else
>> #   ifdef _AIX
>>  #pragma alloca
>> #   else
>> #    ifndef alloca
>> char *alloca ();
>> #    endif
>> #   endif
>> #  endif
>> # endif
>> #endif
>
> That's clearly bogus, as it has an 'ifndef alloca' nested inside
> an 'ifndef alloca'.  Try replacing this with the code fragment
> recommended in the Autoconf 2.57 documentation.

Will do.

>> and that this alloca() declaration doesn't match the one in stdlib.h
>
> Which operating system is this?  Does it have <alloca.h>?  If so,
> do <alloca.h> and <stdlib.h> disagree about alloca?

It is a standard Debian GNU/Linux box, but the compiler is tcc.  It
seems that tcc uses the standard header files.  So, yes, it has both
alloca.h and stdlib, and alloca.h contains

extern void *alloca (size_t __size) __THROW;

which tcc didn't think match the outcome of the above statement.

I guess the only real problem is the bogs #ifdef block.

Once I get gnulib to compile, I'll take the code from glibc and make
it build standalone within gnulib.





reply via email to

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