From: Richard Earnshaw Date: Mon, 9 Nov 1998 22:10:06 +0000 (+0000) Subject: Restore ABI compatibility for NetBSD. X-Git-Tag: prereleases/egcs-1.1.1-prerelease-2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=999a719f44dcacf96bbb15311cc7942503c34ff0;p=thirdparty%2Fgcc.git Restore ABI compatibility for NetBSD. * arm/netbsd.h (DEFAULT_PCC_STRUCT_RETURN): Override setting in arm.h (RETURN_IN_MEMORY): Likewise. From-SVN: r23591 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4454db7564c8..0da2424e74f8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ Mon Nov 9 23:05:51 1998 Richard Earnshaw (rearnsha@arm.com) + Restore ABI compatibility for NetBSD. + * arm/netbsd.h (DEFAULT_PCC_STRUCT_RETURN): Override setting in + arm.h + (RETURN_IN_MEMORY): Likewise. + * arm.c (add_constant): When taking the address of an item in the pool, get the mode of the item addressed. diff --git a/gcc/config/arm/netbsd.h b/gcc/config/arm/netbsd.h index 374d5bf65abd..c97cd02d7d17 100644 --- a/gcc/config/arm/netbsd.h +++ b/gcc/config/arm/netbsd.h @@ -116,6 +116,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef TYPE_OPERAND_FMT #define TYPE_OPERAND_FMT "%%%s" +/* NetBSD uses the old PCC style aggregate returning conventions. */ +#undef DEFAULT_PCC_STRUCT_RETURN +#define DEFAULT_PCC_STRUCT_RETURN 1 + +/* Although not normally relevant (since by default, all aggregates + are returned in memory) compiling some parts of libc requires + non-APCS style struct returns. */ +#undef RETURN_IN_MEMORY + /* VERY BIG NOTE : Change of structure alignment for RiscBSD. There are consequences you should be aware of...