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/99afa31961e5
branches:  trunk
changeset: 961246:99afa31961e5
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 129a7a05931e -r 99afa31961e5 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 @@
   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 @@
 }
 
 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
-__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