This is the mail archive of the
mailing list for the GCC project.
Re: [C++ patch] Fix thunk emitting code
> Jan Hubicka wrote:
> >While trying to save memory, tree-optimize release DECL_ARGUMENTS list.
> >breaks C++ frontend that still needs argument list to produce thunks. This
> >happens to worky only because we don't release the memory when inlining
> >due to
> >bug, but passing -fno-inline causes several testsuite faiulres.
> >I am going to fix the tree-optimize bug next, so this will reproduce
> >more easilly then.
> >OK for mainline/branch?
> I'd meant to look at that for another reason -- the thunks should come
> before the function so that they are more likely to be on the same page
> as the function to which control is being transferred.
This looks like good reason too. Once unit-at-a-time code is told more
about sane functions orderings, it would be nice to have them being
"usual" functions visible to cgraph rather than something emit on the
> Mark Mitchell
> CodeSourcery, LLC
> (916) 791-8304