diff options
author | Anthony Green <green@moxielogic.com> | 2012-03-19 23:07:35 -0400 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2012-03-19 23:07:35 -0400 |
commit | 84d3253f86dad6b4f261231935675d35fd964b05 (patch) | |
tree | 7f6c2c97f595b907c38953b1e797954d7d16d457 /src/sh/ffi.c | |
parent | 964c5b93f80dcaacf73056b7d15a4d2b4b7a217c (diff) | |
download | libffi-84d3253f86dad6b4f261231935675d35fd964b05.tar.gz |
Rebase post GCC merge
Diffstat (limited to 'src/sh/ffi.c')
-rw-r--r-- | src/sh/ffi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sh/ffi.c b/src/sh/ffi.c index 69bd025..3515b91 100644 --- a/src/sh/ffi.c +++ b/src/sh/ffi.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------- - ffi.c - Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Kaz Kojima + ffi.c - Copyright (c) 2002-2008, 2012 Kaz Kojima Copyright (c) 2008 Red Hat, Inc. SuperH Foreign Function Interface @@ -463,7 +463,8 @@ ffi_prep_closure_loc (ffi_closure* closure, unsigned int *tramp; unsigned int insn; - FFI_ASSERT (cif->abi == FFI_GCC_SYSV); + if (cif->abi != FFI_SYSV) + return FFI_BAD_ABI; tramp = (unsigned int *) &closure->tramp[0]; /* Set T bit if the function returns a struct pointed with R2. */ |