public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Martin Sebor <msebor@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-5583] Prune out valid -Winfinite-recursion [PR103469].
Date: Mon, 29 Nov 2021 20:16:59 +0000 (GMT)	[thread overview]
Message-ID: <20211129201659.306D23858409@sourceware.org> (raw)

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 } */


                 reply	other threads:[~2021-11-29 20:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211129201659.306D23858409@sourceware.org \
    --to=msebor@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).