diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-02-01 13:24:35 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-02-01 13:24:35 +0800 |
commit | f89f51047cfe3bda6eab254f5215a7bc68e16df0 (patch) | |
tree | 82e29902c3d152e029966e7a26e8927b00a82f2a | |
parent | 1af6c9aad5c077080622aa70d27f61ae827fd895 (diff) | |
download | freebsd-ports-gnome-f89f51047cfe3bda6eab254f5215a7bc68e16df0.tar.gz freebsd-ports-gnome-f89f51047cfe3bda6eab254f5215a7bc68e16df0.tar.zst freebsd-ports-gnome-f89f51047cfe3bda6eab254f5215a7bc68e16df0.zip |
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
-rw-r--r-- | graphics/svgalib/files/patch-gl-inlstring.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/graphics/svgalib/files/patch-gl-inlstring.h b/graphics/svgalib/files/patch-gl-inlstring.h index 129486dd7cb6..a32722885469 100644 --- a/graphics/svgalib/files/patch-gl-inlstring.h +++ b/graphics/svgalib/files/patch-gl-inlstring.h @@ -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; + } + |