mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 07:18:49 +01:00
[taken from gcc-2.95.3-latest-cvs]
fix bug with __extension__ in pedantic mode. git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9586 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c2c76c0b34
commit
0933b55616
@ -965,6 +965,15 @@ split_specs_attrs (specs_attrs, declspecs, prefix_attributes)
|
||||
{
|
||||
tree t, s, a, next, specs, attrs;
|
||||
|
||||
/* This can happen after an __extension__ in pedantic mode. */
|
||||
if (specs_attrs != NULL_TREE
|
||||
&& TREE_CODE (specs_attrs) == INTEGER_CST)
|
||||
{
|
||||
*declspecs = NULL_TREE;
|
||||
*prefix_attributes = NULL_TREE;
|
||||
return;
|
||||
}
|
||||
|
||||
/* This can happen in c++ (eg: decl: typespec initdecls ';'). */
|
||||
if (specs_attrs != NULL_TREE
|
||||
&& TREE_CODE (specs_attrs) != TREE_LIST)
|
||||
|
Loading…
Reference in New Issue
Block a user