[PATCH] [RFC] arm: fix memset-related crashes caused by recent GCC (4.7.2) optimizations

Russell King - ARM Linux linux at arm.linux.org.uk
Tue Feb 12 11:37:26 EST 2013


On Tue, Feb 12, 2013 at 04:36:45PM +0000, Will Deacon wrote:
> That would be the ideal thing to do, because it allows the compiler to
> optimise around these functions, however it does mean we need to check/fix
> *all* of the string functions at least (if we don't pass -fno-builtin then
> any builtin function is up for optimisation, including strcpy etc).

No we don't.  memset() is the only one which I created in a non-standard
way.



More information about the linux-arm-kernel mailing list