public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5583] Prune out valid -Winfinite-recursion [PR103469].
@ 2021-11-29 20:16 Martin Sebor
  0 siblings, 0 replies; only message in thread
From: Martin Sebor @ 2021-11-29 20:16 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:f81c5a86dc03352682ac8ae3daa6ec507528a265

commit r12-5583-gf81c5a86dc03352682ac8ae3daa6ec507528a265
Author: Martin Sebor <msebor@redhat.com>
Date:   Mon Nov 29 13:13:30 2021 -0700

    Prune out valid -Winfinite-recursion [PR103469].
    
    gcc/testsuite/ChangeLog:
            PR testsuite/103469
            * c-c++-common/attr-retain-5.c: Prune out valid warning.
            * c-c++-common/attr-retain-6.c: Same.
            * c-c++-common/attr-retain-9.c: Same.

Diff:
---
 gcc/testsuite/c-c++-common/attr-retain-5.c | 3 +++
 gcc/testsuite/c-c++-common/attr-retain-6.c | 3 +++
 gcc/testsuite/c-c++-common/attr-retain-9.c | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/gcc/testsuite/c-c++-common/attr-retain-5.c b/gcc/testsuite/c-c++-common/attr-retain-5.c
index 1f3f8bfb5c5..5f8ed48d077 100644
--- a/gcc/testsuite/c-c++-common/attr-retain-5.c
+++ b/gcc/testsuite/c-c++-common/attr-retain-5.c
@@ -18,6 +18,9 @@ free_slotinfo (struct dtv_slotinfo_list **elemp)
   return 1;
 }
 
+/* Prune out the valid warning for the function above:
+   { dg-prune-output "-Winfinite-recursion" } */
+
 __attribute__ ((used, retain, section ("__libc_freeres_fn")))
 static void free_mem (void)
 {
diff --git a/gcc/testsuite/c-c++-common/attr-retain-6.c b/gcc/testsuite/c-c++-common/attr-retain-6.c
index ed6cfae2948..ace9a7e1b05 100644
--- a/gcc/testsuite/c-c++-common/attr-retain-6.c
+++ b/gcc/testsuite/c-c++-common/attr-retain-6.c
@@ -17,6 +17,9 @@ free_slotinfo (struct dtv_slotinfo_list **elemp)
   return 1;
 }
 
+/* Prune out the valid warning for the function above:
+   { dg-prune-output "-Winfinite-recursion" } */
+
 __attribute__ ((section ("__libc_freeres_fn")))
 void free_mem (void)
 /* { dg-warning "'.*' without 'retain' attribute and '.*' with 'retain' attribute are placed in a section with the same name" "" { target R_flag_in_section } .-1 } */
diff --git a/gcc/testsuite/c-c++-common/attr-retain-9.c b/gcc/testsuite/c-c++-common/attr-retain-9.c
index e6d7c0b43da..ab9bf4a7a3f 100644
--- a/gcc/testsuite/c-c++-common/attr-retain-9.c
+++ b/gcc/testsuite/c-c++-common/attr-retain-9.c
@@ -17,6 +17,9 @@ free_slotinfo (struct dtv_slotinfo_list **elemp)
   return 1;
 }
 
+/* Prune out the valid warning for the function above:
+   { dg-prune-output "-Winfinite-recursion" } */
+
 __attribute__ ((section ("__libc_freeres_fn")))
 static void free_mem (void)
 /* { dg-warning "defined but not used" "" { target *-*-* } .-1 } */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-29 20:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-29 20:16 [gcc r12-5583] Prune out valid -Winfinite-recursion [PR103469] Martin Sebor

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).