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: [PATCH] Dispose of non-gimplifier users of is_gimple_tmp_var


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~


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