[llvm-bugs] [Bug 43795] New: error: expected absolute expression

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 24 15:04:50 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43795

            Bug ID: 43795
           Summary: error: expected absolute expression
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: caij2003 at gmail.com
                CC: llvm-bugs at lists.llvm.org

While building Linux kernel for 32-bit ARM with LLVM's integrated assembler, I
ran into the following error:

$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j32 CC=clang AS=clang
arch/arm/mm/proc-v7.o

arch/arm/mm/proc-v7.S:169:143: error: expected absolute expression
.pushsection ".alt.smp.init", "a" ; .long 9998b ;9997: orr r1, r1, #((1 << 0) |
(1 << 6))|(3 << 3) ; .if . - 9997b == 2 ; nop ; .endif ; .if . - 9997b != 4 ;
.error "ALT_UP() content must assemble to exactly 4 bytes"; .endif ;
.popsection

The reason is in "if . - 9997b == 2" directive the temporary label created for
the dot symbol and 9997 get assigned to two adjacent MCFragments in the same
MCSection.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191024/e253b62a/attachment.html>


More information about the llvm-bugs mailing list