public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: Alan Modra <amodra@bigpond.net.au>
Cc: binutils@sources.redhat.com
Subject: Re: Making generic ld testcases pass on more targets
Date: Wed, 16 Feb 2005 19:48:00 -0000	[thread overview]
Message-ID: <421346A1.5070606@redhat.com> (raw)
In-Reply-To: <20050216122837.GS10128@bubble.modra.org>

Hi Alan,

>>>+#ifdef BFD_ASSEMBLER
>>>+  {"dc.a", cons, 0},
>>>+#endif
>>
>>I like this, but why make the pseudo specific to BFD_ASSEMBLERs ?
>
> Because only BFD_ASSEMBLER has arch_info.

Ah - but if we want to use the pseudo in ld testcases then it would need 
to be present for non BFD assemblers as well.

>>>+      nbytes = (stdoutput->arch_info->bits_per_address - 1) / 8;
>>
>>It might make sense to allow for individual targets to override this 
>>computation with their own value if they so wish.
> 
> Yes, that would allow non-BFD_ASSEMBLER to use dc.a too.

OK - this would be my preferred solution.

> Another approach occurred to me also, a variation on using
> __address_size.  Instead of the assembler providing the symbol, we could
> have the test harness feed a suitable --defsym to the assembler, chosen
> by target name.

The problem here is remembering to do this when creating a new target.

Plus it is a duplication of information.  As you have pointed out the 
address size is already in the arch_info structure (for BFD assemblers) 
so why force the developer to put it into the testsuite as well.

Plus it introduces target specific information into a file that might 
otherwise be generic.

Cheers
   Nick


  reply	other threads:[~2005-02-16 13:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-16 14:15 Alan Modra
2005-02-16 17:03 ` Nick Clifton
2005-02-16 18:48   ` Alan Modra
2005-02-16 19:48     ` Nick Clifton [this message]
2005-02-17  7:44 ` Hans-Peter Nilsson
2005-02-17 12:26   ` Hans-Peter Nilsson
2005-02-17 12:58   ` Alan Modra
2005-02-17 13:02     ` Hans-Peter Nilsson
2005-02-21 15:51       ` Alan Modra

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=421346A1.5070606@redhat.com \
    --to=nickc@redhat.com \
    --cc=amodra@bigpond.net.au \
    --cc=binutils@sources.redhat.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).