Re: [PATCH] implement -Winfinite-recursion [PR88232]

2021-11-24 Thread Martin Sebor via Gcc-patches
On 11/24/21 3:16 AM, Thomas Schwinge wrote: Hi! On 2021-11-09T21:28:43-0700, Martin Sebor via Gcc-patches wrote: The attached patch adds support to the middle end for detecting infinitely recursive calls. The warning is controlled by the new -Winfinite-recursion option. The option name is

Re: [PATCH] implement -Winfinite-recursion [PR88232]

2021-11-24 Thread Thomas Schwinge
Hi! On 2021-11-09T21:28:43-0700, Martin Sebor via Gcc-patches wrote: > The attached patch adds support to the middle end for detecting > infinitely recursive calls. The warning is controlled by the new > -Winfinite-recursion option. The option name is the same as > Clang's. Thanks! > The

Re: [PATCH] implement -Winfinite-recursion [PR88232]

2021-11-10 Thread Marek Polacek via Gcc-patches
On Tue, Nov 09, 2021 at 09:28:43PM -0700, Martin Sebor via Gcc-patches wrote: > The attached patch adds support to the middle end for detecting > infinitely recursive calls. The warning is controlled by the new > -Winfinite-recursion option. The option name is the same as > Clang's. > > I

[PATCH] implement -Winfinite-recursion [PR88232]

2021-11-09 Thread Martin Sebor via Gcc-patches
The attached patch adds support to the middle end for detecting infinitely recursive calls. The warning is controlled by the new -Winfinite-recursion option. The option name is the same as Clang's. I scheduled the warning pass to run after early inlining to detect mutually recursive calls but