1. Add the directories to hold POWER10 files.
2. Add support to select POWER10 libraries based on AT_PLATFORM.
3. Let submachine=power10 be set automatically.
#define HWCAP_IMPORTANT (PPC_FEATURE_HAS_ALTIVEC \
+ PPC_FEATURE_HAS_DFP)
-#define _DL_PLATFORMS_COUNT 15
+#define _DL_PLATFORMS_COUNT 16
#define _DL_FIRST_PLATFORM 32
/* Mask to filter out platforms. */
#define PPC_PLATFORM_PPC476 12
#define PPC_PLATFORM_POWER8 13
#define PPC_PLATFORM_POWER9 14
+#define PPC_PLATFORM_POWER10 15
static inline const char *
__attribute__ ((unused))
str += 5;
switch (*str)
{
+ case '1':
+ if (str[1] == '0')
+ {
+ ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER10;
+ }
+ else
+ return -1;
+ break;
case '4':
ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER4;
break;
--- /dev/null
+powerpc/powerpc32/power9/fpu
+powerpc/powerpc32/power9
--- /dev/null
+powerpc/powerpc32/power9/fpu/multiarch
--- /dev/null
+powerpc/powerpc32/power9/multiarch
--- /dev/null
+powerpc/powerpc64/be/power9/fpu
+powerpc/powerpc64/be/power9
--- /dev/null
+powerpc/powerpc64/be/power9/fpu
--- /dev/null
+powerpc/powerpc64/be/power9/fpu/multiarch
--- /dev/null
+powerpc/powerpc64/be/power9/multiarch
--- /dev/null
+powerpc/powerpc64/le/power9/fpu
+powerpc/powerpc64/le/power9
--- /dev/null
+powerpc/powerpc64/le/power9/fpu
--- /dev/null
+powerpc/powerpc64/le/power9/fpu/multiarch
--- /dev/null
+powerpc/powerpc64/le/power9/multiarch
;;
- a2|970|power[4-9]|power5x|power6+)
+ a2|970|power[4-9]|power5x|power6+|power10)
submachine=${archcpu}
if ${libc_cv_cc_submachine+:} false; then :
$as_echo_n "(cached) " >&6
AC_CACHE_VAL(libc_cv_cc_submachine,libc_cv_cc_submachine="")
;;
- a2|970|power[[4-9]]|power5x|power6+)
+ a2|970|power[[4-9]]|power5x|power6+|power10)
submachine=${archcpu}
AC_CACHE_VAL(libc_cv_cc_submachine,libc_cv_cc_submachine="")
;;