]> sourceware.org Git - glibc.git/commitdiff
s390x: Use <gcc-macros.h> in early HWCAP check
authorFlorian Weimer <fweimer@redhat.com>
Fri, 14 Jan 2022 19:16:05 +0000 (20:16 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 14 Jan 2022 19:17:58 +0000 (20:17 +0100)
This is required so that the checks still work if $(early-cflags)
selects a different ISA level.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/s390/s390-64/dl-hwcap-check.h

index 53e02250b8717a10385a295b7ab30deae3479fdc..f7699323250330a0d5714bad16b50fa9a734aace 100644 (file)
 #ifndef _DL_HWCAP_CHECK_H
 #define _DL_HWCAP_CHECK_H
 
+#include <gcc-macros.h>
 #include <ldsodefs.h>
 
 static inline void
 dl_hwcap_check (void)
 {
 #if defined __ARCH__
-# if __ARCH__ >= 13
+# if GCCMACRO__ARCH__ >= 13
   if (!(GLRO(dl_hwcap) & HWCAP_S390_VXRS_EXT2))
     _dl_fatal_printf ("\
 Fatal glibc error: CPU lacks VXRS_EXT2 support (z15 or later required)\n");
-# elif __ARCH__ >= 12
+# elif GCCMACRO__ARCH__ >= 12
   if (!(GLRO(dl_hwcap) & HWCAP_S390_VXE))
     _dl_fatal_printf ("\
 Fatal glibc error: CPU lacks VXE support (z14 or later required)\n");
This page took 0.041956 seconds and 5 git commands to generate.