- Rebase patch
This commit is contained in:
parent
a2d56a5f72
commit
29b4c1b500
@ -34,7 +34,7 @@ Source0: http://download.qt.io/snapshots/qt/5.6/%{version}%{?prerelease:-%{prere
|
|||||||
|
|
||||||
# support no_sse2 CONFIG (fedora i686 builds cannot assume -march=pentium4 -msse2 -mfpmath=sse flags, or the JIT that needs them)
|
# support no_sse2 CONFIG (fedora i686 builds cannot assume -march=pentium4 -msse2 -mfpmath=sse flags, or the JIT that needs them)
|
||||||
# https://codereview.qt-project.org/#change,73710
|
# https://codereview.qt-project.org/#change,73710
|
||||||
Patch1: qtdeclarative-opensource-src-5.5.0-no_sse2.patch
|
Patch1: qtdeclarative-opensource-src-5.7.0-no_sse2.patch
|
||||||
|
|
||||||
# workaround for possible deadlock condition in QQuickShaderEffectSource
|
# workaround for possible deadlock condition in QQuickShaderEffectSource
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1237269
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1237269
|
||||||
|
@ -1,39 +0,0 @@
|
|||||||
diff -up qtdeclarative-opensource-src-5.5.0/src/qml/jsruntime/jsruntime.pri.no_sse2 qtdeclarative-opensource-src-5.5.0/src/qml/jsruntime/jsruntime.pri
|
|
||||||
--- qtdeclarative-opensource-src-5.5.0/src/qml/jsruntime/jsruntime.pri.no_sse2 2015-06-29 15:12:38.000000000 -0500
|
|
||||||
+++ qtdeclarative-opensource-src-5.5.0/src/qml/jsruntime/jsruntime.pri 2015-07-16 08:49:00.280760307 -0500
|
|
||||||
@@ -111,6 +111,11 @@ SOURCES += \
|
|
||||||
$$PWD/qv4string.cpp \
|
|
||||||
$$PWD/qv4value.cpp
|
|
||||||
|
|
||||||
+linux-g++*:isEqual(QT_ARCH,i386):!no_sse2 {
|
|
||||||
+ QMAKE_CFLAGS += -msse2 -mfpmath=sse
|
|
||||||
+ QMAKE_CXXFLAGS += -msse2 -mfpmath=sse
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
valgrind {
|
|
||||||
DEFINES += V4_USE_VALGRIND
|
|
||||||
}
|
|
||||||
diff -up qtdeclarative-opensource-src-5.5.0/src/qml/jsruntime/qv4global_p.h.no_sse2 qtdeclarative-opensource-src-5.5.0/src/qml/jsruntime/qv4global_p.h
|
|
||||||
--- qtdeclarative-opensource-src-5.5.0/src/qml/jsruntime/qv4global_p.h.no_sse2 2015-06-29 15:12:38.000000000 -0500
|
|
||||||
+++ qtdeclarative-opensource-src-5.5.0/src/qml/jsruntime/qv4global_p.h 2015-07-16 08:49:00.280760307 -0500
|
|
||||||
@@ -74,7 +74,7 @@ inline double trunc(double d) { return d
|
|
||||||
//
|
|
||||||
// NOTE: This should match the logic in qv4targetplatform_p.h!
|
|
||||||
|
|
||||||
-#if defined(Q_PROCESSOR_X86) && !defined(__ILP32__) \
|
|
||||||
+#if defined(Q_PROCESSOR_X86) && !defined(__ILP32__) && defined(__SSE2__) \
|
|
||||||
&& (defined(Q_OS_WIN) || defined(Q_OS_LINUX) || defined(Q_OS_QNX) || defined(Q_OS_FREEBSD))
|
|
||||||
#define V4_ENABLE_JIT
|
|
||||||
#elif defined(Q_PROCESSOR_X86_64) && !defined(__ILP32__) \
|
|
||||||
diff -up qtdeclarative-opensource-src-5.5.0/src/qml/qml/v8/qv8engine.cpp.no_sse2 qtdeclarative-opensource-src-5.5.0/src/qml/qml/v8/qv8engine.cpp
|
|
||||||
--- qtdeclarative-opensource-src-5.5.0/src/qml/qml/v8/qv8engine.cpp.no_sse2 2015-06-29 15:12:39.000000000 -0500
|
|
||||||
+++ qtdeclarative-opensource-src-5.5.0/src/qml/qml/v8/qv8engine.cpp 2015-07-16 08:49:00.280760307 -0500
|
|
||||||
@@ -123,7 +123,7 @@ QV8Engine::QV8Engine(QJSEngine* qq)
|
|
||||||
, m_xmlHttpRequestData(0)
|
|
||||||
, m_listModelData(0)
|
|
||||||
{
|
|
||||||
-#ifdef Q_PROCESSOR_X86_32
|
|
||||||
+#if defined(Q_PROCESSOR_X86_32) && defined(__SSE2__)
|
|
||||||
if (!qCpuHasFeature(SSE2)) {
|
|
||||||
qFatal("This program requires an X86 processor that supports SSE2 extension, at least a Pentium 4 or newer");
|
|
||||||
}
|
|
36
qtdeclarative-opensource-src-5.7.0-no_sse2.patch
Normal file
36
qtdeclarative-opensource-src-5.7.0-no_sse2.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
--- qtdeclarative-opensource-src-5.7.0/src/qml/jsruntime/qv4global_p.h 2016-06-11 14:05:08.000000000 +0200
|
||||||
|
+++ qtdeclarative-opensource-src-5.7.0/src/qml/jsruntime/qv4global_p.h.new 2016-07-15 21:17:04.313953097 +0200
|
||||||
|
@@ -91,7 +91,7 @@
|
||||||
|
//
|
||||||
|
// NOTE: This should match the logic in qv4targetplatform_p.h!
|
||||||
|
|
||||||
|
-#if defined(Q_PROCESSOR_X86) && !defined(__ILP32__) \
|
||||||
|
+#if defined(Q_PROCESSOR_X86) && !defined(__ILP32__) && defined(__SSE2__) \
|
||||||
|
&& (defined(Q_OS_WIN) || defined(Q_OS_LINUX) || defined(Q_OS_QNX) || defined(Q_OS_FREEBSD))
|
||||||
|
# define V4_ENABLE_JIT
|
||||||
|
#elif defined(Q_PROCESSOR_X86_64) && !defined(__ILP32__) \
|
||||||
|
--- qtdeclarative-opensource-src-5.7.0/src/qml/jsruntime/jsruntime.pri 2016-06-11 14:05:08.000000000 +0200
|
||||||
|
+++ qtdeclarative-opensource-src-5.7.0/src/qml/jsruntime/jsruntime.pri.new 2016-07-15 21:13:37.519119496 +0200
|
||||||
|
@@ -108,6 +108,11 @@
|
||||||
|
$$PWD/qv4string.cpp \
|
||||||
|
$$PWD/qv4value.cpp
|
||||||
|
|
||||||
|
+linux-g++*:isEqual(QT_ARCH,i386):!no_sse2 {
|
||||||
|
+ QMAKE_CFLAGS += -msse2 -mfpmath=sse
|
||||||
|
+ QMAKE_CXXFLAGS += -msse2 -mfpmath=sse
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
valgrind {
|
||||||
|
DEFINES += V4_USE_VALGRIND
|
||||||
|
}
|
||||||
|
--- qtdeclarative-opensource-src-5.7.0/src/qml/qml/v8/qv8engine.cpp 2016-06-11 14:05:08.000000000 +0200
|
||||||
|
+++ qtdeclarative-opensource-src-5.7.0/src/qml/qml/v8/qv8engine.cpp.new 2016-07-15 21:18:37.202327536 +0200
|
||||||
|
@@ -130,7 +130,7 @@
|
||||||
|
, m_xmlHttpRequestData(0)
|
||||||
|
, m_listModelData(0)
|
||||||
|
{
|
||||||
|
-#ifdef Q_PROCESSOR_X86_32
|
||||||
|
+#if defined(Q_PROCESSOR_X86_32) && defined(__SSE2__)
|
||||||
|
if (!qCpuHasFeature(SSE2)) {
|
||||||
|
qFatal("This program requires an X86 processor that supports SSE2 extension, at least a Pentium 4 or newer");
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user