aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2011-03-18 13:20:35 -0700
committerRichard Henderson <rth@gcc.gnu.org>2011-03-18 13:20:35 -0700
commit01956319b6863b0fc507039f50bbb2c5fd2234be (patch)
tree1c859447ac501eee39d35629bd73bbc9d9285373 /libcpp
parentef8623b378150fe2470f7791a81c91616b702600 (diff)
downloadgcc-01956319b6863b0fc507039f50bbb2c5fd2234be.zip
gcc-01956319b6863b0fc507039f50bbb2c5fd2234be.tar.gz
gcc-01956319b6863b0fc507039f50bbb2c5fd2234be.tar.bz2
re PR bootstrap/45381 (Bootstrap failure for powerpc-apple-darwin9: error: AltiVec argument passed to unprototyped function)
PR bootstrap/45381 * lex.c [ALTIVEC] (search_line_fast): Require gcc version 4.5. From-SVN: r171165
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/ChangeLog5
-rw-r--r--libcpp/lex.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index e90f753..6ef4788 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-18 Richard Henderson <rth@redhat.com>
+
+ PR bootstrap/45381
+ * lex.c [ALTIVEC] (search_line_fast): Require gcc version 4.5.
+
2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
Jakub Jelinek <jakub@redhat.com>
diff --git a/libcpp/lex.c b/libcpp/lex.c
index 5cd5686..c9b5c95 100644
--- a/libcpp/lex.c
+++ b/libcpp/lex.c
@@ -512,7 +512,7 @@ init_vectorized_lexer (void)
search_line_fast = impl;
}
-#elif defined(__GNUC__) && defined(__ALTIVEC__)
+#elif (GCC_VERSION >= 4005) && defined(__ALTIVEC__)
/* A vection of the fast scanner using AltiVec vectorized byte compares. */
/* ??? Unfortunately, attribute(target("altivec")) is not yet supported,