From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dellerweb.de (unknown [IPv6:2a02:c207:3003:236::1]) by sourceware.org (Postfix) with ESMTPS id B6E7D3858C33 for ; Wed, 19 Jul 2023 18:59:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B6E7D3858C33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=parisc-linux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=parisc-linux.org Received: from mx3210.localdomain (unknown [142.181.186.176]) by dellerweb.de (Postfix) with ESMTPSA id 24C071600462; Wed, 19 Jul 2023 20:59:55 +0200 (CEST) Received: by mx3210.localdomain (Postfix, from userid 1000) id D740422012C; Wed, 19 Jul 2023 18:59:52 +0000 (UTC) Date: Wed, 19 Jul 2023 18:59:52 +0000 From: John David Anglin To: GCC Patches Subject: [PATCH] Use strtol instead of std::stoi in gensupport.cc Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NhU7yiSf5XYQeoFy" Content-Disposition: inline X-Spam-Status: No, score=-8.8 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: --NhU7yiSf5XYQeoFy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Tested on trunk with hppa64-hp-hpux11.11. Okay? Dave --- Use strtol instead of std::stoi [PR110646] Implementation of std::stoi was overlooked on hppa-hpux, so use strtol instead. 2023-07-19 John David Anglin gcc/ChangeLog: PR bootstrap/110646 * gensupport.cc(class conlist): Use strtol instead of std::stoi. diff --git a/gcc/gensupport.cc b/gcc/gensupport.cc index 959d1d9c83c..87bcf5ee441 100644 --- a/gcc/gensupport.cc +++ b/gcc/gensupport.cc @@ -640,7 +640,7 @@ public: =20 name.assign (ns, len); if (numeric) - idx =3D std::stoi (name); + idx =3D strtol (name.c_str (), (char **)NULL, 10); } =20 /* Adds a character to the end of the string. */ --NhU7yiSf5XYQeoFy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEnRzl+6e9+DTrEhyEXb/Nrl8ZTfEFAmS4Mp4ACgkQXb/Nrl8Z TfHmyw/+Lvh2PwpLdWWa/NoQGxyjlsB0/3LxsLQKlcpRBFvqWK9ikRKaFZLRxP+w 883LpIZB3D6e8/H5uZsufkYzRcdPzYkM4TzvHrSXs/jHhPlEr2xfze/jMOCneUvi gm9eev9WomucgDRCJR6iJy8BLDOASTfD34rkoyNMIfizm5RQzw7WFwouSlY62bPv A5KwDc2nkqrnc0itNSjRkQOsDjvXuuffRKX9MLvyemqGRBaSMvvPzEd3WbbCObo/ fJhIKZ+sMWJLeqAkE5CIHKoeUDL8rE5ZpJwfG2Dar2DZxc5SDFcWz7N3Re0VHWPh loPygT2SXw9fTgQ4g10NhAjbJmoeEzVi79hqnk8RwEMvcfF0gkCoLnc+l+/uohx9 PQEwmZdIs81G6zLrE9vVKnxzRxS+eMQaC2ad1v/CtARYI2jBDPCnNC48A0IxokQz 5IEanf5cChAb18IN9S1fRzkp/7B+0SoWokBTpEUBTIioLAaBWWtMltHI6GBpn4EY gKxKtnl8/3GXfNAUDePpQZTcKE2aKNGj6ujCtdd0wO+2dWIVlBZJV057MQ41zBhB 4UwlZ8x5qlfr7clQHkCtbe07ku3WInl5bZ5aQsF9odcFyvW7eHzWeFLdAU58FfTV mitDXscUAimReIsgp7nXuJvQ0PmB/L2mLoGzSj59hMKBg1Xw5t0= =qjje -----END PGP SIGNATURE----- --NhU7yiSf5XYQeoFy--