[Bug target/122282] [target, ppc64-linux] return of small character array not according to ABI spec

segher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 16 15:59:29 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122282

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Things in C typically return the address of a string in memory as that string.
Only if your function actually returns an array of bytes (not the address of
such a thing) does this text (in 3.2.4 in the spec) apply.

It isn't clear to me what should happen for Ada here, what the Ada ABI for this
is, irrespective of what the Power implementation of that is!


More information about the Gcc-bugs mailing list