------- Comment #2 from ro at techfak dot uni-bielefeld dot de  2008-11-17 
14:25 -------
Subject: Re:  gcc emits non-TLS data as TLS on Solaris 11/SPARC

I'm not completely sure this is a bug in Sun as.  If you consider the
assembler code for my testcase produced by gcc:

        .global tsd
        .section        ".tbss",#alloc,#write,#tls
        .align 4
        .type   tsd, #tls_object
        .size   tsd, 4
tsd:
        .skip 4
        .common non_tsd,4,4

versus what Studio 12 cc produces:

        .section        ".bss",#alloc,#write
        .common non_tsd,4,4
        .section        ".tbss",#alloc,#write,#tls
        .common tsd,4,4

you see that gcc lacks the section switching between non_tsd and tsd.

        Rainer


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38118

Reply via email to