Message ID | 20231128155700.06E3C133B5@imap2.dmz-prg2.suse.org |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp4027111vqx; Tue, 28 Nov 2023 07:58:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IHG7pyEJwxYNN751J+92wS+WL6+sTv6xTBACy6/+5Zqpv02zJcvArTR/cNRsW5TGbzNkIXh X-Received: by 2002:a05:620a:40cf:b0:77d:b40c:d543 with SMTP id g15-20020a05620a40cf00b0077db40cd543mr6951200qko.32.1701187095627; Tue, 28 Nov 2023 07:58:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701187095; cv=pass; d=google.com; s=arc-20160816; b=k+1uZ3weRo557GUYPLMo9wDihPUIJs+/qKqDxsEA2EizP2YR92ZUneAqiLR7K9dTBy 1ObBv2rEXlfeaijfw4P06lKwhAlwspZiy/f6kPGIvkTHJg5/Z+Q7X40FD46WgnRVgnTz qjNDls19sX1O3i47kmZDYi0v2B0Zs3/mPCMvBybcDtlEFHT4AJMPBOMArC5fPuwUwRP9 sY2jdOEi0KhCMpXaN9ADEvvp9DNeMqMRoswhlWJSXfH781uhWdObzHWSQP/rKCu5UVlH eq6n6CLBrwS6I4q8nQItxwf6dUa3XERryDBict6HdQMcUXJb7b4HkhaQ4g8JQ7LmA7Ik /lng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:mime-version:subject :to:from:date:arc-filter:dmarc-filter:delivered-to; bh=7JnyfS61uBmxjN9f4h7W1lOK9mm2LbpMxz0RbNTPh8Q=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=pwIfPx1q30GqR+EjrzG486VQY8D710z7sikVj8Yj8w2pjVX8+sIfOS692M5kxNqXpu tQx1aLzUfcRbVfG3HveNP3yJ9gLyLIjYecxsonYKnBoSKvh4svhhsp1NiacQmxYaWjyw CA69JVIS7l90yCFEyf0dxUxKhq0Ucnb13FuitHFRVbDKPgwMHdaGwCz3+xvqa99uKrh4 at0dsUg+IJXR11RE37G67jgue2bHoUQ65tkzQeR7QLwPtBe3lq+GVTxnR+5e5LcA5hrF gOpeuVMAB5DNjZ5VAJJfBAUxPxTjysELKXHzjjGPn3wHR8vjDuQ9+punlCLESLD1kiW3 OtZw== ARC-Authentication-Results: i=2; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ks26-20020a056214311a00b0067a3b181afdsi5259029qvb.135.2023.11.28.07.58.15 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 07:58:15 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1BAA83839DEB for <ouuuleilei@gmail.com>; Tue, 28 Nov 2023 15:57:45 +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.223.131]) by sourceware.org (Postfix) with ESMTPS id 48844388451B for <gcc-patches@gcc.gnu.org>; Tue, 28 Nov 2023 15:57:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 48844388451B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 48844388451B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701187023; cv=none; b=M6pzu5V9+rVmhc7sXYTKpAXBdAAcORU58L7Iok9ci3CEbzIHuefbx4GSymWwIwDokmH41FHQWgPGuZyp68bLqBVQLRiqiMGjV6r0yGm3ypmCVTxQ/cSZnpfwYxMquovhxv2vLdChyCJXZAHl9W0qbc6vIiczuDEYpTmb88oZYi8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701187023; c=relaxed/simple; bh=X/Hw1iCHKrD7OqLaRvdmXV+jkYSmLXb8Y9EGuw3Vfoo=; h=Date:From:To:Subject:MIME-Version:Message-Id; b=NCFLjKayEJifR4zcffhGEoCbTFTQubcpebtHz/sYx4tVvjDXSb3ciosH743A2wHWdChcmhgkSbKioHRea5Pk/NWxqHU8ZzcL4v61U7c/KIxlduoRi10/AwjxbIkELLOq5RWe4hhmUt96nqIKdXgl1dQyUJJX0yl4oNZh2juxLWU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 2AE291F890 for <gcc-patches@gcc.gnu.org>; Tue, 28 Nov 2023 15:57:00 +0000 (UTC) Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 06E3C133B5 for <gcc-patches@gcc.gnu.org>; Tue, 28 Nov 2023 15:57:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id JwAHAMwNZmU6TwAAn2gu4w (envelope-from <rguenther@suse.de>) for <gcc-patches@gcc.gnu.org>; Tue, 28 Nov 2023 15:56:59 +0000 Date: Tue, 28 Nov 2023 16:56:59 +0100 (CET) From: Richard Biener <rguenther@suse.de> To: gcc-patches@gcc.gnu.org Subject: [PATCH] middle-end/112732 - stray TYPE_ALIAS_SET in type variant MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Message-Id: <20231128155700.06E3C133B5@imap2.dmz-prg2.suse.org> X-Spamd-Bar: +++++++++++++ X-Spam-Score: 13.15 X-Rspamd-Server: rspamd1 Authentication-Results: smtp-out2.suse.de; dkim=none; spf=softfail (smtp-out2.suse.de: 2a07:de40:b281:104:10:150:64:98 is neither permitted nor denied by domain of rguenther@suse.de) smtp.mailfrom=rguenther@suse.de; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=suse.de (policy=none) X-Rspamd-Queue-Id: 2AE291F890 X-Spamd-Result: default: False [13.15 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:98:from]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(3.00)[1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[gcc-patches@gcc.gnu.org]; TO_DN_NONE(0.00)[]; R_SPF_SOFTFAIL(4.60)[~all:c]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[]; NEURAL_SPAM_LONG(3.50)[1.000]; DBL_BLOCKED_OPENRESOLVER(0.00)[tree.cc:url]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(2.20)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.14)[68.15%]; DMARC_POLICY_SOFTFAIL(0.10)[suse.de : No valid SPF, No valid DKIM,none] X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, 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 <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> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783823960013624483 X-GMAIL-MSGID: 1783823960013624483 |
Series |
middle-end/112732 - stray TYPE_ALIAS_SET in type variant
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Richard Biener
Nov. 28, 2023, 3:56 p.m. UTC
The following fixes a stray TYPE_ALIAS_SET in a type variant built by build_opaque_vector_type which is diagnosed by type checking enabled with -flto. Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. PR middle-end/112732 * tree.cc (build_opaque_vector_type): Reset TYPE_ALIAS_SET of the newly built type. --- gcc/tree.cc | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/gcc/tree.cc b/gcc/tree.cc index e9f703e7237..10c6e1ecc58 100644 --- a/gcc/tree.cc +++ b/gcc/tree.cc @@ -10274,6 +10274,8 @@ build_opaque_vector_type (tree innertype, poly_int64 nunits) TYPE_NEXT_VARIANT (cand) = TYPE_NEXT_VARIANT (t); TYPE_NEXT_VARIANT (t) = cand; TYPE_MAIN_VARIANT (cand) = TYPE_MAIN_VARIANT (t); + /* Type variants have no alias set defined. */ + TYPE_ALIAS_SET (cand) = -1; return cand; }