From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1705 invoked by alias); 9 Jun 2010 13:42:25 -0000 Received: (qmail 1597 invoked by uid 48); 9 Jun 2010 13:42:05 -0000 Date: Wed, 09 Jun 2010 13:42:00 -0000 Message-ID: <20100609134205.1596.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug lto/44464] ICE during linux kernel whopr build In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "andi-gcc at firstfloor 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-06/txt/msg01026.txt.bz2 ------- Comment #14 from andi-gcc at firstfloor dot org 2010-06-09 13:42 ------- I found this code in lto.c which seems to disagree: /* Read the options saved from each file in the command line. Called from lang_hooks.post_options which is called by process_options right before all the options are used to initialize the compiler. This assumes that decode_options has already run, so the num_in_fnames and in_fnames are properly set. Note that this assumes that all the files had been compiled with the same options, which is not a good assumption. In general, options ought to be read from all the files in the set and merged. However, it is still unclear what the merge rules should be. */ void lto_read_all_file_options (void) Still remains to be seen if it DTRT though (e.g. for -pg vs no -pg) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44464