Fri Jun 27 19:19:12 1997 Michael Snyder (msnyder@cleaver.cygnus.com)

* config/mips/tm-mips.h (USE_STRUCT_CONVENTION): MIPS_EABI returns
        structs in a register wherever possible.
This commit is contained in:
Michael Snyder
1997-06-28 02:23:30 +00:00
parent d006e43527
commit 0af60e0326
3 changed files with 45 additions and 13 deletions

View File

@@ -331,9 +331,14 @@ extern void mips_store_return_value PARAMS ((struct type *, char *));
(extract_address (REGBUF + REGISTER_BYTE (V0_REGNUM), \
REGISTER_RAW_SIZE (V0_REGNUM)))
#if MIPS_EABI
#undef USE_STRUCT_CONVENTION
#define USE_STRUCT_CONVENTION(gcc_p, type) \
(TYPE_LENGTH (type) > 2 * MIPS_REGSIZE)
#else
/* Structures are returned by ref in extra arg0 */
#define USE_STRUCT_CONVENTION(gcc_p, type) 1
#endif
/* Describe the pointer in each stack frame to the previous stack frame
(its caller). */