[llvm-commits] [llvm] r78379 - in /llvm/trunk: lib/Target/X86/AsmParser/X86AsmParser.cpp test/MC/AsmParser/labels.s test/MC/AsmParser/x86_instructions.s

Daniel Dunbar daniel at zuster.org
Fri Aug 7 01:45:03 PDT 2009


Author: ddunbar
Date: Fri Aug  7 03:45:03 2009
New Revision: 78379

URL: http://llvm.org/viewvc/llvm-project?rev=78379&view=rev
Log:
Disable X86 AsmMatcher for now, it is causing gcc-4.0 to run out of memory on
i386-apple-darwin9. This presumably will get fixed once the generated code
improves.

Modified:
    llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
    llvm/trunk/test/MC/AsmParser/labels.s
    llvm/trunk/test/MC/AsmParser/x86_instructions.s

Modified: llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=78379&r1=78378&r2=78379&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Fri Aug  7 03:45:03 2009
@@ -417,4 +417,23 @@
   RegisterAsmParser<X86ATTAsmParser> Y(TheX86_64Target);
 }
 
+// FIXME: Disabled for now, this is causing gcc-4.0 to run out of memory during
+// building.
+#if 0
+
 #include "X86GenAsmMatcher.inc"
+
+#else
+
+bool X86ATTAsmParser::MatchInstruction(SmallVectorImpl<X86Operand> &Operands,
+                                       MCInst &Inst) {
+  return false;
+}
+  
+bool X86ATTAsmParser::MatchRegisterName(const StringRef &Name,
+                                        unsigned &RegNo) {
+  return false;
+}
+
+#endif
+

Modified: llvm/trunk/test/MC/AsmParser/labels.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/labels.s?rev=78379&r1=78378&r2=78379&view=diff

==============================================================================
--- llvm/trunk/test/MC/AsmParser/labels.s (original)
+++ llvm/trunk/test/MC/AsmParser/labels.s Fri Aug  7 03:45:03 2009
@@ -1,5 +1,8 @@
 // RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
 
+// FIXME: Disabled until the generated code stops crashing gcc 4.0.        
+// XFAIL: *
+
         .data
 // CHECK: a:
 a:

Modified: llvm/trunk/test/MC/AsmParser/x86_instructions.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/x86_instructions.s?rev=78379&r1=78378&r2=78379&view=diff

==============================================================================
--- llvm/trunk/test/MC/AsmParser/x86_instructions.s (original)
+++ llvm/trunk/test/MC/AsmParser/x86_instructions.s Fri Aug  7 03:45:03 2009
@@ -1,5 +1,8 @@
 // FIXME: Switch back to FileCheck once we print actual instructions
 
+// FIXME: Disabled until the generated code stops crashing gcc 4.0.        
+// XFAIL: *
+        
 // RUN: llvm-mc -triple i386-unknown-unknown %s > %t
 
 // RUN: grep {MCInst(opcode=.*, operands=.reg:2, reg:0, reg:2.)} %t





More information about the llvm-commits mailing list