[Webkit-unassigned] [Bug 60690] [CMAKE] Remove -Wcast-align

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 12 19:14:36 PDT 2011


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





--- Comment #4 from Ryuan Choi <ryuan.choi at samsung.com>  2011-05-12 19:14:36 PST ---
(In reply to comment #2)
> (From update of attachment 93246 [details])
> Are you removing the option for arm builds or generally?

OK, My hope is removing this option for arm builds.
I'll prepare new patch to check it.

(In reply to comment #3)
> It looks like the patch unconditionally removes the flag when CMake is used. IMO, removing this warning can potentially end up hiding places which should ideally be fixed.
> 
> Ryuan, are these flags causing any trouble besides polluting your compilation output?

Below is warning message of a file.
Those warnings, which generated by almost files, make it difficult to detect important warnings and errors(if exist).

In file included from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSObject.h:31:0,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSObjectWithGlobalObject.h:29,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSFunction.h:27,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Executable.h:30,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/bytecode/EvalCodeCache.h:32,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/bytecode/CodeBlock.h:33,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSActivation.h:32,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Arguments.h:27,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Arguments.cpp:26:
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSCell.h: In member function 'void* JSC::MarkedBlock::allocate()':
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSCell.h:410:78: warning: cast from 'char (*)[8]' to 'JSC::JSCell*' increases required alignment of target type
In file included from /workspace/git/webkit-efl/Source/JavaScriptCore/collector/handles/Handle.h:29:0,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/collector/handles/HandleHeap.h:30,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Heap.h:25,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSGlobalData.h:33,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/interpreter/CallFrame.h:26,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/ArgList.h:25,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSObject.h:26,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSObjectWithGlobalObject.h:29,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSFunction.h:27,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Executable.h:30,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/bytecode/EvalCodeCache.h:32,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/bytecode/CodeBlock.h:33,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSActivation.h:32,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Arguments.h:27,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Arguments.cpp:26:
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h: In member function 'T* JSC::WriteBarrierBase<T>::get() const [with T = JSC::JSGlobalObject]':
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/ScopeChain.h:76:86:   instantiated from here
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h:89:56: warning: cast from 'JSC::JSCell*' to 'JSC::JSGlobalObject*' increases required alignment of target type
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h: In member function 'T* JSC::WriteBarrierBase<T>::get() const [with T = JSC::JSFunction]':
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSGlobalObject.h:185:70:   instantiated from here
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h:89:56: warning: cast from 'JSC::JSCell*' to 'JSC::JSFunction*' increases required alignment of target type
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h: In member function 'T* JSC::WriteBarrierBase<T>::get() const [with T = JSC::StringPrototype]':
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSGlobalObject.h:193:81:   instantiated from here
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h:89:56: warning: cast from 'JSC::JSCell*' to 'JSC::StringPrototype*' increases required alignment of target type
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h: In member function 'T* JSC::WriteBarrIn file included from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSObject.h:31:0,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSObjectWithGlobalObject.h:29,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSFunction.h:27,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Executable.h:30,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/bytecode/EvalCodeCache.h:32,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/bytecode/CodeBlock.h:33,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSActivation.h:32,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Arguments.h:27,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Arguments.cpp:26:
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSCell.h: In member function 'void* JSC::MarkedBlock::allocate()':
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSCell.h:410:78: warning: cast from 'char (*)[8]' to 'JSC::JSCell*' increases required alignment of target type
In file included from /workspace/git/webkit-efl/Source/JavaScriptCore/collector/handles/Handle.h:29:0,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/collector/handles/HandleHeap.h:30,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Heap.h:25,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSGlobalData.h:33,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/interpreter/CallFrame.h:26,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/ArgList.h:25,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSObject.h:26,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSObjectWithGlobalObject.h:29,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSFunction.h:27,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Executable.h:30,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/bytecode/EvalCodeCache.h:32,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/bytecode/CodeBlock.h:33,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSActivation.h:32,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Arguments.h:27,
                 from /workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Arguments.cpp:26:
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h: In member function 'T* JSC::WriteBarrierBase<T>::get() const [with T = JSC::JSGlobalObject]':
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/ScopeChain.h:76:86:   instantiated from here
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h:89:56: warning: cast from 'JSC::JSCell*' to 'JSC::JSGlobalObject*' increases required alignment of target type
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h: In member function 'T* JSC::WriteBarrierBase<T>::get() const [with T = JSC::JSFunction]':
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSGlobalObject.h:185:70:   instantiated from here
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h:89:56: warning: cast from 'JSC::JSCell*' to 'JSC::JSFunction*' increases required alignment of target type
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h: In member function 'T* JSC::WriteBarrierBase<T>::get() const [with T = JSC::StringPrototype]':
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSGlobalObject.h:193:81:   instantiated from here
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h:89:56: warning: cast from 'JSC::JSCell*' to 'JSC::StringPrototype*' increases required alignment of target type
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h: In member function 'T* JSC::WriteBarrierBase<T>::get() const [with T = JSC::NumberPrototype]':
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSGlobalObject.h:194:81:   instantiated from here
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h:89:56: warning: cast from 'JSC::JSCell*' to 'JSC::NumberPrototype*' increases required alignment of target type
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h: In member function 'T* JSC::WriteBarrierBase<T>::get() const [with T = JSC::JSActivation]':
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Arguments.cpp:260:133:   instantiated from here
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h:89:56: warning: cast from 'JSC::JSCell*' to 'JSC::JSActivation*' increases required alignment of target type
ierBase<T>::get() const [with T = JSC::NumberPrototype]':
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/JSGlobalObject.h:194:81:   instantiated from here
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h:89:56: warning: cast from 'JSC::JSCell*' to 'JSC::NumberPrototype*' increases required alignment of target type
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h: In member function 'T* JSC::WriteBarrierBase<T>::get() const [with T = JSC::JSActivation]':
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/Arguments.cpp:260:133:   instantiated from here
/workspace/git/webkit-efl/Source/JavaScriptCore/runtime/WriteBarrier.h:89:56: warning: cast from 'JSC::JSCell*' to 'JSC::JSActivation*' increases required alignment of target type

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