Patchwork PATCH: Fix bootstrap for powerpc

login
register
mail settings
Submitter H.J. Lu
Date Sept. 14, 2010, 10:42 p.m.
Message ID <20100914224214.GA31295@intel.com>
Download mbox | patch
Permalink /patch/64762/
State New
Headers show

Comments

H.J. Lu - Sept. 14, 2010, 10:42 p.m.
I missed TARGET_VECTORIZE_UNITS_PER_SIMD_WORD for powerpc.  I checked
in this patch as an obvious fix.


H.J.
---

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 164288)
+++ ChangeLog	(working copy)
@@ -1,5 +1,10 @@ 
 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
 
+	PR bootstrap/45672
+	* config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
+
+2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* config/i386/i386.c (ix86_lea_for_add_ok): Return false if
 	result isn't used in memory address.
 
Index: config/rs6000/rs6000.c
===================================================================
--- config/rs6000/rs6000.c	(revision 164288)
+++ config/rs6000/rs6000.c	(working copy)
@@ -1085,6 +1085,7 @@  static bool rs6000_builtin_support_vecto
 							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 void def_builtin (int, const char *, tree, int);
 static bool rs6000_vector_alignment_reachable (const_tree, bool);
@@ -1485,6 +1486,9 @@  static const struct attribute_spec rs600
 #undef TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST
 #define TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST \
   rs6000_builtin_vectorization_cost
+#undef TARGET_VECTORIZE_UNITS_PER_SIMD_WORD
+#define TARGET_VECTORIZE_UNITS_PER_SIMD_WORD \
+  rs6000_units_per_simd_word
 
 #undef TARGET_INIT_BUILTINS
 #define TARGET_INIT_BUILTINS rs6000_init_builtins