From b21e6242800fc6b5a78ee3226232ef8fdd95b03f Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 2 Apr 2022 16:54:31 -0700 Subject: [PATCH] cpu/arm7, arch/cortexm: Remove -fno-builtin flag This flag disables all builtin functions provided by the compiler as well as disabling all optimizations and error checking related to standard C library functions. If you're using a C library which conforms to the ANSI C standard, you want to leave these compiler features enabled. Signed-off-by: Keith Packard --- cpu/arm7_common/Makefile.include | 2 +- makefiles/arch/cortexm.inc.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/arm7_common/Makefile.include b/cpu/arm7_common/Makefile.include index 27cb4aee00..f919daca78 100644 --- a/cpu/arm7_common/Makefile.include +++ b/cpu/arm7_common/Makefile.include @@ -9,7 +9,7 @@ INCLUDES += -I$(RIOTBASE)/cpu/arm7_common/include/ MCPU ?= arm7tdmi-s CFLAGS_CPU = -mcpu=$(MCPU) -CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums +CFLAGS_LINK = -ffunction-sections -fdata-sections -fshort-enums CFLAGS_DBG ?= -ggdb -g3 CFLAGS_OPT ?= -Os diff --git a/makefiles/arch/cortexm.inc.mk b/makefiles/arch/cortexm.inc.mk index 8839277682..436b923a46 100644 --- a/makefiles/arch/cortexm.inc.mk +++ b/makefiles/arch/cortexm.inc.mk @@ -20,7 +20,7 @@ ifneq (llvm,$(TOOLCHAIN)) endif endif -CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums +CFLAGS_LINK = -ffunction-sections -fdata-sections -fshort-enums CFLAGS_DBG ?= -ggdb -g3 CFLAGS_OPT ?= -Os