backport: PR testsuite/32843 (strikes again)

Backport from mainline:
	2009-09-17  Loren J. Rittle  <ljrittle@acm.org>

	PR testsuite/32843 (strikes again)
	src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
	enable proper extension on char and short.

From-SVN: r161048
This commit is contained in:
Gerald Pfeifer 2010-06-20 17:12:11 +00:00 committed by Gerald Pfeifer
parent 80c0c6229b
commit b4f7736037
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2010-06-20 Gerald Pfeifer <gerald@pfeifer.com>
Backport from mainline:
2009-09-17 Loren J. Rittle <ljrittle@acm.org>
PR testsuite/32843 (strikes again)
src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
enable proper extension on char and short.
2010-05-21 Jakub Jelinek <jakub@redhat.com>
* configure: Regenerate.

View File

@ -123,7 +123,7 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif)
#ifdef X86
case FFI_TYPE_STRUCT:
#endif
#if defined(X86) || defined(X86_DARWIN)
#if defined(X86) || defined(X86_DARWIN) || defined(X86_FREEBSD)
case FFI_TYPE_UINT8:
case FFI_TYPE_UINT16:
case FFI_TYPE_SINT8: