This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Remove THUNK_DECLs
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: C++ PATCH: Remove THUNK_DECLs
- From: Jason Merrill <jason at cygnus dot com>
- Date: 03 May 2000 15:34:20 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20000503153601X.mitchell@codesourcery.com>
I don't think this is safe. The reason for using a THUNK_DECL in the first
place was because we wanted to store information in it that is wrong for a
FUNCTION_DECL:
DECL_INITIAL points to a FUNCTION_DECL, rather than a BLOCK.
THUNK_DELTA <=> DECL_FRAME_SIZE
THUNK_VCALL_OFFSET <=> DECL_SAVED_INSNS
The last sounds particularly dangerous. I would not be opposed to moving
this information into DECL_LANG_SPECIFIC, though.
Jason