Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 05:24:35 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r432966 - head/graphics/svgalib/files
Message-ID:  <201702010524.v115OZr0086296@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
+ }
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702010524.v115OZr0086296>