[Bug target/84762] GCC for PowerPC32 violates the SysV ABI spec for small struct returns
sirl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 4 14:15:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84762
Franz Sirl <sirl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |3.1.1
--- Comment #11 from Franz Sirl <sirl at gcc dot gnu.org> ---
It is wrong since the introduction of -msvr4-struct-return during the gcc-3.1
development. Before that GCC followed a draft ABI spec and returned all
aggregates in memory for ABI_V4.
A quick check reveals that a fix is probably easy to implement with a new
option (non-default for backwards compatibility), a small change in
rs6000_return_in_msb() and an additional value in rs6000_elf_file_end() for
".gnu_attribute 12".
More information about the Gcc-bugs
mailing list