Fix for nolibc (eg wasm). Add multi global declarations. Simplicity wasm export / import. Prevent "extern" functions to have a function body.

This commit is contained in:
Christoffer Lerno
2023-02-11 11:16:31 +01:00
parent 2fa3ae7bc9
commit 3b49b87784
22 changed files with 146 additions and 58 deletions

View File

@@ -181,6 +181,7 @@ static void register_generic_decls(CompilationUnit *unit, Decl **decls)
case DECL_CT_ELSE:
case DECL_BODYPARAM:
case DECL_CT_INCLUDE:
case DECL_GLOBALS:
UNREACHABLE
case DECL_MACRO:
case DECL_DEFINE: