[v3,2/6] Makefile.inc, stdbit/Makefile.inc: Add stdbit

Message ID 20260416210047.2198615-3-joel@rtems.org
State New
Headers
Series Newlib and Cygwin C23 stdbit.h Support |

Commit Message

Joel Sherrill April 16, 2026, 9 p.m. UTC
  ---
 newlib/libc/Makefile.inc        |  1 +
 newlib/libc/stdbit/Makefile.inc | 15 +++++++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 newlib/libc/stdbit/Makefile.inc
  

Patch

diff --git a/newlib/libc/Makefile.inc b/newlib/libc/Makefile.inc
index d07eed764..39e98338d 100644
--- a/newlib/libc/Makefile.inc
+++ b/newlib/libc/Makefile.inc
@@ -56,6 +56,7 @@  include %D%/misc/Makefile.inc
 include %D%/unix/Makefile.inc
 include %D%/posix/Makefile.inc
 include %D%/syscalls/Makefile.inc
+include %D%/stdbit/Makefile.inc
 include %D%/iconv/Makefile.inc
 include %D%/xdr/Makefile.inc
 include %D%/ssp/Makefile.inc
diff --git a/newlib/libc/stdbit/Makefile.inc b/newlib/libc/stdbit/Makefile.inc
new file mode 100644
index 000000000..d70675718
--- /dev/null
+++ b/newlib/libc/stdbit/Makefile.inc
@@ -0,0 +1,15 @@ 
+libc_a_SOURCES += \
+	%D%/stdc_bit_ceil.c \
+	%D%/stdc_bit_floor.c \
+	%D%/stdc_bit_width.c \
+	%D%/stdc_count_ones.c \
+	%D%/stdc_count_zeros.c \
+	%D%/stdc_first_leading_one.c \
+	%D%/stdc_first_leading_zero.c \
+	%D%/stdc_first_trailing_one.c \
+	%D%/stdc_first_trailing_zero.c \
+	%D%/stdc_has_single_bit.c \
+	%D%/stdc_leading_ones.c \
+	%D%/stdc_leading_zeros.c \
+	%D%/stdc_trailing_ones.c \
+	%D%/stdc_trailing_zeros.c