strict aliasing in SPU land

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

strict aliasing in SPU land

Mike Stump
/Volumes/mrs5/net/llvm/llvm/llvm/lib/Target/CellSPU/
SPUISelDAGToDAG.cpp: In function  
'bool<unnamed>::isFPS16Immediate(llvm::ConstantFPSDNode*, short int&)':
/Volumes/mrs5/net/llvm/llvm/llvm/lib/Target/CellSPU/
SPUISelDAGToDAG.cpp:141: warning: dereferencing type-punned pointer  
will break strict-aliasing rules
In file included from /Volumes/mrs5/net/llvm/llvm/llvm/lib/Target/
CellSPU/SPUISelDAGToDAG.cpp:312:
/Volumes/mrs5/net/llvm/llvm/build/lib/Target/CellSPU/
SPUGenDAGISel.inc: In member function 'llvm::SDOperand  
SPUDAGToDAGISel::Transform_LO16_f32(llvm::SDNode*)':
/Volumes/mrs5/net/llvm/llvm/build/lib/Target/CellSPU/SPUGenDAGISel.inc:
225: warning: dereferencing type-punned pointer will break strict-
aliasing rules
/Volumes/mrs5/net/llvm/llvm/build/lib/Target/CellSPU/
SPUGenDAGISel.inc: In member function 'llvm::SDOperand  
SPUDAGToDAGISel::Transform_HI16_f32(llvm::SDNode*)':
/Volumes/mrs5/net/llvm/llvm/build/lib/Target/CellSPU/SPUGenDAGISel.inc:
266: warning: dereferencing type-punned pointer will break strict-
aliasing rules
/Volumes/mrs5/net/llvm/llvm/build/lib/Target/CellSPU/
SPUGenDAGISel.inc: In member function 'llvm::SDOperand  
SPUDAGToDAGISel::Transform_FPimm_u18(llvm::SDNode*)':
/Volumes/mrs5/net/llvm/llvm/build/lib/Target/CellSPU/SPUGenDAGISel.inc:
281: warning: dereferencing type-punned pointer will break strict-
aliasing rules
/Volumes/mrs5/net/llvm/llvm/build/lib/Target/CellSPU/
SPUGenDAGISel.inc: In member function 'llvm::SDOperand  
SPUDAGToDAGISel::Transform_FPimm_sext16(llvm::SDNode*)':
/Volumes/mrs5/net/llvm/llvm/build/lib/Target/CellSPU/SPUGenDAGISel.inc:
290: warning: dereferencing type-punned pointer will break strict-
aliasing rules
/Volumes/mrs5/net/llvm/llvm/build/lib/Target/CellSPU/
SPUGenDAGISel.inc: In member function 'bool  
SPUDAGToDAGISel::Predicate_fpimm18(llvm::SDNode*)':
/Volumes/mrs5/net/llvm/llvm/build/lib/Target/CellSPU/SPUGenDAGISel.inc:
356: warning: dereferencing type-punned pointer will break strict-
aliasing rules
/Volumes/mrs5/net/llvm/llvm/build/lib/Target/CellSPU/
SPUGenDAGISel.inc: In member function 'bool  
SPUDAGToDAGISel::Predicate_hi16_f32(llvm::SDNode*)':
/Volumes/mrs5/net/llvm/llvm/build/lib/Target/CellSPU/SPUGenDAGISel.inc:
389: warning: dereferencing type-punned pointer will break strict-
aliasing rules

:-)
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: strict aliasing in SPU land

Chris Lattner

On Dec 14, 2007, at 11:37 PM, Mike Stump wrote:

> /Volumes/mrs5/net/llvm/llvm/llvm/lib/Target/CellSPU/
> SPUISelDAGToDAG.cpp: In function
> 'bool<unnamed>::isFPS16Immediate(llvm::ConstantFPSDNode*, short  
> int&)':
> /Volumes/mrs5/net/llvm/llvm/llvm/lib/Target/CellSPU/
> SPUISelDAGToDAG.cpp:141: warning: dereferencing type-punned pointer
> will break strict-aliasing rules

This should fix it, please verify:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20071210/056377.html

-Chris
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev