All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Fortune <Matthew.Fortune@imgtec.com>
To: "Maciej W. Rozycki" <macro@linux-mips.org>,
	Manuel Lauss <manuel.lauss@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>,
	Linux-MIPS <linux-mips@linux-mips.org>
Subject: RE: [RFC PATCH V2] MIPS: fix build with binutils 2.24.51+
Date: Tue, 26 Aug 2014 10:45:16 +0000	[thread overview]
Message-ID: <6D39441BF12EF246A7ABCE6654B0235320EF70D1@LEMAIL01.le.imgtec.org> (raw)
In-Reply-To: <alpine.LFD.2.11.1408252036420.18483@eddie.linux-mips.org>

Maciej W. Rozycki <macro@linux-mips.org> writes:
> On Mon, 25 Aug 2014, Manuel Lauss wrote:
> 
> > > 1. Determine whether `-Wa,-msoft-float' and `.set hardfloat' are
> available
> > >    (a single check will do, they were added to GAS both at the same
> time)
> > >    and only enable them if supported by binutils being used to build
> the
> > >    kernel, e.g. (for the `.set' part):
> > >
> > > #ifdef GAS_HAS_SET_HARDFLOAT
> > > #define SET_HARDFLOAT .set      hardfloat
> > > #else
> > > #define SET_HARDFLOAT
> > > #endif
> > >
> > >    Otherwise we'd have to bump the binutils requirement up to 2.19;
> this
> >
> > Do people really update their toolchain so rarely?
> 
>  I don't know, but unless they're toolchain developers at the same time
> I'd expect some to stick with whatever they've found working.  The worst
> thing that can happen to you is when you need to upgrade the kernel to
> fix
> a critical bug, then the updated kernel requires newer tools and then
> the
> newer tools trigger a bunch of new bugs that you don't even know if they
> are kernel or toolchain bugs (or both).  So I don't want to force people
> to upgrade unless absolutely necessary (e.g. a microMIPS kernel), I'd
> rather let them do it whenever *they* feel comfortable doing it.

Rather than me give a bunch of comments here could someone confirm what
your (kernel perspective) opinion is of what should change?

From what I can tell it seems OK for pre-existing kernel releases to not
build with new tools from time to time. Also, it seems OK for currently
maintained branches to need a fix as long as it results in code which
can be built with old and new tools. This was my assumption when doing
the binutils work, it is just unfortunate that Manuel found the issue
before the kernel guys at Imagination had got round to discussing this
topic on the kernel list.

As a slight aside. Please do retain -msoft-float on kernel builds it is the
only way to ensure that no floating-point instructions are used even if
you have no 'float' or 'double' types. MIPS GCC relies on a cost model
to avoid floating point registers being used in the absence of floating
point types but this is not a guarantee. I do plan on working on this area
but it is non-trivial to say the least.

Regards,
Matthew

WARNING: multiple messages have this Message-ID (diff)
From: Matthew Fortune <Matthew.Fortune@imgtec.com>
To: "Maciej W. Rozycki" <macro@linux-mips.org>,
	Manuel Lauss <manuel.lauss@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>,
	Linux-MIPS <linux-mips@linux-mips.org>
Subject: RE: [RFC PATCH V2] MIPS: fix build with binutils 2.24.51+
Date: Tue, 26 Aug 2014 10:45:16 +0000	[thread overview]
Message-ID: <6D39441BF12EF246A7ABCE6654B0235320EF70D1@LEMAIL01.le.imgtec.org> (raw)
Message-ID: <20140826104516.gytAMkvu0PnNWfE8rMpgeVUQB2zwtcntfRhqPwvIQKg@z> (raw)
In-Reply-To: <alpine.LFD.2.11.1408252036420.18483@eddie.linux-mips.org>

Maciej W. Rozycki <macro@linux-mips.org> writes:
> On Mon, 25 Aug 2014, Manuel Lauss wrote:
> 
> > > 1. Determine whether `-Wa,-msoft-float' and `.set hardfloat' are
> available
> > >    (a single check will do, they were added to GAS both at the same
> time)
> > >    and only enable them if supported by binutils being used to build
> the
> > >    kernel, e.g. (for the `.set' part):
> > >
> > > #ifdef GAS_HAS_SET_HARDFLOAT
> > > #define SET_HARDFLOAT .set      hardfloat
> > > #else
> > > #define SET_HARDFLOAT
> > > #endif
> > >
> > >    Otherwise we'd have to bump the binutils requirement up to 2.19;
> this
> >
> > Do people really update their toolchain so rarely?
> 
>  I don't know, but unless they're toolchain developers at the same time
> I'd expect some to stick with whatever they've found working.  The worst
> thing that can happen to you is when you need to upgrade the kernel to
> fix
> a critical bug, then the updated kernel requires newer tools and then
> the
> newer tools trigger a bunch of new bugs that you don't even know if they
> are kernel or toolchain bugs (or both).  So I don't want to force people
> to upgrade unless absolutely necessary (e.g. a microMIPS kernel), I'd
> rather let them do it whenever *they* feel comfortable doing it.

Rather than me give a bunch of comments here could someone confirm what
your (kernel perspective) opinion is of what should change?

  reply	other threads:[~2014-08-26 10:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-19 16:27 [RFC PATCH V2] MIPS: fix build with binutils 2.24.51+ Manuel Lauss
2014-08-25 12:51 ` Ralf Baechle
2014-08-25 14:27   ` Maciej W. Rozycki
2014-08-25 19:29     ` Manuel Lauss
2014-08-25 19:57       ` Ralf Baechle
2014-08-25 19:57       ` Maciej W. Rozycki
2014-08-26 10:45         ` Matthew Fortune [this message]
2014-08-26 10:45           ` Matthew Fortune
2014-10-10 14:39       ` Markos Chandras
2014-10-10 14:39         ` Markos Chandras
2014-10-10 14:40         ` Markos Chandras
2014-10-10 14:40           ` Markos Chandras
2014-10-11  6:53           ` Manuel Lauss

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=6D39441BF12EF246A7ABCE6654B0235320EF70D1@LEMAIL01.le.imgtec.org \
    --to=matthew.fortune@imgtec.com \
    --cc=linux-mips@linux-mips.org \
    --cc=macro@linux-mips.org \
    --cc=manuel.lauss@gmail.com \
    --cc=ralf@linux-mips.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 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.