Subject: Re: Serious problems in either gcc or pmap
To: Reinoud Zandijk <reinoud@netbsd.org>
From: Richard Earnshaw <rearnsha@arm.com>
List: port-arm
Date: 04/22/2002 17:03:22
rearnsha@arm.com said:
> It looks to me as though the function
> FontCouldBeTerminal()
> has been miscompiled. Note that at 0x10f80 we subtract 4 from the
> stack, but at the end of the function we don't add this back again...
> :-( We thus return off to never-never land and execute an illegal
> instruction. It's not at all clear to me from looking at the dump
> why we are pushing that stack space at all, there certainly aren't
> any uses of it.
OK, I think I know what the problem is...
The stack subtraction is for the dword-alignment of stack; for a
frame-pointerless function we need to unwind that word manually at the
end...
I'll look into a fix.
R.