]> git.ipfire.org Git - thirdparty/gcc.git/commit
ffi.c (ffi_prep_closure): Set T bit in trampoline for the function returning a struct...
authorKaz Kojima <kkojima@gcc.gnu.org>
Mon, 18 Oct 2004 23:12:20 +0000 (23:12 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Mon, 18 Oct 2004 23:12:20 +0000 (23:12 +0000)
commite0d3b4528fc87c1f8fdc2d192792ea04357c2a81
tree6a90fff0d98e1f820d76cddbb673731dabd362ed
parent6e7a355c164ab9adb03365f83f864b8e2c201c23
ffi.c (ffi_prep_closure): Set T bit in trampoline for the function returning a structure pointed with R2.

* src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
the function returning a structure pointed with R2.
* src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
the structure return value if T bit set.  Emit position
independent code and EH data if PIC.

From-SVN: r89254
libffi/ChangeLog
libffi/src/sh/ffi.c
libffi/src/sh/sysv.S