2002-08-08 Michael Snyder <msnyder@redhat.com>
[binutils-gdb.git] / gdb / mips-tdep.c
index 01637feb7a6483a29fff42a40bf67289229052a7..1faf071ab5cb652f80c9bd66fc32d03afdd103eb 100644 (file)
@@ -574,7 +574,7 @@ mips_eabi_use_struct_convention (int gcc_p, struct type *type)
 int
 mips_n32n64_use_struct_convention (int gcc_p, struct type *type)
 {
-  return 1;    /* Structures are returned by ref in extra arg0.  */
+  return (TYPE_LENGTH (type) > 2 * MIPS_SAVED_REGSIZE);
 }
 
 int