This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Remove THUNK_DECLs
>>>>> "Jason" == Jason Merrill <jason@cygnus.com> writes:
Jason> I don't think this is safe. The reason for using a
When we hand thunks to the back-end for emission, in the generic
thunks case, all of these things have to be right anyhow.
The points you raise are, however, quite scary. There are indeed
other cases where there could be trouble.
I think we have no pleasant choice. I don't relish trying to teach
the back-end about THUNK_DECLs, either explicitly or via hooks in
`staticp' and all similar functions.
I will think about this. I would welcome patches/suggestions. And,
of course, I'll fix any bug reports that relate to this.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com