From ba49cc990b373e98222af5bc7a9e6fe6e9fc5e84 Mon Sep 17 00:00:00 2001 From: Soundararajan Dhakshinamoorthy Date: Wed, 30 Apr 2014 21:09:21 +0000 Subject: [PATCH] pr58419.c: Use dummy no-inline function instead of getpid. 2014-04-30 Soundararajan Dhakshinamoorthy * gcc.c-torture/execute/pr58419.c: Use dummy no-inline function instead of getpid. From-SVN: r209957 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.c-torture/execute/pr58419.c | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c0c61b2cd9db..4627de41cfbe 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-04-30 Soundararajan Dhakshinamoorthy + + * gcc.c-torture/execute/pr58419.c: Use dummy no-inline function + instead of getpid. + 2014-04-30 Tobias Burnus * gfortran.dg/coarray_poly_7.f90 diff --git a/gcc/testsuite/gcc.c-torture/execute/pr58419.c b/gcc/testsuite/gcc.c-torture/execute/pr58419.c index 69cc0401dc1d..78bf437eb6b8 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr58419.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr58419.c @@ -1,4 +1,9 @@ -int printf(const char *, ...); +__attribute__((__noinline__)) +void +dummy () +{ + asm volatile(""); +} int a, g, i, k, *p; signed char b; @@ -31,6 +36,6 @@ main () *l = a; g = foo (*m = k && *d, 1 > i) || bar (); } - getpid(); + dummy(); return 0; } -- 2.47.3