Re: [PATCH] lra-constraints: Fix error-recovery for bad inline-asms [PR97971]

2021-02-02 Thread Jeff Law via Gcc-patches
On 2/2/21 2:21 AM, Jakub Jelinek via Gcc-patches wrote: > Hi! > > The following testcase has ice-on-invalid, it can't be reloaded, but we > shouldn't ICE the compiler because the user typed non-sense. > > In current_insn_transform we have: > if (process_alt_operands (reused_alternative_num)) >

[PATCH] lra-constraints: Fix error-recovery for bad inline-asms [PR97971]

2021-02-02 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase has ice-on-invalid, it can't be reloaded, but we shouldn't ICE the compiler because the user typed non-sense. In current_insn_transform we have: if (process_alt_operands (reused_alternative_num)) alt_p = true; if (check_only_p) return ! alt_p || best_lose