From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23658 invoked by alias); 25 Jul 2010 10:14:45 -0000 Received: (qmail 23595 invoked by uid 48); 25 Jul 2010 10:14:30 -0000 Date: Sun, 25 Jul 2010 10:14:00 -0000 Message-ID: <20100725101430.23594.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-07/txt/msg02755.txt.bz2 ------- Comment #22 from burnus at gcc dot gnu dot org 2010-07-25 10:14 ------- The patch in comment 18 causes a segfault (in gfc_generate_function_code for "cfun->function_end_locus = input_location" [Invalid write of size 4]) for the test case in PR 40011 comment 0 (the one after "Your patch fixes some Segmentation faults (a couple)") - the test case works otherwise. No -fwhole-program is needed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40873