glibc and gcc3

Joseph S. Myers jsm28@cam.ac.uk
Tue May 4 02:47:00 GMT 1999


A few places in glibc 2.1.1pre2 use __GNUC_MINOR__ in a way that will
break if we get gcc 3.0 with __GNUC__ == 3 && __GNUC_MINOR__ == 0.

argp/argp.h:#  if defined __GNUC__ && defined __cplusplus && __GNUC_MINOR__ >= 8
assert/assert.h:     __GNUC_MINOR__ < (defined __cplusplus ? 6 : 4))
misc/sys/cdefs.h:# if defined __cplusplus && __GNUC_MINOR__ >= 8
posix/sys/types.h:#if !defined __GNUC__ || __GNUC__ < 2 || __GNUC_MINOR__ < 7

All other occurances of __GNUC_MINOR__ in the source tree look OK, except
for a dubious one (only relevant if __NeXT__) in <obstack.h>.

-- 
Joseph S. Myers
jsm28@cam.ac.uk




More information about the Libc-alpha mailing list