public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Pinski <pinskia@gmail.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>,
	Java Patch List <java-patches@gcc.gnu.org>
Subject: [Committed] Fix PR libffi/50051 (MIPS libffi does not compile for mips64octeon-linux-gnu)
Date: Wed, 07 Dec 2011 22:58:00 -0000	[thread overview]
Message-ID: <CA+=Sn1mc__-3SihiVfOusrGMnNodDd8nu6R=bU44uN9kp5iz0w@mail.gmail.com> (raw)

[-- 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

                 reply	other threads:[~2011-12-07 22:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+=Sn1mc__-3SihiVfOusrGMnNodDd8nu6R=bU44uN9kp5iz0w@mail.gmail.com' \
    --to=pinskia@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=java-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).