Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2000 23:45:04 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        attila! <attila@hun.org>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: __func__ not declared for kernel build (5.0-CURRENT)
Message-ID:  <Pine.BSF.4.21.0004232323020.2928-100000@alphplex.bde.org>
In-Reply-To: <200004222157.VAA55016@hun.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0004232323020.2928-100000>