nl_palestra.cpp: fix building with gcc-10.1 on mingw32.

This commit is contained in:
couriersud 2020-07-26 13:59:20 +02:00
parent cd8ad16d39
commit 6e7db8ff8c

View File

@ -26,6 +26,12 @@
#define SLOW_BUT_ACCURATE 0 #define SLOW_BUT_ACCURATE 0
#if defined(__GNUC__) && !defined(__clang__)
#if defined(__MINGW32__) && !defined(__x86_64) && defined(__i386__) && ((__GNUC__ > 10) || ((__GNUC__ == 10) && (__GNUC_MINOR__ >= 0)))
#pragma GCC optimize ("O1")
#endif
#endif
NETLIST_START(palestra) NETLIST_START(palestra)
// SOLVER(Solver, 10000000) to maintain accuracy when SLOW is set and CAP()s are connected // SOLVER(Solver, 10000000) to maintain accuracy when SLOW is set and CAP()s are connected