This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] PIC support for SH


On Aug 31, 2000, kaz Kojima <kkojima@rr.iij4u.or.jp> wrote:

>>> (print_operand): Add a modifier code $ to print REGISTER_PREFIX.

>> Using a register prefix only makes sense to disambiguate them from
>> symbol names, but there's no need for this disambiguation in SH
>> assembly code generated by GCC.

> OTOH, some existing codes use this. Maybe, one solution is that we
> declare this feature will be obsolete and assembler permits the use of
> the register prefix with warning.

If you really must, use something like this in the beginning of
parse_reg(), in gas/config/tc-sh.c:

  if (src[0] == '$' && src[1] != '$')
    {
      int ret = parse_reg (src+1, mode, reg);
      if (ret)
        {
          as_warn (_("$ is deprecated as a register prefix"));
          ++ret;
        }
      return ret;
    }

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]