projects/guix·blob python-team · refs

39 lines · 1.2 KiB

1Patch from https://gcc.gnu.org/cgit/gcc/commit/?id=29eacf043b6e8560c5c42d67f7f9b11e4e2cb156
2
3See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104290
4
5From 29eacf043b6e8560c5c42d67f7f9b11e4e2cb156 Mon Sep 17 00:00:00 2001
6From: Svante Signell <[email protected]>
7Date: Sun, 6 Feb 2022 11:43:23 +0000
8Subject: hurd: Add OPTION_GLIBC_P and OPTION_GLIBC
9
10GNU/Hurd uses glibc just like GNU/Linux.
11
12This is needed for gcc to notice that glibc supports split stack in
13finish_options.
14
15 PR go/104290
16gcc/ChangeLog:
17 * config/gnu.h (OPTION_GLIBC_P, OPTION_GLIBC): Define.
18---
19 gcc/config/gnu.h | 4 ++++
20 1 file changed, 4 insertions(+)
21
22diff --git a/gcc/config/gnu.h b/gcc/config/gnu.h
23index 6b8f36bd3d2a..825e7434d404 100644
24--- a/gcc/config/gnu.h
25+++ b/gcc/config/gnu.h
26@@ -19,6 +19,10 @@ You should have received a copy of the GNU General Public License
27 along with GCC. If not, see <http://www.gnu.org/licenses/>.
28 */
29
30+/* C libraries used on GNU/Hurd. */
31+#define OPTION_GLIBC_P(opts) (DEFAULT_LIBC == LIBC_GLIBC)
32+#define OPTION_GLIBC OPTION_GLIBC_P (&global_options)
33+
34 #undef GNU_USER_TARGET_OS_CPP_BUILTINS
35 #define GNU_USER_TARGET_OS_CPP_BUILTINS() \
36 do { \
37--
38cgit
39