This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: [gfortran,patch] Set main_identifier_node


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

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