public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] PPC: fix "Warning: FOO uses hard float, BAR uses soft float".
Date: Thu, 22 Dec 2011 16:55:38 +0100	[thread overview]
Message-ID: <201112221655.39187.sr@denx.de> (raw)
In-Reply-To: <1324564181-8949-1-git-send-email-wd@denx.de>

Hi Wolfgang,

On Thursday 22 December 2011 15:29:41 Wolfgang Denk 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 successfully on sequoia, so:

Tested-by: Stefan Roese <sr@denx.de>

Best regards,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de

  reply	other threads:[~2011-12-22 15:55 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 [this message]
2011-12-23 16:17       ` Anatolij Gustschin
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=201112221655.39187.sr@denx.de \
    --to=sr@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox