Subject: __extension__ not actually present in gcc2.7.2.2?
To: None <kleink@netbsd.org>
From: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
List: tech-toolchain
Date: 02/23/1999 09:01:14
Klaus Klein just committed a change to if_arp.h to use __extension__
in if_arp.h; when attempting to compile a kernel on a shark with
2.7.2.2+myc1, this blew up.  (Yeah, I know, I should be using egcs,
but i figured I might as well report this before I attempt to upgrade...)

revision 1.15
date: 1999/02/21 17:35:17;  author: kleink;  state: Exp;  lines: +2 -1
Zero-sized arrays are a GNU C extension; from Dave Sainty in PR kern/6271.

The comment in sys/cdefs.h says:

/*
 * GCC2 provides __extension__ to suppress warnings for various GNU C
 * language extensions under "-ansi -pedantic".
 */
#if !defined(__GNUC__) || __GNUC__ < 2
#define	__extension__		/* delete __extension__ if non-gcc or gcc1 */
#endif

I can't get the arm32 gcc 2.7.2.2 compiler to accept __extension__,
which suggests that this comment isn't quite right...

					- Bill