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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to