Module Name:    src
Committed By:   rin
Date:           Tue Feb 14 09:05:18 UTC 2017

Modified Files:
        src/doc: HACKS
        src/external/bsd/mdocml/lib/libmandoc: Makefile

Log Message:
add hack for libmandoc on vax:
mandoc(1) receives SIGILL in in_line_argn() from mdoc_macro.c


To generate a diff of this commit:
cvs rdiff -u -r1.179 -r1.180 src/doc/HACKS
cvs rdiff -u -r1.7 -r1.8 src/external/bsd/mdocml/lib/libmandoc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/doc/HACKS
diff -u src/doc/HACKS:1.179 src/doc/HACKS:1.180
--- src/doc/HACKS:1.179	Tue Feb 14 09:00:03 2017
+++ src/doc/HACKS	Tue Feb 14 09:05:17 2017
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.179 2017/02/14 09:00:03 rin Exp $
+# $NetBSD: HACKS,v 1.180 2017/02/14 09:05:17 rin Exp $
 #
 # This file is intended to document workarounds for currently unsolved
 # (mostly) compiler bugs.
@@ -557,6 +557,14 @@ port	vax
 		hosts via ssh fails.
 	kcah
 
+	hack	mandoc miscompile
+	date	Tue Feb 14 18:03:05 JST 2017
+	who	rin
+	file	external/bsd/mdocml/lib/libmandoc/Makefile : 1.8
+	descr
+		mandoc(1) receives SIGILL in in_line_argn() from mdoc_macro.c.
+	kcah
+
 port	arm
 
 	hack	gcc-unsigned-compare

Index: src/external/bsd/mdocml/lib/libmandoc/Makefile
diff -u src/external/bsd/mdocml/lib/libmandoc/Makefile:1.7 src/external/bsd/mdocml/lib/libmandoc/Makefile:1.8
--- src/external/bsd/mdocml/lib/libmandoc/Makefile:1.7	Fri Jul 15 19:40:42 2016
+++ src/external/bsd/mdocml/lib/libmandoc/Makefile	Tue Feb 14 09:05:17 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2016/07/15 19:40:42 christos Exp $
+# $NetBSD: Makefile,v 1.8 2017/02/14 09:05:17 rin Exp $
 
 LIBISPRIVATE=	yes
 
@@ -36,4 +36,9 @@ tbl_opts.c
 
 MAN=	mandoc.3
 
+# XXX
+.if ${MACHINE} == "vax"
+COPTS.mdoc_macro.c+=-O0
+.endif
+
 .include <bsd.lib.mk>

Reply via email to