From d7f5094aa3dc482b86861d633b6d35c59c289c8b Mon Sep 17 00:00:00 2001
From: Olivier Hainque <hainque@adacore.com>
Date: Mon, 30 Dec 2019 21:22:21 +0000
Subject: [PATCH] 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
---
 libgcc/ChangeLog             | 5 +++++
 libgcc/config/gthr-vxworks.h | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 789f78af6b80..cb94bfb7042e 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,8 @@
+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
diff --git a/libgcc/config/gthr-vxworks.h b/libgcc/config/gthr-vxworks.h
index 7e3779a010a6..70205cec18a7 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));
 
-- 
GitLab