gallium: Do not add -Wframe-address option for gcc <= 4.4.
authorVinson Lee <vlee@freedesktop.org>
Wed, 21 Mar 2018 21:59:32 +0000 (14:59 -0700)
committerVinson Lee <vlee@freedesktop.org>
Mon, 26 Mar 2018 18:23:51 +0000 (11:23 -0700)
commitdc94a0506f1d267a761961d3ac905d77de3dae2e
tree8fbdafc1122612e80f00a1c557a0dfe9045c3c93
parent029f1a2d6102cbd6d6c0f3badbb1df36073931b3
gallium: Do not add -Wframe-address option for gcc <= 4.4.

This patch fixes these build errors with GCC 4.4.

  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

Fixes: 370e356ebab4 ("gallium: silence __builtin_frame_address nonzero argument is unsafe warning")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105529
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_debug_stack.c