From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4474A3896C3C; Wed, 3 Feb 2021 10:26:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4474A3896C3C From: "gprocida+abigail at google dot com" To: libabigail@sourceware.org Subject: [Bug default/27331] New: abidiff --leaf-changes-only is blind to bitfield offset changes Date: Wed, 03 Feb 2021 10:26:24 +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: Wed, 03 Feb 2021 10:26:24 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27331 Bug ID: 27331 Summary: abidiff --leaf-changes-only is blind to bitfield offset changes 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: --- I have verified this at 271e3afaf6f2b6f38b4f125f64f5b24a8f78459f which is current master and at c45d70d08d7526050df354da853957bbe11e5253 which is from just over a year ago. $ head -1000 /tmp/bitfield.?.c =3D=3D> /tmp/bitfield.0.c <=3D=3D struct S { int var : 1; }; int fun(struct S s) { return s.var; } =3D=3D> /tmp/bitfield.1.c <=3D=3D struct S { int : 1, var : 1; }; int fun(struct S s) { return s.var; } $ for i in 0 1; do gcc -Wall -Wextra -g -c bitfield.$i.c; done $ ~/android/libabigail/build/tools/abidiff /tmp/bitfield.?.o Functions changes summary: 0 Removed, 1 Changed, 0 Added function Variables changes summary: 0 Removed, 0 Changed, 0 Added variable 1 function with some indirect sub-type change: [C] 'function int fun(S)' at bitfield.1.c:5:1 has some indirect sub-type changes: parameter 1 of type 'struct S' has sub-type changes: type size hasn't changed 1 data member change: 'int S::var' offset changed from 0 to 1 (in bits) (by +1 bits) $ ~/android/libabigail/build/tools/abidiff --leaf-changes-only /tmp/bitfield.?.o Leaf changes summary: 0 artifact changed Changed leaf types summary: 0 leaf type changed Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added func= tion Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added vari= able --=20 You are receiving this mail because: You are on the CC list for the bug.=