]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pr78973.c: Make functions static to avoid failures with -fpic
authorMartin Sebor <msebor@redhat.com>
Fri, 23 Aug 2019 16:16:42 +0000 (16:16 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Fri, 23 Aug 2019 16:16:42 +0000 (10:16 -0600)
gcc/testsuite/ChangeLog:

* gcc.dg/pr78973.c: Make functions static to avoid failures
with -fpic
* gcc.dg/pr78973-2.c: Same.

From-SVN: r274860

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr78973-2.c
gcc/testsuite/gcc.dg/pr78973.c

index 2bd6d62eae4f1bfd622757f7c2f192dea6c538eb..887496ee1a6ff46d01f5f1bd1d9a170d47994dc8 100644 (file)
@@ -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>
 
index 7cf9a9e0895b56737db7b4971162d547f6f7dbe7..ad292092a8011520b5f0ca1f31782013cdc948c9 100644 (file)
@@ -10,7 +10,7 @@
 
 void *p;
 
-void f (int n)
+static void f (int n)
 {
   if (n <= 4)
     p = __builtin_malloc (n);
index 6c53f896233c4b82dca7e5bec3e0018f15d46ce8..d0ecba498106e28b5aab50316daa6ca9b4ce4713 100644 (file)
@@ -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 } } */