all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: "Mattias Engdegård" <mattias.engdegard@gmail.com>
Cc: 70898@debbugs.gnu.org
Subject: bug#70898: switching to <stdbit.h> for Emacs bit ops
Date: Mon, 13 May 2024 09:56:46 -0700	[thread overview]
Message-ID: <b394aa86-5753-4c55-997b-7e32ef491e99@cs.ucla.edu> (raw)
In-Reply-To: <69689DCA-4836-49F2-B163-0F5D151FF03F@gmail.com>

On 2024-05-13 07:34, Mattias Engdegård wrote:
> Has C23 been frozen yet? The most recent accessible draft I could find was N3096.

It's not final, but it's pretty frozen. I doubt whether the stdbit spec 
will change.

Yes, n3096 is the latest public draft.


> Overall happy with the changes but haven't read them in detail.
> Minor things I stumbled upon:
> 
>> @@ -4269,7 +4263,9 @@ endif
>>   ## begin gnulib module verify
>>   ifeq (,$(OMIT_GNULIB_MODULE_verify))
>>   
>> +ifneq (,$(gl_GNULIB_ENABLED_verify_CONDITION))
>>   
>> +endif
> 
> Unfinished work?

That was generated automatically by gnulib-tool and is harmless. That 
being said, I installed a change to the Gnulib stdbit module for other 
reasons (porting to theoretical platforms where C integers are wider 
than 256 bits!) here:

https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=9768940fbd11558b8dab3453aa419a3433933d50

and I expect that will remove the harmless code by removing the 
conditional dependency on Gnulib's assert-h module.


>> +/* 1 if supported, -1 if not, 0 if unknown.  */
>> +extern signed char __gl_stdint_popcount_support;
> 
> `__gl_stdbit_popcount_support`, maybe?

Thanks, fixed here:

https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=9deb8e8891e36968deeb93bd666670f7950d1095


> (By the way, in case you are on the WG: the N3096 draft has

Yes, that text is weird and I also didn't have a clue as to what it 
meant. So I cloned latest glibc+gcc behavior and hoped for the best.

I have avoided dealing with that WG for decades as my political skills, 
such as they are, are better deployed elsewhere. But you're welcome to 
file a bug report.






  reply	other threads:[~2024-05-13 16:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-12 22:09 bug#70898: switching to <stdbit.h> for Emacs bit ops Paul Eggert
2024-05-13 14:34 ` Mattias Engdegård
2024-05-13 16:56   ` Paul Eggert [this message]
2024-05-14 11:11     ` Mattias Engdegård
2024-05-18 17:32     ` Paul Eggert

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=b394aa86-5753-4c55-997b-7e32ef491e99@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=70898@debbugs.gnu.org \
    --cc=mattias.engdegard@gmail.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.