Patch ieee128-lib-patch003b
authorMichael Meissner <Michael Meissner meissner@linux.ibm.com>
Tue, 5 May 2020 17:31:03 +0000 (13:31 -0400)
committerMichael Meissner <Michael Meissner meissner@linux.ibm.com>
Tue, 5 May 2020 17:31:03 +0000 (13:31 -0400)
libgcc/ChangeLog.meissner
libgcc/config/rs6000/t-float128

index 98683f4..54018d9 100644 (file)
@@ -1,3 +1,10 @@
+2020-05-05  Michael Meissner  <meissner@linux.ibm.com>
+
+       (~/patches/ieee128-lib-patch003b)
+       PR target/94630
+       * config/rs6000/t-float128 (ibm-ldouble$(objext)): Add the
+       -mno-gnu-attribute option.
+
 2020-05-05   Michael Meissner  <meissner@linux.ibm.com>
 
        Clone branch
index d541344..4d4e80c 100644 (file)
@@ -69,6 +69,13 @@ $(fp128_ppc_obj)      : INTERNAL_CFLAGS += $(FP128_CFLAGS_SW)
 $(fp128_obj)            : $(fp128_includes)
 $(fp128_obj)            : $(srcdir)/config/rs6000/quad-float128.h
 
+
+# If we are switching the default long double type, we need to use
+# -mno-gnu-attribute so that the __ibm128 support functions don't signal a
+# linker error since the default long double is now IEEE 128-bit instead of IBM
+# 128-bit.
+ibm-ldouble$(objext)   : INTERNAL_CFLAGS += -mno-gnu-attribute
+
 $(fp128_softfp_src) : $(srcdir)/soft-fp/$(subst -sw,,$(subst kf,tf,$@)) $(fp128_dep)
        @src="$(srcdir)/soft-fp/$(subst -sw,,$(subst kf,tf,$@))"; \
        echo "Create $@"; \