This is the mail archive of the
mailing list for the GDB project.
Re: Borland fastcall support (i386)
>>>>> "Jonas" == Jonas Maebe <firstname.lastname@example.org> writes:
Tom> I recently noticed that the src and gcc versions of this file have
Tom> diverged. Oops. It would be good to have just a single copy; most of
Tom> the work to be done here is in the gcc repository.
Jonas> I've submitted the patch to gcc-patches.
Actually, I was hoping for something more like a merge of the two
copies of dwarf2.h. Don't feel obligated to do this, though; the
problem predates your patch.
Jonas> Is there a problem with moving the calling_convention field out
Jonas> of the type_specific union, and if not, is there anything I
Jonas> should pay particular attention to? (other than adjusting a
Jonas> couple of macros)
ISTR that the type-related structures are (supposedly) space
sensitive. But, according to pahole, there are some free bits in
struct main_type. So, I would suggest packing the field in there.
Aside from that I don't know of any reason it might be a problem.