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

Commit

Permalink
Merge pull request #987 from MartinNowak/asmAttributes2
Browse files Browse the repository at this point in the history
inline asm attributes
  • Loading branch information
dnadlinger committed Oct 10, 2014
2 parents ef36874 + f47452a commit b51b752
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 b51b752

Please sign in to comment.