[PATCH] D40706: Fix function pointer tail calls in armv8-M.base

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 1 13:07:55 PST 2017


efriedma added a comment.

On a sort-of-related note, we currently miscompile the following:

  void a(int (*p)(int,int,int,int)) {
    register int (*x)(int,int,int,int) asm("r0") = p;
    asm("ldr r0, =g":"=r"(x));
    x(1,2,3,4);
  }


https://reviews.llvm.org/D40706





More information about the llvm-commits mailing list