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

            Bug ID: 15788
           Summary: problem with function section attribute
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Consider the following code:

void x(int i) __attribute((section(".mySection,\"aw\",@progbits#")));

void x(int i) {
}


If you compile this with gcc you get:

    .file    "sectbug.c"
    .section    .mySection,"aw",@progbits#,"ax",@progbits
.globl x


 With Clang you get

    .file    "sectbug.c"
    .section    ".mySection,\"aw\",@progbits#","ax",@progbits
    .globl    x


It needs to unquote the string.

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