public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Rohit Arul Raj <rohitarulraj@gmail.com>
To: gcc <gcc@gcc.gnu.org>
Subject: Clarification on PowerPC64 Linux ABI
Date: Tue, 22 Mar 2011 05:51:00 -0000	[thread overview]
Message-ID: <AANLkTikve6oSqKj_kdXiV7xsTP8juHXJSrzszwj9sAUP@mail.gmail.com> (raw)

Hello All,

I have a question regarding PowerPC64 bit ABI. Since GCC generates FP
instructions for Non FP code, i was running in to issues with
applications having interrupts (i have seen some threads with people
complaining about this). So the other option to resolve this was to
build the entire application with '-msoft-float' compiler option. It
seems to work fine with 32-bit PPC.

But when i tried to do the same with 64bit PPC, i was getting 'cannot
find -lgcc' error which was due to the MULTILIB option, that has been
set to exclude building target libraries with '-msoft-float -m64'
compiler option.

I have discussed this in the IRC channel some one mentioned that it is
because of 64bit ABI restriction even though some PPC Linux kernels
are built using this option.

I have gone through the ABI doc in the link given
"http://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi-1.9.html"
and there is no mention of 'soft-float' or floating point emulation.
So it means i have to assume that '-msoft-float' is not defined by
ABI?

I have also gone through 32-bit PPC Linux ABI (sys V) doc,
"http://refspecs.freestandards.org/elf/elfspec_ppc.pdf" and there is
no mention of 'soft-float' or floating point emulation either.

But the PPC EABI doc does have reference to soft-float/FP emulation
[CHAPTER 6 Libraries 20 - Software Floating Point Emulation Support
Routines].
http://sources-redhat.mirrors.airband.net/binutils/ppc-docs/ppc-eabi-1995-01.pdf

1. Am i referring right documents?
2. Is there any restriction on '-msoft-float' ABI definition on 32bit
Linux sys V ABI, 32-bit EABI, 64bit ABI?
3. If PPC linux kernels are built with  '-msoft-float -m64' compiler
option, is it reasonably safe to build the application with the same
options?

Thanks,
Rohit

             reply	other threads:[~2011-03-22  5:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-22  5:51 Rohit Arul Raj [this message]
2011-03-22  6:11 ` Andrew Pinski
2011-03-22  6:45   ` Rohit Arul Raj

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=AANLkTikve6oSqKj_kdXiV7xsTP8juHXJSrzszwj9sAUP@mail.gmail.com \
    --to=rohitarulraj@gmail.com \
    --cc=gcc@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).