Skip to content

aarch64 ABI: revisit which ZST fields should be filtered from repr(C) #58487

Open

Description

@pnkfelix

Spawned off of #56877 (comment) and #57645 (comment)

The issues raised by #56877 were partially addressed by PR #57645 but there may be some followup work to do here.

Based on my current understanding, PR #57645 ended up settling on filtering out all ZST's when determining if a type is an instance of a so-called "homogeneous aggregate", and the remaining question is whether we have to deal with architecture/target dependencies when resolving the semantic question of whether the Rust type [T; 0] should map to the C typeT[0] or to T[].

Namely, it sounds like AArch64 may require us to restrict the filtering we do (for determining whether a type is a homogenous aggregate) to just the Rust ZST's like PhantomData.

Anyway, this issue is to tracking that leftover work to resolve that question.

Activity

  1. pnkfelix commented on Feb 15, 2019

    @pnkfelix
    ContributorAuthor

    (This may be a good topic to hand off to the WG-ffi that should be forming soon. Cc @joshtriplett )

  2. added
    A-FFI
    T-compiler
    on Feb 15, 2019
  3. VivekYadav7272 commented on Dec 7, 2021

    @VivekYadav7272

    Is this issue still active?

  4. added
    A-ABI
    on Jul 1, 2022
  5. added
    A-repr
    on Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ABIA-FFIA-reprT-compiler

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions