[PATCH][C] Fix PR47939
Joseph S. Myers
joseph@codesourcery.com
Fri Mar 18 18:39:00 GMT 2011
On Fri, 18 Mar 2011, Richard Guenther wrote:
> > What I think is safe in grokdeclarator is using TYPE_MAIN_VARIANT here if
> > *either* the type given in the declaration specifiers is an array type
> > (TREE_CODE (type) == ARRAY_TYPE, as in your previous patch) *or* the first
> > declarator that is not cdk_attrs is cdk_array (as in this version, but
> > checking through a chain of declarator->declarator to find a possible
> > cdk_array after a sequence of cdk_attrs).
> >
> > (Aside from all this it is a longstanding known bug that the debug
> > information for arrays of qualified types isn't quite right: PR 8354.)
>
> Ok, the following works for me.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, ok for trunk?
This patch version is OK.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list