[llvm-bugs] [Bug 51555] New: WebAssembly .s format can omit .globaltype for __stack_pointer

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 20 00:49:46 PDT 2021


            Bug ID: 51555
           Summary: WebAssembly .s format can omit .globaltype for
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: keithw at cs.stanford.edu
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Created attachment 25178
  --> https://bugs.llvm.org/attachment.cgi?id=25178&action=edit

After commit 9647a6f, the WebAssemblyAsmPrinter can omit the .globaltype for
__stack_pointer, leading to a .s file that the assembler rejects.

To reproduce:
$ cat > bug.c
void unused_function(void) {}

void function(int x, int y) {}

void dosomething(void)
  function(0, 0);
$ clang -S -o bug.s bug.c && clang -c -o bug.o bug.s
bug.s:23:2: error: symbol __stack_pointer missing .globaltype
        global.get      __stack_pointer

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/20210820/65c938bc/attachment.html>

More information about the llvm-bugs mailing list