This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: newlib/libc/machine/m68k/memcpy.S broken for cpu32
- From: Josef Wolf <jw at raven dot inka dot de>
- To: newlib at sourceware dot org
- Date: Mon, 8 Feb 2010 18:24:14 +0100
- Subject: Re: newlib/libc/machine/m68k/memcpy.S broken for cpu32
- References: <20100208154314.GI12505@raven.wolf.lan>
On Mon, Feb 08, 2010 at 04:43:14PM +0100, Josef Wolf wrote:
[ ... ]
> --- newlib-1.18.0.orig/newlib/libc/machine/m68k/memcpy.S 2010-02-08 15:23:22.719360886 +0100
> +++ newlib-1.18.0/newlib/libc/machine/m68k/memcpy.S 2009-12-14 21:50:53.000000000 +0100
> @@ -15,7 +15,7 @@
>
> #include "m68kasm.h"
>
> -#if defined (__mcoldfire__) || defined (__mc68010__) || defined (__mc68020__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__)
> +#if defined (__mcoldfire__) || defined (__mcpu32__) || defined (__mc68010__) || defined (__mc68020__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__)
> # define MISALIGNED_OK 1
> #else
> # define MISALIGNED_OK 0
Although I apply this patch, I still get code as if MISALIGNED_OK==1. Any
idea why this patch still defines MISALIGNED_OK==1 when -mcpu32 option
is given to gcc? Does -mcpu32 imply some other -mc680x0 option?