[llvm-commits] [llvm] r149834 - in /llvm/trunk/lib: Analysis/AliasAnalysisCounter.cpp CodeGen/MachineCSE.cpp Support/Mutex.cpp Target/ARM/ARMFastISel.cpp Target/X86/Disassembler/X86DisassemblerDecoder.c Target/X86/X86ISelLowering.cpp
Duncan Sands
baldrick at free.fr
Sun Feb 5 06:20:11 PST 2012
Author: baldrick
Date: Sun Feb 5 08:20:11 2012
New Revision: 149834
URL: http://llvm.org/viewvc/llvm-project?rev=149834&view=rev
Log:
Persuade GCC that there is nothing worth warning about here (there isn't).
Modified:
llvm/trunk/lib/Analysis/AliasAnalysisCounter.cpp
llvm/trunk/lib/CodeGen/MachineCSE.cpp
llvm/trunk/lib/Support/Mutex.cpp
llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Analysis/AliasAnalysisCounter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/AliasAnalysisCounter.cpp?rev=149834&r1=149833&r2=149834&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/AliasAnalysisCounter.cpp (original)
+++ llvm/trunk/lib/Analysis/AliasAnalysisCounter.cpp Sun Feb 5 08:20:11 2012
@@ -127,7 +127,7 @@
AliasAnalysisCounter::alias(const Location &LocA, const Location &LocB) {
AliasResult R = getAnalysis<AliasAnalysis>().alias(LocA, LocB);
- const char *AliasString;
+ const char *AliasString = 0;
switch (R) {
case NoAlias: No++; AliasString = "No alias"; break;
case MayAlias: May++; AliasString = "May alias"; break;
@@ -153,7 +153,7 @@
const Location &Loc) {
ModRefResult R = getAnalysis<AliasAnalysis>().getModRefInfo(CS, Loc);
- const char *MRString;
+ const char *MRString = 0;
switch (R) {
case NoModRef: NoMR++; MRString = "NoModRef"; break;
case Ref: JustRef++; MRString = "JustRef"; break;
Modified: llvm/trunk/lib/CodeGen/MachineCSE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineCSE.cpp?rev=149834&r1=149833&r2=149834&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineCSE.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineCSE.cpp Sun Feb 5 08:20:11 2012
@@ -255,6 +255,7 @@
if (I == EE) {
assert(CrossMBB && "Reaching end-of-MBB without finding MI?");
+ (void)CrossMBB;
CrossMBB = false;
NonLocal = true;
I = MBB->begin();
Modified: llvm/trunk/lib/Support/Mutex.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Mutex.cpp?rev=149834&r1=149833&r2=149834&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Mutex.cpp (original)
+++ llvm/trunk/lib/Support/Mutex.cpp Sun Feb 5 08:20:11 2012
@@ -51,7 +51,7 @@
// Initialize the mutex attributes
int errorcode = pthread_mutexattr_init(&attr);
- assert(errorcode == 0);
+ assert(errorcode == 0); (void)errorcode;
// Initialize the mutex as a recursive mutex, if requested, or normal
// otherwise.
Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=149834&r1=149833&r2=149834&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Sun Feb 5 08:20:11 2012
@@ -2279,6 +2279,7 @@
assert (RV == true && "Should be able to handle this load.");
RV = ARMEmitStore(VT, ResultReg, Dest);
assert (RV == true && "Should be able to handle this store.");
+ (void)RV;
unsigned Size = VT.getSizeInBits()/8;
Len -= Size;
Modified: llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c?rev=149834&r1=149833&r2=149834&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c (original)
+++ llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c Sun Feb 5 08:20:11 2012
@@ -103,7 +103,7 @@
InstructionContext insnContext,
uint8_t opcode,
uint8_t modRM) {
- const struct ModRMDecision* dec;
+ const struct ModRMDecision* dec = 0;
switch (type) {
case ONEBYTE:
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=149834&r1=149833&r2=149834&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sun Feb 5 08:20:11 2012
@@ -8288,7 +8288,7 @@
if (isFP) {
unsigned SSECC = 8;
EVT EltVT = Op0.getValueType().getVectorElementType();
- assert(EltVT == MVT::f32 || EltVT == MVT::f64);
+ assert(EltVT == MVT::f32 || EltVT == MVT::f64); (void)EltVT;
bool Swap = false;
More information about the llvm-commits
mailing list