Compilation problem on m68k/memcpy.S

Vincent Rivière vincent.riviere@freesbee.fr
Thu Jan 3 10:46:00 GMT 2008


Hello.

There is a compilation problem on these 2 files :
newlib/libc/machine/m68k/memcpy.S
newlib/libc/machine/m68k/memset.S
when compiling on a m68k target using symbols with leading underscores.

The attached patch fixes the problem.
It uses the well-known SYM() macro.
This patch works. However, it may be a good idea do centralize this 
macro somewhere for the whole library.

Note there is also:

#ifndef __USER_LABEL_PREFIX__
#define __USER_LABEL_PREFIX__ _
#endif

I kept it like this, because this is the usual way to do.
However, when __USER_LABEL_PREFIX__ is not automatically defined, it 
might be better to define it to nothing to avoid regressions.

I hope this will help.

-- 
Vincent Rivière
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: prefix.patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20080103/a52b2d17/attachment.ksh>


More information about the Newlib mailing list