kern.mk (88eb44d74ffa12804ba35728d76dbae9ab3fb627) | kern.mk (0869dceb9d2642defe8d34b09d65145cb3f81e09) |
---|---|
1# $FreeBSD$ 2 3# 4# Warning flags for compiling the kernel and components of the kernel: 5# 6CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ 7 -Wmissing-prototypes -Wpointer-arith -Wcast-qual \ 8 -Wundef -Wno-pointer-sign ${FORMAT_EXTENSIONS} \ --- 130 unchanged lines hidden (view full) --- 139# Note that clang and GCC refer to this code model as "medium" and "medany" 140# respectively. 141# 142.if ${MACHINE_CPUARCH} == "riscv" 143CFLAGS+= -march=rv64imafdc -mabi=lp64 144CFLAGS.clang+= -mcmodel=medium 145CFLAGS.gcc+= -mcmodel=medany 146INLINE_LIMIT?= 8000 | 1# $FreeBSD$ 2 3# 4# Warning flags for compiling the kernel and components of the kernel: 5# 6CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ 7 -Wmissing-prototypes -Wpointer-arith -Wcast-qual \ 8 -Wundef -Wno-pointer-sign ${FORMAT_EXTENSIONS} \ --- 130 unchanged lines hidden (view full) --- 139# Note that clang and GCC refer to this code model as "medium" and "medany" 140# respectively. 141# 142.if ${MACHINE_CPUARCH} == "riscv" 143CFLAGS+= -march=rv64imafdc -mabi=lp64 144CFLAGS.clang+= -mcmodel=medium 145CFLAGS.gcc+= -mcmodel=medany 146INLINE_LIMIT?= 8000 |
147 148.if ${LINKER_FEATURES:Mriscv-relaxations} == "" 149CFLAGS+= -mno-relax |
|
147.endif | 150.endif |
151.endif |
|
148 149# 150# For sparc64 we want the medany code model so modules may be located 151# anywhere in the 64-bit address space. We also tell GCC to use floating 152# point emulation. This avoids using floating point registers for integer 153# operations which it has a tendency to do. 154# 155.if ${MACHINE_CPUARCH} == "sparc64" --- 157 unchanged lines hidden --- | 152 153# 154# For sparc64 we want the medany code model so modules may be located 155# anywhere in the 64-bit address space. We also tell GCC to use floating 156# point emulation. This avoids using floating point registers for integer 157# operations which it has a tendency to do. 158# 159.if ${MACHINE_CPUARCH} == "sparc64" --- 157 unchanged lines hidden --- |