Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 2015 23:56:39 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r379327 - head/emulators/virtualbox-ose/files
Message-ID:  <201502182356.t1INud2r086185@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Wed Feb 18 23:56:38 2015
New Revision: 379327
URL: https://svnweb.freebsd.org/changeset/ports/379327
QAT: https://qat.redports.org/buildarchive/r379327/

Log:
  Fix build with Clang on i386.  Previously, we defined GCCUSESGAS to work
  around the problem but X.org removed it from 1.17:
  
  http://cgit.freedesktop.org/xorg/xserver/commit/?id=93745a6c1afc830759219f8632ec565d83c7bc12

Added:
  head/emulators/virtualbox-ose/files/patch-src-VBox-Additions-x11-x11include-xorg-server-1.17.1-compiler.h   (contents, props changed)

Added: head/emulators/virtualbox-ose/files/patch-src-VBox-Additions-x11-x11include-xorg-server-1.17.1-compiler.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/virtualbox-ose/files/patch-src-VBox-Additions-x11-x11include-xorg-server-1.17.1-compiler.h	Wed Feb 18 23:56:38 2015	(r379327)
@@ -0,0 +1,51 @@
+--- src/VBox/Additions/x11/x11include/xorg-server-1.17.1/compiler.h.orig	2015-02-12 11:08:51.000000000 -0500
++++ src/VBox/Additions/x11/x11include/xorg-server-1.17.1/compiler.h	2015-02-18 17:44:16.919457000 -0500
+@@ -972,26 +972,26 @@
+ static __inline__ void
+ outb(unsigned short port, unsigned char val)
+ {
+-    __asm__ __volatile__("out%B0 (%1)"::"a"(val), "d"(port));
++    __asm__ __volatile__("outb %0,%1"::"a"(val), "d"(port));
+ }
+ 
+ static __inline__ void
+ outw(unsigned short port, unsigned short val)
+ {
+-    __asm__ __volatile__("out%W0 (%1)"::"a"(val), "d"(port));
++    __asm__ __volatile__("outw %0,%1"::"a"(val), "d"(port));
+ }
+ 
+ static __inline__ void
+ outl(unsigned short port, unsigned int val)
+ {
+-    __asm__ __volatile__("out%L0 (%1)"::"a"(val), "d"(port));
++    __asm__ __volatile__("outl %0,%1"::"a"(val), "d"(port));
+ }
+ 
+ static __inline__ unsigned int
+ inb(unsigned short port)
+ {
+     unsigned char ret;
+-    __asm__ __volatile__("in%B0 (%1)":"=a"(ret):"d"(port));
++    __asm__ __volatile__("inb %1,%0":"=a"(ret):"d"(port));
+ 
+     return ret;
+ }
+@@ -1000,7 +1000,7 @@
+ inw(unsigned short port)
+ {
+     unsigned short ret;
+-    __asm__ __volatile__("in%W0 (%1)":"=a"(ret):"d"(port));
++    __asm__ __volatile__("inw %1,%0":"=a"(ret):"d"(port));
+ 
+     return ret;
+ }
+@@ -1009,7 +1009,7 @@
+ inl(unsigned short port)
+ {
+     unsigned int ret;
+-    __asm__ __volatile__("in%L0 (%1)":"=a"(ret):"d"(port));
++    __asm__ __volatile__("inl %1,%0":"=a"(ret):"d"(port));
+ 
+     return ret;
+ }



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