Work around an LLVM 8.0.0 optimizer bug that causes htmldoc to spin.

From FreeBSD
This commit is contained in:
naddy 2019-06-23 22:54:06 +00:00
parent f8d236ce78
commit 736c0ff40c
2 changed files with 21 additions and 3 deletions

View File

@ -1,18 +1,18 @@
# $OpenBSD: Makefile,v 1.44 2019/03/13 15:43:25 fcambus Exp $
# $OpenBSD: Makefile,v 1.45 2019/06/23 22:54:06 naddy Exp $
COMMENT = convert HTML pages to PDF/PS format
V = 1.8.29
DISTNAME = htmldoc-${V}
CATEGORIES = print www
REVISION = 4
REVISION = 5
HOMEPAGE = https://www.msweet.org/htmldoc/
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE = Yes
WANTLIB += c crypto m ssl z jpeg png ${COMPILER_LIBCXX}

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-htmldoc_ps-pdf_cxx,v 1.1 2019/06/23 22:54:06 naddy Exp $
Work around an LLVM 8.0.0 optimizer bug that causes htmldoc to spin.
https://github.com/michaelrsweet/htmldoc/issues/349
https://bugs.llvm.org/show_bug.cgi?id=41998
Index: htmldoc/ps-pdf.cxx
--- htmldoc/ps-pdf.cxx.orig
+++ htmldoc/ps-pdf.cxx
@@ -5315,7 +5315,7 @@ parse_pre(tree_t *t, /* I - Tree to parse */
line[10240],
*lineptr,
*dataptr;
- int col;
+ volatile int col;
float width,
height,
rgb[3];