-
Notifications
You must be signed in to change notification settings - Fork 255
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
Support __float128 with GCC on Apple Silicon #8319
Conversation
Is it a built-in typedef or a keyword? |
config.ansi_c.arch == "arm64" && | ||
config.ansi_c.os == configt::ansi_ct::ost::OS_MACOS && | ||
config.ansi_c.mode != configt::ansi_ct::flavourt::CLANG && | ||
config.ansi_c.gcc__float128_type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can gcc__float128_type
be false when running GCC on ARM64 Macs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is quite possible that no such (old) GCC version even builds on ARM64 Macs, so likely: no.
a57eba9
to
bd30ef4
Compare
Ah, it indeed appears to be a keyword. I have updated all comments to reflect this (and explain why we still handle it as if it were a typedef). |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8319 +/- ##
===========================================
- Coverage 78.32% 78.27% -0.06%
===========================================
Files 1722 1722
Lines 188404 188546 +142
Branches 18454 18522 +68
===========================================
+ Hits 147572 147582 +10
- Misses 40832 40964 +132 ☔ View full report in Codecov by Sentry. |
I'd be in favour of adding |
I've added a second commit that changes the approach implement your suggestion. |
f5a51ce
to
ad7edb6
Compare
There's lots of instances of getting the |
We don't need the version number of |
1a66500
to
1a776dd
Compare
Although not officially documented it seems that GCC running on Apple Silicon accepts __float128 as a keyword. Fixes: diffblue#8305
Add a new parser configuration setting to correctly configure the scanner.
This isn't as precise, but will avoid the cost of process invocation. Such cost is considerable on Windows and appears to be around 100ms on macOS.
1a776dd
to
956a8f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume there are regression tests covering these cases.
With #8328 they will! |
Closing as the commits are now part of #8328. |
Although not officially documented it seems that GCC running on Apple Silicon accepts __float128 as a keyword.
Fixes: #8305