This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Testsuite] getpid in gcc.c-torture/execute/pr58419.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]