[Bug target/106338] RISC-V static-chain register may be clobbered by PLT stubs

2022-08-09 Thread kito at gcc dot gnu.org via Gcc-bugs
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.

[Bug target/106338] RISC-V static-chain register may be clobbered by PLT stubs

2022-08-09 Thread andrew at sifive dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106338 Andrew Waterman changed: What|Removed |Added CC||andrew at sifive dot com --- Comment

[Bug target/106338] RISC-V static-chain register may be clobbered by PLT stubs

2022-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106338 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/106338] RISC-V static-chain register may be clobbered by PLT stubs

2022-07-18 Thread schwab--- via Gcc-bugs
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.

[Bug target/106338] RISC-V static-chain register may be clobbered by PLT stubs

2022-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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.

[Bug target/106338] RISC-V static-chain register may be clobbered by PLT stubs

2022-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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).