This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] PIC support for SH
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: [PATCH] PIC support for SH
- From: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Date: Sat, 02 Sep 2000 20:46:12 +0900
- Cc: binutils at sources dot redhat dot com
- References: <orlmxbb9tq.fsf@guarana.lsd.ic.unicamp.br>
Alexandre Oliva <aoliva@redhat.com> wrote:
>> 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;
> }
We will try this. Thank you Alex.
kaz