mescc: Do not dump variables with extern storage.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 27 Jul 2019 15:22:00 +0000 (17:22 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 27 Jul 2019 15:22:00 +0000 (17:22 +0200)
commit26891251a6cf38cb51016585ec24b034c6f4cfa9
tree7b92abc38a25bc858f67dc179421507be50a33d3
parente8626841f3a931b09e43295b3d3143ae137d4ee3
mescc: Do not dump variables with extern storage.

* lib/tests/scaffold/70-extern.stdout: New file.
* lib/tests/scaffold/70-extern.c: New file.
* build-aux/check-mescc.sh (TESTS): Add it..
* module/mescc/M1.scm (global-string?, global-extern?): New function.
(info->M1): Dump strings first.  Skip extern symbols.
* module/mescc/info.scm (<global>): Add storage field.
(make-global): Add storage parameter.  Pass it.
* module/mescc/compile.scm (make-global-entry): Likewise.
(global->info): Likewise.
(init-declr->info): Likewise.
(decl->info): Pass storage.
build-aux/check-mescc.sh
lib/tests/scaffold/70-extern.c [new file with mode: 0644]
lib/tests/scaffold/70-extern.stdout [new file with mode: 0644]
module/mescc/M1.scm
module/mescc/compile.scm
module/mescc/info.scm