This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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


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


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