(DEFAULT_PCC_STRUCT_RETURN): Define as zero.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 25 Jan 1995 17:53:36 +0000 (12:53 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 25 Jan 1995 17:53:36 +0000 (12:53 -0500)
(RETURN_IN_MEMORY): Small aggregates are to be returned in d0.

From-SVN: r8805

gcc/config/m68k/mot3300.h

index 3144b96aa3e080b50409914e202b0ecb5f42a945..87ca5af927612b8ffac19a01a0b0b149136baa7e 100644 (file)
@@ -1,8 +1,9 @@
 /* Definitions of target machine for GNU compiler,
    SysV68 Motorola 3300 Delta Series.
-   Copyright (C) 1987, 1993, 1994 Free Software Foundation, Inc.
+   Copyright (C) 1987, 1993, 1994, 1995 Free Software Foundation, Inc.
    Coptributed by Abramo and Roberto Bagnara (bagnara@dipisa.di.unipi.it)
    based on Alex Crain's 3B1 definitions.
+   Maintained by Philippe De Muyter (phdm@info.ucl.ac.be).
 
 This file is part of GNU CC.
 
@@ -170,6 +171,15 @@ output_file_directive ((FILE), main_input_filename)
   1, 1, 0, 0, 0, 0, 0, 1,                                              \
   1, 1, 0, 0, 0, 0, 0, 0}
 
+/* This will return small structs in d0.  */
+#define RETURN_IN_MEMORY(type) \
+  (AGGREGATE_TYPE_P (type) \
+   && GET_MODE_SIZE (TYPE_MODE (type)) > UNITS_PER_WORD)
+
+/* Don't default to pcc-struct-return, because we have already specified
+   exactly how to return structures in the RETURN_IN_MEMORY macro.  */
+#define DEFAULT_PCC_STRUCT_RETURN 0
+
 /* If TARGET_68881, return SF and DF values in fp0 instead of d0.  */
 /* NYI: If FP=M68881U return SF and DF values in d0. */
 /* NYI: If -mold return pointer in a0 and d0 */