From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Carr To: Richard Henderson Cc: egcs@cygnus.com Subject: Re: rtl slot lies Date: Sat, 09 May 1998 05:27:00 -0000 Message-id: <199805091227.IAA24789@jfc.> References: <19980508135900.45179@dot.cygnus.com> X-SW-Source: 1998-05/msg00319.html > While working on a garbage collector, I discovered that the > INLINE_HEADER rtl was lying about the types of some of its slots. > > The following patch corrects this, and gets rid of wome ugly casts. The rtl.h patch adds more ugly casts and is worse than the original code. That kind of pointer cast is never valid C, unlike direct pointer casts which can be valid depending on alignment. If you want to store odd types in, add a new generic pointer member (char/void *) and format code.