diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-12-18 10:59:46 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-12-18 13:54:27 +0100 |
commit | 97d736d27435fb26d5609000f77bd79ece08572e (patch) | |
tree | 29ffd1c3fb18590468a69ce92a4e0d2f991982f2 | |
parent | c85588548bb016eb88247de75e303be2585023a6 (diff) |
Fix typos concerning the __cxa_exception check
...introduced with 069506bcb0ee4005b01c22095ed427b96b553c98 "Use config_cxxabi.h
to check for __cxa_eh_globals, __cxa_exception", but which appear to have been
harmless as (a) the checked-for __cxxabiv1::__cxa_exceptions never existed in
cxxabi.h, and (b) lack of __cxxabiv1::__cxa_exception in cxxabi.h happened to
conincide with !HAVE_CXXABI_H_CXA_EH_GLOBALS
Change-Id: I13f8a2b3cf0f03f2bc96cf053d2b571860055978
Reviewed-on: https://gerrit.libreoffice.org/85373
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_arm/share.hxx | 2 | ||||
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx | 2 | ||||
-rw-r--r-- | configure.ac | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_arm/share.hxx b/bridges/source/cpp_uno/gcc3_linux_arm/share.hxx index ac380969e21b..0faa612d92fd 100644 --- a/bridges/source/cpp_uno/gcc3_linux_arm/share.hxx +++ b/bridges/source/cpp_uno/gcc3_linux_arm/share.hxx @@ -60,7 +60,7 @@ public: } #endif -#if !HAVE_CXXABI_H_CXA_EH_GLOBALS +#if !HAVE_CXXABI_H_CXA_EXCEPTION namespace __cxxabiv1 { struct __cxa_exception { diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx index 864173470476..e8afe35c4f59 100644 --- a/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx +++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx @@ -101,7 +101,7 @@ public: } #endif -#if !HAVE_CXXABI_H_CXA_EH_GLOBALS +#if !HAVE_CXXABI_H_CXA_EXCEPTION // <https://mentorembedded.github.io/cxx-abi/abi-eh.html>, // libcxxabi/src/cxa_exception.hpp: namespace __cxxabiv1 { diff --git a/configure.ac b/configure.ac index ba5e87ea1641..ad246a64f37a 100644 --- a/configure.ac +++ b/configure.ac @@ -6312,14 +6312,14 @@ if test "$GCC" = "yes" -o "$COM_IS_CLANG" = TRUE; then ], [AC_MSG_RESULT([no])]) AC_LANG_POP([C++]) - AC_MSG_CHECKING([whether $CXX_BASE defines __cxa_exceptions in cxxabi.h]) + AC_MSG_CHECKING([whether $CXX_BASE defines __cxa_exception in cxxabi.h]) AC_LANG_PUSH([C++]) AC_COMPILE_IFELSE([AC_LANG_SOURCE([ #include <cstddef> #include <cxxabi.h> - std::size_t f() { return sizeof(__cxxabiv1::__cxa_exceptions); } + std::size_t f() { return sizeof(__cxxabiv1::__cxa_exception); } ])], [ - AC_DEFINE([HAVE_CXXABI_H_CXA_EXCEPTIONS],[1]) + AC_DEFINE([HAVE_CXXABI_H_CXA_EXCEPTION],[1]) AC_MSG_RESULT([yes]) ], [AC_MSG_RESULT([no])]) AC_LANG_POP([C++]) |