summaryrefslogtreecommitdiff
path: root/py/parse.c
diff options
context:
space:
mode:
authorAlessandro Gatti <a.gatti@frob.it>2024-09-25 00:02:57 +0200
committerDamien George <damien@micropython.org>2024-09-27 00:03:16 +1000
commit17d82344581ad3a76033fae54c5d3304e17f185f (patch)
treeea0c832400e0d48d8c20691fad4865e67bef41f7 /py/parse.c
parent73feaaf931682288b9da4b241575e28a508cbcf8 (diff)
py/parse: Remove old esp32 compiler workaround.
The ESP32 port contains a workaround to avoid having a certain function in `py/parse.c` being generated incorrectly. The compiler in question is not part of any currently supported version of ESP-IDF anymore, and the problem inside the compiler (well, assembler in this case) has been corrected a few years ago. This commit removes all traces of that workaround from the source tree. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'py/parse.c')
-rw-r--r--py/parse.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/py/parse.c b/py/parse.c
index 4ba956073..db89fb584 100644
--- a/py/parse.c
+++ b/py/parse.c
@@ -648,11 +648,6 @@ static const mp_rom_map_elem_t mp_constants_table[] = {
static MP_DEFINE_CONST_MAP(mp_constants_map, mp_constants_table);
#endif
-#if MICROPY_COMP_CONST_FOLDING_COMPILER_WORKAROUND
-// Some versions of the xtensa-esp32-elf-gcc compiler generate wrong code if this
-// function is static, so provide a hook for them to work around this problem.
-MP_NOINLINE
-#endif
static bool fold_logical_constants(parser_t *parser, uint8_t rule_id, size_t *num_args) {
if (rule_id == RULE_or_test
|| rule_id == RULE_and_test) {