Re: -ffreestanding or not -ffreestanding

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Adrian Bunk <bunk@...>
Cc: Al Viro <viro@...>, <torvalds@...>, <geert@...>, <linux-m68k@...>, <linux-kernel@...>, <linux-arch@...>
Date: Wednesday, May 21, 2008 - 7:44 am

Hi,

On Wed, 21 May 2008, Adrian Bunk wrote:


This won't help completely unless you also clean up all archs to use the 
same mappings to the builtin functions.

The main problem I had with -ffreestanding is that it's awkward to map a 
library function to the builtin function and also provide the fallback 
from lib/string.c.
If you look at asm-m68k/string.h I once tried this with the mem* functions 
and I still have the duplicated memcmp in arch/m68k/lib/string.c.
(You could argue that it would be easier to just remove the define for 
memcmp in this specific case, but I'm interested in the general case.)

bye, Roman
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] provide out-of-line strcat() for m68k, Al Viro, (Tue May 20, 9:12 pm)
-ffreestanding or not -ffreestanding, Adrian Bunk, (Wed May 21, 3:52 am)
Re: -ffreestanding or not -ffreestanding, Roman Zippel, (Wed May 21, 7:44 am)
Re: [PATCH] provide out-of-line strcat() for m68k, Roman Zippel, (Tue May 20, 11:34 pm)
Re: [PATCH] provide out-of-line strcat() for m68k, Roman Zippel, (Wed May 21, 6:53 am)