Skip to content

Commit

Permalink
Merge pull request #12526 from kaspar030/fix_fe310_default_optimization
Browse files Browse the repository at this point in the history
cpu/fe310: change default optimization to "-Os"
aabadie authored Nov 15, 2019
2 parents b6401c3 + 7402092 commit 27e8caf
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions makefiles/arch/riscv.inc.mk
Original file line number Diff line number Diff line change
@@ -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
5 changes: 0 additions & 5 deletions pkg/wolfssl/Makefile.wolfcrypt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 27e8caf

Please sign in to comment.