develooper Front page | perl.perl5.porters | Postings from September 2003

Re: Interesting - [drow@mvista.com: Re: A user's experiences with GCC-3.4 snapshots]

Thread Previous | Thread Next
From:
Alan Burlison
Date:
September 22, 2003 01:40
Subject:
Re: Interesting - [drow@mvista.com: Re: A user's experiences with GCC-3.4 snapshots]
Message ID:
3F6EB55A.7020305@sun.com
Rafael Garcia-Suarez wrote:

> perl 5.6.1's Configure script uses the following test program :
> 
>     int main() { extern short setproctitle(); printf("%hd", setproctitle()); }
> 
> and sees if it can be compiled.
> 
> I don't know why this was further changed, but this earlier approach
> seems to be immune to that change introduced in gcc 3.4.

Because if you actually run this it will dump core, and for some platforms 
you need to be able to run the a.out.  The trick is to come up wit something 
that is a) runnable and b) can't be defeated by optimization and is c) portable.

-- 
Alan Burlison
--


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About