diff mbox

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

Message ID CA+=Sn1mc__-3SihiVfOusrGMnNodDd8nu6R=bU44uN9kp5iz0w@mail.gmail.com
State New
Headers show

Commit Message

Andrew Pinski Dec. 7, 2011, 10:58 p.m. UTC
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".
diff mbox

Patch

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