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 18 20:00:09 PDT 2016


On 17 July 2016 at 23:35, Geunsik Lim <leemgs at gmail.com> wrote:
>> But there's really no reason to use -O4 in the first place since it's
>> identical to -O3.
> Actually, I thought that -O4 means "link-time optimization" based on -O3
> (e.g., -O3 + -flto ).

Now that you say it, that rings bells. Fortunately it's definitely not
true any more even if it was at some point. If you want LTO, you need
to specify -flto.

<snip bits on coreclr patches: I'm afraid I'm really not familiar
enough with their code to assess them sensibly>.

>> I'd expect them to be equivalent after optimization
> Do you mean that we get the similar instructions between "memcpy()"  library
> call and " __attribute__(aligned(1)) keyword".

Yes.

Tim.


More information about the llvm-commits mailing list