aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2010-07-12 15:30:50 +0000
committerRainer Orth <ro@gcc.gnu.org>2010-07-12 15:30:50 +0000
commite2b4f10338578f4fb49e7b47ced0c4178017b17c (patch)
treeb0209de8a14add6ad133c69637c912efbd3e9256
parent04a17bb6ed69f59efbffbe5ace2ea82b2e4590c7 (diff)
downloadgcc-e2b4f10338578f4fb49e7b47ced0c4178017b17c.zip
gcc-e2b4f10338578f4fb49e7b47ced0c4178017b17c.tar.gz
gcc-e2b4f10338578f4fb49e7b47ced0c4178017b17c.tar.bz2
i386.c (ix86_sol10_return_in_memory): Rename to ix86_solaris_return_in_memory.
* config/i386/i386.c (ix86_sol10_return_in_memory): Rename to ix86_solaris_return_in_memory. * config/i386-protos.h: Reflect this. * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise. * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise. Move ... * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here. From-SVN: r162082
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/config/i386/i386-protos.h2
-rw-r--r--gcc/config/i386/i386.c4
-rw-r--r--gcc/config/i386/sol2-10.h4
-rw-r--r--gcc/config/i386/sol2.h4
-rw-r--r--gcc/config/i386/vx-common.h6
6 files changed, 20 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5a446a9..5c48186 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,13 @@
+2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
+ ix86_solaris_return_in_memory.
+ * config/i386-protos.h: Reflect this.
+ * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
+ * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
+ Move ...
+ * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
+
2010-07-12 Jie Zhang <jie@codesourcery.com>
* config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
diff --git a/gcc/config/i386/i386-protos.h b/gcc/config/i386/i386-protos.h
index 47a0a88..e7ee948 100644
--- a/gcc/config/i386/i386-protos.h
+++ b/gcc/config/i386/i386-protos.h
@@ -141,7 +141,7 @@ extern rtx ix86_libcall_value (enum machine_mode);
extern bool ix86_function_arg_regno_p (int);
extern void ix86_asm_output_function_label (FILE *, const char *, tree);
extern int ix86_function_arg_boundary (enum machine_mode, tree);
-extern bool ix86_sol10_return_in_memory (const_tree,const_tree);
+extern bool ix86_solaris_return_in_memory (const_tree,const_tree);
extern rtx ix86_force_to_memory (enum machine_mode, rtx);
extern void ix86_free_from_memory (enum machine_mode);
extern enum calling_abi ix86_cfun_abi (void);
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index e6b6089..4fd2aab 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -6873,12 +6873,12 @@ ix86_return_in_memory (const_tree type, const_tree fntype ATTRIBUTE_UNUSED)
}
/* Return false iff TYPE is returned in memory. This version is used
- on Solaris 10. It is similar to the generic ix86_return_in_memory,
+ on Solaris 2. It is similar to the generic ix86_return_in_memory,
but differs notably in that when MMX is available, 8-byte vectors
are returned in memory, rather than in MMX registers. */
bool
-ix86_sol10_return_in_memory (const_tree type, const_tree fntype ATTRIBUTE_UNUSED)
+ix86_solaris_return_in_memory (const_tree type, const_tree fntype ATTRIBUTE_UNUSED)
{
int size;
enum machine_mode mode = type_natural_mode (type, NULL);
diff --git a/gcc/config/i386/sol2-10.h b/gcc/config/i386/sol2-10.h
index d57ed7f..c7fdec9 100644
--- a/gcc/config/i386/sol2-10.h
+++ b/gcc/config/i386/sol2-10.h
@@ -145,7 +145,3 @@ along with GCC; see the file COPYING3. If not see
#undef TARGET_ASM_NAMED_SECTION
#define TARGET_ASM_NAMED_SECTION i386_solaris_elf_named_section
-
-#undef SUBTARGET_RETURN_IN_MEMORY
-#define SUBTARGET_RETURN_IN_MEMORY(TYPE, FNTYPE) \
- ix86_sol10_return_in_memory (TYPE, FNTYPE)
diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h
index e4595e0..57f75ea 100644
--- a/gcc/config/i386/sol2.h
+++ b/gcc/config/i386/sol2.h
@@ -140,6 +140,10 @@ along with GCC; see the file COPYING3. If not see
/* Register the Solaris-specific #pragma directives. */
#define REGISTER_SUBTARGET_PRAGMAS() solaris_register_pragmas ()
+#undef SUBTARGET_RETURN_IN_MEMORY
+#define SUBTARGET_RETURN_IN_MEMORY(TYPE, FNTYPE) \
+ ix86_solaris_return_in_memory (TYPE, FNTYPE)
+
/* Output a simple call for .init/.fini. */
#define ASM_OUTPUT_CALL(FILE, FN) \
do \
diff --git a/gcc/config/i386/vx-common.h b/gcc/config/i386/vx-common.h
index b4bea84..cc7ea75 100644
--- a/gcc/config/i386/vx-common.h
+++ b/gcc/config/i386/vx-common.h
@@ -1,5 +1,5 @@
/* IA32 VxWorks and VxWorks AE target definitions.
- Copyright (C) 2007, 2008 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2008, 2010 Free Software Foundation, Inc.
This file is part of GCC.
@@ -20,7 +20,7 @@ along with GCC; see the file COPYING3. If not see
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
-/* VxWorks uses the same ABI as Solaris 10. */
+/* VxWorks uses the same ABI as Solaris 2. */
#define SUBTARGET_RETURN_IN_MEMORY(TYPE, FNTYPE) \
- ix86_sol10_return_in_memory (TYPE, FNTYPE)
+ ix86_solaris_return_in_memory (TYPE, FNTYPE)