This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34128] slow gfortran 4.x (library?) compared to g77 3.4
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Nov 2007 00:07:55 -0000
- Subject: [Bug fortran/34128] slow gfortran 4.x (library?) compared to g77 3.4
- References: <bug-34128-15355@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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