From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 74EFA3858418; Tue, 31 Oct 2023 18:34:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74EFA3858418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1698777253; bh=/SM0M0Y8gVE9lRpAZhRzNrtZuOVbBtdNIWD2q0tPyts=; h=From:To:Subject:Date:From; b=ZGbQ5ohjyS2+UBqqIe6ZT2015CMtBUNS21vcSYrxLPmlG8WlJVRXAOa50XCeTJxUS J/JkZeU2BNlo+tG+SzSanSoY5LPgi1a3LcSV2IMGVgJ8C/lBMyfOQz+Ex0e3FZJrlS u5YXaq8g03+VqbE2FTziWSjiU26TUBkyl6sBAISE= From: "quic_johmoo at quicinc dot com" To: libabigail@sourceware.org Subject: [Bug default/31017] New: Flex array conversion suppression Date: Tue, 31 Oct 2023 18:34:13 +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: enhancement X-Bugzilla-Who: quic_johmoo at quicinc 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31017 Bug ID: 31017 Summary: Flex array conversion suppression Product: libabigail Version: unspecified Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: default Assignee: dodji at redhat dot com Reporter: quic_johmoo at quicinc dot com CC: libabigail at sourceware dot org Target Milestone: --- In the past, it was common in Linux kernel code to have a "fake flex array"= at the end of a structure. Like this: struct foo { int x; int y; int end[1]; };=20 In recent years, with improved compiler support, real flex arrays have been preferred. It's common to see patches like this: https://github.com/torvalds/linux/commit/c6f2e6b6eaaf883df482cb94f302acad9b= 80a2a4 Basically, this takes the struct above, and changes it to: struct foo { int x; int y; int end[]; };=20 abidiff flags this change with: [C] 'struct foo' changed: type size changed from 96 to 64 (in bits) 1 data member change: type of 'int end[1]' changed: type name changed from 'int[1]' to 'int[]' array type size changed from 32 to 'unknown' array type subrange 1 changed length from 1 to 'unknown'=20 It would be good to have a suppression to filter out this kind of change. F= or example: [suppress_type] type_kind =3D struct has_size_change =3D true has_strict_flexible_array_data_member_conversion =3D true --=20 You are receiving this mail because: You are on the CC list for the bug.=