[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs' C: static inline considered useless nowadays?
From: |
tomas |
Subject: |
Re: Emacs' C: static inline considered useless nowadays? |
Date: |
Tue, 18 Oct 2022 19:01:41 +0200 |
On Tue, Oct 18, 2022 at 06:09:13PM +0300, Eli Zaretskii wrote:
> > From: Stefan Monnier <monnier@iro.umontreal.ca>
> > Cc: Matt Armstrong <matt@rfc20.org>, emacs-devel@gnu.org
> > Date: Tue, 18 Oct 2022 09:32:32 -0400
> >
> > > Never mind that; it's a historic accident. Just use 'static' and let
> > > the compiler decide when to inline.
> >
> > 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.
>
> 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
--
t
signature.asc
Description: PGP signature
- Re: Emacs' C: static inline considered useless nowadays?, (continued)
- Re: Emacs' C: static inline considered useless nowadays?, Stefan Monnier, 2022/10/16
- Re: Emacs' C: static inline considered useless nowadays?, Eli Zaretskii, 2022/10/17
- Re: Emacs' C: static inline considered useless nowadays?, Matt Armstrong, 2022/10/17
- Re: Emacs' C: static inline considered useless nowadays?, Eli Zaretskii, 2022/10/17
- Re: Emacs' C: static inline considered useless nowadays?, Matt Armstrong, 2022/10/17
- Re: Emacs' C: static inline considered useless nowadays?, Eli Zaretskii, 2022/10/17
- Re: Emacs' C: static inline considered useless nowadays?, Stefan Monnier, 2022/10/18
- Re: Emacs' C: static inline considered useless nowadays?, Eli Zaretskii, 2022/10/18
- Re: Emacs' C: static inline considered useless nowadays?,
tomas <=
- Re: Emacs' C: static inline considered useless nowadays?, Stefan Monnier, 2022/10/18
- Re: Emacs' C: static inline considered useless nowadays?, Eli Zaretskii, 2022/10/18
Re: Emacs' C: static inline considered useless nowadays?, Richard Stallman, 2022/10/18