This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: rtl slot lies
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: rtl slot lies
- From: John Carr <jfc at mit dot edu>
- Date: Sat, 09 May 1998 08:27:00 -0400
- cc: egcs at cygnus dot com
> 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.