diff --git a/config/libc/newlib.in b/config/libc/newlib.in index b95aff80..35c3fcfd 100644 --- a/config/libc/newlib.in +++ b/config/libc/newlib.in @@ -17,6 +17,11 @@ choice # Don't remove next line # CT_INSERT_VERSION_BELOW +config LIBC_NEWLIB_V_1_20_0 + bool + prompt "1.20.0 (EXPERIMENTAL)" + depends on EXPERIMENTAL + config LIBC_NEWLIB_V_1_19_0 bool prompt "1.19.0 (EXPERIMENTAL)" @@ -54,6 +59,7 @@ config LIBC_VERSION prompt "use CVS tag" if LIBC_NEWLIB_CVS # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW + default "1.20.0" if LIBC_NEWLIB_V_1_20_0 default "1.19.0" if LIBC_NEWLIB_V_1_19_0 default "1.18.0" if LIBC_NEWLIB_V_1_18_0 default "1.17.0" if LIBC_NEWLIB_V_1_17_0 diff --git a/patches/newlib/1.20.0/100-fix-unaligned-access-memcpy-m68k.patch b/patches/newlib/1.20.0/100-fix-unaligned-access-memcpy-m68k.patch new file mode 100644 index 00000000..1d0b49be --- /dev/null +++ b/patches/newlib/1.20.0/100-fix-unaligned-access-memcpy-m68k.patch @@ -0,0 +1,27 @@ +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(-) + +Index: newlib-1.20.0/newlib/libc/machine/m68k/memcpy.S +=================================================================== +--- newlib-1.20.0.orig/newlib/libc/machine/m68k/memcpy.S ++++ newlib-1.20.0/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