[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch for gettextP.h, hppa2.0w-hp-hpux11.00, SWAP
From: |
Bruno Haible |
Subject: |
Re: patch for gettextP.h, hppa2.0w-hp-hpux11.00, SWAP |
Date: |
Tue, 16 Dec 2003 20:11:04 +0100 |
User-agent: |
KMail/1.5 |
Michael Elizabeth Chastain wrote:
> Here is what's going on:
>
> gdb 6.0 has an old copy of intl/
> gdb 6.0 also has libiberty/ that was autoconf'ed with autoconf 2.13.
> libiberty/configure is the first configure script to run,
> so it checks for 'inline' and caches the result
> libiberty/configure checks for 'inline'
> libiberty/configure does not check for 'static inline'
> libiberty/configure decides that 'inline' is supported
> later on, intl/gettextP.h uses 'static inline'
... and gdb uses a config.cache file across all directories (whereas the
default in recent autoconfs is to not create a config.cache file; although
it admittedly is slower to check for things several times, it's the only
choice if different subdirectories have configure scripts made with different
versions of autoconf or libtool).
> gcc -std=iso9899:1990 does not allow 'static inline',
> so I think that 'static inline' is not in the standard.
gcc supports either both "inline" and "static inline" or neither:
$ gcc -c -std=iso9899:1990 normal-inline.c static-inline.c
normal-inline.c:1: syntax error before "int"
static-inline.c:1: syntax error before "int"
$ gcc -c -std=iso9899:199409 normal-inline.c static-inline.c
normal-inline.c:1: syntax error before "int"
static-inline.c:1: syntax error before "int"
$ gcc -c -std=iso9899:1999 normal-inline.c static-inline.c
> gdb 6.1 is going to have a new libiberty/configure that checks
> for both 'inline' and 'static inline'. This ought to disallow
> 'inline' on hpux 11.00 with the particular ansi c compiler that
> you have.
See also the autoconf ChangeLog:
2002-03-28 Kevin Ryde <address@hidden>
* lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
to avoid versions of HP C which don't allow that.
2001-02-19 Paul Eggert <address@hidden>
* aclang.m4 (AC_C_INLINE): Define "inline" to empty if the
compiler doesn't support 'static inline'. This is needed for
Encore Umax-3.0.9.16b.
So you see, the difference that matters is the "typedef int foo_t;" in
the newer autoconf.
Bruno
- patch for gettextP.h, hppa2.0w-hp-hpux11.00, SWAP, Michael Elizabeth Chastain, 2003/12/15
- Re: patch for gettextP.h, hppa2.0w-hp-hpux11.00, SWAP, Michael Elizabeth Chastain, 2003/12/16
- Re: patch for gettextP.h, hppa2.0w-hp-hpux11.00, SWAP, Michael Elizabeth Chastain, 2003/12/16
- Re: patch for gettextP.h, hppa2.0w-hp-hpux11.00, SWAP,
Bruno Haible <=
- Re: patch for gettextP.h, hppa2.0w-hp-hpux11.00, SWAP, Michael Elizabeth Chastain, 2003/12/16
- Re: patch for gettextP.h, hppa2.0w-hp-hpux11.00, SWAP, Michael Elizabeth Chastain, 2003/12/16
- Re: patch for gettextP.h, hppa2.0w-hp-hpux11.00, SWAP, Michael Elizabeth Chastain, 2003/12/16