public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: m68k - Dropping the Motorola syntax
       [not found]   ` <3F412ED3.7020504@bothner.com>
@ 2003-08-18 20:33     ` Bernardo Innocenti
  0 siblings, 0 replies; only message in thread
From: Bernardo Innocenti @ 2003-08-18 20:33 UTC (permalink / raw)
  To: Per Bothner; +Cc: Gunther Nikl, gcc, binutils

On Monday 18 August 2003 21:53, Per Bothner wrote:
> Bernardo Innocenti wrote:
> > Of course I meant to remove the least used one, which is...
> > err... mumble mumble... the MIT syntax :-)
>
> The MIT syntax is the one that GNU tools originally supported.
> I thought by now gas supports both syntaxes, but are both still
> being maintained?

All patches for the m68k back-end I've seen so far have been
careful to update both the MOTOROLA and MIT syntax. However, my
guess is that the MIT syntax could easily get broken without
anyone noticing because very few GCC developers can test on
the few targets still using it.

The version of GCC imported in OpenBSD CVS tree is quite outdated.
The NetBSD people are working on a GCC 3.3.1 right now (they've
skipped 3.3.0, AFAIK).

Unless they've recently changed habits, they're not likely
to merge back their patches into mainline.


> Another question is: which syntax do our 
> dis-assemblers (in gdb and binutils) emit?  Obviously, our
> toolchain should be self-consistent.  It's silly for our
> compiler to only support Motorola syntax while gdb emits
> (only or by default) MIT syntax or vice versa.

You're right. Both GDB and objdump emit the MIT syntax by
default. Both of them use libbfd, and I believe it should
be possible to switch to the Motorola syntax, but I don't
know how.

Since the Motorola syntax is the GCC default for all
Linux targets, I wonder why GDB and objdump don't use
it too, at least for consistency. Shouldn't this be fixed?

-- 
  // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/

Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-18 20:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200308141855.23393.bernie@develer.com>
     [not found] ` <200308182048.05394.bernie@develer.com>
     [not found]   ` <3F412ED3.7020504@bothner.com>
2003-08-18 20:33     ` m68k - Dropping the Motorola syntax Bernardo Innocenti

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).