This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Dispose of non-gimplifier users of is_gimple_tmp_var
- From: Richard Henderson <rth at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 16 Aug 2004 16:03:24 -0700
- Subject: Re: [PATCH] Dispose of non-gimplifier users of is_gimple_tmp_var
- References: <10408162230.AA05172@vlsi1.ultra.nyu.edu>
On Mon, Aug 16, 2004 at 06:30:56PM -0400, Richard Kenner wrote:
> I suppose the copyrename/ssa partitioning checks could look for
> DECL_IGNORED_P instead, since that's the bit that says that we
> don't want debug information for the decl.
>
> What distinction are you making between DECL_ARTIFICIAL and DECL_IGNORED_P?
Exactly what's documented:
/* Used to indicate that this DECL represents a compiler-generated entity. */
#define DECL_ARTIFICIAL(NODE) (DECL_CHECK (NODE)->decl.artificial_flag)
/* Nonzero if a _DECL means that the name of this decl should be ignored
for symbolic debug purposes. */
#define DECL_IGNORED_P(NODE) (DECL_CHECK (NODE)->decl.ignored_flag)
For example, the C++ "this" keyword refers to a pointer variable
that is created by the language, not the user, so DECL_ARTIFICIAL
is set. But we definitely do want to be able to ask gdb the value
of "this", so DECL_IGNORED_P is clear.
r~