summaryrefslogtreecommitdiff
path: root/packages/gcc
diff options
context:
space:
mode:
authorKumar Gala <kumar.gala@linaro.org>2020-11-11 14:14:19 (GMT)
committerKumar Gala <kumar.gala@linaro.org>2020-11-11 19:42:02 (GMT)
commit15a49fa4fdc69a327fd3cd6dcf38cd0f0121c920 (patch)
tree7e0e861592489fa4ffd3cf18a33cc0736d170985 /packages/gcc
parented3a1ff4b938f12bcb9bbfdb90d4e3d933d28b2d (diff)
gcc: add build fix for aarch64 toolchain on MacOS X
When building aarch64-unknown-linux-gnu on MacOS X, aarch64-builtins.c files doesn't build by default with clang on MacOS X. We need to pass -std=gnu++11 when building the file for things to work with clang. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
Diffstat (limited to 'packages/gcc')
-rw-r--r--packages/gcc/10.2.0/0019-AArch64-Fix-build-issue-with-aarch64-builtins.c-on-M.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/packages/gcc/10.2.0/0019-AArch64-Fix-build-issue-with-aarch64-builtins.c-on-M.patch b/packages/gcc/10.2.0/0019-AArch64-Fix-build-issue-with-aarch64-builtins.c-on-M.patch
new file mode 100644
index 0000000..a618707
--- /dev/null
+++ b/packages/gcc/10.2.0/0019-AArch64-Fix-build-issue-with-aarch64-builtins.c-on-M.patch
@@ -0,0 +1,34 @@
+From 8ae8c6bba601ce9ae8a3d54776ef934fb0a7986d Mon Sep 17 00:00:00 2001
+From: Kumar Gala <kumar.gala@linaro.org>
+Date: Wed, 11 Nov 2020 08:09:50 -0600
+Subject: [PATCH] [AArch64] Fix build issue with aarch64-builtins.c on MacOS X
+ host
+
+When building w/clang on MacOS X we get the following error:
+
+gcc/config/aarch64/aarch64-builtins.c:1231:3: error: expected expression
+AARCH64_INIT_MEMTAG_BUILTINS_DECL (IRG, irg, irg, fntype);
+
+Fix this by adding '-std=gnu++11' to the compile line.
+
+Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
+---
+ gcc/config/aarch64/t-aarch64 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gcc/config/aarch64/t-aarch64 b/gcc/config/aarch64/t-aarch64
+index 11d20b7be14..d4c3154cf40 100644
+--- a/gcc/config/aarch64/t-aarch64
++++ b/gcc/config/aarch64/t-aarch64
+@@ -41,7 +41,7 @@ aarch64-builtins.o: $(srcdir)/config/aarch64/aarch64-builtins.c $(CONFIG_H) \
+ $(srcdir)/config/aarch64/aarch64-simd-builtins.def \
+ $(srcdir)/config/aarch64/aarch64-simd-builtin-types.def \
+ aarch64-builtin-iterators.h
+- $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
++ $(COMPILER) -std=gnu++11 -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
+ $(srcdir)/config/aarch64/aarch64-builtins.c
+
+ aarch64-sve-builtins.o: $(srcdir)/config/aarch64/aarch64-sve-builtins.cc \
+--
+2.25.4
+