Skip to content

Tracking Issue for c_longdouble #161787

Open

Description

@folkertdev

This is a tracking issue for the RFC "add core::ffi::c_longdouble" (rust-lang/rfcs#4003).
The feature gate for the issue is #![feature(c_longdouble)].

The RFC has not yet been accepted, but @traviscross championed a lang experiment to get started on the implementation.

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.

Steps

Unresolved Questions

Implementation history

Activity

  1. added
    C-tracking-issue
    on Aug 25, 2026
  2. added
    T-lang
    B-experimental
    on Aug 25, 2026
  3. added
    F-c_longdouble
    on Sep 2, 2026
  4. added 2 commits that reference this issue on Oct 7, 2026
  5. added a commit that references this issue on Oct 7, 2026
  6. added a commit that references this issue on Oct 17, 2026
  7. 3 remaining items

  8. added a commit that references this issue on Nov 10, 2026
  9. added 6 commits that reference this issue on Nov 10, 2026
  10. added a commit that references this issue on Nov 10, 2026
  11. Gelbpunkt commented on Nov 13, 2026

    @Gelbpunkt
    Contributor

    It would also be very desirable to set the long-double-type module flag in LLVM to ensure that the correct Tag_GNU_Power_ABI_FP value is set by LLVM on PowerPC: https://github.com/llvm/llvm-project/blob/32384fac169a53e9c69d4defd5b94522da502a45/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp#L1773-L1800
    This probably requires moving the information about the type of c_longdouble from core to the target specs so that the compiler can be aware of it.

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

    B-experimentalC-tracking-issueF-c_longdoubleT-lang

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions