diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2020-08-01 03:51:32 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2020-08-01 03:51:32 +0000 |
commit | e543871de2170b44ba914331284e86917e43ec51 (patch) | |
tree | ba4ddf0d86faed3ef3ddb0eaba8bba88a121cf2e /lib/mesa/src/gallium/auxiliary/util/u_surfaces.c | |
parent | 32163fa5a2ccf3f91fce268cd4ff6b46210c5c46 (diff) |
Fix Mesa 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.
OK jsg@
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/util/u_surfaces.c')
0 files changed, 0 insertions, 0 deletions