Skip to content

Commit

Permalink
Enable -morello-bounded-memargs=caller-only for purecap
Browse files Browse the repository at this point in the history
This is the first phase of the ABI switch whose end goal is to enable
-morello-bounded-memargs for all purecap code.
  • Loading branch information
bsdjhb authored and dpgao committed Jun 27, 2023
1 parent 1fb7517 commit a24c2bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion share/mk/bsd.cpu.mk
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ MACHINE_CPU += riscv
.if ${MACHINE_CPUARCH} == "aarch64"
. if ${MACHINE_CPU:Mcheri}
CFLAGS+= -march=morello
CFLAGS+= -Xclang -morello-vararg=new
CFLAGS+= -Xclang -morello-vararg=new -Xclang -morello-bounded-memargs=caller-only
LDFLAGS+= -march=morello
. endif

Expand Down
2 changes: 1 addition & 1 deletion sys/conf/kern.mk
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ INLINE_LIMIT?= 8000

.if ${MACHINE_CPU:Mcheri}
CFLAGS+= -march=morello
CFLAGS+= -Xclang -morello-vararg=new
CFLAGS+= -Xclang -morello-vararg=new -Xclang -morello-bounded-memargs=caller-only
.endif

.if ${MACHINE_ARCH:Maarch*c*}
Expand Down

0 comments on commit a24c2bf

Please sign in to comment.