[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:30:58 PDT 2009


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





--- Comment #5 from Laszlo Gombos <laszlo.1.gombos at nokia.com>  2009-09-08 10:30:58 PDT ---
(In reply to comment #4)
> Sure, so maybe you'd have to use const_cast in addition to reinterpret_cast. 
> You'd have to ask someone with more c++ knowledge than I.  You could certainly
> try using both and seeing if that makes the compiler happy.

Eric, thanks for the reviews !

Given that the regular C style (const void*) cast fails - but cast to (void*)
succeeds - , I belie we want to cast it to (void*) - and not to const -
regardless of what armcc complains about.

armcc [...] jitopcodes.cpp
"\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((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