public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: "woodard at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: libabigail@sourceware.org
Subject: [Bug default/30048] incorrect qualifiers within compound types
Date: Fri, 27 Jan 2023 01:10:34 +0000	[thread overview]
Message-ID: <bug-30048-9487-rz8hykqleU@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-30048-9487@http.sourceware.org/bugzilla/>

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

Ben Woodard <woodard at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |woodard at redhat dot com

--- Comment #2 from Ben Woodard <woodard at redhat dot com> ---
I would call this one of many DWARF idiom issues. At its base libabigail uses
string comparisons in many cases rather than abstractions of the semantic
information. This can cause problems like this when the expression in the DWARF
is derived the source code and two literally different strings represent
semantically identical items.

I have filed several of these but we haven't gotten to looking at them yet.
Here are some examples:
   https://sourceware.org/bugzilla/show_bug.cgi?id=28641
   https://sourceware.org/bugzilla/show_bug.cgi?id=28664
   https://sourceware.org/bugzilla/show_bug.cgi?id=28675

I find a lot of things like this when trying to test compatibility between
things which are built with different compilers. 

Something like:
abidiff lib_built_with_gcc.so same_lib_built_with_clang.so

The last time that I talked to Dodji about these he suggested either fix the
string comparison or putting in special case code that handles these cases
after the string comparison fails.

The tricky thing is really knowing what are actually ABI artifacts and what are
not. The order of restrict in relation to const doesn't matter but is the fact
that restrict included in the declaration actually an ABI artifact? It wouldn't
affect the calling convention but the codegen could be different if restrict
were not included in the decl. So we don't want to just ignore restrict. What
if a library added 'restrict' to an exported function's parameter. Previous
users of the library may not have been expecting that requirement. Is that
actually an ABI change?

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

  parent reply	other threads:[~2023-01-27  1:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-25  9:40 [Bug default/30048] New: " gprocida at google dot com
2023-01-25  9:57 ` [Bug default/30048] " gprocida at google dot com
2023-01-27  1:10 ` woodard at redhat dot com [this message]
2023-01-27 10:05 ` gprocida at google dot com
2023-01-27 10:10 ` gprocida at google dot com
2023-02-03  0:11 ` dodji at redhat dot com
2023-02-07 17:37 ` dodji at redhat dot com
2023-02-08 13:08 ` gprocida at google dot com
2023-02-10 12:50   ` Dodji Seketeli
2023-02-10 12:50 ` dodji at seketeli dot org
2023-02-10 12:50 ` dodji at redhat 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-30048-9487-rz8hykqleU@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).