From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lug-owl.de (lug-owl.de [IPv6:2a03:4000:10:469::]) by sourceware.org (Postfix) with ESMTPS id E927E3858C2F for ; Tue, 6 Sep 2022 07:57:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E927E3858C2F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=lug-owl.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=lug-owl.de Received: by lug-owl.de (Postfix, from userid 1001) id 2107F41FA7; Tue, 6 Sep 2022 09:57:33 +0200 (CEST) Date: Tue, 6 Sep 2022 09:57:33 +0200 From: Jan-Benedict Glaw To: Nick Clifton Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] msp430: Mark unused attribute Message-ID: <20220906075733.fmnxdgdcb2trbv3q@lug-owl.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gfk5wufftue5mayv" Content-Disposition: inline X-Operating-System: Linux chamaeleon 5.14.0-0.bpo.2-amd64 X-gpg-fingerprint: 250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB X-gpg-key: wwwkeys.de.pgp.net X-Echelon-Enable: howto poison arsenous mail psychological biological nuclear warfare test the bombastical terror of flooding the spy listeners explosion sex drugs and rock'n'roll X-TKUeV: howto poison arsenous mail psychological biological nuclear warfare test the bombastical terror of flooding the spy listeners explosion sex drugs and rock'n'roll X-message-flag: Please send plain text messages only. Do not send HTML emails. Thank you. User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --gfk5wufftue5mayv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Nick! This patch fixes a small warning in the msp430 backend (tested for --target=3Dmsp430-elf and --target=3Dmsp430-elfbare). =2E../gcc/configure --prefix=3D... --enable-werror-always --enable-language= s=3Dall --disable-gcov --disable-shared --disable-threads --target=3Dmsp430= -elf --without-headers [...] make V=3D1 all-gcc [...] /usr/lib/gcc-snapshot/bin/g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIR= ECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -= W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribu= te -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-= overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc= /gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp= /include -I../../gcc/gcc/../libcody -I../../gcc/gcc/../libdecnumber -I../.= =2E/gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/gcc/../libbac= ktrace -o msp430.o -MT msp430.o -MMD -MP -MF ./.deps/msp430.TPo ../../gcc= /gcc/config/msp430/msp430.cc =2E./../gcc/gcc/config/msp430/msp430.cc: In function 'int msp430_single_op_= cost(rtx, bool, rtx)': =2E./../gcc/gcc/config/msp430/msp430.cc:1463:49: error: unused parameter 'o= uter_rtx' [-Werror=3Dunused-parameter] 1463 | msp430_single_op_cost (rtx dst, bool speed, rtx outer_rtx) | ~~~~^~~~~~~~~ cc1plus: all warnings being treated as errors make[1]: *** [Makefile:2440: msp430.o] Error 1 make[1]: Leaving directory '/var/lib/laminar/run/gcc-msp430-elf/1/toolchain= -build/gcc' make: *** [Makefile:4584: all-gcc] Error 2 2022-09-06 Jan-Benedict Glaw gcc/ChangeLog: * config/msp430/msp430.cc (msp430_single_op_cost): Mark unused argument. diff --git a/gcc/config/msp430/msp430.cc b/gcc/config/msp430/msp430.cc index 7a378ceac56..2909cabd3ff 100644 --- a/gcc/config/msp430/msp430.cc +++ b/gcc/config/msp430/msp430.cc @@ -1460,7 +1460,7 @@ msp430_get_inner_dest_code (rtx x) /* Calculate the cost of an MSP430 single-operand instruction, for operand= DST within the RTX OUTER_RTX, optimizing for speed if SPEED is true. */ static int -msp430_single_op_cost (rtx dst, bool speed, rtx outer_rtx) +msp430_single_op_cost (rtx dst, bool speed, rtx outer_rtx ATTRIBUTE_UNUSED) { enum rtx_code dst_code =3D GET_CODE (dst); const struct single_op_cost *cost_p; Okay for HEAD? Thanks, Jan-Benedict --=20 --gfk5wufftue5mayv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQlDTvPcScNjKREqWEdvV51g5nhuwUCYxb9agAKCRAdvV51g5nh uy7rAKCND2C90xgF4NA+v8UyI8MD7XdxBACfcc+IIDqrdSVbiXjZu5yTglh9yd8= =Bjip -----END PGP SIGNATURE----- --gfk5wufftue5mayv--