Re: RFA: Improve message for wrong number of alternatives

2021-05-17 Thread Richard Sandiford via Gcc-patches
Joern Rennecke writes: > On Sun, 16 May 2021 at 22:01, Martin Sebor wrote: > > I think it's very helpful to provide this sort of detail. Just as >> a matter of readability, the new error message >> >>"wrong number of alternatives in operand %d, %d, expected %d" >> >> would be improved by av

Re: RFA: Improve message for wrong number of alternatives

2021-05-17 Thread Joern Rennecke
On Sun, 16 May 2021 at 22:01, Martin Sebor wrote: > I think it's very helpful to provide this sort of detail. Just as > a matter of readability, the new error message > >"wrong number of alternatives in operand %d, %d, expected %d" > > would be improved by avoiding the two consecutive %d's,

Re: RFA: Improve message for wrong number of alternatives

2021-05-16 Thread Martin Sebor via Gcc-patches
On 5/16/21 7:57 AM, Joern Rennecke wrote: When you have lots of operands and lots of alternatives in a pattern, it is often not immediately apparent if the problem is in the indicated alternative or in the one that genoutput uses as a reference for the 'correct' number of alternatives, and/or if

RFA: Improve message for wrong number of alternatives

2021-05-16 Thread Joern Rennecke
When you have lots of operands and lots of alternatives in a pattern, it is often not immediately apparent if the problem is in the indicated alternative or in the one that genoutput uses as a reference for the 'correct' number of alternatives, and/or if you dropped a comma or had one too many. By