libstdc++: Fix the return type of __cxa_finalize
authorFangrui Song <maskray@google.com>
Mon, 4 May 2020 22:07:19 +0000 (23:07 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 4 May 2020 22:07:19 +0000 (23:07 +0100)
This should return void according to the Itanium C++ ABI.

2020-05-04  Fangrui Song  <maskray@google.com>

* libsupc++/cxxabi.h (__cxa_finalize): Fix return type.

libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/cxxabi.h

index a011ec5..f4839de 100644 (file)
@@ -1,3 +1,7 @@
+2020-05-04  Fangrui Song  <maskray@google.com>
+
+       * libsupc++/cxxabi.h (__cxa_finalize): Fix return type.
+
 2020-05-04  Jonathan Wakely  <jwakely@redhat.com>
 
        * doc/xml/faq.xml: Use working link for SGI STL FAQ.
index 5029820..000713e 100644 (file)
@@ -127,7 +127,7 @@ namespace __cxxabiv1
   int
   __cxa_atexit(void (*)(void*), void*, void*) _GLIBCXX_NOTHROW;
 
-  int
+  void
   __cxa_finalize(void*);
 
   // TLS destruction.