Commit 0448240b by Martin Sebor Committed by Martin Sebor

pr78973.c: Make functions static to avoid failures with -fpic

gcc/testsuite/ChangeLog:

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

From-SVN: r274860
parent 8e7803e8
......@@ -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>
......
......@@ -10,7 +10,7 @@
void *p;
void f (int n)
static void f (int n)
{
if (n <= 4)
p = __builtin_malloc (n);
......
......@@ -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 } } */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment