From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A1026385C41A; Tue, 14 Jan 2025 23:28:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1026385C41A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1736897306; bh=v0pNOWWos/o7ilDCnL4Ab9sTmucfxEBmRcT7sn86r/o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EpfN6eLiNO6Da9mUb/lAxdqRmfojVueE2XV82H3DXFYeBdwgOLRYW3FZYtp9EIf+2 jc1Uq69F/nJ7dw3nG4PgmorigAunOhhkSCRUx3+QcDP665SacPZDOOWOO6SYqXDCce 39kgIsNeURPmXXU50raJ68haMtq5Qh0oHjHuIcr4= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug build/30098] Keep trying clang-format Date: Tue, 14 Jan 2025 23:28:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30098 --- Comment #14 from Tom Tromey --- Here's a mild example of the bin-packing problem. Here, clang-format decides to keep the args together, while in gdb I suppose it's more normal to keep the assignment "together": - descriptor->data =3D bfd_mmap (abfd, 0, descriptor->size, PROT_RE= AD, - MAP_PRIVATE, sectp->filepos, - &descriptor->map_addr, - &descriptor->map_len); + descriptor->data + =3D bfd_mmap (abfd, 0, descriptor->size, PROT_READ, MAP_PRIVATE, + sectp->filepos, &descriptor->map_addr, + &descriptor->map_len); --=20 You are receiving this mail because: You are on the CC list for the bug.=