I initially forgot to add the gcc-patches list in CC, and tried
unsuccessfully to bounce the message to the list. I am thus forwarding
it now.
--- Begin Message ---
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 ---
--
Dodji