git: ad1668172107 - stable/13 - Use an unsigned 64-bit integer for exception class.

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 20 Feb 2022 12:31:02 UTC
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=ad16681721072f011e26f775ce47c872ec001f26

commit ad16681721072f011e26f775ce47c872ec001f26
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-01-27 18:34:35 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-02-20 12:28:58 +0000

    Use an unsigned 64-bit integer for exception class.
    
    This matches the type in other unwind headers (LLVM libunwind,
    libcxxrt, glibc).
    
    NB: include/unwind.h is not installed but is only used by libthr
    
    Reviewed by:    imp, dim, emaste
    Differential Revision:  https://reviews.freebsd.org/D34049
    
    (cherry picked from commit b84693501af6521487327ec4eb7c6ae0097ac5d7)
---
 include/unwind.h             | 4 ++--
 lib/libthr/thread/thr_exit.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/unwind.h b/include/unwind.h
index 5a07fd819f50..214fb43730aa 100644
--- a/include/unwind.h
+++ b/include/unwind.h
@@ -70,7 +70,7 @@ typedef void (*_Unwind_Exception_Cleanup_Fn) (_Unwind_Reason_Code,
 					      struct _Unwind_Exception *);
 
 typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn) (int, _Unwind_Action,
-						__int64_t,
+						__uint64_t,
 						struct _Unwind_Exception *,
 						struct _Unwind_Context *,
 						void *);
@@ -82,7 +82,7 @@ typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn) (int, _Unwind_Action,
    IA-64, while being more general.  */
 struct _Unwind_Exception
   {
-    __int64_t exception_class;
+    __uint64_t exception_class;
     _Unwind_Exception_Cleanup_Fn exception_cleanup;
     unsigned long private_1;
     unsigned long private_2;
diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c
index 78497c4a206a..c1244962f192 100644
--- a/lib/libthr/thread/thr_exit.c
+++ b/lib/libthr/thread/thr_exit.c
@@ -61,7 +61,7 @@ static void thread_unwind(void) __dead2;
 static void thread_uw_init(void);
 static _Unwind_Reason_Code thread_unwind_stop(int version,
 	_Unwind_Action actions,
-	int64_t exc_class,
+	uint64_t exc_class,
 	struct _Unwind_Exception *exc_obj,
 	struct _Unwind_Context *context, void *stop_parameter);
 /* unwind library pointers */
@@ -133,7 +133,7 @@ thread_unwind_cleanup(_Unwind_Reason_Code code __unused,
 
 static _Unwind_Reason_Code
 thread_unwind_stop(int version __unused, _Unwind_Action actions,
-	int64_t exc_class __unused,
+	uint64_t exc_class __unused,
 	struct _Unwind_Exception *exc_obj __unused,
 	struct _Unwind_Context *context, void *stop_parameter __unused)
 {