[llvm-bugs] [Bug 25416] New: clang hangs when compile a large c file.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 5 11:23:25 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25416

            Bug ID: 25416
           Summary: clang hangs when compile a large c file.
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: yunlian at google.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

We have a c file like this
It contains a jmp statement for every 4K nop. There are over
4M instructions in the asm. gcc compile it within one second.
Clang hangs.
The command line is
 clang iTLB_benchmark_function.c -c -o iTLB_benchmark_function.o


void iTLB_bechmark_function() {
  __asm__ (
    "1:jmp 1f\n\t"
    "nop\n\t"
    "nop\n\t"
       .
       .
       .
    "1:nop\n\t"
  );
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151105/9fc4981b/attachment.html>


More information about the llvm-bugs mailing list