[Webkit-unassigned] [Bug 98628] New: Build Error in compiling FastMalloc.cpp on ARM Thumb2 with GCC
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Oct 7 20:26:08 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=98628
Summary: Build Error in compiling FastMalloc.cpp on ARM Thumb2
with GCC
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Web Template Framework
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: sg5.lee at samsung.com
If I compile with USE_SYSTEM_MALLOC=OFF and ENABLE_FAST_MALLOC=ON for ARM thumb2, I got following compilation error.
{standard input}: Assembler messages:
{standard input}:1393: Error: bad immediate value for offset (3712)
...
{standard input}:13127: Error: bad immediate value for offset (3712)
{standard input}:13130: Error: bad immediate value for offset (3712)
make[2]: *** [Source/WTF/wtf/CMakeFiles/wtf_efl.dir/FastMalloc.cpp.o] Error 1
It seems the g++ generated assembly code is too big.
As a result, it is out of range of Thumb2 jump range.
( I am using gcc 4.5.3. )
If I compile FastMalloc.cpp with -O0, the error does not occurs.
( Above error is occurs with -O3, -O2, and -O1 )
I found that by compiling only the function
ALWAYS_INLINE void TCMalloc_Central_FreeList::ReleaseToSpans(void* object)
with -O0, the error disappears.
Above function seems to be too large to force inlining for gcc 4.5.3.
--
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