Re: DEFAULT_PCC_STRUCT_RETURN on NetBSD vs Linux
Andreas Schwab <[email protected]> Wed, 28 May 2025 18:10:14 +0200
| Newsgroups | gmane.comp.gcc.patches,gmane.linux.debian.ports.68k,gmane.os.netbsd.ports.m68k |
|---|---|
| Message-ID | <[email protected]> |
On Mai 28 2025, John Paul Adrian Glaubitz wrote: > Shouldn't the #undef in linux.h undefine DEFAULT_PCC_STRUCT_RETURN and not > PCC_STATIC_STRUCT_RETURN? No, they are separate target options. PCC_STATIC_STRUCT_RETURN is no longer defined by default, so this is redundant now. > And, secondly, shouldn't the comment in linux.h be corrected since > apparently linux.h and netbsd-elf.h disagree on what the SVR4 ABI > specifies how structs and unions are returned? This is controlled by TARGET_RETURN_IN_MEMORY if DEFAULT_PCC_STRUCT_RETURN is 0. -- Andreas Schwab, [email protected] GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."