Remove stackadjust and stackoffset() from ncg.
authorGeorge Koehler <xkernigh@netscape.net>
Sat, 8 Oct 2016 00:52:13 +0000 (20:52 -0400)
committerGeorge Koehler <xkernigh@netscape.net>
Sat, 8 Oct 2016 00:52:13 +0000 (20:52 -0400)
commit65c2a8a0aefca014278b0dd8c3ff6ec9d66ccfa8
treea95e3323379fee8acde171c883a89d79a6355b76
parent409ba7fb1b1e96e7e6e0f83fe45fe6c231f2e216
Remove stackadjust and stackoffset() from ncg.

This feature has never been used since its introduction, more than 3
years ago, in David Given's commit c93cb69 of May 8, 2013.  The commit
was for "PowerPC and M68K work".  I am not undoing the entire commit.
I am only removing the stackadjust and stackoffset() feature.

This commit removes the feature from my branch kernigh-linuxppc.  This
removal includes the mach/proto/ncg parts.  The default branch already
removed most of the feature, but kept the mach/proto/ncg parts.  That
removal happened in commit 81778b6 of May 13, 2013 (which was a merge;
git diff af0dede 81778b6).  The branch dtrg-experimental-powerpc
merged the default branch but without the removal.  That merge was
commit 4703db0f of Sep 15, 2016 (git diff 8c94b13 4703db0).  My branch
kernigh-linuxppc is off branch dtrg-experimental-powerpc, so I can no
longer get the removal by merging default.

David Given described the stackadjust feature in
  https://sourceforge.net/p/tack/mailman/message/30814691/

The instruction stackadjust would add a value to the offset, and the
function stackoffset() would return this offset.  One would use this
to track sp - fp, then omit the frame pointer by not keeping fp in a
register.
h/cgg_cg.h
mach/proto/ncg/codegen.c
mach/proto/ncg/extern.h
util/ncgg/cgg.y
util/ncgg/coerc.c
util/ncgg/extern.h
util/ncgg/keywords
util/ncgg/output.c
util/ncgg/pseudo.h