common.mk: Switch to -Os to prevent branch code duplication

Prevents erroneous stalls at vx_bar.  See comment in kernel.cpp
This commit is contained in:
Hansung Kim
2024-09-07 15:49:19 -07:00
parent d2f086344d
commit ed9bf6f73e

View File

@@ -48,7 +48,7 @@ VX_CP = $(LLVM_VORTEX)/bin/llvm-objcopy
#VX_DP = $(RISCV_TOOLCHAIN_PATH)/bin/$(RISCV_PREFIX)-objdump
#VX_CP = $(RISCV_TOOLCHAIN_PATH)/bin/$(RISCV_PREFIX)-objcopy
VX_CFLAGS += -v -O3 -std=c++17
VX_CFLAGS += -v -Os -std=c++17
VX_CFLAGS += -mcmodel=medany -fno-rtti -fno-exceptions -nostartfiles -fdata-sections -ffunction-sections
# comment out below for regression/basic, which uses GCC that doesn't
# understand these flags