From patchwork Tue Sep 5 07:30:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 137478 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp1516992vqo; Tue, 5 Sep 2023 00:31:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFmS8eDt8hg8hkwjOfvoEgoU3y7dtyHI10HWNBVWGrAOA+co2+HmzvibWTo66FIlZu00Ik7 X-Received: by 2002:a17:907:a068:b0:9a1:cbe5:758c with SMTP id ia8-20020a170907a06800b009a1cbe5758cmr8875385ejc.7.1693899083157; Tue, 05 Sep 2023 00:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693899083; cv=none; d=google.com; s=arc-20160816; b=hA8ziLLGoGFgZTF9VEdPKBjPRL322LGIZHALqhcNlTzegVX8nNbW2w35/pjLbuDVjD phHSLuUj7dLe8VOIbfDkw/BnQHB8AKvw8OU8Q/GSWy43pk0ILUCRy0PjvyebPbpyGzwi r+Nw3osgeR+jcBUNFEWNuu/+mFELKATVwgfDJURtleffurwUW4d3wdrZ3fHRh/W0IX16 h/dyRtFiBSr19lbgnVQJWEqgz/fXBYLlR5mD2ASF1k1wU2x89PbcpQIgjfaI01Oa+XJk txSH8jW+7fmh3qWEU88cdictJBsIEDo+POODQ1u0q8fEQ2LN/bOM4/Fz6jCeNuP5Ytl6 VDeA== 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 :content-disposition:mime-version:message-id:subject:cc:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=hzyIxr2s6C8g8/cC/P4IuedumbMkis+G/oDxAFIX8uA=; fh=FCjeRajqaQYHMkQtfIia8KT5yBac53mYOLLyJhYG/AY=; b=vlpl2W11g3t5wEydIMDYSt04ydmKfDrh9fC+tS2UloZ7bpcyDBxqH8N0VcIo9Ochkv fKHTvCbUecLTHgnrxV7VoQIjeeaKaqEtBa7YrhfzCMKKSNyU31MkEjikT1ZtpAWJ8Xd6 /TIYAhcHr5jfd65dL2dUxC7rqDa6R/usmIo+OfjovXC0ZmnX2QrW2jWOvnMvWnUjB/ZC zLFldRJBH7FBvaVSpyxrrHPWAfTiWM2JZTIYnc6oYAVEuF2NzfRIrDGZDR/LSo30DK1P fNUeD4UVsoiGI13ap2Z7UhIU2aredfNjne19PMBzdG6AqxYC/foatI9lKWgavc8J416V wBMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=foRKS2fr; 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 x20-20020a170906805400b0099b8b1d54b3si7073612ejw.432.2023.09.05.00.31.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Sep 2023 00:31:23 -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=foRKS2fr; 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 8AFE33858428 for ; Tue, 5 Sep 2023 07:31:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8AFE33858428 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693899081; bh=hzyIxr2s6C8g8/cC/P4IuedumbMkis+G/oDxAFIX8uA=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=foRKS2frHdEryy3q0gdr6rqzc/OajGOcx07pynwy5bSjwrveTN5yuGcRWTdBlglSK r0ti3otkDCyck9pGK/G6jiiwjbOSSPyCzL54F+IkYyV0xy5VxIqD+lE//1VFi3PCQm QBlGvPWWYE2J5m727KWa5qRhprPlLJaRf0adVk+I= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id A1BF7385842E for ; Tue, 5 Sep 2023 07:30:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A1BF7385842E Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-688-50o6RJiMOmSTJEZ0ddW9xw-1; Tue, 05 Sep 2023 03:30:34 -0400 X-MC-Unique: 50o6RJiMOmSTJEZ0ddW9xw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 54D333C11A04; Tue, 5 Sep 2023 07:30:34 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.45.224.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1B15BC02996; Tue, 5 Sep 2023 07:30:33 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 3857UWLu2877006 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 5 Sep 2023 09:30:32 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 3857UW262877005; Tue, 5 Sep 2023 09:30:32 +0200 Date: Tue, 5 Sep 2023 09:30:32 +0200 To: Richard Biener Cc: gcc-patches@gcc.gnu.org Subject: [PATCH 18/12] Handle BITINT_TYPE in build_{, minus_}one_cst [PR102989] Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jakub Jelinek via Gcc-patches From: Jakub Jelinek Reply-To: Jakub Jelinek Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776181925041661438 X-GMAIL-MSGID: 1776181925041661438 Hi! Recent match.pd changes trigger ICE in build_minus_one_cst, apparently I forgot to handle BITINT_TYPE in these (while I've handled it in build_zero_cst). Will commit as obvious together with the rest of the series when the last patches are approved. 2023-09-05 Jakub Jelinek PR c/102989 * tree.cc (build_one_cst, build_minus_one_cst): Handle BITINT_TYPE like INTEGER_TYPE. Jakub --- gcc/tree.cc.jj 2023-09-04 09:45:33.444059843 +0200 +++ gcc/tree.cc 2023-09-05 08:57:31.420059962 +0200 @@ -2546,7 +2546,7 @@ build_one_cst (tree type) { case INTEGER_TYPE: case ENUMERAL_TYPE: case BOOLEAN_TYPE: case POINTER_TYPE: case REFERENCE_TYPE: - case OFFSET_TYPE: + case OFFSET_TYPE: case BITINT_TYPE: return build_int_cst (type, 1); case REAL_TYPE: @@ -2599,7 +2599,7 @@ build_minus_one_cst (tree type) { case INTEGER_TYPE: case ENUMERAL_TYPE: case BOOLEAN_TYPE: case POINTER_TYPE: case REFERENCE_TYPE: - case OFFSET_TYPE: + case OFFSET_TYPE: case BITINT_TYPE: return build_int_cst (type, -1); case REAL_TYPE: