[libcxxabi] r228356 - indicate tag type in C
Saleem Abdulrasool
compnerd at compnerd.org
Thu Feb 5 15:27:34 PST 2015
Author: compnerd
Date: Thu Feb 5 17:27:34 2015
New Revision: 228356
URL: http://llvm.org/viewvc/llvm-project?rev=228356&view=rev
Log:
indicate tag type in C
Mark the tag type (struct) for the _Unwind_Exception in C code. This silences a
warning from clang about missing struct specifier.
Modified:
libcxxabi/trunk/src/Unwind/UnwindLevel1-gcc-ext.c
libcxxabi/trunk/src/Unwind/UnwindLevel1.c
Modified: libcxxabi/trunk/src/Unwind/UnwindLevel1-gcc-ext.c
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/Unwind/UnwindLevel1-gcc-ext.c?rev=228356&r1=228355&r2=228356&view=diff
==============================================================================
--- libcxxabi/trunk/src/Unwind/UnwindLevel1-gcc-ext.c (original)
+++ libcxxabi/trunk/src/Unwind/UnwindLevel1-gcc-ext.c Thu Feb 5 17:27:34 2015
@@ -29,7 +29,7 @@
/// Called by __cxa_rethrow().
_LIBUNWIND_EXPORT _Unwind_Reason_Code
-_Unwind_Resume_or_Rethrow(_Unwind_Exception *exception_object) {
+_Unwind_Resume_or_Rethrow(struct _Unwind_Exception *exception_object) {
#if LIBCXXABI_ARM_EHABI
_LIBUNWIND_TRACE_API("_Unwind_Resume_or_Rethrow(ex_obj=%p), "
"private_1=%ld\n",
@@ -145,7 +145,7 @@ _Unwind_Backtrace(_Unwind_Trace_Fn callb
// _US_FORCE_UNWIND) state.
// Create a mock exception object for force unwinding.
- _Unwind_Exception ex;
+ struct _Unwind_Exception ex;
ex.exception_class = 0x434C4E47554E5700; // CLNGUNW\0
ex.pr_cache.fnstart = frameInfo.start_ip;
ex.pr_cache.ehtp = (_Unwind_EHT_Header *) unwindInfo;
Modified: libcxxabi/trunk/src/Unwind/UnwindLevel1.c
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/Unwind/UnwindLevel1.c?rev=228356&r1=228355&r2=228356&view=diff
==============================================================================
--- libcxxabi/trunk/src/Unwind/UnwindLevel1.c (original)
+++ libcxxabi/trunk/src/Unwind/UnwindLevel1.c Thu Feb 5 17:27:34 2015
@@ -26,7 +26,7 @@
#if _LIBUNWIND_BUILD_ZERO_COST_APIS && !LIBCXXABI_ARM_EHABI
static _Unwind_Reason_Code
-unwind_phase1(unw_context_t *uc, _Unwind_Exception *exception_object) {
+unwind_phase1(unw_context_t *uc, struct _Unwind_Exception *exception_object) {
unw_cursor_t cursor1;
unw_init_local(&cursor1, uc);
@@ -119,7 +119,7 @@ unwind_phase1(unw_context_t *uc, _Unwind
static _Unwind_Reason_Code
-unwind_phase2(unw_context_t *uc, _Unwind_Exception *exception_object) {
+unwind_phase2(unw_context_t *uc, struct _Unwind_Exception *exception_object) {
unw_cursor_t cursor2;
unw_init_local(&cursor2, uc);
@@ -227,7 +227,7 @@ unwind_phase2(unw_context_t *uc, _Unwind
static _Unwind_Reason_Code
unwind_phase2_forced(unw_context_t *uc,
- _Unwind_Exception *exception_object,
+ struct _Unwind_Exception *exception_object,
_Unwind_Stop_Fn stop, void *stop_parameter) {
unw_cursor_t cursor2;
unw_init_local(&cursor2, uc);
@@ -328,7 +328,7 @@ unwind_phase2_forced(unw_context_t *uc,
/// Called by __cxa_throw. Only returns if there is a fatal error.
_LIBUNWIND_EXPORT _Unwind_Reason_Code
-_Unwind_RaiseException(_Unwind_Exception *exception_object) {
+_Unwind_RaiseException(struct _Unwind_Exception *exception_object) {
_LIBUNWIND_TRACE_API("_Unwind_RaiseException(ex_obj=%p)\n",
exception_object);
unw_context_t uc;
@@ -362,7 +362,7 @@ _Unwind_RaiseException(_Unwind_Exception
/// is implemented by having the code call __cxa_rethrow() which
/// in turn calls _Unwind_Resume_or_Rethrow().
_LIBUNWIND_EXPORT void
-_Unwind_Resume(_Unwind_Exception *exception_object) {
+_Unwind_Resume(struct _Unwind_Exception *exception_object) {
_LIBUNWIND_TRACE_API("_Unwind_Resume(ex_obj=%p)\n", exception_object);
unw_context_t uc;
unw_getcontext(&uc);
@@ -384,7 +384,7 @@ _Unwind_Resume(_Unwind_Exception *except
/// Unwinds stack, calling "stop" function at each frame.
/// Could be used to implement longjmp().
_LIBUNWIND_EXPORT _Unwind_Reason_Code
-_Unwind_ForcedUnwind(_Unwind_Exception *exception_object,
+_Unwind_ForcedUnwind(struct _Unwind_Exception *exception_object,
_Unwind_Stop_Fn stop, void *stop_parameter) {
_LIBUNWIND_TRACE_API("_Unwind_ForcedUnwind(ex_obj=%p, stop=%p)\n",
exception_object, stop);
@@ -489,7 +489,7 @@ _Unwind_GetRegionStart(struct _Unwind_Co
/// Called by personality handler during phase 2 if a foreign exception
// is caught.
_LIBUNWIND_EXPORT void
-_Unwind_DeleteException(_Unwind_Exception *exception_object) {
+_Unwind_DeleteException(struct _Unwind_Exception *exception_object) {
_LIBUNWIND_TRACE_API("_Unwind_DeleteException(ex_obj=%p)\n",
exception_object);
if (exception_object->exception_cleanup != NULL)
More information about the cfe-commits
mailing list