[Mesa-dev] [Bug 105529] u_debug_stack.c:268: error: #pragma GCC diagnostic not allowed inside functions

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 15 18:23:31 UTC 2018


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 at lists.freedesktop.org
          Reporter: vlee at freedesktop.org
        QA Contact: mesa-dev at lists.freedesktop.org
                CC: jfonseca at vmware.com, t_arceri at 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 <tarceri at 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 <jfonseca at vmware.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180315/16bfad1d/attachment.html>


More information about the mesa-dev mailing list