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

fix aarch64+clang compilation errors #21642

Merged
merged 2 commits into from
Apr 17, 2023
Merged

fix aarch64+clang compilation errors #21642

merged 2 commits into from
Apr 17, 2023

Conversation

lexi-nadia
Copy link
Contributor

Fix a couple of errors that show up when compiling Mono for aarch64 using clang on Linux.

clang doesn't need it, and clang also doesn't support the `optimize`
attribute.
Otherwise, clang complains that "value-size does not match register size",
since the 32-bit value (generally a literal 0) doesn't match the 64-bit
x3 register.
@lexi-nadia
Copy link
Contributor Author

@dotnet-policy-service agree company="Google"

@lexi-nadia
Copy link
Contributor Author

What should I do about these failures? At least some of them seem like they might be flaky or unrelated, but I don't know how to rerun them.

@vargaz vargaz merged commit 6ee958c into mono:main Apr 17, 2023
@vargaz
Copy link
Contributor

vargaz commented Apr 17, 2023

Note that ongoing mono development is happening in the dotnet/runtime repo.

@lexi-nadia
Copy link
Contributor Author

Note that ongoing mono development is happening in the dotnet/runtime repo.

Should I resubmit this patch to that repo?

@vargaz
Copy link
Contributor

vargaz commented Apr 17, 2023

Yes if possible.

ThomasKuehne pushed a commit to ThomasKuehne/mono that referenced this pull request Mar 23, 2024
* don't use the gcc workaround on clang

clang doesn't need it, and clang also doesn't support the `optimize`
attribute.

* cast _zzq_default to a 64-bit type

Otherwise, clang complains that "value-size does not match register size",
since the 32-bit value (generally a literal 0) doesn't match the 64-bit
x3 register.
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.

None yet

2 participants