Skip to content
Snippets Groups Projects
Commit 0536b691 authored by Jonathan Gray's avatar Jonathan Gray Committed by Marge Bot
Browse files

util: fix build with clang 10 on mips64


On mips64, the compiler does not allow use of non-zero argument with
__builtin_frame_address(). However, the returned frame address is only
used when PIPE_ARCH_X86 is defined. The compile error can be avoided
by making #ifdef PIPE_ARCH_X86 cover the getting of frame address too.

The argument checking of __builtin_frame_address() has been present
as a debug assert in clang 8. In clang 10, there is a proper runtime
check for the argument. This is why the build has not failed before.

Fixes: dc94a050 ("gallium: Do not add -Wframe-address option for gcc <= 4.4.")
from Visa Hankala

Signed-off-by: default avatarJonathan Gray <jsg@jsg.id.au>
Reviewed-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Part-of: <mesa/mesa!6511>
parent f12c107b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment