GCC 3.1 changes, finally the burm file builds the FIRST time a clean directory is...
authorChris Lattner <sabre@nondot.org>
Thu, 25 Jul 2002 06:08:32 +0000 (06:08 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 25 Jul 2002 06:08:32 +0000 (06:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3073 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/Makefile
lib/Target/SparcV9/SparcV9InstrInfo.cpp
lib/Target/SparcV9/SparcV9Internals.h
lib/Target/SparcV9/SparcV9RegInfo.cpp
lib/Target/SparcV9/SparcV9TargetMachine.cpp

index c9e7edc9ba1724e43532ebaf661be9051f8f9e8f..c70b786a25a56c0d25f85a565074e5c33db0236f 100644 (file)
@@ -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:
index 1c852f37b7bd82c97eb2b59ec83f5ffc1c13d456..a634683c8f074d4ddff7ee9eac67bcd122ab5fd5 100644 (file)
@@ -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);
     }
index 92c938ece0b45b7d21f173d6071025796ca71c5a..aea653ebdb2897de623684f5635445e85a593567 100644 (file)
@@ -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.
index c321adc25fb6f25fa1b63c9133603e0ac4ed26d2..b875dbed224142004e3f1381305e8a9d1e6eb729 100644 (file)
@@ -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:
index a3dd8c883512d261ba082458ae58e6da601bcdad..aaf87a3979c6f4b718f535e01bea89372d520083 100644 (file)
@@ -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