public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@cygnus.com>
To: Jeffrey A Law <law@hurl.cygnus.com>, richard.earnshaw@arm.com
Cc: Joern Rennecke <amylaar@cygnus.co.uk>, egcs@egcs.cygnus.com
Subject: Re: Propagation of pointer alignment information
Date: Fri, 18 Dec 1998 16:17:00 -0000	[thread overview]
Message-ID: <19981218161730.B23372@dot.cygnus.com> (raw)
In-Reply-To: <29262.913874805@hurl.cygnus.com>

On Wed, Dec 16, 1998 at 11:06:45PM -0700, Jeffrey A Law wrote:
> I'm not a big fan of having lots of options to work around bad user code. 

Neither am I.

> I'm willing to go along with this patch if you think this problem is important
> enough to warrant adding the change.  But we shouldn't make a habit of hacking
> the compiler to work around bugs in user code.

If the only problem code you've seen is for Ghostscript, I'm not
sure I'd bother.  I hacked up the source to make it work for the
Alpha.  The key to the hack is that gcc will propogate through a
cast, but not through an assignment to a properly typed variable.

+#define PACKED(pref)  ({ const ushort *_T_ = (const ushort *)(pref); _T_; })

Does the trick.  I can pass the whole patch along if you are interested.



r~

      reply	other threads:[~1998-12-18 16:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-15  8:50 Richard Earnshaw
1998-12-15 10:04 ` Joern Rennecke
1998-12-16  5:56   ` Richard Earnshaw
1998-12-16 22:07     ` Jeffrey A Law
1998-12-18 16:17       ` Richard Henderson [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=19981218161730.B23372@dot.cygnus.com \
    --to=rth@cygnus.com \
    --cc=amylaar@cygnus.co.uk \
    --cc=egcs@egcs.cygnus.com \
    --cc=law@hurl.cygnus.com \
    --cc=richard.earnshaw@arm.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).