[patch] tree-ssa.c: Fix PR tree-optimization/17506.

Andrew Pinski pinskia@physics.uc.edu
Mon Aug 28 11:46:00 GMT 2006


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



More information about the Gcc-patches mailing list