Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/libgcc make this match the builtin pr...



details:   https://anonhg.NetBSD.org/src/rev/bf89c5ada191
branches:  trunk
changeset: 378449:bf89c5ada191
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Apr 13 08:06:11 2021 +0000

description:
make this match the builtin prototypes.

diffstat:

 external/gpl3/gcc/dist/libgcc/emutls.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r 23cd3791d49e -r bf89c5ada191 external/gpl3/gcc/dist/libgcc/emutls.c
--- a/external/gpl3/gcc/dist/libgcc/emutls.c    Tue Apr 13 07:53:59 2021 +0000
+++ b/external/gpl3/gcc/dist/libgcc/emutls.c    Tue Apr 13 08:06:11 2021 +0000
@@ -50,8 +50,8 @@ struct __emutls_array
   void **data[];
 };
 
-void *__emutls_get_address (struct __emutls_object *);
-void __emutls_register_common (struct __emutls_object *, word, word, void *);
+void *__emutls_get_address (void *);
+void __emutls_register_common (void *, word, word, void *);
 
 #ifdef __GTHREADS
 #ifdef __GTHREAD_MUTEX_INIT
@@ -124,8 +124,10 @@ emutls_alloc (struct __emutls_object *ob
 }
 
 void *
-__emutls_get_address (struct __emutls_object *obj)
+__emutls_get_address (void *vobj)
 {
+  struct __emutls_object *obj = vobj;
+
   if (! __gthread_active_p ())
     {
       if (__builtin_expect (obj->loc.ptr == NULL, 0))
@@ -188,9 +190,11 @@ void *
 }
 
 void
-__emutls_register_common (struct __emutls_object *obj,
+__emutls_register_common (void *vobj,
                          word size, word align, void *templ)
 {
+  struct __emutls_object *obj = vobj;
+
   if (obj->size < size)
     {
       obj->size = size;



Home | Main Index | Thread Index | Old Index