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: C identifier lookup speedups, 2/2


Hi Zack,

> > Here is a testcase, simplified from compile/920625-1.c
> >
> > /* h8300-hms-gcc -O0 -g compile/920625-1.c */
> >
> > inline
> > foo ()
> > {
> >   {
> >     bar ();
> >   }
> > }
> >
> > bar ()
> > {
> > }
> >
> > Here is what seems to be happening:
> >
> > Somehow the inner scope of foo() is associated with a FUNCTION_DECL of
> > bar() even though the actual body of bar() is outside foo().
> >
> > While writing out assembly code for foo() during the final phase,
> > scope_to_insns_finalize() puts NOTE_INSN_BLOCK_BEG right before the
> > call to bar().
> 
> Aw crud.  I know what's wrong.  I will not have time to fix it
> until middle of next week, and the fix will be a lot of work, but I
> will eventually fix it.

Do you have any progress on this?  I'm glad to test a patch if you
come up with one.

Thanks,

Kazu Hirata


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