public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: "mark at klomp dot org" <sourceware-bugzilla@sourceware.org>
To: libabigail@sourceware.org
Subject: [Bug default/26684] abidiff says that some bit field elements missing in version of binary with dwarf5 debuginfo.
Date: Thu, 01 Oct 2020 20:54:11 +0000	[thread overview]
Message-ID: <bug-26684-9487-oRFK4fUaMh@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-26684-9487@http.sourceware.org/bugzilla/>

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

--- Comment #8 from Mark Wielaard <mark at klomp dot org> ---
Simpler example that shows the issue:

struct pea
{
  int type;
  long a:1, b:1, c:1;
};

struct pea p;

gcc -gdwarf-4:

 [    1d]    structure_type       abbrev: 2
             name                 (string) "pea"
             byte_size            (data1) 8
             decl_file            (data1) bf.c (1)
             decl_line            (data1) 1
             decl_column          (data1) 8
             sibling              (ref4) [    62]
 [    2a]      member               abbrev: 3
               name                 (strp) "type"
               decl_file            (data1) bf.c (1)
               decl_line            (data1) 3
               decl_column          (data1) 7
               type                 (ref4) [    62]
               data_member_location (data1) 0
 [    37]      member               abbrev: 4
               name                 (string) "a"
               decl_file            (data1) bf.c (1)
               decl_line            (data1) 4
               decl_column          (data1) 8
               type                 (ref4) [    69]
               byte_size            (data1) 8
               bit_size             (data1) 1
               bit_offset           (data1) 31
               data_member_location (data1) 0
 [    45]      member               abbrev: 4
               name                 (string) "b"
               decl_file            (data1) bf.c (1)
               decl_line            (data1) 4
               decl_column          (data1) 13
               type                 (ref4) [    69]
               byte_size            (data1) 8
               bit_size             (data1) 1
               bit_offset           (data1) 30
               data_member_location (data1) 0
 [    53]      member               abbrev: 4
               name                 (string) "c"
               decl_file            (data1) bf.c (1)
               decl_line            (data1) 4
               decl_column          (data1) 18
               type                 (ref4) [    69]
               byte_size            (data1) 8
               bit_size             (data1) 1
               bit_offset           (data1) 29
               data_member_location (data1) 0

gcc -gdwarf-5:

 [    1e]    structure_type       abbrev: 3
             name                 (string) "pea"
             byte_size            (data1) 8
             decl_file            (data1) bf.c (1)
             decl_line            (data1) 1
             decl_column          (data1) 8
             sibling              (ref4) [    54]
 [    2b]      member               abbrev: 4
               name                 (strp) "type"
               decl_file            (data1) bf.c (1)
               decl_line            (data1) 3
               decl_column          (data1) 7
               type                 (ref4) [    54]
               data_member_location (data1) 0
 [    38]      member               abbrev: 1
               name                 (string) "a"
               decl_file            (implicit_const) bf.c (1)
               decl_line            (implicit_const) 4
               decl_column          (data1) 8
               type                 (ref4) [    5b]
               bit_size             (implicit_const) 1
               data_bit_offset      (data1) 32
 [    41]      member               abbrev: 1
               name                 (string) "b"
               decl_file            (implicit_const) bf.c (1)
               decl_line            (implicit_const) 4
               decl_column          (data1) 13
               type                 (ref4) [    5b]
               bit_size             (implicit_const) 1
               data_bit_offset      (data1) 33
 [    4a]      member               abbrev: 1
               name                 (string) "c"
               decl_file            (implicit_const) bf.c (1)
               decl_line            (implicit_const) 4
               decl_column          (data1) 18
               type                 (ref4) [    5b]
               bit_size             (implicit_const) 1
               data_bit_offset      (data1) 34

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

  parent reply	other threads:[~2020-10-01 20:54 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-30 18:18 [Bug default/26684] New: " wcohen at redhat dot com
2020-09-30 18:19 ` [Bug default/26684] " wcohen at redhat dot com
2020-09-30 18:20 ` wcohen at redhat dot com
2020-09-30 18:21 ` wcohen at redhat dot com
2020-09-30 18:22 ` wcohen at redhat dot com
2020-10-01 16:01 ` mark at klomp dot org
2020-10-01 17:00 ` wcohen at redhat dot com
2020-10-01 20:50 ` mark at klomp dot org
2020-10-01 20:54 ` mark at klomp dot org [this message]
2020-10-01 21:55 ` mark at klomp dot org
2020-10-02 10:07 ` dodji at redhat dot com
2020-10-02 14:42 ` mark at klomp dot org
2020-10-02 14:46 ` mark at klomp dot org
2020-10-02 14:52 ` mark at klomp dot org
2020-10-20 10:26 ` dodji at redhat dot com
2020-10-23  8:24 ` dodji at redhat dot com
2020-10-23 10:35 ` fche at redhat dot com
2020-10-23 11:29 ` dodji at redhat dot com
2023-01-01 18:09 ` 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-26684-9487-oRFK4fUaMh@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).