[Webkit-unassigned] [Bug 29034] ARM compiler does not understand reinterpret_cast<void*>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 8 10:04:47 PDT 2009


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





--- Comment #3 from Laszlo Gombos <laszlo.1.gombos at nokia.com>  2009-09-08 10:04:47 PDT ---
(In reply to comment #2)
> reinterpret_cast cannot cast away const or other type qualifiers
> 
> Did you try casting to <const void*> to see if that made the compiler happy?

Eric casting it to const void* does not help in fact it just makes it worse.
The armcc error message is confusing. Here are the build logs from casting to
const void*:

armcc [...] jitopcodes.cpp
"\webkit\JavaScriptCore\jit\jitopcodes.cpp", line 1751: Error:  #694:
reinterpret_cast cannot cast away const or other type qualifiers
      move(ImmPtr(reinterpret_cast<const void*>(ctiVMThrowTrampoline)), regT2);
                  ^
"\webkit\JavaScriptCore\jit\jitopcodes.cpp", line 1751: Error:  #289: no
instance of constructor
"JSC::AbstractMacroAssembler<AssemblerType>::ImmPtr::ImmPtr [with
AssemblerType=JSC::ARMAssembler]" matches the argument list argument types are:
(const void *)
      move(ImmPtr(reinterpret_cast<const void*>(ctiVMThrowTrampoline)), regT2);
                  ^
\webkit\JavaScriptCore\jit\jitopcodes.cpp: 0 warnings, 2 errors


armcc [...] jitopcodes.cpp
"\webkit\JavaScriptCore\jit\jitopcodes.cpp", line 1751: Error:  #171: invalid
ty
pe conversion
      move(ImmPtr(static_cast<const void*>(ctiVMThrowTrampoline)), regT2);
                  ^
\webkit\JavaScriptCore\jit\jitopcodes.cpp: 0 warnings, 1 error

-- 
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