From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE9053893642; Thu, 8 Jul 2021 13:41:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE9053893642 From: "gprocida at google dot com" To: libabigail@sourceware.org Subject: [Bug default/28060] [libabigail] Invalid offset for bitfields Date: Thu, 08 Jul 2021 13:41:22 +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 at google dot com X-Bugzilla-Status: NEW 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, 08 Jul 2021 13:41:22 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28060 --- Comment #4 from gprocida at google dot com --- And, for completeness, and example where the ABI has changed incompatibly b= ut the ABI XML remains the same. =3D=3D> test2.0.c <=3D=3D #include struct S { char name[5]; uint8_t bit:1; uint32_t :0; }; uint8_t foo(const struct S * s) { return s->bit; } =3D=3D> test2.1.c <=3D=3D #include struct S { char name[5]; uint16_t :0; uint8_t bit:1; uint32_t :0; }; uint8_t foo(const struct S * s) { return s->bit; } --=20 You are receiving this mail because: You are on the CC list for the bug.=