From patchwork Wed Apr 11 13:20:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Haley X-Patchwork-Id: 151794 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 6CDFBB704B for ; Wed, 11 Apr 2012 23:21:45 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1334755306; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=aJNNcj1jY0AGP49InOes IOivU7M=; b=e8md2qvn/2sya82qeMcc67eQ3aac3qkYFO3WqKcNvE4DXY4vnClm 75+NLIu63Maj6Zmmxj8ZEqNOGRUlwRyXWBFWao23I1HCVdh0jcJ585OTSbZ5Je5X r9tAqjH+/mxCB3ycUIJNFj1yIk/8cQheMobe144OiQWMAmMD3EoHaR4= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=HxsdcUNkoKa8OICep6S3fnDfNWBHmt4yiWTCkylfPGNJdrvq0HTsCstyRKnF7m 9kZuAdxRPs0ewHurt/RWvByEQedXVCUWbA5RJ8431/sB801/DsK7lXwte2A25PFu QxEW4cNI+Y7WWzhbLylMYr5Zz9QB1NsmH/zJFVM5n+HDE=; Received: (qmail 12230 invoked by alias); 11 Apr 2012 13:20:59 -0000 Received: (qmail 12161 invoked by uid 22791); 11 Apr 2012 13:20:56 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_THREADED, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, SPF_HELO_PASS, TW_JC, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Apr 2012 13:20:38 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3BDKbLg020778 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 11 Apr 2012 09:20:38 -0400 Received: from zebedee.pink (ovpn-113-60.phx2.redhat.com [10.3.113.60]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q3BDKax2006938; Wed, 11 Apr 2012 09:20:36 -0400 Message-ID: <4F858523.8000607@redhat.com> Date: Wed, 11 Apr 2012 14:20:35 +0100 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Richard Guenther CC: GCC Patches , GCJ-patches Subject: Re: jcf-reader: support for JSR 292 classfile extensions References: <4F855B49.2070605@redhat.com> In-Reply-To: X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org On 04/11/2012 01:43 PM, Richard Guenther wrote: > This breaks bootstrap for me: > > In file included from > /space/rguenther/src/svn/trunk/gcc/java/jcf-parse.c:1009:0: > /space/rguenther/src/svn/trunk/gcc/java/jcf-reader.c:550:1: error: > 'int jcf_parse_bootstrap_methods(JCF*, int)' defined but not used > [-Werror=unused-function] > jcf_parse_bootstrap_methods (JCF* jcf, int attribute_length ATTRIBUTE_UNUSED) > ^ > cc1plus: all warnings being treated as errors > make[3]: *** [java/jcf-parse.o] Error 1 > make[3]: *** Waiting for unfinished jobs.... > Sorry. Andrew. 2012-04-11 Andrew Haley * jcf-reader.c (jcf_parse_bootstrap_methods): Add ATTRIBUTE_UNUSED. Index: gcc/java/jcf-reader.c =================================================================== --- gcc/java/jcf-reader.c (revision 186307) +++ gcc/java/jcf-reader.c (working copy) @@ -36,7 +36,7 @@ static int jcf_parse_one_method (JCF *, int); static int jcf_parse_methods (JCF *); static int jcf_parse_final_attributes (JCF *); -static int jcf_parse_bootstrap_methods (JCF *, int ); +static int jcf_parse_bootstrap_methods (JCF *, int) ATTRIBUTE_UNUSED; #ifdef NEED_PEEK_ATTRIBUTE static int peek_attribute (JCF *, int, const char *, int); #endif