aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-01-25 12:53:36 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-01-25 12:53:36 -0500
commitd9c875c712bc7b56ac0fa3b93c0e54fc9d743837 (patch)
tree67336b029cd7f2a2f23c8da7aebb619fe74d6736
parent2e420a17f71d3bceba073f34cdfd402dbcecdb7a (diff)
downloadgcc-d9c875c712bc7b56ac0fa3b93c0e54fc9d743837.zip
gcc-d9c875c712bc7b56ac0fa3b93c0e54fc9d743837.tar.gz
gcc-d9c875c712bc7b56ac0fa3b93c0e54fc9d743837.tar.bz2
(DEFAULT_PCC_STRUCT_RETURN): Define as zero.
(RETURN_IN_MEMORY): Small aggregates are to be returned in d0. From-SVN: r8805
-rw-r--r--gcc/config/m68k/mot3300.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/config/m68k/mot3300.h b/gcc/config/m68k/mot3300.h
index 3144b96..87ca5af 100644
--- a/gcc/config/m68k/mot3300.h
+++ b/gcc/config/m68k/mot3300.h
@@ -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 */