From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 437CB395C834; Wed, 2 Dec 2020 15:18:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 437CB395C834 From: "jakub at redhat dot com" To: dwz@sourceware.org Subject: [Bug default/26987] GCC 11 Ada binaries contain unknown tags Date: Wed, 02 Dec 2020 15:18:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: dwz X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at redhat dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2020 15:18:25 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26987 --- Comment #17 from Jakub Jelinek --- For the DW_FORM_{block,exprloc} case, I'd think something like: --- gcc/dwarf2out.c 2020-12-01 14:39:32.175882586 +0100 +++ gcc/dwarf2out.c 2020-12-02 16:16:44.189189583 +0100 @@ -20780,7 +20780,14 @@ add_scalar_info (dw_die_ref die, enum dw the precision of its type. The precision and signedness of the type will be necessary to re-interpret it unambiguously. */ - add_AT_wide (die, attr, wi::to_wide (value)); + { + rtx v =3D immed_wide_int_const (value, TYPE_MODE (TREE_TYPE (valu= e))); + dw_loc_descr_ref loc + =3D loc_descriptor (v, TYPE_MODE (TREE_TYPE (value)), + VAR_INIT_STATUS_INITIALIZED); + if (loc) + add_AT_loc (die, attr, loc); + } return; } could do it, but as I don't speak Ada I can't verify easily. --=20 You are receiving this mail because: You are on the CC list for the bug.=