1
- From dee75c7161a4ffc5760f7615ed7846a9592bc77c Mon Sep 17 00:00:00 2001
2
- From:
Andy-Python-Programmer <
[email protected] >
3
- Date: Tue, 31 Aug 2021 11:02:13 +1000
4
- Subject: [PATCH] targets : add aero target port
1
+ From 4c867374622a04f29a5501dfc74f1057041cc0fc Mon Sep 17 00:00:00 2001
2
+ From:
Anhad Singh <
[email protected] >
3
+ Date: Thu, 3 Aug 2023 12:51:21 +1000
4
+ Subject: [PATCH] gcc : add aero target
5
5
6
- Signed-off-by:
Andy-Python-Programmer <
[email protected] >
6
+ Signed-off-by:
Anhad Singh <
[email protected] >
7
7
---
8
- .vscode/settings.json | 3 +++
9
8
config.sub | 4 ++--
10
9
fixincludes/mkfixinc.sh | 1 +
11
10
gcc/config.gcc | 12 ++++++++++++
14
13
libgcc/libgcov.h | 1 +
15
14
libstdc++-v3/crossconfig.m4 | 12 ++++++++++++
16
15
libtool.m4 | 14 ++++++++++++++
17
- 9 files changed, 83 insertions(+), 2 deletions(-)
18
- create mode 100644 .vscode/settings.json
16
+ 8 files changed, 80 insertions(+), 2 deletions(-)
19
17
create mode 100644 gcc/config/aero.h
20
18
21
- diff --git a/.vscode/settings.json b/.vscode/settings.json
22
- new file mode 100644
23
- index 000000000..560faaa36
24
- --- /dev/null
25
- +++ b/.vscode/settings.json
26
- @@ -0,0 +1,3 @@
27
- + {
28
- + "editor.formatOnSave": false,
29
- + }
30
- \ No newline at end of file
31
19
diff --git a/config.sub b/config.sub
32
- index 63c1f1c8b..36fff07fb 100755
20
+ index 38f3d037a..956f31f08 100755
33
21
--- a/config.sub
34
22
+++ b/config.sub
35
- @@ -133,7 +133,7 @@ case $1 in
36
- case $maybe_os in
23
+ @@ -145,7 +145,7 @@ case $1 in
37
24
nto-qnx* | linux-* | uclinux-uclibc* \
38
25
| uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
39
- - | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
40
- + | netbsd*-eabi * | kopensolaris*-gnu * | cloudabi*-eabi* | aero* \
41
- | storm-chaos* | os2-emx* | rtmk-nova*)
26
+ | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
27
+ - | storm-chaos * | os2-emx * | rtmk-nova*)
28
+ + | storm-chaos* | os2-emx* | rtmk-nova* | aero *)
42
29
basic_machine=$field1
43
30
basic_os=$maybe_os
44
- @@ -1723,7 +1723,7 @@ case $os in
45
- | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \
46
- | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
47
- | skyos* | haiku* | rdos* | toppers* | drops* | es* \
48
- - | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
49
- + | onefs* | tirtos* | phoenix* | fuchsia* | redox* | aero* | bme* \
31
+ ;;
32
+ @@ -1749,7 +1749,7 @@ case $os in
33
+ | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
50
34
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
51
- | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx*)
35
+ | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
36
+ - | fiwix* )
37
+ + | fiwix* | aero*)
52
38
;;
39
+ # This one is extra strict with allowed versions
40
+ sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
53
41
diff --git a/fixincludes/mkfixinc.sh b/fixincludes/mkfixinc.sh
54
42
index df90720b7..e8c2b21c1 100755
55
43
--- a/fixincludes/mkfixinc.sh
@@ -63,10 +51,10 @@ index df90720b7..e8c2b21c1 100755
63
51
i?86-*-mingw32* | \
64
52
x86_64-*-mingw32* | \
65
53
diff --git a/gcc/config.gcc b/gcc/config.gcc
66
- index 357b0bed0..a88cface2 100644
54
+ index 648b3dc21..4a13aceda 100644
67
55
--- a/gcc/config.gcc
68
56
+++ b/gcc/config.gcc
69
- @@ -822 ,6 +822 ,15 @@ case ${target} in
57
+ @@ -840 ,6 +840 ,15 @@ case ${target} in
70
58
tmake_file="${tmake_file} t-freebsd"
71
59
target_has_targetdm=yes
72
60
;;
@@ -82,12 +70,12 @@ index 357b0bed0..a88cface2 100644
82
70
*-*-fuchsia*)
83
71
native_system_header_dir=/include
84
72
;;
85
- @@ -2240 ,6 +2249 ,9 @@ i[34567]86-*-mingw* | x86_64-*-mingw*)
73
+ @@ -2214 ,6 +2223 ,9 @@ i[34567]86-*-mingw* | x86_64-*-mingw*)
86
74
;;
87
75
esac
88
76
;;
89
77
+ x86_64-*-aero*)
90
- + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h aero.h"
78
+ + tm_file="${tm_file} i386/unix.h i386/att.h elfos.h gnu-user.h glibc-stdint.h i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h aero.h"
91
79
+ ;;
92
80
x86_64-*-fuchsia*)
93
81
tmake_file="${tmake_file} i386/t-x86_64-elf"
@@ -129,10 +117,10 @@ index 000000000..e8c149e40
129
117
+ builtin_assert("system=posix"); \
130
118
+ } while (0);
131
119
diff --git a/libgcc/config.host b/libgcc/config.host
132
- index 50f000622..d1aa00f1a 100644
120
+ index 9d7212028..3724a1ac5 100644
133
121
--- a/libgcc/config.host
134
122
+++ b/libgcc/config.host
135
- @@ -245 ,6 +245 ,11 @@ case ${host} in
123
+ @@ -281 ,6 +281 ,11 @@ case ${host} in
136
124
tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
137
125
extra_parts="crtbegin.o crtend.o"
138
126
;;
@@ -144,7 +132,7 @@ index 50f000622..d1aa00f1a 100644
144
132
*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)
145
133
tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-linux"
146
134
extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
147
- @@ -703 ,6 +708 ,9 @@ x86_64-*-elf* | x86_64-*-rtems*)
135
+ @@ -715 ,6 +720 ,9 @@ x86_64-*-elf* | x86_64-*-rtems*)
148
136
x86_64-*-fuchsia*)
149
137
tmake_file="$tmake_file t-libgcc-pic"
150
138
;;
@@ -155,7 +143,7 @@ index 50f000622..d1aa00f1a 100644
155
143
tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
156
144
md_unwind_header=i386/dragonfly-unwind.h
157
145
diff --git a/libgcc/libgcov.h b/libgcc/libgcov.h
158
- index 7b0d367ec..2bce0a7e1 100644
146
+ index 92df440d4..320f3b500 100644
159
147
--- a/libgcc/libgcov.h
160
148
+++ b/libgcc/libgcov.h
161
149
@@ -44,6 +44,7 @@
@@ -167,7 +155,7 @@ index 7b0d367ec..2bce0a7e1 100644
167
155
#if HAVE_SYS_MMAN_H
168
156
#include <sys/mman.h>
169
157
diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4
170
- index ff44d5ae0..8b41eb058 100644
158
+ index b3269cb88..4187dba89 100644
171
159
--- a/libstdc++-v3/crossconfig.m4
172
160
+++ b/libstdc++-v3/crossconfig.m4
173
161
@@ -136,6 +136,18 @@ case "${host}" in
@@ -190,7 +178,7 @@ index ff44d5ae0..8b41eb058 100644
190
178
SECTION_FLAGS='-ffunction-sections -fdata-sections'
191
179
AC_SUBST(SECTION_FLAGS)
192
180
diff --git a/libtool.m4 b/libtool.m4
193
- index 17f8e5f30..5d29258d9 100644
181
+ index b92e284d9..491d24c54 100644
194
182
--- a/libtool.m4
195
183
+++ b/libtool.m4
196
184
@@ -2491,6 +2491,16 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
@@ -210,7 +198,7 @@ index 17f8e5f30..5d29258d9 100644
210
198
netbsd*)
211
199
version_type=sunos
212
200
need_lib_prefix=no
213
- @@ -3090 ,6 +3100 ,10 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
201
+ @@ -3109 ,6 +3119 ,10 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
214
202
lt_cv_deplibs_check_method=pass_all
215
203
;;
216
204
@@ -222,5 +210,5 @@ index 17f8e5f30..5d29258d9 100644
222
210
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
223
211
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
224
212
- -
225
- 2.25.1
213
+ 2.41.0
226
214
0 commit comments