[LLVMbugs] [Bug 9361] New: .skip directive is ignored with integrated-as

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 1 16:51:29 PST 2011


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

           Summary: .skip directive is ignored with integrated-as
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pageexec at freemail.hu
                CC: llvmbugs at cs.uiuc.edu, pageexec at freemail.hu
            Blocks: 4068


compiling linux with integrated-as results in this problem:

arch/x86/kernel/setup.c:125:1: error: warning: ignoring directive for now
RESERVE_BRK(dmi_alloc, 65536);
^
In file included from arch/x86/kernel/setup.c:78:
/root/src/linux/linux-2.6.36.4-pax-clang/arch/x86/include/asm/setup.h:88:4:
note: instantiated from:
                        ".pushsection .brk_reservation,\"aw\", at nobits;" \
                        ^
<inline asm>:1:63: note: instantiated into assembly here
        .pushsection .brk_reservation,"aw", at nobits;.brk.dmi_alloc: 1:.skip
65536; .size .brk.dmi_alloc, . - 1b; .popsection
                                                                     ^
the full macro:

 84 #define RESERVE_BRK(name,sz)»···»·······»·······»·······»·······»·······\
 85 »·······static void __section(.discard.text) __used»····»·······»·······\
 86 »·······__brk_reservation_fn_##name##__(void) {»»·······»·······»·······\
 87 »·······»·······asm volatile (»·»·······»·······»·······»·······»·······\
 88 »·······»·······»·······".pushsection .brk_reservation,\"aw\", at nobits;" \
 89 »·······»·······»·······".brk." #name ":"»······»·······»·······»·······\
 90 »·······»·······»·······" 1:.skip %c0;"»»·······»·······»·······»·······\
 91 »·······»·······»·······" .size .brk." #name ", . - 1b;"»·······»·······\
 92 »·······»·······»·······" .popsection"»·»·······»·······»·······»·······\
 93 »·······»·······»·······: : "i" (sz));»·»·······»·······»·······»·······\
 94 »·······}

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