alistair23-linux/arch/cris/arch-v32
Jesper Nilsson 9fe3fd03a1 CRIS: Import string.c (memcpy) from newlib: fixes compile error with gcc 4
Adrian Bunk reported another compile error with a SVN head GCC:

...
  CC      arch/cris/arch-v10/lib/string.o
/home/bunk/linux/kernel-2.6/git/linux-2.6/arch/cris/arch-v10/lib/string.c:138:
error: lvalue required as increment operand
/home/bunk/linux/kernel-2.6/git/linux-2.6/arch/cris/arch-v10/lib/string.c:138:
error: lvalue required as increment operand
/home/bunk/linux/kernel-2.6/git/linux-2.6/arch/cris/arch-v10/lib/string.c:139:
error: lvalue required as increment operand
...

This is due to the use of the construct:

	*((long*)dst)++ = lc;

Which isn't legal since casts don't return an lvalue.

The solution is to import the implementation from newlib,
which is continually autotested together with GCC mainline,
and uses the construct:

	*(long *) dst = lc; dst += 4;

Since this is an import of a file from newlib, I'm not touching
the formatting or correcting any checkpatch errors.

As for the earlier fix for memset.c, even if the two files for
CRIS v10 and CRIS v32 are identical at the moment, it might
be possible to tweak the CRIS v32 version.
Thus, I'm not yet folding them into the same file, at least not
until we've done some research on it.

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: Mikael Starvik <starvik@axis.com>
Cc: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-03-04 16:35:13 -08:00
..
boot CRIS v32: Update boot/rescue/rescue.ld 2008-02-08 11:06:35 +01:00
drivers CRIS v32: Change drivers/i2c.c locking. 2008-02-08 17:00:25 +01:00
kernel CRIS: Add new timerfd syscall entries. 2008-02-08 11:54:30 +01:00
lib CRIS: Import string.c (memcpy) from newlib: fixes compile error with gcc 4 2008-03-04 16:35:13 -08:00
mach-a3 CRIS v32: Correct spelling of bandwidth in function name. 2008-02-08 11:16:46 +01:00
mach-fs CRIS v32: Update vcs_hook.c for ETRAX FS. 2008-02-08 11:06:35 +01:00
mm CRIS v32: Avoid work when switching between tasks with shared memory descriptors in mm/tlb.c 2008-02-08 11:06:36 +01:00
Kconfig CRIS: Rearrange Kconfigs for v10 and v32 to allow compilation without warnings. 2008-02-08 11:06:22 +01:00
output_arch.ld [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
vmlinux.lds.S CRIS v32: Fix startup oops and replace hardcoded pagesize in vmlinux.lds.S 2008-02-08 11:06:36 +01:00