For vax, GCC 6.5 and 7.4 cannot compile lfs_inode.c with

-DDIAGNOSTIC and -O2/-O1.
This commit is contained in:
rin 2019-02-17 14:04:31 +00:00
parent 514df72f81
commit 90b9898718

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2019/02/17 04:05:53 rin Exp $
# $NetBSD: Makefile,v 1.10 2019/02/17 14:04:31 rin Exp $
.include "../Makefile.inc"
@ -18,4 +18,9 @@ SRCS+= ulfs_bmap.c ulfs_dirhash.c ulfs_inode.c ulfs_lookup.c \
WARNS= 3
.if ${MACHINE} == "vax"
# GCC 6.5 and 7.4 cannot compile this with -DDIAGNOSTIC and -O2/-O1
COPTS.lfs_inode.c+= -O0
.endif
.include <bsd.kmodule.mk>