Declare machine-dependent functions in mach/proto/ncg
authorGeorge Koehler <xkernigh@netscape.net>
Mon, 13 Nov 2017 19:23:44 +0000 (14:23 -0500)
committerGeorge Koehler <xkernigh@netscape.net>
Mon, 13 Nov 2017 19:23:44 +0000 (14:23 -0500)
commit5301cceee3baa298a3534b26eda47addd13e2183
treeca055827246fdbe07d7fdad29e5fb5e3b81efccd
parente04166b85d1d6a8adbb3c385755ccd90323bf6b5
Declare machine-dependent functions in mach/proto/ncg

This breaks all machines because the declared return type void
disagrees with the implicit return type int (when I compile mach.c
with clang).  Unbreak i386, i80, i86, m68020, powerpc, vc4 by adding
the return types to mach.c.  We don't build any other machines; they
are broken since commit a46ee91 (May 19, 2013) declared void prolog()
and commit fd91851 (Nov 10, 2016) declared void mes(), with both
declarations in mach/proto/ncg/fillem.c.

Also fix mach/vc4/ncg/mach.c where type full is long, so fprintf()
must use "%ld" not "%d" to print full nlocals.
h/con_float
mach/i386/ncg/mach.c
mach/i80/ncg/mach.c
mach/i86/ncg/mach.c
mach/m68020/ncg/mach.c
mach/powerpc/ncg/mach.c
mach/proto/ncg/codegen.c
mach/proto/ncg/fillem.c
mach/proto/ncg/regvar.h
mach/proto/ncg/types.h
mach/vc4/ncg/mach.c