Kean Johnston <[EMAIL PROTECTED]> 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

Reply via email to