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 #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


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