Subject: egcs & sparc.
To: None <>
From: matthew green <>
List: tech-toolchain
Date: 10/30/1998 16:14:41
[ christos, were there any other problems besides netstat -r?
  i can't seem to see anything else ]

i had a look at the netstat -r bus error.  it seems that it is
due to unaligned access upon the pt_u union in route.c:

	static union {
		struct  sockaddr u_sa;
		u_short u_data[128];
	} pt_u;

i found that while they both output:

        .reserve _pt_u,256,"bss",2

for the pt_u, gcc happens to get this aligned on a 4 byte boundary
and egcs on a 2 byte boundary.  this causes the sparc to be very
unhappy :-(  if i add a 'int u_dummy;' member to the above union,
the netstat -r works again.