svn commit: r359033 - head/sys/mips/nlm

Alex Richardson arichardson at FreeBSD.org
Tue Mar 17 11:59:41 UTC 2020


Author: arichardson
Date: Tue Mar 17 11:59:40 2020
New Revision: 359033
URL: https://svnweb.freebsd.org/changeset/base/359033

Log:
  Fix build of XLP MIPS kernel with clang
  
  Clang does not recognize some of the GCC optimization options that are
  used to compile ucore_app.bin. This is required to switch MIPS to
  compile with LLVM by default (D23204).
  
  Reviewed By:	imp
  Differential Revision: https://reviews.freebsd.org/D24092

Modified:
  head/sys/mips/nlm/files.xlp

Modified: head/sys/mips/nlm/files.xlp
==============================================================================
--- head/sys/mips/nlm/files.xlp	Tue Mar 17 10:02:59 2020	(r359032)
+++ head/sys/mips/nlm/files.xlp	Tue Mar 17 11:59:40 2020	(r359033)
@@ -23,7 +23,7 @@ mips/nlm/dev/net/sgmii.c			optional xlpge
 mips/nlm/dev/net/xaui.c				optional xlpge
 mips/nlm/dev/net/xlpge.c			optional xlpge
 ucore_app.bin					optional xlpge	\
-	compile-with	"${CC} -EB -march=mips32 -mabi=32 -msoft-float -I. -I$S -O3 -funroll-loops -finline-limit=20000 -fno-tree-loop-optimize -fomit-frame-pointer -mno-branch-likely -fno-pic -mno-abicalls -ffunction-sections -fdata-sections -G0 -Wall -Werror -c $S/$M/nlm/dev/net/ucore/crt0_basic.S  $S/$M/nlm/dev/net/ucore/ucore_app.c && ${LD} -melf32btsmip_fbsd -d -warn-common -T$S/$M/nlm/dev/net/ucore/ld.ucore.S crt0_basic.o ucore_app.o -o ucore_app && ${OBJCOPY} -S -O binary -R .note -R .comment ucore_app ${.TARGET}" \
+	compile-with	"${CC} -EB -march=mips32 -mabi=32 -msoft-float -I. -I$S -O3 -funroll-loops -fomit-frame-pointer -Qunused-arguments -mno-branch-likely -fno-pic -mno-abicalls -ffunction-sections -fdata-sections -G0 -Wall -Werror -c $S/$M/nlm/dev/net/ucore/crt0_basic.S  $S/$M/nlm/dev/net/ucore/ucore_app.c && ${LD} -melf32btsmip_fbsd -d -warn-common -T$S/$M/nlm/dev/net/ucore/ld.ucore.S crt0_basic.o ucore_app.o -o ucore_app && ${OBJCOPY} -S -O binary -R .note -R .comment ucore_app ${.TARGET}" \
 	no-obj no-implicit-rule	before-depend			\
 	clean		"crt0_basic.o ucore_app.o ucore_app ucore_app.bin"
 ucore_app_bin.h					optional xlpge	\


More information about the svn-src-all mailing list