From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16433 invoked by alias); 13 Apr 2010 19:47:11 -0000 Received: (qmail 16349 invoked by uid 48); 13 Apr 2010 19:46:56 -0000 Date: Tue, 13 Apr 2010 19:47:00 -0000 Message-ID: <20100413194656.16348.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug bootstrap/43681] [4.6 Regression] bootstrap fails with "unused" var message for an apparently used var. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ubizjak at gmail dot com" 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-04/txt/msg01320.txt.bz2 ------- Comment #5 from ubizjak at gmail dot com 2010-04-13 19:46 ------- (In reply to comment #1) > Created an attachment (id=20331) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20331&action=view) [edit] > gcc46-pr43681.patch > > Untested patch. How about: Index: expr.c =================================================================== --- expr.c (revision 158277) +++ expr.c (working copy) @@ -1251,7 +1251,7 @@ block_move_libcall_safe_for_call_parm (void) { #if defined (REG_PARM_STACK_SPACE) - tree fn; + tree fn ATTRIBUTE_UNUSED; #endif /* If arguments are pushed on the stack, then they're safe. */ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43681