> > * modules/count-leading-zeros:
> > * modules/count-one-bits:
> > * modules/count-trailing-zeros: Now obsolete,
> 
> 'obsolete' is the wrong status here, as it has consequences on how gnulib-tool
> handles the module [1]. What you meant is 'deprecated', not 'obsolete'.

As expected, this change produces a build failure of the 'hamt' module:

../../gllib/hamt.c:26:10: fatal error: count-one-bits.h: No such file or 
directory
   26 | #include "count-one-bits.h"
      |          ^~~~~~~~~~~~~~~~~~

And the 'stdbit' module with all its functions is overkill, when only one
function is needed.

This patch fixes both issues.


2026-03-15  Bruno Haible  <[email protected]>

        count-*: Fix module status (regression yesterday).
        * modules/count-leading-zeros: Mark as deprecated, not obsolete.
        Recommend module 'stdc_leading_zeros' instead of 'stdbit'.
        * modules/count-trailing-zeros: Mark as deprecated, not obsolete.
        Recommend module 'stdc_trailing_zeros' instead of 'stdbit'.
        * modules/count-one-bits: Mark as deprecated, not obsolete. Recommend
        module 'stdc_count_ones' instead of 'stdbit'.
        * NEWS: Update.

diff --git a/NEWS b/NEWS
index 13e4d3d002..d1d62ea3f5 100644
--- a/NEWS
+++ b/NEWS
@@ -78,11 +78,14 @@ User visible incompatible changes
 
 Date        Modules         Changes
 
-2026-03-14  count-leading-zeros
-            count-one-bits
-            count-trailing-zeros
-                            These modules are now obsolete.
-                            Use the stdbit module instead.
+2026-03-15  count-one-bits  This module is obsolete.
+                            Use the module 'stdc_count_ones' instead.
+
+2026-03-15  count-trailing-zeros  This module is obsolete.
+                                  Use the module 'stdc_trailing_zeros' instead.
+
+2026-03-15  count-leading-zeros  This module is obsolete.
+                                 Use the module 'stdc_leading_zeros' instead.
 
 2026-02-21  streq           This module is renamed to 'streq-opt'. Its include
                             file is renamed from "streq.h" to "streq-opt.h".
diff --git a/modules/count-leading-zeros b/modules/count-leading-zeros
index 447a300906..30ccbd0fd9 100644
--- a/modules/count-leading-zeros
+++ b/modules/count-leading-zeros
@@ -2,10 +2,10 @@ Description:
 Counts the number of leading 0-bits in a word.
 
 Status:
-obsolete
+deprecated
 
 Notice:
-This module is obsolete; use the stdbit module instead.
+This module is deprecated; use the 'stdc_leading_zeros' module instead.
 
 Files:
 lib/count-leading-zeros.c
diff --git a/modules/count-one-bits b/modules/count-one-bits
index d517a29c0c..1bf40f0f26 100644
--- a/modules/count-one-bits
+++ b/modules/count-one-bits
@@ -2,10 +2,10 @@ Description:
 Counts the number of 1-bits in a word.
 
 Status:
-obsolete
+deprecated
 
 Notice:
-This module is obsolete; use the stdbit module instead.
+This module is deprecated; use the 'stdc_count_ones' module instead.
 
 Files:
 lib/count-one-bits.c
diff --git a/modules/count-trailing-zeros b/modules/count-trailing-zeros
index 64a2210618..b66ea17b07 100644
--- a/modules/count-trailing-zeros
+++ b/modules/count-trailing-zeros
@@ -2,10 +2,10 @@ Description:
 Counts the number of trailing 0-bits in a word.
 
 Status:
-obsolete
+deprecated
 
 Notice:
-This module is obsolete; use the stdbit module instead.
+This module is deprecated; use the 'stdc_trailing_zeros' module instead.
 
 Files:
 lib/count-trailing-zeros.c




Reply via email to