Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 12:53:43 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r433026 - branches/2017Q1/graphics/svgalib/files
Message-ID:  <201702011253.v11CrhL7076796@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Wed Feb  1 12:53:42 2017
New Revision: 433026
URL: https://svnweb.freebsd.org/changeset/ports/433026

Log:
  MFH: r432966
  
  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
  Approved by:	ports-secteam blanket

Modified:
  branches/2017Q1/graphics/svgalib/files/patch-gl-inlstring.h
Directory Properties:
  branches/2017Q1/   (props changed)

Modified: branches/2017Q1/graphics/svgalib/files/patch-gl-inlstring.h
==============================================================================
--- branches/2017Q1/graphics/svgalib/files/patch-gl-inlstring.h	Wed Feb  1 12:42:16 2017	(r433025)
+++ branches/2017Q1/graphics/svgalib/files/patch-gl-inlstring.h	Wed Feb  1 12:53:42 2017	(r433026)
@@ -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?201702011253.v11CrhL7076796>