1
0
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:
Alexandre Abadie 2019-11-15 13:10:13 +01:00 committed by GitHub
commit 27e8caf3f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

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

View File

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