Skip to content

Commit 1c536ba

Browse files
committed
Update the compiler/tools versions for dksh4
1 parent 638e981 commit 1c536ba

File tree

3 files changed

+108
-3
lines changed

3 files changed

+108
-3
lines changed
File renamed without changes.

dksh4/patches/gcc-9.1.0.patch

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
diff -Naur gcc-8.1.0.orig/gcc/config/sh/exword.h gcc-8.1.0/gcc/config/sh/exword.h
2+
--- gcc-8.1.0.orig/gcc/config/sh/exword.h 1969-12-31 19:00:00.000000000 -0500
3+
+++ gcc-8.1.0/gcc/config/sh/exword.h 2018-05-20 22:58:18.998187000 -0400
4+
@@ -0,0 +1,79 @@
5+
+/* Definitions of target machine for gcc for Super-H using sh-exword-elf.
6+
+ Copyright (C) 2001, 2006, 2007 Free Software Foundation, Inc.
7+
+
8+
+This file is part of GNU CC.
9+
+
10+
+GNU CC is free software; you can redistribute it and/or modify
11+
+it under the terms of the GNU General Public License as published by
12+
+the Free Software Foundation; either version 3, or (at your option)
13+
+any later version.
14+
+
15+
+GNU CC is distributed in the hope that it will be useful,
16+
+but WITHOUT ANY WARRANTY; without even the implied warranty of
17+
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
+GNU General Public License for more details.
19+
+
20+
+You should have received a copy of the GNU General Public License
21+
+along with GCC; see the file COPYING3. If not see
22+
+<http://www.gnu.org/licenses/>. */
23+
+
24+
+
25+
+#ifndef _EXWORD_H
26+
+#define _EXWORD_H
27+
+#endif
28+
+
29+
+#define LIB_DEFAULT_SPEC "--start-group -lnosys -lc --end-group"
30+
+#define LINK_DEFAULT_SPEC ""
31+
+#define CPP_DEFAULT_SPEC ""
32+
+#define STARTFILE_DEFAULT_SPEC \
33+
+ "%{!shared: crt1.o%s} crti.o%s \
34+
+ %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
35+
+
36+
+#define ENDFILE_DEFAULT_SPEC \
37+
+ "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
38+
+
39+
+#undef LIB_SPEC
40+
+#define LIB_SPEC "\
41+
+%{mexword : %(lib_exword) ; \
42+
+ : %(lib_default)}"
43+
+
44+
+#undef STARTFILE_SPEC
45+
+#define STARTFILE_SPEC "\
46+
+%{mexword : %(startfile_exword) ; \
47+
+ : %(startfile_default) }"
48+
+
49+
+#undef ENDFILE_SPEC
50+
+#define ENDFILE_SPEC "\
51+
+%{mexword : %(endfile_exword) ; \
52+
+ : %(endfile_default) }"
53+
+
54+
+#undef SUBTARGET_LINK_SPEC
55+
+#define SUBTARGET_LINK_SPEC "\
56+
+%{mexword : %(link_exword) ; \
57+
+ : %(link_default) }"
58+
+
59+
+#undef SUBTARGET_CPP_SPEC
60+
+#define SUBTARGET_CPP_SPEC "\
61+
+%{mexword : %(cpp_exword) ; \
62+
+ : %(cpp_default) }"
63+
+
64+
+#define LIB_EXWORD_SPEC "--start-group -lsysbase -ldataplus -lc --end-group"
65+
+#define STARTFILE_EXWORD_SPEC ""
66+
+#define ENDFILE_EXWORD_SPEC ""
67+
+#define LINK_EXWORD_SPEC "-L %:getenv(DEVKITPRO /libdataplus/lib) -T exword.ld%s"
68+
+#define CPP_EXWORD_SPEC "-I %:getenv(DEVKITPRO /libdataplus/include) -D__exword__"
69+
+
70+
+#undef SUBTARGET_EXTRA_SPECS
71+
+#define SUBTARGET_EXTRA_SPECS \
72+
+{ "startfile_default", STARTFILE_DEFAULT_SPEC }, \
73+
+{ "endfile_default", ENDFILE_DEFAULT_SPEC }, \
74+
+{ "link_default", LINK_DEFAULT_SPEC }, \
75+
+{ "lib_default", LIB_DEFAULT_SPEC }, \
76+
+{ "cpp_default", CPP_DEFAULT_SPEC }, \
77+
+{ "startfile_exword", STARTFILE_EXWORD_SPEC }, \
78+
+{ "endfile_exword", ENDFILE_EXWORD_SPEC }, \
79+
+{ "lib_exword", LIB_EXWORD_SPEC }, \
80+
+{ "link_exword", LINK_EXWORD_SPEC }, \
81+
+{ "cpp_exword", CPP_EXWORD_SPEC }
82+
+
83+
+
84+
diff -Naur gcc-8.1.0.orig/gcc/config/sh/exword.opt gcc-8.1.0/gcc/config/sh/exword.opt
85+
--- gcc-8.1.0.orig/gcc/config/sh/exword.opt 1969-12-31 19:00:00.000000000 -0500
86+
+++ gcc-8.1.0/gcc/config/sh/exword.opt 2018-05-20 22:58:18.998187000 -0400
87+
@@ -0,0 +1,5 @@
88+
+
89+
+
90+
+mexword
91+
+Target RejectNegative
92+
+link using exword linker script.
93+
diff -Naur gcc-8.1.0.orig/gcc/config.gcc gcc-8.1.0/gcc/config.gcc
94+
--- gcc-8.1.0.orig/gcc/config.gcc 2018-04-27 15:31:35.000000000 -0400
95+
+++ gcc-8.1.0/gcc/config.gcc 2018-05-20 22:58:18.998187000 -0400
96+
@@ -2774,7 +2774,8 @@
97+
&& test x$with_libgloss = xyes; then
98+
tm_file="${tm_file} sh/newlib.h"
99+
fi
100+
- tm_file="${tm_file} sh/embed-elf.h" ;;
101+
+ tm_file="${tm_file} sh/embed-elf.h sh/exword.h"
102+
+ extra_options="${extra_options} sh/exword.opt" ;;
103+
esac
104+
case ${target} in
105+
*-*-netbsd)

select_toolchain.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ case "$VERSION" in
6565
toolchain=DEVKITA64
6666
;;
6767
"4" )
68-
GCC_VER=8.1.0
69-
BINUTILS_VER=2.30
68+
GCC_VER=8.3.0
69+
BINUTILS_VER=2.32
7070
NEWLIB_VER=1.20.0
71-
GDB_VER=8.0
71+
GDB_VER=8.2.1
7272
basedir='dksh4'
7373
package=devkitSH4
7474
target=sh-elf

0 commit comments

Comments
 (0)