On 10/21/2011 1:42 PM, John David Anglin wrote:
Yes. The issue here is expand_call doesn't appear to be aware that loading the address of a __thread variable may require a call. Thus, it just emits an insn to load r26. This load is dead because r26 is reloaded for the call to __tls_get_addr.It appears this may be caused by treating TLS symbols as legitimate constants.
Dave -- John David Anglin dave.anglin@bell.net