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
This commit is contained in:
parent
6de6b1ec5f
commit
53a103d304
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
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>
|
||||
|
||||
PR preprocessor/53229
|
||||
|
|
|
@ -590,10 +590,10 @@ 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];
|
||||
/* Statically assert that N is 2 or 4. */
|
||||
unsigned long l[(N == 2 || N == 4) ? N : -1];
|
||||
} u;
|
||||
unsigned long l, i = 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue