The default bug view has changed. See this FAQ.

Lots of "warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]" with gcc 4.6.1

RESOLVED FIXED in mozilla10

Status

()

Core
JavaScript Engine
--
minor
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: Waldo, Assigned: Waldo)

Tracking

unspecified
mozilla10
All
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

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]
Created attachment 567516 [details] [diff] [review]
Patch
Assignee: general → jwalden+bmo
Status: NEW → ASSIGNED
Attachment #567516 - Flags: review?(dvander)
Comment on attachment 567516 [details] [diff] [review]
Patch

ImmIntPtr(int) should work too for ImmPtr((void*)int)
Attachment #567516 - Flags: review?(dvander) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/b450f04e6134

with ImmIntPtr in a few places.
Target Milestone: --- → mozilla10
https://hg.mozilla.org/mozilla-central/rev/b450f04e6134
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.