git: 9f92ef766ae0 - main - Remove checks for __GNUCLIKE___SECTION assuming it is always true.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Apr 2022 17:10:34 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=9f92ef766ae0c0349af41e592b3bd3b444af4f63
commit 9f92ef766ae0c0349af41e592b3bd3b444af4f63
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-12 17:05:55 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-12 17:05:55 +0000
Remove checks for __GNUCLIKE___SECTION assuming it is always true.
All supported compilers (modern versions of GCC and clang) support
this.
PR: 263102 (exp-run)
Reviewed by: brooks, imp, emaste
Differential Revision: https://reviews.freebsd.org/D34799
---
sys/sys/linker_set.h | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sys/sys/linker_set.h b/sys/sys/linker_set.h
index 7c12ae215018..0f495872ce9b 100644
--- a/sys/sys/linker_set.h
+++ b/sys/sys/linker_set.h
@@ -58,7 +58,6 @@
/*
* Private macros, not to be used outside this header file.
*/
-#ifdef __GNUCLIKE___SECTION
/*
* The userspace address sanitizer inserts redzones around global variables,
@@ -78,9 +77,6 @@
__set_##set##_sym_##sym __section("set_" #set) \
__used = &(sym)
#define __MAKE_SET(set, sym) __MAKE_SET_QV(set, sym, __MAKE_SET_CONST)
-#else /* !__GNUCLIKE___SECTION */
-#error this file needs to be ported to your compiler
-#endif /* __GNUCLIKE___SECTION */
/*
* Public macros.