[ast-optimizer-branch]: Make simplified variable names have descriptive prefix
Daniel Jacobowitz
drow@mvista.com
Tue Jun 18 13:28:00 GMT 2002
On Tue, Jun 18, 2002 at 04:16:55PM -0400, Daniel Berlin wrote:
> On 18 Jun 2002, Diego Novillo wrote:
>
> > On Tue, 2002-06-18 at 16:02, Daniel Berlin wrote:
> >
> > > But it just doesn't sit well when every other use of the one in toplev.c
> > > is for stripping endings off filenames, and we want to strip the ending
> > > off a variable.
> > >
> > OK, I see your point. I'll just rename the function.
> >
> > > Otherwise, if you assign temporary T.105 to a new temp, it'll decide the
> > > prefix is T.105, rather than T, and you'll get "T.105.106" as your
> > > variable name.
> > >
> > Exactly. Meaning that the 106th temp came from the 105th temporary.
> > But I don't really want to do that. If we allow prefixes to grow, we'll
> > end up with horrific names that will only clutter the output.
>
> Yup.
> It sounds like a good idea at first, but I think it was something like
> "T.105.100.99.34.12" that changed my mind.
Down this road is "my whole program is in the name of the last
temporary". Surely that's a WONDERFUL idea!
</sarcastic>
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
More information about the Gcc-patches
mailing list