aboutsummaryrefslogtreecommitdiff
path: root/libgcc/config/rs6000/t-ldbl128
diff options
context:
space:
mode:
Diffstat (limited to 'libgcc/config/rs6000/t-ldbl128')
-rw-r--r--libgcc/config/rs6000/t-ldbl1287
1 files changed, 7 insertions, 0 deletions
diff --git a/libgcc/config/rs6000/t-ldbl128 b/libgcc/config/rs6000/t-ldbl128
new file mode 100644
index 0000000..96e242b
--- /dev/null
+++ b/libgcc/config/rs6000/t-ldbl128
@@ -0,0 +1,7 @@
+SHLIB_MAPFILES += $(gcc_srcdir)/config/rs6000/libgcc-ppc-glibc.ver
+
+# Use -mlong-double-128 only when not compiling nof libgcc.
+predefined-macros := $(shell true | $(CC) $(CFLAGS) -x c -dD -E -)
+ifeq ($(findstring _SOFT_FLOAT,$(predefined-macros)),)
+HOST_LIBGCC2_CFLAGS += -mlong-double-128
+endif