From e7a59c419d2833fd166311b967b6f6bc9962e678 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Tue, 13 Apr 2021 09:27:29 -0500 Subject: [PATCH] Update to newlib release 4.1.0 Signed-off-by: Kumar Gala --- ...000-fix-unaligned-access-memcpy-m68k.patch | 25 +++++++++++++++++++ .../newlib/4.1.0/0001-fix-mt-cflags.patch | 13 ++++++++++ packages/newlib/4.1.0/chksum | 4 +++ packages/newlib/4.1.0/version.desc | 0 4 files changed, 42 insertions(+) create mode 100644 packages/newlib/4.1.0/0000-fix-unaligned-access-memcpy-m68k.patch create mode 100644 packages/newlib/4.1.0/0001-fix-mt-cflags.patch create mode 100644 packages/newlib/4.1.0/chksum create mode 100644 packages/newlib/4.1.0/version.desc 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 new file mode 100644 index 00000000..b6709d5a --- /dev/null +++ b/packages/newlib/4.1.0/0000-fix-unaligned-access-memcpy-m68k.patch @@ -0,0 +1,25 @@ +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 +[yann.morin.1998@anciens.enib.fr: update for 1.19.0 from 1.18.0] +Signed-off-by: "Yann E. MORIN" +[austinpmorton@gmail.com: update for 1.20.0 from 1.19.0] +Signed-off-by: Austin Morton +--- + 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 new file mode 100644 index 00000000..24a9215d --- /dev/null +++ b/packages/newlib/4.1.0/0001-fix-mt-cflags.patch @@ -0,0 +1,13 @@ +--- + 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/chksum b/packages/newlib/4.1.0/chksum new file mode 100644 index 00000000..378765ab --- /dev/null +++ b/packages/newlib/4.1.0/chksum @@ -0,0 +1,4 @@ +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 new file mode 100644 index 00000000..e69de29b