diff options
author | Alexey Neyman <stilor@att.net> | 2017-04-11 08:06:16 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-04-11 08:18:19 (GMT) |
commit | a1c3039811a0ffc61c2e1b5b085ec7b6ddf8c30a (patch) | |
tree | 6bb44b8c16a877f492acc59fc7fc6ac4af52d1d6 /patches/newlib/linaro-2.2.0-2015.01/100-fix-unaligned-access-memcpy-m68k.patch | |
parent | 60c50068483d5a6ef76befeb4518483d753af32b (diff) |
Sort out newlib patches
- Existing 110-fix-eabihf.patch did not apply to 1.20.0 and earlier
- This patch is also applicable to 2.x versions
- The patch needs to be applied to both configure.in/configure
- Existing 200-optimising-for-space.patch also applies to all versions
before 2.4.0
- Similar issues exist in other config/mt-* files
- m68k patch is applicable to 2.* versions
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'patches/newlib/linaro-2.2.0-2015.01/100-fix-unaligned-access-memcpy-m68k.patch')
-rw-r--r-- | patches/newlib/linaro-2.2.0-2015.01/100-fix-unaligned-access-memcpy-m68k.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/patches/newlib/linaro-2.2.0-2015.01/100-fix-unaligned-access-memcpy-m68k.patch b/patches/newlib/linaro-2.2.0-2015.01/100-fix-unaligned-access-memcpy-m68k.patch new file mode 100644 index 0000000..1d0b49b --- /dev/null +++ b/patches/newlib/linaro-2.2.0-2015.01/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 <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(-) + +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 |