This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new 8a34e1c650 GCC 15 compatibility: fix virtual thunk generation in
bridges
8a34e1c650 is described below
commit 8a34e1c650c7323fa5ff73ff0442ca2df1ef8d92
Author: Pedro Giffuni <[email protected]>
AuthorDate: Sun Nov 29 02:29:37 2026 -0500
GCC 15 compatibility: fix virtual thunk generation in bridges
- main/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx: adjust ABI
- main/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx: fix thunk
generation
---
main/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx | 1 -
main/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx | 3 ++-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/main/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx
b/main/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx
index de9f7dd7bd..7540253060 100644
--- a/main/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx
+++ b/main/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx
@@ -73,7 +73,6 @@ struct __cxa_eh_globals
__cxa_exception *caughtExceptions;
unsigned int uncaughtExceptions;
};
-extern "C" __cxa_eh_globals *__cxa_get_globals () throw();
// -----
diff --git a/main/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx
b/main/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx
index 3ffa70a9c2..c207c535ee 100644
--- a/main/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx
+++ b/main/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx
@@ -26,6 +26,7 @@
#include <exception>
#include <typeinfo>
+#include <cxxabi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -447,7 +448,7 @@ static void cpp_call(
catch (...)
{
// fill uno exception
- fillUnoException(
CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc,
pThis->getBridge()->getCpp2Uno() );
+ fillUnoException( reinterpret_cast<
CPPU_CURRENT_NAMESPACE::__cxa_eh_globals* >( ::__cxxabiv1::__cxa_get_globals()
)->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
// temporary params
for ( ; nTempIndizes--; )