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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user