[PATCH 2/2] Update gcc to 9.3.0 for targets using 9.2.0

Joel Sherrill joel at rtems.org
Thu Mar 12 20:21:36 UTC 2020


---
 rtems/config/5/rtems-or1k.bset                     |  2 +-
 rtems/config/5/rtems-riscv.bset                    |  2 +-
 rtems/config/5/rtems-x86_64.bset                   |  2 +-
 .../tools/rtems-gcc-9.3.0-newlib-c56f53a.cfg       | 28 ++++++++++++++++++++++
 4 files changed, 31 insertions(+), 3 deletions(-)
 create mode 100644 rtems/config/tools/rtems-gcc-9.3.0-newlib-c56f53a.cfg

diff --git a/rtems/config/5/rtems-or1k.bset b/rtems/config/5/rtems-or1k.bset
index b157742..fc57837 100644
--- a/rtems/config/5/rtems-or1k.bset
+++ b/rtems/config/5/rtems-or1k.bset
@@ -11,5 +11,5 @@
 devel/expat-2.1.0-1
 tools/rtems-gdb-8.2.1-1
 tools/rtems-binutils-2.34
-tools/rtems-gcc-9.2.0-newlib-c56f53a
+tools/rtems-gcc-9.3.0-newlib-c56f53a
 tools/rtems-tools-5-1
diff --git a/rtems/config/5/rtems-riscv.bset b/rtems/config/5/rtems-riscv.bset
index f77f7cc..e85c41a 100644
--- a/rtems/config/5/rtems-riscv.bset
+++ b/rtems/config/5/rtems-riscv.bset
@@ -12,6 +12,6 @@
 devel/expat-2.1.0-1
 tools/rtems-gdb-8.3-1
 tools/rtems-binutils-2.34
-tools/rtems-gcc-9.2.0-newlib-c56f53a
+tools/rtems-gcc-9.3.0-newlib-c56f53a
 tools/rtems-tools-5-1
 devel/sis-2-1
diff --git a/rtems/config/5/rtems-x86_64.bset b/rtems/config/5/rtems-x86_64.bset
index de34156..e39711b 100644
--- a/rtems/config/5/rtems-x86_64.bset
+++ b/rtems/config/5/rtems-x86_64.bset
@@ -9,5 +9,5 @@
 devel/expat-2.1.0-1
 tools/rtems-gdb-8.2.1-1
 tools/rtems-binutils-2.34
-tools/rtems-gcc-9.2.0-newlib-c56f53a
+tools/rtems-gcc-9.3.0-newlib-c56f53a
 tools/rtems-tools-5-1
diff --git a/rtems/config/tools/rtems-gcc-9.3.0-newlib-c56f53a.cfg b/rtems/config/tools/rtems-gcc-9.3.0-newlib-c56f53a.cfg
new file mode 100644
index 0000000..f0b52b8
--- /dev/null
+++ b/rtems/config/tools/rtems-gcc-9.3.0-newlib-c56f53a.cfg
@@ -0,0 +1,28 @@
+%include %{_configdir}/checks.cfg
+%include %{_configdir}/base.cfg
+
+%if %{_build_os} == freebsd || %{_build_os} == darwin
+ %patch add gcc --rsb-file=freebsd-libgcc-sed-fix.patch -p0 https://gcc.gnu.org/bugzilla/attachment.cgi?id=41380
+ %hash  sha256 freebsd-libgcc-sed-fix.patch 8a11bd619c2e55466688e328da00b387d02395c1e8ff4a99225152387a1e60a4
+%endif
+
+%if %{_build_os} == darwin
+ %patch add gcc -p1 https://devel.rtems.org/raw-attachment/ticket/3171/darwin-libstdcpp-noparallel-fix.patch
+ %hash sha512 darwin-libstdcpp-noparallel-fix.patch 01fa1bd55f19b01f10c41fdfe31356a7a4ddf265ebac8f4b974ccd1718181fd56bcb18a96e0492aa37511f08b37f94052a5557e21075604fceee06d80ffbb7d8
+%endif
+
+%define gcc_version 9.3.0
+%source set gcc https://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-%{gcc_version}.tar.xz
+%hash sha512 gcc-%{gcc_version}.tar.xz 4b9e3639eef6e623747a22c37a904b4750c93b6da77cf3958d5047e9b5ebddb7eebe091cc16ca0a227c0ecbd2bf3b984b221130f269a97ee4cc18f9cf6c444de
+
+%define newlib_version c56f53a
+%define newlib_external 1
+%define newlib_expand_name sourceware-mirror-newlib-cygwin-%{newlib_version}
+%source set newlib --rsb-file=newlib-%{newlib_version}.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/%{newlib_version}
+%hash sha512 newlib-%{newlib_version}.tar.gz ae973e04fa9a723192d24d7aca708edfd9232d5b009b9e7214447f5947698d16f15285ca97375f1845ee1778c5304f658cd3a7e1c839981102b79c8466ff0e7c
+
+%define with_threads 1
+%define with_plugin 0
+%define with_iconv 1
+
+%include %{_configdir}/gcc-9.cfg
-- 
1.8.3.1



More information about the devel mailing list