From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: Emacs' C: static inline considered useless nowadays? Date: Tue, 18 Oct 2022 19:01:41 +0200 Message-ID: References: <874jw37764.fsf@rfc20.org> <835ygj3rqp.fsf@gnu.org> <877d0y6zex.fsf@rfc20.org> <83ilki1cyo.fsf@gnu.org> <874jw26vht.fsf@rfc20.org> <83h701278i.fsf@gnu.org> <83zgdtyxra.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Db9nJc2JRGe03eZZ" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29877"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 18 19:21:11 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1okqH8-0007TI-Dj for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Oct 2022 19:21:10 +0200 Original-Received: from localhost ([::1]:48960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okqH6-0004ST-1o for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Oct 2022 13:21:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okpyO-0001v9-BM for emacs-devel@gnu.org; Tue, 18 Oct 2022 13:01:48 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:49810) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okpyL-0006N3-Ph for emacs-devel@gnu.org; Tue, 18 Oct 2022 13:01:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=lVsKryhPopsJ9bnlXrwOcu5iAtNdK7aNmV08MoxrFvw=; b=YS/DBuclrU/4b7sFFG6h7QUdWg Hb5lFOw/VAfZqdc/m7dhHKZi9fD/j5kWDhMsD6ykfDYY46BmQ+I8PO3a/HTqpxDccUafRGmFzgs0+ S3kuE+yo9fO/pnH/Z3F63yd/OU0fHWNnlI8/XJCYiUk0olAw51mCl9K0aOQUGL6WipUeXTf/jZ+ja g6i4xMQesQzYWQDyOv9b3ej/qQ1TlbIvjaTY+mSQ11fWTRj1f2GbjbjXQSi+AYvt0rP3BtWrPfz07 oB0YKhrZpweaItctU9QPpWryedejsc0Qdh4JJhd5VALtSRG0SIAVMNUUC3ywu2EFoUxieZpdI//SF j1+BQMVQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1okpyH-0000pJ-9h for emacs-devel@gnu.org; Tue, 18 Oct 2022 19:01:41 +0200 Content-Disposition: inline In-Reply-To: <83zgdtyxra.fsf@gnu.org> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:298067 Archived-At: --Db9nJc2JRGe03eZZ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 18, 2022 at 06:09:13PM +0300, Eli Zaretskii wrote: > > From: Stefan Monnier > > Cc: Matt Armstrong , emacs-devel@gnu.org > > Date: Tue, 18 Oct 2022 09:32:32 -0400 > >=20 > > > Never mind that; it's a historic accident. Just use 'static' and let > > > the compiler decide when to inline. > >=20 > > Since both `gcc` and `clang` obey the `inline` attribute in that case > > for options like `-Og`, it can still be a good idea to keep them in > > those places where we think it makes a significant difference. >=20 > Experience shows that we have no idea where it makes a difference. In the case of gcc, it's at least documented [1] (no idea about clang, but I'd assume it's documented as well). For proprietary compilers... we don't talk about proprietary compilers, do we? ;-) Cheers --=20 t --Db9nJc2JRGe03eZZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCY07b7gAKCRAFyCz1etHa Rhj4AJ9b8wOgBTH4i4fP48WUwlIcrE/OfQCeIRhqR01pnUuvZWzxZm5SMRpBRk0= =99xJ -----END PGP SIGNATURE----- --Db9nJc2JRGe03eZZ--