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 some Thumb issues and add thumb-linux-(musl)eabi(hf) to CI #21599

Merged
merged 7 commits into from
Nov 3, 2024

Conversation

alexrp
Copy link
Member

@alexrp alexrp commented Oct 5, 2024

No description provided.

@alexrp alexrp requested a review from andrewrk October 5, 2024 01:09
if (target.cpu.arch.isARM() or target.cpu.arch.isAARCH64() or is_android) {
if ((target.cpu.arch.isArm() and !target.cpu.arch.isThumb()) or target.cpu.arch.isAARCH64() or is_android) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexrp

This comment was marked as resolved.

@alexrp

This comment was marked as resolved.

@alexrp alexrp marked this pull request as draft October 9, 2024 20:56
@alexrp

This comment was marked as resolved.

@alexrp alexrp marked this pull request as ready for review October 10, 2024 00:26
@alexrp

This comment was marked as resolved.

@alexrp
Copy link
Member Author

alexrp commented Oct 13, 2024

Just FYI @andrewrk since this adds more triples to CI.

…m().

The old isARM() function was a portability trap. With the name it had, it seemed
like the obviously correct function to use, but it didn't include Thumb. In the
vast majority of cases where someone wants to ask "is the target Arm?", Thumb
*should* be included.

There are exactly 3 cases in the codebase where we do actually need to exclude
Thumb, although one of those is in Aro and mirrors a check in Clang that is
itself likely a bug. These rare cases can just add an extra isThumb() check.
Let's not implicitly rely on whatever Clang's default is.
…objects.

addCCArgs() will then pass the appropriate flag to Clang.
@alexrp alexrp merged commit 2f003f3 into ziglang:master Nov 3, 2024
10 checks passed
@alexrp alexrp deleted the thumb-porting branch November 3, 2024 13:25
ehaas added a commit to ehaas/arocc that referenced this pull request Nov 4, 2024
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.

1 participant