• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Instructions to reproduce
2-------------------------
3
4$ cat main.cpp
5void __attribute__((optnone)) func2() {}
6void __attribute__((noinline)) func1() { func2(); /* tail */ }
7int __attribute__((disable_tail_calls)) main() {
8  func1(); /* regular */
9  return 0;
10}
11
12# Adding `-isysroot $(xcrun -sdk iphoneos.internal -show-sdk-path)` can fix
13# linker warnings when building on macOS.
14$ clang -arch arm64 main.cpp -o main.arm64.o -c -g -O2
15$ clang -arch arm64 main.arm64.o -o main.arm64 -g
16
17RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/call_pc/main.arm64 -o %t.dSYM
18RUN: llvm-dwarfdump %t.dSYM | FileCheck %s -implicit-check-not=DW_AT_call_pc
19
20CHECK: DW_AT_call_pc (0x0000000100007f94)
21