From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 09D513861019; Thu, 3 Dec 2020 10:43:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 09D513861019 From: "gprocida+abigail at google dot com" To: libabigail@sourceware.org Subject: [Bug default/26998] abidiff --leaf-changes-only misreports array member changes Date: Thu, 03 Dec 2020 10:43:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: Message-ID: In-Reply-To: References: 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: Thu, 03 Dec 2020 10:43:21 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26998 --- Comment #1 from Giuliano Procida -= -- Here's another even smaller test case that has similar issues. $ head -100 small.?.c =3D=3D> small.0.c <=3D=3D struct buzz { int a; }; struct flexible { struct buzz lightyear[0]; }; struct flexible impacted; =3D=3D> small.1.c <=3D=3D struct buzz { long a; }; struct flexible { struct buzz lightyear[0]; }; struct flexible impacted; $ for x in small.{0,1}.c; do gcc -Wall -Wextra -g -c $x; done $ for x in small.{0,1}; do abidw $x.o > $x.abi; done $ abidiff --leaf-changes-only small.?.o Leaf changes summary: 3 artifacts changed Changed leaf types summary: 2 leaf types changed Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added func= tion Removed/Changed/Added variables summary: 0 Removed, 1 Changed, 0 Added vari= able 1 Changed variable: [C] 'flexible impacted' was changed at small.1.c:9:1: type of variable changed: type size hasn't changed there are data member changes: 'buzz flexible::lightyear[]' has *some* difference - please report = as a bug 'struct buzz at small.0.c:1:1' changed: type size changed from 32 to 64 (in bits) there are data member changes: type 'int' of 'buzz::a' changed: type name changed from 'int' to 'long int' type size changed from 32 to 64 (in bits) 'struct flexible at small.0.c:5:1' changed: details were reported earlier $ diff <(abidiff --leaf-changes-only small.?.o) <(abidiff --leaf-changes-on= ly small.?.abi) --=20 You are receiving this mail because: You are on the CC list for the bug.=