-
Notifications
You must be signed in to change notification settings - Fork 2k
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
build system: warn when soft FPU is used #19688
Open
maribu
wants to merge
24
commits into
RIOT-OS:master
Choose a base branch
from
maribu:buildsystem-warn-float
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maribu
added
State: WIP
State: The PR is still work-in-progress and its code is not in its final presentable form yet
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
CI: full build
disable CI build filter
CI: no fast fail
don't abort PR build after first error
labels
May 31, 2023
github-actions
bot
added
Area: build system
Area: Build system
Area: CI
Area: Continuous Integration of RIOT components
Area: doc
Area: Documentation
Area: tools
Area: Supplementary tools
labels
May 31, 2023
maribu
force-pushed
the
buildsystem-warn-float
branch
3 times, most recently
from
May 31, 2023 10:45
bb46201
to
b75a906
Compare
Murdock results❌ FAILED e341b28 cpu/esp_common: disable FPU check Build failures (12)
Artifacts |
maribu
force-pushed
the
buildsystem-warn-float
branch
from
May 31, 2023 11:09
b75a906
to
8ba5d90
Compare
maribu
requested review from
smlng,
leandrolanzieri,
aabadie,
MichelRottleuthner and
fjmolinas
as code owners
May 31, 2023 18:05
github-actions
bot
added
Area: drivers
Area: Device drivers
Area: examples
Area: Example Applications
Area: sys
Area: System
Area: tests
Area: tests and testing framework
labels
May 31, 2023
Note: Only tested with Cortex-M. This is useful to track down the offenders pulling in the soft FPU functions.
A tiny look up table is both faster and way smaller in ROM size than pulling in `pow()`.
`printf_float` seems to be unused but pulls in a lot of code. So let's drop that.
maribu
force-pushed
the
buildsystem-warn-float
branch
from
May 31, 2023 21:36
abf6e7e
to
f302c28
Compare
github-actions
bot
added
Area: LoRa
Area: LoRa radio support
Area: network
Area: Networking
Area: pkg
Area: External package ports
labels
May 31, 2023
github-actions
bot
added
Area: cpu
Area: CPU/MCU ports
Platform: ESP
Platform: This PR/issue effects ESP-based platforms
labels
May 31, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: build system
Area: Build system
Area: CI
Area: Continuous Integration of RIOT components
Area: cpu
Area: CPU/MCU ports
Area: doc
Area: Documentation
Area: drivers
Area: Device drivers
Area: examples
Area: Example Applications
Area: LoRa
Area: LoRa radio support
Area: network
Area: Networking
Area: pkg
Area: External package ports
Area: sys
Area: System
Area: tests
Area: tests and testing framework
Area: tools
Area: Supplementary tools
CI: full build
disable CI build filter
CI: no fast fail
don't abort PR build after first error
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
Platform: ESP
Platform: This PR/issue effects ESP-based platforms
State: WIP
State: The PR is still work-in-progress and its code is not in its final presentable form yet
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contribution description
Add a test that warns when soft FPU is used and turn this warning into an error in the CI, unless
GOOD_REASON_FOR_USING_FLOATS
holds a non-empty string.Testing procedure
The CI will do
Issues/PRs references
Hopefully this avoids #19614 becoming an annual "FPU which hunt" tradition