This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/26721] [4.2 Regression]: Gcc generates unaligned access



------- Comment #18 from pinskia at gcc dot gnu dot org  2006-03-17 01:12 -------
Subject: Re:  [4.2 Regression]: Gcc generates unaligned access


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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26721


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]