[gcc r16-5620] libstdc++: Remove use of __packed name conflicting with newlib.

Tomasz Kaminski tkaminsk@gcc.gnu.org
Wed Nov 26 09:29:11 GMT 2025


https://gcc.gnu.org/g:b1e6fd80c3d64e412b02676b69e8ed3a011beb27

commit r16-5620-gb1e6fd80c3d64e412b02676b69e8ed3a011beb27
Author: Tomasz Kamiński <tkaminsk@redhat.com>
Date:   Wed Nov 26 10:27:18 2025 +0100

    libstdc++: Remove use of __packed name conflicting with newlib.
    
    libstdc++-v3/ChangeLog:
    
            * include/std/chrono (chrono::__hash): Rename __packed to
            __res.

Diff:
---
 libstdc++-v3/include/std/chrono | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/include/std/chrono b/libstdc++-v3/include/std/chrono
index 0cfad2ce1d0c..8dd79799a962 100644
--- a/libstdc++-v3/include/std/chrono
+++ b/libstdc++-v3/include/std/chrono
@@ -3401,8 +3401,8 @@ namespace __detail
 	 return chrono::__int_hash(chrono::__as_int(__vals)...);
        else
 	 {
-	   auto __packed = chrono::__pack_ints(chrono::__as_int(__vals)...);
-	   return chrono::__int_hash(__packed);
+	   auto __res = chrono::__pack_ints(chrono::__as_int(__vals)...);
+	   return chrono::__int_hash(__res);
 	 }
      }
  } // namespace chrono


More information about the Libstdc++-cvs mailing list