2009-06-04 Andrew Haley <aph@redhat.com>
* src/sh64/ffi.c: Remove lint directives. Was missing from merge of Andreas Tobler's patch from 2006-04-22.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-06-04 Andrew Haley <aph@redhat.com>
|
||||||
|
|
||||||
|
* src/sh64/ffi.c: Remove lint directives. Was missing from merge
|
||||||
|
of Andreas Tobler's patch from 2006-04-22.
|
||||||
|
|
||||||
2009-06-04 Andrew Haley <aph@redhat.com>
|
2009-06-04 Andrew Haley <aph@redhat.com>
|
||||||
|
|
||||||
* src/sh/ffi.c: Apply missing hunk from Alexandre Oliva's patch of
|
* src/sh/ffi.c: Apply missing hunk from Alexandre Oliva's patch of
|
||||||
|
|||||||
@@ -56,9 +56,7 @@ return_type (ffi_type *arg)
|
|||||||
/* ffi_prep_args is called by the assembly routine once stack space
|
/* ffi_prep_args is called by the assembly routine once stack space
|
||||||
has been allocated for the function's arguments */
|
has been allocated for the function's arguments */
|
||||||
|
|
||||||
/*@-exportheader@*/
|
|
||||||
void ffi_prep_args(char *stack, extended_cif *ecif)
|
void ffi_prep_args(char *stack, extended_cif *ecif)
|
||||||
/*@=exportheader@*/
|
|
||||||
{
|
{
|
||||||
register unsigned int i;
|
register unsigned int i;
|
||||||
register unsigned int avn;
|
register unsigned int avn;
|
||||||
@@ -270,9 +268,7 @@ void ffi_call(/*@dependent@*/ ffi_cif *cif,
|
|||||||
else if ((rvalue == NULL) &&
|
else if ((rvalue == NULL) &&
|
||||||
(cif->rtype->type == FFI_TYPE_STRUCT))
|
(cif->rtype->type == FFI_TYPE_STRUCT))
|
||||||
{
|
{
|
||||||
/*@-sysunrecog@*/
|
|
||||||
ecif.rvalue = alloca(cif->rtype->size);
|
ecif.rvalue = alloca(cif->rtype->size);
|
||||||
/*@=sysunrecog@*/
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ecif.rvalue = rvalue;
|
ecif.rvalue = rvalue;
|
||||||
@@ -280,10 +276,8 @@ void ffi_call(/*@dependent@*/ ffi_cif *cif,
|
|||||||
switch (cif->abi)
|
switch (cif->abi)
|
||||||
{
|
{
|
||||||
case FFI_SYSV:
|
case FFI_SYSV:
|
||||||
/*@-usedef@*/
|
ffi_call_SYSV(ffi_prep_args, &ecif, cif->bytes, cif->flags, cif->flags2,
|
||||||
ffi_call_SYSV(ffi_prep_args, &ecif, cif->bytes,
|
ecif.rvalue, fn);
|
||||||
cif->flags, cif->flags2, ecif.rvalue, fn);
|
|
||||||
/*@=usedef@*/
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
FFI_ASSERT(0);
|
FFI_ASSERT(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user