| 1 | Patch from https://gcc.gnu.org/cgit/gcc/commit/?id=29eacf043b6e8560c5c42d67f7f9b11e4e2cb156
|
| 2 |
|
| 3 | See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104290
|
| 4 |
|
| 5 | From 29eacf043b6e8560c5c42d67f7f9b11e4e2cb156 Mon Sep 17 00:00:00 2001
|
| 6 | From: Svante Signell <[email protected]>
|
| 7 | Date: Sun, 6 Feb 2022 11:43:23 +0000
|
| 8 | Subject: hurd: Add OPTION_GLIBC_P and OPTION_GLIBC
|
| 9 |
|
| 10 | GNU/Hurd uses glibc just like GNU/Linux.
|
| 11 |
|
| 12 | This is needed for gcc to notice that glibc supports split stack in
|
| 13 | finish_options.
|
| 14 |
|
| 15 | PR go/104290
|
| 16 | gcc/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 |
|
| 22 | diff --git a/gcc/config/gnu.h b/gcc/config/gnu.h
|
| 23 | index 6b8f36bd3d2a..825e7434d404 100644
|
| 24 | |
| 25 | |
| 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 | --
|
| 38 | cgit
|
| 39 |
|