diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr78973-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr78973.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2bd6d62..887496e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -3,6 +3,8 @@ * gcc.dg/Warray-bounds-36.c: Make functions static to avoid failures with -fpic. * gcc.dg/Warray-bounds-41.c: Same. + * gcc.dg/pr78973.c: Same. + * gcc.dg/pr78973-2.c: Same. 2019-08-22 Marek Polacek <polacek@redhat.com> diff --git a/gcc/testsuite/gcc.dg/pr78973-2.c b/gcc/testsuite/gcc.dg/pr78973-2.c index 7cf9a9e..ad29209 100644 --- a/gcc/testsuite/gcc.dg/pr78973-2.c +++ b/gcc/testsuite/gcc.dg/pr78973-2.c @@ -10,7 +10,7 @@ void *p; -void f (int n) +static void f (int n) { if (n <= 4) p = __builtin_malloc (n); diff --git a/gcc/testsuite/gcc.dg/pr78973.c b/gcc/testsuite/gcc.dg/pr78973.c index 6c53f89..d0ecba4 100644 --- a/gcc/testsuite/gcc.dg/pr78973.c +++ b/gcc/testsuite/gcc.dg/pr78973.c @@ -6,7 +6,7 @@ { dg-do compile } { dg-options "-O2 -Wall" } */ -void f (void *p, int n) +static void f (void *p, int n) { if (n <= 4) __builtin_memset (p, 0, n); /* { dg-warning "exceeds maximum object size" "pr79073" { xfail ilp32 } } */ |