https://bugs.freedesktop.org/show_bug.cgi?id=105529

            Bug ID: 105529
           Summary: u_debug_stack.c:268: error: #pragma GCC diagnostic not
                    allowed inside functions
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Keywords: bisected, regression
          Severity: normal
          Priority: medium
         Component: Mesa core
          Assignee: mesa-dev@lists.freedesktop.org
          Reporter: v...@freedesktop.org
        QA Contact: mesa-dev@lists.freedesktop.org
                CC: jfons...@vmware.com, t_arc...@yahoo.com.au

GCC 4.4 build error

  Compiling src/gallium/auxiliary/util/u_debug_stack.c ...
src/gallium/auxiliary/util/u_debug_stack.c: In function
‘debug_backtrace_capture’:
src/gallium/auxiliary/util/u_debug_stack.c:268: error: #pragma GCC diagnostic
not allowed inside functions
src/gallium/auxiliary/util/u_debug_stack.c:269: error: #pragma GCC diagnostic
not allowed inside functions
src/gallium/auxiliary/util/u_debug_stack.c:271: error: #pragma GCC diagnostic
not allowed inside functions


commit 370e356ebab4885fc19b2b1d1de2816b6cd4dfc8
Author: Timothy Arceri <tarc...@itsqueeze.com>
Date:   Fri Mar 9 11:00:55 2018 +1100

    gallium: silence __builtin_frame_address nonzero argument is unsafe warning

    Calling __builtin_frame_address with a nonzero argument is unsafe
    but is sometimes done for debugging purposes. Since this code is
    part of some debug util code I'm assuming that is the case here
    and using GCC pragma to silence the warning.

    Reviewed-by: Jose Fonseca <jfons...@vmware.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to