From patchwork Wed Jan 17 10:23:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 188769 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:42cf:b0:101:a8e8:374 with SMTP id q15csp813087dye; Wed, 17 Jan 2024 02:24:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEuQFbDZMdgfUg6v4rMbo7qeoUzN7ljOZwgnZkhFkdQD4s3fFdqxLeBxjrRjTLLSqHsCYng X-Received: by 2002:a0c:9b19:0:b0:681:42fc:6fdb with SMTP id b25-20020a0c9b19000000b0068142fc6fdbmr8625072qve.54.1705487040831; Wed, 17 Jan 2024 02:24:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705487040; cv=pass; d=google.com; s=arc-20160816; b=CZ/V8Il+19lpsNN+GOWQXVQdJYnYzhurmlkllDcdqJ5jnlo70Z4aBUmuqKVQr5kfAz J7sdlgspLcS50rizXUas6SCnfvid3DUYFVYjHxKU5cOPDv+u3s2d/Iev2NBxvkK6tepC zwiqGSWmaWBd5crIz578HNuIC2fBsHxX+b7fHTMooTM67ZAUpfuHPH1l7rjPY3qFf1AE I06tA5xsU4sKGleNbhvQGzIxPRd2fpDFfS7FilqR5eusYycfGSfkxQfi5sZ24mg68q1Z 8jePdCSQCopAlms6LBUZlfa9H/pRqGA0V5QUcevi6jFGKckCN35neDSEVJT9ZKqvAQEv NB3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:reply-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=W3R6jmyvLe1evoVtV3dHgxfmkmZ3yWkWd6LeYczVc6o=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=G11E2Mgb5eYVrriNUIiTwClSzw25uNQ2AcC/JbORItXcI/iL6RxY/DB5m8NzQk8D5X /o63XJDxgZzM8L6zkNa8mlBFZ6FB7nJI43QC0OGhzwvsZgi8A8TIF8OqRpfRUC/4xkSM 98aDgIiYsdp4iZm+a1gtPwUV1/M83P4F5SckHIIYtV8bOdxgNo0eefCDwqF+Gy47q2pt PRPcLjbYPwqig1Hrw/aD4xU6gQJklCQ1CHnfBF8upbnIFf5zl/Taf/kwDJK/B7c4vt5A s7qAAOjt66syn1SM0XBzXYoBhNAbxWEwHUpb0QrthrgFiBiMFXoaBTbhhF5O2fp5AAzu qTIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UNQ1bPWu; arc=pass (i=1); 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=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id v7-20020a0c8e07000000b006818638771asi73035qvb.200.2024.01.17.02.24.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 02:24:00 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=UNQ1bPWu; arc=pass (i=1); 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=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 881E33857B8B for ; Wed, 17 Jan 2024 10:24:00 +0000 (GMT) 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 6729D3858408 for ; Wed, 17 Jan 2024 10:23:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6729D3858408 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6729D3858408 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705486989; cv=none; b=VlPXZJntVTZKpSbznBNF6FC9QxxZO06joRyyscbmqMUmcJeYLI1HBGPshkX1/YfW6hTgE/Lt1/7PtMUZwJ1fuXVNIGrhbsO0wK7bBRXslyxHeKeAsRoJklXxxwWg2B2ywlIqbAF5HG5qtlVBKDoyu2AIoYZR5wOkpsN9z9U5RBk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705486989; c=relaxed/simple; bh=FV09GwEAd69CVJSblVWjg3V1gTrrnwnoVed76vPriSE=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=H7RpfnCMY580nVbdbwXqEoGD9R4uZYJO941hSvyM1W0C5Dr5ZIdnsCqX6ijN5BiGSw1JNNRhnutRTwMCJqXRYswGcop5/1toBzvz/EmkGAHYIBWbWPyFBjmaM4eF2yGCVWjMkBmVNWAd3gw5IxGl8ygyZjoeLMzNN743ACmIZLs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705486987; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type; bh=W3R6jmyvLe1evoVtV3dHgxfmkmZ3yWkWd6LeYczVc6o=; b=UNQ1bPWuW++d/nt6zjGjFFu//Jp2xPW7+D+VCYvq9z0k24V+YFJC9Yv5Sd73CktY1Pr+Cu y2uRNouLix9dGfg0yVPi5bma/lWBsTNC13bqd5vfr0ruqftU1X3WvugXE7jtK0eoS6uayz T2fBjI7OyXdjzIKVSqINpLv+LvpJPTc= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-621-rgIW3NukOuuLxymrD20PpQ-1; Wed, 17 Jan 2024 05:23:05 -0500 X-MC-Unique: rgIW3NukOuuLxymrD20PpQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 40999282FA0F for ; Wed, 17 Jan 2024 10:23:05 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.70]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0522B2166B35 for ; Wed, 17 Jan 2024 10:23:04 +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 40HAN2Yo2308668 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 17 Jan 2024 11:23:03 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 40HAN2UH2308666 for gcc-patches@gcc.gnu.org; Wed, 17 Jan 2024 11:23:02 +0100 Date: Wed, 17 Jan 2024 11:23:01 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] Fix comment typos Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-4.6 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, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Jakub Jelinek Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788332779182508360 X-GMAIL-MSGID: 1788332779182508360 Hi! When looking at PR113410, I found a comment typo and just searched for the same typo elsewhere and found some typos in the comments which had that typo as well. Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk as obvious. 2024-01-17 Jakub Jelinek * tree-into-ssa.cc (pass_build_ssa::gate): Fix comment typo, funcions -> functions, and use were instead of was. * gengtype.cc (dump_typekind): Fix comment typos, funcion -> function and guaranteee -> guarantee. * attribs.h (struct attr_access): Fix comment typo funcion -> function. Jakub --- gcc/tree-into-ssa.cc.jj 2024-01-03 11:51:34.128695146 +0100 +++ gcc/tree-into-ssa.cc 2024-01-16 18:57:38.136438943 +0100 @@ -2499,7 +2499,7 @@ public: /* opt_pass methods: */ bool gate (function *fun) final override { - /* Do nothing for funcions that was produced already in SSA form. */ + /* Do nothing for functions that were produced already in SSA form. */ return !(fun->curr_properties & PROP_ssa); } --- gcc/gengtype.cc.jj 2024-01-03 11:51:23.314845233 +0100 +++ gcc/gengtype.cc 2024-01-16 18:56:57.383009291 +0100 @@ -4718,8 +4718,8 @@ write_roots (pair_p variables, bool emit } /* Prints not-as-ugly version of a typename of T to OF. Trades the uniquness - guaranteee for somewhat increased readability. If name conflicts do happen, - this funcion will have to be adjusted to be more like + guarantee for somewhat increased readability. If name conflicts do happen, + this function will have to be adjusted to be more like output_mangled_typename. */ #define INDENT 2 --- gcc/attribs.h.jj 2024-01-03 11:51:24.200832936 +0100 +++ gcc/attribs.h 2024-01-16 19:08:27.507350364 +0100 @@ -324,7 +324,7 @@ struct attr_access in TREE_VALUE and their positions in the argument list (stored in TREE_PURPOSE). Each expression may be a PARM_DECL or some other DECL (for ordinary variables), or an EXPR for other - expressions (e.g., funcion calls). */ + expressions (e.g., function calls). */ tree size; /* The zero-based position of each of the formal function arguments.