[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Architectures where unaligned access is (not) OK?



On 21.11.2014 18:01, Jakub Wilk wrote:
> * Felipe Sateler <fsateler@debian.org>, 2014-11-21, 14:04:
>> Sparc is definitely not ok. For evidence, see #721617, liblo was
>> trying to fetch a double from a 4-byte aligned address. Experience
>> with liblo shows that other architectures are just fine (or at least
>> are just slower) with this type of unalignment.
> 
> IME, sprac buildds are the only ones where where unaligned access in a
> build-time test suite triggers SIGBUS/SIGSEGV.
> 
> Now that sparc is no long a release architecture, these kind of problems
> are likely to go unnoticed. :-(
> 

the not yet released gcc 5.0 has -fsanitize=alignment which can tell you
about unaligned access on all arches, can be quite useful if you care
about it.


Reply to: