mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-06-11 00:49:37 +00:00
Add -fno-tree-loop-distribute-patterns to avoid spurious memset
This commit is contained in:
parent
7308922ffa
commit
ace4469fc4
1 changed files with 5 additions and 0 deletions
|
|
@ -34,7 +34,12 @@ PULP_ARCH_LDFLAGS ?= -march=rv32imcxgap9
|
|||
PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imcxgap9
|
||||
endif
|
||||
|
||||
# without -fno-tree-loop-distribute-patterns, gcc would insert memset & co where it shouldn't! only avoid this option in CV32E40X+LLVM
|
||||
ifdef USE_CV32E40X
|
||||
PULP_CFLAGS += -fdata-sections -ffunction-sections -include chips/pulpissimo/config.h -I$(PULPRT_HOME)/include/chips/pulpissimo
|
||||
else
|
||||
PULP_CFLAGS += -fno-tree-loop-distribute-patterns -fdata-sections -ffunction-sections -include chips/pulpissimo/config.h -I$(PULPRT_HOME)/include/chips/pulpissimo
|
||||
endif
|
||||
PULP_OMP_CFLAGS += -fopenmp -mnativeomp
|
||||
|
||||
PULP_CC ?= riscv32-unknown-elf-gcc
|
||||
|
|
|
|||
Loading…
Reference in a new issue