[Webkit-unassigned] [Bug 135906] New: [JSC] Build error on ARM64 with gcc: JSC::ARM64Assembler::RegisterID coerced into 5-bit bit field

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 13 14:57:11 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=135906

           Summary: [JSC] Build error on ARM64 with gcc:
                    JSC::ARM64Assembler::RegisterID coerced into 5-bit bit
                    field
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: akiss at inf.u-szeged.hu
                CC: msaboff at apple.com


When compilig JSC for arm64 with gcc, the following error is raised:

Source/JavaScriptCore/assembler/ARM64Assembler.h:629:48: error: 'JSC::ARM64Assembler::LinkRecord::<anonymous union>::RealTypes::m_compareRegister' is too small to hold all values of 'JSC::ARM64Assembler::RegisterID {aka enum JSC::ARM64Registers::RegisterID}' [-Werror]
                 RegisterID m_compareRegister : 5;

This is because zr = 0x3f in RegisterID, so at least 6 bits are needed, but we only have 5.

CopyTypes, sharing an enum with RealTypes, is 3 x 64 bits, so increasing the size of the RealTypes::m_compareRegister bit field seems to be a valid solution.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list