public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@codesourcery.com>
To: Richard Sandiford <rdsandiford@googlemail.com>
Cc: Catherine Moore <clm@codesourcery.com>, binutils@sourceware.org
Subject: Re: [PATCH 4.0/4 v3] MIPS/GAS: Propagate symbol attributes
Date: Thu, 09 Dec 2010 18:02:00 -0000	[thread overview]
Message-ID: <alpine.DEB.1.10.1012091749060.5345@tp.orcam.me.uk> (raw)
In-Reply-To: <g439q6uae5.fsf@richards-desktop-2.stglab.manchester.uk.ibm.com>

On Thu, 9 Dec 2010, Richard Sandiford wrote:

> >  So it's not about whether we should treat these symbols as MIPS16 code
> > references or not, but to match the reality and not mislead the user into 
> > thinking standard MIPS code is being concerned.
> 
> You haven't answered my question, or at least not in a way that
> makes me understand it.  The testcase in your original message
> was a very artificial one, artificial enough that the correct
> disassembly is open to debate.  Do you have a real-world example
> of people writing code like this?

 OK, fair enough -- I did all kinds of weird assembly programming stuff in 
my life (mainly back in my MS-DOS days in early 1990s), so this kind of 
coding is nothing unusual to me, but no, I don't have a current real-world 
example that would absolutely require this kind of an arrangement to work.  
And I can understand your reluctance to make changes to generic parts of 
GAS for the lone purpose of getting things 100% right where that would 
hardly ever matter for anyone.

 Given code actually produced is already correct, I insist on including 
the test case itself though.  I'll see if I can make the disassembly right 
by interspersing the instructions with some otherwise unused labels.  
Would it be a solution that would satisfy you?

 Otherwise chances are the microMIPS change by its nature will fix the 
problem automatically -- I'll check that too before fiddling with the test 
case itself.  The thing is for the purpose of correct microMIPS 
disassembly Chao-ying was kind enough to provide a piece of code to scan 
the symbol table and see if a location is within the span of any function 
symbol with the microMIPS annotation present and switch to the microMIPS 
mode if so.  In the course of the recent rewrite I extended that approach 
to MIPS16 symbols as well.  I hope you agree that is reasonable too.

  Maciej

  reply	other threads:[~2010-12-09 18:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-26 10:48 [PATCH 4/4] " Maciej W. Rozycki
2010-10-29 14:40 ` [PATCH 4.0/4 v2] " Maciej W. Rozycki
2010-10-30 10:37   ` Richard Sandiford
2010-12-08 19:24     ` [PATCH 4.0/4 v3] " Maciej W. Rozycki
2010-12-09 17:25       ` Richard Sandiford
2010-12-09 18:02         ` Maciej W. Rozycki [this message]
2010-12-11  0:09           ` [PATCH 4.0/4 v4] MIPS/GAS/testsuite: Branch to self/label tests Maciej W. Rozycki

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=alpine.DEB.1.10.1012091749060.5345@tp.orcam.me.uk \
    --to=macro@codesourcery.com \
    --cc=binutils@sourceware.org \
    --cc=clm@codesourcery.com \
    --cc=rdsandiford@googlemail.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).