[Ping^2][AArch64][TLSGD][2/2] Implement TLS GD traditional for tiny code model

2015-12-03 Thread Jiong Wang
On 13/11/15 15:21, Jiong Wang wrote: On 05/11/15 14:57, Jiong Wang wrote: Marcus Shawcroft writes: +#ifdef HAVE_AS_TINY_TLSGD_RELOCS + return SYMBOL_TINY_TLSGD; +#else + return SYMBOL_SMALL_TLSGD; +#endif Rather than introduce blocks of conditional compilation it is better to gate differen

Re: [AArch64][TLSGD][2/2] Implement TLS GD traditional for tiny code model

2015-11-13 Thread Jiong Wang
On 05/11/15 14:57, Jiong Wang wrote: Marcus Shawcroft writes: +#ifdef HAVE_AS_TINY_TLSGD_RELOCS + return SYMBOL_TINY_TLSGD; +#else + return SYMBOL_SMALL_TLSGD; +#endif Rather than introduce blocks of conditional compilation it is better to gate different behaviours with a test on a constant

Re: Re: [AArch64][TLSGD][2/2] Implement TLS GD traditional for tiny code model

2015-11-05 Thread Jiong Wang
Marcus Shawcroft writes: +#ifdef HAVE_AS_TINY_TLSGD_RELOCS + return SYMBOL_TINY_TLSGD; +#else + return SYMBOL_SMALL_TLSGD; +#endif Rather than introduce blocks of conditional compilation it is better to gate different behaviours with a test on a constant expression. In this case add something

Re: [AArch64][TLSGD][2/2] Implement TLS GD traditional for tiny code model

2015-10-06 Thread Marcus Shawcroft
On 27 August 2015 at 10:54, Jiong Wang wrote: > > As described this is the main implementaion patch. > > 2015-08-26 Jiong Wang > > gcc/ > * configure.ac: Add check for binutils global dynamic tiny code model > relocation support. > * configure: Regenerate. > * config.in: Regenerate. >

[AArch64][TLSGD][2/2] Implement TLS GD traditional for tiny code model

2015-08-27 Thread Jiong Wang
As described this is the main implementaion patch. 2015-08-26 Jiong Wang gcc/ * configure.ac: Add check for binutils global dynamic tiny code model relocation support. * configure: Regenerate. * config.in: Regenerate. * config/aarch64/aarch64.md (tlsgd_tiny): New define_insn. * co