This is the mail archive of the gcc-bugs@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: C++ tree inlining bug with dynamic arrays


	 Why did this not cause
	a problem with the old inliner?  Presumably because nobody ever looked
	hard at the SAVE_EXPR for the type, right?  In other words, the
	inline'd decl was bogus (just as it is now), but nobody cared?

That is what it looks like to me.  The only code that seems to care about
SAVE_EXPR context is expand_expr, and that code is not a problem if function
inlining is done after trees are converted to RTL.

I'll finish the patch I started, test it with a cygwin build, and send it
to gcc-patches.

Jim


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