[LLVMbugs] [Bug 3849] New: <predefines> in clang -E output

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Mar 20 01:30:48 PDT 2009


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

           Summary: <predefines> in clang -E output
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


clang prints <predefines> in clang -E output which perl does not like.

witten /tmp# clang-driver -E void.c
# 1 "void.c"
# 1 "void.c" 1
# 1 "<predefines>" 1
# 1 "void.c" 2
main()
{
}

perl makedep script strips off known things like this:

       $sed \
            -e '1d' \
            -e '/^#.*<stdin>/d' \
            -e '/^#.*<builtin>/d' \
            -e '/^#.*<built-in>/d' \
            -e '/^#.*<command line>/d' \
            -e '/^#.*<command-line>/d' \
            -e '/^#.*"-"/d' \
            -e '/^#.*"\/.*\/"/d' \
            -e '/: file path prefix .* never used$/d' \
            -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
            -e 's/^[     ]*#[    ]*line/#/' \
            -e '/^# *[0-9][0-9]* *[".\/]/!d' \
            -e 's/^.*"\(.*\)".*$/'$filebase'\$(OBJ_EXT): \1/' \
            -e 's/^# *[0-9][0-9]* \(.*\)$/'$filebase'\$(OBJ_EXT): \1/' \
            -e 's|: \./|: |' \
           -e 's|\.c\.c|.c|' $uwinfix .cout .cerr

the <predefines> is not there. chris suggests it's the same as <builtin>


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