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

           Summary: Clang integrated-as doesn't support .pushsection
                    .popsection ASM directives
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


gdb/testsuite/gdb.python/py-section-script.c has:

#define DEFINE_GDB_SCRIPT(script_name) \
 asm("\
.pushsection \".debug_gdb_scripts\", \"MS\",@progbits,1\n\
.byte 1\n\
.asciz \"" script_name "\"\n\
.popsection \n\
");

DEFINE_GDB_SCRIPT ("py-section-script.py")

clang doesn't like any of that:

clang -c ../../src/gdb/testsuite/gdb.python/py-section-script.c
<inline asm>:1:1: error: warning: ignoring directive for now
.pushsection ".debug_gdb_scripts", "MS",@progbits,1
^
<inline asm>:4:1: error: warning: ignoring directive for now
.popsection
^
2 errors generated.

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