Improve VxWorks GTHREAD_ONCE_INIT
authorOlivier Hainque <hainque@adacore.com>
Mon, 30 Dec 2019 21:22:21 +0000 (21:22 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Mon, 30 Dec 2019 21:22:21 +0000 (21:22 +0000)
2019-12-30  Olivier Hainque  <hainque@adacore.com>

* config/gthr-vxworks.h (GTHREAD_ONCE_INIT): Use
standard zero-initializer syntax.

From-SVN: r279776

libgcc/ChangeLog
libgcc/config/gthr-vxworks.h

index 789f78a..cb94bfb 100644 (file)
@@ -1,5 +1,10 @@
 2019-12-30  Olivier Hainque  <hainque@adacore.com>
 
+       * config/gthr-vxworks.h (GTHREAD_ONCE_INIT): Use
+       standard zero-initializer syntax.
+
+2019-12-30  Olivier Hainque  <hainque@adacore.com>
+
        * config/gthr-vxworks-tls.c (__gthread_getspecific): Fix
        reference to the internal VX_GET_TLS_DATA interface.
 
index 7e3779a..70205ce 100644 (file)
@@ -215,7 +215,7 @@ typedef struct
 #endif
 } __gthread_once_t;
 
-#define __GTHREAD_ONCE_INIT { 0 }
+#define __GTHREAD_ONCE_INIT {}
 
 extern int __gthread_once (__gthread_once_t *__once, void (*__func)(void));