util/debug: Always use __builtin_frame_address on gcc.
authorSergey Matyukevich <geomatsi@gmail.com>
Fri, 22 Feb 2013 11:00:31 +0000 (11:00 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 22 Feb 2013 16:19:58 +0000 (16:19 +0000)
Should workaround fdo bug 57563.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_debug_stack.c

index 558b911f2dd065128b8399103f4461ceb4252241..50a248a979f77e7e35da7891d5093ce15ede0b6e 100644 (file)
@@ -48,10 +48,7 @@ debug_backtrace_capture(struct debug_stack_frame *backtrace,
    if(!nr_frames)
       return;
 
-#if defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86)
-   __asm__ __volatile__("mov (%%ebp),%0": "=r" (frame_pointer));
-   frame_pointer = (const void **)frame_pointer[0];
-#elif defined(PIPE_CC_GCC)
+#if defined(PIPE_CC_GCC)
    frame_pointer = ((const void **)__builtin_frame_address(1));
 #elif defined(PIPE_CC_MSVC) && defined(PIPE_ARCH_X86)
    __asm {