From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6524 invoked by alias); 5 Dec 2009 06:29:30 -0000 Received: (qmail 6485 invoked by uid 48); 5 Dec 2009 06:29:16 -0000 Date: Sat, 05 Dec 2009 06:29:00 -0000 Message-ID: <20091205062916.6484.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/40766] this fortran program is too slow In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jvdelisle 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: 2009-12/txt/msg00511.txt.bz2 ------- Comment #16 from jvdelisle at gcc dot gnu dot org 2009-12-05 06:29 ------- This is a glibc issue with software sin function. It does not use the FPU. Just try with -m32. Changing n=50000 $ gfc -m64 untitled.f90 $ time ./a.out -1781878.9 real 0m3.060s user 0m3.050s sys 0m0.003s $ gfc -m32 untitled.f90 $ time ./a.out -1781888.9 real 0m0.234s user 0m0.231s sys 0m0.004s $ The situation is absolutely absurd. I opened a PR for this so long ago, I don't remember the number. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40766