summaryrefslogtreecommitdiff
path: root/libffi/src/xtensa/ffi.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-08-31 07:14:47 -0700
committerH.J. Lu <hjl.tools@gmail.com>2021-10-20 05:35:52 -0700
commit92456a4e5658e138e2cea79e390e3306b07685b0 (patch)
tree6ef878e933b504a902035f1ae89510fde96a976d /libffi/src/xtensa/ffi.c
parentd738405e7fe62cc8eb9580948a6ea39005cd7170 (diff)
downloadgcc-92456a4e5658e138e2cea79e390e3306b07685b0.tar.gz
libffi: Sync with libffi 3.4.2
Merged commit: f9ea41683444ebe11cfa45b05223899764df28fb
Diffstat (limited to 'libffi/src/xtensa/ffi.c')
-rw-r--r--libffi/src/xtensa/ffi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libffi/src/xtensa/ffi.c b/libffi/src/xtensa/ffi.c
index fd94dafbe30..9a0575ff90d 100644
--- a/libffi/src/xtensa/ffi.c
+++ b/libffi/src/xtensa/ffi.c
@@ -89,7 +89,7 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif)
/* Round the stack up to a full 4 register frame, just in case
(we use this size in movsp). This way, it's also a multiple of
8 bytes for 64-bit arguments. */
- cif->bytes = ALIGN(cif->bytes, 16);
+ cif->bytes = FFI_ALIGN(cif->bytes, 16);
return FFI_OK;
}
@@ -205,7 +205,7 @@ void ffi_call(ffi_cif* cif, void(*fn)(void), void *rvalue, void **avalue)
if (flags == FFI_TYPE_STRUCT && (rsize <= 16 || rvalue == NULL))
{
- alloc = alloca(ALIGN(rsize, 4));
+ alloc = alloca(FFI_ALIGN(rsize, 4));
ecif.rvalue = alloc;
}
else