Skip to content

Commit 4219405

Browse files
committed
devkitARM: update gcc patch
1 parent aacd4f8 commit 4219405

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

dkarm-eabi/patches/gcc-11.1.0.patch

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,65 @@
1+
diff --git a/gcc/config.host b/gcc/config.host
2+
index 0a02c33cc80..38f7adc655e 100644
3+
--- a/gcc/config.host
4+
+++ b/gcc/config.host
5+
@@ -251,6 +251,10 @@ case ${host} in
6+
host_extra_gcc_objs="${host_extra_gcc_objs} driver-mingw32.o"
7+
host_lto_plugin_soname=liblto_plugin.dll
8+
;;
9+
+ aarch64-*-darwin*)
10+
+ out_host_hook_obj="${out_host_hook_obj} host-aarch64-darwin.o"
11+
+ host_xmake_file="${host_xmake_file} aarch64/x-darwin"
12+
+ ;;
13+
i[34567]86-*-darwin* | x86_64-*-darwin*)
14+
out_host_hook_obj="${out_host_hook_obj} host-i386-darwin.o"
15+
host_xmake_file="${host_xmake_file} i386/x-darwin"
16+
diff --git a/gcc/config/aarch64/host-aarch64-darwin.c b/gcc/config/aarch64/host-aarch64-darwin.c
17+
new file mode 100644
18+
index 00000000000..92c38b0b9db
19+
--- /dev/null
20+
+++ b/gcc/config/aarch64/host-aarch64-darwin.c
21+
@@ -0,0 +1,32 @@
22+
+/* i386-darwin host-specific hook definitions.
23+
+ Copyright (C) 2003-2021 Free Software Foundation, Inc.
24+
+
25+
+This file is part of GCC.
26+
+
27+
+GCC is free software; you can redistribute it and/or modify it under
28+
+the terms of the GNU General Public License as published by the Free
29+
+Software Foundation; either version 3, or (at your option) any later
30+
+version.
31+
+
32+
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
33+
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
34+
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
35+
+for more details.
36+
+
37+
+You should have received a copy of the GNU General Public License
38+
+along with GCC; see the file COPYING3. If not see
39+
+<http://www.gnu.org/licenses/>. */
40+
+
41+
+#define IN_TARGET_CODE 1
42+
+
43+
+#include "config.h"
44+
+#include "system.h"
45+
+#include "coretypes.h"
46+
+#include "hosthooks.h"
47+
+#include "hosthooks-def.h"
48+
+#include "config/host-darwin.h"
49+
+
50+
+/* Darwin doesn't do anything special for aarch64 hosts; this file exists just
51+
+ to include config/host-darwin.h. */
52+
+
53+
+const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;
54+
diff --git a/gcc/config/aarch64/x-darwin b/gcc/config/aarch64/x-darwin
55+
new file mode 100644
56+
index 00000000000..6d788d5e89c
57+
--- /dev/null
58+
+++ b/gcc/config/aarch64/x-darwin
59+
@@ -0,0 +1,3 @@
60+
+host-aarch64-darwin.o : $(srcdir)/config/aarch64/host-aarch64-darwin.c
61+
+ $(COMPILE) $<
62+
+ $(POSTCOMPILE)
163
diff --git a/gcc/config/arm/arm-cpus.in b/gcc/config/arm/arm-cpus.in
264
index 0becb4385b6..30bd4a24cd6 100644
365
--- a/gcc/config/arm/arm-cpus.in

0 commit comments

Comments
 (0)