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]

Re: Liberating structs from memory


  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


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