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]
Other format: [Raw text]

Re: [PATCH, asmcons] Fix PR rtl-optimization/89313: ICE in process_alt_operands, at lra-constraints.c:2962


On 3/6/19 8:47 AM, Segher Boessenkool wrote:
> Which means you can write it as just
> 
> static int
> matching_constraint_num (const char *constraint)
> {
>   if (*constraint == '%')
>     constraint++;
> 
>   if (IN_RANGE (*constraint, '0', '9'))
>     return strtoul (constraint, NULL, 10);
> 
>   return -1;
> }

Ok, changed.  Thanks!


Peter


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