This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Fix bootstrap for powerpc
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 14 Sep 2010 15:42:14 -0700
- Subject: PATCH: Fix bootstrap for powerpc
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
I missed TARGET_VECTORIZE_UNITS_PER_SIMD_WORD for powerpc. I checked
in this patch as an obvious fix.
H.J.
---
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