* modules/stdalign-h: Renamed from modules/stdalign.
* modules/stdalign-h-tests: Renamed from modules/stdalign-tests.
* modules/stdalign-h-c++-tests: Renamed from modules/stdalign-c++-tests.
* tests/test-stdalign-h-c++.cc: Renamed from tests/test-stdalign-c++.cc.
* doc/posix-headers/stdalign.texi: Update.
* modules/stdalign: New file.
+2024-12-27 Bruno Haible <bruno@clisp.org>
+
+ Rename module stdalign to stdalign-h.
+ * modules/stdalign-h: Renamed from modules/stdalign.
+ * modules/stdalign-h-tests: Renamed from modules/stdalign-tests.
+ * modules/stdalign-h-c++-tests: Renamed from modules/stdalign-c++-tests.
+ * tests/test-stdalign-h-c++.cc: Renamed from tests/test-stdalign-c++.cc.
+ * doc/posix-headers/stdalign.texi: Update.
+ * modules/stdalign: New file.
+
2024-12-27 Bruno Haible <bruno@clisp.org>
Rename module spawn to spawn-h.
support these keywords, which were standardized by C23.
On C23 and later platforms, @code{<stdalign.h>} has no effect and need
not be included.
-@mindex stdalign
+@mindex stdalign-h
(Gnulib-using code should not include
@code{<stdalign.h>} without also employing Gnulib's now-deprecated
-@code{stdalign} module.)
+@code{stdalign-h} module.)
@item
This header file is missing on many platforms:
FreeBSD 6.4, NetBSD 7.1, OpenBSD 7.5, Minix 3.3.0, AIX 7.1, HP-UX 11.31, Solaris 11.3, mingw, MSVC 14, Android 9.0.
This portability problem should not matter with code using Gnulib's
@code{alignasof} module, as such code should use @code{alignas} and
@code{alignof} without checking these two macros. (Gnulib's
-now-deprecated @code{stdalign} module defines these two macros.)
+now-deprecated @code{stdalign-h} module defines these two macros.)
@item
@c https://github.com/llvm/llvm-project/issues/81472
Clang 17 does not support an @code{alignas} attribute in the
Description:
alignas and alignof that are like C23 and C++11.
+Status:
+deprecated
+
Notice:
-The stdalign module is deprecated.
-New code should use the alignasof module, and not include <stdalign.h>.
+This module is deprecated. Use the module 'stdalign-h' instead.
Files:
-lib/stdalign.in.h
-m4/stdalign.m4
Depends-on:
-alignasof
-gen-header
+stdalign-h
configure.ac:
-gl_STDALIGN_H
-gl_CONDITIONAL_HEADER([stdalign.h])
-AC_PROG_MKDIR_P
Makefile.am:
-BUILT_SOURCES += $(STDALIGN_H)
-
-# We need the following in order to create <stdalign.h> when the system
-# doesn't have one that works.
-if GL_GENERATE_STDALIGN_H
-stdalign.h: stdalign.in.h $(top_builddir)/config.status
-@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
- $(gl_V_at)$(SED_HEADER_STDOUT) \
- -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
- -e 's|@''HAVE_STDALIGN_H''@|$(HAVE_STDALIGN_H)|g' \
- -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
- -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
- -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
- -e 's|@''NEXT_STDALIGN_H''@|$(NEXT_STDALIGN_H)|g' \
- $(srcdir)/stdalign.in.h > $@-t
- $(AM_V_at)mv $@-t $@
-else
-stdalign.h: $(top_builddir)/config.status
- rm -f $@
-endif
-MOSTLYCLEANFILES += stdalign.h stdalign.h-t
Include:
LGPLv2+
Maintainer:
-all
+++ /dev/null
-Files:
-tests/test-stdalign-c++.cc
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-stdalign-c++
-check_PROGRAMS += test-stdalign-c++
-test_stdalign_c___SOURCES = test-stdalign-c++.cc
-endif
--- /dev/null
+Description:
+alignas and alignof that are like C23 and C++11.
+
+Notice:
+The stdalign module is deprecated.
+New code should use the alignasof module, and not include <stdalign.h>.
+
+Files:
+lib/stdalign.in.h
+m4/stdalign.m4
+
+Depends-on:
+alignasof
+gen-header
+
+configure.ac:
+gl_STDALIGN_H
+gl_CONDITIONAL_HEADER([stdalign.h])
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += $(STDALIGN_H)
+
+# We need the following in order to create <stdalign.h> when the system
+# doesn't have one that works.
+if GL_GENERATE_STDALIGN_H
+stdalign.h: stdalign.in.h $(top_builddir)/config.status
+@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
+ $(gl_V_at)$(SED_HEADER_STDOUT) \
+ -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
+ -e 's|@''HAVE_STDALIGN_H''@|$(HAVE_STDALIGN_H)|g' \
+ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
+ -e 's|@''NEXT_STDALIGN_H''@|$(NEXT_STDALIGN_H)|g' \
+ $(srcdir)/stdalign.in.h > $@-t
+ $(AM_V_at)mv $@-t $@
+else
+stdalign.h: $(top_builddir)/config.status
+ rm -f $@
+endif
+MOSTLYCLEANFILES += stdalign.h stdalign.h-t
+
+Include:
+
+License:
+LGPLv2+
+
+Maintainer:
+all
--- /dev/null
+Files:
+tests/test-stdalign-h-c++.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-stdalign-h-c++
+check_PROGRAMS += test-stdalign-h-c++
+test_stdalign_h_c___SOURCES = test-stdalign-h-c++.cc
+endif
Depends-on:
alignasof-tests
-stdalign-c++-tests
+stdalign-h-c++-tests
configure.ac: