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] tree-ssa.c: Fix PR tree-optimization/17506.


On Sun, 2006-08-27 at 23:54 -0700, Andrew Pinski wrote:
> On Sun, 2006-08-27 at 22:20 -0700, Kazu Hirata wrote:
> > +  fun_locus = &DECL_SOURCE_LOCATION(cfun->decl);
> > +  if (locus->file != fun_locus->file
> > +      || locus->line < fun_locus->line
> > +      || locus->line > cfun->function_end_locus.line)
> > +    inform ("%J%qD was declared here", var, var);
> 
> I don't think this will work with nested functions, take the following
> example:

Plus this will produce the "note" when doing
#include inside a function which might not be something we want.

-- Pinski


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