This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: rtl slot lies



> 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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]