On Wed, 29 Jun 2011, Anders Magnusson wrote:

> Module Name:  pcc
> Committed By: ragge
> Date:         Wed Jun 29 06:54:50 UTC 2011
>
> Modified Files:
>       pcc/cc/ccom: symtabs.c
>
> Log Message:
> Check for TLS before PIC when calculating section.

this fixes the problems I mentioned in PCC-356, though I still see an
issue with __thread declaration

% cat thread.c
__thread int foo = 1;
__thread int bar;
% pcc -S thread.c
% cat thread.s
        .section .tdata,"awT",@progbits
        .align 4
        .globl foo
        .type foo,@object
        .size foo,4
foo:
        .long 1
        .section .tbss,"awT",@nobits
        .align 4
        .size bar,4
bar:
        .space 4
        .ident "PCC: pcc 1.1.0.DEVEL 20110629 for netbsd-i386"

.. there is no global symbol exported for bar ..

iain

Reply via email to