From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 04EF9389365B; Wed, 7 Jul 2021 09:31:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 04EF9389365B From: "david.marchand at redhat dot com" To: libabigail@sourceware.org Subject: [Bug default/28060] [libabigail] Invalid offset for bitfields Date: Wed, 07 Jul 2021 09:31:31 +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: david.marchand at redhat 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: Wed, 07 Jul 2021 09:31:32 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28060 --- Comment #1 from David Marchand --- pahole before_plop.o struct bigstruct { char name[128]; /* 0 128 */ /* --- cacheline 2 boundary (128 bytes) --- */ uint8_t bitfield0:1; /* 128: 7 1 */ /* size: 129, cachelines: 3, members: 2 */ /* bit_padding: 7 bits */ /* last cacheline: 1 bytes */ }; pahole after_plop.o struct bigstruct { char name[128]; /* 0 128 */ /* --- cacheline 2 boundary (128 bytes) --- */ uint8_t bitfield0:1; /* 128: 7 1 */ uint8_t bitfield1:1; /* 128: 6 1 */ /* size: 129, cachelines: 3, members: 3 */ /* bit_padding: 6 bits */ /* last cacheline: 1 bytes */ }; --=20 You are receiving this mail because: You are on the CC list for the bug.=