Browse Source

* get_pc_addr on x86_64 needs nostackframe attribute to return the correct value.

git-svn-id: trunk@21853 -
sergei 13 years ago
parent
commit
1112041ff1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/x86_64/x86_64.inc

+ 1 - 1
rtl/x86_64/x86_64.inc

@@ -36,7 +36,7 @@ end;
 {$ENDIF not INTERNAL_BACKTRACE}
 
 {$define FPC_SYSTEM_HAS_GET_PC_ADDR}
-function get_pc_addr:pointer;assembler;
+function get_pc_addr:pointer;assembler;nostackframe;
 asm
         movq    (%rsp),%rax
 end;