From patchwork Tue Nov 15 07:32:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 20224 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2570021wru; Mon, 14 Nov 2022 23:33:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf5x3SO59pLfN5EGC6xxP4wpu0xLAby1O011HBv6Vrac0lEY8kO6qo+Mu39FWXFMKT4N8qEn X-Received: by 2002:a17:906:1583:b0:7ad:923a:b849 with SMTP id k3-20020a170906158300b007ad923ab849mr12862369ejd.677.1668497606274; Mon, 14 Nov 2022 23:33:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668497606; cv=none; d=google.com; s=arc-20160816; b=1LdVIGZs4u6wki6SB5oomRZvwYi/EWy+/zF8i6ojpVV6mPUnlf6Vq0jQRphbSqCHQM xugatA0N3TFY9JULk+BKDNtW5oyUhPuqlk49XRsaBgExRmxzPgg23G5Zgp7H6uIjUll6 c1huTpHAqyctmDDG09fccqYz3WgUIpyuj6Jq+RLd4bKrRza6DzSg/iE4LDPMPG/RQ1aB eoN4Dg0nkLlkrWp85xfvEg98UtS7/LOhN+stwGeiK7vwAky6QRPO33WrY7OKHCA+fKmT V3OQ1v/9YDBcDL/JTNiBuNkwRAZeGRVZanoANymGNTH11WLn8SQwV4qtKgaCyjwUsbTF xsnA== 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=+Q4txVV/KNbRSmravpG6WZm47QDygjTZosbhm5+kFV8=; b=I9hpAX+ihMQKkm2oxyEJnB9gzaKGslnZ7MBFhpSvGNlzGKCVwhFH5iaNlnPsOAskq0 ZEgdD3b2bysa+rzvx+CJ6Ro5L+wAt2GEG7pjhfCOTX//YgVAbZmLfIIG9ud6U9fBpQVE 0w/cJ9WIPA5XObZbjERk2gSnpueLS6AZEFfHS28hkEAnTm3rX7IzZ5fpjqnf0ZAIp9j1 fAb1tL5UkprA0jH3wn2fTwBrs1Ttcf8k6asdfciBgG8pmHGx09pf7LUtPAWgIhRerci9 x3KJBQ4fARJw4xvDQfPDrMgK4Mb5Z1qcP6L2Rj/Y/xjWLDyS9A16dCFTxsvH5Uvcuext x5sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=kf4Ep2tS; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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. [8.43.85.97]) by mx.google.com with ESMTPS id sd27-20020a1709076e1b00b0078bb4d5db86si10958804ejc.77.2022.11.14.23.33.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 23:33:26 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=kf4Ep2tS; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 3B5A9382E53B for ; Tue, 15 Nov 2022 07:33:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B5A9382E53B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668497605; bh=+Q4txVV/KNbRSmravpG6WZm47QDygjTZosbhm5+kFV8=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=kf4Ep2tSonvuUJXg15qPn6xgF1LPJk6v7Y3E05q/1jKQmh98ghADs0za5Fkv8Eqdg peY7LcS6T+t5uL/0iB63RjohYjRaUu8cZo3OuaOkbm9X1K4ynC3ll4dyhXosJxaYiF 1GC2m40BHKMiuSELtJGAFb0y1Fk4S33GFCL1mMYc= 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 03BA43830B19 for ; Tue, 15 Nov 2022 07:32:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 03BA43830B19 Received: from mimecast-mx02.redhat.com (mx3-rdu2.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-497-hm5O9uv3PVi_CU_HTg87cA-1; Tue, 15 Nov 2022 02:32:37 -0500 X-MC-Unique: hm5O9uv3PVi_CU_HTg87cA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CE4F23C025A2 for ; Tue, 15 Nov 2022 07:32:36 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 909BB40C6EC3 for ; Tue, 15 Nov 2022 07:32:36 +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 2AF7WWFb520849 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Tue, 15 Nov 2022 08:32:32 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 2AF7WV2d520848 for gcc-patches@gcc.gnu.org; Tue, 15 Nov 2022 08:32:31 +0100 Date: Tue, 15 Nov 2022 08:32:31 +0100 To: gcc-patches@gcc.gnu.org Subject: [committed] c++: Fix a typo in function name Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-3.9 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 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?1749546546218189209?= X-GMAIL-MSGID: =?utf-8?q?1749546546218189209?= Hi! I've noticed I've made a typo in the name of the function. Fixed thusly. Bootstrapped/regtested on x86_64-linux and i686-linux, committed as obvious to trunk. 2022-11-15 Jakub Jelinek * cp-tree.h (next_common_initial_seqence): Rename to ... (next_common_initial_sequence): ... this. * typeck.cc (next_common_initial_seqence): Rename to ... (next_common_initial_sequence): ... this. (layout_compatible_type_p): Call next_common_initial_sequence rather than next_common_initial_seqence. * semantics.cc (is_corresponding_member_aggr): Likewise. Jakub --- gcc/cp/cp-tree.h.jj 2022-11-14 13:35:34.311158621 +0100 +++ gcc/cp/cp-tree.h 2022-11-14 13:41:29.817322405 +0100 @@ -7982,7 +7982,7 @@ extern bool comp_except_specs (const_t extern bool comptypes (tree, tree, int); extern bool same_type_ignoring_top_level_qualifiers_p (tree, tree); extern bool similar_type_p (tree, tree); -extern bool next_common_initial_seqence (tree &, tree &); +extern bool next_common_initial_sequence (tree &, tree &); extern bool layout_compatible_type_p (tree, tree); extern bool compparms (const_tree, const_tree); extern int comp_cv_qualification (const_tree, const_tree); --- gcc/cp/typeck.cc.jj 2022-11-14 13:35:34.474156404 +0100 +++ gcc/cp/typeck.cc 2022-11-14 13:42:07.328812124 +0100 @@ -1779,7 +1779,7 @@ similar_type_p (tree type1, tree type2) the common initial sequence. */ bool -next_common_initial_seqence (tree &memb1, tree &memb2) +next_common_initial_sequence (tree &memb1, tree &memb2) { while (memb1) { @@ -1871,7 +1871,7 @@ layout_compatible_type_p (tree type1, tr { while (1) { - if (!next_common_initial_seqence (field1, field2)) + if (!next_common_initial_sequence (field1, field2)) return false; if (field1 == NULL_TREE) return true; --- gcc/cp/semantics.cc.jj 2022-11-14 13:35:34.429157016 +0100 +++ gcc/cp/semantics.cc 2022-11-14 13:41:47.930076022 +0100 @@ -11665,7 +11665,7 @@ is_corresponding_member_aggr (location_t tree ret = boolean_false_node; while (1) { - bool r = next_common_initial_seqence (field1, field2); + bool r = next_common_initial_sequence (field1, field2); if (field1 == NULL_TREE || field2 == NULL_TREE) break; if (r