Message ID | 039fcfaf-9b00-c0f9-1556-a6c9a98e4e42@suse.cz |
---|---|
State | New |
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> 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 AB30E385840B for <patchwork@sourceware.org>; Wed, 22 Dec 2021 12:03:36 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id CB1D93858D35 for <gcc-patches@gcc.gnu.org>; Wed, 22 Dec 2021 12:03:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CB1D93858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A0A281F388; Wed, 22 Dec 2021 12:03:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1640174598; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WQRqtrc0Q4O/5OLcklZKWs5xG4l7Ow5QB7zM6ux5OV4=; b=pylvLckt4Wb1KorHHJIPuy1ecdKu5TuzQf0/O51Qtmf9qJz8Rdc88zA7+NMOF1AnDaHsmF yGJlav0kDwxFY0sKfY9lYbcm1imlgKrJVC4bMqgXtk9YEmn6hQWW/f4A5ukNPXoNfl/7Yy EG2IgKDubyOJak3QjuhIRCi1cBcmFWg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1640174598; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WQRqtrc0Q4O/5OLcklZKWs5xG4l7Ow5QB7zM6ux5OV4=; b=oH07s0kPqmskX2pKMc6cQtWvLDsmMbTXV6vCd0jBhHEN/xT3yjCgT+olHdFJsEDdoiw51n /P6MRDIABsecjtAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8C6BD13D10; Wed, 22 Dec 2021 12:03:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id TXBiIQYUw2E2JQAAMHmgww (envelope-from <mliska@suse.cz>); Wed, 22 Dec 2021 12:03:18 +0000 Message-ID: <039fcfaf-9b00-c0f9-1556-a6c9a98e4e42@suse.cz> Date: Wed, 22 Dec 2021 13:03:18 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 From: =?utf-8?q?Martin_Li=C5=A1ka?= <mliska@suse.cz> Subject: [PATCH] Fix typo in type verification. To: gcc-patches@gcc.gnu.org Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Cc: Jan Hubicka <hubicka@ucw.cz> Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> |
Series |
Fix typo in type verification.
|
|
Commit Message
Martin Liška
Dec. 22, 2021, 12:03 p.m. UTC
Hello. The patch is quite obvious fix. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin PR ipa/103786 gcc/ChangeLog: * tree.c (verify_type): Fix typo. --- gcc/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On December 22, 2021 1:03:18 PM GMT+01:00, "Martin Liška" <mliska@suse.cz> wrote: >Hello. > >The patch is quite obvious fix. > >Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > >Ready to be installed? Ok. Richard. >Thanks, >Martin > > PR ipa/103786 > >gcc/ChangeLog: > > * tree.c (verify_type): Fix typo. >--- > gcc/tree.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/gcc/tree.c b/gcc/tree.c >index 72cceda568f..0741e3b01af 100644 >--- a/gcc/tree.c >+++ b/gcc/tree.c >@@ -13530,7 +13530,7 @@ verify_type (const_tree t) > tree ct = TYPE_CANONICAL (t); > if (!ct) > ; >- else if (TYPE_CANONICAL (t) != ct) >+ else if (TYPE_CANONICAL (ct) != ct) > { > error ("%<TYPE_CANONICAL%> has different %<TYPE_CANONICAL%>"); > debug_tree (ct);
diff --git a/gcc/tree.c b/gcc/tree.c index 72cceda568f..0741e3b01af 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -13530,7 +13530,7 @@ verify_type (const_tree t) tree ct = TYPE_CANONICAL (t); if (!ct) ; - else if (TYPE_CANONICAL (t) != ct) + else if (TYPE_CANONICAL (ct) != ct) { error ("%<TYPE_CANONICAL%> has different %<TYPE_CANONICAL%>"); debug_tree (ct);