This is the mail archive of the gcc@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: [tree-ssa] How to make DECLs that alias


On Tue, Nov 18, 2003 at 08:09:05PM -0800, Per Bothner wrote:
> Could we use whatever mechanism C++ references use?

Probably not.

> I.e. suppose bytecode verification gives us that local variable
> number 4 has type int (within a region of interest).  We later
> see variable declarations "x" and "y" that map to slot 4.
> 
> Then represent this as:
>   jint __local_4_as_int;
>   jint& x = __local_4_as_int;
>   jint& y = __local_4_as_int;

If the only thing you're interested in is debugging info, then
we can invent something to mean "alias this other decl".  That's
much harder for the optimizers.


r~


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