Patchwork PATCH: Fix bootstrap for powerpc

login
register
mail settings
Submitter H.J. Lu
Date Sept. 15, 2010, 5:37 a.m.
Message ID <20100915053738.GA21572@intel.com>
Download mbox | patch
Permalink /patch/64776/
State New
Headers show

Comments

H.J. Lu - Sept. 15, 2010, 5:37 a.m.
On Tue, Sep 14, 2010 at 03:42:14PM -0700, H.J. Lu wrote:
> I missed TARGET_VECTORIZE_UNITS_PER_SIMD_WORD for powerpc.  I checked
> in this patch as an obvious fix.
> 

Checked in this to fix return type.


H.J.
---

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0bdcf13..59b59bd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@ 
+2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR bootstrap/45672
+	* config/mips/mips.c (mips_units_per_simd_word): Correct return
+	type.
+	* config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
+	* config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
+
 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
 
 	* c-lang.h (struct lang_type): Add variable_size GTY option.
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 945ee42..d26990e 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -11142,7 +11142,7 @@  mips_scalar_mode_supported_p (enum machine_mode mode)
 
 /* Implement TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.  */
 
-static bool
+static unsigned int
 mips_units_per_simd_word (enum machine_mode mode ATTRIBUTE_UNUSED)
 {
   return TARGET_PAIRED_SINGLE_FLOAT ? 8 : UNITS_PER_WORD;
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 713811b..f557dba 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -1085,7 +1085,7 @@  static bool rs6000_builtin_support_vector_misalignment (enum
 							int, bool);
 static int rs6000_builtin_vectorization_cost (enum vect_cost_for_stmt,
                                               tree, int);
-static int rs6000_units_per_simd_word (enum machine_mode);
+static unsigned int rs6000_units_per_simd_word (enum machine_mode);
 
 static void def_builtin (int, const char *, tree, int);
 static bool rs6000_vector_alignment_reachable (const_tree, bool);
@@ -3576,7 +3576,7 @@  rs6000_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost,
 
 /* Implement targetm.vectorize.units_per_simd_word.  */
 
-static int
+static unsigned int
 rs6000_units_per_simd_word (enum machine_mode mode ATTRIBUTE_UNUSED)
 {
   return (TARGET_VSX ? UNITS_PER_VSX_WORD
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index 71c94e1..f9d4a90 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -434,7 +434,7 @@  static bool sparc_can_eliminate (const int, const int);
 static const char *sparc_mangle_type (const_tree);
 #endif
 static void sparc_trampoline_init (rtx, tree, rtx);
-static bool sparc_units_per_simd_word (enum machine_mode);
+static unsigned int sparc_units_per_simd_word (enum machine_mode);
 
 #ifdef SUBTARGET_ATTRIBUTE_TABLE
 /* Table of valid machine attributes.  */
@@ -6239,7 +6239,7 @@  sparc_vector_mode_supported_p (enum machine_mode mode)
 
 /* Implement the TARGET_VECTORIZE_UNITS_PER_SIMD_WORD target hook.  */
 
-static bool
+static unsigned int
 sparc_units_per_simd_word (enum machine_mode mode ATTRIBUTE_UNUSED)
 {
   return TARGET_VIS ? 8 : UNITS_PER_WORD;