]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
hurd: Add OPTION_GLIBC_P and OPTION_GLIBC
authorSvante Signell <svante.signell@gmail.com>
Sun, 6 Feb 2022 11:43:23 +0000 (11:43 +0000)
committerThomas Schwinge <tschwinge@baylibre.com>
Mon, 20 Oct 2025 19:43:13 +0000 (21:43 +0200)
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)

gcc/config/gnu.h

index e2a33baf0402e5c6eb10b5c9331a16e04440ea25..4e921e0d51e4e5760b02ccaba89f15c6911404f3 100644 (file)
@@ -19,6 +19,10 @@ You should have received a copy of the GNU General Public License
 along with GCC.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+/* 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 {                                       \