This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: REC: gimplify - create a temp that is set at outermost block?
On 05/20/09 10:40:02, Richard Guenther wrote:
> Gary wrote:
> > Above, __emutls_get_address() is called twice, with
> > the same argument. I was surprised to see that the optimizer
> > (GCC 4.3.2) didn't notice this and use CSE to avoid the second
> > redundant call, because emultls_get_address is defined as
> > a "const" function.
>
> This is likely because the libcall lacks a REG_EQUAL note (or
> we lack something to put there). Tree level CSE would catch
> it, but it doesn't see these function calls.
Understood.
Do you/others happen to know who is the maintainer of the
TLS emulation? I tried a simple test case that works
with the native TLS support, but it SEGV's when using
TLS emulation. Perhaps a cockpit error on my part, but
I'd like to see if I can use the TLS emulation for our
purposes, and a first step is to get the example to work.
thanks,
- Gary