Re: [PATCH v0 0/2] Add C23 stdbit.h functions
"Howland, Craig D. - US via Newlib" <[email protected]> Fri, 13 Mar 2026 17:48:47 +0000
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <BN2P110MB15441EA554A28D54B51D49EF9A45A@BN2P110MB1544.NAMP110.PROD.OUTLOOK.COM> |
________________________________ From: Joel Sherrill <[email protected]> Sent: Friday, March 13, 2026 1:03 PM To: [email protected] <[email protected]> Cc: Joel Sherrill <[email protected]> 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.