unix: Add setjmp-based GC register helper implementation.
As I suspected for a long time, for x86, register helper doesn't really make
any difference - there's simply not enough register to keep anything in
them for any prolonged time. Anything gets pushed on stack anyway. So, on
x86, uPy passed all tests even with empty reg helper. So, this setjmp
implementation goes as "untested".
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index 1b1d938..0c12101 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -49,6 +49,9 @@
// Define to MICROPY_ERROR_REPORTING_DETAILED to get function, etc.
// names in exception messages (may require more RAM).
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_DETAILED)
+// Define to 1 to use untested inefficient GC helper implementation
+// (if more efficient arch-specific one is not available).
+#define MICROPY_GCREGS_SETJMP (0)
extern const struct _mp_obj_module_t mp_module_os;
extern const struct _mp_obj_module_t mp_module_time;