[Committed] Fix PR libffi/50051 (MIPS libffi does not compile for mips64octeon-linux-gnu)

Andrew Pinski pinskia@gmail.com
Wed Dec 7 22:58:00 GMT 2011


Hi,
  The problem here is Cavium's octeon assembler rejects floating point
if the arch is set to either octeon or octeon2.  This fixes the issue
by adding:
.set mips4 so that floating point instructions are enabled.

Committed as approved by Anthony in the bugzilla.

Thanks,
Andrew Pinski

libffi/ChangeLog:
* src/mips/n32.S: Add ".set mips4".
-------------- next part --------------
Index: src/mips/n32.S
===================================================================
--- src/mips/n32.S	(revision 182083)
+++ src/mips/n32.S	(working copy)
@@ -43,6 +43,7 @@
 #ifdef __GNUC__
 	.abicalls
 #endif
+	.set mips4
 	.text
 	.align	2
 	.globl	ffi_call_N32


More information about the Java-patches mailing list