INSTALL_ASSERT_H

Joseph S. Myers jsm28@cam.ac.uk
Wed May 2 22:00:00 GMT 2001


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



More information about the Gcc mailing list