]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Tweak comment on generated #endif lines in bits/version.h
authorJonathan Wakely <jwakely@redhat.com>
Wed, 8 Oct 2025 11:42:41 +0000 (12:42 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 9 Oct 2025 14:25:59 +0000 (15:25 +0100)
commit71e95e871d62e446fe4391f4fd08be7609e311cf
tree6ab77b2256ec182b0480d2ab8a589f3eb2baa3bb
parent0738f0ae350d61e7d9462d4ba60364ae00bfdbdc
libstdc++: Tweak comment on generated #endif lines in bits/version.h

Make the #endif comment match the #if condition in the generated code.

Also adjust a comment in the Scheme code which describes the logic. The
__glibcxx_NAME macro is not defined _unconditionally_, as it still
depends on the conditions in cxxmin, extra_cond etca,. and the
__cpp_lib_NAME macro now depends on no_stdname too.

libstdc++-v3/ChangeLog:

* include/bits/version.tpl: Fix comment on #endif. Tweak
description of when macros are defined.
* include/bits/version.h: Regenerate.

Reviewed-by: Arsen Arsenović <arsen@aarsen.me>
Reviewed-by: Tomasz Kamiński <tkaminsk@redhat.com>
libstdc++-v3/include/bits/version.h
libstdc++-v3/include/bits/version.tpl