Commit 53a103d3 by Dodji Seketeli Committed by Dodji Seketeli

PR bootstrap/53459 - unused local typedef when building on altivec

	PR bootstrap/53459
	* lex.c (search_line_fast): Avoid unused local typedefs to simulate
	a static assertion.

From-SVN: r187947
parent 6de6b1ec
2012-05-25 Dodji Seketeli <dodji@redhat.com>
PR bootstrap/53459
* lex.c (search_line_fast): Avoid unused local typedefs to simulate
a static assertion.
2012-05-29 Dodji Seketeli <dodji@redhat.com> 2012-05-29 Dodji Seketeli <dodji@redhat.com>
PR preprocessor/53229 PR preprocessor/53229
......
...@@ -590,10 +590,10 @@ search_line_fast (const uchar *s, const uchar *end ATTRIBUTE_UNUSED) ...@@ -590,10 +590,10 @@ search_line_fast (const uchar *s, const uchar *end ATTRIBUTE_UNUSED)
{ {
#define N (sizeof(vc) / sizeof(long)) #define N (sizeof(vc) / sizeof(long))
typedef char check_count[(N == 2 || N == 4) * 2 - 1];
union { union {
vc v; vc v;
unsigned long l[N]; /* Statically assert that N is 2 or 4. */
unsigned long l[(N == 2 || N == 4) ? N : -1];
} u; } u;
unsigned long l, i = 0; unsigned long l, i = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment