Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1215190pxb; Tue, 17 Aug 2021 06:36:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt/m2fw/R8Fu7TcdHEv6xYpLBk6Q55MDn8Re1rAzjS4iaBFCi/KXqONKV40JdTZfagOqQ/ X-Received: by 2002:adf:a556:: with SMTP id j22mr4308008wrb.268.1629207401497; Tue, 17 Aug 2021 06:36:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629207401; cv=none; d=google.com; s=arc-20160816; b=VBNw3B6vOYJoO3gCfSAjAIooiiLsbDnmQU2idTMAAP55iwObxCLwZF+xFsWhKShCzc 7GZQ5UdW6Ct7Kw5vhaUDtHf5sqMuCVMCgKwlG1zPHzlStCWH9F+F/Roa7NppPfRNHqQ0 BpMWFZ8tin18IzczbyDG0MpyGNwHRER6+QwUCM4ujd6mayoAOPhV2QWEM8TUb4VetNWE DF/bSD0/HGxCag16GLJNQslgjTSWQ0Tt6ihh1fEVkmPnH3NXHM1d3FX7msojJrJSuaZ5 haL7xANwlIxIxr8FccDxSWh1nDt7K6xxAch395PsIZxXp8jrj5uRMNz1604HDH8/U8EI q4cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BETKMKviZiDMvgtIbHvU34xA814DfYBcLYLezpreZUs=; b=KfIuoLiRRV6TtYNqp0ciSLQaO5FFIY8b0U2ibtka14w9LEj/IUX8jfHdspB2JdE8Z9 O/wE43+HE3D4DA6NARNeeIoOvhJwN0slHHoZLvEbHfUndSnZDTZhJZdR3zh6w8oJl7T0 4gahOyW20CzotAZwHW1GnRHc1h81g2w+1vP2H33k1Sx6hIsF0SdlsgJysKVA9Z7PEeF1 4i86mqTW3Dnv6uERDxrns8KQhm2HWt01hcM5nt+CY2eK/27sJtKrP9R8i+pcYYFLcA8w i+f6TpTyh3IcNJVQ7wOUfN/A+n5YiFQTo53z22GNv7lST4RBheWQjzhT8tSrboURRzT2 irmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pDE48lGf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si2419384edr.277.2021.08.17.06.36.17; Tue, 17 Aug 2021 06:36:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pDE48lGf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237642AbhHQNey (ORCPT + 99 others); Tue, 17 Aug 2021 09:34:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236398AbhHQNex (ORCPT ); Tue, 17 Aug 2021 09:34:53 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B07C8C061764; Tue, 17 Aug 2021 06:34:20 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id z5so39501616ybj.2; Tue, 17 Aug 2021 06:34:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BETKMKviZiDMvgtIbHvU34xA814DfYBcLYLezpreZUs=; b=pDE48lGfyIr3W0lDNV8OzL6CzHfl268CH0mi9l1JzkmL4Gv1eAkHwZLBFlxPkrmahH V2TeptwC1G6qTatG/H1qriYttrNUSpbBCD3ZAw6ydXkKy6gtcgQDb78sfYwQrTo62OgK xRIDPhI82KLfNYt4MVx97K0IeVDJSEkPz49FE0frgVXhDudICYhRjm+ayV0FMiowlHlq L2Vogn/0A32d7UTxRhh3/LhABZEZGQ4l93Pv3tnhyuRnUqbnIuQssUi254qJF/+Gr1OJ JRnLV80ZDN+SwSylfgcqsHgPQDtmJghX9GX8uGdnvNjdWPAhQ38+Kh0TAKbaNg6idysi 2Khw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BETKMKviZiDMvgtIbHvU34xA814DfYBcLYLezpreZUs=; b=ClRK4WytVX3s3UXNPuncB8oDBIQj56AI0xFlrRVS3ZNMqOl5vr5dRUfoNcBjIl5MNq EQWwY7JMNtsMsz9pou8bq+gys8+57iLdcga1M1fb/m6iYP7q7DxoPJdkQM2YZcZz4lTp DMoB02PFDExAWs26WQubRv2bUKqtOaj2j7eVOXkiIC3H8jh0BA8HK+WRFyr2oiZvGPWp oORse3NeAny//kl3YqA8mqNAlkdoz65yT+TjY/tlEiaoMOpQPgSOLhdBjhQ+t4EZN8XN OqRARu2+7s8tPdDOVahKBy0+/38h8xeR44Jyrd5/Z16zkUF5VIU3OPzUMnvtuKTsIviX B1IA== X-Gm-Message-State: AOAM533hYpXUxny3Xo4qqFeGcM+NBaep+oOZxeJZqpZZXO0zHVPdDENX PKtzxh9R0M5vIfxsDexmDIpx1pc3kSEM4Bwsv/QQx9dhrF7DSQ== X-Received: by 2002:a25:aa94:: with SMTP id t20mr4569192ybi.127.1629207259862; Tue, 17 Aug 2021 06:34:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sudip Mukherjee Date: Tue, 17 Aug 2021 14:33:43 +0100 Message-ID: Subject: Re: build failure of mips decstation_r4k_defconfig with binutils-2_37 To: Ralf Baechle Cc: "Maciej W. Rozycki" , Paul Burton , James Hogan , linux-mips , linux-kernel , Stable Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ralf, On Tue, Aug 17, 2021 at 1:55 PM Ralf Baechle wrote: > > On Tue, Aug 17, 2021 at 12:54:32PM +0100, Sudip Mukherjee wrote: > > > While I was testing v5.4.142-rc2 I noticed mips build of > > decstation_r4k_defconfig fails with binutils-2_37. The error is: > > > > arch/mips/dec/prom/locore.S: Assembler messages: > > arch/mips/dec/prom/locore.S:29: Error: opcode not supported on this > > processor: r4600 (mips3) `rfe' > > > > I have also reported this at https://sourceware.org/bugzilla/show_bug.cgi?id=28241 > > It would appear gas got more anal about ISA checking for the RFE instructions > which did only exist in MIPS I and II; MIPS III and later use ERET for > returning from an exception. > > The older gas I've got installed here happily accepts RFE in MIPS III/R4000 > mode: > > > It's easy to find arguments for why this gas change is the right thing to > do - and not the right thing to do. > > It should be fixable by simply putting gas into mips1 mode. Can you test > below patch? Tested on top of v5.4.142-rc2 and it builds again. Thanks for the quick reply and the patch. -- Regards Sudip