]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add comment about use of always_inline attributes [PR111050]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 16 Jan 2025 11:40:06 +0000 (11:40 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 7 Feb 2025 14:53:29 +0000 (14:53 +0000)
Add a comment referencing PR 111050, to ensure the fix made by
r12-9903-g1be57348229666 doesn't get reverted.

libstdc++-v3/ChangeLog:

PR libstdc++/111050
* include/bits/hashtable_policy.h (_Hash_node_value_base): Add
comment about always_inline attributes.

libstdc++-v3/include/bits/hashtable_policy.h

index 1fa8c01d5e8659efaaf2074c8fc6b0cc9b70674c..76fbc0d3b02435ecb827256157b7ff01244107f0 100644 (file)
@@ -310,6 +310,8 @@ namespace __detail
 
       __gnu_cxx::__aligned_buffer<_Value> _M_storage;
 
+      // These member functions must be always_inline, see PR 111050
+
       [[__gnu__::__always_inline__]]
       _Value*
       _M_valptr() noexcept