Bug 1233666 - Remove hacks for getting frame pointer for x86/x64 gcc. r=glandium

--HG--
extra : rebase_source : 9cc0a57f1e4ea1adcfff042d66989b211f350474
extra : source : 2043802666545a9b15c1139ec4b06bddc4432117
This commit is contained in:
Xidorn Quan 2015-12-22 20:24:33 +11:00
Родитель 0b73efd883
Коммит be8158f64c
1 изменённых файлов: 1 добавлений и 9 удалений

Просмотреть файл

@ -896,15 +896,7 @@ MozStackWalk(MozWalkStackCallback aCallback, uint32_t aSkipFrames,
StackWalkInitCriticalAddress();
// Get the frame pointer
void** bp;
#if defined(__i386)
__asm__("movl %%ebp, %0" : "=g"(bp));
#else
// It would be nice if this worked uniformly, but at least on i386 and
// x86_64, it stopped working with gcc 4.1, because it points to the
// end of the saved registers instead of the start.
bp = (void**)__builtin_frame_address(0);
#endif
void** bp = (void**)__builtin_frame_address(0);
void* stackEnd;
#if HAVE___LIBC_STACK_END