https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106338
--- Comment #6 from Kito Cheng ---
My understanding is static chain is sort of compiler internal implementation,
any register could be picked if that is not used for passing argument, so I
would also prefer keep that out psABI spec for now.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106338
Andrew Waterman changed:
What|Removed |Added
CC||andrew at sifive dot com
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106338
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106338
--- Comment #3 from Andreas Schwab ---
I think every port is using a call-clobbered register for the static chain, and
it is not part of the ABI.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106338
--- Comment #2 from Andrew Pinski ---
> static chain parameters are only used in Go
This is a lie. They are used with both Ada and fortan a lot. Both heavily use
nested functions.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106338
--- Comment #1 from Andrew Pinski ---
I don't see how this is an issue static chain is only used for nested functions
in gcc and always local functions (except maybe with LTO).