mirror of git://gcc.gnu.org/git/gcc.git
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
|
|
@ -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>
|
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)
|
||||||
{
|
{
|
||||||
#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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue