micropython/ports
stijn b184b6ae53 py/nlr: Fix nlr functions for 64bit ports built with gcc on Windows
The number of registers used should be 10, not 12, to match the assembly
code in nlrx64.c. With this change the 64bit mingw builds don't need to
use the setjmp implementation, and this fixes miscellaneous crashes and
assertion failures as reported in #1751 for instance.

To avoid mistakes in the future where something gcc-related for Windows
only gets fixed for one particular compiler/environment combination,
make use of a MICROPY_NLR_OS_WINDOWS macro.

To make sure everything nlr-related is now ok when built with gcc this
has been verified with:
- unix port built with gcc on Cygwin (i686-pc-cygwin-gcc and
  x86_64-pc-cygwin-gcc, version 6.4.0)
- windows port built with mingw-w64's gcc from Cygwin
 (i686-w64-mingw32-gcc and x86_64-w64-mingw32-gcc, version 6.4.0)
 and MSYS2 (like the ones on Cygwin but version 7.2.0)
2017-12-29 22:24:46 +11:00
..
bare-arm all: Remove inclusion of internal py header files. 2017-10-04 12:37:50 +11:00
cc3200 py/objstr: Remove "make_qstr_if_not_already" arg from mp_obj_new_str. 2017-11-16 13:17:51 +11:00
esp32 esp32/README: Update toolchain setup. 2017-12-22 16:27:24 +11:00
esp8266 esp8266/Makefile: Remove commented-out unused lines. 2017-12-22 17:16:42 +11:00
minimal py/persistentcode: Bump .mpy version number to version 3. 2017-10-05 10:49:44 +11:00
pic16bit all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
qemu-arm qemu-arm/test_main: Include setjmp.h because it's used by gc_collect. 2017-12-20 15:42:06 +11:00
stm32 stm32/spi: If MICROPY_HW_SPIn_MISO undefined, do not claim pin on init. 2017-12-28 18:00:20 +11:00
teensy teensy: Get port compiling without any warnings. 2017-11-01 11:00:30 +11:00
unix unix/mpconfigport_coverage.h: Enable MICROPY_PY_IO_RESOURCE_STREAM. 2017-12-19 17:04:55 +11:00
windows py/nlr: Fix nlr functions for 64bit ports built with gcc on Windows 2017-12-29 22:24:46 +11:00
zephyr zephyr/main: Remove unused do_str() function. 2017-12-26 20:16:08 +02:00