mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Jₑₙₛ Gustedt" <jens.gustedt@inria.fr>
To: Rich Felker <dalias@libc.org>
Cc: musl@lists.openwall.com
Subject: Re: [musl] adding C23 support
Date: Sat, 2 Mar 2024 09:11:29 +0100	[thread overview]
Message-ID: <20240302091129.78d8bbb8@inria.fr> (raw)
In-Reply-To: <20240301211732.GB4163@brightrain.aerifal.cx>

Rich,

on Fri, 1 Mar 2024 16:17:32 -0500 you (Rich Felker <dalias@libc.org>)
wrote:

> On Fri, Mar 01, 2024 at 08:57:44PM +0100, Jₑₙₛ Gustedt wrote:
> > > Some questions:
> > > 
> > > - Do the final stdbit.h interfaces require external functions, or
> > > is a header-only implementation acceptable? Has anything changed
> > > on these we need to be aware of?  
> > 
> > Yes, these require all external functions, besides for the tg
> > interfaces.  
> 
> That's unfortunate. It's a really huge number of functions that it's
> hard to imagine anyone wanting as external rather than inline.

This is a lot, I completely agree.

> Normally we aim to put everything in independent TUs, but I think here
> that might end up overflowing the ar/link command lines or something
> if we did it.

Then wait for the <math.h> functions, this is even worse :-(

At least on the architecture that I use musl is compiled with function
sections these days, so this should not blow up executable size
unreasonably, I think.

> It's that it follows a DRY principle, and avoids the extra creative
> machinery you were trying to do to get warnings/errors to appear in
> the right places due to how multiple clauses of _Generic are handled.
> 
> I think the char version might still need _Generic, but it would be a
> _Generic outside/in-front-of the call (as a subexpression of the
> typeof for the cast) without anything complex inside it.

Ok, I'll look into that.

Thanks
Jₑₙₛ

-- 
:: ICube :::::::::::::::::::::::::::::: deputy director ::
:: Université de Strasbourg :::::::::::::::::::::: ICPS ::
:: INRIA Nancy Grand Est :::::::::::::::::::::::: Camus ::
:: :::::::::::::::::::::::::::::::::::: ☎ +33 368854536 ::
:: https://icube-icps.unistra.fr/index.php/Jens_Gustedt ::

  reply	other threads:[~2024-03-02  8:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-01 15:46 Jₑₙₛ Gustedt
2024-03-01 16:34 ` Rich Felker
2024-03-01 18:10   ` Rich Felker
2024-03-01 19:57     ` Jₑₙₛ Gustedt
2024-03-01 21:17       ` Rich Felker
2024-03-02  8:11         ` Jₑₙₛ Gustedt [this message]
2024-03-03  0:06         ` Gabriel Ravier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240302091129.78d8bbb8@inria.fr \
    --to=jens.gustedt@inria.fr \
    --cc=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).