[PATCH] D87279: [clang] Fix handling of physical registers in inline assembly operands.

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 30 16:01:12 PST 2021


nickdesaulniers added a subscriber: nathanchance.
nickdesaulniers added a comment.
Herald added a subscriber: mstorsjo.

@nathanchance reports in https://github.com/ClangBuiltLinux/linux/issues/1512
that

  // clang x.c
  register long current_stack_pointer asm("rsp");
  void vmcs_set_bits() {
    asm goto("" : "+r"(current_stack_pointer) : : : do_exception);
  do_exception:;
  }

now seems to be crashing as a result of this change.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87279/new/

https://reviews.llvm.org/D87279



More information about the cfe-commits mailing list