[LLVMbugs] [Bug 10671] New: Compiling a single file takes several minutes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 16 02:12:25 PDT 2011


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

           Summary: Compiling a single file takes several minutes
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: tobias.hunger at gmx.de
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=7076)
 --> (http://llvm.org/bugs/attachment.cgi?id=7076)
Problematic file

When building the attached file using
clang++ -g -O2 -c -o mp_comba.o  ./mp_comba.cpp

the compile takes several minutes to complete.

This seems to be related to the combination of -O2 and -g as both of the
following commands complete rather fast:
clang++ -O2 -c -o mp_comba.o  ./mp_comba.cpp
clang++ -g -O1 -c -o mp_comba.o  ./mp_comba.cpp

The result of this issue is that clang is no longer an option to build Qt or Qt
Creator with: In both projects there are several files like this one!

This issue is a regression: My last checkout from last month did not have this
issue.

-- 
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