From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BDA15386076C; Sun, 18 Feb 2024 02:29:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDA15386076C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708223371; bh=ego27DQw0cURLd2LmEiBIEuEHNQTh+9lY82GgMOdxho=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GQ3HQWxXVedR/i4UKKqgTVPKlQJI8KJjcQ1VCd5b023tWQrdtyW2Y7+KeTKSKcSSz 9Z9oAGIZVLocrPNwr+p6PzM/MEuML4BEGpSSV6Zvb82DmqJHfA/ogAzX+g7JB3nCKE /b+8XCnSnHh6Pj7nxkyjvVGhMQv44wmJ4m2O93ss= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/113977] debug info for alignment of structure is unspecified Date: Sun, 18 Feb 2024 02:29:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.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://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113977 --- Comment #1 from Andrew Pinski --- This seems like a bug in gdb really. GCC produces: ``` .uleb128 0x3 # (DIE (0x2e) DW_TAG_structure_type) .ascii "s7\0" # DW_AT_name .byte 0x7 # DW_AT_byte_size # DW_AT_decl_file (1, /app/example.cpp) .byte 0x1 # DW_AT_decl_line # DW_AT_decl_column (0x8) .long 0x41 # DW_AT_sibling .uleb128 0x4 # (DIE (0x38) DW_TAG_member) .ascii "_\0" # DW_AT_name # DW_AT_decl_file (1, /app/example.cpp) .byte 0x1 # DW_AT_decl_line # DW_AT_decl_column (0x12) .long 0x41 # DW_AT_type # DW_AT_data_member_location (0) .byte 0 # end of children of DIE 0x2e .uleb128 0x2 # (DIE (0x41) DW_TAG_array_type) .long 0x58 # DW_AT_type .long 0x51 # DW_AT_sibling ``` ``` .ascii "x\0" # DW_AT_name # DW_AT_decl_file (1, /app/example.cpp) .byte 0x7 # DW_AT_decl_line # DW_AT_decl_column (0xd) .long 0xf1 # DW_AT_type .uleb128 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 -30 ``` ``` .uleb128 0x2 # (DIE (0xf1) DW_TAG_array_type) .long 0x2e # DW_AT_type .long 0x101 # DW_AT_sibling .uleb128 0x1 # (DIE (0xfa) DW_TAG_subrange_type) .long 0x51 # DW_AT_type .byte 0x1 # DW_AT_upper_bound .byte 0 # end of children of DIE 0xf1 ```=