From: Jim Wilson Date: Tue, 23 Mar 1993 19:31:53 +0000 (-0800) Subject: (RETURN_IN_MEMORY): Delete struct and union references. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e419152dc72f54fd10741a84db06526818d25e42;p=gcc.git (RETURN_IN_MEMORY): Delete struct and union references. From-SVN: r3854 --- diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index 298b9996c0d..1907b309048 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -674,7 +674,6 @@ enum reg_class { NO_REGS, GENERAL_REGS, FLOAT_REGS, ALL_REGS, #define RETURN_IN_MEMORY(TYPE) \ (TYPE_MODE (TYPE) == BLKmode \ - || TREE_CODE (TYPE) == RECORD_TYPE || TREE_CODE (TYPE) == UNION_TYPE \ || (TREE_CODE (TYPE) == INTEGER_TYPE && TYPE_PRECISION (TYPE) > 64)) /* 1 if N is a possible register number for a function value diff --git a/gcc/config/i386/sysv4.h b/gcc/config/i386/sysv4.h index 9cc99251919..094de4657b9 100644 --- a/gcc/config/i386/sysv4.h +++ b/gcc/config/i386/sysv4.h @@ -31,8 +31,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef RETURN_IN_MEMORY #define RETURN_IN_MEMORY(TYPE) \ - (TYPE_MODE (TYPE) == BLKmode \ - || TREE_CODE (TYPE) == RECORD_TYPE || TREE_CODE(TYPE) == UNION_TYPE) + (TYPE_MODE (TYPE) == BLKmode) /* Define which macros to predefine. __svr4__ is our extension. */ /* This used to define X86, but james@bigtex.cactus.org says that diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index d56a8bf954b..2e67e635918 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -1769,9 +1769,7 @@ extern struct mips_frame_info current_frame_info; to give us MIPS cc compatibility. */ #define RETURN_IN_MEMORY(TYPE) \ - ((TYPE_MODE (TYPE) == BLKmode) \ - || (TREE_CODE (TYPE) == RECORD_TYPE) || (TREE_CODE (TYPE) == UNION_TYPE)) - + (TYPE_MODE (TYPE) == BLKmode) /* A code distinguishing the floating point format of the target machine. There are three defined values: IEEE_FLOAT_FORMAT, diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 7e8e0cd6ab3..be5de190d87 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -644,8 +644,7 @@ enum reg_class { NO_REGS, BASE_REGS, GENERAL_REGS, FLOAT_REGS, For the RS/6000, any structure or union type is returned in memory. */ #define RETURN_IN_MEMORY(TYPE) \ - (TYPE_MODE (TYPE) == BLKmode \ - || TREE_CODE (TYPE) == RECORD_TYPE || TREE_CODE (TYPE) == UNION_TYPE) + (TYPE_MODE (TYPE) == BLKmode) /* 1 if N is a possible register number for a function value as seen by the caller.