[llvm-dev] Linux/ARM: Segfault issue when we build clang sources including __thread variable using -O2 flag

Tim Northover via llvm-commits llvm-commits at lists.llvm.org
Tue May 10 19:32:40 PDT 2016


On 10 May 2016 at 19:16, Geunsik Lim <leemgs at gmail.com> wrote:
>> Given something like:
>>
>>     ldr r0, .LCPI0_0 (== pc-rel var)
>>     add r0, pc
>>
>>     ldr r1, .LCPI0_1 (== pc-rel var)
>>     add r1, pc
>>
>
> Where can we get the above assembly code?
> For example, from clsload.s with "save-temps" flag?

Clang's -save-temps output is pretty close to this (or alternatively
"clang -S" if you don't want the other files) but I actually just made
up these examples to illustrate what was happening.

Cheers.

Tim.


More information about the llvm-commits mailing list