[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patches] ARM mcount fix



On Thu, 27 Mar 2008, Paul Brook wrote:

> The ARM _mcount implementation assumes that functions with a frame pointer 
> also save the link register.  Recent gcc generate optimized stack frames, so 
> this is no longer true.  The attached patch adds explicit clobbers to fix 
> this.
> 
> Tested on arm-linux-gnueabi.
> 
> I don't have svn write access, so please apply if OK.  The patch should be 
> applicable to all active branches.
> 
> Paul
> 
> 2008-03-27  Paul Brook  <paul@xxxxxxxxxxxxxxxx>
> 
> 	* sysdeps/arm/machine-gmon.h (_mcount): Clobber lr.

The patch is OK.  You do have write access.

-- 
Joseph S. Myers
joseph@xxxxxxxxxxxxxxxx