TM: gcc warnings in jstracer.cpp

RESOLVED FIXED

Status

()

Core
JavaScript Engine
RESOLVED FIXED
8 years ago
6 years ago

People

(Reporter: gal, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [build_warning])

(Reporter)

Description

8 years ago
../jstracer.cpp: In member function ‘nanojit::LIns* js::TraceRecorder::scopeChain()’:
../jstracer.cpp:7726: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp: In member function ‘void js::TraceRecorder::putActivationObjects()’:
../jstracer.cpp:9738: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp: In member function ‘js::AbortableRecordingStatus js::TraceRecorder::record_EnterFrame(uintN&)’:
../jstracer.cpp:9809: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp:9820: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp:9822: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from ../jstracer.cpp:15404:
../jsrecursion.cpp: In member function ‘js::AbortableRecordingStatus js::TraceRecorder::slurpDownFrames(jsbytecode*)’:
../jsrecursion.cpp:529: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp: In function ‘bool js::VisitFrameSlots(Visitor&, unsigned int, JSStackFrame*, JSStackFrame*) [with Visitor = js::CountSlotsVisitor]’:
../jstracer.cpp:1847:   instantiated from ‘bool js::VisitStackSlots(Visitor&, JSContext*, unsigned int) [with Visitor = js::CountSlotsVisitor]’
../jstracer.cpp:2558:   instantiated from here
../jstracer.cpp:1815: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp: In function ‘bool js::VisitFrameSlots(Visitor&, unsigned int, JSStackFrame*, JSStackFrame*) [with Visitor = js::FlushNativeStackFrameVisitor]’:
../jstracer.cpp:1847:   instantiated from ‘bool js::VisitStackSlots(Visitor&, JSContext*, unsigned int) [with Visitor = js::FlushNativeStackFrameVisitor]’
../jstracer.cpp:3303:   instantiated from here
../jstracer.cpp:1815: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp: In function ‘bool js::VisitFrameSlots(Visitor&, unsigned int, JSStackFrame*, JSStackFrame*) [with Visitor = js::ImportBoxedStackSlotVisitor]’:
../jstracer.cpp:1847:   instantiated from ‘bool js::VisitStackSlots(Visitor&, JSContext*, unsigned int) [with Visitor = js::ImportBoxedStackSlotVisitor]’
../jstracer.cpp:3524:   instantiated from here
../jstracer.cpp:1815: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp: In function ‘bool js::VisitFrameSlots(Visitor&, unsigned int, JSStackFrame*, JSStackFrame*) [with Visitor = js::AdjustCallerStackTypesVisitor]’:
../jstracer.cpp:1847:   instantiated from ‘bool js::VisitStackSlots(Visitor&, JSContext*, unsigned int) [with Visitor = js::AdjustCallerStackTypesVisitor]’
../jstracer.cpp:3870:   instantiated from here
../jstracer.cpp:1815: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp: In function ‘bool js::VisitFrameSlots(Visitor&, unsigned int, JSStackFrame*, JSStackFrame*) [with Visitor = js::DetermineTypesVisitor]’:
../jstracer.cpp:1847:   instantiated from ‘bool js::VisitStackSlots(Visitor&, JSContext*, unsigned int) [with Visitor = js::DetermineTypesVisitor]’
../jstracer.cpp:5983:   instantiated from here
../jstracer.cpp:1815: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp: In function ‘bool js::VisitFrameSlots(Visitor&, unsigned int, JSStackFrame*, JSStackFrame*) [with Visitor = js::CaptureTypesVisitor]’:
../jstracer.cpp:1847:   instantiated from ‘bool js::VisitStackSlots(Visitor&, JSContext*, unsigned int) [with Visitor = js::CaptureTypesVisitor]’
../jstracer.cpp:15394:   instantiated from here
../jstracer.cpp:1815: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp: In function ‘bool js::VisitFrameSlots(Visitor&, unsigned int, JSStackFrame*, JSStackFrame*) [with Visitor = js::ImportFrameSlotsVisitor]’:
../jstracer.cpp:1847:   instantiated from ‘bool js::VisitStackSlots(Visitor&, JSContext*, unsigned int) [with Visitor = js::ImportFrameSlotsVisitor]’
../jsrecursion.cpp:624:   instantiated from here
../jstracer.cpp:1815: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp: In function ‘bool js::VisitFrameSlots(Visitor&, unsigned int, JSStackFrame*, JSStackFrame*) [with Visitor = js::BuildNativeFrameVisitor]’:
../jstracer.cpp:1847:   instantiated from ‘bool js::VisitStackSlots(Visitor&, JSContext*, unsigned int) [with Visitor = js::BuildNativeFrameVisitor]’
../jstracer.cpp:1886:   instantiated from ‘void js::VisitSlots(Visitor&, JSContext*, JSObject*, unsigned int, unsigned int, uint16*) [with Visitor = js::BuildNativeFrameVisitor]’
../jstracer.cpp:2896:   instantiated from here
../jstracer.cpp:1815: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp: In function ‘bool js::VisitFrameSlots(Visitor&, unsigned int, JSStackFrame*, JSStackFrame*) [with Visitor = js::DefaultSlotMap]’:
../jstracer.cpp:1847:   instantiated from ‘bool js::VisitStackSlots(Visitor&, JSContext*, unsigned int) [with Visitor = js::DefaultSlotMap]’
../jstracer.cpp:1886:   instantiated from ‘void js::VisitSlots(Visitor&, JSContext*, JSObject*, unsigned int, unsigned int, uint16*) [with Visitor = js::DefaultSlotMap]’
../jstracer.cpp:1913:   instantiated from ‘void js::VisitSlots(Visitor&, JSContext*, unsigned int, const js::SlotList&) [with Visitor = js::DefaultSlotMap]’
../jstracer.cpp:4575:   instantiated from here
../jstracer.cpp:1815: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp: In function ‘bool js::VisitFrameSlots(Visitor&, unsigned int, JSStackFrame*, JSStackFrame*) [with Visitor = js::TypeCompatibilityVisitor]’:
../jstracer.cpp:1847:   instantiated from ‘bool js::VisitStackSlots(Visitor&, JSContext*, unsigned int) [with Visitor = js::TypeCompatibilityVisitor]’
../jstracer.cpp:1886:   instantiated from ‘void js::VisitSlots(Visitor&, JSContext*, JSObject*, unsigned int, unsigned int, uint16*) [with Visitor = js::TypeCompatibilityVisitor]’
../jstracer.cpp:1913:   instantiated from ‘void js::VisitSlots(Visitor&, JSContext*, unsigned int, const js::SlotList&) [with Visitor = js::TypeCompatibilityVisitor]’
../jstracer.cpp:6187:   instantiated from here
../jstracer.cpp:1815: warning: dereferencing type-punned pointer will break strict-aliasing rules
../jstracer.cpp: In function ‘bool js::VisitFrameSlots(Visitor&, unsigned int, JSStackFrame*, JSStackFrame*) [with Visitor = js::CheckEntryTypeVisitor]’:
../jstracer.cpp:1847:   instantiated from ‘bool js::VisitStackSlots(Visitor&, JSContext*, unsigned int) [with Visitor = js::CheckEntryTypeVisitor]’
../jstracer.cpp:1886:   instantiated from ‘void js::VisitSlots(Visitor&, JSContext*, JSObject*, unsigned int, unsigned int, uint16*) [with Visitor = js::CheckEntryTypeVisitor]’
../jstracer.cpp:1913:   instantiated from ‘void js::VisitSlots(Visitor&, JSContext*, unsigned int, const js::SlotList&) [with Visitor = js::CheckEntryTypeVisitor]’
../jstracer.cpp:6256:   instantiated from here
../jstracer.cpp:1815: warning: dereferencing type-punned pointer will break strict-aliasing rules
Assembler.cpp
(Reporter)

Comment 1

8 years ago
../jsarray.cpp: In function ‘JSBool ResizeSlots(JSContext*, JSObject*, uint32, uint32, bool)’:
../jsarray.cpp:327: warning: comparison is always false due to limited range of data type
jsatom.cpp

Updated

6 years ago
Blocks: 187528
Whiteboard: [build_warning]
These are long gone, AFAIK.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.