Re: [PATCH] x86: Use __builtin_memset and __builtin_memcpy for memset/memcpy

From: H. Peter Anvin
Date: Tue Sep 29 2009 - 11:36:20 EST


On 09/29/2009 05:44 AM, Arnd Bergmann wrote:
>
> The patch looks good, but is there a reason to keep it architecture
> specific? I would guess that the same logic applies to all architectures
> with gcc-4.x and could be put into include/linux/compiler-gcc4.h.
>

Each architecture has its own implementation, and in some cases gcc will
even generate code which is illegal in the kernel. It really needs to
be enabled by each architecture.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/