diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2026-01-31 17:10:36 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2026-01-31 17:10:36 +0000 |
| commit | fe45651224bea513c7db88abbc53bd1241ab442f (patch) | |
| tree | cebca2ec9bef78b7a2d09f1ec931f50c58afb137 | |
| parent | 2e8ef82b3418b41e7c54e2dbd16df0edb3cb8376 (diff) | |
stand: Add compiler builtins needed by GCC for RISC-V
Reviewed by: mhorne
Differential Revision: https://reviews.freebsd.org/D54963
| -rw-r--r-- | stand/libsa/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stand/libsa/Makefile b/stand/libsa/Makefile index 470c03032f61..11896cf1a2ab 100644 --- a/stand/libsa/Makefile +++ b/stand/libsa/Makefile @@ -66,6 +66,9 @@ SRCS+= clzsi2.c ctzsi2.c SRCS+= divmoddi4.c divmodsi4.c divdi3.c divsi3.c moddi3.c modsi3.c SRCS+= udivmoddi4.c udivmodsi4.c udivdi3.c udivsi3.c umoddi3.c umodsi3.c SRCS+= ashldi3.c ashrdi3.c lshrdi3.c +.if ${MACHINE_CPUARCH} == "riscv" +SRCS+= bswapdi2.c bswapsi2.c clzdi2.c ctzdi2.c +.endif .if ${MACHINE_CPUARCH:Namd64:Ni386} == "" .PATH: ${SASRC}/x86 |
