public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: John Carr <jfc@mit.edu>
To: Richard Henderson <rth@cygnus.com>
Cc: egcs@cygnus.com
Subject: Re: rtl slot lies
Date: Sat, 09 May 1998 05:27:00 -0000	[thread overview]
Message-ID: <199805091227.IAA24789@jfc.> (raw)
In-Reply-To: <19980508135900.45179@dot.cygnus.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.


      reply	other threads:[~1998-05-09  5:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-08 19:52 Richard Henderson
1998-05-09  5:27 ` John Carr [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199805091227.IAA24789@jfc. \
    --to=jfc@mit.edu \
    --cc=egcs@cygnus.com \
    --cc=rth@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).