Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
4.7.1
-
None
-
Linux kernel version 2.6.32.26; gcc version 4.3.3 ;little endian ;cpu (MIPS 34kc)
Description
In src/script/bridge/qscriptdeclarativeclass_p.h 75 line
"dummy[8]" will cause qml "bus error",When I modify it to "char dummy[8] _attribute_ ((aligned(8)))",it can work normally.
First I use Qt in soft-float environment,so it performance good. If I change environment to hard-float,it would "bus error",when I run qml; I trace this problem ,i find error occur in "JSValue.h" .But it is called in "QScriptDeclarative::Value::Value(QScriptEngine *eng,float value)".So I think it's a problem of align.
I think in embed environment ,it need 8 byte align for use double type.