This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
SRA and DECL_ABSTRACT_ORIGIN
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: gcc at gcc dot gnu dot org
- Cc: dnovillo at redhat dot com, rth at redhat dot com
- Date: 01 Jan 2005 13:36:43 +0100
- Subject: SRA and DECL_ABSTRACT_ORIGIN
- Organization: Integrable Solutions
Hi,
I've been investigating PRs related to some cryptic names, for _DECL
coming from scalarization, used in diagnostics.
A question I have is why DECL_ABSTRACT_ORIGIN is not set for
"temporaries" created for the purpose of scalar replacement of
aggregates. I would think that is an obvious thing to do. Why is it
not done?
Next. If I understand correctly, the purpose of creating names for those
_DECLs coming from SRA, is to be able to emit them in assembly file; is
that correct? User does not write 'SR.4934743' or 'a$i' in his code.
User has 'b[57].c' or 'a.i' in his code.
We should just pretty-print expressions designating those objects.
We have code to do that. Why was it decided to do otherwise?
(I'm trying to understand why the code in tree-sra.c is the way it
is).
-- Gaby