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 18:54:05 -0500
- Subject: Re: [Bug target/26721] [4.2 Regression]: Gcc generates unaligned access
- References: <bug-26721-682@http.gcc.gnu.org/bugzilla/> <20060316233751.4630.qmail@sourceware.org>
On Mar 16, 2006, at 6:37 PM, schwab at suse dot de wrote:
------- Comment #12 from schwab at suse dot de 2006-03-16 23:37
-------
(In reply to comment #9)
Why is ia64-linux-gnu setting STRICT_ALIGNMENT to true even though it
works by
default?
prctl --unaligned=signal will make it generate bus errors.
But that is a different issue and really this should be handled
correctly
in that since the target supported by default the unaligned handlers, it
should not set STRICT_ALIGNMENT to 1. Now the target can have an option
to turn it on, witness PPC-elf/PPC-linux which has one as some embedded
hardware/OS's don't support the unalignement trap.
-- Pinski