public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* DECL_SAVED_INSNS vs. tree inliner
@ 2003-05-13 21:31 Steven Bosscher
  0 siblings, 0 replies; only message in thread
From: Steven Bosscher @ 2003-05-13 21:31 UTC (permalink / raw)
  To: gcc

Hi,

When I was looking at flag_inline_trees (which should go away) and
flag_inline_functions, I stumbled upon DECL_SAVED_INSNS.  I would expect
that the thing that this macro points to is _always_ equal to zero for C
and C++.  Indeed, in C++ there is this assertion:

  /* In C++, we should never be saving RTL for the function.  */
  my_friendly_assert (!DECL_SAVED_INSNS (fn), 20010903);

But in c-decl and c-semantics, this macro is still used.  Apparently
this is related to nested functions but I don't quite understand how,
and I couldn't figure it out from the code.

So my question is, should DECL_SAVED_INSNS alwasy be equal zero if the
tree inliner is used?  If not, why?

This is relevant because _if_ this macro should be zero, then we can
fold the saved_tree member of tree_decl in the decl_u2 union once the
uses_rtl_inliner langhook is in place.

Thanks,
Steven


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-13 21:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-13 21:31 DECL_SAVED_INSNS vs. tree inliner Steven Bosscher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).