Re: [x86 setup 16/33] String-handling functions for the new x86 setup code.

2007-07-11 Thread Andi Kleen
> Yes, Linux should definitely be compiled with -ffreestanding, > it isn't a hosted application after all ;-) We tried it some time ago and it caused problems so it was dropped again -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

Re: [x86 setup 16/33] String-handling functions for the new x86 setup code.

2007-07-10 Thread Segher Boessenkool
Nope. The builtins not only vary between gcc versions, but they also have a nasty tendency to generate calls to library functions, sometimes libgcc functions. Hence -ffreestanding. -ffreestanding will still generate calls to libgcc functions. -ffreestanding doesn't disable _all_ of the C l

Re: [x86 setup 16/33] String-handling functions for the new x86 setup code.

2007-07-10 Thread H. Peter Anvin
Segher Boessenkool wrote: >> Nope. The builtins not only vary between gcc versions, but they also >> have a nasty tendency to generate calls to library functions, sometimes >> libgcc functions. Hence -ffreestanding. > > -ffreestanding will still generate calls to libgcc functions. > -ffreestandi

Re: [x86 setup 16/33] String-handling functions for the new x86 setup code.

2007-07-10 Thread Segher Boessenkool
Nope. The builtins not only vary between gcc versions, but they also have a nasty tendency to generate calls to library functions, sometimes libgcc functions. Hence -ffreestanding. -ffreestanding will still generate calls to libgcc functions. -ffreestanding doesn't disable _all_ of the C li

Re: [x86 setup 16/33] String-handling functions for the new x86 setup code.

2007-07-10 Thread H. Peter Anvin
Jan Engelhardt wrote: > On Jul 9 2007 19:51, H. Peter Anvin wrote: >> strcmp(), memcpy(), memset(), as well as routines to copy to and from >> other segments (as pointed to by fs and gs). > > I wonder, strcmp() is the only one not done in assembler. > Is there a particular reason? (Or the other wa

Re: [x86 setup 16/33] String-handling functions for the new x86 setup code.

2007-07-10 Thread Jan Engelhardt
On Jul 9 2007 19:51, H. Peter Anvin wrote: > >strcmp(), memcpy(), memset(), as well as routines to copy to and from >other segments (as pointed to by fs and gs). I wonder, strcmp() is the only one not done in assembler. Is there a particular reason? (Or the other way around, why is memcpy/memset