Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Fix "NNNN.a uses VFP register arguments" when building with GCC #341

Closed
wants to merge 9 commits into from
1 change: 1 addition & 0 deletions Solutions/MCBSTM32F400/MCBSTM32F400.settings
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<ENDIANNESS>le</ENDIANNESS>
<NO_BOOTLOADER_COMPRESSION>true</NO_BOOTLOADER_COMPRESSION>
<TCP_IP_STACK>LWIP_1_4_1_OS</TCP_IP_STACK>
<PLATFORM_EMULATED_FLOATINGPOINT Condition="'$(COMPILER_TOOL)'=='GCC'">true</PLATFORM_EMULATED_FLOATINGPOINT>
</PropertyGroup>
<PropertyGroup>
<OEMSystemInfoString>Copyright (C) Microsoft Corporation</OEMSystemInfoString>
Expand Down
1 change: 1 addition & 0 deletions Solutions/MCBSTM32F400/MCBSTM32F400_NONET.settings
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<IsSolutionWizardVisible>True</IsSolutionWizardVisible>
<ENDIANNESS>le</ENDIANNESS>
<NO_BOOTLOADER_COMPRESSION>true</NO_BOOTLOADER_COMPRESSION>
<PLATFORM_EMULATED_FLOATINGPOINT Condition="'$(COMPILER_TOOL)'=='GCC'">true</PLATFORM_EMULATED_FLOATINGPOINT>
</PropertyGroup>
<PropertyGroup>
<OEMSystemInfoString>Copyright (C) Microsoft .NET Foundation</OEMSystemInfoString>
Expand Down
1 change: 1 addition & 0 deletions Solutions/STM32F4DISCOVERY/STM32F4DISCOVERY.settings
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<IsSolutionWizardVisible>True</IsSolutionWizardVisible>
<ENDIANNESS>le</ENDIANNESS>
<NO_BOOTLOADER_COMPRESSION>true</NO_BOOTLOADER_COMPRESSION>
<PLATFORM_EMULATED_FLOATINGPOINT Condition="'$(COMPILER_TOOL)'=='GCC'">true</PLATFORM_EMULATED_FLOATINGPOINT>
</PropertyGroup>
<PropertyGroup>
<!-- FIXME: Replaced with an appropriate value. -->
Expand Down
2 changes: 1 addition & 1 deletion tools/Targets/Microsoft.Spot.system.gcc.targets
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<CPP_FLAGS>$(CPP_FLAGS)-xc++ -w -fcheck-new</CPP_FLAGS>

<FLOATING_POINT_FLAG Condition="('$(PLATFORM_EMULATED_FLOATINGPOINT)'!='true' and '$(DEVICE_TYPE)' == 'cortex-m4') or '$(INSTRUCTION_SET)'=='thumb2fp'">-mfloat-abi=hard -mfpu=fpv4-sp-d16</FLOATING_POINT_FLAG>
<FLOATING_POINT_FLAG Condition="'$(PLATFORM_EMULATED_FLOATINGPOINT)'=='true'">-mfloat-abi=soft</FLOATING_POINT_FLAG>
<FLOATING_POINT_FLAG Condition="'$(PLATFORM_EMULATED_FLOATINGPOINT)'=='true'">-mfloat-abi=softfp -mfpu=fpv4-sp-d16</FLOATING_POINT_FLAG>

<AS_CC_CPP_COMMON_FLAGS>$(AS_CC_CPP_COMMON_FLAGS) $(FLOATING_POINT_FLAG) </AS_CC_CPP_COMMON_FLAGS>
<AS_CC_CPP_COMMON_FLAGS>$(AS_CC_CPP_COMMON_FLAGS) $(ARCH_TYPE_FLAGS)</AS_CC_CPP_COMMON_FLAGS>
Expand Down