public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/88232] Please implement -Winfinite-recursion
       [not found] <bug-88232-4@http.gcc.gnu.org/bugzilla/>
@ 2021-11-09 12:30 ` tschwinge at gcc dot gnu.org
  2021-11-10  4:29 ` [Bug middle-end/88232] " msebor at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2021-11-09 12:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88232

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tschwinge at gcc dot gnu.org

--- Comment #3 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Such a '-Winfinite-recursion' diagnostic would've been helpful for
PR101204/PR103157 (meaning: prevented/flagged that issue early, via a GCC
build-time '-Werror' diagnostic).

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/88232] Please implement -Winfinite-recursion
       [not found] <bug-88232-4@http.gcc.gnu.org/bugzilla/>
  2021-11-09 12:30 ` [Bug c++/88232] Please implement -Winfinite-recursion tschwinge at gcc dot gnu.org
@ 2021-11-10  4:29 ` msebor at gcc dot gnu.org
  2021-11-23 22:37 ` cvs-commit at gcc dot gnu.org
  2021-11-23 22:43 ` msebor at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-11-10  4:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88232

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |middle-end
           Keywords|                            |patch
                 CC|                            |msebor at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Patch: https://gcc.gnu.org/pipermail/gcc-patches/2021-November/583914.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/88232] Please implement -Winfinite-recursion
       [not found] <bug-88232-4@http.gcc.gnu.org/bugzilla/>
  2021-11-09 12:30 ` [Bug c++/88232] Please implement -Winfinite-recursion tschwinge at gcc dot gnu.org
  2021-11-10  4:29 ` [Bug middle-end/88232] " msebor at gcc dot gnu.org
@ 2021-11-23 22:37 ` cvs-commit at gcc dot gnu.org
  2021-11-23 22:43 ` msebor at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-11-23 22:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88232

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <msebor@gcc.gnu.org>:

https://gcc.gnu.org/g:30ba058f77eedfaf7a0582f5d42aff949710bce4

commit r12-5483-g30ba058f77eedfaf7a0582f5d42aff949710bce4
Author: Martin Sebor <msebor@redhat.com>
Date:   Tue Nov 23 15:30:29 2021 -0700

    Implement -Winfinite-recursion [PR88232].

    Resolves:
    PR middle-end/88232 - Please implement -Winfinite-recursion

    gcc/ChangeLog:

            PR middle-end/88232
            * Makefile.in (OBJS): Add gimple-warn-recursion.o.
            * common.opt: Add -Winfinite-recursion.
            * doc/invoke.texi (-Winfinite-recursion): Document.
            * passes.def (pass_warn_recursion): Schedule a new pass.
            * tree-pass.h (make_pass_warn_recursion): Declare.
            * gimple-warn-recursion.c: New file.

    gcc/c-family/ChangeLog:

            PR middle-end/88232
            * c.opt: Add -Winfinite-recursion.

    gcc/testsuite/ChangeLog:

            PR middle-end/88232
            * c-c++-common/attr-used-5.c: Suppress valid warning.
            * c-c++-common/attr-used-6.c: Same.
            * c-c++-common/attr-used-9.c: Same.
            * g++.dg/warn/Winfinite-recursion-2.C: New test.
            * g++.dg/warn/Winfinite-recursion-3.C: New test.
            * g++.dg/warn/Winfinite-recursion.C: New test.
            * gcc.dg/Winfinite-recursion-2.c: New test.
            * gcc.dg/Winfinite-recursion.c: New test.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/88232] Please implement -Winfinite-recursion
       [not found] <bug-88232-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-11-23 22:37 ` cvs-commit at gcc dot gnu.org
@ 2021-11-23 22:43 ` msebor at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-11-23 22:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88232

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |12.0

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
Done for GCC 12.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-23 22:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-88232-4@http.gcc.gnu.org/bugzilla/>
2021-11-09 12:30 ` [Bug c++/88232] Please implement -Winfinite-recursion tschwinge at gcc dot gnu.org
2021-11-10  4:29 ` [Bug middle-end/88232] " msebor at gcc dot gnu.org
2021-11-23 22:37 ` cvs-commit at gcc dot gnu.org
2021-11-23 22:43 ` msebor at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).