From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31898 invoked by alias); 28 Jan 2014 06:51:24 -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 31881 invoked by uid 89); 28 Jan 2014 06:51:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: DVREDG02.corp.atmel.com Received: from nasmtp01.atmel.com (HELO DVREDG02.corp.atmel.com) (192.199.1.246) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 28 Jan 2014 06:51:22 +0000 Received: from apsmtp01.atmel.com (10.168.254.30) by DVREDG02.corp.atmel.com (10.42.103.31) with Microsoft SMTP Server (TLS) id 14.2.347.0; Mon, 27 Jan 2014 23:51:14 -0700 Received: from PENCHT02.corp.atmel.com (10.168.5.162) by apsmtp01.corp.atmel.com (10.168.254.30) with Microsoft SMTP Server (TLS) id 14.2.347.0; Tue, 28 Jan 2014 14:57:31 +0800 Received: from atmel.com (10.168.5.13) by cas-ap.atmel.com (10.168.5.162) with Microsoft SMTP Server (TLS) id 14.2.342.3; Tue, 28 Jan 2014 14:51:13 +0800 Date: Tue, 28 Jan 2014 11:02:00 -0000 From: Senthil Kumar Selvaraj To: Umesh Kalappa CC: "gcc@gcc.gnu.org" , Subject: Re: [Testsuite] getpid in gcc.c-torture/execute/pr58419.c Message-ID: <20140128065111.GB810@atmel.com> References: <20140127094823.GA1173@atmel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00294.txt.bz2 This is on trunk - I was under the impression that it is always trunk, unless otherwise stated? getpid doesn't really make sense for bare metal targets, I would think? Regards Senthil On Mon, Jan 27, 2014 at 01:04:48PM +0000, Umesh Kalappa wrote: > Senthil, > Please do let us know the gcc version ,I couldn't locate the file pr58419.c in the GCC 4.8.1 source . > > To go with the below problem ,you can attributed the getpid() function as weak (http://www.embedded-bits.co.uk/2008/gcc-weak-symbols/). > > ~Umesh > > -----Original Message----- > From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] On Behalf Of Senthil Kumar Selvaraj > Sent: 27 January 2014 15:18 > To: gcc@gcc.gnu.org > Subject: [Testsuite] getpid in gcc.c-torture/execute/pr58419.c > > All, > > gcc.c-torture/execute/pr58419.c has a call to getpid, and this causes > a linker error on the AVR (embedded) target. Is the call intentional, > and if yes, how should this be fixed for targets that don't support an > OS? > > Regards > Senthil