This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Fix variables getting out of their scope
- From: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Diego Novillo <dnovillo at redhat dot com>,Zdenek Dvorak <rakdver at kam dot mff dot cuni dot cz>,"gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 13 Aug 2003 19:19:09 +0200
- Subject: Re: [tree-ssa] Fix variables getting out of their scope
- References: <20030810203732.GA27897@kam.mff.cuni.cz> <1060773437.3156.48.camel@frodo.toronto.redhat.com> <wvlisp1prkd.fsf@prospero.boston.redhat.com>
Hello,
> >> + /* ??? Not sure why, but it makes dwarf2out happy. */
> >> + DECL_ABSTRACT_ORIGIN (var) = NULL_TREE;
> >>
> > Could you find out? What happens if DECL_ABSTRACT_ORIGIN(var) was not
> > NULL to begin with?
>
> DECL_ABSTRACT_ORIGIN failures are usually caused by failing to emit debug
> info for the original variable, so when we go to refer to it from an
> inlined copy we can't find it.
yes, it seems like the problem, although I still am not really sure why
it occurs. The variable is declared in the outer scope, so why is
there a problem with finding it?
Zdenek