1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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 <keithp@keithp.com>
This commit is contained in:
Keith Packard 2022-04-02 16:54:31 -07:00
parent 3a83c380f7
commit b21e624280
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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