From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6379 invoked by alias); 14 Oct 2009 09:36:39 -0000 Received: (qmail 6368 invoked by uid 22791); 14 Oct 2009 09:36:38 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-vw0-f183.google.com (HELO mail-vw0-f183.google.com) (209.85.212.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Oct 2009 09:36:33 +0000 Received: by vws13 with SMTP id 13so2481498vws.14 for ; Wed, 14 Oct 2009 02:36:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.11.9 with SMTP id r9mr12371052vcr.58.1255512992092; Wed, 14 Oct 2009 02:36:32 -0700 (PDT) In-Reply-To: <4AD4C776.5000909@moene.org> References: <4AD0681E.5040200@moene.org> <84fc9c000910100400v5f1f4f35n5cd5c37c38c1420d@mail.gmail.com> <20091010123125.GO9046@atrey.karlin.mff.cuni.cz> <20091010151737.GA18743@caradoc.them.org> <4AD0B52D.1010202@redhat.com> <4AD4C776.5000909@moene.org> Date: Wed, 14 Oct 2009 10:05:00 -0000 Message-ID: <84fc9c000910140236h7e0828eaqb5f246b358bd1b9@mail.gmail.com> Subject: Re: LTO and the inlining of functions only called once. From: Richard Guenther To: Toon Moene Cc: Jeff Law , Jan Hubicka , Jan Hubicka , gcc mailing list Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg00307.txt.bz2 On Tue, Oct 13, 2009 at 8:31 PM, Toon Moene wrote: > Jeff Law wrote: > >> On 10/10/09 09:17, Daniel Jacobowitz wrote: > >>> On Sat, Oct 10, 2009 at 02:31:25PM +0200, Jan Hubicka wrote: >>> >>>> >>>> My solution would be probably to pass -fdump-ipa-inline parameter to l= to >>>> compilation and read the log. =A0It lists the inlining decisions and if >>>> something is not inlined, you get dump of reason why. > > OK, I did just that (of course, because I'm only interested in inlining > during Link-Time-Optimization, I only passed the compiler option to the l= ink > phase of the the build). > > Now where does the resulting dump ends up - and how is it named ? > > I.e., in case of: > > gfortran -o exe -O3 -flto -fwhole-program -fdump-ipa-inline a.f lib.a > > ? It'll be in /tmp and named after the first object file, in your case it will be ccGGS24.o.047i.inline (because the first object file will be a tempfile). A minor inconvenience that maybe is going to be fixed. Richard. > > -- > Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290 > Saturnushof 14, 3738 XG =A0Maartensdijk, The Netherlands > At home: http://moene.org/~toon/ > Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.5/changes.html >