This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Testsuite] getpid in gcc.c-torture/execute/pr58419.c
- From: Senthil Kumar Selvaraj <senthil_kumar dot selvaraj at atmel dot com>
- To: Umesh Kalappa <Umesh dot Kalappa at TOSHIBA-TSIP dot COM>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, <mikestump at comcast dot net>
- Date: Tue, 28 Jan 2014 12:21:12 +0530
- Subject: Re: [Testsuite] getpid in gcc.c-torture/execute/pr58419.c
- Authentication-results: sourceware.org; auth=none
- References: <20140127094823 dot GA1173 at atmel dot com> <D70144161FA8C34E96606F874775290009CDE451 at TOSBLRMBX01 dot TOSHIBA-TSIP dot COM>
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