summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/vx-common.h7
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,5 +1,10 @@
2007-04-26 Richard Sandiford <richard@codesourcery.com>
+ * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
+ ix86_sol10_return_in_memory.
+
+2007-04-26 Richard Sandiford <richard@codesourcery.com>
+
* config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
variables.
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
OpenPOWER on IntegriCloud