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.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>
void *p;
-void f (int n)
+static void f (int n)
{
if (n <= 4)
p = __builtin_malloc (n);
{ 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 } } */