delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/03/10/12:51:27

From: molnarl AT cdata DOT tvnet DOT hu
Date: Tue, 10 Mar 1998 18:48:46 +0100 (MET)
To: djgpp-workers AT delorie DOT com
Subject: Re: ISN'T A BUG in 2.8.0
Message-ID: <Pine.GSO.3.96.980310184736.1261A-100000@dumballah.tvnet.hu>
MIME-Version: 1.0

On Tue, Mar 10, 1998 at 09:57:47AM +0000, Salvador Eduardo Tropea (SET)
wrote:
> molnarl AT cdata DOT tvnet DOT hu wrote:
> >Hi!
> >
> >I'm not sure whether it is a new bug. I've found it with the latest
> >test version of perl.
> >
> >This program is a feature test for perl. Compile this with -O0 and it
> >prints 0, but with -O2 it prints 1. This bug also appears on linux
> >(2.7.2.3).
[...]
> That's isn't considered as a bug by the gcc maintainers. Just compile
like
> that: -O2 -ffloat-store and you'll get 0.

The perl folks will use another work around, because -ffloat-store is a
little bit too gcc specific for this feature test :-) But it's still
interesting that pgcc doesn't have this problem.

Laszlo



- Raw text -


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