mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
llvmpipe: restrict optim bug workaround to gcc 10.x
seems fixed in 11.x, see https://gitlab.freedesktop.org/mesa/mesa/-/issues/3906 Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11209>
This commit is contained in:
parent
cabafa5ed8
commit
fe625241f7
1 changed files with 2 additions and 3 deletions
|
|
@ -78,12 +78,11 @@
|
|||
#include "lp_bld_format.h"
|
||||
|
||||
|
||||
/* the lp_test_format test fails on mingw/i686 at -O2
|
||||
* it is ok with gcc 9.3, but not for 10.2, assume broken for gcc>=10
|
||||
/* the lp_test_format test fails on mingw/i686 at -O2 with gcc 10.x
|
||||
* ref https://gitlab.freedesktop.org/mesa/mesa/-/issues/3906
|
||||
*/
|
||||
|
||||
#if defined(__MINGW32__) && !defined(__MINGW64__) && ((__GNUC__ * 100) + __GNUC_MINOR >= 1000)
|
||||
#if defined(__MINGW32__) && !defined(__MINGW64__) && (__GNUC__ == 10)
|
||||
#warning "disabling caller-saves optimization for this file to work around compiler bug"
|
||||
#pragma GCC optimize("-fno-caller-saves")
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue