public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: "gprocida at google dot com" <sourceware-bugzilla@sourceware.org>
To: libabigail@sourceware.org
Subject: [Bug default/28289] [1.7 -> 1.8 regression] false positives involving enum synthetic type names
Date: Mon, 30 Aug 2021 07:43:36 +0000	[thread overview]
Message-ID: <bug-28289-9487-x9nePkWSOG@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28289-9487@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=28289

--- Comment #4 from gprocida at google dot com ---
The problem that the commit mentioned addressed could have been addressed in at
least one other way (by changing the hashing used for enum types and reordering
type elements keying by hash).

The treatment of underlying enum type by DWARF and libabigail is a bit uneven.
I don't think there's any requirement for DWARF to give a name (such as "int")
to the underlying type. The most important aspect is size. However, in C++, the
exact type can be user-specified and can impact overloading resolution /
implicit conversions to some degree (say bool vs int).

The commit, like other changes over the last year, resulted in changes to the
ABI representation for the same input. As you point out, the name change
triggers abidiff. In post-1.8 development the (first, partial) bitfield offset
fix warranted an XML version bump, making abidiff refuse to compare mismatched
XML files, but no such thing was done for the 1.7->1.8 changes.

In theory, abidiff could be tweaked to ignore underlying type name when it
comes to C enums; in practice this may not be straightforward. I'm not actually
sure what the treatment of C++ enums is.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2021-08-30  7:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-30  7:20 [Bug default/28289] New: " lukas at wunner dot de
2021-08-30  7:24 ` [Bug default/28289] " lukas at wunner dot de
2021-08-30  7:28 ` lukas at wunner dot de
2021-08-30  7:28 ` lukas at wunner dot de
2021-08-30  7:29 ` lukas at wunner dot de
2021-08-30  7:43 ` gprocida at google dot com [this message]
2021-09-05 13:48 ` lukas at wunner dot de

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-28289-9487-x9nePkWSOG@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=libabigail@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).