random warnings

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

random warnings

Mike Stump
They looked real enough to me:

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


/Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelLowering.cpp: In  
function ‘llvm::SDOperand LowerBUILD_VECTOR(llvm::SDOperand,  
llvm::SelectionDAG&)’:
/Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelLowering.cpp:
1690: warning: ‘val’ may be used uninitialized in this function
/Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelLowering.cpp: In  
function ‘llvm::SDOperand LowerLOAD(llvm::SDOperand,  
llvm::SelectionDAG&, const llvm::SPUSubtarget*)’:
/Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelLowering.cpp:
563: warning: ‘NewOpC’ may be used uninitialized in this function
_______________________________________________
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: random warnings

Chris Lattner

On Dec 20, 2007, at 3:56 PM, Mike Stump wrote:

> They looked real enough to me:

Fixed, thanks.

-Chris

>
>
> /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp: In
> function ‘bool<unnamed>::isFPS16Immediate(llvm::ConstantFPSDNode*,
> short int&)’:
> /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp:
> 148: warning: dereferencing type-punned pointer will break strict-
> aliasing rules
>
>
> /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelLowering.cpp: In
> function ‘llvm::SDOperand LowerBUILD_VECTOR(llvm::SDOperand,
> llvm::SelectionDAG&)’:
> /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelLowering.cpp:
> 1690: warning: ‘val’ may be used uninitialized in this function
> /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelLowering.cpp: In
> function ‘llvm::SDOperand LowerLOAD(llvm::SDOperand,
> llvm::SelectionDAG&, const llvm::SPUSubtarget*)’:
> /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelLowering.cpp:
> 563: warning: ‘NewOpC’ may be used uninitialized in this function
> _______________________________________________
> LLVM Developers mailing list
> [hidden email]         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev


_______________________________________________
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: random warnings

Mike Stump
On Dec 22, 2007, at 2:47 PM, Chris Lattner wrote:
> Fixed, thanks.

That just leaves:

ExprCXX.cpp: In member function 'virtual clang::StmtIterator  
clang::CXXCastExpr::child_begin()':
ExprCXX.cpp:24: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
ExprCXX.cpp: In member function 'virtual clang::StmtIterator  
clang::CXXCastExpr::child_end()':
ExprCXX.cpp:28: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ImaginaryLiteral::child_begin()':
Expr.cpp:1025: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ImaginaryLiteral::child_end()':
Expr.cpp:1028: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ParenExpr::child_begin()':
Expr.cpp:1037: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ParenExpr::child_end()':
Expr.cpp:1040: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::UnaryOperator::child_begin()':
Expr.cpp:1045: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ArraySubscriptExpr::child_begin()':
Expr.cpp:1066: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ArraySubscriptExpr::child_end()':
Expr.cpp:1069: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::MemberExpr::child_begin()':
Expr.cpp:1082: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::MemberExpr::child_end()':
Expr.cpp:1085: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::OCUVectorElementExpr::child_begin()':
Expr.cpp:1090: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::OCUVectorElementExpr::child_end()':
Expr.cpp:1093: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::CompoundLiteralExpr::child_begin()':
Expr.cpp:1098: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::CompoundLiteralExpr::child_end()':
Expr.cpp:1101: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ImplicitCastExpr::child_begin()':
Expr.cpp:1106: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ImplicitCastExpr::child_end()':
Expr.cpp:1109: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::CastExpr::child_begin()':
Expr.cpp:1114: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::CastExpr::child_end()':
Expr.cpp:1117: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::BinaryOperator::child_begin()':
Expr.cpp:1122: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::BinaryOperator::child_end()':
Expr.cpp:1125: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ConditionalOperator::child_begin()':
Expr.cpp:1130: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ConditionalOperator::child_end()':
Expr.cpp:1133: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::StmtExpr::child_begin()':
Expr.cpp:1142: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::StmtExpr::child_end()':
Expr.cpp:1145: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ChooseExpr::child_begin()':
Expr.cpp:1159: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ChooseExpr::child_end()':
Expr.cpp:1163: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::VAArgExpr::child_begin()':
Expr.cpp:1168: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::VAArgExpr::child_end()':
Expr.cpp:1172: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Stmt.cpp: In member function 'virtual clang::StmtIterator  
clang::IndirectGotoStmt::child_begin()':
Stmt.cpp:192: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Stmt.cpp: In member function 'virtual clang::StmtIterator  
clang::ReturnStmt::child_begin()':
Stmt.cpp:207: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Stmt.cpp: In member function 'virtual clang::StmtIterator  
clang::ReturnStmt::child_end()':
Stmt.cpp:212: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
ASTContext.cpp: In member function 'bool  
clang::ASTContext::ObjcQualifiedIdTypesAreCompatible(clang::QualType,  
clang::QualType, bool)':
ASTContext.cpp:1387: warning: 'rhsProtoList' may be used uninitialized  
in this function
ASTContext.cpp:1386: warning: 'numRhsProtocols' may be used  
uninitialized in this function
StmtIterator.cpp: In member function 'clang::Stmt*&  
clang::StmtIteratorBase::GetDeclExpr() const':
StmtIterator.cpp:108: warning: dereferencing type-punned pointer will  
break strict-aliasing rules
StmtIterator.cpp:113: warning: dereferencing type-punned pointer will  
break strict-aliasing rules
StmtIterator.cpp:117: warning: dereferencing type-punned pointer will  
break strict-aliasing rules

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