This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PRs c/17178 and c/17820


Andrew Pinski <pinskia@physics.uc.edu> writes:

> When Zack committed one of his c-decl rewrites, he had forgot that
> the middle-end (toplev.c) already warned about static variables.
> The code in pop_scope in c-decl.c should take that into account and
> only warn on variables which are not in either the global or file
> scopes.
>
> OK? Bootstrapped and tested on powerpc-apple-darwin with no
> regressions.

This is OK.  I would kind-of rather that toplev.c didn't do this (on
the "all diagnostics are the responsibility of the front end"
principle), but that's presumably too big a change for right now.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]