Message-ID: <20010508123935.685.qmail@web6304.mail.yahoo.com> Date: Tue, 8 May 2001 14:39:35 +0200 (CEST) From: =?iso-8859-1?q?Florent=20Georges?= Subject: Bug in gcc or in my install ? To: djgpp AT delorie DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Reply-To: djgpp AT delorie DOT com Hello, In a first time, I prefer to think that it's a bug in my install, instead in gcc, but it's quite strange. I've wrote a {\tinytiny} program which run correctly when it's compiled with gcc -o test.exe test.c -lm but doesn't with gcc -o test.exe test.c -lm -ansi Here's the source : #include #include #include int main (void) { float next = 0.0; float prev = 0.0; printf("%e \n", next); while (prev < 1e-40) { next = nextafterf(prev, 1.0); /* the func I test */ printf("%e \n", next); prev = next; } return EXIT_SUCCESS; } and here's the output when I compile with the '-ansi' flag : c:\djgpp\home\misc\libm\>test.exe 0.000000e+00 1.638400e+04 When I don't specify the '-ansi' flag, the program run as we're waiting for (not very interesting :p); dus I suppose that the libm is ok. I use djgpp with gcc 2.95.3. --drkm ___________________________________________________________ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com