[PATCH v0 0/2] Add C23 stdbit.h functions
Howland, Craig D. - US
craig.howland@caci.com
Fri Mar 13 17:48:47 GMT 2026
________________________________
From: Joel Sherrill <joel@rtems.org>
Sent: Friday, March 13, 2026 1:03 PM
To: newlib@sourceware.org <newlib@sourceware.org>
Cc: Joel Sherrill <joel@rtems.org>
Subject: [PATCH v0 0/2] Add C23 stdbit.h functions
>This patch series is a draft and feedback is appreciated on what
>is required to run "autoreconf" to get build infrastructure that
>does not give an error. See
>https://sourceware.org/pipermail/newlib/2026/022334.html<https://sourceware.org/pipermail/newlib/2026/022334.html> for
>details on the make error.
>
>Once this builds, I can foresee at least one more problem.
>The header file stdbit.h does not have C23 guards and neither
>do any of the implementation files. If these function files
>are to be compiled by an older compiler without C23 support,
>they should be disabled. At this point, I see adding a C23
>guard to stdbit.c and stdbit/*.c files.
>
>But the first problem is getting it to build at all.
>
>Help appreciated.
>
> Joel Sherrill (2):
Joel:
One question: what about checks for the underlying __builtin* functions called? I know (newer) GCC has them, but do all the supported compilers? (In the latter case, perhaps the to-be-added C23 check would implicitly handle that?)
(Sorry, no ideas on the make problem.)
Craig
________________________________
This electronic message contains information from CACI International Inc or subsidiary companies, which may be company sensitive, proprietary, privileged or otherwise protected from disclosure. The information is intended to be used solely by the recipient(s) named above. If you are not an intended recipient, be aware that any review, disclosure, copying, distribution or use of this transmission or its contents is prohibited. If you have received this transmission in error, please notify the sender immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/newlib/attachments/20260313/76200383/attachment.htm>
More information about the Newlib
mailing list