From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3320 invoked by alias); 17 Nov 2008 14:26:51 -0000 Received: (qmail 26648 invoked by alias); 17 Nov 2008 14:25:25 -0000 Date: Mon, 17 Nov 2008 14:26:00 -0000 Message-ID: <20081117142525.26647.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/38118] gcc emits non-TLS data as TLS on Solaris 11/SPARC In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ro at techfak dot uni-bielefeld dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-11/txt/msg01390.txt.bz2 ------- 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