ack/mach/powerpc
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
..
as Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
libem Teach mcg to pass our tests. 2018-01-31 21:05:40 -05:00
libend Mostly add support for the experimental and largely broken linuxppc platform. 2016-09-15 23:12:03 +02:00
mcg Precisely one stack hreg gets allocated for each vreg/congruence group for 2018-09-08 18:59:55 +02:00
ncg Teach some ncg machines to use .data8 2019-08-13 15:37:05 -04:00
top Add a syntax to declare functions in a top table 2019-10-30 18:36:55 -04:00