From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id 344F93858CDB for ; Sun, 2 Apr 2023 19:43:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 344F93858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-x62a.google.com with SMTP id o11so26116958ple.1 for ; Sun, 02 Apr 2023 12:43:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680464617; x=1683056617; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=aj1SK5vwEYwaCS/p4eFiYDuTS+t33Z3q1aOboc+VweE=; b=fZTag4UQuFlkn/PKSQumuXcBsFS1k2MnzZkUCIaeaxzcqoZXQ1QfqTmNPytAmxsgOA ZklF/364sevoFUU8d1G0hroYnEyGI7b1Mr3jlfCprRCvz3Tgz3TzS3Rh2A0lSlypstc6 1JOfLmqx8ysRJql09O0Q7hWWA9NT9fVv89cut5/eD7ed3b66n6apTNkrlFfGjK4fy9WU UgTR6L4ghuTp125bVhkn10U9+6UUv5UQa5ijcx5MXYEMw1cmCLENs9Mykr5SrFtrMI/f nBPJzxFTZ9GXXhtx/wYHFnlzgxEdsLqa4qXO1BzD8qt4EKlTxrQ6SGopBC+QUnXlP3Ls 9Xog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680464617; x=1683056617; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aj1SK5vwEYwaCS/p4eFiYDuTS+t33Z3q1aOboc+VweE=; b=RPvMSMHCGKgppx7SvCPRPjOH/75N5yePGJbfuxmhs+KYPMQfhGNNyB/GUZShwnmRYz 8aNmoyrviPm0tmvpCZP6/V3mm6wioRe1uwrFELfgnDHeZsbYheYLF6pntr+ppSFjfzQu LyKeiDGJdJSUqpqTeyeanLCtI3nxE46sRi0h6EvatUxzuD2Vx4R16ve2ANxzcF6KAbvy 3rh8jTQOYKWbJveF46M/P8N3cysLgofC7dk0KM0+cnMPpFb17ESeMnxz+U+BGtoaXOfO n+0WKF4NPf4RhtdZY/D9bW79dM1x6uQZAfa8gQqnUOPFveuOr9gUX1Z2Qib3s4DVtRKM qFvA== X-Gm-Message-State: AAQBX9c1JsBSLh/E0jRmki0cLRViHNtTCjUmXG4C6irzJmwghsOBvSra wM1QtID8/VJqMUVoNF4Mk6Y= X-Google-Smtp-Source: AKy350YNqSb42vCuAHIyN02xcj4PD8UZhk0EXWJknHKPQRkajLVwqa0Xh7giN+aSZHlXFcrN+mBotA== X-Received: by 2002:a17:902:d482:b0:1a2:8866:e8a0 with SMTP id c2-20020a170902d48200b001a28866e8a0mr17682872plg.23.1680464616974; Sun, 02 Apr 2023 12:43:36 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::f0a? ([2601:681:8600:13d0::f0a]) by smtp.gmail.com with ESMTPSA id b13-20020a170902b60d00b0019f387f2dc3sm5137171pls.24.2023.04.02.12.43.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 02 Apr 2023 12:43:36 -0700 (PDT) Message-ID: <4e128562-7a60-e189-de6b-0122529be938@gmail.com> Date: Sun, 2 Apr 2023 13:43:35 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH] ipa/106124 - ICE with -fkeep-inline-functions and OpenMP Content-Language: en-US To: Richard Biener , gcc-patches@gcc.gnu.org Cc: jason@redhat.com, Jakub Jelinek References: <20230328062050.EC5563858408@sourceware.org> From: Jeff Law In-Reply-To: <20230328062050.EC5563858408@sourceware.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 3/28/23 00:20, Richard Biener via Gcc-patches wrote: > The testcases in this bug reveal cases where an early generated > type is collected because it was unused but gets attempted to > be recreated later when a late DIE for a function (an OpenMP > reduction) is created. That's unexpected and possibly the fault > of OpenMP but the following allows the re-creation of the context > type to succeed. > > Bootstrapped and tested on x86_64-unknown-linux-gnu. > > OK? > > Thanks, > Richard. > > PR ipa/106124 > * dwarf2out.cc (lookup_type_die): Reset TREE_ASM_WRITTEN > so we can re-create the DIE for the type if required. > > * g++.dg/gomp/pr106124.C: New testcase. OK jeff