ack/mach
George Koehler 51e34acab1 Add a syntax to declare functions in a top table
Use the new syntax in the mips, pdp, powerpc tables to declare
functions before calling them.  These declarations prevent compiler
warnings about implicitly declaring functions.  They also provide
prototypes of the function parameters.

Also fix a warning in the powerpc table: use `bsearch(...) != NULL` to
avoid converting the pointer from bsearch() to an int.

The syntax for topgen is a block `{...}` among the parameters in the
top table.  It looks like the syntax of LLgen, but topgen doesn't
allow nested blocks, so declarations like `struct whatever {...};`
don't work.  The token OPEN_BRACKET that begins a declaration_block
doesn't conflict with the LETTER that begins a parameter_line or the
'%' that begins a separator.

Because a block writes a #line command to gen.h, a parameter line now
also writes a #line command to gen.h, so it doesn't get a wrong line
number from a previous block.
2019-10-30 18:36:55 -04:00
..
6500 Fix several compiler warnings by adding braces 2019-05-14 23:21:19 +08:00
6800 Fix several compiler warnings by adding braces 2019-05-14 23:21:19 +08:00
6805 Fix several compiler warnings by adding braces 2019-05-14 23:21:19 +08:00
6809 Fix several compiler warnings by adding braces 2019-05-14 23:21:19 +08:00
arm Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
em22 Add the core of a simple em22 platform. Unfortunately it doesn't work; the old 2018-06-10 20:25:48 +09:00
em24 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
em44 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
i80 Teach some ncg machines to use .data8 2019-08-13 15:37:05 -04:00
i86 Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
i386 Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
m68k2 Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
m68k4 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
m68020 Cut down some clang warnings 2019-10-30 18:36:38 -04:00
mantra Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
minix Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
minixST Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
mips Add a syntax to declare functions in a top table 2019-10-30 18:36:55 -04:00
moon3/ncg Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
ns Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
pdp Add a syntax to declare functions in a top table 2019-10-30 18:36:55 -04:00
pmds Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
pmds4 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
powerpc Add a syntax to declare functions in a top table 2019-10-30 18:36:55 -04:00
proto Cut down some clang warnings 2019-10-30 18:36:38 -04:00
s2650 Fix several compiler warnings by adding braces 2019-05-14 23:21:19 +08:00
sparc Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
sparc_solaris Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
sun2 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
sun3 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
vax4 Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
vc4 Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
xenix3 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
z80 Fix several compiler warnings by adding braces 2019-05-14 23:21:19 +08:00
z8000 Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00