This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran,patch] Set main_identifier_node
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "FranÃois-Xavier Coudert" <fxcoudert at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 18 Sep 2007 09:51:27 -0700
- Subject: Re: [gfortran,patch] Set main_identifier_node
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=38GAcbAsTkqMW81bsz10fPsXJjzgO/4SA7JV09md2u8=; b=ELSHqICLkh8/eWn7EQ4doka5UH97uAV3Idfn/bOYmhi58CORvlquRzZAQCCZS9jU9yc5CXN32JGX5Jj6sp+iF+H+DDjjlr7Wf8Y3P+vjzAb3azxy1bC9bVUxdOaBaW4LAdIuUPJayjWexnXbkmFaT6JcmGViYtr4brUDgq1i9po=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mWhjWTq0uO89P5WI07F0C6+uqAC5Dld+1czmiXZxfH01DTCUCgP8P7EGRXK9dDL4b5vhM430TinqkAj3sObYxBPIGuvx9tQemBnYTxKi3AyY6x1bocjgpMlrISFk0rQ1GEd1OTB8FXrm1WG72YpieXp2rE4PtTMf1C0CtSoPhA0=
- References: <19c433eb0709180855i34d789e2y8a9f4da58869acaf@mail.gmail.com>
On 9/18/07, FranÃois-Xavier Coudert <fxcoudert@gmail.com> wrote:
> 2007-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
>
> * parse.c (main_program_symbol): Set main_identifier_node.
This is wrong as it causes the middle-end to also emitt a call to
__main inside MAIN__. Now you will get two calls to __main which
calls the global constructors now twice.
Thanks,
Andrew Pinski