From owner-freebsd-current Sun Apr 23 6:45:14 2000 Delivered-To: freebsd-current@freebsd.org Received: from gidora.zeta.org.au (gidora.zeta.org.au [203.26.10.25]) by hub.freebsd.org (Postfix) with SMTP id EE4B037B5E8 for ; Sun, 23 Apr 2000 06:45:10 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: (qmail 401 invoked from network); 23 Apr 2000 13:45:07 -0000 Received: from bde.zeta.org.au (203.2.228.102) by gidora.zeta.org.au with SMTP; 23 Apr 2000 13:45:07 -0000 Date: Sun, 23 Apr 2000 23:45:04 +1000 (EST) From: Bruce Evans X-Sender: bde@alphplex.bde.org To: attila! Cc: freebsd-current@FreeBSD.ORG Subject: Re: __func__ not declared for kernel build (5.0-CURRENT) In-Reply-To: <200004222157.VAA55016@hun.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 22 Apr 2000, attila! wrote: > '__func__ is not found for either the 'GENERIC' or 'hun' target. __func__ is a new feature in C99. It is an alias for the gcc feature __FUNCTION_NAME. Both give the name of the current function as a string. This feature should not be used until C99 becomes Normal, if ever. Using it breaks portability. It apparently even breaks compiling current kernels with the version of gcc in FreeBSD-3.4. I think __func__ was added in egcs (the Changelog entry for adding it in gcc is dated Dec 1 1998). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message