mescc: Refactor decl.
authorJan Nieuwenhuizen <janneke@gnu.org>
Thu, 20 Jul 2017 08:05:48 +0000 (10:05 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 26 Jul 2017 09:36:08 +0000 (11:36 +0200)
commit94b3c828d314a8cc2c36fa6f30b093a8d07e92e4
tree6e113b47e5638d88631e35577aac043edef8bf9d
parent69e997047aa891f10d3566ec413131acee0b8737
mescc: Refactor decl.

* module/mes/as-i386.mes (i386:mem->base, i386:nop): New functions.
* module/mes/as-i386.scm: Export them.
* module/language/c99/compiler.mes:
* stage0/x86.M1 (nop,mov____(%edx),%edx,movzbl_(%edx),%edx): New defines.
* scaffold/tests/23-pointer.c: New file.
* scaffold/tests/t.c: New file.
* make.scm: Build them.
* module/language/c99/compiler.mes (init-declr->name): Handle array.
  (init-declr->pointer): Likewise.
  (ident->accu): Simplify.
  (ident->base): Simplify.
  (ident-address->base): Typo.
  (expr->accu): Simplify.
  (decl->info): Simplify.
* mlibc/libc-mes.c (getenv): Remove superfluous statement.
make.scm
mlibc/libc-mes.c
module/language/c99/compiler.mes
module/mes/as-i386.mes
module/mes/as-i386.scm
scaffold/tests/23-pointer.c [new file with mode: 0644]
scaffold/tests/t.c [new file with mode: 0644]
stage0/x86.M1