* An unused function `print_colon_thingie' in opcodes/h8300-dis.c.
@ 2003-11-19 19:14 Kazu Hirata
2003-11-19 19:36 ` Michael Snyder
0 siblings, 1 reply; 3+ messages in thread
From: Kazu Hirata @ 2003-11-19 19:14 UTC (permalink / raw)
To: binutils; +Cc: msnyder, bernds, aoliva
Hi,
2003-06-03 Michael Snyder <msnyder@redhat.com>
and Bernd Schmidt <bernds@redhat.com>
and Alexandre Oliva <aoliva@redhat.com>
* disassemble.c (disassembler): Add support for h8300sx.
* h8300-dis.c: Ditto.
This patch adds an unused function `print_colon_thingie' to
opcodes/h8300-dis.c. Is there a plan to use it? I see a lot of
places that print ':' themselves, so I am guessing that this function
was used during development but not any more.
Kazu Hirata
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: An unused function `print_colon_thingie' in opcodes/h8300-dis.c.
2003-11-19 19:14 An unused function `print_colon_thingie' in opcodes/h8300-dis.c Kazu Hirata
@ 2003-11-19 19:36 ` Michael Snyder
2003-11-19 19:45 ` Kazu Hirata
0 siblings, 1 reply; 3+ messages in thread
From: Michael Snyder @ 2003-11-19 19:36 UTC (permalink / raw)
To: Kazu Hirata; +Cc: binutils, bernds, aoliva
Kazu Hirata wrote:
> Hi,
>
> 2003-06-03 Michael Snyder <msnyder@redhat.com>
> and Bernd Schmidt <bernds@redhat.com>
> and Alexandre Oliva <aoliva@redhat.com>
>
> * disassemble.c (disassembler): Add support for h8300sx.
> * h8300-dis.c: Ditto.
>
> This patch adds an unused function `print_colon_thingie' to
> opcodes/h8300-dis.c. Is there a plan to use it? I see a lot of
> places that print ':' themselves, so I am guessing that this function
> was used during development but not any more.
You're right -- it was used by a pretty-printer function
that I used during development. Please feel free to remove it.
Thanks,
Michael
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: An unused function `print_colon_thingie' in opcodes/h8300-dis.c.
2003-11-19 19:36 ` Michael Snyder
@ 2003-11-19 19:45 ` Kazu Hirata
0 siblings, 0 replies; 3+ messages in thread
From: Kazu Hirata @ 2003-11-19 19:45 UTC (permalink / raw)
To: msnyder; +Cc: binutils, bernds, aoliva
Hi Michael,
> > 2003-06-03 Michael Snyder <msnyder@redhat.com>
> > and Bernd Schmidt <bernds@redhat.com>
> > and Alexandre Oliva <aoliva@redhat.com>
> >
> > * disassemble.c (disassembler): Add support for h8300sx.
> > * h8300-dis.c: Ditto.
> >
> > This patch adds an unused function `print_colon_thingie' to
> > opcodes/h8300-dis.c. Is there a plan to use it? I see a lot of
> > places that print ':' themselves, so I am guessing that this function
> > was used during development but not any more.
>
> You're right -- it was used by a pretty-printer function
> that I used during development. Please feel free to remove it.
OK. I committed the attached patch.
Kazu Hirata
2003-11-19 Kazu Hirata <kazu@cs.umass.edu>
* h8300-dis.c (print_colon_thingie): Remove.
Index: h8300-dis.c
===================================================================
RCS file: /cvs/src/src/opcodes/h8300-dis.c,v
retrieving revision 1.14
diff -u -r1.14 h8300-dis.c
--- h8300-dis.c 10 Jun 2003 07:27:55 -0000 1.14
+++ h8300-dis.c 19 Nov 2003 19:39:30 -0000
@@ -45,25 +45,6 @@
int *, int *,
const struct h8_opcode *));
-static void print_colon_thingie PARAMS ((op_type *));
-
-static void
-print_colon_thingie (op_type *nib)
-{
- switch (*nib & SIZE) {
- case L_2: fprintf (stdout, "2"); break;
- case L_3:
- case L_3NZ: fprintf (stdout, "3"); break;
- case L_4: fprintf (stdout, "4"); break;
- case L_5: fprintf (stdout, "5"); break;
- case L_8: fprintf (stdout, "8"); break;
- case L_16:
- case L_16U: fprintf (stdout, "16"); break;
- case L_24: fprintf (stdout, "24"); break;
- case L_32: fprintf (stdout, "32"); break;
- }
-}
-
/* Run through the opcodes and sort them into order to make them easy
to disassemble. */
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-11-19 19:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-19 19:14 An unused function `print_colon_thingie' in opcodes/h8300-dis.c Kazu Hirata
2003-11-19 19:36 ` Michael Snyder
2003-11-19 19:45 ` Kazu Hirata
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).