Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753287AbcDUUeV (ORCPT ); Thu, 21 Apr 2016 16:34:21 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:56958 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753181AbcDUUeT (ORCPT ); Thu, 21 Apr 2016 16:34:19 -0400 Date: Thu, 21 Apr 2016 22:34:15 +0200 From: Ralf Baechle To: "Maciej W. Rozycki" Cc: Fengguang Wu , kbuild-all@01.org, Paul Burton , linux-kernel@vger.kernel.org, Philip Li Subject: Re: [kbuild-all] mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal' Message-ID: <20160421203415.GK24051@linux-mips.org> References: <201604201320.YHjfc2dZ%fengguang.wu@intel.com> <20160420133021.GG24051@linux-mips.org> <20160421045129.GB4038@wfg-t540p.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 799 Lines: 18 On Thu, Apr 21, 2016 at 08:55:34PM +0100, Maciej W. Rozycki wrote: > > % 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. GCC 5.2.0 claims to support mips32r6 and mips64r6. It's just the option -mcompact-branches which seem to have been added later only. Ralf