[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1461314611-15317-1-git-send-email-paul.burton@imgtec.com>
Date: Fri, 22 Apr 2016 09:43:31 +0100
From: Paul Burton <paul.burton@...tec.com>
To: <linux-mips@...ux-mips.org>, Ralf Baechle <ralf@...ux-mips.org>
CC: "Maciej W . Rozycki" <macro@...tec.com>, <fengguang.wu@...el.com>,
"Paul Burton" <paul.burton@...tec.com>,
"stable # v4 . 4+" <stable@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH] MIPS: Allow R6 compact branch policy to be left unspecified
It turns out that some toolchains which support MIPS R6 don't support
the -mcompact-branches flag to specify compact branch behaviour. Default
to not providing the -mcompact-branch option to the compiler such that
we can build with such toolchains.
Signed-off-by: Paul Burton <paul.burton@...tec.com>
Reported-by: kbuild test robot <fengguang.wu@...el.com>
Fixes: c1a0e9bc885d ("MIPS: Allow compact branch policy to be changed")
Cc: stable <stable@...r.kernel.org> # v4.4+
---
arch/mips/Kconfig.debug | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/arch/mips/Kconfig.debug b/arch/mips/Kconfig.debug
index f0e314c..e91b3d1 100644
--- a/arch/mips/Kconfig.debug
+++ b/arch/mips/Kconfig.debug
@@ -117,7 +117,15 @@ if CPU_MIPSR6
choice
prompt "Compact branch policy"
- default MIPS_COMPACT_BRANCHES_OPTIMAL
+ default MIPS_COMPACT_BRANCHES_DEFAULT
+
+config MIPS_COMPACT_BRANCHES_DEFAULT
+ bool "Toolchain Default (don't specify)"
+ help
+ Don't pass the -mcompact-branches flag to the compiler, allowing it
+ to use its default (generally "optimal"). This is particularly
+ useful for early R6-supporting toolchains which don't support the
+ -mcompact-branches flag.
config MIPS_COMPACT_BRANCHES_NEVER
bool "Never (force delay slot branches)"
--
2.8.0
Powered by blists - more mailing lists