svn commit: r432966 - head/graphics/svgalib/files
Jan Beich
jbeich at FreeBSD.org
Wed Feb 1 05:24:36 UTC 2017
Author: jbeich
Date: Wed Feb 1 05:24:35 2017
New Revision: 432966
URL: https://svnweb.freebsd.org/changeset/ports/432966
Log:
graphics/svgalib: unbreak with clang 4.0
In file included from gl/grlib.c:7:
gl/inlstring.h:71:9: error: asm-specifier for input or output variable conflicts with asm clobber list
: "cx", "di");
^
gl/inlstring.h:281:17: error: asm-specifier for input or output variable conflicts with asm clobber list
:"ax", "0", "1", "2");
^
gl/inlstring.h:297:17: error: asm-specifier for input or output variable conflicts with asm clobber list
:"ax", "0", "1", "2");
^
gl/inlstring.h:314:17: error: asm-specifier for input or output variable conflicts with asm clobber list
:"ax", "0", "1", "2");
^
PR: 216154
Reported by: antoine (via exp-run)
Submitted by: dim
Approved by: portmgr blanket
Modified:
head/graphics/svgalib/files/patch-gl-inlstring.h (contents, props changed)
Modified: head/graphics/svgalib/files/patch-gl-inlstring.h
==============================================================================
--- head/graphics/svgalib/files/patch-gl-inlstring.h Wed Feb 1 05:24:20 2017 (r432965)
+++ head/graphics/svgalib/files/patch-gl-inlstring.h Wed Feb 1 05:24:35 2017 (r432966)
@@ -8,3 +8,39 @@
#if defined(__alpha__) || defined (NO_ASSEMBLY)
+@@ -68,7 +68,7 @@ static inline void *
+ "rep\n\t"
+ "stosb"
+ : : "a"(c), "D"(s), "c"(count)
+- : "cx", "di");
++ );
+ return s;
+ }
+
+@@ -278,7 +278,7 @@ static inline void *
+ "1:call __memcpyasm_regargs\n\t"
+ "2:":
+ :"S"(dest), "d"(src), "c"(n)
+- :"ax", "0", "1", "2");
++ :"ax");
+ return dest;
+ }
+
+@@ -294,7 +294,7 @@ static inline void *
+ "1:call __memcpyasm_regargs_aligned\n\t"
+ "2:\n\t":
+ :"S"(dest), "d"(src), "c"(n)
+- :"ax", "0", "1", "2");
++ :"ax");
+ return dest;
+ }
+
+@@ -311,7 +311,7 @@ static inline void *
+ "2:\n\t"
+ :
+ :"S"((long) dest), "d"((long) src), "c"((long) n)
+- :"ax", "0", "1", "2");
++ :"ax");
+ return dest;
+ }
+
More information about the svn-ports-all
mailing list