This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [AArch64][TLSLE][1/3] Add the option "-mtls-size" for AArch64
- From: Marcus Shawcroft <marcus dot shawcroft at gmail dot com>
- To: Jiong Wang <jiong dot wang at arm dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 25 Aug 2015 10:57:38 +0100
- Subject: Re: [AArch64][TLSLE][1/3] Add the option "-mtls-size" for AArch64
- Authentication-results: sourceware.org; auth=none
- References: <n99ioblooz5 dot fsf at arm dot com> <CAFqB+PwyZqp1OMcoY751Nk7atqt1GNZ1F9Ef5S6A6jq_wfMSsA at mail dot gmail dot com> <n99io8b5p6s dot fsf at arm dot com>
On 19 August 2015 at 15:26, Jiong Wang <jiong.wang@arm.com> wrote:
> 2015-08-19 Jiong Wang <jiong.wang@arm.com>
>
> gcc/
> * config/aarch64/aarch64.opt (mtls-size): New entry.
> * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
> (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
> * doc/invoke.texi (AArch64 Options): Document -mtls-size.
>
> --
> Regards,
> Jiong
>
+ case AARCH64_CMODEL_TINY:
+ /* The maximum TLS size allowed under tiny is 1M. */
+ if (aarch64_tls_size > 20)
+ aarch64_tls_size = 20;
The only valid values of aarch64_tls_size handled/expected by the
remainder of the patch set is 12,24,32,48 so setting the value to 20
here doesn;t make sense.
/Marcus