We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dbea3d commit 65fe25fCopy full SHA for 65fe25f
1 file changed
CMSIS/Core/Include/m-profile/cmsis_gcc_m.h
@@ -1517,7 +1517,7 @@ __STATIC_FORCEINLINE void __TZ_set_MSPLIM_NS(uint32_t MainStackPtrLimit)
1517
*/
1518
__STATIC_FORCEINLINE uint32_t __get_FPSCR(void)
1519
{
1520
-#if (__ARM_FP >= 1)
+#if (defined(__ARM_FP) && (__ARM_FP >= 1))
1521
return (__builtin_arm_get_fpscr());
1522
#else
1523
return (0U);
@@ -1532,7 +1532,7 @@ __STATIC_FORCEINLINE uint32_t __get_FPSCR(void)
1532
1533
__STATIC_FORCEINLINE void __set_FPSCR(uint32_t fpscr)
1534
1535
1536
__builtin_arm_set_fpscr(fpscr);
1537
1538
(void)fpscr;
0 commit comments