diff options
Diffstat (limited to 'packages/newlib')
34 files changed, 449 insertions, 373 deletions
diff --git a/packages/newlib/2.5.0.20171222/0000-fix-unaligned-access-memcpy-m68k.patch b/packages/newlib/2.5.0.20171222/0000-fix-unaligned-access-memcpy-m68k.patch deleted file mode 100644 index b6709d5a..00000000 --- a/packages/newlib/2.5.0.20171222/0000-fix-unaligned-access-memcpy-m68k.patch +++ /dev/null @@ -1,25 +0,0 @@ -The m68k mcpu processor does not like unaligned access - -Disable at least mcpu32, m68010 and m68020. These processors certainly -do not like unaligned accesses. - -Signed-off-by: Remy Bohmer <linux@bohmer.net> -[yann.morin.1998@anciens.enib.fr: update for 1.19.0 from 1.18.0] -Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> -[austinpmorton@gmail.com: update for 1.20.0 from 1.19.0] -Signed-off-by: Austin Morton <austinpmorton@gmail.com> ---- - newlib/libc/machine/m68k/memcpy.S | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/newlib/libc/machine/m68k/memcpy.S -+++ b/newlib/libc/machine/m68k/memcpy.S -@@ -15,7 +15,7 @@ - - #include "m68kasm.h" - --#if defined (__mcoldfire__) || defined (__mc68010__) || defined (__mc68020__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__) -+#if defined (__mcoldfire__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__) - # define MISALIGNED_OK 1 - #else - # define MISALIGNED_OK 0 diff --git a/packages/newlib/2.5.0.20171222/0001-fix-mt-cflags.patch b/packages/newlib/2.5.0.20171222/0001-fix-mt-cflags.patch deleted file mode 100644 index 24a9215d..00000000 --- a/packages/newlib/2.5.0.20171222/0001-fix-mt-cflags.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- - config/mt-d30v | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - ---- a/config/mt-d30v -+++ b/config/mt-d30v -@@ -1,4 +1,4 @@ - # Build libraries optimizing for space, not speed. - # Turn off warnings about symbols named the same as registers -- CFLAGS_FOR_TARGET = -g -Os -Wa,-C -- CXXFLAGS_FOR_TARGET = -g -Os -Wa,-C -+ CFLAGS_FOR_TARGET += -g -Os -Wa,-C -+ CXXFLAGS_FOR_TARGET += -g -Os -Wa,-C diff --git a/packages/newlib/2.5.0.20171222/chksum b/packages/newlib/2.5.0.20171222/chksum deleted file mode 100644 index bad7d40a..00000000 --- a/packages/newlib/2.5.0.20171222/chksum +++ /dev/null @@ -1,4 +0,0 @@ -md5 newlib-2.5.0.20171222.tar.gz 98215f83a542fdde946c11661a34ab3f -sha1 newlib-2.5.0.20171222.tar.gz 196e5c4dd72210b84394cc006e7579652368748f -sha256 newlib-2.5.0.20171222.tar.gz d2bf5d0f375381a9e6888e3074ac0e4cae72a7a748a05ef24f81b8df5328ef31 -sha512 newlib-2.5.0.20171222.tar.gz 753a948b96611a75c709e477991117510975a9274f4e6f13f9092b229cae3da48a4a08d339745c00f54fa28584eb471d704f87c997faa9b852771d7bd2cd7f9d diff --git a/packages/newlib/2.5.0.20171222/version.desc b/packages/newlib/2.5.0.20171222/version.desc deleted file mode 100644 index fcfe3891..00000000 --- a/packages/newlib/2.5.0.20171222/version.desc +++ /dev/null @@ -1 +0,0 @@ -obsolete='yes' diff --git a/packages/newlib/3.0.0.20180831/0000-fix-unaligned-access-memcpy-m68k.patch b/packages/newlib/3.0.0.20180831/0000-fix-unaligned-access-memcpy-m68k.patch deleted file mode 100644 index b6709d5a..00000000 --- a/packages/newlib/3.0.0.20180831/0000-fix-unaligned-access-memcpy-m68k.patch +++ /dev/null @@ -1,25 +0,0 @@ -The m68k mcpu processor does not like unaligned access - -Disable at least mcpu32, m68010 and m68020. These processors certainly -do not like unaligned accesses. - -Signed-off-by: Remy Bohmer <linux@bohmer.net> -[yann.morin.1998@anciens.enib.fr: update for 1.19.0 from 1.18.0] -Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> -[austinpmorton@gmail.com: update for 1.20.0 from 1.19.0] -Signed-off-by: Austin Morton <austinpmorton@gmail.com> ---- - newlib/libc/machine/m68k/memcpy.S | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/newlib/libc/machine/m68k/memcpy.S -+++ b/newlib/libc/machine/m68k/memcpy.S -@@ -15,7 +15,7 @@ - - #include "m68kasm.h" - --#if defined (__mcoldfire__) || defined (__mc68010__) || defined (__mc68020__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__) -+#if defined (__mcoldfire__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__) - # define MISALIGNED_OK 1 - #else - # define MISALIGNED_OK 0 diff --git a/packages/newlib/3.0.0.20180831/0001-fix-mt-cflags.patch b/packages/newlib/3.0.0.20180831/0001-fix-mt-cflags.patch deleted file mode 100644 index 24a9215d..00000000 --- a/packages/newlib/3.0.0.20180831/0001-fix-mt-cflags.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- - config/mt-d30v | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - ---- a/config/mt-d30v -+++ b/config/mt-d30v -@@ -1,4 +1,4 @@ - # Build libraries optimizing for space, not speed. - # Turn off warnings about symbols named the same as registers -- CFLAGS_FOR_TARGET = -g -Os -Wa,-C -- CXXFLAGS_FOR_TARGET = -g -Os -Wa,-C -+ CFLAGS_FOR_TARGET += -g -Os -Wa,-C -+ CXXFLAGS_FOR_TARGET += -g -Os -Wa,-C diff --git a/packages/newlib/3.0.0.20180831/chksum b/packages/newlib/3.0.0.20180831/chksum deleted file mode 100644 index 99de8082..00000000 --- a/packages/newlib/3.0.0.20180831/chksum +++ /dev/null @@ -1,4 +0,0 @@ -md5 newlib-3.0.0.20180831.tar.gz b55db6531699879591e9fc7e4c2adc51 -sha1 newlib-3.0.0.20180831.tar.gz 375fdf790bbce1f06c28aa7ce78231965f90e3bf -sha256 newlib-3.0.0.20180831.tar.gz 3ad3664f227357df15ff34e954bfd9f501009a647667cd307bf0658aefd6eb5b -sha512 newlib-3.0.0.20180831.tar.gz c195111ac61458fccbd700345cd8ed7806776b3d16557e9a86fbcdf0ff5f544bff7eb701e84defb3f6b4d6fc00674163fa89aead1b171ed3281470a4f6306d1f diff --git a/packages/newlib/3.0.0.20180831/version.desc b/packages/newlib/3.0.0.20180831/version.desc deleted file mode 100644 index fcfe3891..00000000 --- a/packages/newlib/3.0.0.20180831/version.desc +++ /dev/null @@ -1 +0,0 @@ -obsolete='yes' diff --git a/packages/newlib/3.1.0.20181231/0000-fix-unaligned-access-memcpy-m68k.patch b/packages/newlib/3.1.0.20181231/0000-fix-unaligned-access-memcpy-m68k.patch deleted file mode 100644 index b6709d5a..00000000 --- a/packages/newlib/3.1.0.20181231/0000-fix-unaligned-access-memcpy-m68k.patch +++ /dev/null @@ -1,25 +0,0 @@ -The m68k mcpu processor does not like unaligned access - -Disable at least mcpu32, m68010 and m68020. These processors certainly -do not like unaligned accesses. - -Signed-off-by: Remy Bohmer <linux@bohmer.net> -[yann.morin.1998@anciens.enib.fr: update for 1.19.0 from 1.18.0] -Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> -[austinpmorton@gmail.com: update for 1.20.0 from 1.19.0] -Signed-off-by: Austin Morton <austinpmorton@gmail.com> ---- - newlib/libc/machine/m68k/memcpy.S | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/newlib/libc/machine/m68k/memcpy.S -+++ b/newlib/libc/machine/m68k/memcpy.S -@@ -15,7 +15,7 @@ - - #include "m68kasm.h" - --#if defined (__mcoldfire__) || defined (__mc68010__) || defined (__mc68020__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__) -+#if defined (__mcoldfire__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__) - # define MISALIGNED_OK 1 - #else - # define MISALIGNED_OK 0 diff --git a/packages/newlib/3.1.0.20181231/0001-fix-mt-cflags.patch b/packages/newlib/3.1.0.20181231/0001-fix-mt-cflags.patch deleted file mode 100644 index 24a9215d..00000000 --- a/packages/newlib/3.1.0.20181231/0001-fix-mt-cflags.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- - config/mt-d30v | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - ---- a/config/mt-d30v -+++ b/config/mt-d30v -@@ -1,4 +1,4 @@ - # Build libraries optimizing for space, not speed. - # Turn off warnings about symbols named the same as registers -- CFLAGS_FOR_TARGET = -g -Os -Wa,-C -- CXXFLAGS_FOR_TARGET = -g -Os -Wa,-C -+ CFLAGS_FOR_TARGET += -g -Os -Wa,-C -+ CXXFLAGS_FOR_TARGET += -g -Os -Wa,-C diff --git a/packages/newlib/3.1.0.20181231/chksum b/packages/newlib/3.1.0.20181231/chksum deleted file mode 100644 index 5a110684..00000000 --- a/packages/newlib/3.1.0.20181231/chksum +++ /dev/null @@ -1,4 +0,0 @@ -md5 newlib-3.1.0.20181231.tar.gz d25fd33b39147d79741faece37dd33a8 -sha1 newlib-3.1.0.20181231.tar.gz 82e378ae860308da57a4ec0327b8de150dce9451 -sha256 newlib-3.1.0.20181231.tar.gz 9e12fea7297648b114434033ed4458755afe7b9b6c7d58123389e82bd37681c0 -sha512 newlib-3.1.0.20181231.tar.gz 5c9035da51a86971095ae71c38a2806919abc0191ec1a91287bebb42881dcf23e74d414b0028fb2d323ffb82dd9b94a093d73dd1c05bd7ac03c08011355ed8a3 diff --git a/packages/newlib/3.1.0.20181231/version.desc b/packages/newlib/3.1.0.20181231/version.desc deleted file mode 100644 index fcfe3891..00000000 --- a/packages/newlib/3.1.0.20181231/version.desc +++ /dev/null @@ -1 +0,0 @@ -obsolete='yes' diff --git a/packages/newlib/3.2.0/0000-fix-unaligned-access-memcpy-m68k.patch b/packages/newlib/3.2.0/0000-fix-unaligned-access-memcpy-m68k.patch deleted file mode 100644 index b6709d5a..00000000 --- a/packages/newlib/3.2.0/0000-fix-unaligned-access-memcpy-m68k.patch +++ /dev/null @@ -1,25 +0,0 @@ -The m68k mcpu processor does not like unaligned access - -Disable at least mcpu32, m68010 and m68020. These processors certainly -do not like unaligned accesses. - -Signed-off-by: Remy Bohmer <linux@bohmer.net> -[yann.morin.1998@anciens.enib.fr: update for 1.19.0 from 1.18.0] -Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> -[austinpmorton@gmail.com: update for 1.20.0 from 1.19.0] -Signed-off-by: Austin Morton <austinpmorton@gmail.com> ---- - newlib/libc/machine/m68k/memcpy.S | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/newlib/libc/machine/m68k/memcpy.S -+++ b/newlib/libc/machine/m68k/memcpy.S -@@ -15,7 +15,7 @@ - - #include "m68kasm.h" - --#if defined (__mcoldfire__) || defined (__mc68010__) || defined (__mc68020__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__) -+#if defined (__mcoldfire__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__) - # define MISALIGNED_OK 1 - #else - # define MISALIGNED_OK 0 diff --git a/packages/newlib/3.2.0/0001-fix-mt-cflags.patch b/packages/newlib/3.2.0/0001-fix-mt-cflags.patch deleted file mode 100644 index 24a9215d..00000000 --- a/packages/newlib/3.2.0/0001-fix-mt-cflags.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- - config/mt-d30v | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - ---- a/config/mt-d30v -+++ b/config/mt-d30v -@@ -1,4 +1,4 @@ - # Build libraries optimizing for space, not speed. - # Turn off warnings about symbols named the same as registers -- CFLAGS_FOR_TARGET = -g -Os -Wa,-C -- CXXFLAGS_FOR_TARGET = -g -Os -Wa,-C -+ CFLAGS_FOR_TARGET += -g -Os -Wa,-C -+ CXXFLAGS_FOR_TARGET += -g -Os -Wa,-C diff --git a/packages/newlib/3.2.0/chksum b/packages/newlib/3.2.0/chksum deleted file mode 100644 index 049aac0f..00000000 --- a/packages/newlib/3.2.0/chksum +++ /dev/null @@ -1,4 +0,0 @@ -md5 newlib-3.2.0.tar.gz afb3a01c8c82b6717ea55659a4de30ec -sha1 newlib-3.2.0.tar.gz 659c491ddb1713a37ba31ba0273efb56a53b89a9 -sha256 newlib-3.2.0.tar.gz f7b2322964a1e3b37bec0768da20f50dfb62247d729110974dd95756a53bb6d4 -sha512 newlib-3.2.0.tar.gz 8265d8f08333301a26632b4468b6fd30a33d1e85e9e0b40ad60916089839ea722dcccd87142c7fbcaaf0aacbc9d2b97f5f13a06fe6a512f5951bfc52aa07498d diff --git a/packages/newlib/3.2.0/version.desc b/packages/newlib/3.2.0/version.desc deleted file mode 100644 index fcfe3891..00000000 --- a/packages/newlib/3.2.0/version.desc +++ /dev/null @@ -1 +0,0 @@ -obsolete='yes' diff --git a/packages/newlib/3.3.0/0000-fix-unaligned-access-memcpy-m68k.patch b/packages/newlib/3.3.0/0000-fix-unaligned-access-memcpy-m68k.patch deleted file mode 100644 index b6709d5a..00000000 --- a/packages/newlib/3.3.0/0000-fix-unaligned-access-memcpy-m68k.patch +++ /dev/null @@ -1,25 +0,0 @@ -The m68k mcpu processor does not like unaligned access - -Disable at least mcpu32, m68010 and m68020. These processors certainly -do not like unaligned accesses. - -Signed-off-by: Remy Bohmer <linux@bohmer.net> -[yann.morin.1998@anciens.enib.fr: update for 1.19.0 from 1.18.0] -Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> -[austinpmorton@gmail.com: update for 1.20.0 from 1.19.0] -Signed-off-by: Austin Morton <austinpmorton@gmail.com> ---- - newlib/libc/machine/m68k/memcpy.S | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/newlib/libc/machine/m68k/memcpy.S -+++ b/newlib/libc/machine/m68k/memcpy.S -@@ -15,7 +15,7 @@ - - #include "m68kasm.h" - --#if defined (__mcoldfire__) || defined (__mc68010__) || defined (__mc68020__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__) -+#if defined (__mcoldfire__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__) - # define MISALIGNED_OK 1 - #else - # define MISALIGNED_OK 0 diff --git a/packages/newlib/3.3.0/0001-fix-mt-cflags.patch b/packages/newlib/3.3.0/0001-fix-mt-cflags.patch deleted file mode 100644 index 24a9215d..00000000 --- a/packages/newlib/3.3.0/0001-fix-mt-cflags.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- - config/mt-d30v | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - ---- a/config/mt-d30v -+++ b/config/mt-d30v -@@ -1,4 +1,4 @@ - # Build libraries optimizing for space, not speed. - # Turn off warnings about symbols named the same as registers -- CFLAGS_FOR_TARGET = -g -Os -Wa,-C -- CXXFLAGS_FOR_TARGET = -g -Os -Wa,-C -+ CFLAGS_FOR_TARGET += -g -Os -Wa,-C -+ CXXFLAGS_FOR_TARGET += -g -Os -Wa,-C diff --git a/packages/newlib/3.3.0/chksum b/packages/newlib/3.3.0/chksum deleted file mode 100644 index b69afc6d..00000000 --- a/packages/newlib/3.3.0/chksum +++ /dev/null @@ -1,4 +0,0 @@ -md5 newlib-3.3.0.tar.gz af1c64d25eb3f71dec5ad7ec79877d7f -sha1 newlib-3.3.0.tar.gz ed1c5b65e8aa5b437f40875d8ae629a7d9b7e824 -sha256 newlib-3.3.0.tar.gz 58dd9e3eaedf519360d92d84205c3deef0b3fc286685d1c562e245914ef72c66 -sha512 newlib-3.3.0.tar.gz 2f0c6666487520e1a0af0b6935431f85d2359e27ded0d01d02567d0d1c6479f2f0e6bbc60405e88e46b92c2a18780a01a60fc9281f7e311cfd40b8d5881d629c diff --git a/packages/newlib/3.3.0/version.desc b/packages/newlib/3.3.0/version.desc deleted file mode 100644 index fcfe3891..00000000 --- a/packages/newlib/3.3.0/version.desc +++ /dev/null @@ -1 +0,0 @@ -obsolete='yes' diff --git a/packages/newlib/4.1.0/0000-fix-unaligned-access-memcpy-m68k.patch b/packages/newlib/4.1.0/0000-fix-unaligned-access-memcpy-m68k.patch deleted file mode 100644 index b6709d5a..00000000 --- a/packages/newlib/4.1.0/0000-fix-unaligned-access-memcpy-m68k.patch +++ /dev/null @@ -1,25 +0,0 @@ -The m68k mcpu processor does not like unaligned access - -Disable at least mcpu32, m68010 and m68020. These processors certainly -do not like unaligned accesses. - -Signed-off-by: Remy Bohmer <linux@bohmer.net> -[yann.morin.1998@anciens.enib.fr: update for 1.19.0 from 1.18.0] -Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> -[austinpmorton@gmail.com: update for 1.20.0 from 1.19.0] -Signed-off-by: Austin Morton <austinpmorton@gmail.com> ---- - newlib/libc/machine/m68k/memcpy.S | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/newlib/libc/machine/m68k/memcpy.S -+++ b/newlib/libc/machine/m68k/memcpy.S -@@ -15,7 +15,7 @@ - - #include "m68kasm.h" - --#if defined (__mcoldfire__) || defined (__mc68010__) || defined (__mc68020__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__) -+#if defined (__mcoldfire__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__) - # define MISALIGNED_OK 1 - #else - # define MISALIGNED_OK 0 diff --git a/packages/newlib/4.1.0/0001-fix-mt-cflags.patch b/packages/newlib/4.1.0/0001-fix-mt-cflags.patch deleted file mode 100644 index 24a9215d..00000000 --- a/packages/newlib/4.1.0/0001-fix-mt-cflags.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- - config/mt-d30v | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - ---- a/config/mt-d30v -+++ b/config/mt-d30v -@@ -1,4 +1,4 @@ - # Build libraries optimizing for space, not speed. - # Turn off warnings about symbols named the same as registers -- CFLAGS_FOR_TARGET = -g -Os -Wa,-C -- CXXFLAGS_FOR_TARGET = -g -Os -Wa,-C -+ CFLAGS_FOR_TARGET += -g -Os -Wa,-C -+ CXXFLAGS_FOR_TARGET += -g -Os -Wa,-C diff --git a/packages/newlib/4.1.0/0002-minimal-support-for-ts-18661-3.patch b/packages/newlib/4.1.0/0002-minimal-support-for-ts-18661-3.patch deleted file mode 100644 index cb437462..00000000 --- a/packages/newlib/4.1.0/0002-minimal-support-for-ts-18661-3.patch +++ /dev/null @@ -1,50 +0,0 @@ -From 91f99d323b39dc0c06c40038791db9861d4b76b9 Mon Sep 17 00:00:00 2001 -From: Kito Cheng <kito.cheng@sifive.com> -Date: Mon, 12 Jul 2021 17:17:21 +0800 -Subject: [PATCH] Minimal support for ISO/IEC TS 18661-3. - - - GCC will set __FLT_EVAL_METHOD__ to 16 if __fp16 supported, e.g. - cortex-a55/aarch64. - - $ aarch64-unknown-elf-gcc -v 2>&1 |grep version - gcc version 9.2.0 (GCC) - - $ aarch64-unknown-elf-gcc -E -dM -mcpu=cortex-a55 - < /dev/null |grep FLT_EVAL_METHOD - #define __FLT_EVAL_METHOD__ 16 - #define __FLT_EVAL_METHOD_TS_18661_3__ 16 - #define __FLT_EVAL_METHOD_C99__ 16 - - The behavior of __FLT_EVAL_METHOD__ == 16 is same as - __FLT_EVAL_METHOD__ == 0 except for float16_t, but newlib didn't - support float16_t. - -ISO/IEC TS 18661-3: -http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2405.pdf - -V2 Changes: -- List Howland, Craig D as co-author since he provide the draft of comment - in math.h. - -Co-authored-by: "Howland, Craig D" <howland@LGSInnovations.com> ---- - newlib/libc/include/math.h | 12 +++++++++++- - 1 file changed, 11 insertions(+), 1 deletion(-) - ---- a/newlib/libc/include/math.h -+++ b/newlib/libc/include/math.h -@@ -146,7 +146,17 @@ - #define __TMP_FLT_EVAL_METHOD - #endif /* FLT_EVAL_METHOD */ - #if defined FLT_EVAL_METHOD -- #if FLT_EVAL_METHOD == 0 -+/* FLT_EVAL_METHOD == 16 has meaning as defined in ISO/IEC TS 18661-3, -+ * which provides non-compliant extensions to C and POSIX (by adding -+ * additional positive values for FLT_EVAL_METHOD). It effectively has -+ * same meaning as the C99 and C11 definitions for value 0, while also -+ * serving as a flag that the _Float16 (float16_t) type exists. -+ * -+ * FLT_EVAL_METHOD could be any number of bits of supported floating point -+ * format (e.g. 32, 64, 128), but currently only AArch64 and few other targets -+ * might define that as 16. */ -+ #if (FLT_EVAL_METHOD == 0) \ -+ || (FLT_EVAL_METHOD == 16) - typedef float float_t; - typedef double double_t; - #elif FLT_EVAL_METHOD == 1 diff --git a/packages/newlib/4.1.0/0003-support-__FLT_EVAL_METHOD__-values.patch b/packages/newlib/4.1.0/0003-support-__FLT_EVAL_METHOD__-values.patch deleted file mode 100644 index 5dd2f8a4..00000000 --- a/packages/newlib/4.1.0/0003-support-__FLT_EVAL_METHOD__-values.patch +++ /dev/null @@ -1,65 +0,0 @@ -From 27f0913c17c216548b2f5eea79037ee90038f375 Mon Sep 17 00:00:00 2001 -From: Andrea Corallo <andrea.corallo@arm.com> -Date: Wed, 30 Mar 2022 15:40:59 +0200 -Subject: [PATCH] Aarch32/64: Support __FLT_EVAL_METHOD__ values other than 0, - 1, 2 - -2022-03-30 Andrea Corallo <andrea.corallo@arm.com> - - * libc/include/machine/ieeefp.h (__FLOAT_TYPE, __DOUBLE_TYPE): New - macros. - * libc/include/math.h: Uses __DOUBLE_TYPE __FLOAT_TYPE to define - double_t float_t if possible. ---- - newlib/libc/include/machine/ieeefp.h | 14 ++++++++++++++ - newlib/libc/include/math.h | 9 +++++++++ - 2 files changed, 23 insertions(+) - ---- a/newlib/libc/include/machine/ieeefp.h -+++ b/newlib/libc/include/machine/ieeefp.h -@@ -90,6 +90,13 @@ - #ifndef __SOFTFP__ - # define _SUPPORTS_ERREXCEPT - #endif -+/* As per ISO/IEC TS 18661 '__FLT_EVAL_METHOD__' will be defined to 16 -+ (if compiling with +fp16 support) so it can't be used by math.h to -+ define float_t and double_t. For values of '__FLT_EVAL_METHOD__' -+ other than 0, 1, 2 the definition of float_t and double_t is -+ implementation-defined. */ -+#define __DOUBLE_TYPE double -+#define __FLOAT_TYPE float - #endif - - #if defined (__aarch64__) -@@ -102,6 +109,13 @@ - #ifdef __ARM_FP - # define _SUPPORTS_ERREXCEPT - #endif -+/* As per ISO/IEC TS 18661 '__FLT_EVAL_METHOD__' will be defined to 16 -+ (if compiling with +fp16 support) so it can't be used by math.h to -+ define float_t and double_t. For values of '__FLT_EVAL_METHOD__' -+ other than 0, 1, 2 the definition of float_t and double_t is -+ implementation-defined. */ -+#define __DOUBLE_TYPE double -+#define __FLOAT_TYPE float - #endif - - #ifdef __epiphany__ ---- a/newlib/libc/include/math.h -+++ b/newlib/libc/include/math.h -@@ -168,6 +168,15 @@ - #else - /* Implementation-defined. Assume float_t and double_t have been - * defined previously for this configuration (e.g. config.h). */ -+ -+ /* If __DOUBLE_TYPE is defined (__FLOAT_TYPE is then supposed to be -+ defined as well) float_t and double_t definition is suggested by -+ an arch specific header. */ -+ #ifdef __DOUBLE_TYPE -+ typedef __DOUBLE_TYPE double_t; -+ typedef __FLOAT_TYPE float_t; -+ #endif -+ /* Assume config.h has provided these types. */ - #endif - #else - /* Assume basic definitions. */ diff --git a/packages/newlib/4.1.0/chksum b/packages/newlib/4.1.0/chksum deleted file mode 100644 index 378765ab..00000000 --- a/packages/newlib/4.1.0/chksum +++ /dev/null @@ -1,4 +0,0 @@ -md5 newlib-4.1.0.tar.gz 5702b0f26f8d5613b703d64bb97b2790 -sha1 newlib-4.1.0.tar.gz 3f2536b591598e8e5c36f20f4d969266f81ab1ed -sha256 newlib-4.1.0.tar.gz f296e372f51324224d387cc116dc37a6bd397198756746f93a2b02e9a5d40154 -sha512 newlib-4.1.0.tar.gz 6a24b64bb8136e4cd9d21b8720a36f87a34397fd952520af66903e183455c5cf19bb0ee4607c12a05d139c6c59382263383cb62c461a839f969d23d3bc4b1d34 diff --git a/packages/newlib/4.1.0/version.desc b/packages/newlib/4.1.0/version.desc deleted file mode 100644 index fcfe3891..00000000 --- a/packages/newlib/4.1.0/version.desc +++ /dev/null @@ -1 +0,0 @@ -obsolete='yes' diff --git a/packages/newlib/4.3.0.20230120/0003-or1k-fix-compiler-warnings.patch b/packages/newlib/4.3.0.20230120/0003-or1k-fix-compiler-warnings.patch new file mode 100644 index 00000000..e0fb8dce --- /dev/null +++ b/packages/newlib/4.3.0.20230120/0003-or1k-fix-compiler-warnings.patch @@ -0,0 +1,150 @@ +From 8e53c587597a33fec5f41a540a9b1b20d53fb439 Mon Sep 17 00:00:00 2001 +From: Stafford Horne <shorne@gmail.com> +Date: Thu, 12 Dec 2024 16:23:03 +0000 +Subject: [PATCH] or1k: Fix compiler warnings +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +In my build the below are treated as error now and causing failures. I +have described the fixes of each warning below. + +In newlib/libc/sys/or1k/mlock.c: + + CC libc/sys/or1k/libc_a-mlock.o + newlib/libc/sys/or1k/mlock.c: In function ‘__malloc_lock’: + newlib/libc/sys/or1k/mlock.c:56:19: warning: implicit declaration of function ‘or1k_critical_begin’ [-Wimplicit-function-declaration] + 56 | restore = or1k_critical_begin(); + | ^~~~~~~~~~~~~~~~~~~ + newlib/libc/sys/or1k/mlock.c: In function ‘__malloc_unlock’: + newlib/libc/sys/or1k/mlock.c:93:17: warning: implicit declaration of function ‘or1k_critical_end’ [-Wimplicit-function-declaration] + 93 | or1k_critical_end(restore); + | ^~~~~~~~~~~~~~~~~ + +This patch adds prototypes for functions or1k_critical_begin and +or1k_critical_end to suppress the warning, inline with what we do for +or1k_sync_cas. + +In libgloss/or1k/or1k_uart.c: + + libgloss/or1k/or1k_uart.c: In function ‘or1k_uart_set_read_cb’: + libgloss/or1k/or1k_uart.c:163:25: warning: passing argument 2 of ‘or1k_interrupt_handler_add’ from incompatible pointer type [-Wincompatible-pointer-types] + 163 | _or1k_uart_interrupt_handler, 0); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | void (*)(uint32_t) {aka void (*)(long unsigned int)} + In file included from libgloss/or1k/or1k_uart.c:19: + libgloss/or1k/include/or1k-support.h:97:45: note: expected ‘or1k_interrupt_handler_fptr’ {aka ‘void (*)(void *)’} but argument is of type ‘void (*)(uint32_t)’ {aka ‘void (*)(long unsigned int)’} + 97 | or1k_interrupt_handler_fptr handler, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ + +The public API is ‘void (*)(void *)' for our interrupt handlers. The +function _or1k_uart_interrupt_hander is the internal default +implementation of the uart IRQ handler and it doesn't use the data +argument. + +This patch updates the _or1k_uart_interrupt_handler argument type from +uint32_t to void* allowing the function prototype to match the required +prototype. + +If we did have a 64-bit implementation it would be an ABI issue. But, +there never has been one, or1k is only 32-bit. + +In libgloss/or1k/interrupts.c: + + libgloss/or1k/interrupts.c: In function ‘or1k_interrupt_handler_add’: + libgloss/or1k/interrupts.c:41:52: warning: assignment to ‘void *’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion] + 41 | _or1k_interrupt_handler_data_ptr_table[id] = (uint32_t) data_ptr; + | ^ + +The table _or1k_interrupt_handler_data_ptr_table is an array of void* +and data_ptr is void*. There is no need for the cast so remove it. + +In libgloss/or1k/sbrk.c: + + libgloss/or1k/sbrk.c:23:29: warning: initialization of ‘uint32_t’ {aka ‘long unsigned int’} from ‘uint32_t *’ {aka ‘long unsigned int *’} makes integer from pointer without a cast [-Wint-conversion] + 23 | uint32_t _or1k_heap_start = &end; + | + +This patch adds a cast, which is safe in or1k as the architecture in +32-bit only. But this code would not be 64-compatible. + +Signed-off-by: Stafford Horne <shorne@gmail.com> +--- + libgloss/or1k/interrupts.c | 4 ++-- + libgloss/or1k/or1k_uart.c | 2 +- + libgloss/or1k/or1k_uart.h | 2 +- + libgloss/or1k/sbrk.c | 2 +- + newlib/libc/sys/or1k/mlock.c | 3 +++ + 5 files changed, 8 insertions(+), 5 deletions(-) + +diff --git a/libgloss/or1k/interrupts.c b/libgloss/or1k/interrupts.c +index 6badc497c1..516d74be38 100644 +--- a/libgloss/or1k/interrupts.c ++++ b/libgloss/or1k/interrupts.c +@@ -35,10 +35,10 @@ void or1k_interrupt_handler_add(uint32_t id, + { + #ifdef __OR1K_MULTICORE__ + _or1k_interrupt_handler_table[or1k_coreid()][id] = handler; +- _or1k_interrupt_handler_data_ptr_table[or1k_coreid()][id] = (uint32_t) data_ptr; ++ _or1k_interrupt_handler_data_ptr_table[or1k_coreid()][id] = data_ptr; + #else + _or1k_interrupt_handler_table[id] = handler; +- _or1k_interrupt_handler_data_ptr_table[id] = (uint32_t) data_ptr; ++ _or1k_interrupt_handler_data_ptr_table[id] = data_ptr; + #endif + } + +diff --git a/libgloss/or1k/or1k_uart.c b/libgloss/or1k/or1k_uart.c +index 0a991e6baf..1391d565c6 100644 +--- a/libgloss/or1k/or1k_uart.c ++++ b/libgloss/or1k/or1k_uart.c +@@ -90,7 +90,7 @@ void (*_or1k_uart_read_cb)(char c); + * This is the interrupt handler that is registered for the callback + * function. + */ +-void _or1k_uart_interrupt_handler(uint32_t data) ++void _or1k_uart_interrupt_handler(void *data) + { + uint8_t iir = REG8(IIR); + +diff --git a/libgloss/or1k/or1k_uart.h b/libgloss/or1k/or1k_uart.h +index 4cbb68350d..201b7749f6 100644 +--- a/libgloss/or1k/or1k_uart.h ++++ b/libgloss/or1k/or1k_uart.h +@@ -30,7 +30,7 @@ extern void (*_or1k_uart_read_cb)(char c); + /** + * The UART interrupt handler + */ +-void _or1k_uart_interrupt_handler(uint32_t data); ++void _or1k_uart_interrupt_handler(void *data); + + /** + * Initialize UART +diff --git a/libgloss/or1k/sbrk.c b/libgloss/or1k/sbrk.c +index 0c3e66e876..ca196d2282 100644 +--- a/libgloss/or1k/sbrk.c ++++ b/libgloss/or1k/sbrk.c +@@ -20,7 +20,7 @@ + #include "include/or1k-support.h" + + extern uint32_t end; /* Set by linker. */ +-uint32_t _or1k_heap_start = &end; ++uint32_t _or1k_heap_start = (uint32_t) &end; + uint32_t _or1k_heap_end; + + void * +diff --git a/newlib/libc/sys/or1k/mlock.c b/newlib/libc/sys/or1k/mlock.c +index ccb8401611..a0c0383356 100644 +--- a/newlib/libc/sys/or1k/mlock.c ++++ b/newlib/libc/sys/or1k/mlock.c +@@ -38,6 +38,9 @@ volatile uint32_t _or1k_malloc_lock_restore; + + extern uint32_t or1k_sync_cas(void *address, uint32_t compare, uint32_t swap); + ++extern uint32_t or1k_critical_begin(); ++extern void or1k_critical_end(uint32_t restore); ++ + /** + * Recursive lock of the malloc + */ diff --git a/packages/newlib/4.4.0.20231231/0000-or1k-fix-compiler-warnings.patch b/packages/newlib/4.4.0.20231231/0000-or1k-fix-compiler-warnings.patch new file mode 100644 index 00000000..e0fb8dce --- /dev/null +++ b/packages/newlib/4.4.0.20231231/0000-or1k-fix-compiler-warnings.patch @@ -0,0 +1,150 @@ +From 8e53c587597a33fec5f41a540a9b1b20d53fb439 Mon Sep 17 00:00:00 2001 +From: Stafford Horne <shorne@gmail.com> +Date: Thu, 12 Dec 2024 16:23:03 +0000 +Subject: [PATCH] or1k: Fix compiler warnings +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +In my build the below are treated as error now and causing failures. I +have described the fixes of each warning below. + +In newlib/libc/sys/or1k/mlock.c: + + CC libc/sys/or1k/libc_a-mlock.o + newlib/libc/sys/or1k/mlock.c: In function ‘__malloc_lock’: + newlib/libc/sys/or1k/mlock.c:56:19: warning: implicit declaration of function ‘or1k_critical_begin’ [-Wimplicit-function-declaration] + 56 | restore = or1k_critical_begin(); + | ^~~~~~~~~~~~~~~~~~~ + newlib/libc/sys/or1k/mlock.c: In function ‘__malloc_unlock’: + newlib/libc/sys/or1k/mlock.c:93:17: warning: implicit declaration of function ‘or1k_critical_end’ [-Wimplicit-function-declaration] + 93 | or1k_critical_end(restore); + | ^~~~~~~~~~~~~~~~~ + +This patch adds prototypes for functions or1k_critical_begin and +or1k_critical_end to suppress the warning, inline with what we do for +or1k_sync_cas. + +In libgloss/or1k/or1k_uart.c: + + libgloss/or1k/or1k_uart.c: In function ‘or1k_uart_set_read_cb’: + libgloss/or1k/or1k_uart.c:163:25: warning: passing argument 2 of ‘or1k_interrupt_handler_add’ from incompatible pointer type [-Wincompatible-pointer-types] + 163 | _or1k_uart_interrupt_handler, 0); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | void (*)(uint32_t) {aka void (*)(long unsigned int)} + In file included from libgloss/or1k/or1k_uart.c:19: + libgloss/or1k/include/or1k-support.h:97:45: note: expected ‘or1k_interrupt_handler_fptr’ {aka ‘void (*)(void *)’} but argument is of type ‘void (*)(uint32_t)’ {aka ‘void (*)(long unsigned int)’} + 97 | or1k_interrupt_handler_fptr handler, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ + +The public API is ‘void (*)(void *)' for our interrupt handlers. The +function _or1k_uart_interrupt_hander is the internal default +implementation of the uart IRQ handler and it doesn't use the data +argument. + +This patch updates the _or1k_uart_interrupt_handler argument type from +uint32_t to void* allowing the function prototype to match the required +prototype. + +If we did have a 64-bit implementation it would be an ABI issue. But, +there never has been one, or1k is only 32-bit. + +In libgloss/or1k/interrupts.c: + + libgloss/or1k/interrupts.c: In function ‘or1k_interrupt_handler_add’: + libgloss/or1k/interrupts.c:41:52: warning: assignment to ‘void *’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion] + 41 | _or1k_interrupt_handler_data_ptr_table[id] = (uint32_t) data_ptr; + | ^ + +The table _or1k_interrupt_handler_data_ptr_table is an array of void* +and data_ptr is void*. There is no need for the cast so remove it. + +In libgloss/or1k/sbrk.c: + + libgloss/or1k/sbrk.c:23:29: warning: initialization of ‘uint32_t’ {aka ‘long unsigned int’} from ‘uint32_t *’ {aka ‘long unsigned int *’} makes integer from pointer without a cast [-Wint-conversion] + 23 | uint32_t _or1k_heap_start = &end; + | + +This patch adds a cast, which is safe in or1k as the architecture in +32-bit only. But this code would not be 64-compatible. + +Signed-off-by: Stafford Horne <shorne@gmail.com> +--- + libgloss/or1k/interrupts.c | 4 ++-- + libgloss/or1k/or1k_uart.c | 2 +- + libgloss/or1k/or1k_uart.h | 2 +- + libgloss/or1k/sbrk.c | 2 +- + newlib/libc/sys/or1k/mlock.c | 3 +++ + 5 files changed, 8 insertions(+), 5 deletions(-) + +diff --git a/libgloss/or1k/interrupts.c b/libgloss/or1k/interrupts.c +index 6badc497c1..516d74be38 100644 +--- a/libgloss/or1k/interrupts.c ++++ b/libgloss/or1k/interrupts.c +@@ -35,10 +35,10 @@ void or1k_interrupt_handler_add(uint32_t id, + { + #ifdef __OR1K_MULTICORE__ + _or1k_interrupt_handler_table[or1k_coreid()][id] = handler; +- _or1k_interrupt_handler_data_ptr_table[or1k_coreid()][id] = (uint32_t) data_ptr; ++ _or1k_interrupt_handler_data_ptr_table[or1k_coreid()][id] = data_ptr; + #else + _or1k_interrupt_handler_table[id] = handler; +- _or1k_interrupt_handler_data_ptr_table[id] = (uint32_t) data_ptr; ++ _or1k_interrupt_handler_data_ptr_table[id] = data_ptr; + #endif + } + +diff --git a/libgloss/or1k/or1k_uart.c b/libgloss/or1k/or1k_uart.c +index 0a991e6baf..1391d565c6 100644 +--- a/libgloss/or1k/or1k_uart.c ++++ b/libgloss/or1k/or1k_uart.c +@@ -90,7 +90,7 @@ void (*_or1k_uart_read_cb)(char c); + * This is the interrupt handler that is registered for the callback + * function. + */ +-void _or1k_uart_interrupt_handler(uint32_t data) ++void _or1k_uart_interrupt_handler(void *data) + { + uint8_t iir = REG8(IIR); + +diff --git a/libgloss/or1k/or1k_uart.h b/libgloss/or1k/or1k_uart.h +index 4cbb68350d..201b7749f6 100644 +--- a/libgloss/or1k/or1k_uart.h ++++ b/libgloss/or1k/or1k_uart.h +@@ -30,7 +30,7 @@ extern void (*_or1k_uart_read_cb)(char c); + /** + * The UART interrupt handler + */ +-void _or1k_uart_interrupt_handler(uint32_t data); ++void _or1k_uart_interrupt_handler(void *data); + + /** + * Initialize UART +diff --git a/libgloss/or1k/sbrk.c b/libgloss/or1k/sbrk.c +index 0c3e66e876..ca196d2282 100644 +--- a/libgloss/or1k/sbrk.c ++++ b/libgloss/or1k/sbrk.c +@@ -20,7 +20,7 @@ + #include "include/or1k-support.h" + + extern uint32_t end; /* Set by linker. */ +-uint32_t _or1k_heap_start = &end; ++uint32_t _or1k_heap_start = (uint32_t) &end; + uint32_t _or1k_heap_end; + + void * +diff --git a/newlib/libc/sys/or1k/mlock.c b/newlib/libc/sys/or1k/mlock.c +index ccb8401611..a0c0383356 100644 +--- a/newlib/libc/sys/or1k/mlock.c ++++ b/newlib/libc/sys/or1k/mlock.c +@@ -38,6 +38,9 @@ volatile uint32_t _or1k_malloc_lock_restore; + + extern uint32_t or1k_sync_cas(void *address, uint32_t compare, uint32_t swap); + ++extern uint32_t or1k_critical_begin(); ++extern void or1k_critical_end(uint32_t restore); ++ + /** + * Recursive lock of the malloc + */ diff --git a/packages/newlib/4.4.0.20231231/chksum b/packages/newlib/4.4.0.20231231/chksum new file mode 100644 index 00000000..513fa6af --- /dev/null +++ b/packages/newlib/4.4.0.20231231/chksum @@ -0,0 +1,4 @@ +md5 newlib-4.4.0.20231231.tar.gz b8ecda015f2ded3f0f5e9258951f767e +sha1 newlib-4.4.0.20231231.tar.gz 6d2601df134005f2c8cd20b7f684f74fe317e96b +sha256 newlib-4.4.0.20231231.tar.gz 0c166a39e1bf0951dfafcd68949fe0e4b6d3658081d6282f39aeefc6310f2f13 +sha512 newlib-4.4.0.20231231.tar.gz ea3baa0b7c9175aae024f0b7d272be092ef2c07483239a99329203e18a44bc23093d29e0ffcbe14bc591f610f0829eacd646cabb06d1c34aa23239cb1b814b46 diff --git a/packages/newlib/4.4.0.20231231/version.desc b/packages/newlib/4.4.0.20231231/version.desc new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/packages/newlib/4.4.0.20231231/version.desc diff --git a/packages/newlib/4.5.0.20241231/0000-libgloss-rs6000-Add-missing-function-prototypes.patch b/packages/newlib/4.5.0.20241231/0000-libgloss-rs6000-Add-missing-function-prototypes.patch new file mode 100644 index 00000000..45332ba7 --- /dev/null +++ b/packages/newlib/4.5.0.20241231/0000-libgloss-rs6000-Add-missing-function-prototypes.patch @@ -0,0 +1,109 @@ +From a4a94cf963d74970ec053dc7ecaddc9f2dc24f6d Mon Sep 17 00:00:00 2001 +From: Chris Packham <judge.packham@gmail.com> +Date: Thu, 24 Apr 2025 17:31:36 +1200 +Subject: [PATCH] libgloss: rs6000: Add missing function prototypes + +With recent GCC changes that have elevated some warnings to error by +default the rs6000 sim code errors out with: + + libgloss/rs6000/sim-inbyte.c:22:7: error: implicit declaration of function 'read' [-Wimplicit-function-declaration] + libgloss/rs6000/sim-sbrk.c:26:7: error: implicit declaration of function 'brk'; did you mean 'sbrk'? [-Wimplicit-function-declaration] + libgloss/rs6000/sim-abort.c:19:3: error: implicit declaration of function 'write' [-Wimplicit-function-declaration] + libgloss/rs6000/sim-abort.c:20:3: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] + libgloss/rs6000/sim-print.c:29:3: error: implicit declaration of function 'write' [-Wimplicit-function-declaration] + libgloss/rs6000/mvme-print.c:34:11: error: implicit declaration of function '__pcrlf' [-Wimplicit-function-declaration] + libgloss/rs6000/mvme-print.c:44:19: error: implicit declaration of function '__outln' [-Wimplicit-function-declaration] + libgloss/rs6000/mvme-print.c:53:15: error: implicit declaration of function '__outstr' [-Wimplicit-function-declaration] + libgloss/rs6000/mbx-print.c:29:3: error: implicit declaration of function 'write' [-Wimplicit-function-declaration] + +Add extern declarations to avoid the errors. +--- + libgloss/rs6000/mbx-print.c | 2 ++ + libgloss/rs6000/mvme-print.c | 3 +++ + libgloss/rs6000/sim-abort.c | 3 +++ + libgloss/rs6000/sim-inbyte.c | 1 + + libgloss/rs6000/sim-print.c | 2 ++ + libgloss/rs6000/sim-sbrk.c | 1 + + 6 files changed, 12 insertions(+) + +diff --git a/libgloss/rs6000/mbx-print.c b/libgloss/rs6000/mbx-print.c +index 64472ee68..591ca2d3e 100644 +--- a/libgloss/rs6000/mbx-print.c ++++ b/libgloss/rs6000/mbx-print.c +@@ -13,6 +13,8 @@ + * they apply. + */ + ++extern int write(int fd, const void *buf, unsigned int count); ++ + /* + * print -- do a raw print of a string + */ +diff --git a/libgloss/rs6000/mvme-print.c b/libgloss/rs6000/mvme-print.c +index 8d195424e..d8f4c50d8 100644 +--- a/libgloss/rs6000/mvme-print.c ++++ b/libgloss/rs6000/mvme-print.c +@@ -12,6 +12,9 @@ + * the new terms are clearly indicated on the first page of each file where + * they apply. + */ ++extern void __pcrlf(void); ++extern void __outln(char *, char *); ++extern void __outstr(char *, char *); + + /* + * write -- write some bytes to the output device. +diff --git a/libgloss/rs6000/sim-abort.c b/libgloss/rs6000/sim-abort.c +index e1b59cf19..931f886ed 100644 +--- a/libgloss/rs6000/sim-abort.c ++++ b/libgloss/rs6000/sim-abort.c +@@ -14,6 +14,9 @@ + * they apply. + */ + ++extern int write(int fd, const void *buf, unsigned int count); ++extern void exit(int status); ++ + void abort(void) + { + write (2, "Abort called.\n", sizeof("Abort called.\n")-1); +diff --git a/libgloss/rs6000/sim-inbyte.c b/libgloss/rs6000/sim-inbyte.c +index 787b68976..fe1ac2a8b 100644 +--- a/libgloss/rs6000/sim-inbyte.c ++++ b/libgloss/rs6000/sim-inbyte.c +@@ -13,6 +13,7 @@ + * the new terms are clearly indicated on the first page of each file where + * they apply. + */ ++extern int read(int fd, void *buf, unsigned int count); + + int + inbyte () +diff --git a/libgloss/rs6000/sim-print.c b/libgloss/rs6000/sim-print.c +index c0b9adced..49596aff6 100644 +--- a/libgloss/rs6000/sim-print.c ++++ b/libgloss/rs6000/sim-print.c +@@ -13,6 +13,8 @@ + * they apply. + */ + ++extern int write(int fd, const void *buf, unsigned int count); ++ + /* + * print -- do a raw print of a string + */ +diff --git a/libgloss/rs6000/sim-sbrk.c b/libgloss/rs6000/sim-sbrk.c +index 5c8bd6522..0bbfe334b 100644 +--- a/libgloss/rs6000/sim-sbrk.c ++++ b/libgloss/rs6000/sim-sbrk.c +@@ -13,6 +13,7 @@ + * the new terms are clearly indicated on the first page of each file where + * they apply. + */ ++extern int brk(void *addr); + + extern char _end[]; + static char *curbrk = _end; +-- +2.49.0 + diff --git a/packages/newlib/4.5.0.20241231/0001-libgloss-use-expected-prototype-for-__inln.patch b/packages/newlib/4.5.0.20241231/0001-libgloss-use-expected-prototype-for-__inln.patch new file mode 100644 index 00000000..fe9a4ec6 --- /dev/null +++ b/packages/newlib/4.5.0.20241231/0001-libgloss-use-expected-prototype-for-__inln.patch @@ -0,0 +1,32 @@ +From db9e38650c0b04301dc1e3eeadd9d246d8a3aa2d Mon Sep 17 00:00:00 2001 +From: Chris Packham <judge.packham@gmail.com> +Date: Mon, 2 Jun 2025 16:57:25 +1200 +Subject: [PATCH] libgloss: use expected prototype for __inln() + +Resolve the following build error + + newlib/libgloss/rs6000/mvme-read.c:31:24: error: too many arguments to function '__inln'; expected 0, have 1 + 31 | char *read_end = __inln (buf); + | ^~~~~~ ~~~ + +Signed-off-by: Chris Packham <judge.packham@gmail.com> +--- + libgloss/rs6000/mvme-read.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libgloss/rs6000/mvme-read.c b/libgloss/rs6000/mvme-read.c +index 1c823b433..f8c539e76 100644 +--- a/libgloss/rs6000/mvme-read.c ++++ b/libgloss/rs6000/mvme-read.c +@@ -14,7 +14,7 @@ + */ + + extern int inbyte (); +-extern char * __inln (); ++extern char * __inln (char *buf); + + /* + * read -- read bytes from the serial port. Ignore fd, since +-- +2.49.0 + diff --git a/packages/newlib/4.5.0.20241231/chksum b/packages/newlib/4.5.0.20241231/chksum new file mode 100644 index 00000000..dc70c597 --- /dev/null +++ b/packages/newlib/4.5.0.20241231/chksum @@ -0,0 +1,4 @@ +md5 newlib-4.5.0.20241231.tar.gz 7318acc715409fdf382a643d4d2661bb +sha1 newlib-4.5.0.20241231.tar.gz 2f170b41e2a6cd456ef01445168dd7268ef87b20 +sha256 newlib-4.5.0.20241231.tar.gz 33f12605e0054965996c25c1382b3e463b0af91799001f5bb8c0630f2ec8c852 +sha512 newlib-4.5.0.20241231.tar.gz d391ea3ac68ddb722909ef790f81ba4d6c35d9b2e0fcdb029f91a6c47db9ee94a686a2bdff211fb84025e1a317e257acfa59abda3fd2bc6609966798e1c604dc diff --git a/packages/newlib/4.5.0.20241231/version.desc b/packages/newlib/4.5.0.20241231/version.desc new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/packages/newlib/4.5.0.20241231/version.desc |