Messages in this thread | | | Date | 14 Jan 2004 11:02:16 +0100 | Date | Wed, 14 Jan 2004 11:02:16 +0100 | From | Andi Kleen <> | Subject | Re: [PATCH] string fixes for gcc 3.4 |
| |
On Wed, Jan 14, 2004 at 04:43:05AM -0500, Jakub Jelinek wrote: > On Wed, Jan 14, 2004 at 10:15:43AM +0100, Andi Kleen wrote: > > > > gcc 3.4 optimizes sprintf(foo,"%s",string) into strcpy. Unfortunately > > that isn't seen by the inliner and linux/i386 has no out-of-line strcpy > > so you end up with a linker error. > > The other alternative is -ffreestanding. Kernel in its current shape > certainly is not a hosted environment.
Good point.
> But I agree GCC does a better job with string/memory functions > than kernel with its inlines.
If anybody wants to try it: cp include/asm-x86_64/string.h include/asm-i386/string.h should do approximately the right thing.
-Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |