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 839C13858C53; Fri, 28 Oct 2022 17:34:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 839C13858C53 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 9369442049; Fri, 28 Oct 2022 19:34:24 +0200 (CEST) Date: Fri, 28 Oct 2022 19:34:24 +0200 From: Jan-Benedict Glaw To: Aldy Hernandez , David Edelsohn , Segher Boessenkool , Kewen Lin Cc: gcc@gcc.gnu.org Subject: --target=powerpc64-linux_altivec: Use rs6000_linux64_override_options()? Message-ID: <20221028173424.vxsqkj6wf2k3inoa@lug-owl.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bkb6riizetl3xyi7" 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=-4.0 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP 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: --bkb6riizetl3xyi7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! While checking my bot build logs, I noticed that GCC configured for --target=3Dpowerpc64-linux_altivec will pull in linux64.h and linuxaltivec.h . linux64.h * Will "#define TARGET_USES_LINUX64_OPT 1" (to make static void rs6000_linux64_override_options() available in rs6000.cc). * Will "#define SUBSUBTARGET_OVERRIDE_OPTIONS" to use rs6000_linux64_override_options(). linuxaltivec.h OTOH * Will undef / "#define SUBSUBTARGET_OVERRIDE_OPTIONS rs6000_altivec_abi= =3D 1" and thus no longer use rs6000_linux64_override_options() * That triggers a warning (unused-function). To silence that warning, should linuxaltivec.h undefine TARGET_USES_LINUX64_OPT? Or set rs6000_altivec_abi=3D1 and call rs6000_linux64_override_options()? Thanks, Jan-Benedict --=20 --bkb6riizetl3xyi7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQlDTvPcScNjKREqWEdvV51g5nhuwUCY1wSnAAKCRAdvV51g5nh uzKoAJ96iN6o4wSuYUZyp3LaJHXrazvCnQCfTwNWTckqwcvET6PyU1WjgRIcLvU= =Llu2 -----END PGP SIGNATURE----- --bkb6riizetl3xyi7--