From: Soundararajan Dhakshinamoorthy Date: Wed, 30 Apr 2014 21:09:21 +0000 (+0000) Subject: pr58419.c: Use dummy no-inline function instead of getpid. X-Git-Tag: releases/gcc-5.1.0~7835 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba49cc990b373e98222af5bc7a9e6fe6e9fc5e84;p=thirdparty%2Fgcc.git 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 --- 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; }