This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] PIC support for SH
- To: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Subject: Re: [PATCH] PIC support for SH
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 02 Sep 2000 03:13:21 -0300
- Cc: gcc-patches at gcc dot gnu dot org, binutils at sources dot redhat dot com
- Organization: GCC Team, Red Hat
- References: <oritshis15.fsf@guarana.lsd.ic.unicamp.br><200008311241.VAA08694@rr.iij4u.or.jp>
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