From: Olivier Hainque Date: Mon, 30 Dec 2019 21:22:21 +0000 (+0000) Subject: Improve VxWorks GTHREAD_ONCE_INIT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7f5094aa3dc482b86861d633b6d35c59c289c8b;p=gcc.git Improve VxWorks GTHREAD_ONCE_INIT 2019-12-30 Olivier Hainque * config/gthr-vxworks.h (GTHREAD_ONCE_INIT): Use standard zero-initializer syntax. From-SVN: r279776 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 789f78af6b8..cb94bfb7042 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2019-12-30 Olivier Hainque + + * config/gthr-vxworks.h (GTHREAD_ONCE_INIT): Use + standard zero-initializer syntax. + 2019-12-30 Olivier Hainque * config/gthr-vxworks-tls.c (__gthread_getspecific): Fix diff --git a/libgcc/config/gthr-vxworks.h b/libgcc/config/gthr-vxworks.h index 7e3779a010a..70205cec18a 100644 --- a/libgcc/config/gthr-vxworks.h +++ b/libgcc/config/gthr-vxworks.h @@ -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));