From patchwork Fri May 5 07:54:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 90323 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp222654vqo; Fri, 5 May 2023 00:55:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42kF2UWRFyp4XUClMJocXkAyr0inDAAHhQWBU7LN/0R0VYB7Gi8aWLPzE4AzriTL/6WDdH X-Received: by 2002:a17:907:94d1:b0:94f:432f:243f with SMTP id dn17-20020a17090794d100b0094f432f243fmr449539ejc.13.1683273313967; Fri, 05 May 2023 00:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683273313; cv=none; d=google.com; s=arc-20160816; b=NkBXJXp4r3P3I3e4zUN1B5Zt1rVc7JE6J0vSh/IcHZv1Ku1ZydRNTwics+DO/BBXrz jgKvSRLeu+fqgWfIEGxAwTLWNiq59Qanu5yZ/jovdLit8DCJDqd0r2vz9fA19ZnYut3W NuvLXT34lIA4aNAxAEwf4RIMMpe5UCrXOkx+/q7HRI9RsxCoQ4MzyJxr9Mhkp7FPUrf5 4ypwkoikwA1XxNXr7Kee0jLqeMzqc7ohVbKt0lB+yfN1Uo4aoppi2an2RxMgLHRV4mkx cphvs/QDWVmUKgDiO+P7aYsdWj/Q44jCjPUhx3nNzyAEYz9cSPMAmb1oqlai+sBfsYm0 cq4w== 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:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=H2GZuR07z4AzaXT+6T4RjArnOwKc29Ra6cJG1J2Lyms=; b=b9+1gmUif8VMJjYOpWX+tpL/OFDR/ui/P99mjwkduUacFL6KWPv55rrMRCTQNEWmgc 1k03kAYxeBuQTeF2MZeMwR0K/Ljuf1Ki/Yfi8C+iEWfOZSb7/Ge/p6mV23rU+FxjEqjx Tg/h3T9z3Mn+8LYxwkiRfaCTwBhp9MkwIqcEb29GxXoUo32AV5VU0nCpam79AhZ0x9oo ac0pYeCOTQ+SWDc5IlrI28UwZaiWIXFNiwMjGcuWuF5x3nimpBLJJOmHnYv8wTOfmNxx yKHMU1+R4drtlT7wiGNKnrljNHO72EKG9Ix1Df+H1rzdk9WKIXmJo5cDGE75gBOz0uma 5Tiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=LJsuRASb; 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 sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id h13-20020aa7c94d000000b0050bcbda45f2si4252645edt.289.2023.05.05.00.55.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 00:55:13 -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=LJsuRASb; 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 9CCE838582AB for ; Fri, 5 May 2023 07:55:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CCE838582AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683273312; bh=H2GZuR07z4AzaXT+6T4RjArnOwKc29Ra6cJG1J2Lyms=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=LJsuRASbRE2yEGQ0pqeU5Z6i+/QN7/NUUTfXlmBEjRGDLV24hTTRHT5Y7p51J1IP3 zh4wLXL+0LZtJ9WQzQq3837T+XNfTcMK2dPfVx3z3hMyNZ11Y0eUP5N7nQaXgDSC6G WNL1Lf/JMENFr9qw8f5yb4Q8p9AMElmpgy3C7vwU= 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.129.124]) by sourceware.org (Postfix) with ESMTPS id AEA863858D20 for ; Fri, 5 May 2023 07:54:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AEA863858D20 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-595-8ygxarUdPZWbMmGTNkFwSg-1; Fri, 05 May 2023 03:54:27 -0400 X-MC-Unique: 8ygxarUdPZWbMmGTNkFwSg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E7E35885620 for ; Fri, 5 May 2023 07:54:26 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.194.156]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AB1C92166B32 for ; Fri, 5 May 2023 07:54:26 +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 3457sO2Q1357981 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Fri, 5 May 2023 09:54:24 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 3457sOeD1357980 for gcc-patches@gcc.gnu.org; Fri, 5 May 2023 09:54:24 +0200 Date: Fri, 5 May 2023 09:54:23 +0200 To: gcc-patches@gcc.gnu.org Subject: [committed] builtins: Fix comment typo mpft_t -> mpfr_t Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-3.4 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_H2, SPF_HELO_NONE, SPF_NONE, 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 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765039998459851247?= X-GMAIL-MSGID: =?utf-8?q?1765039998459851247?= Hi! I've noticed 4 typos in comments, fixed thusly. Tested on x86_64-linux and i686-linux, committed to trunk as obvious. 2023-05-05 Jakub Jelinek * builtins.cc (do_mpfr_ckconv, do_mpc_ckconv): Fix comment typo, mpft_t -> mpfr_t. * fold-const-call.cc (do_mpfr_ckconv, do_mpc_ckconv): Likewise. Jakub --- gcc/builtins.cc.jj 2023-04-28 08:32:47.943186874 +0200 +++ gcc/builtins.cc 2023-05-04 16:50:16.935259247 +0200 @@ -10911,7 +10911,7 @@ do_mpfr_ckconv (mpfr_srcptr m, tree type real_from_mpfr (&rr, m, type, MPFR_RNDN); /* Proceed iff GCC's REAL_VALUE_TYPE can hold the MPFR value, check for overflow/underflow. If the REAL_VALUE_TYPE is zero - but the mpft_t is not, then we underflowed in the + but the mpfr_t is not, then we underflowed in the conversion. */ if (real_isfinite (&rr) && (rr.cl == rvc_zero) == (mpfr_zero_p (m) != 0)) @@ -10952,7 +10952,7 @@ do_mpc_ckconv (mpc_srcptr m, tree type, real_from_mpfr (&im, mpc_imagref (m), TREE_TYPE (type), MPFR_RNDN); /* Proceed iff GCC's REAL_VALUE_TYPE can hold the MPFR values, check for overflow/underflow. If the REAL_VALUE_TYPE is zero - but the mpft_t is not, then we underflowed in the + but the mpfr_t is not, then we underflowed in the conversion. */ if (force_convert || (real_isfinite (&re) && real_isfinite (&im) --- gcc/fold-const-call.cc.jj 2023-04-19 09:33:59.333351592 +0200 +++ gcc/fold-const-call.cc 2023-05-04 16:50:33.736019179 +0200 @@ -101,7 +101,7 @@ do_mpfr_ckconv (real_value *result, mpfr real_from_mpfr (&tmp, m, format, MPFR_RNDN); /* Proceed iff GCC's REAL_VALUE_TYPE can hold the MPFR values. - If the REAL_VALUE_TYPE is zero but the mpft_t is not, then we + If the REAL_VALUE_TYPE is zero but the mpfr_t is not, then we underflowed in the conversion. */ if (!real_isfinite (&tmp) || ((tmp.cl == rvc_zero) != (mpfr_zero_p (m) != 0))) @@ -295,7 +295,7 @@ do_mpc_ckconv (real_value *result_real, real_from_mpfr (&tmp_imag, mpc_imagref (m), format, MPFR_RNDN); /* Proceed iff GCC's REAL_VALUE_TYPE can hold the MPFR values. - If the REAL_VALUE_TYPE is zero but the mpft_t is not, then we + If the REAL_VALUE_TYPE is zero but the mpfr_t is not, then we underflowed in the conversion. */ if (!real_isfinite (&tmp_real) || !real_isfinite (&tmp_imag)