From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14513 invoked by alias); 28 Jan 2014 18:40:28 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 14496 invoked by uid 89); 28 Jan 2014 18:40:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 28 Jan 2014 18:40:26 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0SIdFnY014468 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 28 Jan 2014 13:39:16 -0500 Received: from stumpy.slc.redhat.com ([10.3.113.19]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s0SIdEpq027491; Tue, 28 Jan 2014 13:39:14 -0500 Message-ID: <52E7F952.9070407@redhat.com> Date: Tue, 28 Jan 2014 21:39:00 -0000 From: Jeff Law User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: janisjo@codesourcery.com, Senthil Kumar Selvaraj , Umesh.Kalappa@TOSHIBA-TSIP.COM CC: "gcc@gcc.gnu.org" , mikestump@comcast.net Subject: Re: [Testsuite] getpid in gcc.c-torture/execute/pr58419.c References: <20140127094823.GA1173@atmel.com> <20140128065111.GB810@atmel.com> <52E7F36A.30109@mentor.com> In-Reply-To: <52E7F36A.30109@mentor.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00303.txt.bz2 On 01/28/14 11:14, Janis Johnson wrote: > The testcase in the PR had a call to printf. The modified test doesn't call > printf, and doesn't declare getpid. I assume that getpid is called simply > to have an external call, but there must be something that could be used > instead that is available for any target. > > Jeff, you added this test, would you please take a look at it? It was a testcase from Zhendong that was modified to fit within our testing framework. I think we could replace the call to getpid with a call to a function which has a noinline attribute. Jeff