summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-25 06:08:32 +0000
committerChris Lattner <sabre@nondot.org>2002-07-25 06:08:32 +0000
commit3091e117265dc2d9d412daed578896cca0272f04 (patch)
tree62d5e52bcec1921ca27dc1fa27bcae7f022ac28f /llvm/lib/Target/Sparc
parent2d380955dd828ab322c94b4a946a33ce3f15f61c (diff)
downloadbcm5719-llvm-3091e117265dc2d9d412daed578896cca0272f04.tar.gz
bcm5719-llvm-3091e117265dc2d9d412daed578896cca0272f04.zip
GCC 3.1 changes, finally the burm file builds the FIRST time a clean directory is built.
llvm-svn: 3073
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r--llvm/lib/Target/Sparc/Makefile13
-rw-r--r--llvm/lib/Target/Sparc/Sparc.cpp4
-rw-r--r--llvm/lib/Target/Sparc/SparcInstrInfo.cpp2
-rw-r--r--llvm/lib/Target/Sparc/SparcInternals.h1
-rw-r--r--llvm/lib/Target/Sparc/SparcRegInfo.cpp7
5 files changed, 18 insertions, 9 deletions
diff --git a/llvm/lib/Target/Sparc/Makefile b/llvm/lib/Target/Sparc/Makefile
index c9e7edc9ba1..c70b786a25a 100644
--- a/llvm/lib/Target/Sparc/Makefile
+++ b/llvm/lib/Target/Sparc/Makefile
@@ -1,14 +1,21 @@
LEVEL = ../../..
LIBRARYNAME = sparc
+ExtraSource = Debug/Sparc.burm.cpp
-ExtraSource = Sparc.burm.cpp
-
+#all:: Debug/Sparc.burg
+#all:: Sparc.burm.cpp
include $(LEVEL)/Makefile.common
+Debug/Sparc.burm.cpp: Debug/Sparc.burm
+ $(RunBurg) $< -o $@
+
+Debug/Sparc.burm.o: Debug/Sparc.burm.cpp
+ $(CompileG) $< -o $@
+
Debug/Sparc.burg.in1 : Sparc.burg.in Debug/.dir
g++ -E -I$(LEVEL)/include -D_DEBUG -x c++ $< | sed '/^# /d' | sed 's/Ydefine/#define/' > $@
-Debug/Sparc.burg : Debug/Sparc.burg.in1 Debug/.dir
+Debug/Sparc.burm : Debug/Sparc.burg.in1 Debug/.dir
g++ -E -I$(LEVEL)/include -D_DEBUG -x c++ $< | sed '/^# /d' | sed 's/Xinclude/#include/g' | sed 's/Xdefine/#define/g' > $@
Depend/Sparc.burm.d:
diff --git a/llvm/lib/Target/Sparc/Sparc.cpp b/llvm/lib/Target/Sparc/Sparc.cpp
index a3dd8c88351..aaf87a3979c 100644
--- a/llvm/lib/Target/Sparc/Sparc.cpp
+++ b/llvm/lib/Target/Sparc/Sparc.cpp
@@ -12,7 +12,7 @@
#include "llvm/CodeGen/MachineCodeForInstruction.h"
#include "llvm/CodeGen/MachineCodeForMethod.h"
#include "llvm/CodeGen/RegisterAllocation.h"
-#include "llvm/CodeGen/MappingInfo.h"
+//#include "llvm/CodeGen/MappingInfo.h"
#include "llvm/Function.h"
#include "llvm/BasicBlock.h"
#include "llvm/PassManager.h"
@@ -197,7 +197,7 @@ void UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) {
PM.add(createPrologEpilogCodeInserter(*this));
- PM.add(MappingInfoForFunction(Out));
+ //PM.add(MappingInfoForFunction(Out));
// Output assembly language to the .s file. Assembly emission is split into
// two parts: Function output and Global value output. This is because
diff --git a/llvm/lib/Target/Sparc/SparcInstrInfo.cpp b/llvm/lib/Target/Sparc/SparcInstrInfo.cpp
index 1c852f37b7b..a634683c8f0 100644
--- a/llvm/lib/Target/Sparc/SparcInstrInfo.cpp
+++ b/llvm/lib/Target/Sparc/SparcInstrInfo.cpp
@@ -236,7 +236,7 @@ CreateUIntSetInstruction(const TargetMachine& target,
return;
}
}
-#endif SIGN_EXTEND_FOR_UNSIGNED_DEST
+#endif /*SIGN_EXTEND_FOR_UNSIGNED_DEST*/
CreateSETUWConst(target, C, dest, mvec);
}
diff --git a/llvm/lib/Target/Sparc/SparcInternals.h b/llvm/lib/Target/Sparc/SparcInternals.h
index 92c938ece0b..aea653ebdb2 100644
--- a/llvm/lib/Target/Sparc/SparcInternals.h
+++ b/llvm/lib/Target/Sparc/SparcInternals.h
@@ -418,6 +418,7 @@ public:
else if (ureg < 1 +100) { regClassID = IntCCRegClassID; return ureg-100;}
else if (ureg == InvalidRegNum) { return InvalidRegNum; }
else { assert(0 && "Invalid unified register number"); }
+ return 0;
}
// Returns the assembly-language name of the specified machine register.
diff --git a/llvm/lib/Target/Sparc/SparcRegInfo.cpp b/llvm/lib/Target/Sparc/SparcRegInfo.cpp
index c321adc25fb..b875dbed224 100644
--- a/llvm/lib/Target/Sparc/SparcRegInfo.cpp
+++ b/llvm/lib/Target/Sparc/SparcRegInfo.cpp
@@ -168,6 +168,7 @@ UltraSparcRegInfo::regNumForFPArg(unsigned regType,
InvalidRegNum : SparcFloatRegOrder::f0 + (argNo * 2);
else
assert(0 && "Illegal FP register type");
+ return 0;
}
}
@@ -224,7 +225,7 @@ int UltraSparcRegInfo::getRegType(int unifiedRegNum) const {
// To find the register class used for a specified Type
//
unsigned UltraSparcRegInfo::getRegClassIDOfType(const Type *type,
- bool isCCReg = false) const {
+ bool isCCReg) const {
Type::PrimitiveID ty = type->getPrimitiveID();
unsigned res;
@@ -1116,7 +1117,7 @@ UltraSparcRegInfo::cpReg2MemMI(vector<MachineInstr*>& mvec,
unsigned SrcReg,
unsigned DestPtrReg,
int Offset, int RegType,
- int scratchReg = -1) const {
+ int scratchReg) const {
MachineInstr * MI = NULL;
switch( RegType ) {
case IntRegType:
@@ -1185,7 +1186,7 @@ UltraSparcRegInfo::cpMem2RegMI(vector<MachineInstr*>& mvec,
int Offset,
unsigned DestReg,
int RegType,
- int scratchReg = -1) const {
+ int scratchReg) const {
MachineInstr * MI = NULL;
switch (RegType) {
case IntRegType:
OpenPOWER on IntegriCloud