From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 48DC33858405 for ; Fri, 10 Sep 2021 21:59:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 48DC33858405 Received: from vapier (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with SMTP id 4690E335DCC for ; Fri, 10 Sep 2021 21:59:18 +0000 (UTC) Date: Fri, 10 Sep 2021 17:59:17 -0400 From: Mike Frysinger To: cgen@sourceware.org Subject: Re: [PATCH] sid/sim: constify sim_machs storage Message-ID: Mail-Followup-To: cgen@sourceware.org References: <20210628153420.25536-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bijUmg+Q2r4om0dp" Content-Disposition: inline In-Reply-To: <20210628153420.25536-1-vapier@gentoo.org> X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cgen@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cgen mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2021 21:59:22 -0000 --bijUmg+Q2r4om0dp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ping ... On 28 Jun 2021 11:34, Mike Frysinger via Cgen wrote: > The array itself is read-only, so mark it const. > --- > sid.scm | 2 +- > sim.scm | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/sid.scm b/sid.scm > index d6d6ed30a890..c34338371d82 100644 > --- a/sid.scm > +++ b/sid.scm > @@ -1361,7 +1361,7 @@ > =20 > (define (/gen-mach-data) > (string-append > - "const MACH *sim_machs[] =3D\n{\n" > + "const MACH * const sim_machs[] =3D\n{\n" > (string-map (lambda (mach) > (gen-obj-sanitize > mach > diff --git a/sim.scm b/sim.scm > index f965ef1fcb17..a153f8cee720 100644 > --- a/sim.scm > +++ b/sim.scm > @@ -1475,7 +1475,7 @@ > =20 > (define (/gen-mach-data) > (string-append > - "const SIM_MACH *sim_machs[] =3D\n{\n" > + "const SIM_MACH * const sim_machs[] =3D\n{\n" > (string-map (lambda (mach) > (gen-obj-sanitize > mach > --=20 > 2.31.1 >=20 --bijUmg+Q2r4om0dp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmE71TUACgkQQWM7n+g3 9YEccA/+OaymAT4EqJ1AxebELDrtrr2YZUrfDNSvNMJpGwmVYGs+CXXIE385RbOr 7VIQn/Sgn6J7qBjgtBr02L+kUNPDgyibA9uz5lJXLQ+RpCf+XubKHVG/qwZzXC6k tKRLizN7o0zyliRleb72kb1SF2Li4QlqDaNKF2ZwZH906/wB6scosjeXNVbTyBmw eRD7vfnCnSX08IpX7X3k/WGuF1TIkCSQwA/yjMUsdNupA6vhc+ssUdn+3X+fH0Ti iQf7RvLDq/0x6syp4EOeZVLXYL+JT8bd7JBTPY1KcZmd6jk9swEt9UeyytbqO7g/ X7yURXHVqooNcuv06gG+83DePdJquSV4yVbZVl1y5tOVUhkqLDSwm7uP2UiopBeB l5mBPDZ8vRcx6LWFDZLcO7IqLnPOxHmzP5DNYFTvG5dOf65ZHFLmO8FZ1yUEoXmo 7lreEtZWmOn+7I2GP5vBS593io+IktjxtHz/4gPfMtD05zdw/CIA/A9J/u8UeNU6 q+btkTcUmtNuLnPwMNXNidcAvBAfZLd+9T1wgYoXLuluLcowtE2chhT7Pobg5Ix+ u0X08/cieVaRlp+1h340yHRcKfHccNWoGZF3QHJCT+nAcdHykYVVTXX92Uddtdt2 U8i6wMj1kCITimGvGPwH/hlCQgpN0l0GIFICKTensPnUvm9PQjo= =Wd18 -----END PGP SIGNATURE----- --bijUmg+Q2r4om0dp--