public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: mengqinggang <mengqinggang@loongson.cn>
To: Xi Ruoyao <xry111@xry111.site>, gcc-patches@gcc.gnu.org
Cc: xuchenghua@loongson.cn, chenglulu@loongson.cn,
	cailulu@loongson.cn, i.swmail@xen0n.name, maskray@google.com,
	luweining@loongson.cn, wanglei@loongson.cn,
	hejinyang@loongson.cn
Subject: Re: [PATCH] LoongArch: Add support for TLS descriptors
Date: Fri, 1 Dec 2023 18:13:06 +0800	[thread overview]
Message-ID: <d444eb4d-b7b7-160c-e804-3b094e094285@loongson.cn> (raw)
In-Reply-To: <749f8c5bddf8820a4514a9fe90338d252459caed.camel@xry111.site>

This is mainly for the convenience of testing, and we will consider the 
issues you mentioned.


在 2023/12/1 下午6:01, Xi Ruoyao 写道:
> On Fri, 2023-12-01 at 17:55 +0800, mengqinggang wrote:
>> Generate la.tls.desc macro instruction for TLS descriptors model.
>>
>> la.tls.desc expand to
>>    pcalau12i $a0, %desc_pc_hi20(a)
>>    ld.d      $a1, $a0, %desc_ld_pc_lo12(a)
>>    addi.d    $a0, $a0, %desc_add_pc_lo12(a)
>>    jirl      $ra, $a1, %desc_call(a)
>>
>> The default is TLS descriptors, but can be configure with
>> -mtls-dialect={desc,trad}.
> No, the default should be trad to be compatible with old Glibc and
> Binutils.
>
> Or you can check the value of --with-glibc-version=M.N and the GAS
> feature when GCC is configured to decide the default.
>


  parent reply	other threads:[~2023-12-01 10:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-01  9:55 mengqinggang
2023-12-01 10:01 ` Xi Ruoyao
2023-12-01 10:03   ` Xi Ruoyao
2023-12-01 10:13   ` mengqinggang [this message]
2023-12-01 10:24     ` Xi Ruoyao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d444eb4d-b7b7-160c-e804-3b094e094285@loongson.cn \
    --to=mengqinggang@loongson.cn \
    --cc=cailulu@loongson.cn \
    --cc=chenglulu@loongson.cn \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hejinyang@loongson.cn \
    --cc=i.swmail@xen0n.name \
    --cc=luweining@loongson.cn \
    --cc=maskray@google.com \
    --cc=wanglei@loongson.cn \
    --cc=xry111@xry111.site \
    --cc=xuchenghua@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).