This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C++ tree inlining bug with dynamic arrays
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: C++ tree inlining bug with dynamic arrays
- From: Jim Wilson <wilson at cygnus dot com>
- Date: Tue, 25 Jan 2000 18:09:30 -0800
- cc: gcc-bugs at gcc dot gnu dot org
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