This is the mail archive of the gcc-patches@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++ PATCH: Remove THUNK_DECLs


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

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