This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: s390x ffi_closure_helper_SYSV


>>>>> "Ulrich" == Ulrich Weigand <uweigand-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org> writes:

Ulrich> While this is not explicitly mentioned in the closure docs, the
Ulrich> code makes the assumption that this is handled likewise for closure
Ulrich> return values.  This is also explicitly checked for in the libffi
Ulrich> test suite, e.g. testsuite/libffi.call/cls_sshort.c

Actually the closure docs are actively wrong right now.
I didn't realize this same widening behavior applied to closures (in
fact I thought I asked about this and got the answer I documented, but I
can't find the email, so it was probably just my error).

I sent a github PR to correct the closure documentation.

Tom


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