This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C identifier lookup speedups, 2/2
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: zack at codesourcery dot com
- Cc: gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Fri, 30 May 2003 16:21:05 -0400 (EDT)
- Subject: Re: C identifier lookup speedups, 2/2
- References: <20030415.181339.74748927.kazu@cs.umass.edu><20030419.211138.48519017.kazu@cs.umass.edu><87y9259aq4.fsf@egil.codesourcery.com>
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