OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr40753.c] - Rev 774

Go to most recent revision | Compare with Previous | Blame | View Log

typedef struct {
    unsigned nargs;
} ffi_cif;
typedef struct {
    char tramp[24];
    ffi_cif *cif;
} ffi_closure;
extern void *memcpy (void *, const void *, __SIZE_TYPE__);
extern void ffi_closure_LINUX64 (void);
 
int
ffi_prep_closure_loc (ffi_closure *closure, ffi_cif *cif)
{
  void **tramp = (void **) &closure->tramp[0];
 
  memcpy (tramp, (char *) ffi_closure_LINUX64, 16);
  closure->cif = cif;
 
  return 0;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.