This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: dtoa.c fails to compile for sh-elf -m2e (Was: Re: strtod (and atof) on hex numbers)
- From: Jeff Johnston <jjohnstn at redhat dot com>
- To: Joern Rennecke <amylaar at spamcop dot net>
- Cc: newlib at sourceware dot org, cygwin at cygwin dot com, joern dot rennecke at st dot com
- Date: Mon, 26 Jun 2006 11:41:20 -0400
- Subject: Re: dtoa.c fails to compile for sh-elf -m2e (Was: Re: strtod (and atof) on hex numbers)
- References: <20060624171928.aohiwwwo48k8cwsc@webmail.spamcop.net>
Joern Rennecke wrote:
You change to mprec.h broke dtoa.c compilation for sh2e:
Please try the attached patch and let me know if it sovles the problem.
-- Jeff J.
Index: libc/stdlib/mprec.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/stdlib/mprec.h,v
retrieving revision 1.4
diff -u -p -r1.4 mprec.h
--- libc/stdlib/mprec.h 22 Jun 2006 17:59:52 -0000 1.4
+++ libc/stdlib/mprec.h 26 Jun 2006 15:39:17 -0000
@@ -141,6 +141,12 @@ typedef union { double d; __ULong L[2];
#if 0
#define IEEE_Arith /* it is, but the code doesn't handle IEEE singles yet */
#endif
+/* Following is needed due to IEEE_Arith not being set on above. */
+#if defined(__v800)
+#define n_bigtens 2
+#else
+#define n_bigtens 5
+#endif
#define Emin (-126)
#define Exp_1 ((__uint32_t)0x3f800000L)
#define Exp_11 ((__uint32_t)0x3f800000L)
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/