Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
c3ae03ff
Commit
c3ae03ff
authored
May 08, 2015
by
Paul Sokolovsky
Committed by
Damien George
May 08, 2015
Browse files
unix: Fix thumb2 vs arm native emitter auto-detection.
Make thumb2 have priority over arm.
parent
351424e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/mpconfigport.h
View file @
c3ae03ff
...
...
@@ -35,8 +35,11 @@
#endif
#if !defined(MICROPY_EMIT_THUMB) && defined(__thumb2__)
#define MICROPY_EMIT_THUMB (1)
#define MICROPY_MAKE_POINTER_CALLABLE(p) ((void*)((mp_uint_t)(p) | 1))
#endif
#if !defined(MICROPY_EMIT_ARM) && defined(__arm__)
// Some compilers define __thumb2__ and __arm__ at the same time, let
// autodetected thumb2 emitter have priority.
#if !defined(MICROPY_EMIT_ARM) && defined(__arm__) && !defined(__thumb2__)
#define MICROPY_EMIT_ARM (1)
#endif
#define MICROPY_COMP_MODULE_CONST (1)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment