From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] PPC: fix "Warning: FOO uses hard float, BAR uses soft float".
Date: Fri, 23 Dec 2011 17:17:08 +0100 [thread overview]
Message-ID: <20111223171708.557bfda6@wker> (raw)
In-Reply-To: <1324564181-8949-1-git-send-email-wd@denx.de>
Hi Wolfgang,
On Thu, 22 Dec 2011 15:29:41 +0100
Wolfgang Denk <wd@denx.de> wrote:
> It appears that with recent versions of GCC the explicit
> "-mhard-float" command line option takes precedence over the
> ``asm(".gnu_attribute 4, 2");'' in the source file, so this no longer
> helps to avoid the warnings we get when linking code that uses FP
> instructions with other code that was built using soft-float.
>
> We can remove the ".gnu_attribute" (which appears to carry no other
> information, at least so far) from the object files, but we also have
> to make sure we don't pull in the __gcc_qsub() and __gcc_qmul()
> functions from the standard libgcc, as these would again "infect" our
> linking. We copy this code from:
> gcc-4.2.2/gcc/config/rs6000/darwin-ldouble.c
> This old version was chosen because it was still available under a
> compatible license (GCC v2+). The file was stripped down to the
> needed parts, and reformatted so it passes checkpatch with only one
> warning (do not add new typedefs).
>
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> Cc: Kumar Gala <galak@kernel.crashing.org>
> Cc: Stefan Roese <sr@denx.de>
> Cc: Andy Fleming <afleming@gmail.com>
> Cc: Kim Phillips <kim.phillips@freescale.com>
Tested on TQM5200.
Tested-by: Anatolij Gustschin <agust@denx.de>
Anatolij
next prev parent reply other threads:[~2011-12-23 16:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-08 22:09 [U-Boot] powerpc: FOO uses hard float, BAR uses soft float Wolfgang Denk
2011-12-08 22:51 ` Stephen Warren
2011-12-09 14:46 ` Kumar Gala
2011-12-09 23:12 ` Wolfgang Denk
2011-12-22 14:29 ` [U-Boot] [PATCH] PPC: fix "Warning: FOO uses hard float, BAR uses soft float" Wolfgang Denk
2011-12-22 15:55 ` Stefan Roese
2011-12-23 16:17 ` Anatolij Gustschin [this message]
2011-12-23 19:04 ` Wolfgang Denk
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=20111223171708.557bfda6@wker \
--to=agust@denx.de \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.