From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26906 invoked by alias); 24 May 2010 12:32:10 -0000 Received: (qmail 26638 invoked by uid 48); 24 May 2010 12:31:53 -0000 Date: Mon, 24 May 2010 12:32:00 -0000 Message-ID: <20100524123153.26637.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: "pault 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: 2010-05/txt/msg02739.txt.bz2 ------- Comment #12 from pault at gcc dot gnu dot org 2010-05-24 12:31 ------- Created an attachment (id=20734) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20734&action=view) Fix for this PR and PR40011 #42 This patch regtests OK apart from some peculiarities in proc_ptr_comp_9.f90 and proc_ptr_23.f90, which fail to link with -g. The problems do not appear to be associated with this patch, however. My belief is that with this patch and corrections of the "legacy style" testsuite cases, -fwhole-file could be finally made the default. Paul -- pault at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40873