Explorar o código

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

git-svn-id: trunk@21853 -
sergei %!s(int64=13) %!d(string=hai) anos
pai
achega
1112041ff1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;