[LLVMbugs] [Bug 13422] New: merged compilation

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 20 09:37:34 PDT 2012


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

             Bug #: 13422
           Summary: merged compilation
           Product: clang
           Version: 3.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: wbrana at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Using command
clang++ -O3 -march=core2 -v -o test func.cpp main.cpp
clang compiles files separately with
clang func.cpp
clang main.cpp

clang could merge these files and compile only file merged.cpp

-------func.cpp---------
#include "func.h"
#include <stdlib.h>

long int func() {
        return random();
}

-------main.cpp--------
#include "func.h"
#include <stdlib.h>

int main() {
        return func();
}

-----merged.cpp-------
#include "func.h"
#include <stdlib.h>

long int func() {
        return random();
}

int main() {
        return func();
}

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