public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "joseph at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/52163] [4.7 regression] 64bit powerpc libgcc is missing exported symbols
Date: Wed, 08 Feb 2012 15:35:00 -0000	[thread overview]
Message-ID: <bug-52163-4-p1i7GRGfYS@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-52163-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52163

--- Comment #6 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2012-02-08 15:34:32 UTC ---
On Wed, 8 Feb 2012, amodra at gmail dot com wrote:

> Correct.  In fact, I think it's a waste of space to put the soft-float
> functions in the normal ppc32 libgcc.  They really only belong in the nof
> libgcc.

My view is that while they may need to stay for ABI compatibility, it 
should be possible to build very small versions for that case from generic 
C code for all the functions where GCC will reliably generate the expected 
code (not a recursive call) from generic C - so they don't actually take 
up much space in libgcc.

SFtype __addsf3 (SFtype a, SFtype b) { return a + b; }

etc.

Doing this for Power is more complicated than for some architectures 
because of all the floating point variants including Xilinx and e500v1 
which do only single-precision in hardware - and some variants may do some 
operations in hardware but not others, for a given type (e.g. 
__builtin_isunordered may involve a libgcc function for e500).  But it's 
certainly feasible at the present state of the toplevel libgcc transition 
to control what functions are built from what sources on a per-multilib 
basis, testing the compiler used for that multilib to determine which 
floating-point configuration is applicable.  And similar issues of not 
needing certain functions in libgcc, other than for compatibility, apply 
to other targets as well (MIPS in particular) - the generic C versions 
referred to above will be of use for more targets than just Power.


  parent reply	other threads:[~2012-02-08 15:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-07 22:54 [Bug target/52163] New: " doko at gcc dot gnu.org
2012-02-08  7:44 ` [Bug target/52163] " jakub at gcc dot gnu.org
2012-02-08  9:37 ` amodra at gmail dot com
2012-02-08 10:26 ` rguenth at gcc dot gnu.org
2012-02-08 10:29 ` jakub at gcc dot gnu.org
2012-02-08 10:30 ` jakub at gcc dot gnu.org
2012-02-08 15:35 ` joseph at codesourcery dot com [this message]
2012-02-08 15:52 ` jakub at gcc dot gnu.org
2012-02-08 19:25 ` doko at gcc dot gnu.org
2012-02-08 19:27 ` jakub at gcc dot gnu.org

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=bug-52163-4-p1i7GRGfYS@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).