public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Issue with frame pointer elimination
@ 2021-02-04 10:54 Henri Cloetens
  2021-02-04 10:57 ` AW: " Stefan Franke
  2021-02-04 23:42 ` Segher Boessenkool
  0 siblings, 2 replies; 4+ messages in thread
From: Henri Cloetens @ 2021-02-04 10:54 UTC (permalink / raw)
  To: gcc-help

Hello,

I am working on a custom gcc.9.2.0 back end, and have an issue with 
frame pointer elimination.

- the result is OK till step '276 : ira (register allocation)
- the result is NG from step '277 onward (reload)

What it did: It used R19 for the frame pointer. This register is 
call-clobbered, but is not used for
   argument passing. Some way, it assumed to be free, but it is not.

So, the frame pointer is put in it, it is call-clobbered, and the result 
is incorrect.

If the compile flag -fomit-frame-pointer is used, the issue goes away.

Has anybody any idea where to look ?.

Best Regards,

Henri.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-05  8:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 10:54 Issue with frame pointer elimination Henri Cloetens
2021-02-04 10:57 ` AW: " Stefan Franke
2021-02-04 23:42 ` Segher Boessenkool
2021-02-05  8:52   ` Henri Cloetens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).