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

QTWebkit build fails with gcc 5.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.4.2
    • Component/s: WebKit
    • Labels:
      None
    • Commits:
      650c6ee8e76bb574d3a1bea09e2494992d8f070e

      Description

      When compiling with gcc 5.0 We get link failures on missing putByIndexBeyondVectorLengthWithoutAttributes

      Problem is we are depending upon a behavior of compiler where we are expecting it to emit template and not optimize them away. gcc 5.0 bites us since it does optimize away one of instance after inlining

      gcc-5.0 - O2
      ==============

      readelf -sW JSObject.o | c++filt | grep putByIndexBeyondVectorLengthWithoutAttributes
      298: 00000000 284 FUNC WEAK HIDDEN 43 void JSC::JSObject::putByIndexBeyondVectorLengthWithoutAttributes<(unsigned char)22>(JSC::ExecState*, unsigned int, JSC::JSValue)
      300: 00000000 264 FUNC WEAK HIDDEN 45 void JSC::JSObject::putByIndexBeyondVectorLengthWithoutAttributes<(unsigned char)26>(JSC::ExecState*, unsigned int, JSC::JSValue)

      gcc-5.0 - O1
      ============

      readelf -sW a.o | c++filt | grep putByIndexBeyondVectorLengthWithoutAttributes
      505: 00000000 224 FUNC WEAK DEFAULT 128 void JSC::JSObject::putByIndexBeyondVectorLengthWithoutAttributes<(unsigned char)20>(JSC::ExecState*, unsigned int, JSC::JSValue)
      507: 00000000 252 FUNC WEAK DEFAULT 138 void JSC::JSObject::putByIndexBeyondVectorLengthWithoutAttributes<(unsigned char)22>(JSC::ExecState*, unsigned int, JSC::JSValue)
      510: 00000000 224 FUNC WEAK DEFAULT 147 void JSC::JSObject::putByIndexBeyondVectorLengthWithoutAttributes<(unsigned char)26>(JSC::ExecState*, unsigned int, JSC::JSValue)

        Attachments

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

          Activity

            People

            • Assignee:
              allan.jensen Allan Sandfeld Jensen
              Reporter:
              khem Khem Raj
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes