[LLVMbugs] [Bug 10298] New: cpp preprocessing yields different results than gcc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 7 09:16:05 PDT 2011


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

           Summary: cpp preprocessing yields different results than gcc
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: joel.sherrill at oarcorp.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6849)
 --> (http://llvm.org/bugs/attachment.cgi?id=6849)
Test Case

RTEMS uses preprocessed assembly files (.S).  I have a small test case which
compiles with i386 gcc and not with clang from the svn head.



$ clang -c set_asm.S
/tmp/cc-Y6Q2YB.s:14:24: error: unexpected token in assignment
.set HEIRCONTEXT_ARG, 8_label:

It is running the label inside a macro on a subsequent line with the value on
the RHS of the .set.

This is a cut down and if I simplify it much more, it works.

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