Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
inline asm attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Oct 10, 2014
1 parent ef36874 commit f47452a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/sys/freebsd/execinfo.d
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ extern (D) int backtrace(void** buffer, int size)

void** p, pend=cast(void**)thread_stackBottom();
version (D_InlineAsm_X86)
asm { mov p[EBP], EBP; }
asm nothrow @trusted { mov p[EBP], EBP; }
else version (D_InlineAsm_X86_64)
asm { mov p[RBP], RBP; }
asm nothrow @trusted { mov p[RBP], RBP; }
else
static assert(false, "Architecture not supported.");

Expand Down

0 comments on commit f47452a

Please sign in to comment.