Disable X86 AsmMatcher for now, it is causing gcc-4.0 to run out of memory on
authorDaniel Dunbar <daniel@zuster.org>
Fri, 7 Aug 2009 08:45:03 +0000 (08:45 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 7 Aug 2009 08:45:03 +0000 (08:45 +0000)
i386-apple-darwin9. This presumably will get fixed once the generated code
improves.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78379 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmParser/X86AsmParser.cpp
test/MC/AsmParser/labels.s
test/MC/AsmParser/x86_instructions.s

index 9d85f4d804880a2108f98d7a523cfcae12c26296..5b554ca82a12e23ddde087accf7613b5b483caaa 100644 (file)
@@ -417,4 +417,23 @@ extern "C" void LLVMInitializeX86AsmParser() {
   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
+
index a5998c4dc3475fa09549dd9883f8576d0ae8e8ac..6eb7c0f8e021ef9ae9d0e26625f02c284ffafc99 100644 (file)
@@ -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:
index f648112fc974490d29c4cbe4727d0e1c6322d2ea..3ab8ac17d40eacbaf0ffc5ca7f10598174fc4898 100644 (file)
@@ -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