From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v6 1/4] infra: add support for MIPS NaN
Date: Mon, 17 Jul 2017 14:11:11 +0200 [thread overview]
Message-ID: <20170717141111.7c200c1d@windsurf> (raw)
In-Reply-To: <aea83bb8-c45f-527b-3c38-71b98f50cc50@imgtec.com>
Hello,
On Mon, 17 Jul 2017 13:03:05 +0100, Vicente Olivert Riera wrote:
> > Is it because the gcc of this external toolchain is too old ?
>
> Yes, the -mnan= option was introduced in gcc 4.9.0 by this commit:
>
> 0bd32132d471995f3e333138363d1d928a9dde60
>
> The gcc of that external toolchain is 4.8.2.
OK, that explains it.
> > What can we do about this ?
>
> I guess we could use an option called BR2_GCC_SUPPORTS_MNAN in order to
> avoid adding the -mnan option to the CFLAGS and to the tc-wrapper if the
> external toolchain hasn't selected that option. For internal toolchain,
> since the oldest gcc version we support is 4.9.4, then it should be
> always selected.
Sounds good to me. I guess those older gcc versions (4.8 and before)
anyway only supported the legacy NaN encoding, and therefore behave as
if -mnan=legacy is passed, correct?
You might also want to check if the same problem will happen (or not)
for the FP32 mode, and the DSP/MSA options :)
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2017-07-17 12:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-28 15:17 [Buildroot] [PATCH v6 1/4] infra: add support for MIPS NaN Vicente Olivert Riera
2017-06-28 15:17 ` [Buildroot] [PATCH v6 2/4] infra: add support for MIPS32 FP mode Vicente Olivert Riera
2017-07-16 15:32 ` Thomas Petazzoni
2017-06-28 15:17 ` [Buildroot] [PATCH v6 3/4] infra: add MIPS DSP support Vicente Olivert Riera
2017-06-28 15:17 ` [Buildroot] [PATCH v6 4/4] infra: add support for MIPS MSA Vicente Olivert Riera
2017-07-16 14:40 ` [Buildroot] [PATCH v6 1/4] infra: add support for MIPS NaN Thomas Petazzoni
2017-07-17 9:34 ` Thomas Petazzoni
2017-07-17 12:03 ` Vicente Olivert Riera
2017-07-17 12:11 ` Thomas Petazzoni [this message]
2017-07-18 10:40 ` Vicente Olivert Riera
2017-07-16 14:46 ` Thomas Petazzoni
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=20170717141111.7c200c1d@windsurf \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/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