This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26721] [4.2 Regression]: Gcc generates unaligned access
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2006 23:54:16 -0000
- Subject: [Bug target/26721] [4.2 Regression]: Gcc generates unaligned access
- References: <bug-26721-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from pinskia at gcc dot gnu dot org 2006-03-16 23:54 -------
Subject: Re: [4.2 Regression]: Gcc generates unaligned access
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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26721