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

Commit 8043d5d

Browse files
authored
Merge pull request #492 from NETMF/revert-475-Discovery4-fix-for-GCC5.4.1
Revert "Fix to build Discovery 4 using GCC 5.4.1"
2 parents 2c8d2dd + d54030c commit 8043d5d

File tree

6 files changed

+4
-12
lines changed

6 files changed

+4
-12
lines changed

Solutions/STM32F4DISCOVERY/STM32F4DISCOVERY.settings

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
<IsSolutionWizardVisible>True</IsSolutionWizardVisible>
1717
<ENDIANNESS>le</ENDIANNESS>
1818
<NO_BOOTLOADER_COMPRESSION>true</NO_BOOTLOADER_COMPRESSION>
19-
<PLATFORM_EMULATED_FLOATINGPOINT Condition="'$(COMPILER_TOOL)'=='GCC'">true</PLATFORM_EMULATED_FLOATINGPOINT>
2019
</PropertyGroup>
2120
<PropertyGroup>
2221
<!-- FIXME: Replaced with an appropriate value. -->

Solutions/STM32F4DISCOVERY/TinyBooter/TinyBooter.proj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
<ExtraTargets>$(ExtraTargets);CompressBin</ExtraTargets>
2424
<ScatterFileDefinition>scatterfile_bootloader_$(COMPILER_TOOL).$(SCATTER_EXT)</ScatterFileDefinition>
2525
<EXEScatterFileDefinition>scatterfile_bootloader_$(COMPILER_TOOL).$(SCATTER_EXT)</EXEScatterFileDefinition>
26-
<!-- newlib-nano does not support long-long and long-double formatting, use standard newlib instead -->
27-
<NewlibNano Condition="'$(COMPILER_TOOL)'=='GCC'">true</NewlibNano>
2826
</PropertyGroup>
2927
<ItemGroup />
3028
<ItemGroup>

Solutions/STM32F4DISCOVERY/TinyCLR/TinyCLR.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<CompressImageDatSym>TinyClr_Dat_Start</CompressImageDatSym>
3232
<CompressImageCfgSym>g_ConfigurationSector</CompressImageCfgSym>
3333
<!-- newlib-nano does not support long-long and long-double formatting, use standard newlib instead -->
34-
<NewlibNano Condition="'$(COMPILER_TOOL)'=='GCC'">true</NewlibNano>
34+
<NewlibNano Condition="'$(COMPILER_TOOL)'=='GCC'">false</NewlibNano>
3535
</PropertyGroup>
3636
<ItemGroup>
3737
<CompressImageSymdef Include="$(BIN_DIR)\$(AssemblyName).symdefs" />

Solutions/STM32F4DISCOVERY/TinyCLR/scatterfile_tinyclr_gcc.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
<FileMapping Name="*" Options="(.constdata*)" />
9090
<FileMapping Name="*" Options="(.conststring*)" />
9191
<FileMapping Name="*" Options="(.glue*)" />
92-
<FileMapping Name="*" Options="(tinyclr_metadata)" />
92+
<FileMapping Name="*" Options="(tinyclr_metadata)" />
9393
<Include File="%SPOCLIENT%\Solutions\STM32F4DISCOVERY\scatterfile_gcc_missing_symbols.xml"/>
9494
</ExecRegion>
9595

Solutions/STM32F4DISCOVERY/scatterfile_gcc_missing_symbols.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<ScatterFile xmlns="http://schemas.microsoft.com/netmf/ScatterfileSchema.xsd">
3-
<!--
4-
- using newlib-nano adds libnosys.a, which calls sbrk, which requires the 'end' symbol
5-
- this is pulled in by a _printf imported in function _Crypto_StepRSAOperation @ Crypto.lib(rsa_zenith.obj)
6-
-->
7-
<Provide Name="end" />
83
<!-- libc thinks that it needs these routines, but they are never called -->
94
<Provide Name="_sbrk" />
105
<Provide Name="_write" />

tools/Targets/Microsoft.Spot.system.gcc.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<CC_CPP_TARGETTYPE_FLAGS Condition="'$(FLAVOR)'=='Instrumented'" >$(CC_CPP_TARGETTYPE_FLAGS) -O0</CC_CPP_TARGETTYPE_FLAGS>
5353
<CC_CPP_TARGETTYPE_FLAGS Condition="'$(FLAVOR)'=='Release'" >$(CC_CPP_TARGETTYPE_FLAGS) -Os</CC_CPP_TARGETTYPE_FLAGS>
5454

55-
<CC_FLAGS>$(CC_FLAGS)-std=c11 -xc</CC_FLAGS>
55+
<CC_FLAGS>$(CC_FLAGS)-xc</CC_FLAGS>
5656

5757
<ARCH_TARGETTYPE_FLAGS Condition="'$(FLAVOR)'=='RTM'" >-O3</ARCH_TARGETTYPE_FLAGS>
5858
<ARCH_TARGETTYPE_FLAGS Condition="'$(FLAVOR)'=='Debug'" >-Og -femit-class-debug-always -g3 -ggdb</ARCH_TARGETTYPE_FLAGS>
@@ -67,7 +67,7 @@
6767
NETMF already builds under two other compilers, so warnings from
6868
yet another compiler aren't really that valuable anyway.
6969
-->
70-
<CPP_FLAGS>$(CPP_FLAGS)-std=c++11 -xc++ -w -fcheck-new -fabi-version=0 -fno-exceptions -fno-rtti -fno-use-cxa-atexit -fno-threadsafe-statics </CPP_FLAGS>
70+
<CPP_FLAGS>$(CPP_FLAGS)-xc++ -w -fcheck-new -fabi-version=0 -fno-exceptions -fno-rtti -fno-use-cxa-atexit -fno-threadsafe-statics </CPP_FLAGS>
7171

7272
<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>
7373
<FLOATING_POINT_FLAG Condition="'$(PLATFORM_EMULATED_FLOATINGPOINT)'=='true'">-mfloat-abi=softfp -mfpu=fpv4-sp-d16</FLOATING_POINT_FLAG>

0 commit comments

Comments
 (0)