psmedley / gcc

GNU General Public License v2.0
7 stars 1 forks source link

C11 missing headers #15

Closed komh closed 8 years ago

komh commented 9 years ago

Hi/2.

gcc 4.9 introduced some C11 headers such as stdatomic.h. However, gcc distribution does not have them at all.

Fortunately, they seems to be are in /gcc/ginclude. Please distribute gcc with them.

komh commented 9 years ago

Here is the patch.

From 120d14b2250eac893ddcae81063de5ab39f2f527 Mon Sep 17 00:00:00 2001
From: KO Myung-Hun <komh@chollian.net>
Date: Mon, 29 Jun 2015 17:11:19 +0900
Subject: [PATCH 2/3] OS/2: install missed headers, especially C11 headers

---
 gcc/config/i386/t-emx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/config/i386/t-emx b/gcc/config/i386/t-emx
index bb8df18..5764a31 100644
--- a/gcc/config/i386/t-emx
+++ b/gcc/config/i386/t-emx
@@ -87,6 +87,10 @@ USER_H          = \
     $(srcdir)/ginclude/stdbool.h \
     \
     $(srcdir)/ginclude/varargs.h \
+    $(srcdir)/ginclude/stdfix.h \
+    $(srcdir)/ginclude/stdnoreturn.h \
+    $(srcdir)/ginclude/stdalign.h \
+    $(srcdir)/ginclude/stdatomic.h \
     $(EXTRA_HEADERS)

 # bird (#424): New gcc*dll hacks
-- 
1.9.5
psmedley commented 9 years ago

I have added this patch for my local build of GCC 5.2.0

komh commented 8 years ago

Push as commit 3a2ba97bb4ce723fab383253443c8b545fac2d67.