git: 98c8caafffb6 - main - libgcc_s: 80-bit long double function are x86-only

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Wed, 01 May 2024 20:50:16 UTC
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=98c8caafffb65203640226dba5564921448067b8

commit 98c8caafffb65203640226dba5564921448067b8
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-05-01 20:49:47 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-05-01 20:49:47 +0000

    libgcc_s: 80-bit long double function are x86-only
    
    Don't try to expose them on other architectures.
    
    Reviewed by:    arichardson
    Differential Revision:  https://reviews.freebsd.org/D45028
---
 lib/libgcc_s/Symbol.map | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/lib/libgcc_s/Symbol.map b/lib/libgcc_s/Symbol.map
index 2c507656f037..def8f0981664 100644
--- a/lib/libgcc_s/Symbol.map
+++ b/lib/libgcc_s/Symbol.map
@@ -33,14 +33,14 @@ GCC_3.0 {
 #ifndef __arm__
 	__fixunssfsi;
 #endif
-#ifndef __powerpc__
+#if defined(__amd64__) || defined(__i386__)
 	__fixunsxfdi;
 	__fixunsxfsi;
 	__fixxfdi;
 #endif
 	__floatdidf;
 	__floatdisf;
-#ifndef __powerpc__
+#if defined(__amd64__) || defined(__i386__)
 	__floatdixf;
 #endif
 	__lshrdi3;
@@ -91,11 +91,8 @@ GCC_3.0 {
 	__fixsfti;
 	__fixunsdfti;
 	__fixunssfti;
-	__fixunsxfti;
-	__fixxfti;
 	__floattidf;
 	__floattisf;
-	__floattixf;
 	__lshrti3;
 	__modti3;
 	__multi3;
@@ -104,6 +101,11 @@ GCC_3.0 {
 	__udivmodti4;
 	__udivti3;
 	__umodti3;
+#ifdef __amd64__
+	__fixunsxfti;
+	__fixxfti;
+	__floattixf;
+#endif
 #endif
 };
 
@@ -152,17 +154,17 @@ GCC_3.4.4 {
 GCC_4.0.0 {
 	__divdc3;
 	__divsc3;
-#ifndef __powerpc__
+#if defined(__amd64__) && define(__i386__)
 	__divxc3;
 #endif
 	__muldc3;
 	__mulsc3;
-#ifndef __powerpc__
+#if defined(__amd64__) && define(__i386__)
 	__mulxc3;
 #endif
 	__powidf2;
 	__powisf2;
-#ifndef __powerpc__
+#if defined(__amd64__) && define(__i386__)
 	__powixf2;
 #endif
 };
@@ -170,7 +172,7 @@ GCC_4.0.0 {
 GCC_4.2.0 {
 	__floatundidf;
 	__floatundisf;
-#ifndef __powerpc__
+#if defined(__amd64__) && define(__i386__)
 	__floatundixf;
 #endif
 	_Unwind_GetIPInfo;
@@ -178,8 +180,10 @@ GCC_4.2.0 {
 #ifdef CRT_HAS_128BIT
 	__floatuntidf;
 	__floatuntisf;
+#ifdef __amd64__
 	__floatuntixf;
 #endif
+#endif
 };
 
 GCC_4.3.0 {