diff options
author | Olivier Hainque <hainque@adacore.com> | 2019-12-30 21:22:21 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@gcc.gnu.org> | 2019-12-30 21:22:21 +0000 |
commit | d7f5094aa3dc482b86861d633b6d35c59c289c8b (patch) | |
tree | 8c64ac62bd4030e99fb9bdf6cc69e0f585f19b7a /libgcc | |
parent | 49cfaa2a714ffb6fba6614672598da9b361ab595 (diff) | |
download | gcc-d7f5094aa3dc482b86861d633b6d35c59c289c8b.zip gcc-d7f5094aa3dc482b86861d633b6d35c59c289c8b.tar.gz gcc-d7f5094aa3dc482b86861d633b6d35c59c289c8b.tar.bz2 |
Improve VxWorks GTHREAD_ONCE_INIT
2019-12-30 Olivier Hainque <hainque@adacore.com>
* config/gthr-vxworks.h (GTHREAD_ONCE_INIT): Use
standard zero-initializer syntax.
From-SVN: r279776
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 5 | ||||
-rw-r--r-- | libgcc/config/gthr-vxworks.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 789f78a..cb94bfb 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -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. diff --git a/libgcc/config/gthr-vxworks.h b/libgcc/config/gthr-vxworks.h index 7e3779a..70205ce 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)); |