From: Svante Signell Date: Sun, 6 Feb 2022 11:43:23 +0000 (+0000) Subject: hurd: Add OPTION_GLIBC_P and OPTION_GLIBC X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3b203b67c5ab5cd48d19d8aeea46b564db49a30;p=thirdparty%2Fgcc.git hurd: Add OPTION_GLIBC_P and OPTION_GLIBC GNU/Hurd uses glibc just like GNU/Linux. This is needed for gcc to notice that glibc supports split stack in finish_options. PR go/104290 gcc/ChangeLog: * config/gnu.h (OPTION_GLIBC_P, OPTION_GLIBC): Define. (cherry picked from commit 29eacf043b6e8560c5c42d67f7f9b11e4e2cb156) --- diff --git a/gcc/config/gnu.h b/gcc/config/gnu.h index 97baea939a7..cc10588dbc8 100644 --- a/gcc/config/gnu.h +++ b/gcc/config/gnu.h @@ -19,6 +19,10 @@ You should have received a copy of the GNU General Public License along with GCC. If not, see . */ +/* C libraries used on GNU/Hurd. */ +#define OPTION_GLIBC_P(opts) (DEFAULT_LIBC == LIBC_GLIBC) +#define OPTION_GLIBC OPTION_GLIBC_P (&global_options) + #undef GNU_USER_TARGET_OS_CPP_BUILTINS #define GNU_USER_TARGET_OS_CPP_BUILTINS() \ do { \