From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 850973858D33; Mon, 26 Jun 2023 03:06:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 850973858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687748787; bh=G1zbyTXLOKj3NTKA2ZN6v7GK0rESunRUKt3zOK3/h5c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kF3KvXShIHm40bl2MddQAY7vJXQdlVYLcMJjDtNGVbMLP6kMk7uGVP8OUaCUlWs/r CCvJs3bEp43PMBR7nQbIM99J9Smro67SUmltDL4ai6fvBxQhJu7VBmKqXgVeBwOzpl iX3v/rCZF4vOgBdZm286P89v5zwAi2UV/lEZVIgo= From: "ibuclaw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110406] d: Wrong code-gen returning POD structs by value Date: Mon, 26 Jun 2023 03:06:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ibuclaw 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=3D110406 --- Comment #3 from ibuclaw at gcc dot gnu.org --- (In reply to Andrew Pinski from comment #2) > >structs have been set the wrong mode >=20 > No, they don't have wrong mode, just the x86_64 backend is broken, see bug > 102027 comment #7 specifically. I think they do. On 64-bit, I expect the mode set by compute_record_mode to be TImode. How= ever what I'm instead seeing is BLKmode. This tells me I might be calling it too early, and some fields yet to have their DECL_SIZE set.=