Skip to content

Fix C ABI for AArch64#9430

Merged
bcardiff merged 1 commit intocrystal-lang:masterfrom
jhass:fix_aarch64_abi
Jun 22, 2020
Merged

Fix C ABI for AArch64#9430
bcardiff merged 1 commit intocrystal-lang:masterfrom
jhass:fix_aarch64_abi

Conversation

@jhass
Copy link
Member

@jhass jhass commented Jun 5, 2020

I don't claim to understand why this is more correct, I just compared the LLVM IR from one failing spec to what Clang would generate for the equivalent code.

It doesn't seem to break any other specs.

@ysbaddaden I think you did the initial port? If you care and maybe remember why you set it like this, that would be much appreciated :)

I don't claim to understand why this is more correct, I just compared
the LLVM IR from one failing spec to what Clang would generate for
the equivalent code.

It doesn't seemm to break any other specs
@jhass jhass force-pushed the fix_aarch64_abi branch from fdd1ce3 to 99eff6a Compare June 5, 2020 21:20
@jhass jhass added platform:aarch64 kind:bug A bug in the code. Does not apply to documentation, specs, etc. labels Jun 5, 2020
@ysbaddaden
Copy link
Collaborator

I really don't remember. The ABI was just ported from Rust.

I'm not sure we need custom ABI nowadays. LLVM defines & applies the proper DataLayout for each target...

@jhass
Copy link
Member Author

jhass commented Jun 8, 2020

If I look at things like #9401 or #9422, I'm not so confident about that...

@jhass jhass added the pr:ready-to-merge The changes are good to go, we need to triage merging it. label Jun 22, 2020
@bcardiff bcardiff added this to the 1.0.0 milestone Jun 22, 2020
@bcardiff bcardiff removed the pr:ready-to-merge The changes are good to go, we need to triage merging it. label Jun 22, 2020
@bcardiff bcardiff merged commit 560581b into crystal-lang:master Jun 22, 2020
@jhass jhass deleted the fix_aarch64_abi branch June 22, 2020 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:aarch64

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants