From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70360 invoked by alias); 20 Feb 2016 13:19:59 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 70332 invoked by uid 89); 20 Feb 2016 13:19:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=H*Ad:D*ar, HTo:D*ar X-HELO: nef2.ens.fr Received: from nef2.ens.fr (HELO nef2.ens.fr) (129.199.96.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 20 Feb 2016 13:19:57 +0000 Received: from mailhost.lps.ens.fr (tournesol.lps.ens.fr [129.199.120.1]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id u1KDJsoD075337 ; Sat, 20 Feb 2016 14:19:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mailhost.lps.ens.fr (Postfix) with ESMTP id 89B2715D; Sat, 20 Feb 2016 14:19:54 +0100 (CET) Received: from mailhost.lps.ens.fr ([127.0.0.1]) by localhost (tournesol.lps.ens.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A0FNtb3uSliO; Sat, 20 Feb 2016 14:19:54 +0100 (CET) Received: from [192.168.1.11] (log78-1-82-242-47-10.fbx.proxad.net [82.242.47.10]) by mailhost.lps.ens.fr (Postfix) with ESMTPSA id 57B1415C; Sat, 20 Feb 2016 14:19:54 +0100 (CET) From: =?utf-8?Q?Dominique_d=27Humi=C3=A8res?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Can be a subroutine slower when is placed in a module? Date: Sat, 20 Feb 2016 13:19:00 -0000 Message-Id: <203F0893-2924-4F5A-935F-725204DCA066@lps.ens.fr> Cc: fortran@gcc.gnu.org To: jdelia@intec.unl.edu.ar Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) X-SW-Source: 2016-02/txt/msg00079.txt.bz2 You should give the options you use. If I compile your code using a module = with '-Ofast -fwhole-program=E2=80=99 I get the same speed as for the other= two tests compiled with '-Ofast=E2=80=99 only. IMO this is related to inli= ning the routine(s). Dominique