This is the mail archive of the
mailing list for the GCC project.
Re: SRA and DECL_ABSTRACT_ORIGIN
"Giovanni Bajo" <firstname.lastname@example.org> writes:
| Gabriel Dos Reis <email@example.com> wrote:
| >> Someone else was talking about this the other day on IRC and I
| >> told them how I'd like it solved.
| > I do not follow IRC sessions. Could you outline your plan again?
| The plan is to store a backpointer to the original decl within the generated
| SRA variable, and use it for diagnostic purposes.
Aha, this is what I was meaning to do with DECL_ABSTRACT_ORIGIN (but
RTH suggested it would not be apporpriate).
| For instance, in the case of
| "a$i" we would be storing a pointer to the original INDIRECT_REF from which the
| scalarized version was created. This is similar to what DannyB did with his
| DECL_DEBUG_ALIAS_OF (http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01883.html)
| but I think vindex isn't free in all the entities SRA generates.