summaryrefslogtreecommitdiff
path: root/system/gcc/202-ibm-ldbl.patch
blob: bdf5c75d917d73fc90e571d3e4c0b6ea1e16a393 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 236634eed58fa6e00cc50f19e7202903a9d8fae6 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Thu, 12 Dec 2019 04:03:56 +0100
Subject: [PATCH] libgcc: use -mno-gnu-attribute for 128-bit IBM ldouble
 support code

Doing this will allow libgcc to emit the appropriate symbols without actually
emitting the FP ABI tag for them, which allows 64-bit long double environments
to function and even link statically while still allowing usage of
explicit __ibm128.
---
 libgcc/config/rs6000/t-ibm-ldouble | 2 +-
 libgcc/config/rs6000/t-linux       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libgcc/config/rs6000/t-ibm-ldouble b/libgcc/config/rs6000/t-ibm-ldouble
index b132784..fb5eca8 100644
--- a/libgcc/config/rs6000/t-ibm-ldouble
+++ b/libgcc/config/rs6000/t-ibm-ldouble
@@ -1,6 +1,6 @@
 # GCC 128-bit long double support routines.
 LIB2ADD += $(srcdir)/config/rs6000/ibm-ldouble.c
 
-HOST_LIBGCC2_CFLAGS += -mlong-double-128
+HOST_LIBGCC2_CFLAGS += -mlong-double-128 -mno-gnu-attribute
 
 SHLIB_MAPFILES += $(srcdir)/config/rs6000/libgcc-ibm-ldouble.ver
diff --git a/libgcc/config/rs6000/t-linux b/libgcc/config/rs6000/t-linux
index 4f6d4c4..fa93bb6 100644
--- a/libgcc/config/rs6000/t-linux
+++ b/libgcc/config/rs6000/t-linux
@@ -1,3 +1,3 @@
 SHLIB_MAPFILES += $(srcdir)/config/rs6000/libgcc-glibc.ver
 
-HOST_LIBGCC2_CFLAGS += -mlong-double-128 -mno-minimal-toc
+HOST_LIBGCC2_CFLAGS += -mlong-double-128 -mno-gnu-attribute -mno-minimal-toc
-- 
2.24.0