Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add correctly sized structs and types for Android aarch64. #282

Conversation

Nercury
Copy link
Contributor

@Nercury Nercury commented May 8, 2016

So far both android x86_64 and aarch64 configurations used incorrect types from 32-bit architecture.

This PR updates only the aarch64, because it is more common. The x86_64 may be also incorrect, but is out of scope of this PR.

@rust-highfive
Copy link

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@Nercury Nercury force-pushed the correctly-sized-structs-and-types-for-android-aarch64 branch from 01fb15c to 3ee7182 Compare May 8, 2016 15:06
@Nercury Nercury force-pushed the correctly-sized-structs-and-types-for-android-aarch64 branch from 3ee7182 to dad0dd2 Compare May 8, 2016 15:26
@alexcrichton
Copy link
Member

@bors: r+ dad0dd2

Thanks! Once we get nightlies for this target I'd love to also run the CI for aarch64

@bors
Copy link
Contributor

bors commented May 8, 2016

⌛ Testing commit dad0dd2 with merge 53e14e2...

bors added a commit that referenced this pull request May 8, 2016
…droid-aarch64, r=alexcrichton

Add correctly sized structs and types for Android aarch64.

So far both android x86_64 and aarch64 configurations used incorrect types from 32-bit architecture.

This PR updates only the aarch64, because it is more common. The x86_64 may be also incorrect, but is out of scope of this PR.
@bors
Copy link
Contributor

bors commented May 8, 2016

☀️ Test successful - status-appveyor, travis

@bors bors merged commit dad0dd2 into rust-lang:master May 8, 2016
@Nercury Nercury deleted the correctly-sized-structs-and-types-for-android-aarch64 branch May 8, 2016 21:22
bors added a commit to rust-lang/rust that referenced this pull request May 16, 2016
…-abi, r=alexcrichton

Update aarch64-linux-android target to match android abi.

- Changed `target_env` to "gnu" to empty "" for all android targets because it does not matter for android.
- The PR #33048 added "max_atomic_width" for arm-android but missed recently added armv7-android. Add it there too.
- Added features `+neon,+fp-armv8` because they [must exist on `aarch64` android](http://developer.android.com/ndk/guides/cpu-features.html).
- Update libc to include rust-lang/libc#282 so that rust's std lib works on android's aarch64 (the main issue there was incorrect structure alignment on 64-bit arm).

r? @alexcrichton
Susurrus pushed a commit to Susurrus/libc that referenced this pull request Mar 26, 2017
Add introduction/constants/enumeration/uninitialized to CONVENTIONS.

I have added new sections to the file. I would like the usual suspects to read them critically and offer critique.

When have agreed to add certain versions I will add Issues to track our progress in getting the code to follow the conventions. For two of the sections they already exist in rust-lang#254 and rust-lang#264.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants