Revert a patch to use that creates a gcc flags mismatch on power Remove duplicate sqrt function Resolves:RHEL-65475 Signed-off-by: John Kacur <jkacur@redhat.com>
86 lines
2.5 KiB
Diff
86 lines
2.5 KiB
Diff
From 663eceec28815d1eacfcd7908df48fe8781e9311 Mon Sep 17 00:00:00 2001
|
|
From: John Kacur <jkacur@redhat.com>
|
|
Date: Tue, 5 Nov 2024 09:56:31 -0500
|
|
Subject: [PATCH] Revert "core-target-clones.h: add power11 to target clones"
|
|
|
|
This reverts commit 6b78e7450f04bb4251458638303050d7148d6b95.
|
|
|
|
This fixes a mismatch where gcc support -mtune=power11
|
|
Where the distro seems to use
|
|
-mcpu=power9 -mtune=power10
|
|
resulting in a mismatch.
|
|
|
|
Until a workaround is available upstream, reverting this patch.
|
|
|
|
Signed-off-by: John Kacur <jkacur@redhat.com>
|
|
---
|
|
Makefile.config | 8 --------
|
|
core-target-clones.h | 8 --------
|
|
2 files changed, 16 deletions(-)
|
|
|
|
diff --git a/Makefile.config b/Makefile.config
|
|
index 2bd9760b8ac9..8f1e0113b0d3 100644
|
|
--- a/Makefile.config
|
|
+++ b/Makefile.config
|
|
@@ -1293,7 +1293,6 @@ cpufeatures: \
|
|
TARGET_CLONES_PANTHERLAKE \
|
|
TARGET_CLONES_POWER9 \
|
|
TARGET_CLONES_POWER10 \
|
|
- TARGET_CLONES_POWER11 \
|
|
TARGET_CLONES_ROCKETLAKE \
|
|
TARGET_CLONES_SAPPHIRERAPIDS \
|
|
TARGET_CLONES_SKYLAKE_AVX512 \
|
|
@@ -1682,9 +1681,6 @@ TARGET_CLONES_POWER9:
|
|
TARGET_CLONES_POWER10:
|
|
$(call check,test-target-clones,HAVE_TARGET_CLONES_POWER10,target_clones cpu=power attribute (power10),,,'"default$(comma)cpu=power10"')
|
|
|
|
-TARGET_CLONES_POWER11:
|
|
- $(call check,test-target-clones,HAVE_TARGET_CLONES_POWER11,target_clones cpu=power attribute (power11),,,'"default$(comma)cpu=power11"')
|
|
-
|
|
VECMATH:
|
|
$(call check_vecmath,stress-vecmath,HAVE_VECMATH,vector math)
|
|
|
|
@@ -2257,7 +2253,6 @@ functions: \
|
|
BUILTIN_CPOWL \
|
|
BUILTIN_CPU_IS_POWER9 \
|
|
BUILTIN_CPU_IS_POWER10 \
|
|
- BUILTIN_CPU_IS_POWER11 \
|
|
BUILTIN_CSIN \
|
|
BUILTIN_CSINF \
|
|
BUILTIN_CSINL \
|
|
@@ -2975,9 +2970,6 @@ BUILTIN_CPU_IS_POWER9:
|
|
BUILTIN_CPU_IS_POWER10:
|
|
$(call check,test-builtin-cpu-is-power10,HAVE_BUILTIN_CPU_IS_POWER10,__builtin_cpu_is("power10"))
|
|
|
|
-BUILTIN_CPU_IS_POWER11:
|
|
- $(call check,test-builtin-cpu-is-power11,HAVE_BUILTIN_CPU_IS_POWER11,__builtin_cpu_is("power11"))
|
|
-
|
|
BUILTIN_EXP:
|
|
$(call check,test-mathfunc,HAVE_BUILTIN_EXP,__builtin_exp,$(LIB_M),-DMATHFUNC=__builtin_exp)
|
|
|
|
diff --git a/core-target-clones.h b/core-target-clones.h
|
|
index 874d590cdc2b..ebc0ba1b1d64 100644
|
|
--- a/core-target-clones.h
|
|
+++ b/core-target-clones.h
|
|
@@ -212,17 +212,9 @@
|
|
#define TARGET_CLONE_POWER10
|
|
#endif
|
|
|
|
-#if defined(HAVE_TARGET_CLONES_POWER11)
|
|
-#define TARGET_CLONE_POWER11 "cpu=power11",
|
|
-#define TARGET_CLONE_USE
|
|
-#else
|
|
-#define TARGET_CLONE_POWER11
|
|
-#endif
|
|
-
|
|
#define TARGET_CLONES_ALL \
|
|
TARGET_CLONE_POWER9 \
|
|
TARGET_CLONE_POWER10 \
|
|
- TARGET_CLONE_POWER11 \
|
|
"default"
|
|
|
|
#if defined(TARGET_CLONE_USE)
|
|
--
|
|
2.47.0
|
|
|