https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109788
--- Comment #10 from anlauf at gcc dot gnu.org --- Can you tell whether you see other intrinsics with bad FUNCTION_TYPE? E.g. if we have a similar issue with pack_char or pack_s_char? In that case I have a vague idea why it happens, but do not yet know how to solve this. Regarding the prototype fix: would it be ok if we add an __attribute__((unused)) to the affected-but-unused arguments, as that is already there for the actual implementation? And would that make a difference for the ABI?