This is the mail archive of the gcc-patches@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: [PATCH] Don't abort in C++ emit_local_var



Jakub --

  I'm sort-of unhappy about this patch.  It really is odd to have
emit_local_var being called more than once.  That assert has turned up
a lot of bugs.

  I'm not at all confident that your change is safe.  Is there any
guarantee that the stack slots allocated to the local are still valid?
Won't they have been marked as going out of scope by that point?

  I think the sibling call stuff should punt if encounters any
DECL_STMTs inside the arguments to the call, instead.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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