public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Committed] Fix PR libffi/50051 (MIPS libffi does not compile for mips64octeon-linux-gnu)
@ 2011-12-07 22:58 Andrew Pinski
  0 siblings, 0 replies; only message in thread
From: Andrew Pinski @ 2011-12-07 22:58 UTC (permalink / raw)
  To: GCC Patches, Java Patch List

[-- Attachment #1: Type: text/plain, Size: 345 bytes --]

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".

[-- Attachment #2: fixocteonlibffi.diff.txt --]
[-- Type: text/plain, Size: 270 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-12-07 22:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-07 22:58 [Committed] Fix PR libffi/50051 (MIPS libffi does not compile for mips64octeon-linux-gnu) Andrew Pinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).