Last Comment Bug 693100 - Lots of "warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]" with gcc 4.6.1
: Lots of "warning: cast to pointer from integer of different size [-Wint-to-po...
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: unspecified
: All Linux
: -- minor (vote)
: mozilla10
Assigned To: Jeff Walden [:Waldo] (remove +bmo to email)
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-08 14:41 PDT by Jeff Walden [:Waldo] (remove +bmo to email)
Modified: 2011-10-18 05:38 PDT (History)
1 user (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Patch (10.37 KB, patch)
2011-10-17 12:03 PDT, Jeff Walden [:Waldo] (remove +bmo to email)
dvander: review+
Details | Diff | Splinter Review

Description Jeff Walden [:Waldo] (remove +bmo to email) 2011-10-08 14:41:48 PDT
Filing to get on record, especially as I'm not certain what should be done for the tracer ones...

/home/jwalden/moz/slots/js/src/jstracer.cpp: In function ‘JSBool js::PrintOnTrace(char*, uint32, double*)’:
/home/jwalden/moz/slots/js/src/jstracer.cpp:1020:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

/home/jwalden/moz/slots/js/src/jstracer.cpp: In member function ‘js::RecordingStatus js::TraceRecorder::createThis(JSObject&, nanojit::LIns*, nanojit::LIns**)’:
/home/jwalden/moz/slots/js/src/jstracer.cpp:13661:60: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

/home/jwalden/moz/slots/js/src/methodjit/MonoIC.cpp: In member function ‘bool CallCompiler::generateNativeStub()’:
/home/jwalden/moz/slots/js/src/methodjit/MonoIC.cpp:1031:70: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

/home/jwalden/moz/slots/js/src/methodjit/FastBuiltins.cpp: In member function ‘js::mjit::CompileStatus js::mjit::Compiler::compileArrayWithArgs(uint32)’:
/home/jwalden/moz/slots/js/src/methodjit/FastBuiltins.cpp:610:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

/home/jwalden/moz/slots/js/src/methodjit/InvokeHelpers.cpp: In function ‘void* js_InternalInterpret(void*, void*, void*, js::VMFrame&)’:
/home/jwalden/moz/slots/js/src/methodjit/InvokeHelpers.cpp:1439:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

/home/jwalden/moz/slots/js/src/methodjit/Compiler.cpp: In member function ‘bool js::mjit::Compiler::jsop_newinit()’:
/home/jwalden/moz/slots/js/src/methodjit/Compiler.cpp:6450:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

/home/jwalden/moz/slots/js/src/methodjit/Compiler.cpp: In member function ‘void js::mjit::Compiler::finishBarrier(const js::mjit::Compiler::BarrierState&, js::mjit::RejoinState, uint32)’:
/home/jwalden/moz/slots/js/src/methodjit/Compiler.cpp:7561:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Comment 1 Jeff Walden [:Waldo] (remove +bmo to email) 2011-10-17 12:03:12 PDT
Created attachment 567516 [details] [diff] [review]
Patch
Comment 2 David Anderson [:dvander] 2011-10-17 12:08:09 PDT
Comment on attachment 567516 [details] [diff] [review]
Patch

ImmIntPtr(int) should work too for ImmPtr((void*)int)
Comment 3 Jeff Walden [:Waldo] (remove +bmo to email) 2011-10-17 14:45:46 PDT
https://hg.mozilla.org/integration/mozilla-inbound/rev/b450f04e6134

with ImmIntPtr in a few places.
Comment 4 Marco Bonardo [::mak] (Away 6-20 Aug) 2011-10-18 05:38:48 PDT
https://hg.mozilla.org/mozilla-central/rev/b450f04e6134

Note You need to log in before you can comment on or make changes to this bug.