From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3363 invoked by alias); 30 Jul 2005 20:21:01 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 3344 invoked by uid 22791); 30 Jul 2005 20:20:58 -0000 Received: from yosemite.airs.com (HELO yosemite.airs.com) (205.217.158.180) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Sat, 30 Jul 2005 20:20:58 +0000 Received: (qmail 19645 invoked by uid 10); 30 Jul 2005 20:20:56 -0000 Received: (qmail 7488 invoked by uid 500); 30 Jul 2005 20:20:48 -0000 To: jkj@sco.com Cc: gcc@gcc.gnu.org Subject: Re: gcov weirdness: local lable being declared References: <42EBB5B5.6090303@sco.com> From: Ian Lance Taylor Date: Sat, 30 Jul 2005 20:21:00 -0000 In-Reply-To: <42EBB5B5.6090303@sco.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-07/txt/msg01261.txt.bz2 Kean Johnston writes: > I am getting weird warning messages from my assembler when > gcov is being used. I have tracked what I think is the > problem down but I don't really know how to fix it. The > bit of assembler that causes the warning is: > > .type .LPBX0, @object > .size .LPBX0, 52 > .LPBX0: > ... whole bunch of initialization stuff > > The assembler warns that the .type/.size directive is useless. > This is causing many testsuite failures. The assembler is > right. Why is a local lable being declared as if it was a > global symbol? .LPBX0 comes from ASM_GENERATE_INTERNAL_LABEL. I don't understand why the .type and .size information is useless. The information is recorded in the object file. I've seen various scripts which use that information to do things like associate address space with variables. I think the assembler should just be recording the information, not warning about it. If you do need a patch for it, I think it should be SCO specific, and only #if !USE_GAS. Ian