[gnu.gcc.bug] alignment on sun386i with gcc

Leisner.Henr@XEROX.COM (Marty) (04/11/89)

I'm porting some code from Ms/Dos to a sun386i.  It talks to a TI34010
hanging on a board on the sun386i's AT bus.

I defined structures to represent message formats.

It seems I can't get the alignment I want without changing the code (i.e.
treating everything as an array of char and casting to short, long, etc at
the specific address desired).

Is there a simple way I can get the alignment I want here:
typedef struct {
        short  fd;
        long   buffer;
        short int       count;
} READ_MESSAGE;

where:

buffer is aligned 2 bytes after fd?

count is aligned 6 bytes after fd?

I didn't find anything about controlling object alignment at compile time.

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