From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 13D4C385DC16; Fri, 3 Apr 2020 12:52:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13D4C385DC16 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585918364; bh=d2Wh/pW4XAssjzilA5h7+n8COZQh+SCtKTvpNwj1rbQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LMD+dUPCRLtkuvECI8mWp/ltmTO2MaxFcystc4XNZtRc8sTQHXRsUVJ0tdKmXlb5e ypBOEQpOzs07bz5m476hfCvENdwdojevgYrTe5T0ROhO6xylsVb1jWk7tv9Nca01kb gxLQEDPSshrRKr5XeydRfmpNC8N1B223459A8JyM= From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/94450] lto abstract variable emitted as concrete decl Date: Fri, 03 Apr 2020 12:52:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2020 12:52:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94450 --- Comment #10 from Tom de Vries --- (In reply to rguenther@suse.de from comment #9) > On Fri, 3 Apr 2020, vries at gcc dot gnu.org wrote: >=20 > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94450 > >=20 > > --- Comment #8 from Tom de Vries --- > > (In reply to Richard Biener from comment #7) > > > The DW_TAG_imported_unit are now gone for GCC 10. So can we consider= this > > > fixed? > >=20 > > I'd like a PR to refer to at the to-be-added xfail in the gdb test-case= (and > > the PR should be open as long as that test fails with trunk gcc). It do= esn't > > matter for me whether that's this particular PR or a follow-up PR. >=20 > OK, so if you have a (single?) specific testcase that's still affected > please duplicate that into a new bugzilla. It's always better to > have something specific to track. >=20 > So did the patch not change anything? Well, the changes I asked for related to the example in comment 0 are: - drop the import - change the tag from DW_TAG_compile_unit to DW_TAG_partial unit. AFAIU the patch only removes the import, so in that sense I do not consider= the test-case reported in comment 0 addressed. I have not tried out the patch. FWIW, I did try a quick dwarf-assembly experiment (not the ada one, which will cost more time I expect, but modifi= ed gdb testsuite test-case gdb.dwarf2/imported-unit.exp) and confirmed that neither only removing the import nor only changing the tag is sufficient to= get only one entry in the symtab. Anyway, I understand the example is somewhat abstract, and I'll file the ac= tual ada example.=