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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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@raving:~/src$ time gcc -O2 -c -o preproc.o preproc.c

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

real    0m1.146s
user    0m1.070s
sys     0m0.100s
stark@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to