Fix compilation on Android with 4.8 toolchain
authorLaszlo Agocs <laszlo.agocs@digia.com>
Tue, 1 Oct 2013 08:14:54 +0000 (10:14 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 1 Oct 2013 09:55:38 +0000 (11:55 +0200)
Change-Id: I1ce4ec8c9c671f0130c1530c772c1dd74f1fb1f4
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/compiler/qv4isel_masm_p.h
src/qml/jsruntime/qv4exception_p.h
src/qml/jsruntime/qv4sequenceobject.cpp
src/qml/jsruntime/qv4unwindhelper_arm_p.h
src/quick/scenegraph/util/qsgtexture.cpp

index c233af0..fd84b03 100644 (file)
@@ -1207,6 +1207,8 @@ public:
         done.link(this);
 #else
         Q_ASSERT(!"Not tested on this platform!");
+        Q_UNUSED(reg)
+        Q_UNUSED(addr)
 #endif
     }
 
@@ -1473,6 +1475,8 @@ private:
                                        Assembler::ScratchRegister);
 #else
         Q_ASSERT(!"Not supported on this platform!");
+        Q_UNUSED(source)
+        Q_UNUSED(target)
 #endif
         } else if (target->kind == V4IR::Temp::StackSlot) {
 #if CPU(X86_64) || CPU(X86)
@@ -1481,6 +1485,8 @@ private:
             _as->storeDouble(Assembler::FPGpr0, _as->stackSlotPointer(target));
 #else
         Q_ASSERT(!"Not supported on this platform!");
+        Q_UNUSED(source)
+        Q_UNUSED(target)
 #endif
         } else {
             Q_UNIMPLEMENTED();
index eaeebf7..4777e56 100644 (file)
@@ -50,7 +50,7 @@ QT_BEGIN_NAMESPACE
 namespace QV4 {
 
 struct Q_QML_EXPORT Exception {
-    static void throwException(ExecutionContext *throwingContext, const Value &exceptionValue);
+    static void Q_NORETURN throwException(ExecutionContext *throwingContext, const Value &exceptionValue);
 
     ~Exception();
 
@@ -72,7 +72,7 @@ private:
     ExecutionContext *throwingContext;
     bool accepted;
     ExecutionEngine::StackTrace m_stackTrace;
-    static void throwInternal(ExecutionContext *throwingContext, const Value &exceptionValue);
+    static void Q_NORETURN throwInternal(ExecutionContext *throwingContext, const Value &exceptionValue);
 };
 
 } // namespace QV4
index f9e1c40..6b55a09 100644 (file)
@@ -621,6 +621,7 @@ QVariant SequencePrototype::toVariant(QV4::Object *object)
     FOREACH_QML_SEQUENCE_TYPE(SEQUENCE_TO_VARIANT) { /* else */ return QVariant(); }
 }
 
+#undef SEQUENCE_TO_VARIANT
 #define SEQUENCE_TO_VARIANT(ElementType, ElementTypeName, SequenceType, unused) \
     if (typeHint == qMetaTypeId<SequenceType>()) { \
         return QQml##ElementTypeName##List::toVariant(a); \
index e768544..52ffdd5 100644 (file)
@@ -95,13 +95,13 @@ pop lr
 pop r0, r1, r2, r3
 */
 
-#define REG_TO_SP 0b10010000
-#define VSP_MINUS 0b01000000
-#define POP_REG_MULTI 0b10000000
-#define POP_R4_MULTI     0b10100000
-#define POP_R4_R14_MULTI 0b10101000
-#define POP_R0_TO_R3 0b10110001
-#define FINISH 0b10110000
+#define REG_TO_SP ((unsigned int) 0b10010000)
+#define VSP_MINUS ((unsigned int) 0b01000000)
+#define POP_REG_MULTI ((unsigned int) 0b10000000)
+#define POP_R4_MULTI     ((unsigned int) 0b10100000)
+#define POP_R4_R14_MULTI ((unsigned int) 0b10101000)
+#define POP_R0_TO_R3 ((unsigned int) 0b10110001)
+#define FINISH ((unsigned int) 0b10110000)
 
 #define MK_UW_WORD(first, second, third, fourth) \
            (((first) << 24) | \
index 96be4d3..b079100 100644 (file)
@@ -103,7 +103,7 @@ QSGTexturePrivate::QSGTexturePrivate()
 
 static int qt_debug_texture_count = 0;
 
-#if defined(Q_OS_LINUX) || defined (Q_OS_MAC)
+#if (defined(Q_OS_LINUX) || defined (Q_OS_MAC)) && !defined(Q_OS_ANDROID)
 DEFINE_BOOL_CONFIG_OPTION(qmlDebugLeakBacktrace, QML_DEBUG_LEAK_BACKTRACE)
 
 #define BACKTRACE_SIZE 20