This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, asmcons] Fix PR rtl-optimization/89313: ICE in process_alt_operands, at lra-constraints.c:2962
- From: Peter Bergner <bergner at linux dot ibm dot com>
- To: Segher Boessenkool <segher at kernel dot crashing dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Alan Modra <amodra at gmail dot com>
- Date: Wed, 6 Mar 2019 08:56:49 -0600
- Subject: Re: [PATCH, asmcons] Fix PR rtl-optimization/89313: ICE in process_alt_operands, at lra-constraints.c:2962
- References: <9875286e-cc51-abed-626a-4b36717e52e3@linux.ibm.com> <20190306144714.GU3969@gate.crashing.org>
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