This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: STRICT_ALIGNMENT is too strict for m68k
- To: Greg McGary <gkm at eng dot ascend dot com>, Jim Wilson <wilson at cygnus dot com>
- Subject: Re: STRICT_ALIGNMENT is too strict for m68k
- From: Richard Henderson <rth at cygnus dot com>
- Date: Sat, 16 May 1998 19:47:44 -0700
- Cc: egcs at cygnus dot com, law at cygnus dot com
- References: <199805151904.MAA08894@rtl.cygnus.com> <mszpgj43qh.fsf@tucson-net-82.eng.ascend.com>
- Reply-To: Richard Henderson <rth at cygnus dot com>
On Fri, May 15, 1998 at 02:35:18PM -0700, Greg McGary wrote:
> > Changing the value of STRICT_ALIGNMENT changes the ABI.
Seems to me that there should be a separate macro for controling
the alignment of members in structures, leaving STRICT_ALIGNMENT
for indicating if unaligned accesses to memory will trap.
Perhaps define a STRICT_ALIGNMENT_FOR_STRUCT, and default it to
STRICT_ALIGNMENT in stor-layout.c?
Gary, I don't think this would be a particularly large patch if
you'd like to have a go at it.
r~