delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <44A00020.5030201@redhat.com> |
Date: | Mon, 26 Jun 2006 11:41:20 -0400 |
From: | Jeff Johnston <jjohnstn AT redhat DOT com> |
User-Agent: | Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) |
MIME-Version: | 1.0 |
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 |
Subject: | Re: dtoa.c fails to compile for sh-elf -m2e (Was: Re: strtod (and atof) on hex numbers) |
References: | <20060624171928 DOT aohiwwwo48k8cwsc AT webmail DOT spamcop DOT net> |
In-Reply-To: | <20060624171928.aohiwwwo48k8cwsc@webmail.spamcop.net> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
--------------050001030008000502050600 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. --------------050001030008000502050600 Content-Type: text/x-patch; name="mprec.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mprec.patch" 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) --------------050001030008000502050600 Content-Type: text/plain; charset=us-ascii -- 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/ --------------050001030008000502050600--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |