From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 0A245397B802 for ; Thu, 15 Jul 2021 10:35:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0A245397B802 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mentor.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: H7wjPerVKPCIGCQKNCgQwNFlX1F1QqoDvl+03yos8Ei9qqCKeEvpp1vxuEMiTkTADuXLBRvP5B JiJTyOniNddzFMwkTybKWuNz12ggL24ZWc1UjdNm4O0NBqKJRXvRx+9Ue05FlberhtUq2+O6Ba M+1qYDQ4ff2DbdVgK7o1WfM/IJjUn0rV2aIyvnqMJ82vxzEWExQ8G5eo119j+rGNvXmV6/DzSY CrbopCknqCGLJBq0J9ddJXoTSthagvkbXyYHVqZYCKOTBveFhKenZtqBnN3hscJqM5bA5oGwC8 6dYivthN25CsTmAyXwU6SeE/ X-IronPort-AV: E=Sophos;i="5.84,240,1620720000"; d="scan'208";a="63548695" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 15 Jul 2021 02:35:53 -0800 IronPort-SDR: yGUhptf65JbivboZL4pz22LxPaDzHfBXnS0Hwr1ZzZJbORuUrSaCOH23EoNRZpHH2i0YmUwxyr lAhlXa1e9Wd7vnzv2hqr3+2gEwXismHIlRpgRp55vDLiXdwiwnFO0atugdEH61uh4kMV6Yezpr nXycjIdz0JESOHVz2anoDxUx8QxiajLup6QL/1nOR3ivkQ2Q8FZVmNvDNhcwfbGu3X/d6GkWTY rMjUnqBZDz+1ESzBre2QHR4DwwXIqQ19a33AJmqsFX0ZNhZWo6l3nd3nRhP6InVYWYP6f7ctF3 p5Y= Subject: Re: [PATCH] [DWARF] Fix hierarchy of debug information for offload kernels. To: Thomas Schwinge , Richard Biener , Abid Qadeer , Jakub Jelinek CC: GCC Patches References: <20210701151657.935006-1-abidh@codesourcery.com> <8735sfamu7.fsf@dem-tschwing-1.ger.mentorg.com> From: Hafiz Abid Qadeer Message-ID: <50d1657e-c5de-9cb9-1aaa-233f27dfe9b9@mentor.com> Date: Thu, 15 Jul 2021 11:35:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <8735sfamu7.fsf@dem-tschwing-1.ger.mentorg.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2021 10:35:55 -0000 On 15/07/2021 11:33, Thomas Schwinge wrote: > >> Note that the "parent" should be abstract but I don't think dwarf has a >> way to express a fully abstract parent of a concrete instance child - or >> at least how GCC expresses this causes consumers to "misinterpret" >> that. I wonder if adding a DW_AT_declaration to the late DWARF >> emitted "parent" would fix things as well here? > > (I suppose not, Abid?) > Yes, adding DW_AT_declaration does not fix the problem. -- Hafiz Abid Qadeer Mentor, a Siemens Business