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

Will Deacon will.deacon at arm.com
Tue Feb 12 11:38:33 EST 2013


On Tue, Feb 12, 2013 at 04:37:26PM +0000, Russell King - ARM Linux wrote:
> 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.

Ok, I hadn't checked so that saves us some effort.

Cheers,

Will



More information about the linux-arm-kernel mailing list