From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10696 invoked by alias); 15 Sep 2014 23:10:28 -0000 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 Received: (qmail 10657 invoked by uid 48); 15 Sep 2014 23:10:22 -0000 From: "pangbw at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/63234] arm used label is removed Date: Mon, 15 Sep 2014 23:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pangbw at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: version Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-09/txt/msg01681.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63234 baoshan changed: What |Removed |Added ---------------------------------------------------------------------------- Version|4.9.1 |4.9.0 --- Comment #2 from baoshan --- 1. configure & build gcc $ PATH_TO_SRC/configure --enable-languages=c --target=arm-linux-eabi --enable-tls $ make 2. cat m.c typedef struct _GHashTable GHashTable; typedef struct _DNSCacheEntry DNSCacheEntry; typedef struct _DNSCacheKey DNSCacheKey; struct _DNSCacheKey { }; struct _DNSCacheEntry { DNSCacheEntry *prev, *next; DNSCacheKey key; }; struct __tls_variables { GHashTable *cache; DNSCacheEntry persist_first; DNSCacheEntry persist_last; } ; static __thread struct __tls_variables __tls; dns_cache_cleanup_persistent_hosts (void) { while ((__tls.persist_first).next != &(__tls.persist_last)) { g_hash_table_remove ((__tls.cache), &(__tls.persist_first).next->key); } } 3. cc1 -O1 -fPIC m.c -o m.s 4. cat m.s In the output you can see there is one line at the end of file: .word .LANCHOR0(tlsldm) + (. - .LPIC3 - 8) But the lable .LPIC3 is not existed in the file.