FreeRTOS / FreeRTOS-Kernel

FreeRTOS kernel files only, submoduled into https://github.com/FreeRTOS/FreeRTOS and various other repos.
https://www.FreeRTOS.org
MIT License
2.51k stars 1.05k forks source link

[BUG] __VFP_FP__ Macro Does Not Correctly Indicate Floating Point Enabled for ARM Targets #1087

Closed haydenridd closed 3 weeks ago

haydenridd commented 3 weeks ago

Describe the bug The macro __VFP_FP__ set by the compiler is deprecated, and despite its name does not indicate that floating support is enabled. This is only used for 3 ARM targets, and should be updated to __ARM_FP which is the appropriate flag.

Target

Host

To Reproduce

Expected behavior These ports should fail to compile when floating support is not enabled.

Additional context See the following links for an explanation of why this flag is just set to a constant 1 by both GCC and Clang:

I will create a PR to fix this!

aggarg commented 3 weeks ago

Thank you for your contribution!