This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug target/26721] [4.2 Regression]: Gcc generates unaligned access
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: gcc-bugzilla at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Mar 2006 20:12:16 -0500
- Subject: Re: [Bug target/26721] [4.2 Regression]: Gcc generates unaligned access
- References: <bug-26721-682@http.gcc.gnu.org/bugzilla/> <20060317010629.7767.qmail@sourceware.org>
On Mar 16, 2006, at 8:06 PM, schwab at suse dot de wrote:
------- Comment #17 from schwab at suse dot de 2006-03-17 01:06
-------
PPC does not trap on unaligned integer load and store.
That is not true, it traps on some. It all depends on the hardware.
Please don't say it does not trap on none because that is not true.
I don't have access to my PPC PEM right now but IIRC, it says some
implementations can trap.
This is one of the reasons why in sysv4.h, there is a define for
STRICT_ALIGNMENT as:
#define STRICT_ALIGNMENT (TARGET_STRICT_ALIGN)
Yes most of the non embedded processors don't trap but does not
mean anything in general.
-- Pinski