From 02cba8dfe4e337517390a0763b3248ea1216b52b Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Thu, 26 Apr 2007 12:25:42 +0000 Subject: [PATCH] vx-common.h (RETURN_IN_MEMORY): Use ix86_sol10_return_in_memory. gcc/ * config/i386/vx-common.h (RETURN_IN_MEMORY): Use ix86_sol10_return_in_memory. From-SVN: r124185 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/vx-common.h | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ddfdbfdc268..9e27031777d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-04-26 Richard Sandiford + + * config/i386/vx-common.h (RETURN_IN_MEMORY): Use + ix86_sol10_return_in_memory. + 2007-04-26 Richard Sandiford * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused diff --git a/gcc/config/i386/vx-common.h b/gcc/config/i386/vx-common.h index 7c94c7daadf..fafdda2b5ad 100644 --- a/gcc/config/i386/vx-common.h +++ b/gcc/config/i386/vx-common.h @@ -21,10 +21,7 @@ Boston, MA 02110-1301, USA. */ #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 -- 2.30.2