Commit 92a0e6c6 by Rainer Orth Committed by Rainer Orth

re PR bootstrap/3563 (Error building libffi)

	* src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
	Fixes PR bootstrap/3563.

From-SVN: r44045
parent 94fc7dea
2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
Fixes PR bootstrap/3563.
2001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 2001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF. * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
......
/* ----------------------------------------------------------------------- /* -----------------------------------------------------------------------
ffi.c - Copyright (c) 1998 Cygnus Solutions ffi.c - Copyright (c) 1998, 2001 Cygnus Solutions
Alpha Foreign Function Interface Alpha Foreign Function Interface
...@@ -166,8 +166,13 @@ ffi_prep_closure (ffi_closure* closure, ...@@ -166,8 +166,13 @@ ffi_prep_closure (ffi_closure* closure,
closure->fun = fun; closure->fun = fun;
closure->user_data = user_data; closure->user_data = user_data;
/* Flush the Icache. */ /* Flush the Icache.
asm volatile ("imb" : : : "memory");
Tru64 UNIX as doesn't understand the imb mnemonic, so use call_pal
instead, since both Compaq as and gas can handle it.
0x86 is PAL_imb in Tru64 UNIX <alpha/pal.h>. */
asm volatile ("call_pal 0x86" : : : "memory");
return FFI_OK; return FFI_OK;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment