Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
c17f0175
Kaydet (Commit)
c17f0175
authored
Haz 20, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
...and similarly for __cxa_allocate_exception and __cxa_throw
Change-Id: I87ae299aac97180f0587c553d85b051decca155c
üst
41de10f5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
17 deletions
+44
-17
except.cxx
bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx
+2
-2
share.hxx
bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx
+18
-15
config_gcc.h.in
config_host/config_gcc.h.in
+2
-0
configure.ac
configure.ac
+22
-0
No files found.
bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx
Dosyayı görüntüle @
c17f0175
...
...
@@ -250,7 +250,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
Reference
<
XInterface
>
()
);
}
pCppExc
=
__cxa_allocate_exception
(
pTypeDescr
->
nSize
);
pCppExc
=
__cx
xabiv1
::
__cx
a_allocate_exception
(
pTypeDescr
->
nSize
);
::
uno_copyAndConvertData
(
pCppExc
,
pUnoExc
->
pData
,
pTypeDescr
,
pUno2Cpp
);
// destruct uno exception
...
...
@@ -269,7 +269,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
}
}
__cxa_throw
(
pCppExc
,
rtti
,
deleteException
);
__cx
xabiv1
::
__cx
a_throw
(
pCppExc
,
rtti
,
deleteException
);
}
//==================================================================================================
...
...
bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx
Dosyayı görüntüle @
c17f0175
...
...
@@ -80,27 +80,30 @@ struct __cxa_eh_globals
// Therefore, provide a declaration here for old GCC (libstdc++, really) version
// that returns a void pointer, and in the code calling it always cast to the
// above fake definition of CPPU_CURRENT_NAMESPACE::__cxa_eh_globals (which
// hopefully keeps matching the real definition in libstdc++):
// hopefully keeps matching the real definition in libstdc++); similarly for
// __cxa_allocate_exception and __cxa_throw, though they do not have the
// additional problem of an incompletely declared return type:
#if !HAVE_GCC_CXXABI_H_CXA_GET_GLOBALS
namespace
__cxxabiv1
{
extern
"C"
void
*
__cxa_get_globals
()
throw
();
}
namespace
__cxxabiv1
{
extern
"C"
void
*
__cxa_get_globals
()
throw
();
}
#endif
namespace
CPPU_CURRENT_NAMESPACE
{
#if !HAVE_GCC_CXXABI_H_CXA_ALLOCATE_EXCEPTION
namespace
__cxxabiv1
{
extern
"C"
void
*
__cxa_allocate_exception
(
std
::
size_t
thrown_size
)
throw
();
}
#endif
// The following are in cxxabi.h since GCC 4.7 (they are wrapped in
// CPPU_CURRENT_NAMESPACE here as different GCC versions have slightly different
// declarations for them, e.g., with or without throw() specification, so would
// complain about redeclarations of these somewhat implicitly declared
// functions):
#if __GNUC__ == 4 && __GNUC_MINOR__ <= 6
extern
"C"
void
*
__cxa_allocate_exception
(
std
::
size_t
thrown_size
)
throw
();
extern
"C"
void
__cxa_throw
(
void
*
thrown_exception
,
void
*
tinfo
,
void
(
*
dest
)
(
void
*
)
)
__attribute__
((
noreturn
));
#if !HAVE_GCC_CXXABI_H_CXA_THROW
namespace
__cxxabiv1
{
extern
"C"
void
__cxa_throw
(
void
*
thrown_exception
,
void
*
tinfo
,
void
(
*
dest
)(
void
*
))
__attribute__
((
noreturn
));
}
#endif
// -----
namespace
CPPU_CURRENT_NAMESPACE
{
//==================================================================================================
void
raiseException
(
...
...
config_host/config_gcc.h.in
Dosyayı görüntüle @
c17f0175
...
...
@@ -10,7 +10,9 @@
#ifndef CONFIG_GCC_H
#define CONFIG_GCC_H
#define HAVE_GCC_CXXABI_H_CXA_ALLOCATE_EXCEPTION 0
#define HAVE_GCC_CXXABI_H_CXA_GET_GLOBALS 0
#define HAVE_GCC_CXXABI_H_CXA_THROW 0
#endif
...
...
configure.ac
Dosyayı görüntüle @
c17f0175
...
...
@@ -5572,6 +5572,17 @@ if test "$GCC" = "yes"; then
], [AC_MSG_RESULT([no])])
CFLAGS=$save_CFLAGS
AC_MSG_CHECKING([whether $CXX declares __cxa_allocate_exception in cxxabi.h])
AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#include <cxxabi.h>
void * f() { return __cxxabiv1::__cxa_allocate_exception(0); }
])], [
AC_DEFINE([HAVE_GCC_CXXABI_H_CXA_ALLOCATE_EXCEPTION],[1])
AC_MSG_RESULT([yes])
], [AC_MSG_RESULT([no])])
AC_LANG_POP([C++])
AC_MSG_CHECKING([whether $CXX declares __cxa_get_globals in cxxabi.h])
AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
...
...
@@ -5582,6 +5593,17 @@ if test "$GCC" = "yes"; then
AC_MSG_RESULT([yes])
], [AC_MSG_RESULT([no])])
AC_LANG_POP([C++])
AC_MSG_CHECKING([whether $CXX declares __cxa_throw in cxxabi.h])
AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#include <cxxabi.h>
void f() { __cxxabiv1::__cxa_throw(0, 0, 0); }
])], [
AC_DEFINE([HAVE_GCC_CXXABI_H_CXA_THROW],[1])
AC_MSG_RESULT([yes])
], [AC_MSG_RESULT([no])])
AC_LANG_POP([C++])
fi
AC_SUBST(HAVE_GCC_NO_LONG_DOUBLE)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment