This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: INSTALL_ASSERT_H


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]