This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/5017: i386 floating point optimization
- From: rodrigc at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, ghh at mpq dot mpg dot de, nobody at gcc dot gnu dot org
- Date: 6 Dec 2001 04:14:21 -0000
- Subject: Re: optimization/5017: i386 floating point optimization
Synopsis: i386 floating point optimization
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Wed Dec 5 20:14:20 2001
State-Changed-Why:
Compile your code and add the -Wall flag. This will
give you additional warnings that will point you to the
error in your code.
If you add #include <math.h> at the top of your
file, the problem goes away.
Since you did not include the function prototypes
for those functions, the compiler and linker
make some guesses (which are incorrect) as to the
signatures of the math functions which you are
using.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=5017&database=gcc