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: 84241 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5D9F63858410 for ; Wed, 17 Jan 2024 10:23:45 +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+patchwork=sourceware.org@gcc.gnu.org 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.