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: Where's the Steengaard stuff supposed to go?


On Sunday 21 July 2002 6:30 pm, Steven Bosscher wrote:
> Op zo 21-07-2002, om 18:15 schreef Daniel Berlin:
> > I'm kinda debating whether create_tmp_alias_var (and create_tmp_var, for
> > that matter), are language independent enough that they should be in
> > tree-simple.c.  You tell me.
>
> We use a copy of create_tmp_var() from c-simplify.c, but I'm not sure if
> it does everything we need. Maybe we need to write our own, but I'm not
> sure... I know we don't use this function for temporary arrays, because
> we sometimes need to put those on the heap instead of the stack.
>
> My bet would be that it can be language independent, Paul what do you
> think?

Yes, I think it would make sense to have it in tree-simple.c. However I do use 
the function for fixed size array temporaries, so shomething would have to be 
done about the TREE_CODE == ARRAY_TYPE...abort(),  preferably remove it.
Other than that the F95 implementation is identical to the C one.

Is there any reason why create_tmp_var doesn't just call create_tmp_alias_var?

Paul Brook


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