Re: DEFAULT_PCC_STRUCT_RETURN on NetBSD vs Linux
On Mon, 2025-06-02 at 19:44 +0200, Andreas Schwab wrote:
> On Jun 02 2025, John Paul Adrian Glaubitz wrote:
>
> > Both NetBSD and Linux return structs differently, yet the comments in the
> > source code claim their way is according to the m68k SVR4 specification.
>
> Where does it claim that?
linux.h has:
/* For m68k SVR4, structures are returned using the reentrant
technique. */
#undef PCC_STATIC_STRUCT_RETURN
#define DEFAULT_PCC_STRUCT_RETURN 0
while netbsd-elf.h has:
/* The svr4 ABI for the m68k says that records and unions are returned
in memory. */
#undef DEFAULT_PCC_STRUCT_RETURN
#define DEFAULT_PCC_STRUCT_RETURN 1
To me both statements seem to contradict each other.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Reply to: