This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]