This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Successful build of gcc3.0 on alphaev56-dec-osf5.1
- To: <grote at gsf dot de>
- Subject: Re: Successful build of gcc3.0 on alphaev56-dec-osf5.1
- From: "Anthony Green" <green at redhat dot com>
- Date: Sat, 23 Jun 2001 22:59:28 -0700
- Cc: "Gcc-Patches at Gcc dot Gnu. Org" <gcc-patches at gcc dot gnu dot org>
- References: <200106200805.KAA0000087950@ariane.gsf.de> <20010623200835.A25832@superman.il.thewrittenword.com>
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;
}