Add a few more error checks and adjustments to reglap.
authorGeorge Koehler <xkernigh@netscape.net>
Thu, 19 Oct 2017 02:00:12 +0000 (22:00 -0400)
committerGeorge Koehler <xkernigh@netscape.net>
Thu, 19 Oct 2017 02:00:12 +0000 (22:00 -0400)
commit2a92f9bf4d02577cf2b39557d8f468a8a33d8bb8
tree7e05caaeadfb3f2e9c0ba9ba4540d3f07a5e2dbf
parent73ad5a227d8725246d9941be3481a5ff438d96b7
Add a few more error checks and adjustments to reglap.

In util/ncgg, add two more errors for tables using reglap:
 - "Two sizes of reg_float can't be same size"
 - "Missing reg_float of size %d to contain %s"

In mach/proto/ncg, rename macro isregvar_size() to PICK_REGVAR(), so
the macro doesn't look like a function.  This macro sometimes doesn't
evaluate its second argument.

In mach/powerpc/ncg/mach.c, change type of lfs_set to uint32_t, and
change the left shifts from 1U<<regno to (uint32_t)1<<regno, because
1U would be too small for machines with 16-bit int.
mach/powerpc/ncg/mach.c
mach/proto/ncg/compute.c
mach/proto/ncg/regvar.h
mach/proto/ncg/subr.c
util/ncgg/cgg.y
util/ncgg/subr.c