git: a5c27819344b - main - cdefs: Remove __func__ stub.

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 27 Nov 2023 22:00:47 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=a5c27819344bfcbdf5ae6a430af9c6ca98b0a249

commit a5c27819344bfcbdf5ae6a430af9c6ca98b0a249
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-11-27 18:48:39 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-11-27 21:59:54 +0000

    cdefs: Remove __func__ stub.
    
    Redo 17a238a15fbe. Remove the __func__ crutch for gcc 2.95 and earlier.
    We don't need it today to build the tree (since gcc < 12 is unlikely to
    work). And it's not used in any system header that's part of the
    standard interfaces today (so we don't need it for compatibility). And
    we have other issues that make gcc < 4.2 unlikely to work today with
    system headers.
    
    Sponsored by:           Netflix
---
 sys/sys/cdefs.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index c5b6190077b3..fcc90b4d8aee 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -343,11 +343,6 @@
 #define	__unreachable()	((void)0)
 #endif
 
-/* XXX: should use `#if __STDC_VERSION__ < 199901'. */
-#if !__GNUC_PREREQ__(2, 7)
-#define	__func__	NULL
-#endif
-
 #if (defined(__GNUC__) && __GNUC__ >= 2) && !defined(__STRICT_ANSI__) || __STDC_VERSION__ >= 199901
 #define	__LONG_LONG_SUPPORTED
 #endif