From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22075 invoked by alias); 26 May 2010 14:46:08 -0000 Received: (qmail 21976 invoked by uid 48); 26 May 2010 14:45:53 -0000 Date: Wed, 26 May 2010 14:46:00 -0000 Message-ID: <20100526144553.21975.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: "burnus 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/msg02931.txt.bz2 ------- Comment #15 from burnus at gcc dot gnu dot org 2010-05-26 14:45 ------- (In reply to comment #13) > Is this now fixed by the following commit? Answer: It is not. Comment 1 now works with "-fwhole-program -O1", but comment 0 and comment 4 still fail. (Though, they work with "-fwhole-file -O1".) (In reply to comment #12) > My belief is that with this patch and corrections of the "legacy style" > testsuite cases, -fwhole-file could be finally made the default. As there are no -fwhole-file failures in this PR (though -fwhole-file bugs, revealed through -fwhole-program), I think this PR does not prevent enabling -fwhole-file by default. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40873