From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32174 invoked by alias); 28 Jul 2009 13:12:28 -0000 Received: (qmail 32107 invoked by uid 48); 28 Jul 2009 13:12:16 -0000 Date: Tue, 28 Jul 2009 13:12:00 -0000 Message-ID: <20090728131216.32106.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/40873] -fwhole-file -fwhole-program: Wrong decls cause too much to be optimized away In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth 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-07/txt/msg02246.txt.bz2 ------- Comment #2 from rguenth at gcc dot gnu dot org 2009-07-28 13:12 ------- We have the following cgraph nodes related to daxpy: daxpy/17(-1) @0x7ffff5fc8700 called by: dgesl/3 (1.00 per call) dgesl/3 (1.00 per call) calls: dgefa/7(7) @0x7ffff5f7b100 174 time, 45 benefit 138 size, 36 benefit 20 bytes stack usage reachable body finalized inlinable called by: linpk/9 (1.00 per call) calls: daxpy/4 (1.00 per call) dscal/5 (1.00 per call) idamax/6 (1.00 per call) daxpy/4(4) @0x7ffff5f66400 125 time, 56 benefit 125 size, 47 benefit reachable body finalized inlinable called by: dgefa/7 (1.00 per call) calls: dgesl/3(3) @0x7ffff5f45f00 219 time, 52 benefit 165 size, 43 benefit 24 bytes stack usage reachable body finalized inlinable called by: linpk/9 (1.00 per call) calls: ddot/2 (1.00 per call) ddot/2 (1.00 per call) daxpy/17 (1.00 per call) daxpy/17 (1.00 per call) where daxpy/17 is the one without a body (not merged with daxpy/4), called by dgesl. The call in dgefa is inlined (as single remaining call to a then reclaimable function). Confirmed with pauls latest patch applied. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |wrong-code Last reconfirmed|0000-00-00 00:00:00 |2009-07-28 13:12:15 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40873