]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Prune out valid -Winfinite-recursion [PR103469].
authorMartin Sebor <msebor@redhat.com>
Mon, 29 Nov 2021 20:13:30 +0000 (13:13 -0700)
committerMartin Sebor <msebor@redhat.com>
Mon, 29 Nov 2021 20:16:51 +0000 (13:16 -0700)
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.

gcc/testsuite/c-c++-common/attr-retain-5.c
gcc/testsuite/c-c++-common/attr-retain-6.c
gcc/testsuite/c-c++-common/attr-retain-9.c

index 1f3f8bfb5c5dab941d52f0cdd8ac2bbeedf792b1..5f8ed48d077f9b9660ad29752bae507695894727 100644 (file)
@@ -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)
 {
index ed6cfae294857356ebc7c8e97dec0b402884c5ac..ace9a7e1b0592759ea68581840670fae5464f1d8 100644 (file)
@@ -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 } */
index e6d7c0b43daf339ec1bbdde053946c8c9d468521..ab9bf4a7a3f167cec92ec2d982018c40d4f122a3 100644 (file)
@@ -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 } */