From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1820 invoked by alias); 23 Apr 2015 13:41:20 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 1807 invoked by uid 89); 23 Apr 2015 13:41:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,KAM_ASCII_DIVIDERS,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 23 Apr 2015 13:41:18 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 944CDB59AE for ; Thu, 23 Apr 2015 13:41:17 +0000 (UTC) Received: from littlehelper.redhat.com (vpn1-6-8.ams2.redhat.com [10.36.6.8]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3NDfF5M010561 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 23 Apr 2015 09:41:16 -0400 From: Nick Clifton To: gcc-patches@gcc.gnu.org Subject: Commit: RL78: Fix compile time warnings Date: Thu, 23 Apr 2015 13:41:00 -0000 Message-ID: <87bnifgdxg.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg01414.txt.bz2 Hi Guys, I am applying the patch below as an obvious fix for come compile time warning messages building the rl78 toolchain. Cheers Nick gcc/ChangeLog 2015-04-23 Nick Clifton * config/rl78/rl78.c (rl78_preferred_reload_class): Add ATTRIBUTE_UNUSED to x parameter. * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78. Index: config/rl78/rl78-opts.h =================================================================== --- config/rl78/rl78-opts.h (revision 222368) +++ config/rl78/rl78-opts.h (working copy) @@ -23,7 +23,6 @@ enum rl78_mul_types { MUL_NONE, - MUL_RL78, MUL_G13, MUL_G14, MUL_UNINIT Index: config/rl78/rl78.c =================================================================== --- config/rl78/rl78.c (revision 222368) +++ config/rl78/rl78.c (working copy) @@ -4646,7 +4646,7 @@ #define TARGET_PREFERRED_RELOAD_CLASS rl78_preferred_reload_class static reg_class_t -rl78_preferred_reload_class (rtx x, reg_class_t rclass) +rl78_preferred_reload_class (rtx x ATTRIBUTE_UNUSED, reg_class_t rclass) { if (rclass == NO_REGS) rclass = V_REGS;