public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jim Wilson <wilson@cygnus.com>
To: Kamil Iskra <kiskra@ernie.icslab.agh.edu.pl>
Cc: Richard Henderson <rth@cygnus.com>,
	Greg McGary <gkm@eng.ascend.com>, Jeffrey A Law <law@cygnus.com>,
	egcs@cygnus.com
Subject: Re: STRICT_ALIGNMENT is too strict for m68k
Date: Tue, 19 May 1998 20:24:00 -0000	[thread overview]
Message-ID: <199805192157.OAA10682@rtl.cygnus.com> (raw)
In-Reply-To: <Pine.GSO.3.95.980519135823.556A-100000@ernie>

	@item SLOW_UNALIGNED_ACCESS
	Define this macro to be the value 1 if unaligned accesses have a cost
	many times greater than aligned accesses, for example if they are
	emulated in a trap handler.

	Please, let's not repeat the STRICT_ALIGNMENT problem by modifying
	functionality of yet another simple macro in a confusing way.

I think the only thing wrong here is that the documentation for
SLOW_UNALIGNED_ACCESS was poorly written.  It already does what you want
as far as I can tell.  There is no need to change the meaning of it; we
need only correct ambiguities in the documentation for it.

SLOW_UNALIGNED_ACCESS was originally created for targets that did not have
STRICT_ALIGNMENT set, but where we didn't want to emit unaligned loads because
they were too slow.  The documentation was written with this bias.

However, SLOW_UNALIGNED_ACCESS can also be used for targets that do have
STRICT_ALIGNMENT set, in which case defining SLOW_UNALIGNED_ACCESS to zero
will cause gcc to emit unaligned loads, resulting in slower but smaller code.
This case was not considered when the documentation was written, but the
implementation already does this.

Jim

  reply	other threads:[~1998-05-19 20:24 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-14 15:38 Greg McGary
1998-05-14 22:14 ` Rask Ingemann Lambertsen
1998-05-15 12:05 ` Jim Wilson
1998-05-15 14:35   ` Greg McGary
1998-05-16 19:47     ` Richard Henderson
1998-05-18 12:09       ` Jim Wilson
1998-05-19  8:03         ` Kamil Iskra
1998-05-19 20:24           ` Jim Wilson [this message]
1998-05-18 11:32     ` Jim Wilson
1998-05-18 23:58     ` Jeffrey A Law
1998-05-16 19:47   ` Kamil Iskra
1998-05-16 22:35     ` Richard Henderson
1998-05-17 10:51       ` Kamil Iskra
1998-05-17 18:05         ` Jeffrey A Law
1998-05-18  6:02           ` Andreas Schwab
1998-05-18 23:58             ` Jim Wilson
1998-05-20  2:27               ` Andreas Schwab
1998-05-19 21:17             ` Rask Ingemann Lambertsen
1998-05-18 12:09     ` Jim Wilson

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=199805192157.OAA10682@rtl.cygnus.com \
    --to=wilson@cygnus.com \
    --cc=egcs@cygnus.com \
    --cc=gkm@eng.ascend.com \
    --cc=kiskra@ernie.icslab.agh.edu.pl \
    --cc=law@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).