Browse Source

all: Fix auto-enable of MICROPY_GCREGS_SETJMP to select GC behaviour.

Only enable it if MICROPY_GCREGS_SETJMP is not already defined, and no
supported architecture is defined.
pull/5992/head
Damien George 5 years ago
parent
commit
5c8bf12acf
  1. 2
      examples/embedding/mpconfigport_minimal.h
  2. 2
      mpy-cross/mpconfigport.h
  3. 2
      ports/unix/mpconfigport.h
  4. 2
      ports/unix/variants/minimal/mpconfigvariant.h

2
examples/embedding/mpconfigport_minimal.h

@ -97,7 +97,7 @@ extern const struct _mp_obj_module_t mp_module_os;
// Do not change anything beyond this line
//////////////////////////////////////////
#if !defined(__x86_64__) || !defined(__i386__) || !defined(__thumb2__) || !defined(__thumb__) || !defined(__arm__)
#if !(defined(MICROPY_GCREGS_SETJMP) || defined(__x86_64__) || defined(__i386__) || defined(__thumb2__) || defined(__thumb__) || defined(__arm__))
// Fall back to setjmp() implementation for discovery of GC pointers in registers.
#define MICROPY_GCREGS_SETJMP (1)
#endif

2
mpy-cross/mpconfigport.h

@ -68,7 +68,7 @@
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
#if !defined(__x86_64__) || !defined(__i386__) || !defined(__thumb2__) || !defined(__thumb__) || !defined(__arm__)
#if !(defined(MICROPY_GCREGS_SETJMP) || defined(__x86_64__) || defined(__i386__) || defined(__thumb2__) || defined(__thumb__) || defined(__arm__))
// Fall back to setjmp() implementation for discovery of GC pointers in registers.
#define MICROPY_GCREGS_SETJMP (1)
#endif

2
ports/unix/mpconfigport.h

@ -178,7 +178,7 @@
extern const struct _mp_print_t mp_stderr_print;
#if !defined(__x86_64__) || !defined(__i386__) || !defined(__thumb2__) || !defined(__thumb__) || !defined(__arm__)
#if !(defined(MICROPY_GCREGS_SETJMP) || defined(__x86_64__) || defined(__i386__) || defined(__thumb2__) || defined(__thumb__) || defined(__arm__))
// Fall back to setjmp() implementation for discovery of GC pointers in registers.
#define MICROPY_GCREGS_SETJMP (1)
#endif

2
ports/unix/variants/minimal/mpconfigvariant.h

@ -110,7 +110,7 @@ extern const struct _mp_obj_module_t mp_module_os;
// Do not change anything beyond this line
//////////////////////////////////////////
#if !defined(__x86_64__) || !defined(__i386__) || !defined(__thumb2__) || !defined(__thumb__) || !defined(__arm__)
#if !(defined(MICROPY_GCREGS_SETJMP) || defined(__x86_64__) || defined(__i386__) || defined(__thumb2__) || defined(__thumb__) || defined(__arm__))
// Fall back to setjmp() implementation for discovery of GC pointers in registers.
#define MICROPY_GCREGS_SETJMP (1)
#endif

Loading…
Cancel
Save