hc
2023-11-20 2e7bd41e4e8ab3d1efdabd9e263a2f7fe79bff8c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From fb37abaf9b34e06145ece10601921c74bd382646 Mon Sep 17 00:00:00 2001
From: Nickey Yang <nickey.yang@rock-chips.com>
Date: Thu, 2 Aug 2018 17:06:51 +0800
Subject: [PATCH 4/5] qt5declarative: src: add Q_NEVER_INLINE in writeProperty
 
gcc compiler optimizations will cause crash on cortex_a17 platform
So fix it.
 
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
 src/qml/qml/qqmlpropertydata_p.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/src/qml/qml/qqmlpropertydata_p.h b/src/qml/qml/qqmlpropertydata_p.h
index d9855797c..5acef89b2 100644
--- a/src/qml/qml/qqmlpropertydata_p.h
+++ b/src/qml/qml/qqmlpropertydata_p.h
@@ -367,7 +367,7 @@ public:
             QMetaObject::metacall(target, QMetaObject::ReadProperty, coreIndex(), args);
     }
 
-    bool writeProperty(QObject *target, void *value, WriteFlags flags) const
+    Q_NEVER_INLINE bool writeProperty(QObject *target, void *value, WriteFlags flags) const
     {
         int status = -1;
         void *argv[] = { value, nullptr, &status, &flags };
-- 
2.20.1