delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
From: | "Peter Kabal" <kabal AT ECE DOT McGill DOT CA> |
To: | <cygwin AT cygwin DOT com> |
Subject: | Printf routine incorrectly prints NaN for -Inf |
Date: | Mon, 11 Nov 2002 22:11:57 -0500 |
Organization: | McGill University |
Message-ID: | <000301c289f9$428771f0$a82ace84@research.pc.ece.mcgill.ca> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
gcc version 3.2 20020818 (prerelease) printf ("%g", log(0)); This prints "NaN" instead of "-Inf" as it should (and did in the past). A check of the bit pattern returned shows that that log(0) returns a bit pattern corresponding to "-Inf", but printf prints "NaN" instead. I am not sure which C library is being used (a bug report to gcc folks got the response that newlib is the culprit). However, the compiler option -print-libgcc-file-name tells me it is looking for libgcc.a. So I am confused as to who to report the bug to. Peter Kabal Kabal AT ECE DOT McGill DOT CA (514) 398-7130 Electrical & Computer Engineering (514) 398-4470 (FAX) McGill University 3480 University, Montreal, Quebec, Canada H3A 2A7 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |