aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/c-c++-common/attr-retain-5.c3
-rw-r--r--gcc/testsuite/c-c++-common/attr-retain-6.c3
-rw-r--r--gcc/testsuite/c-c++-common/attr-retain-9.c3
3 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/attr-retain-5.c b/gcc/testsuite/c-c++-common/attr-retain-5.c
index 1f3f8bf..5f8ed48 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 ed6cfae..ace9a7e 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 e6d7c0b..ab9bf4a 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 } */