This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: status of gcc4 -ffast-math


Hans Horn wrote:
> Folks,
> 
> what is the current status of -ffast-math for gcc4 under cygwin.
> 
> I tried to use it for some numerical C code and get the following link
> errors:
> 
> eval.o:eval.c:(.text+0x79c): undefined reference to `_f_pow'
> eval.o:eval.c:(.text+0x7d8): undefined reference to `_f_log'
> eval.o:eval.c:(.text+0x7f0): undefined reference to `_f_exp'

  WJFFM:

> $ cat math.c
> 
> #include <math.h>
> 
> int main (int argc, const char **argv)
> {
> 
>   float f = atof (argv[1]);
>   double d = log (f);
>   return exp (f);
> }
> 
> 
> admin@ubik /tmp/math
> $ gcc-4 math.c -o math
> 
> admin@ubik /tmp/math
> $ gcc-4 math.c -o math -ffast-math
> 
> admin@ubik /tmp/math
> $ gcc-4 math.c -o math -ffast-math -O2
> 
> admin@ubik /tmp/math
> $ gcc-4 math.c -o math -ffast-math -O3
> 
> admin@ubik /tmp/math
> $

  Perhaps a few more details about what you're doing, a simple reproducible
testcase, what kind of command-lines you're using, etc. etc... might help.

    cheers,
      DaveK


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]