mgorny added a comment.

GCC refuses to build this with:

  Inputs/x86-64-gp-read.cpp: In function ‘int main()’:
  Inputs/x86-64-gp-read.cpp:31:1: error: bp cannot be used in asm here
   }
   ^
  Inputs/x86-gp-read.cpp: In function ‘int main()’:
  Inputs/x86-gp-read.cpp:31:1: error: bp cannot be used in asm here
   }
   ^

Clang doesn't complain but it also seems to generally exhibit special 
assumptions about *bp not being touched by assembly. In this particular case, 
it seems to generate correct code (with push/pop for rbp around my code).


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

https://reviews.llvm.org/D61210



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to