https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117650
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2024-11-18 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Mathias Stearn from comment #0) > PS- ABI concerns may make it too late to change this, but it may also be > worth considering having the fail function take a single pointer to a > statically allocated struct with all of the arguments, rather than > generating them as separate arguments. As you can see, there are 4 > instructions filling in the arguments where it could just be 1. Ideally > there would be some way to encode the string addresses such that they don't > need runtime relocations at startup, eg, by encoding them as the offset from > the static struct pointer to the string, then decoding them only in the fail > function. PR 105810 is related to that part.