public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@cambridge.redhat.com>
To: Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
Cc: binutils List <binutils@sourceware.cygnus.com>
Subject: Re: obj_coff_loc Internal Error
Date: Mon, 10 Sep 2001 13:21:00 -0000	[thread overview]
Message-ID: <m3n142hk7v.fsf@north-pole.nickc.cambridge.redhat.com> (raw)
In-Reply-To: <3B9CFE65.F8D4DB87@microchip.com>

Hi Tracy,

> > First of all - do you have a binutils copyright assignment on file
> > with the FSF ?  Without such an assignment we cannot accept your
> > patch.  (I know that the patch is small, but I consider it to be
> > non-trivial and not-obvious, so we do need the assignment).
> 
> I am working on this.  I have yet to receive the form from FSF.

Is this the form you fill out to request copyright assignment ?  I can
send you a copy directly if you wish.


> > Secondly I am not sure that it is correct to issue a warning if the
> > comma is missing.  The code before your patch parsed the expression
> > without requiring an line number and I feel that we should continue to
> > support that behaviour unless there is a good reason not too.
> 
> We can remove the warning, but I thought it strange for the
> directive to accept two arguments that did not require a comma.

True, but it is possible that there are assemblers out there that
support this syntax.  Certainly this is what is implied by the
current code.

> > This does look wrong, or at least different.  The listing code does
> > change the variable 'lineno' which is used by the call to add_lineno()
> > so the behaviour will change.  Why did you move the call ?  Were you
> > detecting incorrect line numbers in your output ?
> 
> I could not find any documentation on this directive except for the
> comment block before the directive.
> 
> /* .loc is essentially the same as .ln; parse it for assembler
>    compatibility.  */
> 
> I made an assumption that if it were like .ln, then we would want it to
> perform like .ln.  Maybe "essentially" means that it actually acts
> differently (?)

It could :-)  Operating on the principle of "if ain't broke, don;t fix
it" however, I would suggest leaving the current code ordering alone
until such time as someone can prove that it is wrong.

> > Finally, since you are changing the behaviour of the .loc directive, it
> > would be great if you could add some documentation about it to the
> > assembler doc file (gas/doc/as.texinfo).  This is optional, but nice.
> 
> I do not see any documentation for this directive in gas/doc/as.texinfo.
> I wanted to make sure I understood the directive (and was suggesting the
> correct patch) before adding any documentation.

Fair enough.  Of course by writing the documentation you also get to
define the behaviour. :-)  Actually the lack of documentation on this
and similar directives was why I suggested that you write something in
the first place.  If you document this directive you, or someone else
might be motivated to document the others, which in my opinion at
least, would be a good thing.

Cheers
        Nick

  reply	other threads:[~2001-09-10 13:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-07 11:38 Tracy Kuhrt
2001-09-10 10:37 ` Nick Clifton
2001-09-10 10:54   ` Tracy Kuhrt
2001-09-10 13:21     ` Nick Clifton [this message]
2001-09-10 13:35       ` Tracy Kuhrt
2001-09-10 15:43         ` Nick Clifton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3n142hk7v.fsf@north-pole.nickc.cambridge.redhat.com \
    --to=nickc@cambridge.redhat.com \
    --cc=Tracy.Kuhrt@microchip.com \
    --cc=binutils@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).