]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Restore ABI compatibility for NetBSD.
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 9 Nov 1998 22:10:06 +0000 (22:10 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 9 Nov 1998 22:10:06 +0000 (15:10 -0700)
* arm/netbsd.h (DEFAULT_PCC_STRUCT_RETURN): Override setting in
arm.h
(RETURN_IN_MEMORY): Likewise.

From-SVN: r23591

gcc/ChangeLog
gcc/config/arm/netbsd.h

index 4454db7564c842559bd23e8696fc07d3e3ab3a36..0da2424e74f852bf536cf30fc9f7ea5982256cd1 100644 (file)
@@ -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.
 
index 374d5bf65abdd60d78b3636e7988a2eeecb30c24..c97cd02d7d17ab07dae7e72ba489c2e6efb1d60c 100644 (file)
@@ -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...