From: Paul Koning Date: Fri, 9 Nov 2018 21:08:32 +0000 (-0500) Subject: Walloca-16.c: Ignore conflicting types for built-in warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4476242b8556590de4b85eea815bda9b81ed7b06;p=gcc.git Walloca-16.c: Ignore conflicting types for built-in warnings. * gcc.dg/Walloca-16.c: Ignore conflicting types for built-in warnings. * gcc.dg/Wrestrict-4.c: Ditto. * gcc.dg/Wrestrict-5.c: Ditto. * gcc.dg/pr83463.c: Ditto. * gcc.dg/torture/pr55890-2.c: Ditto. * gcc.dg/torture/pr55890-3.c: Ditto. * gcc.dg/torture/pr71816.c: Ditto. From-SVN: r265995 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c1b8d6b2cc1..1046dcb97f6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2018-11-09 Paul Koning + + * gcc.dg/Walloca-16.c: Ignore conflicting types for built-in + warnings. + * gcc.dg/Wrestrict-4.c: Ditto. + * gcc.dg/Wrestrict-5.c: Ditto. + * gcc.dg/pr83463.c: Ditto. + * gcc.dg/torture/pr55890-2.c: Ditto. + * gcc.dg/torture/pr55890-3.c: Ditto. + * gcc.dg/torture/pr71816.c: Ditto. + 2018-11-09 Jakub Jelinek * c-c++-common/gomp/clauses-5.c: New test. diff --git a/gcc/testsuite/gcc.dg/Walloca-16.c b/gcc/testsuite/gcc.dg/Walloca-16.c index 3ee96a9570a..35f160ff262 100644 --- a/gcc/testsuite/gcc.dg/Walloca-16.c +++ b/gcc/testsuite/gcc.dg/Walloca-16.c @@ -1,5 +1,6 @@ /* PR tree-optimization/84224 */ /* { dg-do compile } */ +/* { dg-prune-output "conflicting types for built-in" } */ /* { dg-options "-O0 -Walloca" } */ void *alloca (); diff --git a/gcc/testsuite/gcc.dg/Wrestrict-4.c b/gcc/testsuite/gcc.dg/Wrestrict-4.c index f2398ef164a..13a98ae4d8b 100644 --- a/gcc/testsuite/gcc.dg/Wrestrict-4.c +++ b/gcc/testsuite/gcc.dg/Wrestrict-4.c @@ -3,6 +3,7 @@ Test to verify that invalid calls to built-in functions declared without a prototype don't cause an ICE. { dg-do compile } + { dg-prune-output "conflicting types for built-in" } { dg-options "-O2 -Warray-bounds -Wrestrict" } */ void* memcpy (); diff --git a/gcc/testsuite/gcc.dg/Wrestrict-5.c b/gcc/testsuite/gcc.dg/Wrestrict-5.c index 4912ee5506b..2dae7a8aea3 100644 --- a/gcc/testsuite/gcc.dg/Wrestrict-5.c +++ b/gcc/testsuite/gcc.dg/Wrestrict-5.c @@ -2,6 +2,7 @@ functions declared with no prototype are checked for overlap, and that invalid calls are ignored. { dg-do compile } + { dg-prune-output "conflicting types for built-in" } { dg-options "-O2 -Wrestrict" } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.dg/pr83463.c b/gcc/testsuite/gcc.dg/pr83463.c index ddf662f76a1..950fdde4e59 100644 --- a/gcc/testsuite/gcc.dg/pr83463.c +++ b/gcc/testsuite/gcc.dg/pr83463.c @@ -1,5 +1,6 @@ /* PR middle-end/83463 */ /* { dg-do compile } */ +/* { dg-prune-output "conflicting types for built-in" } */ /* { dg-options "-O2 -Wrestrict -Wno-pointer-to-int-cast" } */ int *a; diff --git a/gcc/testsuite/gcc.dg/torture/pr55890-2.c b/gcc/testsuite/gcc.dg/torture/pr55890-2.c index 1cf71d7529c..672826baa53 100644 --- a/gcc/testsuite/gcc.dg/torture/pr55890-2.c +++ b/gcc/testsuite/gcc.dg/torture/pr55890-2.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-prune-output "conflicting types for built-in" } */ extern void *memcpy(); int main() { memcpy(); } diff --git a/gcc/testsuite/gcc.dg/torture/pr55890-3.c b/gcc/testsuite/gcc.dg/torture/pr55890-3.c index c7f77be689d..ba4971e4000 100644 --- a/gcc/testsuite/gcc.dg/torture/pr55890-3.c +++ b/gcc/testsuite/gcc.dg/torture/pr55890-3.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-prune-output "conflicting types for built-in" } */ void *memmove (); diff --git a/gcc/testsuite/gcc.dg/torture/pr71816.c b/gcc/testsuite/gcc.dg/torture/pr71816.c index bdd5b1b127f..aa4605b7dbd 100644 --- a/gcc/testsuite/gcc.dg/torture/pr71816.c +++ b/gcc/testsuite/gcc.dg/torture/pr71816.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-prune-output "conflicting types for built-in" } */ void *ext2fs_resize_mem_p; struct ext2_icount_el {