This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: INSTALL_ASSERT_H
- To: Russ Allbery <rra at stanford dot edu>
- Subject: Re: INSTALL_ASSERT_H
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 3 May 2001 06:00:09 +0100 (BST)
- cc: <gcc at gcc dot gnu dot org>
On 2 May 2001, Russ Allbery wrote:
> Is compliance with the C99 requirements for assert() gcc's problem or the
> system library's problem? (C99 adds over C89 the requirement that the
> function name also be in the assertion message.)
The system library's. GCC only needs to provide those headers required of
freestanding implementations, and <assert.h> isn't one of them.
(<stdint.h> is a header GCC needs to provide, but currently doesn't - and
one which will need to interact sensibly with the <inttypes.h> header on
Solaris, which is based on an old C9X draft before <stdint.h> (required of
freestanding implementations) was split off from <inttypes.h> (only
required for hosted implementations).)
--
Joseph S. Myers
jsm28@cam.ac.uk