From a528cd67caf2860dbea013e5732a7e7a978c5c65 Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Mon, 4 Jan 2021 18:19:20 +0100 Subject: [PATCH 01/10] gcc9: Enable C++17. --- gcc/9/patches/0031-gcc9-Disable-c-17.patch | 165 --------------------- 1 file changed, 165 deletions(-) delete mode 100644 gcc/9/patches/0031-gcc9-Disable-c-17.patch diff --git a/gcc/9/patches/0031-gcc9-Disable-c-17.patch b/gcc/9/patches/0031-gcc9-Disable-c-17.patch deleted file mode 100644 index 0527391..0000000 --- a/gcc/9/patches/0031-gcc9-Disable-c-17.patch +++ /dev/null @@ -1,165 +0,0 @@ -From 094a640cbd9f486f29f8b58ae201880bed7611dc Mon Sep 17 00:00:00 2001 -From: "ola.soder@axis.com" -Date: Tue, 29 Dec 2020 22:48:18 +0100 -Subject: [PATCH 31/31] gcc9: Disable c++17. - -C++17 needs to be disabled due to limitations in clib2. Please refer -to libstdc++-v3/include/c_global/cstddef for more details. - ---- - libstdc++-v3/acinclude.m4 | 2 +- - libstdc++-v3/src/Makefile.am | 9 +++------ - libstdc++-v3/src/Makefile.in | 11 ++++------- - 3 files changed, 8 insertions(+), 14 deletions(-) - -diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 -index 84258d87a337ba9c802c845b8fac9c1e1da8e71b..0aea27e9243423f1222bb7f7854ac9b08b548b88 100644 ---- a/libstdc++-v3/acinclude.m4 -+++ b/libstdc++-v3/acinclude.m4 -@@ -46,13 +46,13 @@ dnl - default settings for all AM_CONFITIONAL test variables - dnl - lots of tools, like CC and CXX - dnl - AC_DEFUN([GLIBCXX_CONFIGURE], [ - # Keep these sync'd with the list in Makefile.am. The first provides an - # expandable list at autoconf time; the second provides an expandable list - # (i.e., shell variable) at configure time. -- m4_define([glibcxx_SUBDIRS],[include libsupc++ src src/c++98 src/c++11 src/c++17 src/filesystem doc po testsuite python]) -+ m4_define([glibcxx_SUBDIRS],[include libsupc++ src src/c++98 src/c++11 src/filesystem doc po testsuite python]) - SUBDIRS='glibcxx_SUBDIRS' - - # These need to be absolute paths, yet at the same time need to - # canonicalize only relative paths, because then amd will not unmount - # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. - glibcxx_builddir=`${PWDCMD-pwd}` -diff --git a/libstdc++-v3/src/Makefile.am b/libstdc++-v3/src/Makefile.am -index 436c2c56f132e45ac41e0aadf2907de87021e333..60976bd0965e7cc77d9de1c4c24072ecf588b094 100644 ---- a/libstdc++-v3/src/Makefile.am -+++ b/libstdc++-v3/src/Makefile.am -@@ -26,13 +26,13 @@ if ENABLE_FILESYSTEM_TS - filesystem_dir = filesystem - else - filesystem_dir = - endif - - ## Keep this list sync'd with acinclude.m4:GLIBCXX_CONFIGURE. --SUBDIRS = c++98 c++11 c++17 $(filesystem_dir) -+SUBDIRS = c++98 c++11 $(filesystem_dir) - - # Cross compiler support. - if VTV_CYGMIN - toolexeclib_LTLIBRARIES = libvtv.la libstdc++.la - else - toolexeclib_LTLIBRARIES = libstdc++.la -@@ -56,13 +56,12 @@ libvtv_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(libvtv_la_AM_CXXFLAGS) \ - $(CXXFLAGS) $(libvtv_la_LDFLAGS) $(LDFLAGS) -o $@ - endif - - vpath % $(top_srcdir)/src/c++98 - vpath % $(top_srcdir)/src/c++11 --vpath % $(top_srcdir)/src/c++17 - if ENABLE_FILESYSTEM_TS - vpath % $(top_srcdir)/src/filesystem - endif - - if GLIBCXX_LDBL_COMPAT - ldbl_compat_sources = compatibility-ldbl.cc -@@ -91,21 +90,19 @@ cxx11_sources = \ - libstdc___la_SOURCES = $(cxx98_sources) $(cxx11_sources) - - libstdc___la_LIBADD = \ - $(GLIBCXX_LIBS) \ - $(top_builddir)/libsupc++/libsupc++convenience.la \ - $(top_builddir)/src/c++98/libc++98convenience.la \ -- $(top_builddir)/src/c++11/libc++11convenience.la \ -- $(top_builddir)/src/c++17/libc++17convenience.la -+ $(top_builddir)/src/c++11/libc++11convenience.la - - libstdc___la_DEPENDENCIES = \ - ${version_dep} \ - $(top_builddir)/libsupc++/libsupc++convenience.la \ - $(top_builddir)/src/c++98/libc++98convenience.la \ -- $(top_builddir)/src/c++11/libc++11convenience.la \ -- $(top_builddir)/src/c++17/libc++17convenience.la -+ $(top_builddir)/src/c++11/libc++11convenience.la - - libstdc___la_LDFLAGS = \ - -version-info $(libtool_VERSION) ${version_arg} -lm - - libstdc___la_LINK = $(CXXLINK) $(libstdc___la_LDFLAGS) - -diff --git a/libstdc++-v3/src/Makefile.in b/libstdc++-v3/src/Makefile.in -index 1283b2720785acdcbb3047d84b57b6ba421096f6..1eaea91a79f2bbb97d26944bb83ac3f77177cd68 100644 ---- a/libstdc++-v3/src/Makefile.in -+++ b/libstdc++-v3/src/Makefile.in -@@ -230,13 +230,13 @@ am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` - ETAGS = etags - CTAGS = ctags --DIST_SUBDIRS = c++98 c++11 c++17 filesystem -+DIST_SUBDIRS = c++98 c++11 filesystem - ABI_TWEAKS_SRCDIR = @ABI_TWEAKS_SRCDIR@ - ACLOCAL = @ACLOCAL@ - ALLOCATOR_H = @ALLOCATOR_H@ - ALLOCATOR_NAME = @ALLOCATOR_NAME@ - AMTAR = @AMTAR@ - AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -@@ -459,13 +459,13 @@ WARN_CXXFLAGS = \ - - - # -I/-D flags to pass when compiling. - AM_CPPFLAGS = $(GLIBCXX_INCLUDES) $(CPPFLAGS) - @ENABLE_FILESYSTEM_TS_FALSE@filesystem_dir = - @ENABLE_FILESYSTEM_TS_TRUE@filesystem_dir = filesystem --SUBDIRS = c++98 c++11 c++17 $(filesystem_dir) -+SUBDIRS = c++98 c++11 $(filesystem_dir) - @VTV_CYGMIN_FALSE@toolexeclib_LTLIBRARIES = libstdc++.la - - # Cross compiler support. - @VTV_CYGMIN_TRUE@toolexeclib_LTLIBRARIES = libvtv.la libstdc++.la - @VTV_CYGMIN_TRUE@libvtv_la_SOURCES = vtv_stubs.cc - @VTV_CYGMIN_TRUE@libvtv_la_LDFLAGS = $(lt_host_flags) -@@ -499,21 +499,19 @@ cxx11_sources = \ - - libstdc___la_SOURCES = $(cxx98_sources) $(cxx11_sources) - libstdc___la_LIBADD = \ - $(GLIBCXX_LIBS) \ - $(top_builddir)/libsupc++/libsupc++convenience.la \ - $(top_builddir)/src/c++98/libc++98convenience.la \ -- $(top_builddir)/src/c++11/libc++11convenience.la \ -- $(top_builddir)/src/c++17/libc++17convenience.la -+ $(top_builddir)/src/c++11/libc++11convenience.la - - libstdc___la_DEPENDENCIES = \ - ${version_dep} \ - $(top_builddir)/libsupc++/libsupc++convenience.la \ - $(top_builddir)/src/c++98/libc++98convenience.la \ -- $(top_builddir)/src/c++11/libc++11convenience.la \ -- $(top_builddir)/src/c++17/libc++17convenience.la -+ $(top_builddir)/src/c++11/libc++11convenience.la - - libstdc___la_LDFLAGS = \ - -version-info $(libtool_VERSION) ${version_arg} -lm - - libstdc___la_LINK = $(CXXLINK) $(libstdc___la_LDFLAGS) - -@@ -951,13 +949,12 @@ uninstall-am: uninstall-toolexeclibLTLIBRARIES - @VTV_CYGMIN_TRUE@vtv_stubs.cc: - @VTV_CYGMIN_TRUE@ rm -f $@ - @VTV_CYGMIN_TRUE@ $(LN_S) $(toplevel_srcdir)/libstdc++-v3/libsupc++/vtv_stubs.cc $@ - - vpath % $(top_srcdir)/src/c++98 - vpath % $(top_srcdir)/src/c++11 --vpath % $(top_srcdir)/src/c++17 - @ENABLE_FILESYSTEM_TS_TRUE@vpath % $(top_srcdir)/src/filesystem - - # Use special rules for compatibility-ldbl.cc compilation, as we need to - # pass -mlong-double-64. - @GLIBCXX_LDBL_COMPAT_TRUE@compatibility-ldbl.lo: compatibility-ldbl.cc - @GLIBCXX_LDBL_COMPAT_TRUE@ $(LTCXXCOMPILE) $(LONG_DOUBLE_COMPAT_FLAGS) -c $< --- -2.11.0 - From 96e4f5e260cf56037846797e4b25da2aca1d672d Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Wed, 6 Jan 2021 20:08:45 +0100 Subject: [PATCH 02/10] gcc9: Expose max_align_t when using clib2. --- ...-Expose-max_align_t-when-using-clib2.patch | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch diff --git a/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch b/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch new file mode 100644 index 0000000..a9ad66f --- /dev/null +++ b/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch @@ -0,0 +1,55 @@ +From 060011cf50f1b802a100f2777bca14a9cada8b35 Mon Sep 17 00:00:00 2001 +From: "ola.soder@axis.com" +Date: Wed, 6 Jan 2021 20:06:54 +0100 +Subject: [PATCH 31/31] gcc9: Expose max_align_t when using clib2. + +--- + libstdc++-v3/include/c_global/cstddef | 3 --- + libstdc++-v3/include/c_std/cstddef | 3 --- + 2 files changed, 6 deletions(-) + +diff --git a/libstdc++-v3/include/c_global/cstddef b/libstdc++-v3/include/c_global/cstddef +index d4881da7ea8811e34e9f680287c3be6ef90eed2c..8c779ec354d84a18d91f1bb4bbb35892d1db2592 100644 +--- a/libstdc++-v3/include/c_global/cstddef ++++ b/libstdc++-v3/include/c_global/cstddef +@@ -51,17 +51,14 @@ + + extern "C++" + { + #if __cplusplus >= 201103L + namespace std + { +-/* Needed as clib2 on AmigaOS has no C11 support yet */ +-#if __STDC_VERSION__ >= 201112L + // We handle size_t, ptrdiff_t, and nullptr_t in c++config.h. + using ::max_align_t; +-#endif + } + #endif // C++11 + + #if __cplusplus >= 201703L + namespace std + { +diff --git a/libstdc++-v3/include/c_std/cstddef b/libstdc++-v3/include/c_std/cstddef +index 4f665fbbf77b2285bb8edd61c38441bc27cc9c62..8d3ba8b28d491903391540d9d70b561a4dd240d3 100644 +--- a/libstdc++-v3/include/c_std/cstddef ++++ b/libstdc++-v3/include/c_std/cstddef +@@ -44,15 +44,12 @@ + #include + #include + + #if __cplusplus >= 201103L + namespace std + { +-/* Needed as clib2 on AmigaOS has no C11 support yet */ +-#if __STDC_VERSION__ >= 201112L + // We handle size_t, ptrdiff_t, and nullptr_t in c++config.h. + using ::max_align_t; +-#endif + } + #endif + + #endif // _GLIBCXX_CSTDDEF +-- +2.11.0 + From e6cc3ae7b4d73f28c218342b3bdfd22dd5611cc4 Mon Sep 17 00:00:00 2001 From: Fredrik Wikstrom Date: Fri, 8 Jan 2021 13:44:27 +0100 Subject: [PATCH 03/10] gcc9: Added missing init_threadstore in __gthread_self(). --- gcc/9/patches/0025-Add-amigaos-thread-model.patch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/9/patches/0025-Add-amigaos-thread-model.patch b/gcc/9/patches/0025-Add-amigaos-thread-model.patch index 60ef35d..877efa1 100644 --- a/gcc/9/patches/0025-Add-amigaos-thread-model.patch +++ b/gcc/9/patches/0025-Add-amigaos-thread-model.patch @@ -298,7 +298,7 @@ new file mode 100644 index 0000000000000000000000000000000000000000..41adbdc3324156bee31731da8f0da92e819ffdd8 --- /dev/null +++ b/libgcc/gthr-amigaos-native.c -@@ -0,0 +1,1013 @@ +@@ -0,0 +1,1016 @@ +/** + * This is the native implementation of gcc threads abstraction. The advantage + * over the pthreads one is that no pthreads.library is needed. @@ -996,6 +996,9 @@ index 0000000000000000000000000000000000000000..41adbdc3324156bee31731da8f0da92e + /* Initialize libs */ + __gthread_once (&libs_once, init_libs); + ++ /* Initialize our private threadstore, but only once */ ++ __gthread_once (&threadstore_once, init_threadstore); ++ + task = iexec->FindTask(NULL); + iexec->ObtainSemaphoreShared (&threadstore->sem); + if ((thr = find_threadentry_by_process ((struct Process *)task))) From 833bb88e9b825f519f665b2e8a6e7924158e848e Mon Sep 17 00:00:00 2001 From: Fredrik Wikstrom Date: Fri, 8 Jan 2021 13:46:17 +0100 Subject: [PATCH 04/10] gcc9: Added missing increment in __gthread_mutex_trylock(). --- gcc/9/patches/0025-Add-amigaos-thread-model.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/9/patches/0025-Add-amigaos-thread-model.patch b/gcc/9/patches/0025-Add-amigaos-thread-model.patch index 877efa1..21e91b2 100644 --- a/gcc/9/patches/0025-Add-amigaos-thread-model.patch +++ b/gcc/9/patches/0025-Add-amigaos-thread-model.patch @@ -298,7 +298,7 @@ new file mode 100644 index 0000000000000000000000000000000000000000..41adbdc3324156bee31731da8f0da92e819ffdd8 --- /dev/null +++ b/libgcc/gthr-amigaos-native.c -@@ -0,0 +1,1016 @@ +@@ -0,0 +1,1017 @@ +/** + * This is the native implementation of gcc threads abstraction. The advantage + * over the pthreads one is that no pthreads.library is needed. @@ -729,6 +729,7 @@ index 0000000000000000000000000000000000000000..41adbdc3324156bee31731da8f0da92e + iexec->ReleaseSemaphore (&mx->u.i.sem); + return EBUSY; + } ++ mx->u.i.acquired++; + return 0; + } + return EBUSY; From babee52f33366db2febae4645f7e108f4b8b3964 Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Fri, 29 Jan 2021 10:56:32 +0100 Subject: [PATCH 05/10] gcc9: Don't define __STRICT_ANSI__. Doing so hides C99 features when configuring libstdc++. --- ...1-Changes-for-AmigaOS-version-of-gcc.patch | 2 +- ...on-attribute-lineartags-and-pragma-a.patch | 2 +- ...isable-.machine-directive-generation.patch | 2 +- ...ault-link-mode-is-static-for-AmigaOS.patch | 2 +- ...e-of-dev-urandom-when-compiling-for-.patch | 2 +- ...-on-AmigaOS-using-the-PROGDIR-assign.patch | 2 +- ...-compability-changes-for-posix-threa.patch | 2 +- ...008-Added-libstc-support-for-AmigaOS.patch | 2 +- ...009-Enable-libatomic-for-ppc-amigaos.patch | 2 +- ...ment-libat_lock_n-and-libat_unlock_n.patch | 2 +- .../0011-Pretend-C99-compatibility.patch | 2 +- ...2-Add-amigaos-stdint.h-for-libatomic.patch | 2 +- ...3-Rerun-make-maint-deps-in-libiberty.patch | 2 +- ...mentation-of-various-env-related-fun.patch | 2 +- ...ne-va_startlinear-and-va_getlinearva.patch | 2 +- ...-in-the-epilog-of-baserel-restoring-.patch | 2 +- ...-section-anchors-in-the-baserel-mode.patch | 2 +- ...spect-nostdinc-also-for-SDK-includes.patch | 2 +- gcc/9/patches/0019-Add-_Static_warning.patch | 2 +- ...ibute-that-can-be-passed-to-enum-con.patch | 2 +- .../0021-Rename-lineartags-to-checktags.patch | 2 +- ...gaOS-PPC-sections-in-the-documentati.patch | 2 +- ...ntation-for-checktags-and-tagtype-at.patch | 2 +- .../0024-Adapt-libssp-for-AmigaOS.patch | 2 +- .../0025-Add-amigaos-thread-model.patch | 2 +- ...tribute-for-functions-for-the-m68k-b.patch | 2 +- .../0027-gcc9-Don-t-use-poisoned-define.patch | 2 +- .../patches/0028-gcc9-Fix-unused-value.patch | 2 +- ...t-documentation-section-order-naming.patch | 2 +- gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch | 2 +- ...-Expose-max_align_t-when-using-clib2.patch | 2 +- ...n-t-define-__STRICT_ANSI__.-Doing-so.patch | 38 +++++++++++++++++++ 32 files changed, 69 insertions(+), 31 deletions(-) create mode 100644 gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so.patch diff --git a/gcc/9/patches/0001-Changes-for-AmigaOS-version-of-gcc.patch b/gcc/9/patches/0001-Changes-for-AmigaOS-version-of-gcc.patch index 2fb3de7..ecb3f2f 100644 --- a/gcc/9/patches/0001-Changes-for-AmigaOS-version-of-gcc.patch +++ b/gcc/9/patches/0001-Changes-for-AmigaOS-version-of-gcc.patch @@ -1,7 +1,7 @@ From 9511ecf6645337c5cdc31e5c61a1cfb132f16ba4 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Tue, 17 Feb 2015 20:25:55 +0100 -Subject: [PATCH 01/31] Changes for AmigaOS version of gcc. +Subject: [PATCH 01/32] Changes for AmigaOS version of gcc. --- fixincludes/configure | 1 + diff --git a/gcc/9/patches/0002-Added-new-function-attribute-lineartags-and-pragma-a.patch b/gcc/9/patches/0002-Added-new-function-attribute-lineartags-and-pragma-a.patch index a4dd433..6f2b31b 100644 --- a/gcc/9/patches/0002-Added-new-function-attribute-lineartags-and-pragma-a.patch +++ b/gcc/9/patches/0002-Added-new-function-attribute-lineartags-and-pragma-a.patch @@ -1,7 +1,7 @@ From 892a378d609a1b622e6fd6259078d3cfca9c9717 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Fri, 14 Nov 2014 20:03:56 +0100 -Subject: [PATCH 02/31] Added new function attribute "lineartags" and pragma +Subject: [PATCH 02/32] Added new function attribute "lineartags" and pragma "amigaos tagtype". Functions that have the lineartags attribute are assumed to be functions diff --git a/gcc/9/patches/0003-Disable-.machine-directive-generation.patch b/gcc/9/patches/0003-Disable-.machine-directive-generation.patch index fe67e06..887c573 100644 --- a/gcc/9/patches/0003-Disable-.machine-directive-generation.patch +++ b/gcc/9/patches/0003-Disable-.machine-directive-generation.patch @@ -1,7 +1,7 @@ From f80203a95b03a0ccfa6212ff7cf5cc742782e571 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Thu, 9 Jul 2015 06:54:37 +0200 -Subject: [PATCH 03/31] Disable .machine directive generation. +Subject: [PATCH 03/32] Disable .machine directive generation. It breaks manual args to the assembler with different flavor, e.g., -Wa,-m440. This is probably not the right fix. diff --git a/gcc/9/patches/0004-The-default-link-mode-is-static-for-AmigaOS.patch b/gcc/9/patches/0004-The-default-link-mode-is-static-for-AmigaOS.patch index d3aaa42..8a23591 100644 --- a/gcc/9/patches/0004-The-default-link-mode-is-static-for-AmigaOS.patch +++ b/gcc/9/patches/0004-The-default-link-mode-is-static-for-AmigaOS.patch @@ -1,7 +1,7 @@ From f43ead8f261f824ad2f32a1115c206f4b6574e52 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Wed, 2 Dec 2015 20:56:33 +0100 -Subject: [PATCH 04/31] The default link mode is static for AmigaOS. +Subject: [PATCH 04/32] The default link mode is static for AmigaOS. Changed the g++ driver to reflect this. --- diff --git a/gcc/9/patches/0005-Disable-the-usage-of-dev-urandom-when-compiling-for-.patch b/gcc/9/patches/0005-Disable-the-usage-of-dev-urandom-when-compiling-for-.patch index d73fb38..0681a2c 100644 --- a/gcc/9/patches/0005-Disable-the-usage-of-dev-urandom-when-compiling-for-.patch +++ b/gcc/9/patches/0005-Disable-the-usage-of-dev-urandom-when-compiling-for-.patch @@ -1,7 +1,7 @@ From 93b70f37543c86db068f00da18672cfdd96988b8 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Wed, 2 Dec 2015 21:39:42 +0100 -Subject: [PATCH 05/31] Disable the usage of /dev/urandom when compiling for +Subject: [PATCH 05/32] Disable the usage of /dev/urandom when compiling for AmigaOS. --- diff --git a/gcc/9/patches/0006-Expand-arg-zero-on-AmigaOS-using-the-PROGDIR-assign.patch b/gcc/9/patches/0006-Expand-arg-zero-on-AmigaOS-using-the-PROGDIR-assign.patch index 02a588d..b49b2fe 100644 --- a/gcc/9/patches/0006-Expand-arg-zero-on-AmigaOS-using-the-PROGDIR-assign.patch +++ b/gcc/9/patches/0006-Expand-arg-zero-on-AmigaOS-using-the-PROGDIR-assign.patch @@ -1,7 +1,7 @@ From d994439847182f153ca7a25f718e47eb9ecaa456 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Sat, 5 Dec 2015 13:17:26 +0100 -Subject: [PATCH 06/31] Expand arg zero on AmigaOS using the PROGDIR: assign. +Subject: [PATCH 06/32] Expand arg zero on AmigaOS using the PROGDIR: assign. This should make sure that the proper relative paths are computed during process_command(). diff --git a/gcc/9/patches/0007-Some-AmigaOS-4.x-compability-changes-for-posix-threa.patch b/gcc/9/patches/0007-Some-AmigaOS-4.x-compability-changes-for-posix-threa.patch index 4db3b32..7d10bec 100644 --- a/gcc/9/patches/0007-Some-AmigaOS-4.x-compability-changes-for-posix-threa.patch +++ b/gcc/9/patches/0007-Some-AmigaOS-4.x-compability-changes-for-posix-threa.patch @@ -1,7 +1,7 @@ From 8ba761c3761a87cdf6a5ece5b7fa5c225e001003 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Thu, 21 Jan 2016 20:46:59 +0100 -Subject: [PATCH 07/31] Some AmigaOS 4.x compability changes for posix thread +Subject: [PATCH 07/32] Some AmigaOS 4.x compability changes for posix thread support. --- diff --git a/gcc/9/patches/0008-Added-libstc-support-for-AmigaOS.patch b/gcc/9/patches/0008-Added-libstc-support-for-AmigaOS.patch index c79896c..2d6d544 100644 --- a/gcc/9/patches/0008-Added-libstc-support-for-AmigaOS.patch +++ b/gcc/9/patches/0008-Added-libstc-support-for-AmigaOS.patch @@ -1,7 +1,7 @@ From ad7ead8f8064e66ea8508f3dcba43f62a489a41b Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Fri, 22 Jan 2016 20:04:50 +0100 -Subject: [PATCH 08/31] Added libstc++ support for AmigaOS. +Subject: [PATCH 08/32] Added libstc++ support for AmigaOS. --- libstdc++-v3/config/os/amigaos/ctype_base.h | 59 +++++++ diff --git a/gcc/9/patches/0009-Enable-libatomic-for-ppc-amigaos.patch b/gcc/9/patches/0009-Enable-libatomic-for-ppc-amigaos.patch index d7d5574..609a574 100644 --- a/gcc/9/patches/0009-Enable-libatomic-for-ppc-amigaos.patch +++ b/gcc/9/patches/0009-Enable-libatomic-for-ppc-amigaos.patch @@ -1,7 +1,7 @@ From 330c0d98c44e822fbe5795bd7b203143358eefe1 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Fri, 3 Mar 2017 08:52:48 +0100 -Subject: [PATCH 09/31] Enable libatomic for ppc-amigaos. +Subject: [PATCH 09/32] Enable libatomic for ppc-amigaos. It is not really finished yet. --- diff --git a/gcc/9/patches/0010-Implement-libat_lock_n-and-libat_unlock_n.patch b/gcc/9/patches/0010-Implement-libat_lock_n-and-libat_unlock_n.patch index d22af59..8fc1592 100644 --- a/gcc/9/patches/0010-Implement-libat_lock_n-and-libat_unlock_n.patch +++ b/gcc/9/patches/0010-Implement-libat_lock_n-and-libat_unlock_n.patch @@ -1,7 +1,7 @@ From fb4f1673a62e828fd3fa74decd2771942ea709ac Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Wed, 23 May 2018 10:54:19 +0200 -Subject: [PATCH 10/31] Implement libat_lock_n() and libat_unlock_n(). +Subject: [PATCH 10/32] Implement libat_lock_n() and libat_unlock_n(). --- libatomic/config/amigaos/lock.c | 58 ++++++++++++++++++++++++++++++++--------- diff --git a/gcc/9/patches/0011-Pretend-C99-compatibility.patch b/gcc/9/patches/0011-Pretend-C99-compatibility.patch index 5a2aa31..f3701b7 100644 --- a/gcc/9/patches/0011-Pretend-C99-compatibility.patch +++ b/gcc/9/patches/0011-Pretend-C99-compatibility.patch @@ -1,7 +1,7 @@ From 7ddd0aa30703bee23ed45739d8e7bf464e2f8fca Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Sat, 4 Mar 2017 07:39:21 +0100 -Subject: [PATCH 11/31] Pretend C99 compatibility. +Subject: [PATCH 11/32] Pretend C99 compatibility. At least newlib is not fully C99 compatible because it doesn't expose various C99 function if __STRICT_ANSI__ is declared. Also it misses diff --git a/gcc/9/patches/0012-Add-amigaos-stdint.h-for-libatomic.patch b/gcc/9/patches/0012-Add-amigaos-stdint.h-for-libatomic.patch index 781d9a9..aa8caa7 100644 --- a/gcc/9/patches/0012-Add-amigaos-stdint.h-for-libatomic.patch +++ b/gcc/9/patches/0012-Add-amigaos-stdint.h-for-libatomic.patch @@ -1,7 +1,7 @@ From 32119abeec42cdc7617a8b4e13f3bd7d2d9532fa Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Tue, 3 Apr 2018 19:52:01 +0200 -Subject: [PATCH 12/31] Add amigaos-stdint.h for libatomic. +Subject: [PATCH 12/32] Add amigaos-stdint.h for libatomic. --- gcc/config.gcc | 2 +- diff --git a/gcc/9/patches/0013-Rerun-make-maint-deps-in-libiberty.patch b/gcc/9/patches/0013-Rerun-make-maint-deps-in-libiberty.patch index 6f2027a..b398809 100644 --- a/gcc/9/patches/0013-Rerun-make-maint-deps-in-libiberty.patch +++ b/gcc/9/patches/0013-Rerun-make-maint-deps-in-libiberty.patch @@ -1,7 +1,7 @@ From f6986271e33195dc5448ba24c5acc88dd9244c1a Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Wed, 4 Apr 2018 22:48:33 +0200 -Subject: [PATCH 13/31] Rerun make maint-deps in libiberty. +Subject: [PATCH 13/32] Rerun make maint-deps in libiberty. --- libiberty/Makefile.in | 36 ++++++++++++++++++++++-------------- diff --git a/gcc/9/patches/0014-Add-custom-implementation-of-various-env-related-fun.patch b/gcc/9/patches/0014-Add-custom-implementation-of-various-env-related-fun.patch index feae984..c9fd1b2 100644 --- a/gcc/9/patches/0014-Add-custom-implementation-of-various-env-related-fun.patch +++ b/gcc/9/patches/0014-Add-custom-implementation-of-various-env-related-fun.patch @@ -1,7 +1,7 @@ From ac3c290c64a13ae833ae83c952d3eb4d437be46a Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Wed, 4 Apr 2018 23:50:48 +0200 -Subject: [PATCH 14/31] Add custom implementation of various env-related +Subject: [PATCH 14/32] Add custom implementation of various env-related functions. No official clib does support unsetenv() but this is required by newer gcc. diff --git a/gcc/9/patches/0015-Define-va_startlinear-and-va_getlinearva.patch b/gcc/9/patches/0015-Define-va_startlinear-and-va_getlinearva.patch index 981d70b..20e914d 100644 --- a/gcc/9/patches/0015-Define-va_startlinear-and-va_getlinearva.patch +++ b/gcc/9/patches/0015-Define-va_startlinear-and-va_getlinearva.patch @@ -1,7 +1,7 @@ From 6e09fc8c45f87629dd31bcf61acae35afa0edee9 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Thu, 5 Apr 2018 19:56:45 +0200 -Subject: [PATCH 15/31] Define va_startlinear and va_getlinearva. +Subject: [PATCH 15/32] Define va_startlinear and va_getlinearva. These were usually defined in the clibs' stdarg.h. As we have now changed the include path order, clibs' stdarg.h is never included. diff --git a/gcc/9/patches/0016-Fix-r2-restoring-in-the-epilog-of-baserel-restoring-.patch b/gcc/9/patches/0016-Fix-r2-restoring-in-the-epilog-of-baserel-restoring-.patch index 1025c6c..d2c3295 100644 --- a/gcc/9/patches/0016-Fix-r2-restoring-in-the-epilog-of-baserel-restoring-.patch +++ b/gcc/9/patches/0016-Fix-r2-restoring-in-the-epilog-of-baserel-restoring-.patch @@ -1,7 +1,7 @@ From 30ecab0d0356aab11461e6eae0de522b649f67fd Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Tue, 17 Apr 2018 22:02:09 +0200 -Subject: [PATCH 16/31] Fix r2 restoring in the epilog of baserel-restoring +Subject: [PATCH 16/32] Fix r2 restoring in the epilog of baserel-restoring functions. --- diff --git a/gcc/9/patches/0017-Avoid-section-anchors-in-the-baserel-mode.patch b/gcc/9/patches/0017-Avoid-section-anchors-in-the-baserel-mode.patch index f62cf7c..0ce1f37 100644 --- a/gcc/9/patches/0017-Avoid-section-anchors-in-the-baserel-mode.patch +++ b/gcc/9/patches/0017-Avoid-section-anchors-in-the-baserel-mode.patch @@ -1,7 +1,7 @@ From 945d91a324e0201bfe89d0b261b416017d69d5ea Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Thu, 19 Apr 2018 21:00:30 +0200 -Subject: [PATCH 17/31] Avoid section anchors in the baserel mode. +Subject: [PATCH 17/32] Avoid section anchors in the baserel mode. --- gcc/config/rs6000/amigaos-protos.h | 1 + diff --git a/gcc/9/patches/0018-Respect-nostdinc-also-for-SDK-includes.patch b/gcc/9/patches/0018-Respect-nostdinc-also-for-SDK-includes.patch index eb58ae4..83a1d02 100644 --- a/gcc/9/patches/0018-Respect-nostdinc-also-for-SDK-includes.patch +++ b/gcc/9/patches/0018-Respect-nostdinc-also-for-SDK-includes.patch @@ -1,7 +1,7 @@ From 468b1096ebe3abe0fbe27fc65463c97c0fc4ec03 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Fri, 20 Apr 2018 20:04:30 +0200 -Subject: [PATCH 18/31] Respect -nostdinc also for SDK includes. +Subject: [PATCH 18/32] Respect -nostdinc also for SDK includes. --- gcc/config/rs6000/amigaos.h | 4 +--- diff --git a/gcc/9/patches/0019-Add-_Static_warning.patch b/gcc/9/patches/0019-Add-_Static_warning.patch index 95ac703..07b36af 100644 --- a/gcc/9/patches/0019-Add-_Static_warning.patch +++ b/gcc/9/patches/0019-Add-_Static_warning.patch @@ -1,7 +1,7 @@ From 3d6faadb51e79eb97b4cd3273abb62648f0deb5c Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Tue, 24 Apr 2018 22:46:21 +0200 -Subject: [PATCH 19/31] Add _Static_warning(). +Subject: [PATCH 19/32] Add _Static_warning(). This acts very similar to _Static_assert() but produces a warning rather than an compiler error. diff --git a/gcc/9/patches/0020-Add-tagtype-attribute-that-can-be-passed-to-enum-con.patch b/gcc/9/patches/0020-Add-tagtype-attribute-that-can-be-passed-to-enum-con.patch index a8c7f4b..544a6d9 100644 --- a/gcc/9/patches/0020-Add-tagtype-attribute-that-can-be-passed-to-enum-con.patch +++ b/gcc/9/patches/0020-Add-tagtype-attribute-that-can-be-passed-to-enum-con.patch @@ -1,7 +1,7 @@ From 6d8c18fa473b71fed3819df0c600c4c191d234eb Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Tue, 24 Apr 2018 06:29:13 +0200 -Subject: [PATCH 20/31] Add tagtype attribute that can be passed to enum +Subject: [PATCH 20/32] Add tagtype attribute that can be passed to enum constants. The tagtype attribute can be applied to enum constants in order to annotate diff --git a/gcc/9/patches/0021-Rename-lineartags-to-checktags.patch b/gcc/9/patches/0021-Rename-lineartags-to-checktags.patch index cccb0e0..47f109d 100644 --- a/gcc/9/patches/0021-Rename-lineartags-to-checktags.patch +++ b/gcc/9/patches/0021-Rename-lineartags-to-checktags.patch @@ -1,7 +1,7 @@ From 9a1d31fc7c22999393eba7b5e59169496007d982 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Fri, 27 Apr 2018 22:48:18 +0200 -Subject: [PATCH 21/31] Rename lineartags to checktags. +Subject: [PATCH 21/32] Rename lineartags to checktags. The name lineartags would imply linearvarargs but this is not implemented or necessary. diff --git a/gcc/9/patches/0022-Fix-order-of-AmigaOS-PPC-sections-in-the-documentati.patch b/gcc/9/patches/0022-Fix-order-of-AmigaOS-PPC-sections-in-the-documentati.patch index 0e417a8..5525fbe 100644 --- a/gcc/9/patches/0022-Fix-order-of-AmigaOS-PPC-sections-in-the-documentati.patch +++ b/gcc/9/patches/0022-Fix-order-of-AmigaOS-PPC-sections-in-the-documentati.patch @@ -1,7 +1,7 @@ From f5757ee85e0e366086bc5c470bef669b4dd2871c Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Sat, 28 Apr 2018 08:09:58 +0200 -Subject: [PATCH 22/31] Fix order of AmigaOS PPC sections in the documentation. +Subject: [PATCH 22/32] Fix order of AmigaOS PPC sections in the documentation. --- gcc/doc/invoke.texi | 264 ++++++++++++++++++++++++++-------------------------- diff --git a/gcc/9/patches/0023-Provide-a-documentation-for-checktags-and-tagtype-at.patch b/gcc/9/patches/0023-Provide-a-documentation-for-checktags-and-tagtype-at.patch index 831e5c8..805db5a 100644 --- a/gcc/9/patches/0023-Provide-a-documentation-for-checktags-and-tagtype-at.patch +++ b/gcc/9/patches/0023-Provide-a-documentation-for-checktags-and-tagtype-at.patch @@ -1,7 +1,7 @@ From 8a759fb742db32812c3c89550ee11bb1ee42232d Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Sun, 29 Apr 2018 00:08:22 +0200 -Subject: [PATCH 23/31] Provide a documentation for checktags and tagtype +Subject: [PATCH 23/32] Provide a documentation for checktags and tagtype attributes. --- diff --git a/gcc/9/patches/0024-Adapt-libssp-for-AmigaOS.patch b/gcc/9/patches/0024-Adapt-libssp-for-AmigaOS.patch index 729c379..8709a40 100644 --- a/gcc/9/patches/0024-Adapt-libssp-for-AmigaOS.patch +++ b/gcc/9/patches/0024-Adapt-libssp-for-AmigaOS.patch @@ -1,7 +1,7 @@ From 8656b55b825bdeec1f3aaf9ceffbe5c5e5fda6bf Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Tue, 22 May 2018 23:14:01 +0200 -Subject: [PATCH 24/31] Adapt libssp for AmigaOS. +Subject: [PATCH 24/32] Adapt libssp for AmigaOS. --- libssp/ssp.c | 8 +++++--- diff --git a/gcc/9/patches/0025-Add-amigaos-thread-model.patch b/gcc/9/patches/0025-Add-amigaos-thread-model.patch index 21e91b2..71f6a19 100644 --- a/gcc/9/patches/0025-Add-amigaos-thread-model.patch +++ b/gcc/9/patches/0025-Add-amigaos-thread-model.patch @@ -1,7 +1,7 @@ From 8e7a06d914e05861cf8e03a2a822a5d0bc6ae4c0 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Fri, 4 May 2018 18:22:24 +0200 -Subject: [PATCH 25/31] Add amigaos thread model. +Subject: [PATCH 25/32] Add amigaos thread model. It is work in progress. --- diff --git a/gcc/9/patches/0026-Add-aregparam-attribute-for-functions-for-the-m68k-b.patch b/gcc/9/patches/0026-Add-aregparam-attribute-for-functions-for-the-m68k-b.patch index abe1511..2e30da3 100644 --- a/gcc/9/patches/0026-Add-aregparam-attribute-for-functions-for-the-m68k-b.patch +++ b/gcc/9/patches/0026-Add-aregparam-attribute-for-functions-for-the-m68k-b.patch @@ -1,7 +1,7 @@ From 78501d5d0a714a1616e53e6f19ed6ea28a3b5a87 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Sat, 27 Oct 2018 08:06:21 +0200 -Subject: [PATCH 26/31] Add aregparam attribute for functions for the m68k +Subject: [PATCH 26/32] Add aregparam attribute for functions for the m68k backend. These can be used to pass arguments to directly named registers. diff --git a/gcc/9/patches/0027-gcc9-Don-t-use-poisoned-define.patch b/gcc/9/patches/0027-gcc9-Don-t-use-poisoned-define.patch index 30592e4..b3c14d3 100644 --- a/gcc/9/patches/0027-gcc9-Don-t-use-poisoned-define.patch +++ b/gcc/9/patches/0027-gcc9-Don-t-use-poisoned-define.patch @@ -1,7 +1,7 @@ From 5b3765448ca16c222d070007932e8ae0512c277e Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Tue, 29 Dec 2020 21:19:57 +0100 -Subject: [PATCH 27/31] gcc9: Don't use poisoned define. +Subject: [PATCH 27/32] gcc9: Don't use poisoned define. --- gcc/config/rs6000/amigaos.h | 3 --- diff --git a/gcc/9/patches/0028-gcc9-Fix-unused-value.patch b/gcc/9/patches/0028-gcc9-Fix-unused-value.patch index ed669be..e51c039 100644 --- a/gcc/9/patches/0028-gcc9-Fix-unused-value.patch +++ b/gcc/9/patches/0028-gcc9-Fix-unused-value.patch @@ -1,7 +1,7 @@ From e904a6ed5ffaf63151307171bad9b94530e065dd Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Tue, 29 Dec 2020 21:24:26 +0100 -Subject: [PATCH 28/31] gcc9: Fix unused value. +Subject: [PATCH 28/32] gcc9: Fix unused value. --- gcc/c/c-parser.c | 2 +- diff --git a/gcc/9/patches/0029-gcc9-Correct-documentation-section-order-naming.patch b/gcc/9/patches/0029-gcc9-Correct-documentation-section-order-naming.patch index 0b1b942..82198b7 100644 --- a/gcc/9/patches/0029-gcc9-Correct-documentation-section-order-naming.patch +++ b/gcc/9/patches/0029-gcc9-Correct-documentation-section-order-naming.patch @@ -1,7 +1,7 @@ From 5c22aeb4ca116e2b41badac7f53190b448e3723d Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Tue, 29 Dec 2020 21:28:04 +0100 -Subject: [PATCH 29/31] gcc9: Correct documentation section order / naming. +Subject: [PATCH 29/32] gcc9: Correct documentation section order / naming. --- gcc/doc/extend.texi | 4 +-- diff --git a/gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch b/gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch index fb744c8..1bc6c91 100644 --- a/gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch +++ b/gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch @@ -1,7 +1,7 @@ From 379d4088453768dc7a3cd04c1f2bae0ab07fb09f Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Tue, 29 Dec 2020 21:47:26 +0100 -Subject: [PATCH 30/31] gcc9: Define CC1_SPEC. +Subject: [PATCH 30/32] gcc9: Define CC1_SPEC. --- gcc/config/rs6000/amigaos.h | 13 +++++++++++++ diff --git a/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch b/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch index a9ad66f..76b0a01 100644 --- a/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch +++ b/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch @@ -1,7 +1,7 @@ From 060011cf50f1b802a100f2777bca14a9cada8b35 Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Wed, 6 Jan 2021 20:06:54 +0100 -Subject: [PATCH 31/31] gcc9: Expose max_align_t when using clib2. +Subject: [PATCH 31/32] gcc9: Expose max_align_t when using clib2. --- libstdc++-v3/include/c_global/cstddef | 3 --- diff --git a/gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so.patch b/gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so.patch new file mode 100644 index 0000000..a2c697e --- /dev/null +++ b/gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so.patch @@ -0,0 +1,38 @@ +From 3dfc96d88a8b2336e528864452490e163158d35f Mon Sep 17 00:00:00 2001 +From: "ola.soder@axis.com" +Date: Wed, 27 Jan 2021 18:56:32 +0100 +Subject: [PATCH 32/32] gcc9: Don't define __STRICT_ANSI__. Doing so hides C99 + features when configuring libstdc++. + +--- + libstdc++-v3/config/os/amigaos/os_defines.h | 11 +++++++++-- + 1 file changed, 9 insertions(+), 2 deletions(-) + +diff --git a/libstdc++-v3/config/os/amigaos/os_defines.h b/libstdc++-v3/config/os/amigaos/os_defines.h +index 6b67630b7be7102a9dfb7c104deac6293a13c017..3f2d894b6c28e493e38c114da8d4f8528c4e3a12 100644 +--- a/libstdc++-v3/config/os/amigaos/os_defines.h ++++ b/libstdc++-v3/config/os/amigaos/os_defines.h +@@ -36,11 +36,18 @@ + // No ioctl() on AmigaOS + #define _GLIBCXX_NO_IOCTL 1 + + #ifdef __NEWLIB__ + #define _GLIBCXX_USE_C99_STDINT_TR1 1 + #define _GLIBCXX_USE_C99 1 +-/* Temporary until newlib behaves properly */ +-#undef __STRICT_ANSI__ + #endif + ++#undef __STRICT_ANSI__ ++/* GCC defines this macro if, and only if, the -ansi switch, or a ++ * -std switch specifying strict conformance to some version of ISO C ++ * or ISO C++, was specified when GCC was invoked. This macro exists ++ * primarily to direct GNU libc's header files to restrict their ++ * definitions to the minimal set found in the 1989 C standard. If ++ * -std is set to > c++98 when building with clib2, configure will be ++ * tricked into believing that existing C99 features are missing. */ ++ + #endif +-- +2.11.0 + From 8b317230edcd3ca8413fea7384145f02fdf89a2b Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Fri, 29 Jan 2021 11:04:54 +0100 Subject: [PATCH 06/10] Use clib2 fork with C++17 support. Doing so will fix namespace problems, add long double math and complex support. --- native-build/makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native-build/makefile b/native-build/makefile index 26d508a..b9007bd 100644 --- a/native-build/makefile +++ b/native-build/makefile @@ -46,8 +46,8 @@ COREUTILS_VERSION=5.2.1 # Distribution version, used as middle part of a distribution archive DIST_VERSION=$(shell date +%Y%m%d)-$(shell git rev-list --count HEAD) -CLIB2_URL=https://github.com/sba1/clib2-1 -CLIB2_SHA1=b874ff71deb55016a20f87483beb1ecbe226c55e +CLIB2_URL=https://github.com/sodero/clib2 +CLIB2_SHA1=b98491c8787b48cb2ffe95cfc88cc4e66a2eec29 CLIB2_RELEASE_ARCHIVE_NAME=adtools-os4-clib2-$(DIST_VERSION).lha CROSS_PREFIX?=$(ROOT_DIR)/root-cross From af242e73ab83aefa5125d22d5202b847e1409d6c Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Fri, 29 Jan 2021 11:11:11 +0100 Subject: [PATCH 07/10] gcc9: Regenerate patch set. --- gcc/9/patches/0025-Add-amigaos-thread-model.patch | 8 ++++---- ...aregparam-attribute-for-functions-for-the-m68k-b.patch | 2 +- gcc/9/patches/0027-gcc9-Don-t-use-poisoned-define.patch | 2 +- gcc/9/patches/0028-gcc9-Fix-unused-value.patch | 2 +- ...-gcc9-Correct-documentation-section-order-naming.patch | 2 +- gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch | 2 +- .../0031-gcc9-Expose-max_align_t-when-using-clib2.patch | 2 +- ...Don-t-define-__STRICT_ANSI__.-Doing-so-hides-C9.patch} | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) rename gcc/9/patches/{0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so.patch => 0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so-hides-C9.patch} (95%) diff --git a/gcc/9/patches/0025-Add-amigaos-thread-model.patch b/gcc/9/patches/0025-Add-amigaos-thread-model.patch index 71f6a19..34aece9 100644 --- a/gcc/9/patches/0025-Add-amigaos-thread-model.patch +++ b/gcc/9/patches/0025-Add-amigaos-thread-model.patch @@ -1,4 +1,4 @@ -From 8e7a06d914e05861cf8e03a2a822a5d0bc6ae4c0 Mon Sep 17 00:00:00 2001 +From c9c6bd709f7c88ab245b854ea61ee613558aedd1 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Fri, 4 May 2018 18:22:24 +0200 Subject: [PATCH 25/32] Add amigaos thread model. @@ -16,12 +16,12 @@ It is work in progress. libgcc/config/rs6000/t-amigaos | 5 + libgcc/configure | 1 + libgcc/gthr-amigaos-asserts.h | 8 + - libgcc/gthr-amigaos-native.c | 1013 ++++++++++++++++++++++++++++++++++++++++ + libgcc/gthr-amigaos-native.c | 1017 ++++++++++++++++++++++++++++++++++++++++ libgcc/gthr-amigaos-posix.c | 233 +++++++++ libgcc/gthr-amigaos-single.c | 141 ++++++ libgcc/gthr-amigaos.h | 347 ++++++++++++++ libstdc++-v3/configure | 15 +- - 16 files changed, 1808 insertions(+), 12 deletions(-) + 16 files changed, 1812 insertions(+), 12 deletions(-) create mode 100644 gcc/config/rs6000/x-amigaos create mode 100644 libgcc/gthr-amigaos-asserts.h create mode 100644 libgcc/gthr-amigaos-native.c @@ -295,7 +295,7 @@ index 0000000000000000000000000000000000000000..bb6005cd52ef75cc7bfbc276d5d56ec5 +#endif diff --git a/libgcc/gthr-amigaos-native.c b/libgcc/gthr-amigaos-native.c new file mode 100644 -index 0000000000000000000000000000000000000000..41adbdc3324156bee31731da8f0da92e819ffdd8 +index 0000000000000000000000000000000000000000..3806359eed9a80027a7b37e79d148cded12ce7b9 --- /dev/null +++ b/libgcc/gthr-amigaos-native.c @@ -0,0 +1,1017 @@ diff --git a/gcc/9/patches/0026-Add-aregparam-attribute-for-functions-for-the-m68k-b.patch b/gcc/9/patches/0026-Add-aregparam-attribute-for-functions-for-the-m68k-b.patch index 2e30da3..e0d4e69 100644 --- a/gcc/9/patches/0026-Add-aregparam-attribute-for-functions-for-the-m68k-b.patch +++ b/gcc/9/patches/0026-Add-aregparam-attribute-for-functions-for-the-m68k-b.patch @@ -1,4 +1,4 @@ -From 78501d5d0a714a1616e53e6f19ed6ea28a3b5a87 Mon Sep 17 00:00:00 2001 +From a0ef4c9834a069efe5ceb682e441d320b662262e Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Sat, 27 Oct 2018 08:06:21 +0200 Subject: [PATCH 26/32] Add aregparam attribute for functions for the m68k diff --git a/gcc/9/patches/0027-gcc9-Don-t-use-poisoned-define.patch b/gcc/9/patches/0027-gcc9-Don-t-use-poisoned-define.patch index b3c14d3..5cd4865 100644 --- a/gcc/9/patches/0027-gcc9-Don-t-use-poisoned-define.patch +++ b/gcc/9/patches/0027-gcc9-Don-t-use-poisoned-define.patch @@ -1,4 +1,4 @@ -From 5b3765448ca16c222d070007932e8ae0512c277e Mon Sep 17 00:00:00 2001 +From 4fb3a992c52005924a5577648b304ae35e864d89 Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Tue, 29 Dec 2020 21:19:57 +0100 Subject: [PATCH 27/32] gcc9: Don't use poisoned define. diff --git a/gcc/9/patches/0028-gcc9-Fix-unused-value.patch b/gcc/9/patches/0028-gcc9-Fix-unused-value.patch index e51c039..f27e03c 100644 --- a/gcc/9/patches/0028-gcc9-Fix-unused-value.patch +++ b/gcc/9/patches/0028-gcc9-Fix-unused-value.patch @@ -1,4 +1,4 @@ -From e904a6ed5ffaf63151307171bad9b94530e065dd Mon Sep 17 00:00:00 2001 +From c07ebdfeb0f0e6ae5087e39b378d3d617057cb57 Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Tue, 29 Dec 2020 21:24:26 +0100 Subject: [PATCH 28/32] gcc9: Fix unused value. diff --git a/gcc/9/patches/0029-gcc9-Correct-documentation-section-order-naming.patch b/gcc/9/patches/0029-gcc9-Correct-documentation-section-order-naming.patch index 82198b7..9821632 100644 --- a/gcc/9/patches/0029-gcc9-Correct-documentation-section-order-naming.patch +++ b/gcc/9/patches/0029-gcc9-Correct-documentation-section-order-naming.patch @@ -1,4 +1,4 @@ -From 5c22aeb4ca116e2b41badac7f53190b448e3723d Mon Sep 17 00:00:00 2001 +From cee41d4495846ad3ff303a676fde606d708777cd Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Tue, 29 Dec 2020 21:28:04 +0100 Subject: [PATCH 29/32] gcc9: Correct documentation section order / naming. diff --git a/gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch b/gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch index 1bc6c91..5d06d96 100644 --- a/gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch +++ b/gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch @@ -1,4 +1,4 @@ -From 379d4088453768dc7a3cd04c1f2bae0ab07fb09f Mon Sep 17 00:00:00 2001 +From b57b7787f43793277c7762ebfdab24df1a113145 Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Tue, 29 Dec 2020 21:47:26 +0100 Subject: [PATCH 30/32] gcc9: Define CC1_SPEC. diff --git a/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch b/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch index 76b0a01..658597d 100644 --- a/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch +++ b/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch @@ -1,4 +1,4 @@ -From 060011cf50f1b802a100f2777bca14a9cada8b35 Mon Sep 17 00:00:00 2001 +From ea72190ec45e7b30b4e9e596fde46df00cdbe507 Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Wed, 6 Jan 2021 20:06:54 +0100 Subject: [PATCH 31/32] gcc9: Expose max_align_t when using clib2. diff --git a/gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so.patch b/gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so-hides-C9.patch similarity index 95% rename from gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so.patch rename to gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so-hides-C9.patch index a2c697e..4fe08e4 100644 --- a/gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so.patch +++ b/gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so-hides-C9.patch @@ -1,4 +1,4 @@ -From 3dfc96d88a8b2336e528864452490e163158d35f Mon Sep 17 00:00:00 2001 +From 057a2e651aa45eab01c9d8fb0882816b8ca64828 Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Wed, 27 Jan 2021 18:56:32 +0100 Subject: [PATCH 32/32] gcc9: Don't define __STRICT_ANSI__. Doing so hides C99 From d4eb0d7f3d4301193cdb549b2b8f3b240be5396d Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Sat, 30 Jan 2021 21:29:38 +0100 Subject: [PATCH 08/10] Update clib2. Fixes and improved C99 compatibility. --- native-build/makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native-build/makefile b/native-build/makefile index b9007bd..8d6cde5 100644 --- a/native-build/makefile +++ b/native-build/makefile @@ -47,7 +47,7 @@ COREUTILS_VERSION=5.2.1 DIST_VERSION=$(shell date +%Y%m%d)-$(shell git rev-list --count HEAD) CLIB2_URL=https://github.com/sodero/clib2 -CLIB2_SHA1=b98491c8787b48cb2ffe95cfc88cc4e66a2eec29 +CLIB2_SHA1=421387485dc15cfc0d320dc7bca5bf500be06f24 CLIB2_RELEASE_ARCHIVE_NAME=adtools-os4-clib2-$(DIST_VERSION).lha CROSS_PREFIX?=$(ROOT_DIR)/root-cross From d8ec65daa7e4bb6cc03b63a11e10517fcd289d18 Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Mon, 15 Feb 2021 21:59:00 +0100 Subject: [PATCH 09/10] gcc9: Regenerate patch set. --- .../0011-Pretend-C99-compatibility.patch | 16 ++++------ ...2-Add-amigaos-stdint.h-for-libatomic.patch | 2 +- ...3-Rerun-make-maint-deps-in-libiberty.patch | 2 +- ...mentation-of-various-env-related-fun.patch | 2 +- ...ne-va_startlinear-and-va_getlinearva.patch | 2 +- ...-in-the-epilog-of-baserel-restoring-.patch | 2 +- ...-section-anchors-in-the-baserel-mode.patch | 2 +- ...spect-nostdinc-also-for-SDK-includes.patch | 2 +- gcc/9/patches/0019-Add-_Static_warning.patch | 2 +- ...ibute-that-can-be-passed-to-enum-con.patch | 2 +- .../0021-Rename-lineartags-to-checktags.patch | 2 +- ...gaOS-PPC-sections-in-the-documentati.patch | 2 +- ...ntation-for-checktags-and-tagtype-at.patch | 2 +- .../0024-Adapt-libssp-for-AmigaOS.patch | 2 +- .../0025-Add-amigaos-thread-model.patch | 2 +- ...tribute-for-functions-for-the-m68k-b.patch | 2 +- .../0027-gcc9-Don-t-use-poisoned-define.patch | 2 +- .../patches/0028-gcc9-Fix-unused-value.patch | 2 +- ...t-documentation-section-order-naming.patch | 2 +- gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch | 2 +- ...-Expose-max_align_t-when-using-clib2.patch | 2 +- ...2-gcc9-Don-t-define-__STRICT_ANSI__.patch} | 29 ++++++++++--------- 22 files changed, 41 insertions(+), 44 deletions(-) rename gcc/9/patches/{0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so-hides-C9.patch => 0032-gcc9-Don-t-define-__STRICT_ANSI__.patch} (52%) diff --git a/gcc/9/patches/0011-Pretend-C99-compatibility.patch b/gcc/9/patches/0011-Pretend-C99-compatibility.patch index f3701b7..d8095e7 100644 --- a/gcc/9/patches/0011-Pretend-C99-compatibility.patch +++ b/gcc/9/patches/0011-Pretend-C99-compatibility.patch @@ -1,22 +1,20 @@ -From 7ddd0aa30703bee23ed45739d8e7bf464e2f8fca Mon Sep 17 00:00:00 2001 +From 4bcecd9e4df4f9cc0cc185e9170233dd7fa47e5f Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Sat, 4 Mar 2017 07:39:21 +0100 Subject: [PATCH 11/32] Pretend C99 compatibility. -At least newlib is not fully C99 compatible because it doesn't expose -various C99 function if __STRICT_ANSI__ is declared. Also it misses -strtold() (as clib2). +Disable missing strtold() and pretend that newlib is C99 compatible. --- - libstdc++-v3/config/os/amigaos/os_defines.h | 3 +++ + libstdc++-v3/config/os/amigaos/os_defines.h | 1 + libstdc++-v3/include/bits/basic_string.h | 3 +++ libstdc++-v3/include/c_global/cstdlib | 8 ++++++++ - 3 files changed, 14 insertions(+) + 3 files changed, 12 insertions(+) diff --git a/libstdc++-v3/config/os/amigaos/os_defines.h b/libstdc++-v3/config/os/amigaos/os_defines.h -index 346f063958cd7e80ebf97be4acee0bdf391cb811..6b67630b7be7102a9dfb7c104deac6293a13c017 100644 +index 346f063958cd7e80ebf97be4acee0bdf391cb811..647c560e6ff196234fda2e14073ee0b7074ad5da 100644 --- a/libstdc++-v3/config/os/amigaos/os_defines.h +++ b/libstdc++-v3/config/os/amigaos/os_defines.h -@@ -35,9 +35,12 @@ +@@ -35,9 +35,10 @@ // No ioctl() on AmigaOS #define _GLIBCXX_NO_IOCTL 1 @@ -24,8 +22,6 @@ index 346f063958cd7e80ebf97be4acee0bdf391cb811..6b67630b7be7102a9dfb7c104deac629 #ifdef __NEWLIB__ #define _GLIBCXX_USE_C99_STDINT_TR1 1 +#define _GLIBCXX_USE_C99 1 -+/* Temporary until newlib behaves properly */ -+#undef __STRICT_ANSI__ #endif #endif diff --git a/gcc/9/patches/0012-Add-amigaos-stdint.h-for-libatomic.patch b/gcc/9/patches/0012-Add-amigaos-stdint.h-for-libatomic.patch index aa8caa7..1f34e8b 100644 --- a/gcc/9/patches/0012-Add-amigaos-stdint.h-for-libatomic.patch +++ b/gcc/9/patches/0012-Add-amigaos-stdint.h-for-libatomic.patch @@ -1,4 +1,4 @@ -From 32119abeec42cdc7617a8b4e13f3bd7d2d9532fa Mon Sep 17 00:00:00 2001 +From 34210e273debe6623bc1bf65fb33e154dfca287d Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Tue, 3 Apr 2018 19:52:01 +0200 Subject: [PATCH 12/32] Add amigaos-stdint.h for libatomic. diff --git a/gcc/9/patches/0013-Rerun-make-maint-deps-in-libiberty.patch b/gcc/9/patches/0013-Rerun-make-maint-deps-in-libiberty.patch index b398809..210e07f 100644 --- a/gcc/9/patches/0013-Rerun-make-maint-deps-in-libiberty.patch +++ b/gcc/9/patches/0013-Rerun-make-maint-deps-in-libiberty.patch @@ -1,4 +1,4 @@ -From f6986271e33195dc5448ba24c5acc88dd9244c1a Mon Sep 17 00:00:00 2001 +From 19c55bd286093fd84712b419225f529d1fe7de3d Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Wed, 4 Apr 2018 22:48:33 +0200 Subject: [PATCH 13/32] Rerun make maint-deps in libiberty. diff --git a/gcc/9/patches/0014-Add-custom-implementation-of-various-env-related-fun.patch b/gcc/9/patches/0014-Add-custom-implementation-of-various-env-related-fun.patch index c9fd1b2..2d465ce 100644 --- a/gcc/9/patches/0014-Add-custom-implementation-of-various-env-related-fun.patch +++ b/gcc/9/patches/0014-Add-custom-implementation-of-various-env-related-fun.patch @@ -1,4 +1,4 @@ -From ac3c290c64a13ae833ae83c952d3eb4d437be46a Mon Sep 17 00:00:00 2001 +From de2b45b20db167b2bd7810ea923cbea3a223ecc0 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Wed, 4 Apr 2018 23:50:48 +0200 Subject: [PATCH 14/32] Add custom implementation of various env-related diff --git a/gcc/9/patches/0015-Define-va_startlinear-and-va_getlinearva.patch b/gcc/9/patches/0015-Define-va_startlinear-and-va_getlinearva.patch index 20e914d..38606e2 100644 --- a/gcc/9/patches/0015-Define-va_startlinear-and-va_getlinearva.patch +++ b/gcc/9/patches/0015-Define-va_startlinear-and-va_getlinearva.patch @@ -1,4 +1,4 @@ -From 6e09fc8c45f87629dd31bcf61acae35afa0edee9 Mon Sep 17 00:00:00 2001 +From cf0300253083010d65d3a4e76abdcbef133b828a Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Thu, 5 Apr 2018 19:56:45 +0200 Subject: [PATCH 15/32] Define va_startlinear and va_getlinearva. diff --git a/gcc/9/patches/0016-Fix-r2-restoring-in-the-epilog-of-baserel-restoring-.patch b/gcc/9/patches/0016-Fix-r2-restoring-in-the-epilog-of-baserel-restoring-.patch index d2c3295..8b87b0c 100644 --- a/gcc/9/patches/0016-Fix-r2-restoring-in-the-epilog-of-baserel-restoring-.patch +++ b/gcc/9/patches/0016-Fix-r2-restoring-in-the-epilog-of-baserel-restoring-.patch @@ -1,4 +1,4 @@ -From 30ecab0d0356aab11461e6eae0de522b649f67fd Mon Sep 17 00:00:00 2001 +From dba274ab56638988963334aa91e5a5b8c3146570 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Tue, 17 Apr 2018 22:02:09 +0200 Subject: [PATCH 16/32] Fix r2 restoring in the epilog of baserel-restoring diff --git a/gcc/9/patches/0017-Avoid-section-anchors-in-the-baserel-mode.patch b/gcc/9/patches/0017-Avoid-section-anchors-in-the-baserel-mode.patch index 0ce1f37..94cab1a 100644 --- a/gcc/9/patches/0017-Avoid-section-anchors-in-the-baserel-mode.patch +++ b/gcc/9/patches/0017-Avoid-section-anchors-in-the-baserel-mode.patch @@ -1,4 +1,4 @@ -From 945d91a324e0201bfe89d0b261b416017d69d5ea Mon Sep 17 00:00:00 2001 +From 980ce6ab65694034063955dc4c417a1e0f625611 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Thu, 19 Apr 2018 21:00:30 +0200 Subject: [PATCH 17/32] Avoid section anchors in the baserel mode. diff --git a/gcc/9/patches/0018-Respect-nostdinc-also-for-SDK-includes.patch b/gcc/9/patches/0018-Respect-nostdinc-also-for-SDK-includes.patch index 83a1d02..f9a23d1 100644 --- a/gcc/9/patches/0018-Respect-nostdinc-also-for-SDK-includes.patch +++ b/gcc/9/patches/0018-Respect-nostdinc-also-for-SDK-includes.patch @@ -1,4 +1,4 @@ -From 468b1096ebe3abe0fbe27fc65463c97c0fc4ec03 Mon Sep 17 00:00:00 2001 +From aeb602f9822c8b8330d7ba46c2409ffbe4d939ea Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Fri, 20 Apr 2018 20:04:30 +0200 Subject: [PATCH 18/32] Respect -nostdinc also for SDK includes. diff --git a/gcc/9/patches/0019-Add-_Static_warning.patch b/gcc/9/patches/0019-Add-_Static_warning.patch index 07b36af..4ad3f3c 100644 --- a/gcc/9/patches/0019-Add-_Static_warning.patch +++ b/gcc/9/patches/0019-Add-_Static_warning.patch @@ -1,4 +1,4 @@ -From 3d6faadb51e79eb97b4cd3273abb62648f0deb5c Mon Sep 17 00:00:00 2001 +From d6a2142ed3895ee8278f004c27118cff64a52cbd Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Tue, 24 Apr 2018 22:46:21 +0200 Subject: [PATCH 19/32] Add _Static_warning(). diff --git a/gcc/9/patches/0020-Add-tagtype-attribute-that-can-be-passed-to-enum-con.patch b/gcc/9/patches/0020-Add-tagtype-attribute-that-can-be-passed-to-enum-con.patch index 544a6d9..29af828 100644 --- a/gcc/9/patches/0020-Add-tagtype-attribute-that-can-be-passed-to-enum-con.patch +++ b/gcc/9/patches/0020-Add-tagtype-attribute-that-can-be-passed-to-enum-con.patch @@ -1,4 +1,4 @@ -From 6d8c18fa473b71fed3819df0c600c4c191d234eb Mon Sep 17 00:00:00 2001 +From b1b312298accd2720fadca0958b6f8364808ca11 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Tue, 24 Apr 2018 06:29:13 +0200 Subject: [PATCH 20/32] Add tagtype attribute that can be passed to enum diff --git a/gcc/9/patches/0021-Rename-lineartags-to-checktags.patch b/gcc/9/patches/0021-Rename-lineartags-to-checktags.patch index 47f109d..f6889cc 100644 --- a/gcc/9/patches/0021-Rename-lineartags-to-checktags.patch +++ b/gcc/9/patches/0021-Rename-lineartags-to-checktags.patch @@ -1,4 +1,4 @@ -From 9a1d31fc7c22999393eba7b5e59169496007d982 Mon Sep 17 00:00:00 2001 +From f55990743900795334608ae69beee3d71746b6a6 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Fri, 27 Apr 2018 22:48:18 +0200 Subject: [PATCH 21/32] Rename lineartags to checktags. diff --git a/gcc/9/patches/0022-Fix-order-of-AmigaOS-PPC-sections-in-the-documentati.patch b/gcc/9/patches/0022-Fix-order-of-AmigaOS-PPC-sections-in-the-documentati.patch index 5525fbe..e15bed8 100644 --- a/gcc/9/patches/0022-Fix-order-of-AmigaOS-PPC-sections-in-the-documentati.patch +++ b/gcc/9/patches/0022-Fix-order-of-AmigaOS-PPC-sections-in-the-documentati.patch @@ -1,4 +1,4 @@ -From f5757ee85e0e366086bc5c470bef669b4dd2871c Mon Sep 17 00:00:00 2001 +From f2926304ed58ecea614a304e0c648d162b86b4b4 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Sat, 28 Apr 2018 08:09:58 +0200 Subject: [PATCH 22/32] Fix order of AmigaOS PPC sections in the documentation. diff --git a/gcc/9/patches/0023-Provide-a-documentation-for-checktags-and-tagtype-at.patch b/gcc/9/patches/0023-Provide-a-documentation-for-checktags-and-tagtype-at.patch index 805db5a..7a23d31 100644 --- a/gcc/9/patches/0023-Provide-a-documentation-for-checktags-and-tagtype-at.patch +++ b/gcc/9/patches/0023-Provide-a-documentation-for-checktags-and-tagtype-at.patch @@ -1,4 +1,4 @@ -From 8a759fb742db32812c3c89550ee11bb1ee42232d Mon Sep 17 00:00:00 2001 +From d06dd047cb743eb18c193bdc043190dcdcf3e940 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Sun, 29 Apr 2018 00:08:22 +0200 Subject: [PATCH 23/32] Provide a documentation for checktags and tagtype diff --git a/gcc/9/patches/0024-Adapt-libssp-for-AmigaOS.patch b/gcc/9/patches/0024-Adapt-libssp-for-AmigaOS.patch index 8709a40..7176c4a 100644 --- a/gcc/9/patches/0024-Adapt-libssp-for-AmigaOS.patch +++ b/gcc/9/patches/0024-Adapt-libssp-for-AmigaOS.patch @@ -1,4 +1,4 @@ -From 8656b55b825bdeec1f3aaf9ceffbe5c5e5fda6bf Mon Sep 17 00:00:00 2001 +From 5c0f8009749dd7bcfa2a9fb668266a241306874f Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Tue, 22 May 2018 23:14:01 +0200 Subject: [PATCH 24/32] Adapt libssp for AmigaOS. diff --git a/gcc/9/patches/0025-Add-amigaos-thread-model.patch b/gcc/9/patches/0025-Add-amigaos-thread-model.patch index 34aece9..e5b1e45 100644 --- a/gcc/9/patches/0025-Add-amigaos-thread-model.patch +++ b/gcc/9/patches/0025-Add-amigaos-thread-model.patch @@ -1,4 +1,4 @@ -From c9c6bd709f7c88ab245b854ea61ee613558aedd1 Mon Sep 17 00:00:00 2001 +From 22d80193c9e54186439f5e961e4d65ad979bc383 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Fri, 4 May 2018 18:22:24 +0200 Subject: [PATCH 25/32] Add amigaos thread model. diff --git a/gcc/9/patches/0026-Add-aregparam-attribute-for-functions-for-the-m68k-b.patch b/gcc/9/patches/0026-Add-aregparam-attribute-for-functions-for-the-m68k-b.patch index e0d4e69..64bc87d 100644 --- a/gcc/9/patches/0026-Add-aregparam-attribute-for-functions-for-the-m68k-b.patch +++ b/gcc/9/patches/0026-Add-aregparam-attribute-for-functions-for-the-m68k-b.patch @@ -1,4 +1,4 @@ -From a0ef4c9834a069efe5ceb682e441d320b662262e Mon Sep 17 00:00:00 2001 +From 48d2d3a0c949a93cc54958ffac4fe80bdb07d0ad Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Sat, 27 Oct 2018 08:06:21 +0200 Subject: [PATCH 26/32] Add aregparam attribute for functions for the m68k diff --git a/gcc/9/patches/0027-gcc9-Don-t-use-poisoned-define.patch b/gcc/9/patches/0027-gcc9-Don-t-use-poisoned-define.patch index 5cd4865..f1c9489 100644 --- a/gcc/9/patches/0027-gcc9-Don-t-use-poisoned-define.patch +++ b/gcc/9/patches/0027-gcc9-Don-t-use-poisoned-define.patch @@ -1,4 +1,4 @@ -From 4fb3a992c52005924a5577648b304ae35e864d89 Mon Sep 17 00:00:00 2001 +From a023f94400572f7ae5d4052a09dd6a86622c2507 Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Tue, 29 Dec 2020 21:19:57 +0100 Subject: [PATCH 27/32] gcc9: Don't use poisoned define. diff --git a/gcc/9/patches/0028-gcc9-Fix-unused-value.patch b/gcc/9/patches/0028-gcc9-Fix-unused-value.patch index f27e03c..aefefe3 100644 --- a/gcc/9/patches/0028-gcc9-Fix-unused-value.patch +++ b/gcc/9/patches/0028-gcc9-Fix-unused-value.patch @@ -1,4 +1,4 @@ -From c07ebdfeb0f0e6ae5087e39b378d3d617057cb57 Mon Sep 17 00:00:00 2001 +From ae3522d074b5affa1de95c8bd82b871170612f90 Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Tue, 29 Dec 2020 21:24:26 +0100 Subject: [PATCH 28/32] gcc9: Fix unused value. diff --git a/gcc/9/patches/0029-gcc9-Correct-documentation-section-order-naming.patch b/gcc/9/patches/0029-gcc9-Correct-documentation-section-order-naming.patch index 9821632..18845b2 100644 --- a/gcc/9/patches/0029-gcc9-Correct-documentation-section-order-naming.patch +++ b/gcc/9/patches/0029-gcc9-Correct-documentation-section-order-naming.patch @@ -1,4 +1,4 @@ -From cee41d4495846ad3ff303a676fde606d708777cd Mon Sep 17 00:00:00 2001 +From 3ccc0437faebfc4888ec4d04362152db1747ab18 Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Tue, 29 Dec 2020 21:28:04 +0100 Subject: [PATCH 29/32] gcc9: Correct documentation section order / naming. diff --git a/gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch b/gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch index 5d06d96..55b67a9 100644 --- a/gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch +++ b/gcc/9/patches/0030-gcc9-Define-CC1_SPEC.patch @@ -1,4 +1,4 @@ -From b57b7787f43793277c7762ebfdab24df1a113145 Mon Sep 17 00:00:00 2001 +From dadd40c3b01970756cfe3d1a5bad5e7050baa958 Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Tue, 29 Dec 2020 21:47:26 +0100 Subject: [PATCH 30/32] gcc9: Define CC1_SPEC. diff --git a/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch b/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch index 658597d..be46499 100644 --- a/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch +++ b/gcc/9/patches/0031-gcc9-Expose-max_align_t-when-using-clib2.patch @@ -1,4 +1,4 @@ -From ea72190ec45e7b30b4e9e596fde46df00cdbe507 Mon Sep 17 00:00:00 2001 +From 24b9813cba87693593d7d78aa8194bff77d3a507 Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Wed, 6 Jan 2021 20:06:54 +0100 Subject: [PATCH 31/32] gcc9: Expose max_align_t when using clib2. diff --git a/gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so-hides-C9.patch b/gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.patch similarity index 52% rename from gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so-hides-C9.patch rename to gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.patch index 4fe08e4..c46a0d7 100644 --- a/gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.-Doing-so-hides-C9.patch +++ b/gcc/9/patches/0032-gcc9-Don-t-define-__STRICT_ANSI__.patch @@ -1,26 +1,22 @@ -From 057a2e651aa45eab01c9d8fb0882816b8ca64828 Mon Sep 17 00:00:00 2001 +From 7824bd01bf24f618536fa4618d61e76ad7b71edc Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Wed, 27 Jan 2021 18:56:32 +0100 -Subject: [PATCH 32/32] gcc9: Don't define __STRICT_ANSI__. Doing so hides C99 - features when configuring libstdc++. +Subject: [PATCH 32/32] gcc9: Don't define __STRICT_ANSI__. +Doing so hides C99 features when configuring libstdc++. --- - libstdc++-v3/config/os/amigaos/os_defines.h | 11 +++++++++-- - 1 file changed, 9 insertions(+), 2 deletions(-) + libstdc++-v3/config/os/amigaos/os_defines.h | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) diff --git a/libstdc++-v3/config/os/amigaos/os_defines.h b/libstdc++-v3/config/os/amigaos/os_defines.h -index 6b67630b7be7102a9dfb7c104deac6293a13c017..3f2d894b6c28e493e38c114da8d4f8528c4e3a12 100644 +index 647c560e6ff196234fda2e14073ee0b7074ad5da..10b56638f418baec6fea0c91888882c65a994d85 100644 --- a/libstdc++-v3/config/os/amigaos/os_defines.h +++ b/libstdc++-v3/config/os/amigaos/os_defines.h -@@ -36,11 +36,18 @@ - // No ioctl() on AmigaOS - #define _GLIBCXX_NO_IOCTL 1 +@@ -38,7 +38,21 @@ #ifdef __NEWLIB__ #define _GLIBCXX_USE_C99_STDINT_TR1 1 #define _GLIBCXX_USE_C99 1 --/* Temporary until newlib behaves properly */ --#undef __STRICT_ANSI__ #endif +#undef __STRICT_ANSI__ @@ -28,9 +24,14 @@ index 6b67630b7be7102a9dfb7c104deac6293a13c017..3f2d894b6c28e493e38c114da8d4f852 + * -std switch specifying strict conformance to some version of ISO C + * or ISO C++, was specified when GCC was invoked. This macro exists + * primarily to direct GNU libc's header files to restrict their -+ * definitions to the minimal set found in the 1989 C standard. If -+ * -std is set to > c++98 when building with clib2, configure will be -+ * tricked into believing that existing C99 features are missing. */ ++ * definitions to the minimal set found in the 1989 C standard. If -std ++ * is set to C++ >98 when building with clib2 or newlib, configure will ++ * be tricked into believing that existing C99 features are missing. ++ * ++ * Please note that this is a temporary workaround. The real solution ++ * would be to figure out why this is set during configuration in the ++ * first place. ++ */ + #endif -- From 2f1094675d80652a7b12540ba6b4e4e27e6f317a Mon Sep 17 00:00:00 2001 From: "ola.soder@axis.com" Date: Mon, 15 Feb 2021 23:50:38 +0100 Subject: [PATCH 10/10] Update clib2. Partial wchar support. --- native-build/makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native-build/makefile b/native-build/makefile index 8d6cde5..379ae9a 100644 --- a/native-build/makefile +++ b/native-build/makefile @@ -47,7 +47,7 @@ COREUTILS_VERSION=5.2.1 DIST_VERSION=$(shell date +%Y%m%d)-$(shell git rev-list --count HEAD) CLIB2_URL=https://github.com/sodero/clib2 -CLIB2_SHA1=421387485dc15cfc0d320dc7bca5bf500be06f24 +CLIB2_SHA1=125d92486da69d45fd18489d3226071d4be9ed9d CLIB2_RELEASE_ARCHIVE_NAME=adtools-os4-clib2-$(DIST_VERSION).lha CROSS_PREFIX?=$(ROOT_DIR)/root-cross