mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
Merge pull request #12526 from kaspar030/fix_fe310_default_optimization
cpu/fe310: change default optimization to "-Os"
This commit is contained in:
commit
27e8caf3f3
@ -4,8 +4,8 @@ export TARGET_ARCH ?= riscv-none-embed
|
||||
# define build specific options
|
||||
CFLAGS_CPU = -march=rv32imac -mabi=ilp32 -mcmodel=medlow -msmall-data-limit=8
|
||||
CFLAGS_LINK = -nostartfiles -ffunction-sections -fdata-sections
|
||||
CFLAGS_DBG ?= -g3 -Og
|
||||
#CFLAGS_OPT ?= -Os
|
||||
CFLAGS_DBG ?= -g3
|
||||
CFLAGS_OPT ?= -Os
|
||||
|
||||
export LINKFLAGS += -L$(RIOTCPU)/$(CPU)/ldscripts
|
||||
export LINKER_SCRIPT ?= $(CPU_MODEL).ld
|
||||
|
@ -29,10 +29,5 @@ SRC += ge_low_mem.c
|
||||
SRC += sp_int.c
|
||||
SRC += sp_c32.c
|
||||
|
||||
# Disable maybe-uninitialized warning raised by the optimization level used
|
||||
# by risv toolchain (-Og)
|
||||
ifeq ($(TARGET_ARCH),riscv-none-embed)
|
||||
CFLAGS += -Wno-maybe-uninitialized
|
||||
endif
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
Loading…
Reference in New Issue
Block a user