On Thu, Jun 12, 2025 at 09:21:38PM -0500, Robert Dubner wrote:
> It occurs to me that with 500 or so messages a day coming through, perhaps
> targeting individuals might be useful.
> 
> Consider this somewhere between an initial message and a ping:
> 
> -----Original Message-----
> From: Robert Dubner <rdub...@symas.com> 
> Sent: Monday, June 9, 2025 19:19
> To: gcc-patches@gcc.gnu.org
> Subject: [PATCH] gcc: Make int n_infiles local to gcc.cc.
> 
> In the course of stamping out cppcheck warnings, we ran across a complaint
> about a "shadowed variable."
> 
> It turns out that a variable declared in gcc/gcc/h as "extern int
> n_infiles;" is used only locally in gcc/gcc/cc.
> 
> This change makes that variable "static int n_infiles;" in gcc/gcc.cc.
> 
> Okay for trunk?

This was exported in r0-35168 for the uses in jvspec.c (part of gcj driver).
We don't have the Java FE anymore, so this change is ok for trunk.

You could also remove outfiles export and make outfiles static, or I can do
that incrementally.

        Jakub

Reply via email to