This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Java: Decls that alias?
- From: Andrew Haley <aph at redhat dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Fri, 12 Sep 2003 14:50:01 +0100
- Subject: [tree-ssa] Java: Decls that alias?
In the Java byte compiler we can have temporaries that change name.
This is because all accesses to local variables are by stack slot
number, but debugging information may assign different variable names
to the same slot at different positions in the code. However,
according to the semantics of the virual machine there is only the one
variable.
In the mainline compiler we handle this by sharing RTL between
multiple decls; this has exactly the effect we want. But how is it
possible to do this in GIMPLE? Is there a way to alias two local
variable declarations?
Andrew.