[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patches] Fix (or workaround?) s_fma/s_fmaf build failure on soft-float ColdFire



Hi,

The patch referred to in:

http://permalink.gmane.org/gmane.comp.lib.glibc.user/954

also appears to be breaking eglibc builds for soft-float ColdFire
targets, i.e. we get:

../sysdeps/ieee754/dbl-64/s_fma.c: In function '__fma':
../sysdeps/ieee754/dbl-64/s_fma.c:152:15: error: 'FE_TOWARDZERO' undeclared (first use in this function)
../sysdeps/ieee754/dbl-64/s_fma.c:152:15: note: each undeclared identifier is reported only once for each function it appears in
../sysdeps/ieee754/dbl-64/s_fma.c:159:36: error: 'FE_INEXACT' undeclared (first use in this function)

The attached patch seems to suffice to allow the library to build
again, as long as the following (in-discussion) patch is also present:

http://comments.gmane.org/gmane.comp.lib.glibc.alpha/16740

OK to apply, or any comments?

Thanks,

Julian

ChangeLog (ports)

    sysdeps/
    * m68k/coldfire/s_fma.c: New.
    * m68k/coldfire/s_fmaf.c: New.
Index: sysdeps/m68k/coldfire/s_fma.c
===================================================================
--- sysdeps/m68k/coldfire/s_fma.c	(revision 0)
+++ sysdeps/m68k/coldfire/s_fma.c	(revision 0)
@@ -0,0 +1 @@
+#include <math/s_fma.c>
Index: sysdeps/m68k/coldfire/s_fmaf.c
===================================================================
--- sysdeps/m68k/coldfire/s_fmaf.c	(revision 0)
+++ sysdeps/m68k/coldfire/s_fmaf.c	(revision 0)
@@ -0,0 +1 @@
+#include <math/s_fmaf.c>
_______________________________________________
Patches mailing list
Patches@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/patches