From d9c875c712bc7b56ac0fa3b93c0e54fc9d743837 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 25 Jan 1995 12:53:36 -0500 Subject: [PATCH] (DEFAULT_PCC_STRUCT_RETURN): Define as zero. (RETURN_IN_MEMORY): Small aggregates are to be returned in d0. From-SVN: r8805 --- gcc/config/m68k/mot3300.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/config/m68k/mot3300.h b/gcc/config/m68k/mot3300.h index 3144b96aa3e..87ca5af9276 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 */ -- 2.30.2