--- Begin Message ---
- From: Dodji Seketeli <dodji at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>, Tom Tromey <tromey at redhat dot com>
- Cc: "Dominique d'Humieres" <dominiq at lps dot ens dot fr>
- Date: Thu, 24 May 2012 23:05:12 +0200
- Subject: [PATCH] PR bootstrap/53459 - unused local typedef when building on altivec
- Organization: Red Hat / France
Hello,
When building the compiler on altivec, it appears that an unused local
typedef is lurking in a function of libcpp, breaking bootstrap since now
-Wunused-local-typedefs is activated by -Wall.
The reason why I haven't seen this on x86_64-unknown-linux-gnu is that
the culprit function here is preceded by the directive:
#elif (GCC_VERSION >= 4005) && defined(__ALTIVEC__)
Bootstrapped and tested against trunk on x86_64-unknown-linux-gnu and by
Dominique on altivec, as he stated in the audit trail.
I am applying this to trunk as obvious.
libcpp/
PR bootstrap/53459
* lex.c (search_line_fast): Remove unused typedef check_count.
---
libcpp/ChangeLog | 5 +++++
libcpp/lex.c | 1 -
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/libcpp/lex.c b/libcpp/lex.c
index c4dd603..2ebbee9 100644
--- a/libcpp/lex.c
+++ b/libcpp/lex.c
@@ -590,7 +590,6 @@ search_line_fast (const uchar *s, const uchar *end ATTRIBUTE_UNUSED)
{
#define N (sizeof(vc) / sizeof(long))
- typedef char check_count[(N == 2 || N == 4) * 2 - 1];
union {
vc v;
unsigned long l[N];
--
Dodji
--- End Message ---