This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcov weirdness: local lable being declared
- From: Ian Lance Taylor <ian at airs dot com>
- To: jkj at sco dot com
- Cc: gcc at gcc dot gnu dot org
- Date: 30 Jul 2005 13:20:48 -0700
- Subject: Re: gcov weirdness: local lable being declared
- References: <42EBB5B5.6090303@sco.com>
Kean Johnston <jkj@sco.com> 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