Messages in this thread | | | Date | Wed, 14 Jan 2004 04:43:05 -0500 | From | Jakub Jelinek <> | Subject | Re: [PATCH] string fixes for gcc 3.4 |
| |
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. But I agree GCC does a better job with string/memory functions than kernel with its inlines.
Jakub - 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/
| |