This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC 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
- 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