------- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-11-17 00:07 ------- While I'm trying to understand what happens, I should say that a simply workaround is to make your calculation happen in double precision (change "3.14159" into "3.14159d0"; after all, you want a double-precision result).
g77 called sin() to perform the calculation, while gfortran calls sinf(). And sinf() happens to be way slower than sin() (I wonder why!). Maybe a bugreport to glibc will be in order here. -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Component|libfortran |fortran Ever Confirmed|0 |1 Keywords| |missed-optimization Last reconfirmed|0000-00-00 00:00:00 |2007-11-17 00:07:55 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34128