Fix c_char on various no-std and tier 3 targets#131319
Closed
taiki-e wants to merge 1 commit intorust-lang:masterfrom
Closed
Fix c_char on various no-std and tier 3 targets#131319taiki-e wants to merge 1 commit intorust-lang:masterfrom
taiki-e wants to merge 1 commit intorust-lang:masterfrom
Conversation
38245fc to
f587fe3
Compare
kadiwa4
reviewed
Oct 27, 2024
| // option is used." | ||
| // https://learn.microsoft.com/en-us/cpp/cpp/fundamental-types-cpp?view=msvc-170#character-types) | ||
| if #[cfg(all( | ||
| not(any(target_vendor = "apple", windows)), |
Contributor
There was a problem hiding this comment.
Suggested change
| not(any(target_vendor = "apple", windows)), | |
| not(target_vendor = "apple"), | |
| not(windows), |
would be easier to understand IMO
Member
Author
There was a problem hiding this comment.
This is for readability in case there are more “exception targets”.
See rust-lang/libc#4198 (comment) for more.
arichardson
added a commit
to arichardson/rust
that referenced
this pull request
Dec 10, 2024
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
Contributor
|
This is being superseded by #132975 now |
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Dec 11, 2024
Rollup merge of rust-lang#132975 - arichardson:ffi-c-char, r=tgross35 De-duplicate and improve definition of core::ffi::c_char Instead of having a list of unsigned char targets for each OS, follow the logic Clang uses and instead set the value based on architecture with a special case for Darwin and Windows operating systems. This makes it easier to support new operating systems targeting Arm/AArch64 without having to modify this config statement for each new OS. The new list does not quite match Clang since I noticed a few bugs in the Clang implementation (llvm/llvm-project#115957). Fixes rust-lang#129945 Closes rust-lang#131319
This was referenced Dec 17, 2024
github-actions bot
pushed a commit
to tautschnig/verify-rust-std
that referenced
this pull request
Feb 20, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to tautschnig/verify-rust-std
that referenced
this pull request
Feb 20, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to carolynzech/rust
that referenced
this pull request
Feb 20, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to model-checking/verify-rust-std
that referenced
this pull request
Feb 20, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to thanhnguyen-aws/verify-rust-std
that referenced
this pull request
Feb 21, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to thanhnguyen-aws/verify-rust-std
that referenced
this pull request
Feb 21, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to model-checking/verify-rust-std
that referenced
this pull request
Feb 22, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to carolynzech/rust
that referenced
this pull request
Feb 22, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to tautschnig/verify-rust-std
that referenced
this pull request
Feb 22, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to thanhnguyen-aws/verify-rust-std
that referenced
this pull request
Feb 22, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to thanhnguyen-aws/verify-rust-std
that referenced
this pull request
Mar 3, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to carolynzech/rust
that referenced
this pull request
Mar 4, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to carolynzech/rust
that referenced
this pull request
Mar 4, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to thanhnguyen-aws/verify-rust-std
that referenced
this pull request
Mar 4, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to tautschnig/verify-rust-std
that referenced
this pull request
Mar 6, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to thanhnguyen-aws/verify-rust-std
that referenced
this pull request
Mar 6, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to tautschnig/verify-rust-std
that referenced
this pull request
Mar 11, 2025
Expcept for L4RE and Xtensa these were obtained from rust-lang#131319 I could not find an open link to the Xtensa documentation, but the signedness was confirmed by on of the Xtensa developers in llvm/llvm-project#115967 (comment) Co-authored-by: Taiki Endo <te316e89@gmail.com>
github-actions bot
pushed a commit
to tautschnig/verify-rust-std
that referenced
this pull request
Mar 11, 2025
De-duplicate and improve definition of core::ffi::c_char Instead of having a list of unsigned char targets for each OS, follow the logic Clang uses and instead set the value based on architecture with a special case for Darwin and Windows operating systems. This makes it easier to support new operating systems targeting Arm/AArch64 without having to modify this config statement for each new OS. The new list does not quite match Clang since I noticed a few bugs in the Clang implementation (llvm/llvm-project#115957). Fixes rust-lang#129945 Closes rust-lang#131319
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #129945
This PR makes c_char match with the Clang's default, except when Clang does not match the ABI's default.
TODO:
not(any(target_os = "none", target_os = "uefi"))for now to avoid changes, etc.)libcand release new version of libcr? @ghost
@rustbot label -S-waiting-on-review, +S-waiting-on-author