-O generates NaN
Michael Meissner
meissner@cygnus.com
Mon Mar 5 06:03:00 GMT 2001
On Sat, Mar 03, 2001 at 02:26:57PM +0900, Haruhiko Okumura wrote:
> The problem looks like a gcc bug. The attached shorter program,
> nan3.cc, also generates NaN's only when compiled with -O.
It looks like the attachment did not survive the mailing. Could you resend it?
> > Hi,
> >
> > Could someone tell why this code generates lots of NaN's when compiled
> > with any optimization flag (-O, -O2 etc) on?
> >
> > $ g++ nan.cc ... OK
> > $ g++ -O nan.cc ... nan
> >
> > $ g++ -v
> > Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
> > Configured with: ../gcc/configure --enable-shared --enable-languages=c++,f77
> > gcc version 3.1 20010227 (experimental)
>
> --
> Haruhiko Okumura <okumura@matsusaka-u.ac.jp>
> Matsusaka University, 1846 Kubo-cho, Matsusaka, 515-8511 Japan
> Phone: +81-598-29-1122 Fax: +81-598-29-1014
> http://www.matsusaka-u.ac.jp/~okumura/
--
Michael Meissner, Red Hat, Inc. (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482
More information about the Gcc-bugs
mailing list