This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Use the x86 Solaris RETURN_IN_MEMORY for VxWorks too
- From: Richard Sandiford <richard at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: nathan at codesourcery dot com
- Date: Thu, 26 Apr 2007 11:47:39 +0100
- Subject: Use the x86 Solaris RETURN_IN_MEMORY for VxWorks too
As promised, this patch uses the new ix86_sol10_return_in_memory
for VxWorks too. Tested on i586-wrs-vxworks. OK to install?
Richard
gcc/
* config/i386/vx-common.h (RETURN_IN_MEMORY): Use
ix86_sol10_return_in_memory.
Index: gcc/config/i386/vx-common.h
===================================================================
--- gcc/config/i386/vx-common.h (revision 124182)
+++ gcc/config/i386/vx-common.h (working copy)
@@ -21,10 +21,7 @@ the Free Software Foundation; either ver
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
-/* The svr4 ABI for the i386 says that records and unions are returned
- in memory. */
+/* VxWorks uses the same ABI as Solaris 10. */
#undef RETURN_IN_MEMORY
-#define RETURN_IN_MEMORY(TYPE) \
- (TYPE_MODE (TYPE) == BLKmode \
- || (VECTOR_MODE_P (TYPE_MODE (TYPE)) && int_size_in_bytes (TYPE) == 8))
+#define RETURN_IN_MEMORY ix86_sol10_return_in_memory