Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/modules/lfs For vax, GCC 6.5 and 7.4 cannot compile lfs_...



details:   https://anonhg.NetBSD.org/src/rev/f20f6b0b3e48
branches:  trunk
changeset: 448990:f20f6b0b3e48
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Feb 17 14:04:31 2019 +0000

description:
For vax, GCC 6.5 and 7.4 cannot compile lfs_inode.c with
-DDIAGNOSTIC and -O2/-O1.

diffstat:

 sys/modules/lfs/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r df012ce954e0 -r f20f6b0b3e48 sys/modules/lfs/Makefile
--- a/sys/modules/lfs/Makefile  Sun Feb 17 13:46:03 2019 +0000
+++ b/sys/modules/lfs/Makefile  Sun Feb 17 14:04:31 2019 +0000
@@ -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 @@
 
 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>



Home | Main Index | Thread Index | Old Index