[PATCH] Fix build failure for big-endian targets

Matthew Gretton-Dann matthew.gretton-dann@linaro.org
Mon Apr 8 09:39:00 GMT 2013


All,

I've committed the attached patch as obvious to the newlib repositories.

It fixes a build failure for big-endian targets with LDBL_MANT_DIG > 64 and 
configured with --enable-newlib-io-long-double.

Tested by configure newlib with:
   --target=aarch64_be-none-elf --enable-newlib-io-long-double

newlib/ChangeLog:

2013-04-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>

	* libc/stdio/vfieeefp.h (ldieee): Fix typo.

Thanks,

Matt

-- 
Matthew Gretton-Dann
Toolchain Working Group, Linaro
-------------- next part --------------
Index: newlib/libc/stdio/vfieeefp.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/stdio/vfieeefp.h,v
retrieving revision 1.5
diff -u -p -r1.5 vfieeefp.h
--- newlib/libc/stdio/vfieeefp.h	31 Aug 2007 21:21:27 -0000	1.5
+++ newlib/libc/stdio/vfieeefp.h	8 Apr 2013 08:19:52 -0000
@@ -131,7 +131,7 @@ struct ldieee
   unsigned manh:32;
   unsigned manl:32;
   unsigned manl2:32;
-  unsigned manl3;16;
+  unsigned manl3:16;
 };
 #endif /* LDBL_MANT_DIG */
 #endif /* !IEEE_8087 */


More information about the Newlib mailing list