Re: fix thinko in tree-emutls, breaking tls support on vxworks

2012-08-06 Thread Olivier Hainque
On Jul 16, 2012, at 19:48 , Richard Henderson wrote: >>* tree-emutls.c (new_emutls_decl): When a var_section is requested by >>the target, attach the new decl to that, not to the template section. > > Ok. rev 190179, after a couple of weeks off. Thanks :)

Re: fix thinko in tree-emutls, breaking tls support on vxworks

2012-07-16 Thread Richard Henderson
On 07/03/2012 02:09 AM, Olivier Hainque wrote: > 2012-07-03 Olivier Hainque > > * tree-emutls.c (new_emutls_decl): When a var_section is requested by > the target, attach the new decl to that, not to the template section. Ok. r~

fix thinko in tree-emutls, breaking tls support on vxworks

2012-07-03 Thread Olivier Hainque
Hello, With the current mainline configured for powerpc-wrs-vxworks, compiling the source below exposes a problem with tls support (emulated) on this target: /* t.c */ __thread int y = 2; ./cc1 t.c -o - t.c:1:14: error: __tls__y causes a section type conflict with y __thread int y = 2;