> Thanks for the patch. I'm a bit concerned about the interaction this > will have with microMIPS which can (albeit not implemented today) use > 2-byte alignment on function entry points. > > Is the solution for other targets to mandate 4-byte alignment when > using function descriptors?
Yes, the compiler will overalign functions for languages using descriptors (only Ada as of this writing): 2-byte alignment if the setting is 1, 4-byte alignment if the setting is 2, 8-byte alignment if the setting is 4, etc. That's done by the FUNCTION_ALIGNMENT macro defined in defaults.h. > If so then I don't see a problem with this. We will have to account for > that when GCC allows 2-byte aligned microMIPS functions. OK, thanks. -- Eric Botcazou