delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/16/00:40:42

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
X-Apparently-From: <vihs AT rocketmail DOT com>
Message-ID: <3949B0BC.764EA6D3@rocketmail.com>
Date: Fri, 16 Jun 2000 10:14:44 +0530
From: Shiv Kumar <vihs AT rocketmail DOT com>
Organization: Aztec Software, http://www.aztec.soft.net
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Richard Stanton <stanton AT Haas DOT Berkeley DOT EDU>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Latest gcc/cygwin - bug in %e format specifier?
References: <000001bfd6ea$06f36910$524b2080 AT berkeley DOT edu>

Seems to work fine for me ..

     [/tmp:$] gcc testit.c -o testit
     [/tmp:$] ls *exe
     testit.exe*
     [/tmp:$] testit
     tt = 0.000000e+00
     uu = 1.000000e+00
     [/tmp:$] gcc --version
     2.95.2
     [/tmp:$]

Regards.
--
shiv
vihs AT rocketmail DOT com

Richard Stanton wrote:

> The latest net release of gcc seems to have a slight bug in the %e print
> format specifier. It prints garbage when you try to print a variable whose
> value is zero.
>
> For example, attached is a (very) short program that does nothing but print
> two variables, with values 0 and 1 respectively. I'd show the output, but it
> contains several null characters which don't seem to cut/paste very well.
> The basic result is that the 1 variable works fine. The zero variable prints
> stuff it shouldn't.
>
> To test, just run
>
> "gcc testit.c -o testit"
>
> Then run testit. Optimizations don't seem to matter.
>
> Richard Stanton
>
>   --------------------------------------------------------------------------------
>                Name: testit.c
>    testit.c    Type: unspecified type (application/octet-stream)
>            Encoding: 7bit
>
>   --------------------------------------------------------------------------------
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com




__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019