This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [m68k] Fix and improve ColdFire function prologue/epilogue generation


On Wed, Sep 03, 2003 at 10:13:04AM -0700, Richard Henderson wrote:
> On Wed, Sep 03, 2003 at 06:10:51PM +0200, Gunther Nikl wrote:
> >   Is %a6 %fp here?
> 
> Yes.  I was trying to be less confusing by only using the name %fp when
> it is used as a frame pointer.

  Well, %a6 isn't necessarily the frame-pointer. My target uses %a5.

> >   AFAICT, merging frame_size and saved_regs_size is only possible if
> >   frame_size is > 8 and its < (32k - saved_regs_size).
> 
> I'd forgotten about the subq case.  I guess that could be moderately
> common -- something along the lines of 
> 
> 	int dummy;
> 	foo(&dummy);

  No, a function conatining such code would use the frame-pointer on m68k
  unless you pass the argument in a register. In that case GCC would use
  %sp to access dummy.

> For the case of nearly 32k, I wouldn't think that would be common enough
> to be worth worrying about.

  Thats probably true.

  Gunther


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]