This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Liberating structs from memory
- To: Greg McGary <greg at mcgary dot org>
- Subject: Re: Liberating structs from memory
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 19 Aug 2000 09:21:25 -0600
- cc: gcc at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <ms1yzmrybm.fsf@mcgary.org>you write:
> I assume you refer to `x_whole_function_mode_p'. What, if anything,
> prevents us from doing this in the C front end today?
I'm not sure if the C front-end implementation is complete yet.
Stan/Jeff, care to comment?
> C++ front ends. The next natural choice is ObjC, but I'll leave that
> to someone who cares about it. I don't think BPs make sense for other
> languages.
Agreed.
> Wouldn't whole-function mode would conveniently solve this problem?
Yup. Or at least make it a whole lot simpler.
> We could determine if the struct needs to be in memory before we
> make its DECL_RTL, no?
I'm not sure precisely when we create the DECL_RTL in whole function
mode (I haven't studied whole function mode at all).
jeff