[gnu.gcc.bug] more BITS_PER_UNITS grief

Leisner.Henr@XEROX.COM (Marty) (05/17/89)

I'm making headway on getting a TI34010 machine description up and running
but I'm conintuing to have problems.

I addeded a macro BITS_PER_CHAR at a number of strategic places where
BITS_PER_UNIT was essentially wrong.

I was hoping by setting BITS_PER_UNITS == 1, everything would work (I was
wrong).

It would seem reasonable to me that all pointer math should be done in
units.

The code for:
char *cp;

cp++

should bump cp by the appropriate number of units (not necessarily 1).

Most pointer math is done via a function size_in_bytes().
I suppose a function size_in_units() would be a reasonable alternative.

Any comments or better ideas?


marty
ARPA:	leisner.henr@xerox.com
GV:  leisner.henr
NS:  martin leisner:wbst139:xerox
UUCP:	hplabs!arisia!leisner