Message ID | 20230704010629.31B8220418@pchp3.se.axis.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp892171vqx; Mon, 3 Jul 2023 18:07:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlHHjZdaBi3coJfIbuJf2XI6uWgSkD4iT/3j2NNS05d66b1HLrCXskdct+9UI0wEcsygXNlK X-Received: by 2002:a17:906:51c8:b0:98f:ab82:8893 with SMTP id v8-20020a17090651c800b0098fab828893mr10066227ejk.73.1688432836138; Mon, 03 Jul 2023 18:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688432836; cv=none; d=google.com; s=arc-20160816; b=a2U9nf443PmQNRQ4icXSaVpnrKtMaTJ9IG5ZxA9+7wk7D1vLcC/dm6aWH1GhcejRou BOURUGNrI2lytEQSVl+R9osc5LMFFrDMAMO+WEUsEHOFWqnwjXYImQ6PTw6XjkKRS3SC YRzAqG1MCTkoM2mCFfnDoQo3XbE7VabVdczhvNBruYzDkdo/K8W414IR8NQaeYu9fbzc grgCGtmMf9Ewc8w81+73wz4CDG9gsbXNMP3vVUkTEKdtYTmWNCEU6zlUsz6MgfDtUDP8 pApYcQLgxRhH4vWJ8j77YDFKC/Fph8A6sT2/P5ZamYgdjz1B6bGFR0SOpBsEd38uMUF4 84zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:date:message-id :content-transfer-encoding:mime-version:subject:cc:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=zesqSjpGc8SvwICToWLvOrHx77I69M358EW2aBcyBgM=; fh=OdjsmK9GowM1umiKuY4+pYGPdawKbLp6mMqGRSHub0o=; b=WRQLt0xNW3yJMk/p0P/jC2YODwic0yVxRi4ZDttR2ZBPlzacj7JNg0fLSPNFPkIKjc I7IDxYSqofURsaDXqtsBUfGWo7E+i+oVemtXJr8ZA/GdylBUVv/gOYdz3f0I7ksRMLcU qDnrqXhj2lSYvq8UpWzTlAK3GfB1oEAbYb5KN5+tmfK1uZxONGcZGuwAHLJgRsElsZEx LKBtK+DB2WLj6sYiIca2VR5ODu0LOgtn9VRB4QoVlRnot0omumLMy2hOQKF5uG3EmlbD aPRY0MxNkAxwBglQbK5S1wqpl7RXu6bz/vlmmDCvRdwX6u+zbZheR48jGHekxXPYVoIg BiDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=OOsx+Xap; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id x6-20020a1709065ac600b009931661377fsi3680273ejs.964.2023.07.03.18.07.15 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 18:07:16 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=OOsx+Xap; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D09B53858C30 for <ouuuleilei@gmail.com>; Tue, 4 Jul 2023 01:07:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D09B53858C30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688432834; bh=zesqSjpGc8SvwICToWLvOrHx77I69M358EW2aBcyBgM=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=OOsx+XapHE/asbF5wU9bqjKJTrtakBZgmjribqh1Uak5ANt6DkpnAP3Z5XSqXBqkj p5wPxj7NBYo0c72xrxicUwiEEzq1Eh2ZLgu0bLQrPMEQ8TY3JxpiQnotALq4J9RiKt G/qZcZB6xdsX0Wxaa0Ivgk6Y0cagdJB2Ej7WI8oU= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by sourceware.org (Postfix) with ESMTPS id 99CF83858D35 for <gcc-patches@gcc.gnu.org>; Tue, 4 Jul 2023 01:06:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 99CF83858D35 To: <gcc-patches@gcc.gnu.org> CC: <roger@nextmovesoftware.com> Subject: [committed] dwarf2out.cc (mem_loc_descriptor): Handle BITREVERSE MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Message-ID: <20230704010629.31B8220418@pchp3.se.axis.com> Date: Tue, 4 Jul 2023 03:06:29 +0200 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Hans-Peter Nilsson via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Hans-Peter Nilsson <hp@axis.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770450149689448586?= X-GMAIL-MSGID: =?utf-8?q?1770450149689448586?= |
Series |
[committed] dwarf2out.cc (mem_loc_descriptor): Handle BITREVERSE
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Hans-Peter Nilsson
July 4, 2023, 1:06 a.m. UTC
Committed as obvious after regtest for cris-elf together with the "next" patch, that replaces unspec CRIS_UNSPEC_SWAP_BITS with bitreverse (which hit the ICE). -- >8 -- This seems to have just been overlooked when introducing BITREVERSE. Note that the function name mem_loc_descriptor is a misnomer; it'd better be called rtx_loc_descriptor or any_loc_descriptor, because "anything" RTX can end up here. To wit, when introducing new RTL that ends up as code or for other reasons appear in debug expressions, don't forget to update this function. This was observed by building libstdc+++ for cris-elf with a patch replacing the CRIS_UNSPEC_SWAP_BITS by bitreverse, as hitting the internal-error-generating default case. Looking at the BSWAP, POPCOUNT and ROTATE cases, BITREVERSE can probably be fully expressed as DWARF code if need be, but let's start with not throwing an internal error. gcc: * dwarf2out.cc (mem_loc_descriptor): Handle BITREVERSE. --- gcc/dwarf2out.cc | 1 + 1 file changed, 1 insertion(+)
diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc index 9112fc0c64b5..e973644102c0 100644 --- a/gcc/dwarf2out.cc +++ b/gcc/dwarf2out.cc @@ -16940,6 +16940,7 @@ mem_loc_descriptor (rtx rtl, machine_mode mode, case CLOBBER: case SMUL_HIGHPART: case UMUL_HIGHPART: + case BITREVERSE: break; case CONST_STRING: