From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26301 invoked by alias); 18 Nov 2007 08:37:11 -0000 Received: (qmail 26279 invoked by uid 48); 18 Nov 2007 08:37:01 -0000 Date: Sun, 18 Nov 2007 08:37:00 -0000 Message-ID: <20071118083701.26278.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/34128] slow gfortran 4.x (library?) compared to g77 3.4 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-11/txt/msg01662.txt.bz2 ------- Comment #4 from burnus at gcc dot gnu dot org 2007-11-18 08:37 ------- > It's 64-bit only, and it appears to be a glibc bug: with glibc on x86_64, > sinf((float) integer_variable) is slower than (float)sin((double) > integer_variable). Can it be that it has been fixed meanwhile? Using demo1.f on x86-64 (openSUSE factory; glibc 2.6.1 (20070803), g77 3.3.5 20050117; gfortran 4.3.0 20071117; AMD Athlon64 x2 4800+) I get the following timings with "-O2": g77 gfortran -m32 real(4) 0.408s 0.421s -m64 real(4) 1.040s 0.589s -m32 real(8) 0.411s 0.408s -m64 real(8) 0.976s 0.968s -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34128