Re: -current build failure

From: David Chisnall <theraven_at_FreeBSD.org>
Date: Tue, 24 Jul 2012 22:08:13 +0100
On 23 Jul 2012, at 20:53, David Chisnall wrote:

> On 23 Jul 2012, at 20:18, Konstantin Belousov wrote:
> 
>> Longer description is that pc_curthread is offset 0 if %gs-based.
>> The dereferenced pointer point to the struct thread, which contains
>> td_proc pointer at offset 8. Instead, clang seems to dereference
>> td_proc from offset 8 based on %gs, or something similar.
> 
> This appears to be a bug in the LLVM X86 back end.  It is performing an invalid fold of the two loads.  I have filed this bug:
> 
> http://llvm.org/bugs/show_bug.cgi?id=13438

And fixed it in LLVM r160687.  Since it's a single-line change, we can probably pull it into our version.

dim: http://llvm.org/viewvc/llvm-project?view=rev&revision=160687

David
Received on Tue Jul 24 2012 - 19:08:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:29 UTC