mirror of git://gcc.gnu.org/git/gcc.git
Support empty structs in gengtype
gcc/ * gengtype-parse.c (struct_field_seq): Support empty structs. From-SVN: r204411
This commit is contained in:
parent
4b632a0635
commit
c180e49596
|
|
@ -1,3 +1,7 @@
|
||||||
|
2013-11-05 David Malcolm <dmalcolm@redhat.com>
|
||||||
|
|
||||||
|
* gengtype-parse.c (struct_field_seq): Support empty structs.
|
||||||
|
|
||||||
2013-11-05 Uros Bizjak <ubizjak@gmail.com>
|
2013-11-05 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
* config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
|
* config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
|
||||||
|
|
|
||||||
|
|
@ -730,7 +730,7 @@ declarator (type_p ty, const char **namep, options_p *optsp,
|
||||||
(
|
(
|
||||||
type bitfield ';'
|
type bitfield ';'
|
||||||
| type declarator bitfield? ( ',' declarator bitfield? )+ ';'
|
| type declarator bitfield? ( ',' declarator bitfield? )+ ';'
|
||||||
)+
|
)*
|
||||||
|
|
||||||
Knows that such declarations must end with a close brace (or,
|
Knows that such declarations must end with a close brace (or,
|
||||||
erroneously, at EOF).
|
erroneously, at EOF).
|
||||||
|
|
@ -744,7 +744,7 @@ struct_field_seq (void)
|
||||||
const char *name;
|
const char *name;
|
||||||
bool another;
|
bool another;
|
||||||
|
|
||||||
do
|
while (token () != '}' && token () != EOF_TOKEN)
|
||||||
{
|
{
|
||||||
ty = type (&opts, true);
|
ty = type (&opts, true);
|
||||||
|
|
||||||
|
|
@ -787,7 +787,6 @@ struct_field_seq (void)
|
||||||
}
|
}
|
||||||
while (another);
|
while (another);
|
||||||
}
|
}
|
||||||
while (token () != '}' && token () != EOF_TOKEN);
|
|
||||||
return nreverse_pairs (f);
|
return nreverse_pairs (f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue