From 44f0a4d1e7a315c8d2b21fc4b0471d88e382a91e Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 18 Sep 2017 23:53:33 +1000 Subject: [PATCH] py/mpconfig.h: Add note that using computed gotos in VM is not C99. --- py/mpconfig.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/mpconfig.h b/py/mpconfig.h index 63438a8465..b93f851d6c 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -383,6 +383,8 @@ // Whether to use computed gotos in the VM, or a switch // Computed gotos are roughly 10% faster, and increase VM code size by a little +// Note: enabling this will use the gcc-specific extensions of ranged designated +// initialisers and addresses of labels, which are not part of the C99 standard. #ifndef MICROPY_OPT_COMPUTED_GOTO #define MICROPY_OPT_COMPUTED_GOTO (0) #endif