Re: DEFAULT_PCC_STRUCT_RETURN on NetBSD vs Linux
John Paul Adrian Glaubitz <[email protected]> Mon, 02 Jun 2025 19:56:27 +0200
| Newsgroups | gmane.os.netbsd.ports.m68k,gmane.comp.gcc.patches,gmane.linux.debian.ports.68k |
|---|---|
| Message-ID | <baa7d5fb638f2dd964e11174da261d9a2b793a59.camel@physik.fu-berlin.de> |
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