Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-17355

It is a problem about align in mips platform

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • 5.0.0
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aakenned Aaron Kennedy
            ocean_c ocean_y
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes