Messages in this thread | | | Subject | Re: [PATCH] C undefined behavior fix | Date | Wed, 2 Jan 2002 11:48:11 +0000 (GMT) | From | Alan Cox <> |
| |
> Why is Linux not using this? It sounds very appropriate. The only > things the manpage mentions that -fno-builtin would inhibit from being > optimized are memcpy() and alloca(). memcpy() has its own assembly
There are others in newer gcc's, and on the whole gcc does a very good job with them, so IMHO it is worth being nice to gcc to get the advantages.
> I only see it being used a bit in the S/390 code, where the gcc > optimizations could quite possibly break something. I think > -ffreestanding definately should be used by the kernel to prevent gcc > from messing with its code in broken ways.
-ffreestanding for the compiler versions that support it can be added to arch specific flags anyway - 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/
| |