Message ID | ZagZt77DbmY8Ndje@kam.mff.cuni.cz |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:30f:b0:101:a8e8:374 with SMTP id ia15csp94275dyb; Wed, 17 Jan 2024 10:18:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGjBQ43ktr6B9PP+t7x8H0FXTutRorfFyr1jVlH2dMHO5fq/Gxmyv8eXErB4yRVJjVi8n0U X-Received: by 2002:ac8:4e4e:0:b0:42a:151e:dca1 with SMTP id e14-20020ac84e4e000000b0042a151edca1mr389775qtw.77.1705515489698; Wed, 17 Jan 2024 10:18:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705515489; cv=pass; d=google.com; s=arc-20160816; b=O1fYjJ3o2c2HZ9DDtCJkNiwQ9ZuqdGPdZa+3ulYPAIBP4K2r3w8YY3bSBRamq093qT tgE9DeSZWASof4K5gm1KFfdZOxGDg6Hp+iepEg1kIFQA6ncwTI3SRDlp/XTTFhG7ZFH4 08qZDzvnnYg2h/gmCpfzo5g+LBYf5dFihP4+kZs+DjfApVkliYMI6pm1SeD5A5VcHYyJ B+7sTUFkaN3q8lgk0/YinqJtM2MgssAHiZUGWk1P9Ndea1faJu187+QP93oDHpgdADtf teHhxr3afYv5RXGv1tqKwljzLSUU4G5JQ6flVnm6LjGnFG8vZYTnsTihYP3kt1nsmYf0 9wig== 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:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=5D/bvlpcrWXRrJgORVHaqYV7ajyGRwPopmo/IKd08bs=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=0Z6kC5O9KpXQ2+gsEzn8n+XFKtqXhhCL6NYF7tKVmbb9I37HjwH0KLbIHl20yxEYjo k7GbfWMRVZYiYRN0tYSG9foUcMyQZG2ZK7G/vGj5uF6W8PW1f0Oy7EP6ILfuv3e3fDAz Hk81qzQqHBiUK3AfII7hI2q2OL5BrYvvLE8KRxXqbf/4IELTYrG6WRgEPGXzH/780Wnf 3rqNhwFwGG/NlxiFOhWWBw6XpJw21VSlMT0nTW/WlOESSFxdX4eGOGDIR50ZtlWKewoi 2TEZ4A5YPAmzZnjKLieCirpcoDglNccXv64Lk8sNH3K6b91BWJhbhljASdnMpxpTR1Sq qdTA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=Ttg0NtIq; 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=ucw.cz Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id p2-20020a05622a00c200b0042a0ddf079fsi1710295qtw.342.2024.01.17.10.18.09 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 10:18:09 -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=@ucw.cz header.s=gen1 header.b=Ttg0NtIq; 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=ucw.cz Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3743F3858D33 for <ouuuleilei@gmail.com>; Wed, 17 Jan 2024 18:18:09 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) by sourceware.org (Postfix) with ESMTPS id C39B03858D33 for <gcc-patches@gcc.gnu.org>; Wed, 17 Jan 2024 18:17:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C39B03858D33 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=ucw.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kam.mff.cuni.cz ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C39B03858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.113.20.16 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705515451; cv=none; b=N2sr4YTMzX91xHLX6Y3liAJN2jL5qd9m6r+UjhftSzKgwrWSkj+IMMNYojCwZhsdEzCsDcKrI0ARK7MvTR3LqIjamrB8zu/rYlx1NHqhPinYab/2zfrG7ZZFZDmQgv6gKPjE1tdTdL+JIkp5pWxjb1krJE/uhHeadJdbrFsAjP0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705515451; c=relaxed/simple; bh=Rbrm2JgrgfP2y75DyujLwMMKusg2P7h4J5fv6DWtbeQ=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=xFRUmHTtt2ERhEECGaC9HiH77D2BIv+I0qxlUq1me/vRc3mnBq1durqKV+GtUJ9FPjTRBjIo09SnkMlgmMVe6BT+vW3gjafH+7dNjEWTIWwZrEw75fgF0OnPGhMY9fn6jEfSmJwukFYmdZ9eLNQBjCRHJ9F4iJ6N+7DBp2O6HCE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 74DC6283B66; Wed, 17 Jan 2024 19:17:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1705515447; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=5D/bvlpcrWXRrJgORVHaqYV7ajyGRwPopmo/IKd08bs=; b=Ttg0NtIqUSJ1b9aRQgdTON7YJx5gjr51G/Yo8DzI6gJb5b82jLe112QK3ReIvO23CfkxNe g5BODyK5jHfbhU5w/WJvc3x2IxSEdtQKdNWMLphdcR/bIO57YxeYxiJbSje08JmPRMbFKh +P5WQvU8sxj4G0q4jpaWFIO8b8a/CWg= Date: Wed, 17 Jan 2024 19:17:27 +0100 From: Jan Hubicka <hubicka@ucw.cz> To: gcc-patches@gcc.gnu.org Subject: Remove accidental hack in ipa_polymorphic_call_context::set_by_invariant Message-ID: <ZagZt77DbmY8Ndje@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, JMQ_SPF_NEUTRAL, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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: 1788362610042598635 X-GMAIL-MSGID: 1788362610042598635 |
Series |
Remove accidental hack in ipa_polymorphic_call_context::set_by_invariant
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Jan Hubicka
Jan. 17, 2024, 6:17 p.m. UTC
Hi, I managed to commit a hack setting offset to 0 in ipa_polymorphic_call_context::set_by_invariant. This makes it to give up on multiple inheritance, but most likely won't give bad code since the ohter base will be of different type. Bootstrapped/regtested x86_64-linux, comitted. gcc/ChangeLog: * ipa-polymorphic-call.cc (ipa_polymorphic_call_context::set_by_invariant): Remove accidental hack reseting offset.
diff --git a/gcc/ipa-polymorphic-call.cc b/gcc/ipa-polymorphic-call.cc index 8667059abee..81de6d7fc33 100644 --- a/gcc/ipa-polymorphic-call.cc +++ b/gcc/ipa-polymorphic-call.cc @@ -766,7 +766,6 @@ ipa_polymorphic_call_context::set_by_invariant (tree cst, tree base; invalid = false; - off = 0; clear_outer_type (otr_type); if (TREE_CODE (cst) != ADDR_EXPR)