[LLVMbugs] [Bug 3579] New: different clang -E from gcc -E on this file

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Feb 13 14:30:58 PST 2009


           Summary: different clang -E from gcc -E on this file
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu

hi.. I when I preprocess this file with clang and gcc I am getting different

lev ~$ gcc -E subr_smp.c > subr_smp.gcc.c
lev ~$ ccc -E subr_smp.c > subr_smp.clang.c
ccc: Unknown host 'freebsd', using generic host information.
lev ~$ ls -l subr_smp.gcc.c subr_smp.clang.c
-rw-r--r--  1 rdivacky  rdivacky  75499 Feb 13 23:26 subr_smp.clang.c
-rw-r--r--  1 rdivacky  rdivacky  75256 Feb 13 23:26 subr_smp.gcc.c
lev ~$ 

this is one of the causes why fbsd kernel does not link (it. uses a macro that
makes  symbol name based on the line of definition - clang has name collisions
while gcc does not)

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