public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: "gprocida+abigail at google dot com" <sourceware-bugzilla@sourceware.org>
To: libabigail@sourceware.org
Subject: [Bug default/26807] New: Issues with enum-underlying types
Date: Thu, 29 Oct 2020 10:08:11 +0000	[thread overview]
Message-ID: <bug-26807-9487@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 26807
           Summary: Issues with enum-underlying types
           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: ---

Hi.

I've posted an RFC patch which illustrates a few issues with libabigail's
treatment of enum-underlying types.

https://sourceware.org/pipermail/libabigail/2020q4/002788.html

Repeating them here:

- signedness and changes thereof (as seen in DWARF) are not modelled
- size and alignment changes are reported twice
- size changes are not considered ABI incompatibilities
- *all* enum-underlying types are currently considered anonymous
  and have the same name, even when they differ in size, alignment or
  signedness                                                                    

The last item is closely related to the others but is troublesome in a
different way. It can cause non-deterministic ordering of such types in XML
output (in the presence of concurrent heap-allocation by other threads). In
particular, it causes test flakiness.

I've not attempted to find a way that signedness changes can cause API
surprises. However, there are mentions of undefined behaviour that may occur
when casting in https://en.cppreference.com/w/cpp/language/enum.

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

             reply	other threads:[~2020-10-29 10:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-29 10:08 gprocida+abigail at google dot com [this message]
2020-11-23 16:43 ` [Bug default/26807] " gprocida+abigail at google dot com

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-26807-9487@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).