Skip to content

Fix #15066 (platform: rename the arm64 platform files) - #8887

Open
danmar wants to merge 4 commits into
cppcheck-opensource:mainfrom
cppchecksolutions:fix-15066
Open

danmar wants to merge 4 commits into
cppcheck-opensource:mainfrom
cppchecksolutions:fix-15066

Conversation

@danmar

@danmar danmar commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

olabetskyi
olabetskyi previously approved these changes Sep 24, 2026
Comment thread platforms/arm64-lp64-wchar_t4.xml Outdated
<long-long>8</long-long>
<float>4</float>
<double>8</double>
<long-double>8</long-double>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

For Apple ARM64, long double being 8 bytes is correct: https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms.

However, the generic AAPCS64 specifies long double as quad precision, 16 bytes: https://github.com/ARM-software/abi-aa/blob/main/aapcs64/aapcs64.rst

Is this file intended to model Apple or generic AAPCS64? If the latter maybe it should be updated form 8 to 16?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good catch I update to 16 to match common linux arm64 platforms.

There will be users that will not be able to use our arm64 platform files, they will have to configure their own arm64.xml files.

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