This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Successful build of gcc3.0 on alphaev56-dec-osf5.1


Albert wrote:
> as0: Error: ../../../libffi/src/alpha/ffi.c, line 6: undefined
> assembler operation: imb
>       imb
> gmake[4]: *** [src/alpha/ffi.lo] Error 1

Can you try the following patch? (suggested by rth)

2001-06-23  Anthony Green  <green@redhat.com>

       * src/alpha/ffi.c (ffi_prep_closure): change icache flush
instruction.

 Index: libffi//src/alpha/ffi.c
===================================================================
RCS file: /cvs/gcc/gcc/libffi/src/alpha/ffi.c,v
retrieving revision 1.4
diff -u -p -r1.4 ffi.c
--- ffi.c       2001/03/02 22:21:22     1.4
+++ ffi.c       2001/06/24 05:45:33
@@ -167,7 +167,7 @@ ffi_prep_closure (ffi_closure* closure,
   closure->user_data = user_data;

   /* Flush the Icache.  */
-  asm volatile ("imb" : : : "memory");
+  asm volatile ("call_pal 0x86" : : : "memory");

   return FFI_OK;
 }



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]