aboutsummaryrefslogtreecommitdiff
path: root/libffi/src/alpha/ffi.c
diff options
context:
space:
mode:
authorAnthony Green <green@gcc.gnu.org>2012-03-04 21:11:09 +0000
committerAnthony Green <green@gcc.gnu.org>2012-03-04 21:11:09 +0000
commit34fa7690ac66c6d3c5ddb1d35d267836e3c23f3d (patch)
tree3289bacfc83a97eaf50f42a61d0b9a06f4c76e9c /libffi/src/alpha/ffi.c
parent8b59af5c6af6e67e151b72e48074f58b677b2e42 (diff)
downloadgcc-34fa7690ac66c6d3c5ddb1d35d267836e3c23f3d.zip
gcc-34fa7690ac66c6d3c5ddb1d35d267836e3c23f3d.tar.gz
gcc-34fa7690ac66c6d3c5ddb1d35d267836e3c23f3d.tar.bz2
Merge upstream libffi
From-SVN: r184897
Diffstat (limited to 'libffi/src/alpha/ffi.c')
-rw-r--r--libffi/src/alpha/ffi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libffi/src/alpha/ffi.c b/libffi/src/alpha/ffi.c
index 8d6b2ba..192f691 100644
--- a/libffi/src/alpha/ffi.c
+++ b/libffi/src/alpha/ffi.c
@@ -1,5 +1,6 @@
/* -----------------------------------------------------------------------
- ffi.c - Copyright (c) 1998, 2001, 2007, 2008 Red Hat, Inc.
+ ffi.c - Copyright (c) 2012 Anthony Green
+ Copyright (c) 1998, 2001, 2007, 2008 Red Hat, Inc.
Alpha Foreign Function Interface
@@ -178,6 +179,9 @@ ffi_prep_closure_loc (ffi_closure* closure,
{
unsigned int *tramp;
+ if (cif->abi != FFI_OSF)
+ return FFI_BAD_ABI;
+
tramp = (unsigned int *) &closure->tramp[0];
tramp[0] = 0x47fb0401; /* mov $27,$1 */
tramp[1] = 0xa77b0010; /* ldq $27,16($27) */