All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@imgtec.com>
To: Fengguang Wu <fengguang.wu@intel.com>
Cc: Ralf Baechle <ralf@linux-mips.org>, <kbuild-all@01.org>,
	Paul Burton <paul.burton@imgtec.com>,
	<linux-kernel@vger.kernel.org>, Philip Li <philip.li@intel.com>
Subject: Re: [kbuild-all] mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal'
Date: Thu, 21 Apr 2016 20:55:34 +0100	[thread overview]
Message-ID: <alpine.DEB.2.00.1604212043170.21846@tp.orcam.me.uk> (raw)
In-Reply-To: <20160421045129.GB4038@wfg-t540p.sh.intel.com>

On Thu, 21 Apr 2016, Fengguang Wu wrote:

> > -mcompact-branches=optimal is an option for the latest version of the MIPS
> > architecture which is enabled by mips-malta_qemu_32r6_defconfig but your
> > compiler is too old, doesn't support R6.  Unfortunately there's no simple
> > way to run a test on the build environment from kconfig or even before
> > kconfig runs so we've just ignord this particular build issue.  Plus
> > there being the additional issue that we only know the toolchain to be
> > used after certain options have been picked.
> 
> We are running Debian's mips cross compiler.
> 
> % mips-linux-gnu-gcc --version
> mips-linux-gnu-gcc (Debian 5.2.1-16) 5.2.1 20150903
> Copyright (C) 2015 Free Software Foundation, Inc.
> 
> How about temporarily disable that error, until we upgrade to a new
> gcc version which supports the -mcompact-branches option?

 I don't think it makes sense as the compiler won't support MIPSr6 code 
anyway, so first it'll bail out on `-march=mips32r6', and if we go even 
further and disable that too, then GAS will probably break somewhere on 
inline asm and GCC will produce code which does not make sense otherwise.

  Maciej

  reply	other threads:[~2016-04-21 19:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-20  5:44 mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal' kbuild test robot
2016-04-20 13:30 ` Ralf Baechle
2016-04-21  4:51   ` [kbuild-all] " Fengguang Wu
2016-04-21 19:55     ` Maciej W. Rozycki [this message]
2016-04-21 20:34       ` Ralf Baechle
2016-04-21 21:10         ` Maciej W. Rozycki
2016-04-22  8:54           ` Paul Burton
2016-04-22 15:48             ` Maciej W. Rozycki
2016-04-21 20:31     ` Ralf Baechle

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=alpine.DEB.2.00.1604212043170.21846@tp.orcam.me.uk \
    --to=macro@imgtec.com \
    --cc=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paul.burton@imgtec.com \
    --cc=philip.li@intel.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.