Linux/ARM: Bus error with -O3 flag of clang/llvm-3.6 while running unit-test of .NET Core

Tim Northover via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 11 17:36:00 PDT 2016


On 11 July 2016 at 17:21, Geunsik Lim <leemgs at gmail.com> wrote:
>> If "UNALIGNED" is coming from
> I have thought that the "UNALIGNED"  is coming from
> https://github.com/dotnet/coreclr/blob/master/src/pal/inc/pal.h (L194 ~
> L206).

Quite possible, you probably know the code far better than me. It's
the same in either case though: it's #defined to nothing unless you're
on x86-64.

>> instead you need a typedef:
>>   typedef int __atribute__((aligned(1))) unaligned_int;
>>   *(unaligned_int *)ptr = 2; // Works
>
> Really? Does the latest clang/llvm version also  ignore the below attribute
> that you commented?

It does.

Tim.


More information about the llvm-commits mailing list