Skip to content

Commit 381b352

Browse files
authored
Merge pull request #2168 from c1728p9/remove_float_printf
Remove floating point formatting in newlib nano
2 parents fb4b43f + 546b5de commit 381b352

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tools/toolchains/gcc.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,6 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
289289
self.cc += ["-DMBED_RTOS_SINGLE_THREAD"]
290290
self.cppc += ["-DMBED_RTOS_SINGLE_THREAD"]
291291
self.macros.extend(["MBED_RTOS_SINGLE_THREAD"])
292-
293-
if target.name in ["LPC1768", "LPC4088", "LPC4088_DM", "LPC4330", "UBLOX_C027", "LPC2368", "ARM_BEETLE_SOC"]:
294-
self.ld.extend(["-u _printf_float", "-u _scanf_float"])
295-
self.flags['ld'].extend(["-u _printf_float", "-u _scanf_float"])
296-
elif target.name in ["RZ_A1H", "VK_RZ_A1H", "ARCH_MAX", "DISCO_F407VG", "DISCO_F429ZI", "DISCO_F469NI", "NUCLEO_F401RE", "NUCLEO_F410RB", "NUCLEO_F411RE", "NUCLEO_F429ZI", "NUCLEO_F446RE", "NUCLEO_F446ZE", "ELMO_F411RE", "MTS_MDOT_F411RE", "MTS_DRAGONFLY_F411RE", "DISCO_F746NG"]:
297-
self.ld.extend(["-u_printf_float", "-u_scanf_float"])
298-
self.flags['ld'].extend(["-u_printf_float", "-u_scanf_float"])
299-
300292
self.sys_libs.append("nosys")
301293

302294

0 commit comments

Comments
 (0)