[LLVMbugs] [Bug 9152] New: File takes 1 minute to compile much longer than with gcc or other similar files with llvm

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 5 16:19:11 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=9152

           Summary: File takes 1 minute to compile much longer than with
                    gcc or other similar files with llvm
           Product: clang
           Version: 2.7
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: stark at mit.edu
                CC: llvmbugs at cs.uiuc.edu


In trying to build postgres there's one bison grammar that seems to take 1
minute to compile with clang.  All the other files go by pretty quick but this
parser just seems to spin with 100% cpu for a minute.

I've attached the preprocessed source of the parser. 

stark at raving:~/src$ time gcc -O2 -c -o preproc.o preproc.c

real    0m5.426s
user    0m5.230s
sys     0m0.150s
stark at raving:~/src$ time clang -O0 -c -o preproc.o preproc.c

real    0m1.146s
user    0m1.070s
sys     0m0.100s
stark at raving:~/src$ time clang -O1 -c -o preproc.o preproc.c

real    0m57.067s
user    0m56.820s
sys     0m0.210s

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list