Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752810AbcDUTzt (ORCPT ); Thu, 21 Apr 2016 15:55:49 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:54923 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752599AbcDUTzs (ORCPT ); Thu, 21 Apr 2016 15:55:48 -0400 Date: Thu, 21 Apr 2016 20:55:34 +0100 From: "Maciej W. Rozycki" To: Fengguang Wu CC: Ralf Baechle , , Paul Burton , , Philip Li Subject: Re: [kbuild-all] mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal' In-Reply-To: <20160421045129.GB4038@wfg-t540p.sh.intel.com> Message-ID: References: <201604201320.YHjfc2dZ%fengguang.wu@intel.com> <20160420133021.GG24051@linux-mips.org> <20160421045129.GB4038@wfg-t540p.sh.intel.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [10.20.78.30] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1177 Lines: 25 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