diff options
author | Andrew Waterman <andrew@sifive.com> | 2021-02-01 16:23:17 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2021-02-01 16:23:17 -0800 |
commit | ea85805fe1fbdd68a76a3d8634dbe8ecf980141b (patch) | |
tree | 1c622336a82f3368472beb7e7e2ccf419a5ba8c7 /benchmarks | |
parent | e75931826097c741f274212a49302e39ca597168 (diff) | |
download | riscv-tests-ea85805fe1fbdd68a76a3d8634dbe8ecf980141b.zip riscv-tests-ea85805fe1fbdd68a76a3d8634dbe8ecf980141b.tar.gz riscv-tests-ea85805fe1fbdd68a76a3d8634dbe8ecf980141b.tar.bz2 |
Prevent GCC from pattern-matching the memset implementation
Otherwise, we get infinite recursion.
Resolves #321
Resolves #322
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile index cc32714..c9469e2 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -37,7 +37,7 @@ bmarks = \ RISCV_PREFIX ?= riscv$(XLEN)-unknown-elf- RISCV_GCC ?= $(RISCV_PREFIX)gcc -RISCV_GCC_OPTS ?= -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf +RISCV_GCC_OPTS ?= -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -fno-tree-loop-distribute-patterns RISCV_LINK ?= $(RISCV_GCC) -T $(src_dir)/common/test.ld $(incs) RISCV_LINK_OPTS ?= -static -nostdlib -nostartfiles -lm -lgcc -T $(src_dir)/common/test.ld RISCV_OBJDUMP ?= $(RISCV_PREFIX)objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.text.init --section=.data |