Bug#175809: Strange or incorrect floating point behaviour

2003-07-06 Thread Matthias Klose
Daniel, should this report be closed? Daniel Jacobowitz writes: > On Fri, Jan 10, 2003 at 11:58:33AM +0100, Gerhard Wesp wrote: > > > Do you get the expected results if you do this? > > > > Yes and no. > > > > I include a modified example. > > > > The assertion fails if compiled with -O3 -ffl

Bug#175809: Strange or incorrect floating point behaviour

2003-01-10 Thread Daniel Jacobowitz
On Fri, Jan 10, 2003 at 11:58:33AM +0100, Gerhard Wesp wrote: > > Do you get the expected results if you do this? > > Yes and no. > > I include a modified example. > > The assertion fails if compiled with -O3 -ffloat-store -DA, it doesn't > if compiled without the -DA. So it seems to depend o

Bug#175809: Strange or incorrect floating point behaviour

2003-01-10 Thread Gerhard Wesp
> Do you get the expected results if you do this? Yes and no. I include a modified example. The assertion fails if compiled with -O3 -ffloat-store -DA, it doesn't if compiled without the -DA. So it seems to depend on where the assignments take place. Regards, -Gerhard #include #if 1 tem

Bug#175809: Strange or incorrect floating point behaviour

2003-01-09 Thread Daniel Jacobowitz
On Thu, Jan 09, 2003 at 11:51:55AM +0100, Gerhard Wesp wrote: > > The compiler is certainly allowed to compute 2.5*u at compile time. It > > I'd suggest -ffloat-store should also apply to such compile-time > computations to be consistent. Does this sound reasonable? Look at the 3.2 documentatio

Bug#175809: Strange or incorrect floating point behaviour

2003-01-09 Thread Gerhard Wesp
> The compiler is certainly allowed to compute 2.5*u at compile time. It I'd suggest -ffloat-store should also apply to such compile-time computations to be consistent. Does this sound reasonable? Regards, -Gerhard -- | voice: +43 (0)676 6253725 *** web: http://www.cosy.sbg.ac.at/~gwesp/ | |

Bug#175809: Strange or incorrect floating point behaviour

2003-01-08 Thread Daniel Jacobowitz
On Wed, Jan 08, 2003 at 10:16:35AM +0100, Gerhard Wesp wrote: > Package: g++-3.2 > Version: 3.2.2 20021212 (Debian prerelease) > > Note that this problem most likely is present in other g++ versions, and > also, in similar forms, in other gcc languages. > > It was discussed in comp.lang.c++.moder

Bug#175809: Strange or incorrect floating point behaviour

2003-01-08 Thread Gerhard Wesp
Package: g++-3.2 Version: 3.2.2 20021212 (Debian prerelease) Note that this problem most likely is present in other g++ versions, and also, in similar forms, in other gcc languages. It was discussed in comp.lang.c++.moderated, cf. news:<[EMAIL PROTECTED]> and the followup postings. Posters sugges