add qemu with gcc4 hack
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@591 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
# --- T2-COPYRIGHT-NOTE-BEGIN ---
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||
#
|
||||
# T2 SDE: package/.../qemu/qemu-0.9.1-always_inline.patch
|
||||
# Copyright (C) 2008 The T2 SDE Project
|
||||
#
|
||||
# More information can be found in the files COPYING and README.
|
||||
#
|
||||
# This patch file is dual-licensed. It is available under the license the
|
||||
# patched project is licensed under, as long as it is an OpenSource license
|
||||
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||||
# of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
# --- T2-COPYRIGHT-NOTE-END ---
|
||||
|
||||
--- a/host-utils.h
|
||||
+++ b/host-utils.h
|
||||
@@ -23,6 +23,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
+#include "osdep.h"
|
||||
+
|
||||
#if defined(__x86_64__)
|
||||
#define __HAVE_FAST_MULU64__
|
||||
static always_inline void mulu64 (uint64_t *plow, uint64_t *phigh,
|
||||
diff --git a/osdep.h b/osdep.h
|
||||
index bc513ad..2f56f2b 100644
|
||||
--- a/osdep.h
|
||||
+++ b/osdep.h
|
||||
@@ -33,7 +33,9 @@
|
||||
#define always_inline __attribute__ (( always_inline )) __inline__
|
||||
#endif
|
||||
#endif
|
||||
+#if !((__GNUC__ < 3) || defined(__APPLE__))
|
||||
#define inline always_inline
|
||||
+#endif
|
||||
|
||||
#ifdef __i386__
|
||||
#define REGPARM(n) __attribute((regparm(n)))
|
||||
Reference in New Issue
Block a user