[patch/m68k] convert USE_GAS into a compile-time constant

Gunther Nikl gni@gecko.de
Sat Feb 21 13:45:00 GMT 2004

On Tue, Feb 17, 2004 at 11:55:58AM +0100, Andreas Schwab wrote:
> Gunther Nikl <gni@gecko.de> writes:
> >   The uses in m68k.c are slightly more difficult to jude. One USE_GAS use
> >   could safely be removed (second use in m68k_output_mi_thunk): it uses the
> >   same test as the m68k.md cases. The first use in m68k_output_mi_thunk is
> >   a bit more difficult for the case "!MOTOROLA": there jra %0,a1" should be
> "jra %0,a1" is not a valid insn.  Old comments indicate that this was a
> hack in the SunOS assembler to support PIC, but gas never implemented
> that.

  Hm, that seems to be true. I suspected that GAS does support it. Then
  "bra.l %0" should be used but that doesn't look correct for !MOTOROLA.
  This part looks strange either way.
  Its probaly the best idea to use the already approved first patch that
  makes USE_GAS a compile-time boolean.


More information about the Gcc-patches mailing list