From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 197D63857C5E; Tue, 9 Mar 2021 23:22:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 197D63857C5E From: "gprocida+abigail at google dot com" To: libabigail@sourceware.org Subject: [Bug default/27554] New: abidw emits unreachable types and declarations Date: Tue, 09 Mar 2021 23:22:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: libabigail X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gprocida+abigail at google dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dodji at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2021 23:22:52 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27554 Bug ID: 27554 Summary: abidw emits unreachable types and declarations Product: libabigail Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: default Assignee: dodji at redhat dot com Reporter: gprocida+abigail at google dot com CC: libabigail at sourceware dot org Target Milestone: --- A fairly common thing to do is to expose C bindings only, even if a library= is written in C++ (or some other language). We noticed that ABI XML contains all (or at least very many) of the C++ declarations and their type dependencies found in the DWARF, even if none of these contribute to the ABI of such a library. For one AOSP library, a rough analysis I did suggested that of the 153358 t= ypes emitted in the XML, only 103 of them are reachable from the exported library symbols. Similarly, there are 15261 declarations with mangled-name attribut= es, but only 66 exported symbols. There are clearly massive space savings possi= ble. Dodji, do you think this would be a lot of work to implement within libabig= ail itself? --=20 You are receiving this mail because: You are on the CC list for the bug.=